adonisjs-server-stats 1.10.0 → 1.10.3
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 +23 -14
- package/dist/core/config-utils.d.ts +8 -0
- package/dist/core/constants.d.ts +4 -0
- package/dist/core/dashboard-data-controller.d.ts +16 -0
- package/dist/core/dashboard-data-helpers.d.ts +12 -0
- package/dist/core/debug-data-controller.d.ts +4 -0
- package/dist/core/define-config-helpers.d.ts +25 -0
- package/dist/core/feature-detect-helpers.d.ts +36 -0
- package/dist/core/formatters-helpers.d.ts +23 -0
- package/dist/core/index.js +594 -509
- package/dist/core/log-utils-helpers.d.ts +13 -0
- package/dist/core/metrics.d.ts +3 -28
- package/dist/core/pagination.d.ts +0 -9
- package/dist/core/server-stats-controller.d.ts +6 -0
- package/dist/core/transmit-helpers.d.ts +7 -0
- package/dist/core/types-dashboard.d.ts +178 -0
- package/dist/core/types-diagnostics.d.ts +85 -0
- package/dist/core/types.d.ts +10 -442
- package/dist/react/{CacheSection-UCMptWyn.js → CacheSection-baMZotSn.js} +2 -2
- package/dist/react/CacheTab-2cw_rMzj.js +117 -0
- package/dist/react/{ConfigSection-DfFd-WRq.js → ConfigSection-DGgqjAal.js} +1 -1
- package/dist/react/{ConfigTab-Bdg8YMer.js → ConfigTab-H3OnYqmK.js} +1 -1
- package/dist/react/CustomPaneTab-B6r7ha0u.js +98 -0
- package/dist/react/{EmailsSection-CM7stSyh.js → EmailsSection-C-UZISG-.js} +2 -2
- package/dist/react/EmailsTab-DbK4Eobn.js +139 -0
- package/dist/react/{EventsSection-ByQ-9blq.js → EventsSection-C7RQW_LY.js} +2 -2
- package/dist/react/EventsTab-CfVr7AiM.js +57 -0
- package/dist/react/{FilterBar-DQRXpWrb.js → FilterBar-CQ7bD669.js} +15 -15
- package/dist/react/{JobsSection-DF3qEv9O.js → JobsSection-CQHNK_Ls.js} +2 -2
- package/dist/react/{JobsTab-BbrBWIOb.js → JobsTab-znzf6jzk.js} +54 -42
- package/dist/react/{LogsSection-DcFTZY7b.js → LogsSection-Dmm3rE2B.js} +9 -3
- package/dist/react/LogsTab-D8unMV5P.js +108 -0
- package/dist/react/{OverviewSection-C4T1ur51.js → OverviewSection-ABP9ueBo.js} +1 -1
- package/dist/react/{QueriesSection-PswteoF9.js → QueriesSection-CnmSkznA.js} +2 -2
- package/dist/react/{QueriesTab-osLUWd4L.js → QueriesTab-BQzcxEiW.js} +37 -40
- package/dist/react/{RelatedLogs-DFDOyUMr.js → RelatedLogs-3A8RuGKH.js} +15 -3
- package/dist/react/{RequestsSection-Nag30rEA.js → RequestsSection-kW79_M7k.js} +3 -3
- package/dist/react/{RoutesSection-BUSkM6PY.js → RoutesSection-BRhxrtjZ.js} +2 -2
- package/dist/react/RoutesTab-CpYH5lUw.js +68 -0
- package/dist/react/{TimelineTab-Covg5weo.js → TimelineTab-DjLR35Ce.js} +47 -53
- package/dist/react/index-CsImORX6.js +1121 -0
- package/dist/react/index.js +1 -1
- package/dist/react/react/components/{Dashboard/shared → shared}/FilterBar.d.ts +4 -3
- package/dist/react/react/hooks/useDashboardData.d.ts +4 -8
- package/dist/react/style.css +1 -1
- package/dist/src/collectors/app_collector.d.ts +0 -8
- package/dist/src/collectors/app_collector.js +45 -52
- package/dist/src/collectors/auto_detect.d.ts +0 -23
- package/dist/src/collectors/auto_detect.js +33 -55
- package/dist/src/collectors/db_pool_collector.d.ts +14 -16
- package/dist/src/collectors/db_pool_collector.js +72 -57
- package/dist/src/collectors/log_collector.d.ts +0 -47
- package/dist/src/collectors/log_collector.js +36 -65
- package/dist/src/collectors/queue_collector.d.ts +0 -20
- package/dist/src/collectors/queue_collector.js +60 -76
- package/dist/src/collectors/redis_collector.d.ts +10 -10
- package/dist/src/collectors/redis_collector.js +69 -66
- package/dist/src/config/deprecation_migration.d.ts +7 -0
- package/dist/src/config/deprecation_migration.js +201 -0
- package/dist/src/controller/debug_controller.d.ts +1 -1
- package/dist/src/controller/debug_controller.js +87 -81
- package/dist/src/dashboard/cache_handlers.d.ts +14 -0
- package/dist/src/dashboard/cache_handlers.js +52 -0
- package/dist/src/dashboard/chart_aggregator.d.ts +0 -7
- package/dist/src/dashboard/chart_aggregator.js +68 -50
- package/dist/src/dashboard/coalesce_cache.d.ts +25 -0
- package/dist/src/dashboard/coalesce_cache.js +47 -0
- package/dist/src/dashboard/dashboard_controller.d.ts +11 -37
- package/dist/src/dashboard/dashboard_controller.js +51 -544
- package/dist/src/dashboard/dashboard_page_assets.d.ts +17 -0
- package/dist/src/dashboard/dashboard_page_assets.js +51 -0
- package/dist/src/dashboard/dashboard_store.d.ts +19 -218
- package/dist/src/dashboard/dashboard_store.js +115 -1116
- package/dist/src/dashboard/dashboard_types.d.ts +83 -0
- package/dist/src/dashboard/dashboard_types.js +4 -0
- package/dist/src/dashboard/detail_queries.d.ts +19 -0
- package/dist/src/dashboard/detail_queries.js +98 -0
- package/dist/src/dashboard/email_event_builder.d.ts +8 -0
- package/dist/src/dashboard/email_event_builder.js +65 -0
- package/dist/src/dashboard/explain_query.d.ts +8 -0
- package/dist/src/dashboard/explain_query.js +22 -0
- package/dist/src/dashboard/filter_handlers.d.ts +23 -0
- package/dist/src/dashboard/filter_handlers.js +56 -0
- package/dist/src/dashboard/filtered_queries.d.ts +15 -0
- package/dist/src/dashboard/filtered_queries.js +155 -0
- package/dist/src/dashboard/flush_manager.d.ts +25 -0
- package/dist/src/dashboard/flush_manager.js +107 -0
- package/dist/src/dashboard/format_helpers.d.ts +126 -0
- package/dist/src/dashboard/format_helpers.js +140 -0
- package/dist/src/dashboard/inspector_manager.d.ts +36 -0
- package/dist/src/dashboard/inspector_manager.js +102 -0
- package/dist/src/dashboard/integrations/config_inspector.js +11 -13
- package/dist/src/dashboard/integrations/queue_inspector.d.ts +3 -3
- package/dist/src/dashboard/integrations/queue_inspector.js +13 -10
- package/dist/src/dashboard/jobs_handlers.d.ts +14 -0
- package/dist/src/dashboard/jobs_handlers.js +61 -0
- package/dist/src/dashboard/knex_factory.d.ts +18 -0
- package/dist/src/dashboard/knex_factory.js +91 -0
- package/dist/src/dashboard/migrator.js +30 -159
- package/dist/src/dashboard/migrator_tables.d.ts +19 -0
- package/dist/src/dashboard/migrator_tables.js +153 -0
- package/dist/src/dashboard/overview_queries.d.ts +66 -0
- package/dist/src/dashboard/overview_queries.js +155 -0
- package/dist/src/dashboard/overview_query_runners.d.ts +25 -0
- package/dist/src/dashboard/overview_query_runners.js +84 -0
- package/dist/src/dashboard/overview_store_queries.d.ts +40 -0
- package/dist/src/dashboard/overview_store_queries.js +69 -0
- package/dist/src/dashboard/paginate_helper.d.ts +12 -0
- package/dist/src/dashboard/paginate_helper.js +33 -0
- package/dist/src/dashboard/query_explain_handler.d.ts +10 -0
- package/dist/src/dashboard/query_explain_handler.js +80 -0
- package/dist/src/dashboard/read_queries.d.ts +32 -0
- package/dist/src/dashboard/read_queries.js +107 -0
- package/dist/src/dashboard/saved_filter_queries.d.ts +10 -0
- package/dist/src/dashboard/saved_filter_queries.js +24 -0
- package/dist/src/dashboard/storage_stats.d.ts +41 -0
- package/dist/src/dashboard/storage_stats.js +81 -0
- package/dist/src/dashboard/write_queue.d.ts +106 -0
- package/dist/src/dashboard/write_queue.js +225 -0
- package/dist/src/data/data_access.d.ts +2 -39
- package/dist/src/data/data_access.js +17 -193
- package/dist/src/data/data_access_helpers.d.ts +130 -0
- package/dist/src/data/data_access_helpers.js +212 -0
- package/dist/src/debug/debug_store.js +37 -32
- package/dist/src/debug/email_collector.d.ts +1 -10
- package/dist/src/debug/email_collector.js +78 -81
- package/dist/src/debug/event_collector.d.ts +0 -9
- package/dist/src/debug/event_collector.js +79 -62
- package/dist/src/debug/query_collector.js +23 -19
- package/dist/src/debug/route_inspector.d.ts +1 -5
- package/dist/src/debug/route_inspector.js +50 -51
- package/dist/src/debug/trace_collector.d.ts +9 -1
- package/dist/src/debug/trace_collector.js +21 -15
- package/dist/src/debug/types.d.ts +1 -1
- package/dist/src/define_config.d.ts +0 -65
- package/dist/src/define_config.js +93 -333
- 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 +3 -3
- package/dist/src/edge/client-vue/stats-bar.js +3 -3
- package/dist/src/edge/plugin.d.ts +0 -16
- package/dist/src/edge/plugin.js +57 -64
- package/dist/src/engine/request_metrics.d.ts +1 -0
- package/dist/src/engine/request_metrics.js +32 -42
- package/dist/src/middleware/request_tracking_middleware.d.ts +2 -8
- package/dist/src/middleware/request_tracking_middleware.js +65 -93
- package/dist/src/provider/auth_middleware_detector.d.ts +16 -0
- package/dist/src/provider/auth_middleware_detector.js +97 -0
- package/dist/src/provider/boot_helpers.d.ts +20 -0
- package/dist/src/provider/boot_helpers.js +91 -0
- package/dist/src/provider/boot_initializer.d.ts +28 -0
- package/dist/src/provider/boot_initializer.js +35 -0
- package/dist/src/provider/dashboard_init.d.ts +30 -0
- package/dist/src/provider/dashboard_init.js +138 -0
- package/dist/src/provider/dashboard_setup.d.ts +25 -0
- package/dist/src/provider/dashboard_setup.js +78 -0
- package/dist/src/provider/diagnostics.d.ts +134 -0
- package/dist/src/provider/diagnostics.js +127 -0
- package/dist/src/provider/email_bridge.d.ts +43 -0
- package/dist/src/provider/email_bridge.js +80 -0
- package/dist/src/provider/email_helpers.d.ts +13 -0
- package/dist/src/provider/email_helpers.js +68 -0
- package/dist/src/provider/pino_hook.d.ts +17 -0
- package/dist/src/provider/pino_hook.js +35 -0
- package/dist/src/provider/provider_helpers_extra.d.ts +47 -0
- package/dist/src/provider/provider_helpers_extra.js +177 -0
- package/dist/src/provider/server_stats_provider.d.ts +39 -85
- package/dist/src/provider/server_stats_provider.js +132 -951
- package/dist/src/provider/shutdown_helpers.d.ts +43 -0
- package/dist/src/provider/shutdown_helpers.js +70 -0
- package/dist/src/provider/toolbar_setup.d.ts +57 -0
- package/dist/src/provider/toolbar_setup.js +141 -0
- package/dist/src/routes/dashboard_routes.d.ts +14 -0
- package/dist/src/routes/dashboard_routes.js +197 -0
- package/dist/src/routes/debug_routes.d.ts +14 -0
- package/dist/src/routes/debug_routes.js +101 -0
- package/dist/src/routes/register_routes.d.ts +0 -78
- package/dist/src/routes/register_routes.js +22 -352
- package/dist/src/routes/stats_routes.d.ts +5 -0
- package/dist/src/routes/stats_routes.js +14 -0
- package/dist/src/styles/components.css +96 -0
- package/dist/src/styles/dashboard.css +8 -90
- package/dist/src/styles/debug-panel.css +1 -31
- package/dist/src/types.d.ts +305 -14
- package/dist/vue/{CacheSection-oFAJL3mo.js → CacheSection-ITqvpfH5.js} +1 -1
- package/dist/vue/{ConfigSection-BhfJ4KqL.js → ConfigSection-DTn3GslE.js} +1 -1
- package/dist/vue/{EmailsSection-BcNyhyHs.js → EmailsSection-DtLJ4XoS.js} +1 -1
- package/dist/vue/{EventsSection-r60Q5Lmu.js → EventsSection-BOYYz0Ty.js} +1 -1
- package/dist/vue/{JobsSection-BHL-hkQw.js → JobsSection-BazTxcJL.js} +1 -1
- package/dist/vue/{LogsSection-DRMGzJmg.js → LogsSection-D55PjTKX.js} +9 -3
- package/dist/vue/{LogsTab-Bg3o0Mm6.js → LogsTab-47zEK7jL.js} +4 -1
- package/dist/vue/{OverviewSection-CXh6Ja1B.js → OverviewSection-1uBKo-Tu.js} +1 -1
- package/dist/vue/{QueriesSection-IodIsCJ-.js → QueriesSection-rpoZ4ogd.js} +1 -1
- package/dist/vue/{RequestsSection-BPuMdmMc.js → RequestsSection-x7LvT0MC.js} +1 -1
- package/dist/vue/{RoutesSection-NKo3Rbq3.js → RoutesSection-CCD0zZqQ.js} +1 -1
- package/dist/vue/composables/useDashboardData.d.ts +12 -23
- package/dist/vue/index-C8MxnS7Q.js +1232 -0
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/react/CacheTab-CA8LB1J5.js +0 -123
- package/dist/react/CustomPaneTab-Bxtv_8Rw.js +0 -104
- package/dist/react/EmailsTab-BDhEiomM.js +0 -153
- package/dist/react/EventsTab-CMfY98Rl.js +0 -63
- package/dist/react/LogsTab-CicucmVk.js +0 -103
- package/dist/react/RoutesTab-DgVzd2PZ.js +0 -74
- package/dist/react/index-Cflz9Ebj.js +0 -1069
- package/dist/vue/index-Dtgysd26.js +0 -1229
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";function zs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const de={},Pt=[],He=()=>{},Hn=()=>!1,ds=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ws=e=>e.startsWith("onUpdate:"),be=Object.assign,qs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Hr=Object.prototype.hasOwnProperty,ie=(e,t)=>Hr.call(e,t),q=Array.isArray,At=e=>Ht(e)==="[object Map]",Un=e=>Ht(e)==="[object Set]",Kn=e=>Ht(e)==="[object Date]",J=e=>typeof e=="function",ge=e=>typeof e=="string",Ue=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",Vn=e=>(ae(e)||J(e))&&J(e.then)&&J(e.catch),zn=Object.prototype.toString,Ht=e=>zn.call(e),Ur=e=>Ht(e).slice(8,-1),Wn=e=>Ht(e)==="[object Object]",Js=e=>ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ut=zs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Kr=/-\w/g,dt=fs(e=>e.replace(Kr,t=>t.slice(1).toUpperCase())),Vr=/\B([A-Z])/g,ft=fs(e=>e.replace(Vr,"-$1").toLowerCase()),qn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gs=fs(e=>e?`on${qn(e)}`:""),ht=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Jn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gn;const ps=()=>Gn||(Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pt(e){if(q(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=ge(n)?Jr(n):pt(n);if(l)for(const r in l)t[r]=l[r]}return t}else if(ge(e)||ae(e))return e}const zr=/;(?![^(]*\))/g,Wr=/:([^]+)/,qr=/\/\*[^]*?\*\//g;function Jr(e){const t={};return e.replace(qr,"").split(zr).forEach(s=>{if(s){const n=s.split(Wr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(ge(e))t=e;else if(q(e))for(let s=0;s<e.length;s++){const n=H(e[s]);n&&(t+=n+" ")}else if(ae(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Gr=zs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Qn(e){return!!e||e===""}function Qr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Ys(e[n],t[n]);return s}function Ys(e,t){if(e===t)return!0;let s=Kn(e),n=Kn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ue(e),n=Ue(t),s||n)return e===t;if(s=q(e),n=q(t),s||n)return s&&n?Qr(e,t):!1;if(s=ae(e),n=ae(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!Ys(e[i],t[i]))return!1}}return String(e)===String(t)}const Yn=e=>!!(e&&e.__v_isRef===!0),m=e=>ge(e)?e:e==null?"":q(e)||ae(e)&&(e.toString===zn||!J(e.toString))?Yn(e)?m(e.value):JSON.stringify(e,Xn,2):String(e),Xn=(e,t)=>Yn(t)?Xn(e,t.value):At(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],r)=>(s[Xs(n,r)+" =>"]=l,s),{})}:Un(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Xs(s))}:Ue(t)?Xs(t):ae(t)&&!q(t)&&!Wn(t)?String(t):t,Xs=(e,t="")=>{var s;return Ue(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Te;class Yr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Te;try{return Te=this,t()}finally{Te=s}}}on(){++this._on===1&&(this.prevScope=Te,Te=this)}off(){this._on>0&&--this._on===0&&(Te=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function Xr(){return Te}let fe;const Zs=new WeakSet;class Zn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Te&&Te.active&&Te.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zs.has(this)&&(Zs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ol(this),sl(this);const t=fe,s=De;fe=this,De=!0;try{return this.fn()}finally{nl(this),fe=t,De=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nn(t);this.deps=this.depsTail=void 0,ol(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){sn(this)&&this.run()}get dirty(){return sn(this)}}let el=0,Kt,Vt;function tl(e,t=!1){if(e.flags|=8,t){e.next=Vt,Vt=e;return}e.next=Kt,Kt=e}function en(){el++}function tn(){if(--el>0)return;if(Vt){let t=Vt;for(Vt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function sl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function nl(e){let t,s=e.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),nn(n),Zr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}e.deps=t,e.depsTail=s}function sn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ll(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ll(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zt)||(e.globalVersion=zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!sn(e))))return;e.flags|=2;const t=e.dep,s=fe,n=De;fe=e,De=!0;try{sl(e);const l=e.fn(e._value);(t.version===0||ht(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{fe=s,De=n,nl(e),e.flags&=-3}}function nn(e,t=!1){const{dep:s,prevSub:n,nextSub:l}=e;if(n&&(n.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)nn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Zr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let De=!0;const rl=[];function Ke(){rl.push(De),De=!1}function Ve(){const e=rl.pop();De=e===void 0?!0:e}function ol(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=fe;fe=void 0;try{t()}finally{fe=s}}}let zt=0;class eo{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ln{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!fe||!De||fe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==fe)s=this.activeLink=new eo(fe,this),fe.deps?(s.prevDep=fe.depsTail,fe.depsTail.nextDep=s,fe.depsTail=s):fe.deps=fe.depsTail=s,il(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=fe.depsTail,s.nextDep=void 0,fe.depsTail.nextDep=s,fe.depsTail=s,fe.deps===s&&(fe.deps=n)}return s}trigger(t){this.version++,zt++,this.notify(t)}notify(t){en();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{tn()}}}function il(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)il(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const rn=new WeakMap,xt=Symbol(""),on=Symbol(""),Wt=Symbol("");function _e(e,t,s){if(De&&fe){let n=rn.get(e);n||rn.set(e,n=new Map);let l=n.get(s);l||(n.set(s,l=new ln),l.map=n,l.key=s),l.track()}}function st(e,t,s,n,l,r){const i=rn.get(e);if(!i){zt++;return}const a=u=>{u&&u.trigger()};if(en(),t==="clear")i.forEach(a);else{const u=q(e),p=u&&Js(s);if(u&&s==="length"){const f=Number(n);i.forEach((x,y)=>{(y==="length"||y===Wt||!Ue(y)&&y>=f)&&a(x)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),p&&a(i.get(Wt)),t){case"add":u?p&&a(i.get("length")):(a(i.get(xt)),At(e)&&a(i.get(on)));break;case"delete":u||(a(i.get(xt)),At(e)&&a(i.get(on)));break;case"set":At(e)&&a(i.get(xt));break}}tn()}function Mt(e){const t=re(e);return t===e?t:(_e(t,"iterate",Wt),Le(e)?t:t.map(je))}function gs(e){return _e(e=re(e),"iterate",Wt),e}function gt(e,t){return lt(e)?Lt(wt(e)?je(t):t):je(t)}const to={__proto__:null,[Symbol.iterator](){return an(this,Symbol.iterator,e=>gt(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>q(t)?Mt(t):t))},entries(){return an(this,"entries",e=>(e[1]=gt(this,e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,s=>s.map(n=>gt(this,n)),arguments)},find(e,t){return nt(this,"find",e,t,s=>gt(this,s),arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,s=>gt(this,s),arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return un(this,"includes",e)},indexOf(...e){return un(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return un(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return qt(this,"pop")},push(...e){return qt(this,"push",e)},reduce(e,...t){return al(this,"reduce",e,t)},reduceRight(e,...t){return al(this,"reduceRight",e,t)},shift(){return qt(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return qt(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return qt(this,"unshift",e)},values(){return an(this,"values",e=>gt(this,e))}};function an(e,t,s){const n=gs(e),l=n[t]();return n!==e&&!Le(e)&&(l._next=l.next,l.next=()=>{const r=l._next();return r.done||(r.value=s(r.value)),r}),l}const so=Array.prototype;function nt(e,t,s,n,l,r){const i=gs(e),a=i!==e&&!Le(e),u=i[t];if(u!==so[t]){const x=u.apply(e,r);return a?je(x):x}let p=s;i!==e&&(a?p=function(x,y){return s.call(this,gt(e,x),y,e)}:s.length>2&&(p=function(x,y){return s.call(this,x,y,e)}));const f=u.call(i,p,n);return a&&l?l(f):f}function al(e,t,s,n){const l=gs(e);let r=s;return l!==e&&(Le(e)?s.length>3&&(r=function(i,a,u){return s.call(this,i,a,u,e)}):r=function(i,a,u){return s.call(this,i,gt(e,a),u,e)}),l[t](r,...n)}function un(e,t,s){const n=re(e);_e(n,"iterate",Wt);const l=n[t](...s);return(l===-1||l===!1)&&hn(s[0])?(s[0]=re(s[0]),n[t](...s)):l}function qt(e,t,s=[]){Ke(),en();const n=re(e)[t].apply(e,s);return tn(),Ve(),n}const no=zs("__proto__,__v_isRef,__isVue"),ul=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ue));function lo(e){Ue(e)||(e=String(e));const t=re(this);return _e(t,"has",e),t.hasOwnProperty(e)}class cl{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const l=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(l?r?bl:gl:r?pl:hl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=q(t);if(!l){let u;if(i&&(u=to[s]))return u;if(s==="hasOwnProperty")return lo}const a=Reflect.get(t,s,ve(t)?t:n);if((Ue(s)?ul.has(s):no(s))||(l||_e(t,"get",s),r))return a;if(ve(a)){const u=i&&Js(s)?a:a.value;return l&&ae(u)?fn(u):u}return ae(a)?l?fn(a):dn(a):a}}class dl extends cl{constructor(t=!1){super(!1,t)}set(t,s,n,l){let r=t[s];const i=q(t)&&Js(s);if(!this._isShallow){const p=lt(r);if(!Le(n)&&!lt(n)&&(r=re(r),n=re(n)),!i&&ve(r)&&!ve(n))return p||(r.value=n),!0}const a=i?Number(s)<t.length:ie(t,s),u=Reflect.set(t,s,n,ve(t)?t:l);return t===re(l)&&(a?ht(n,r)&&st(t,"set",s,n):st(t,"add",s,n)),u}deleteProperty(t,s){const n=ie(t,s);t[s];const l=Reflect.deleteProperty(t,s);return l&&n&&st(t,"delete",s,void 0),l}has(t,s){const n=Reflect.has(t,s);return(!Ue(s)||!ul.has(s))&&_e(t,"has",s),n}ownKeys(t){return _e(t,"iterate",q(t)?"length":xt),Reflect.ownKeys(t)}}class fl extends cl{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const ro=new dl,oo=new fl,io=new dl(!0),ao=new fl(!0),cn=e=>e,bs=e=>Reflect.getPrototypeOf(e);function uo(e,t,s){return function(...n){const l=this.__v_raw,r=re(l),i=At(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,p=l[e](...n),f=s?cn:t?Lt:je;return!t&&_e(r,"iterate",u?on:xt),be(Object.create(p),{next(){const{value:x,done:y}=p.next();return y?{value:x,done:y}:{value:a?[f(x[0]),f(x[1])]:f(x),done:y}}})}}function vs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function co(e,t){const s={get(l){const r=this.__v_raw,i=re(r),a=re(l);e||(ht(l,a)&&_e(i,"get",l),_e(i,"get",a));const{has:u}=bs(i),p=t?cn:e?Lt:je;if(u.call(i,l))return p(r.get(l));if(u.call(i,a))return p(r.get(a));r!==i&&r.get(l)},get size(){const l=this.__v_raw;return!e&&_e(re(l),"iterate",xt),l.size},has(l){const r=this.__v_raw,i=re(r),a=re(l);return e||(ht(l,a)&&_e(i,"has",l),_e(i,"has",a)),l===a?r.has(l):r.has(l)||r.has(a)},forEach(l,r){const i=this,a=i.__v_raw,u=re(a),p=t?cn:e?Lt:je;return!e&&_e(u,"iterate",xt),a.forEach((f,x)=>l.call(r,p(f),p(x),i))}};return be(s,e?{add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear")}:{add(l){!t&&!Le(l)&&!lt(l)&&(l=re(l));const r=re(this);return bs(r).has.call(r,l)||(r.add(l),st(r,"add",l,l)),this},set(l,r){!t&&!Le(r)&&!lt(r)&&(r=re(r));const i=re(this),{has:a,get:u}=bs(i);let p=a.call(i,l);p||(l=re(l),p=a.call(i,l));const f=u.call(i,l);return i.set(l,r),p?ht(r,f)&&st(i,"set",l,r):st(i,"add",l,r),this},delete(l){const r=re(this),{has:i,get:a}=bs(r);let u=i.call(r,l);u||(l=re(l),u=i.call(r,l)),a&&a.call(r,l);const p=r.delete(l);return u&&st(r,"delete",l,void 0),p},clear(){const l=re(this),r=l.size!==0,i=l.clear();return r&&st(l,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=uo(l,e,t)}),s}function ms(e,t){const s=co(e,t);return(n,l,r)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?n:Reflect.get(ie(s,l)&&l in n?s:n,l,r)}const fo={get:ms(!1,!1)},ho={get:ms(!1,!0)},po={get:ms(!0,!1)},go={get:ms(!0,!0)},hl=new WeakMap,pl=new WeakMap,gl=new WeakMap,bl=new WeakMap;function bo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vo(e){return e.__v_skip||!Object.isExtensible(e)?0:bo(Ur(e))}function dn(e){return lt(e)?e:ys(e,!1,ro,fo,hl)}function mo(e){return ys(e,!1,io,ho,pl)}function fn(e){return ys(e,!0,oo,po,gl)}function qh(e){return ys(e,!0,ao,go,bl)}function ys(e,t,s,n,l){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=vo(e);if(r===0)return e;const i=l.get(e);if(i)return i;const a=new Proxy(e,r===2?n:s);return l.set(e,a),a}function wt(e){return lt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function Le(e){return!!(e&&e.__v_isShallow)}function hn(e){return e?!!e.__v_raw:!1}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function yo(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&Jn(e,"__v_skip",!0),e}const je=e=>ae(e)?dn(e):e,Lt=e=>ae(e)?fn(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function z(e){return _o(e,!1)}function _o(e,t){return ve(e)?e:new xo(e,t)}class xo{constructor(t,s){this.dep=new ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:re(t),this._value=s?t:je(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Le(t)||lt(t);t=n?t:re(t),ht(t,s)&&(this._rawValue=t,this._value=n?t:je(t),this.dep.trigger())}}function T(e){return ve(e)?e.value:e}const wo={get:(e,t,s)=>t==="__v_raw"?e:T(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const l=e[t];return ve(l)&&!ve(s)?(l.value=s,!0):Reflect.set(e,t,s,n)}};function vl(e){return wt(e)?e:new Proxy(e,wo)}class ko{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ln(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return tl(this,!0),!0}get value(){const t=this.dep.track();return ll(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $o(e,t,s=!1){let n,l;return J(e)?n=e:(n=e.get,l=e.set),new ko(n,l,s)}const _s={},xs=new WeakMap;let kt;function Co(e,t=!1,s=kt){if(s){let n=xs.get(s);n||xs.set(s,n=[]),n.push(e)}}function To(e,t,s=de){const{immediate:n,deep:l,once:r,scheduler:i,augmentJob:a,call:u}=s,p=O=>l?O:Le(O)||l===!1||l===0?rt(O,1):rt(O);let f,x,y,g,$=!1,_=!1;if(ve(e)?(x=()=>e.value,$=Le(e)):wt(e)?(x=()=>p(e),$=!0):q(e)?(_=!0,$=e.some(O=>wt(O)||Le(O)),x=()=>e.map(O=>{if(ve(O))return O.value;if(wt(O))return p(O);if(J(O))return u?u(O,2):O()})):J(e)?t?x=u?()=>u(e,2):e:x=()=>{if(y){Ke();try{y()}finally{Ve()}}const O=kt;kt=f;try{return u?u(e,3,[g]):e(g)}finally{kt=O}}:x=He,t&&l){const O=x,w=l===!0?1/0:l;x=()=>rt(O(),w)}const K=Xr(),S=()=>{f.stop(),K&&K.active&&qs(K.effects,f)};if(r&&t){const O=t;t=(...w)=>{O(...w),S()}}let b=_?new Array(e.length).fill(_s):_s;const k=O=>{if(!(!(f.flags&1)||!f.dirty&&!O))if(t){const w=f.run();if(l||$||(_?w.some((B,N)=>ht(B,b[N])):ht(w,b))){y&&y();const B=kt;kt=f;try{const N=[w,b===_s?void 0:_&&b[0]===_s?[]:b,g];b=w,u?u(t,3,N):t(...N)}finally{kt=B}}}else f.run()};return a&&a(k),f=new Zn(x),f.scheduler=i?()=>i(k,!1):k,g=O=>Co(O,!1,f),y=f.onStop=()=>{const O=xs.get(f);if(O){if(u)u(O,4);else for(const w of O)w();xs.delete(f)}},t?n?k(!0):b=f.run():i?i(k.bind(null,!0),!0):f.run(),S.pause=f.pause.bind(f),S.resume=f.resume.bind(f),S.stop=S,S}function rt(e,t=1/0,s){if(t<=0||!ae(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ve(e))rt(e.value,t,s);else if(q(e))for(let n=0;n<e.length;n++)rt(e[n],t,s);else if(Un(e)||At(e))e.forEach(n=>{rt(n,t,s)});else if(Wn(e)){for(const n in e)rt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&rt(e[n],t,s)}return e}const Jt=[];let pn=!1;function Jh(e,...t){if(pn)return;pn=!0,Ke();const s=Jt.length?Jt[Jt.length-1].component:null,n=s&&s.appContext.config.warnHandler,l=So();if(n)Ot(n,s,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),s&&s.proxy,l.map(({vnode:r})=>`at <${ar(s,r.type)}>`).join(`
|
|
1
|
+
(function(){"use strict";function zs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const de={},Pt=[],He=()=>{},Hn=()=>!1,ds=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ws=e=>e.startsWith("onUpdate:"),be=Object.assign,qs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Ur=Object.prototype.hasOwnProperty,ie=(e,t)=>Ur.call(e,t),q=Array.isArray,At=e=>Ht(e)==="[object Map]",Un=e=>Ht(e)==="[object Set]",Kn=e=>Ht(e)==="[object Date]",J=e=>typeof e=="function",pe=e=>typeof e=="string",Ue=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",Vn=e=>(ae(e)||J(e))&&J(e.then)&&J(e.catch),zn=Object.prototype.toString,Ht=e=>zn.call(e),Kr=e=>Ht(e).slice(8,-1),Wn=e=>Ht(e)==="[object Object]",Js=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ut=zs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Vr=/-\w/g,dt=fs(e=>e.replace(Vr,t=>t.slice(1).toUpperCase())),zr=/\B([A-Z])/g,ft=fs(e=>e.replace(zr,"-$1").toLowerCase()),qn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gs=fs(e=>e?`on${qn(e)}`:""),ht=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Jn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gn;const gs=()=>Gn||(Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gt(e){if(q(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=pe(n)?Gr(n):gt(n);if(l)for(const r in l)t[r]=l[r]}return t}else if(pe(e)||ae(e))return e}const Wr=/;(?![^(]*\))/g,qr=/:([^]+)/,Jr=/\/\*[^]*?\*\//g;function Gr(e){const t={};return e.replace(Jr,"").split(Wr).forEach(s=>{if(s){const n=s.split(qr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(pe(e))t=e;else if(q(e))for(let s=0;s<e.length;s++){const n=H(e[s]);n&&(t+=n+" ")}else if(ae(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Qr=zs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Qn(e){return!!e||e===""}function Yr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Ys(e[n],t[n]);return s}function Ys(e,t){if(e===t)return!0;let s=Kn(e),n=Kn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ue(e),n=Ue(t),s||n)return e===t;if(s=q(e),n=q(t),s||n)return s&&n?Yr(e,t):!1;if(s=ae(e),n=ae(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!Ys(e[i],t[i]))return!1}}return String(e)===String(t)}const Yn=e=>!!(e&&e.__v_isRef===!0),m=e=>pe(e)?e:e==null?"":q(e)||ae(e)&&(e.toString===zn||!J(e.toString))?Yn(e)?m(e.value):JSON.stringify(e,Xn,2):String(e),Xn=(e,t)=>Yn(t)?Xn(e,t.value):At(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],r)=>(s[Xs(n,r)+" =>"]=l,s),{})}:Un(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Xs(s))}:Ue(t)?Xs(t):ae(t)&&!q(t)&&!Wn(t)?String(t):t,Xs=(e,t="")=>{var s;return Ue(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Te;class Xr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Te;try{return Te=this,t()}finally{Te=s}}}on(){++this._on===1&&(this.prevScope=Te,Te=this)}off(){this._on>0&&--this._on===0&&(Te=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function Zr(){return Te}let fe;const Zs=new WeakSet;class Zn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Te&&Te.active&&Te.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zs.has(this)&&(Zs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ol(this),sl(this);const t=fe,s=De;fe=this,De=!0;try{return this.fn()}finally{nl(this),fe=t,De=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nn(t);this.deps=this.depsTail=void 0,ol(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){sn(this)&&this.run()}get dirty(){return sn(this)}}let el=0,Kt,Vt;function tl(e,t=!1){if(e.flags|=8,t){e.next=Vt,Vt=e;return}e.next=Kt,Kt=e}function en(){el++}function tn(){if(--el>0)return;if(Vt){let t=Vt;for(Vt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function sl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function nl(e){let t,s=e.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),nn(n),eo(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}e.deps=t,e.depsTail=s}function sn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ll(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ll(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zt)||(e.globalVersion=zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!sn(e))))return;e.flags|=2;const t=e.dep,s=fe,n=De;fe=e,De=!0;try{sl(e);const l=e.fn(e._value);(t.version===0||ht(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{fe=s,De=n,nl(e),e.flags&=-3}}function nn(e,t=!1){const{dep:s,prevSub:n,nextSub:l}=e;if(n&&(n.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)nn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function eo(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let De=!0;const rl=[];function Ke(){rl.push(De),De=!1}function Ve(){const e=rl.pop();De=e===void 0?!0:e}function ol(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=fe;fe=void 0;try{t()}finally{fe=s}}}let zt=0;class to{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ln{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!fe||!De||fe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==fe)s=this.activeLink=new to(fe,this),fe.deps?(s.prevDep=fe.depsTail,fe.depsTail.nextDep=s,fe.depsTail=s):fe.deps=fe.depsTail=s,il(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=fe.depsTail,s.nextDep=void 0,fe.depsTail.nextDep=s,fe.depsTail=s,fe.deps===s&&(fe.deps=n)}return s}trigger(t){this.version++,zt++,this.notify(t)}notify(t){en();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{tn()}}}function il(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)il(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const rn=new WeakMap,xt=Symbol(""),on=Symbol(""),Wt=Symbol("");function _e(e,t,s){if(De&&fe){let n=rn.get(e);n||rn.set(e,n=new Map);let l=n.get(s);l||(n.set(s,l=new ln),l.map=n,l.key=s),l.track()}}function st(e,t,s,n,l,r){const i=rn.get(e);if(!i){zt++;return}const a=u=>{u&&u.trigger()};if(en(),t==="clear")i.forEach(a);else{const u=q(e),g=u&&Js(s);if(u&&s==="length"){const f=Number(n);i.forEach((x,y)=>{(y==="length"||y===Wt||!Ue(y)&&y>=f)&&a(x)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),g&&a(i.get(Wt)),t){case"add":u?g&&a(i.get("length")):(a(i.get(xt)),At(e)&&a(i.get(on)));break;case"delete":u||(a(i.get(xt)),At(e)&&a(i.get(on)));break;case"set":At(e)&&a(i.get(xt));break}}tn()}function Mt(e){const t=re(e);return t===e?t:(_e(t,"iterate",Wt),Le(e)?t:t.map(Fe))}function ps(e){return _e(e=re(e),"iterate",Wt),e}function pt(e,t){return lt(e)?Lt(wt(e)?Fe(t):t):Fe(t)}const so={__proto__:null,[Symbol.iterator](){return an(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>q(t)?Mt(t):t))},entries(){return an(this,"entries",e=>(e[1]=pt(this,e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,s=>s.map(n=>pt(this,n)),arguments)},find(e,t){return nt(this,"find",e,t,s=>pt(this,s),arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,s=>pt(this,s),arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return un(this,"includes",e)},indexOf(...e){return un(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return un(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return qt(this,"pop")},push(...e){return qt(this,"push",e)},reduce(e,...t){return al(this,"reduce",e,t)},reduceRight(e,...t){return al(this,"reduceRight",e,t)},shift(){return qt(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return qt(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return qt(this,"unshift",e)},values(){return an(this,"values",e=>pt(this,e))}};function an(e,t,s){const n=ps(e),l=n[t]();return n!==e&&!Le(e)&&(l._next=l.next,l.next=()=>{const r=l._next();return r.done||(r.value=s(r.value)),r}),l}const no=Array.prototype;function nt(e,t,s,n,l,r){const i=ps(e),a=i!==e&&!Le(e),u=i[t];if(u!==no[t]){const x=u.apply(e,r);return a?Fe(x):x}let g=s;i!==e&&(a?g=function(x,y){return s.call(this,pt(e,x),y,e)}:s.length>2&&(g=function(x,y){return s.call(this,x,y,e)}));const f=u.call(i,g,n);return a&&l?l(f):f}function al(e,t,s,n){const l=ps(e);let r=s;return l!==e&&(Le(e)?s.length>3&&(r=function(i,a,u){return s.call(this,i,a,u,e)}):r=function(i,a,u){return s.call(this,i,pt(e,a),u,e)}),l[t](r,...n)}function un(e,t,s){const n=re(e);_e(n,"iterate",Wt);const l=n[t](...s);return(l===-1||l===!1)&&hn(s[0])?(s[0]=re(s[0]),n[t](...s)):l}function qt(e,t,s=[]){Ke(),en();const n=re(e)[t].apply(e,s);return tn(),Ve(),n}const lo=zs("__proto__,__v_isRef,__isVue"),ul=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ue));function ro(e){Ue(e)||(e=String(e));const t=re(this);return _e(t,"has",e),t.hasOwnProperty(e)}class cl{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const l=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(l?r?bl:pl:r?gl:hl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=q(t);if(!l){let u;if(i&&(u=so[s]))return u;if(s==="hasOwnProperty")return ro}const a=Reflect.get(t,s,ve(t)?t:n);if((Ue(s)?ul.has(s):lo(s))||(l||_e(t,"get",s),r))return a;if(ve(a)){const u=i&&Js(s)?a:a.value;return l&&ae(u)?fn(u):u}return ae(a)?l?fn(a):dn(a):a}}class dl extends cl{constructor(t=!1){super(!1,t)}set(t,s,n,l){let r=t[s];const i=q(t)&&Js(s);if(!this._isShallow){const g=lt(r);if(!Le(n)&&!lt(n)&&(r=re(r),n=re(n)),!i&&ve(r)&&!ve(n))return g||(r.value=n),!0}const a=i?Number(s)<t.length:ie(t,s),u=Reflect.set(t,s,n,ve(t)?t:l);return t===re(l)&&(a?ht(n,r)&&st(t,"set",s,n):st(t,"add",s,n)),u}deleteProperty(t,s){const n=ie(t,s);t[s];const l=Reflect.deleteProperty(t,s);return l&&n&&st(t,"delete",s,void 0),l}has(t,s){const n=Reflect.has(t,s);return(!Ue(s)||!ul.has(s))&&_e(t,"has",s),n}ownKeys(t){return _e(t,"iterate",q(t)?"length":xt),Reflect.ownKeys(t)}}class fl extends cl{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const oo=new dl,io=new fl,ao=new dl(!0),uo=new fl(!0),cn=e=>e,bs=e=>Reflect.getPrototypeOf(e);function co(e,t,s){return function(...n){const l=this.__v_raw,r=re(l),i=At(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,g=l[e](...n),f=s?cn:t?Lt:Fe;return!t&&_e(r,"iterate",u?on:xt),be(Object.create(g),{next(){const{value:x,done:y}=g.next();return y?{value:x,done:y}:{value:a?[f(x[0]),f(x[1])]:f(x),done:y}}})}}function vs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fo(e,t){const s={get(l){const r=this.__v_raw,i=re(r),a=re(l);e||(ht(l,a)&&_e(i,"get",l),_e(i,"get",a));const{has:u}=bs(i),g=t?cn:e?Lt:Fe;if(u.call(i,l))return g(r.get(l));if(u.call(i,a))return g(r.get(a));r!==i&&r.get(l)},get size(){const l=this.__v_raw;return!e&&_e(re(l),"iterate",xt),l.size},has(l){const r=this.__v_raw,i=re(r),a=re(l);return e||(ht(l,a)&&_e(i,"has",l),_e(i,"has",a)),l===a?r.has(l):r.has(l)||r.has(a)},forEach(l,r){const i=this,a=i.__v_raw,u=re(a),g=t?cn:e?Lt:Fe;return!e&&_e(u,"iterate",xt),a.forEach((f,x)=>l.call(r,g(f),g(x),i))}};return be(s,e?{add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear")}:{add(l){!t&&!Le(l)&&!lt(l)&&(l=re(l));const r=re(this);return bs(r).has.call(r,l)||(r.add(l),st(r,"add",l,l)),this},set(l,r){!t&&!Le(r)&&!lt(r)&&(r=re(r));const i=re(this),{has:a,get:u}=bs(i);let g=a.call(i,l);g||(l=re(l),g=a.call(i,l));const f=u.call(i,l);return i.set(l,r),g?ht(r,f)&&st(i,"set",l,r):st(i,"add",l,r),this},delete(l){const r=re(this),{has:i,get:a}=bs(r);let u=i.call(r,l);u||(l=re(l),u=i.call(r,l)),a&&a.call(r,l);const g=r.delete(l);return u&&st(r,"delete",l,void 0),g},clear(){const l=re(this),r=l.size!==0,i=l.clear();return r&&st(l,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=co(l,e,t)}),s}function ms(e,t){const s=fo(e,t);return(n,l,r)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?n:Reflect.get(ie(s,l)&&l in n?s:n,l,r)}const ho={get:ms(!1,!1)},go={get:ms(!1,!0)},po={get:ms(!0,!1)},bo={get:ms(!0,!0)},hl=new WeakMap,gl=new WeakMap,pl=new WeakMap,bl=new WeakMap;function vo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mo(e){return e.__v_skip||!Object.isExtensible(e)?0:vo(Kr(e))}function dn(e){return lt(e)?e:ys(e,!1,oo,ho,hl)}function yo(e){return ys(e,!1,ao,go,gl)}function fn(e){return ys(e,!0,io,po,pl)}function tg(e){return ys(e,!0,uo,bo,bl)}function ys(e,t,s,n,l){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=mo(e);if(r===0)return e;const i=l.get(e);if(i)return i;const a=new Proxy(e,r===2?n:s);return l.set(e,a),a}function wt(e){return lt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function Le(e){return!!(e&&e.__v_isShallow)}function hn(e){return e?!!e.__v_raw:!1}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function _o(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&Jn(e,"__v_skip",!0),e}const Fe=e=>ae(e)?dn(e):e,Lt=e=>ae(e)?fn(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function z(e){return xo(e,!1)}function xo(e,t){return ve(e)?e:new wo(e,t)}class wo{constructor(t,s){this.dep=new ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:re(t),this._value=s?t:Fe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Le(t)||lt(t);t=n?t:re(t),ht(t,s)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function T(e){return ve(e)?e.value:e}const ko={get:(e,t,s)=>t==="__v_raw"?e:T(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const l=e[t];return ve(l)&&!ve(s)?(l.value=s,!0):Reflect.set(e,t,s,n)}};function vl(e){return wt(e)?e:new Proxy(e,ko)}class $o{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ln(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return tl(this,!0),!0}get value(){const t=this.dep.track();return ll(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Co(e,t,s=!1){let n,l;return J(e)?n=e:(n=e.get,l=e.set),new $o(n,l,s)}const _s={},xs=new WeakMap;let kt;function To(e,t=!1,s=kt){if(s){let n=xs.get(s);n||xs.set(s,n=[]),n.push(e)}}function So(e,t,s=de){const{immediate:n,deep:l,once:r,scheduler:i,augmentJob:a,call:u}=s,g=R=>l?R:Le(R)||l===!1||l===0?rt(R,1):rt(R);let f,x,y,p,k=!1,_=!1;if(ve(e)?(x=()=>e.value,k=Le(e)):wt(e)?(x=()=>g(e),k=!0):q(e)?(_=!0,k=e.some(R=>wt(R)||Le(R)),x=()=>e.map(R=>{if(ve(R))return R.value;if(wt(R))return g(R);if(J(R))return u?u(R,2):R()})):J(e)?t?x=u?()=>u(e,2):e:x=()=>{if(y){Ke();try{y()}finally{Ve()}}const R=kt;kt=f;try{return u?u(e,3,[p]):e(p)}finally{kt=R}}:x=He,t&&l){const R=x,$=l===!0?1/0:l;x=()=>rt(R(),$)}const K=Zr(),S=()=>{f.stop(),K&&K.active&&qs(K.effects,f)};if(r&&t){const R=t;t=(...$)=>{R(...$),S()}}let b=_?new Array(e.length).fill(_s):_s;const w=R=>{if(!(!(f.flags&1)||!f.dirty&&!R))if(t){const $=f.run();if(l||k||(_?$.some((N,B)=>ht(N,b[B])):ht($,b))){y&&y();const N=kt;kt=f;try{const B=[$,b===_s?void 0:_&&b[0]===_s?[]:b,p];b=$,u?u(t,3,B):t(...B)}finally{kt=N}}}else f.run()};return a&&a(w),f=new Zn(x),f.scheduler=i?()=>i(w,!1):w,p=R=>To(R,!1,f),y=f.onStop=()=>{const R=xs.get(f);if(R){if(u)u(R,4);else for(const $ of R)$();xs.delete(f)}},t?n?w(!0):b=f.run():i?i(w.bind(null,!0),!0):f.run(),S.pause=f.pause.bind(f),S.resume=f.resume.bind(f),S.stop=S,S}function rt(e,t=1/0,s){if(t<=0||!ae(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ve(e))rt(e.value,t,s);else if(q(e))for(let n=0;n<e.length;n++)rt(e[n],t,s);else if(Un(e)||At(e))e.forEach(n=>{rt(n,t,s)});else if(Wn(e)){for(const n in e)rt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&rt(e[n],t,s)}return e}const Jt=[];let gn=!1;function sg(e,...t){if(gn)return;gn=!0,Ke();const s=Jt.length?Jt[Jt.length-1].component:null,n=s&&s.appContext.config.warnHandler,l=Eo();if(n)Ot(n,s,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),s&&s.proxy,l.map(({vnode:r})=>`at <${ar(s,r.type)}>`).join(`
|
|
2
2
|
`),l]);else{const r=[`[Vue warn]: ${e}`,...t];l.length&&r.push(`
|
|
3
|
-
`,...
|
|
4
|
-
`],...Po(s))}),t}function Po({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,l=` at <${ar(e.component,e.type,n)}`,r=">"+s;return e.props?[l,...Ao(e.props),r]:[l+r]}function Ao(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...ml(n,e[n]))}),s.length>3&&t.push(" ..."),t}function ml(e,t,s){return ge(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ve(t)?(t=ml(e,re(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):J(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=re(t),s?t:[`${e}=`,t])}function Ot(e,t,s,n){try{return n?e(...n):e()}catch(l){Gt(l,t,s)}}function ze(e,t,s,n){if(J(e)){const l=Ot(e,t,s,n);return l&&Vn(l)&&l.catch(r=>{Gt(r,t,s)}),l}if(q(e)){const l=[];for(let r=0;r<e.length;r++)l.push(ze(e[r],t,s,n));return l}}function Gt(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||de;if(t){let a=t.parent;const u=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const f=a.ec;if(f){for(let x=0;x<f.length;x++)if(f[x](e,u,p)===!1)return}a=a.parent}if(r){Ke(),Ot(r,null,10,[e,u,p]),Ve();return}}Mo(e,s,l,n,i)}function Mo(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ke=[];let We=-1;const Rt=[];let bt=null,It=0;const yl=Promise.resolve();let ws=null;function gn(e){const t=ws||yl;return e?t.then(this?e.bind(this):e):t}function Lo(e){let t=We+1,s=ke.length;for(;t<s;){const n=t+s>>>1,l=ke[n],r=Qt(l);r<e||r===e&&l.flags&2?t=n+1:s=n}return t}function bn(e){if(!(e.flags&1)){const t=Qt(e),s=ke[ke.length-1];!s||!(e.flags&2)&&t>=Qt(s)?ke.push(e):ke.splice(Lo(t),0,e),e.flags|=1,_l()}}function _l(){ws||(ws=yl.then(kl))}function Oo(e){q(e)?Rt.push(...e):bt&&e.id===-1?bt.splice(It+1,0,e):e.flags&1||(Rt.push(e),e.flags|=1),_l()}function xl(e,t,s=We+1){for(;s<ke.length;s++){const n=ke[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ke.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function wl(e){if(Rt.length){const t=[...new Set(Rt)].sort((s,n)=>Qt(s)-Qt(n));if(Rt.length=0,bt){bt.push(...t);return}for(bt=t,It=0;It<bt.length;It++){const s=bt[It];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}bt=null,It=0}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kl(e){try{for(We=0;We<ke.length;We++){const t=ke[We];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ot(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;We<ke.length;We++){const t=ke[We];t&&(t.flags&=-2)}We=-1,ke.length=0,wl(),ws=null,(ke.length||Rt.length)&&kl()}}let Oe=null,$l=null;function ks(e){const t=Oe;return Oe=e,$l=e&&e.type.__scopeId||null,t}function Ro(e,t=Oe,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&Os(-1);const r=ks(t);let i;try{i=e(...l)}finally{ks(r),n._d&&Os(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function qe(e,t){if(Oe===null)return e;const s=js(Oe),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[r,i,a,u=de]=t[l];r&&(J(r)&&(r={mounted:r,updated:r}),r.deep&&rt(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function $t(e,t,s,n){const l=e.dirs,r=t&&t.dirs;for(let i=0;i<l.length;i++){const a=l[i];r&&(a.oldValue=r[i].value);let u=a.dir[n];u&&(Ke(),ze(u,s,8,[e.el,a,e,t]),Ve())}}function Io(e,t){if(we){let s=we.provides;const n=we.parent&&we.parent.provides;n===s&&(s=we.provides=Object.create(n)),s[e]=t}}function $s(e,t,s=!1){const n=Oi();if(n||Dt){let l=Dt?Dt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return s&&J(t)?t.call(n&&n.proxy):t}}const Do=Symbol.for("v-scx"),jo=()=>$s(Do);function ot(e,t,s){return Cl(e,t,s)}function Cl(e,t,s=de){const{immediate:n,deep:l,flush:r,once:i}=s,a=be({},s),u=t&&n||!t&&r!=="post";let p;if(Ft){if(r==="sync"){const g=jo();p=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=He,g.resume=He,g.pause=He,g}}const f=we;a.call=(g,$,_)=>ze(g,f,$,_);let x=!1;r==="post"?a.scheduler=g=>{Se(g,f&&f.suspense)}:r!=="sync"&&(x=!0,a.scheduler=(g,$)=>{$?g():bn(g)}),a.augmentJob=g=>{t&&(g.flags|=4),x&&(g.flags|=2,f&&(g.id=f.uid,g.i=f))};const y=To(e,t,a);return Ft&&(p?p.push(y):u&&y()),y}function Fo(e,t,s){const n=this.proxy,l=ge(e)?e.includes(".")?Tl(n,e):()=>n[e]:e.bind(n,n);let r;J(t)?r=t:(r=t.handler,s=t);const i=ls(this),a=Cl(l,r.bind(n),s);return i(),a}function Tl(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const Bo=Symbol("_vte"),No=e=>e.__isTeleport,Ho=Symbol("_leaveCb");function vn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xe(e,t){return J(e)?be({name:e.name},t,{setup:e}):e}function mn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Sl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Cs=new WeakMap;function Yt(e,t,s,n,l=!1){if(q(e)){e.forEach((_,K)=>Yt(_,t&&(q(t)?t[K]:t),s,n,l));return}if(Xt(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Yt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?js(n.component):n.el,i=l?null:r,{i:a,r:u}=e,p=t&&t.r,f=a.refs===de?a.refs={}:a.refs,x=a.setupState,y=re(x),g=x===de?Hn:_=>Sl(f,_)?!1:ie(y,_),$=(_,K)=>!(K&&Sl(f,K));if(p!=null&&p!==u){if(El(t),ge(p))f[p]=null,g(p)&&(x[p]=null);else if(ve(p)){const _=t;$(p,_.k)&&(p.value=null),_.k&&(f[_.k]=null)}}if(J(u))Ot(u,a,12,[i,f]);else{const _=ge(u),K=ve(u);if(_||K){const S=()=>{if(e.f){const b=_?g(u)?x[u]:f[u]:$()||!e.k?u.value:f[e.k];if(l)q(b)&&qs(b,r);else if(q(b))b.includes(r)||b.push(r);else if(_)f[u]=[r],g(u)&&(x[u]=f[u]);else{const k=[r];$(u,e.k)&&(u.value=k),e.k&&(f[e.k]=k)}}else _?(f[u]=i,g(u)&&(x[u]=i)):K&&($(u,e.k)&&(u.value=i),e.k&&(f[e.k]=i))};if(i){const b=()=>{S(),Cs.delete(e)};b.id=-1,Cs.set(e,b),Se(b,s)}else El(e),S()}}}function El(e){const t=Cs.get(e);t&&(t.flags|=8,Cs.delete(e))}const Pl=e=>e.nodeType===8;ps().requestIdleCallback,ps().cancelIdleCallback;function Uo(e,t){if(Pl(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Pl(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const Xt=e=>!!e.type.__asyncLoader;function Fe(e){J(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:l=200,hydrate:r,timeout:i,suspensible:a=!0,onError:u}=e;let p=null,f,x=0;const y=()=>(x++,p=null,g()),g=()=>{let $;return p||($=p=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),u)return new Promise((K,S)=>{u(_,()=>K(y()),()=>S(_),x+1)});throw _}).then(_=>$!==p&&p?p:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate($,_,K){let S=!1;(_.bu||(_.bu=[])).push(()=>S=!0);const b=()=>{S||K()},k=r?()=>{const O=r(b,w=>Uo($,w));O&&(_.bum||(_.bum=[])).push(O)}:b;f?k():g().then(()=>!_.isUnmounted&&k())},get __asyncResolved(){return f},setup(){const $=we;if(mn($),f)return()=>Ts(f,$);const _=k=>{p=null,Gt(k,$,13,!n)};if(a&&$.suspense||Ft)return g().then(k=>()=>Ts(k,$)).catch(k=>(_(k),()=>n?pe(n,{error:k}):null));const K=z(!1),S=z(),b=z(!!l);return l&&setTimeout(()=>{b.value=!1},l),i!=null&&setTimeout(()=>{if(!K.value&&!S.value){const k=new Error(`Async component timed out after ${i}ms.`);_(k),S.value=k}},i),g().then(()=>{K.value=!0,$.parent&&yn($.parent.vnode)&&$.parent.update()}).catch(k=>{_(k),S.value=k}),()=>{if(K.value&&f)return Ts(f,$);if(S.value&&n)return pe(n,{error:S.value});if(s&&!b.value)return Ts(s,$)}}})}function Ts(e,t){const{ref:s,props:n,children:l,ce:r}=t.vnode,i=pe(e,n,l);return i.ref=s,i.ce=r,delete t.vnode.ce,i}const yn=e=>e.type.__isKeepAlive;function Ko(e,t){Al(e,"a",t)}function Vo(e,t){Al(e,"da",t)}function Al(e,t,s=we){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Ss(t,n,s),s){let l=s.parent;for(;l&&l.parent;)yn(l.parent.vnode)&&zo(n,t,s,l),l=l.parent}}function zo(e,t,s,n){const l=Ss(t,e,n,!0);Ps(()=>{qs(n[t],l)},s)}function Ss(e,t,s=we,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ke();const a=ls(s),u=ze(t,s,e,i);return a(),Ve(),u});return n?l.unshift(r):l.push(r),r}}const it=e=>(t,s=we)=>{(!Ft||e==="sp")&&Ss(e,(...n)=>t(...n),s)},Wo=it("bm"),Ct=it("m"),qo=it("bu"),Jo=it("u"),Es=it("bum"),Ps=it("um"),Go=it("sp"),Qo=it("rtg"),Yo=it("rtc");function Xo(e,t=we){Ss("ec",e,t)}const Zo=Symbol.for("v-ndc");function X(e,t,s,n){let l;const r=s,i=q(e);if(i||ge(e)){const a=i&&wt(e);let u=!1,p=!1;a&&(u=!Le(e),p=lt(e),e=gs(e)),l=new Array(e.length);for(let f=0,x=e.length;f<x;f++)l[f]=t(u?p?Lt(je(e[f])):je(e[f]):e[f],f,void 0,r)}else if(typeof e=="number"){l=new Array(e);for(let a=0;a<e;a++)l[a]=t(a+1,a,void 0,r)}else if(ae(e))if(e[Symbol.iterator])l=Array.from(e,(a,u)=>t(a,u,void 0,r));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,p=a.length;u<p;u++){const f=a[u];l[u]=t(e[f],f,u,r)}}else l=[];return l}const _n=e=>e?rr(e)?js(e):_n(e.parent):null,Zt=be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_n(e.parent),$root:e=>_n(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rl(e),$forceUpdate:e=>e.f||(e.f=()=>{bn(e.update)}),$nextTick:e=>e.n||(e.n=gn.bind(e.proxy)),$watch:e=>Fo.bind(e)}),xn=(e,t)=>e!==de&&!e.__isScriptSetup&&ie(e,t),ei={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(xn(n,t))return i[t]=1,n[t];if(l!==de&&ie(l,t))return i[t]=2,l[t];if(ie(r,t))return i[t]=3,r[t];if(s!==de&&ie(s,t))return i[t]=4,s[t];wn&&(i[t]=0)}}const p=Zt[t];let f,x;if(p)return t==="$attrs"&&_e(e.attrs,"get",""),p(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(s!==de&&ie(s,t))return i[t]=4,s[t];if(x=u.config.globalProperties,ie(x,t))return x[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return xn(l,t)?(l[t]=s,!0):n!==de&&ie(n,t)?(n[t]=s,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,props:r,type:i}},a){let u;return!!(s[a]||e!==de&&a[0]!=="$"&&ie(e,a)||xn(t,a)||ie(r,a)||ie(n,a)||ie(Zt,a)||ie(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ie(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Ml(e){return q(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let wn=!0;function ti(e){const t=Rl(e),s=e.proxy,n=e.ctx;wn=!1,t.beforeCreate&&Ll(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:a,provide:u,inject:p,created:f,beforeMount:x,mounted:y,beforeUpdate:g,updated:$,activated:_,deactivated:K,beforeDestroy:S,beforeUnmount:b,destroyed:k,unmounted:O,render:w,renderTracked:B,renderTriggered:N,errorCaptured:U,serverPrefetch:ee,expose:Q,inheritAttrs:ne,components:F,directives:ce,filters:ct}=t;if(p&&si(p,n,null),i)for(const Z in i){const le=i[Z];J(le)&&(n[Z]=le.bind(s))}if(l){const Z=l.call(s,s);ae(Z)&&(e.data=dn(Z))}if(wn=!0,r)for(const Z in r){const le=r[Z],ye=J(le)?le.bind(s,s):J(le.get)?le.get.bind(s,s):He,is=!J(le)&&J(le.set)?le.set.bind(s):He,Et=Y({get:ye,set:is});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>Et.value,set:Xe=>Et.value=Xe})}if(a)for(const Z in a)Ol(a[Z],n,s,Z);if(u){const Z=J(u)?u.call(s):u;Reflect.ownKeys(Z).forEach(le=>{Io(le,Z[le])})}f&&Ll(f,e,"c");function me(Z,le){q(le)?le.forEach(ye=>Z(ye.bind(s))):le&&Z(le.bind(s))}if(me(Wo,x),me(Ct,y),me(qo,g),me(Jo,$),me(Ko,_),me(Vo,K),me(Xo,U),me(Yo,B),me(Qo,N),me(Es,b),me(Ps,O),me(Go,ee),q(Q))if(Q.length){const Z=e.exposed||(e.exposed={});Q.forEach(le=>{Object.defineProperty(Z,le,{get:()=>s[le],set:ye=>s[le]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===He&&(e.render=w),ne!=null&&(e.inheritAttrs=ne),F&&(e.components=F),ce&&(e.directives=ce),ee&&mn(e)}function si(e,t,s=He){q(e)&&(e=kn(e));for(const n in e){const l=e[n];let r;ae(l)?"default"in l?r=$s(l.from||n,l.default,!0):r=$s(l.from||n):r=$s(l),ve(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function Ll(e,t,s){ze(q(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ol(e,t,s,n){let l=n.includes(".")?Tl(s,n):()=>s[n];if(ge(e)){const r=t[e];J(r)&&ot(l,r)}else if(J(e))ot(l,e.bind(s));else if(ae(e))if(q(e))e.forEach(r=>Ol(r,t,s,n));else{const r=J(e.handler)?e.handler.bind(s):t[e.handler];J(r)&&ot(l,r,e)}}function Rl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!l.length&&!s&&!n?u=t:(u={},l.length&&l.forEach(p=>As(u,p,i,!0)),As(u,t,i)),ae(t)&&r.set(t,u),u}function As(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&As(e,r,s,!0),l&&l.forEach(i=>As(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=ni[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const ni={data:Il,props:Dl,emits:Dl,methods:es,computed:es,beforeCreate:$e,created:$e,beforeMount:$e,mounted:$e,beforeUpdate:$e,updated:$e,beforeDestroy:$e,beforeUnmount:$e,destroyed:$e,unmounted:$e,activated:$e,deactivated:$e,errorCaptured:$e,serverPrefetch:$e,components:es,directives:es,watch:ri,provide:Il,inject:li};function Il(e,t){return t?e?function(){return be(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function li(e,t){return es(kn(e),kn(t))}function kn(e){if(q(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function $e(e,t){return e?[...new Set([].concat(e,t))]:t}function es(e,t){return e?be(Object.create(null),e,t):t}function Dl(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:be(Object.create(null),Ml(e),Ml(t??{})):t}function ri(e,t){if(!e)return t;if(!t)return e;const s=be(Object.create(null),e);for(const n in t)s[n]=$e(e[n],t[n]);return s}function jl(){return{app:null,config:{isNativeTag:Hn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let oi=0;function ii(e,t){return function(n,l=null){J(n)||(n=be({},n)),l!=null&&!ae(l)&&(l=null);const r=jl(),i=new WeakSet,a=[];let u=!1;const p=r.app={_uid:oi++,_component:n,_props:l,_container:null,_context:r,_instance:null,version:Ki,get config(){return r.config},set config(f){},use(f,...x){return i.has(f)||(f&&J(f.install)?(i.add(f),f.install(p,...x)):J(f)&&(i.add(f),f(p,...x))),p},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),p},component(f,x){return x?(r.components[f]=x,p):r.components[f]},directive(f,x){return x?(r.directives[f]=x,p):r.directives[f]},mount(f,x,y){if(!u){const g=p._ceVNode||pe(n,l);return g.appContext=r,y===!0?y="svg":y===!1&&(y=void 0),e(g,f,y),u=!0,p._container=f,f.__vue_app__=p,js(g.component)}},onUnmount(f){a.push(f)},unmount(){u&&(ze(a,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(f,x){return r.provides[f]=x,p},runWithContext(f){const x=Dt;Dt=p;try{return f()}finally{Dt=x}}};return p}}let Dt=null;const ai=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${dt(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function ui(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||de;let l=s;const r=t.startsWith("update:"),i=r&&ai(n,t.slice(7));i&&(i.trim&&(l=s.map(f=>ge(f)?f.trim():f)),i.number&&(l=s.map(Qs)));let a,u=n[a=Gs(t)]||n[a=Gs(dt(t))];!u&&r&&(u=n[a=Gs(ft(t))]),u&&ze(u,e,6,l);const p=n[a+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ze(p,e,6,l)}}const ci=new WeakMap;function Fl(e,t,s=!1){const n=s?ci:t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},a=!1;if(!J(e)){const u=p=>{const f=Fl(p,t,!0);f&&(a=!0,be(i,f))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(ae(e)&&n.set(e,null),null):(q(r)?r.forEach(u=>i[u]=null):be(i,r),ae(e)&&n.set(e,i),i)}function Ms(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,ft(t))||ie(e,t))}function Gh(){}function Bl(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:a,emit:u,render:p,renderCache:f,props:x,data:y,setupState:g,ctx:$,inheritAttrs:_}=e,K=ks(e);let S,b;try{if(s.shapeFlag&4){const O=l||n,w=O;S=Je(p.call(w,O,f,x,g,y,$)),b=a}else{const O=t;S=Je(O.length>1?O(x,{attrs:a,slots:i,emit:u}):O(x,null)),b=t.props?a:di(a)}}catch(O){ts.length=0,Gt(O,e,1),S=pe(vt)}let k=S;if(b&&_!==!1){const O=Object.keys(b),{shapeFlag:w}=k;O.length&&w&7&&(r&&O.some(Ws)&&(b=fi(b,r)),k=jt(k,b,!1,!0))}return s.dirs&&(k=jt(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(s.dirs):s.dirs),s.transition&&vn(k,s.transition),S=k,ks(K),S}const di=e=>{let t;for(const s in e)(s==="class"||s==="style"||ds(s))&&((t||(t={}))[s]=e[s]);return t},fi=(e,t)=>{const s={};for(const n in e)(!Ws(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function hi(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:a,patchFlag:u}=t,p=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?Nl(n,i,p):!!i;if(u&8){const f=t.dynamicProps;for(let x=0;x<f.length;x++){const y=f[x];if(Hl(i,n,y)&&!Ms(p,y))return!0}}}else return(l||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?Nl(n,i,p):!0:!!i;return!1}function Nl(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let l=0;l<n.length;l++){const r=n[l];if(Hl(t,e,r)&&!Ms(s,r))return!0}return!1}function Hl(e,t,s){const n=e[s],l=t[s];return s==="style"&&ae(n)&&ae(l)?!Ys(n,l):n!==l}function pi({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Ul={},Kl=()=>Object.create(Ul),Vl=e=>Object.getPrototypeOf(e)===Ul;function gi(e,t,s,n=!1){const l={},r=Kl();e.propsDefaults=Object.create(null),zl(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:mo(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function bi(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,a=re(l),[u]=e.propsOptions;let p=!1;if((n||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let x=0;x<f.length;x++){let y=f[x];if(Ms(e.emitsOptions,y))continue;const g=t[y];if(u)if(ie(r,y))g!==r[y]&&(r[y]=g,p=!0);else{const $=dt(y);l[$]=$n(u,a,$,g,e,!1)}else g!==r[y]&&(r[y]=g,p=!0)}}}else{zl(e,t,l,r)&&(p=!0);let f;for(const x in a)(!t||!ie(t,x)&&((f=ft(x))===x||!ie(t,f)))&&(u?s&&(s[x]!==void 0||s[f]!==void 0)&&(l[x]=$n(u,a,x,void 0,e,!0)):delete l[x]);if(r!==a)for(const x in r)(!t||!ie(t,x))&&(delete r[x],p=!0)}p&&st(e.attrs,"set","")}function zl(e,t,s,n){const[l,r]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Ut(u))continue;const p=t[u];let f;l&&ie(l,f=dt(u))?!r||!r.includes(f)?s[f]=p:(a||(a={}))[f]=p:Ms(e.emitsOptions,u)||(!(u in n)||p!==n[u])&&(n[u]=p,i=!0)}if(r){const u=re(s),p=a||de;for(let f=0;f<r.length;f++){const x=r[f];s[x]=$n(l,u,x,p[x],e,!ie(p,x))}}return i}function $n(e,t,s,n,l,r){const i=e[s];if(i!=null){const a=ie(i,"default");if(a&&n===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&J(u)){const{propsDefaults:p}=l;if(s in p)n=p[s];else{const f=ls(l);n=p[s]=u.call(null,t),f()}}else n=u;l.ce&&l.ce._setProp(s,n)}i[0]&&(r&&!a?n=!1:i[1]&&(n===""||n===ft(s))&&(n=!0))}return n}const vi=new WeakMap;function Wl(e,t,s=!1){const n=s?vi:t.propsCache,l=n.get(e);if(l)return l;const r=e.props,i={},a=[];let u=!1;if(!J(e)){const f=x=>{u=!0;const[y,g]=Wl(x,t,!0);be(i,y),g&&a.push(...g)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!u)return ae(e)&&n.set(e,Pt),Pt;if(q(r))for(let f=0;f<r.length;f++){const x=dt(r[f]);ql(x)&&(i[x]=de)}else if(r)for(const f in r){const x=dt(f);if(ql(x)){const y=r[f],g=i[x]=q(y)||J(y)?{type:y}:be({},y),$=g.type;let _=!1,K=!0;if(q($))for(let S=0;S<$.length;++S){const b=$[S],k=J(b)&&b.name;if(k==="Boolean"){_=!0;break}else k==="String"&&(K=!1)}else _=J($)&&$.name==="Boolean";g[0]=_,g[1]=K,(_||ie(g,"default"))&&a.push(x)}}const p=[i,a];return ae(e)&&n.set(e,p),p}function ql(e){return e[0]!=="$"&&!Ut(e)}const Cn=e=>e==="_"||e==="_ctx"||e==="$stable",Tn=e=>q(e)?e.map(Je):[Je(e)],mi=(e,t,s)=>{if(t._n)return t;const n=Ro((...l)=>Tn(t(...l)),s);return n._c=!1,n},Jl=(e,t,s)=>{const n=e._ctx;for(const l in e){if(Cn(l))continue;const r=e[l];if(J(r))t[l]=mi(l,r,n);else if(r!=null){const i=Tn(r);t[l]=()=>i}}},Gl=(e,t)=>{const s=Tn(t);e.slots.default=()=>s},Ql=(e,t,s)=>{for(const n in t)(s||!Cn(n))&&(e[n]=t[n])},yi=(e,t,s)=>{const n=e.slots=Kl();if(e.vnode.shapeFlag&32){const l=t._;l?(Ql(n,t,s),s&&Jn(n,"_",l,!0)):Jl(t,n)}else t&&Gl(e,t)},_i=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=de;if(n.shapeFlag&32){const a=t._;a?s&&a===1?r=!1:Ql(l,t,s):(r=!t.$stable,Jl(t,l)),i=t}else t&&(Gl(e,t),i={default:1});if(r)for(const a in l)!Cn(a)&&i[a]==null&&delete l[a]},Se=Ci;function xi(e){return wi(e)}function wi(e,t){const s=ps();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:a,createComment:u,setText:p,setElementText:f,parentNode:x,nextSibling:y,setScopeId:g=He,insertStaticContent:$}=e,_=(h,v,C,M=null,E=null,P=null,D=void 0,I=null,R=!!v.dynamicChildren)=>{if(h===v)return;h&&!ns(h,v)&&(M=Vs(h),Xe(h,E,P,!0),h=null),v.patchFlag===-2&&(R=!1,v.dynamicChildren=null);const{type:A,ref:W,shapeFlag:j}=v;switch(A){case Ls:K(h,v,C,M);break;case vt:S(h,v,C,M);break;case En:h==null&&b(v,C,M,D);break;case L:F(h,v,C,M,E,P,D,I,R);break;default:j&1?w(h,v,C,M,E,P,D,I,R):j&6?ce(h,v,C,M,E,P,D,I,R):(j&64||j&128)&&A.process(h,v,C,M,E,P,D,I,R,us)}W!=null&&E?Yt(W,h&&h.ref,P,v||h,!v):W==null&&h&&h.ref!=null&&Yt(h.ref,null,P,h,!0)},K=(h,v,C,M)=>{if(h==null)n(v.el=a(v.children),C,M);else{const E=v.el=h.el;v.children!==h.children&&p(E,v.children)}},S=(h,v,C,M)=>{h==null?n(v.el=u(v.children||""),C,M):v.el=h.el},b=(h,v,C,M)=>{[h.el,h.anchor]=$(h.children,v,C,M,h.el,h.anchor)},k=({el:h,anchor:v},C,M)=>{let E;for(;h&&h!==v;)E=y(h),n(h,C,M),h=E;n(v,C,M)},O=({el:h,anchor:v})=>{let C;for(;h&&h!==v;)C=y(h),l(h),h=C;l(v)},w=(h,v,C,M,E,P,D,I,R)=>{if(v.type==="svg"?D="svg":v.type==="math"&&(D="mathml"),h==null)B(v,C,M,E,P,D,I,R);else{const A=h.el&&h.el._isVueCE?h.el:null;try{A&&A._beginPatch(),ee(h,v,E,P,D,I,R)}finally{A&&A._endPatch()}}},B=(h,v,C,M,E,P,D,I)=>{let R,A;const{props:W,shapeFlag:j,transition:V,dirs:G}=h;if(R=h.el=i(h.type,P,W&&W.is,W),j&8?f(R,h.children):j&16&&U(h.children,R,null,M,E,Sn(h,P),D,I),G&&$t(h,null,M,"created"),N(R,h,h.scopeId,D,M),W){for(const he in W)he!=="value"&&!Ut(he)&&r(R,he,null,W[he],P,M);"value"in W&&r(R,"value",null,W.value,P),(A=W.onVnodeBeforeMount)&&Ge(A,M,h)}G&&$t(h,null,M,"beforeMount");const te=ki(E,V);te&&V.beforeEnter(R),n(R,v,C),((A=W&&W.onVnodeMounted)||te||G)&&Se(()=>{A&&Ge(A,M,h),te&&V.enter(R),G&&$t(h,null,M,"mounted")},E)},N=(h,v,C,M,E)=>{if(C&&g(h,C),M)for(let P=0;P<M.length;P++)g(h,M[P]);if(E){let P=E.subTree;if(v===P||tr(P.type)&&(P.ssContent===v||P.ssFallback===v)){const D=E.vnode;N(h,D,D.scopeId,D.slotScopeIds,E.parent)}}},U=(h,v,C,M,E,P,D,I,R=0)=>{for(let A=R;A<h.length;A++){const W=h[A]=I?at(h[A]):Je(h[A]);_(null,W,v,C,M,E,P,D,I)}},ee=(h,v,C,M,E,P,D)=>{const I=v.el=h.el;let{patchFlag:R,dynamicChildren:A,dirs:W}=v;R|=h.patchFlag&16;const j=h.props||de,V=v.props||de;let G;if(C&&Tt(C,!1),(G=V.onVnodeBeforeUpdate)&&Ge(G,C,v,h),W&&$t(v,h,C,"beforeUpdate"),C&&Tt(C,!0),(j.innerHTML&&V.innerHTML==null||j.textContent&&V.textContent==null)&&f(I,""),A?Q(h.dynamicChildren,A,I,C,M,Sn(v,E),P):D||le(h,v,I,null,C,M,Sn(v,E),P,!1),R>0){if(R&16)ne(I,j,V,C,E);else if(R&2&&j.class!==V.class&&r(I,"class",null,V.class,E),R&4&&r(I,"style",j.style,V.style,E),R&8){const te=v.dynamicProps;for(let he=0;he<te.length;he++){const ue=te[he],Ee=j[ue],Pe=V[ue];(Pe!==Ee||ue==="value")&&r(I,ue,Ee,Pe,E,C)}}R&1&&h.children!==v.children&&f(I,v.children)}else!D&&A==null&&ne(I,j,V,C,E);((G=V.onVnodeUpdated)||W)&&Se(()=>{G&&Ge(G,C,v,h),W&&$t(v,h,C,"updated")},M)},Q=(h,v,C,M,E,P,D)=>{for(let I=0;I<v.length;I++){const R=h[I],A=v[I],W=R.el&&(R.type===L||!ns(R,A)||R.shapeFlag&198)?x(R.el):C;_(R,A,W,null,M,E,P,D,!0)}},ne=(h,v,C,M,E)=>{if(v!==C){if(v!==de)for(const P in v)!Ut(P)&&!(P in C)&&r(h,P,v[P],null,E,M);for(const P in C){if(Ut(P))continue;const D=C[P],I=v[P];D!==I&&P!=="value"&&r(h,P,I,D,E,M)}"value"in C&&r(h,"value",v.value,C.value,E)}},F=(h,v,C,M,E,P,D,I,R)=>{const A=v.el=h?h.el:a(""),W=v.anchor=h?h.anchor:a("");let{patchFlag:j,dynamicChildren:V,slotScopeIds:G}=v;G&&(I=I?I.concat(G):G),h==null?(n(A,C,M),n(W,C,M),U(v.children||[],C,W,E,P,D,I,R)):j>0&&j&64&&V&&h.dynamicChildren&&h.dynamicChildren.length===V.length?(Q(h.dynamicChildren,V,C,E,P,D,I),(v.key!=null||E&&v===E.subTree)&&Yl(h,v,!0)):le(h,v,C,W,E,P,D,I,R)},ce=(h,v,C,M,E,P,D,I,R)=>{v.slotScopeIds=I,h==null?v.shapeFlag&512?E.ctx.activate(v,C,M,D,R):ct(v,C,M,E,P,D,R):Ks(h,v,R)},ct=(h,v,C,M,E,P,D)=>{const I=h.component=Li(h,M,E);if(yn(h)&&(I.ctx.renderer=us),Ri(I,!1,D),I.asyncDep){if(E&&E.registerDep(I,me,D),!h.el){const R=I.subTree=pe(vt);S(null,R,v,C),h.placeholder=R.el}}else me(I,h,v,C,E,P,D)},Ks=(h,v,C)=>{const M=v.component=h.component;if(hi(h,v,C))if(M.asyncDep&&!M.asyncResolved){Z(M,v,C);return}else M.next=v,M.update();else v.el=h.el,M.vnode=v},me=(h,v,C,M,E,P,D)=>{const I=()=>{if(h.isMounted){let{next:j,bu:V,u:G,parent:te,vnode:he}=h;{const et=Xl(h);if(et){j&&(j.el=he.el,Z(h,j,D)),et.asyncDep.then(()=>{Se(()=>{h.isUnmounted||A()},E)});return}}let ue=j,Ee;Tt(h,!1),j?(j.el=he.el,Z(h,j,D)):j=he,V&&hs(V),(Ee=j.props&&j.props.onVnodeBeforeUpdate)&&Ge(Ee,te,j,he),Tt(h,!0);const Pe=Bl(h),Ze=h.subTree;h.subTree=Pe,_(Ze,Pe,x(Ze.el),Vs(Ze),h,E,P),j.el=Pe.el,ue===null&&pi(h,Pe.el),G&&Se(G,E),(Ee=j.props&&j.props.onVnodeUpdated)&&Se(()=>Ge(Ee,te,j,he),E)}else{let j;const{el:V,props:G}=v,{bm:te,m:he,parent:ue,root:Ee,type:Pe}=h,Ze=Xt(v);Tt(h,!1),te&&hs(te),!Ze&&(j=G&&G.onVnodeBeforeMount)&&Ge(j,ue,v),Tt(h,!0);{Ee.ce&&Ee.ce._hasShadowRoot()&&Ee.ce._injectChildStyle(Pe);const et=h.subTree=Bl(h);_(null,et,C,M,h,E,P),v.el=et.el}if(he&&Se(he,E),!Ze&&(j=G&&G.onVnodeMounted)){const et=v;Se(()=>Ge(j,ue,et),E)}(v.shapeFlag&256||ue&&Xt(ue.vnode)&&ue.vnode.shapeFlag&256)&&h.a&&Se(h.a,E),h.isMounted=!0,v=C=M=null}};h.scope.on();const R=h.effect=new Zn(I);h.scope.off();const A=h.update=R.run.bind(R),W=h.job=R.runIfDirty.bind(R);W.i=h,W.id=h.uid,R.scheduler=()=>bn(W),Tt(h,!0),A()},Z=(h,v,C)=>{v.component=h;const M=h.vnode.props;h.vnode=v,h.next=null,bi(h,v.props,M,C),_i(h,v.children,C),Ke(),xl(h),Ve()},le=(h,v,C,M,E,P,D,I,R=!1)=>{const A=h&&h.children,W=h?h.shapeFlag:0,j=v.children,{patchFlag:V,shapeFlag:G}=v;if(V>0){if(V&128){is(A,j,C,M,E,P,D,I,R);return}else if(V&256){ye(A,j,C,M,E,P,D,I,R);return}}G&8?(W&16&&as(A,E,P),j!==A&&f(C,j)):W&16?G&16?is(A,j,C,M,E,P,D,I,R):as(A,E,P,!0):(W&8&&f(C,""),G&16&&U(j,C,M,E,P,D,I,R))},ye=(h,v,C,M,E,P,D,I,R)=>{h=h||Pt,v=v||Pt;const A=h.length,W=v.length,j=Math.min(A,W);let V;for(V=0;V<j;V++){const G=v[V]=R?at(v[V]):Je(v[V]);_(h[V],G,C,null,E,P,D,I,R)}A>W?as(h,E,P,!0,!1,j):U(v,C,M,E,P,D,I,R,j)},is=(h,v,C,M,E,P,D,I,R)=>{let A=0;const W=v.length;let j=h.length-1,V=W-1;for(;A<=j&&A<=V;){const G=h[A],te=v[A]=R?at(v[A]):Je(v[A]);if(ns(G,te))_(G,te,C,null,E,P,D,I,R);else break;A++}for(;A<=j&&A<=V;){const G=h[j],te=v[V]=R?at(v[V]):Je(v[V]);if(ns(G,te))_(G,te,C,null,E,P,D,I,R);else break;j--,V--}if(A>j){if(A<=V){const G=V+1,te=G<W?v[G].el:M;for(;A<=V;)_(null,v[A]=R?at(v[A]):Je(v[A]),C,te,E,P,D,I,R),A++}}else if(A>V)for(;A<=j;)Xe(h[A],E,P,!0),A++;else{const G=A,te=A,he=new Map;for(A=te;A<=V;A++){const Me=v[A]=R?at(v[A]):Je(v[A]);Me.key!=null&&he.set(Me.key,A)}let ue,Ee=0;const Pe=V-te+1;let Ze=!1,et=0;const cs=new Array(Pe);for(A=0;A<Pe;A++)cs[A]=0;for(A=G;A<=j;A++){const Me=h[A];if(Ee>=Pe){Xe(Me,E,P,!0);continue}let tt;if(Me.key!=null)tt=he.get(Me.key);else for(ue=te;ue<=V;ue++)if(cs[ue-te]===0&&ns(Me,v[ue])){tt=ue;break}tt===void 0?Xe(Me,E,P,!0):(cs[tt-te]=A+1,tt>=et?et=tt:Ze=!0,_(Me,v[tt],C,null,E,P,D,I,R),Ee++)}const Fr=Ze?$i(cs):Pt;for(ue=Fr.length-1,A=Pe-1;A>=0;A--){const Me=te+A,tt=v[Me],Br=v[Me+1],Nr=Me+1<W?Br.el||er(Br):M;cs[A]===0?_(null,tt,C,Nr,E,P,D,I,R):Ze&&(ue<0||A!==Fr[ue]?Et(tt,C,Nr,2):ue--)}}},Et=(h,v,C,M,E=null)=>{const{el:P,type:D,transition:I,children:R,shapeFlag:A}=h;if(A&6){Et(h.component.subTree,v,C,M);return}if(A&128){h.suspense.move(v,C,M);return}if(A&64){D.move(h,v,C,us);return}if(D===L){n(P,v,C);for(let j=0;j<R.length;j++)Et(R[j],v,C,M);n(h.anchor,v,C);return}if(D===En){k(h,v,C);return}if(M!==2&&A&1&&I)if(M===0)I.beforeEnter(P),n(P,v,C),Se(()=>I.enter(P),E);else{const{leave:j,delayLeave:V,afterLeave:G}=I,te=()=>{h.ctx.isUnmounted?l(P):n(P,v,C)},he=()=>{P._isLeaving&&P[Ho](!0),j(P,()=>{te(),G&&G()})};V?V(P,te,he):he()}else n(P,v,C)},Xe=(h,v,C,M=!1,E=!1)=>{const{type:P,props:D,ref:I,children:R,dynamicChildren:A,shapeFlag:W,patchFlag:j,dirs:V,cacheIndex:G}=h;if(j===-2&&(E=!1),I!=null&&(Ke(),Yt(I,null,C,h,!0),Ve()),G!=null&&(v.renderCache[G]=void 0),W&256){v.ctx.deactivate(h);return}const te=W&1&&V,he=!Xt(h);let ue;if(he&&(ue=D&&D.onVnodeBeforeUnmount)&&Ge(ue,v,h),W&6)zh(h.component,C,M);else{if(W&128){h.suspense.unmount(C,M);return}te&&$t(h,null,v,"beforeUnmount"),W&64?h.type.remove(h,v,C,us,M):A&&!A.hasOnce&&(P!==L||j>0&&j&64)?as(A,v,C,!1,!0):(P===L&&j&384||!E&&W&16)&&as(R,v,C),M&&Dr(h)}(he&&(ue=D&&D.onVnodeUnmounted)||te)&&Se(()=>{ue&&Ge(ue,v,h),te&&$t(h,null,v,"unmounted")},C)},Dr=h=>{const{type:v,el:C,anchor:M,transition:E}=h;if(v===L){Vh(C,M);return}if(v===En){O(h);return}const P=()=>{l(C),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(h.shapeFlag&1&&E&&!E.persisted){const{leave:D,delayLeave:I}=E,R=()=>D(C,P);I?I(h.el,P,R):R()}else P()},Vh=(h,v)=>{let C;for(;h!==v;)C=y(h),l(h),h=C;l(v)},zh=(h,v,C)=>{const{bum:M,scope:E,job:P,subTree:D,um:I,m:R,a:A}=h;Zl(R),Zl(A),M&&hs(M),E.stop(),P&&(P.flags|=8,Xe(D,h,v,C)),I&&Se(I,v),Se(()=>{h.isUnmounted=!0},v)},as=(h,v,C,M=!1,E=!1,P=0)=>{for(let D=P;D<h.length;D++)Xe(h[D],v,C,M,E)},Vs=h=>{if(h.shapeFlag&6)return Vs(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const v=y(h.anchor||h.el),C=v&&v[Bo];return C?y(C):v};let Nn=!1;const jr=(h,v,C)=>{let M;h==null?v._vnode&&(Xe(v._vnode,null,null,!0),M=v._vnode.component):_(v._vnode||null,h,v,null,null,null,C),v._vnode=h,Nn||(Nn=!0,xl(M),wl(),Nn=!1)},us={p:_,um:Xe,m:Et,r:Dr,mt:ct,mc:U,pc:le,pbc:Q,n:Vs,o:e};return{render:jr,hydrate:void 0,createApp:ii(jr)}}function Sn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Tt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ki(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yl(e,t,s=!1){const n=e.children,l=t.children;if(q(n)&&q(l))for(let r=0;r<n.length;r++){const i=n[r];let a=l[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[r]=at(l[r]),a.el=i.el),!s&&a.patchFlag!==-2&&Yl(i,a)),a.type===Ls&&(a.patchFlag===-1&&(a=l[r]=at(a)),a.el=i.el),a.type===vt&&!a.el&&(a.el=i.el)}}function $i(e){const t=e.slice(),s=[0];let n,l,r,i,a;const u=e.length;for(n=0;n<u;n++){const p=e[n];if(p!==0){if(l=s[s.length-1],e[l]<p){t[n]=l,s.push(n);continue}for(r=0,i=s.length-1;r<i;)a=r+i>>1,e[s[a]]<p?r=a+1:i=a;p<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Xl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xl(t)}function Zl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function er(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?er(t.subTree):null}const tr=e=>e.__isSuspense;function Ci(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Oo(e)}const L=Symbol.for("v-fgt"),Ls=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),ts=[];let Ae=null;function c(e=!1){ts.push(Ae=e?null:[])}function Ti(){ts.pop(),Ae=ts[ts.length-1]||null}let ss=1;function Os(e,t=!1){ss+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function sr(e){return e.dynamicChildren=ss>0?Ae||Pt:null,Ti(),ss>0&&Ae&&Ae.push(e),e}function d(e,t,s,n,l,r){return sr(o(e,t,s,n,l,r,!0))}function Re(e,t,s,n,l){return sr(pe(e,t,s,n,l,!0))}function Rs(e){return e?e.__v_isVNode===!0:!1}function ns(e,t){return e.type===t.type&&e.key===t.key}const nr=({key:e})=>e??null,Is=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ge(e)||ve(e)||J(e)?{i:Oe,r:e,k:t,f:!!s}:e:null);function o(e,t=null,s=null,n=0,l=null,r=e===L?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nr(t),ref:t&&Is(t),scopeId:$l,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Oe};return a?(Pn(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=ge(s)?8:16),ss>0&&!i&&Ae&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Ae.push(u),u}const pe=Si;function Si(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===Zo)&&(e=vt),Rs(e)){const a=jt(e,t,!0);return s&&Pn(a,s),ss>0&&!r&&Ae&&(a.shapeFlag&6?Ae[Ae.indexOf(e)]=a:Ae.push(a)),a.patchFlag=-2,a}if(Hi(e)&&(e=e.__vccOpts),t){t=Ei(t);let{class:a,style:u}=t;a&&!ge(a)&&(t.class=H(a)),ae(u)&&(hn(u)&&!q(u)&&(u=be({},u)),t.style=pt(u))}const i=ge(e)?1:tr(e)?128:No(e)?64:ae(e)?4:J(e)?2:0;return o(e,t,s,n,l,i,r,!0)}function Ei(e){return e?hn(e)||Vl(e)?be({},e):e:null}function jt(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:a,transition:u}=e,p=t?Pi(l||{},t):l,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&nr(p),ref:t&&t.ref?s&&r?q(r)?r.concat(Is(t)):[r,Is(t)]:Is(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==L?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&vn(f,u.clone(f)),f}function se(e=" ",t=0){return pe(Ls,null,e,t)}function oe(e="",t=!1){return t?(c(),Re(vt,null,e)):pe(vt,null,e)}function Je(e){return e==null||typeof e=="boolean"?pe(vt):q(e)?pe(L,null,e.slice()):Rs(e)?at(e):pe(Ls,null,String(e))}function at(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function Pn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(q(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),Pn(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!Vl(t)?t._ctx=Oe:l===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else J(t)?(t={default:t,_ctx:Oe},s=32):(t=String(t),n&64?(s=16,t=[se(t)]):s=8);e.children=t,e.shapeFlag|=s}function Pi(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const l in n)if(l==="class")t.class!==n.class&&(t.class=H([t.class,n.class]));else if(l==="style")t.style=pt([t.style,n.style]);else if(ds(l)){const r=t[l],i=n[l];i&&r!==i&&!(q(r)&&r.includes(i))&&(t[l]=r?[].concat(r,i):i)}else l!==""&&(t[l]=n[l])}return t}function Ge(e,t,s,n=null){ze(e,t,7,[s,n])}const Ai=jl();let Mi=0;function Li(e,t,s){const n=e.type,l=(t?t.appContext:e.appContext)||Ai,r={uid:Mi++,vnode:e,type:n,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wl(n,l),emitsOptions:Fl(n,l),emit:null,emitted:null,propsDefaults:de,inheritAttrs:n.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=ui.bind(null,r),e.ce&&e.ce(r),r}let we=null;const Oi=()=>we||Oe;let Ds,An;{const e=ps(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ds=t("__VUE_INSTANCE_SETTERS__",s=>we=s),An=t("__VUE_SSR_SETTERS__",s=>Ft=s)}const ls=e=>{const t=we;return Ds(e),e.scope.on(),()=>{e.scope.off(),Ds(t)}},lr=()=>{we&&we.scope.off(),Ds(null)};function rr(e){return e.vnode.shapeFlag&4}let Ft=!1;function Ri(e,t=!1,s=!1){t&&An(t);const{props:n,children:l}=e.vnode,r=rr(e);gi(e,n,r,t),yi(e,l,s||t);const i=r?Ii(e,t):void 0;return t&&An(!1),i}function Ii(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ei);const{setup:n}=s;if(n){Ke();const l=e.setupContext=n.length>1?ji(e):null,r=ls(e),i=Ot(n,e,0,[e.props,l]),a=Vn(i);if(Ve(),r(),(a||e.sp)&&!Xt(e)&&mn(e),a){if(i.then(lr,lr),t)return i.then(u=>{or(e,u)}).catch(u=>{Gt(u,e,0)});e.asyncDep=i}else or(e,i)}else ir(e)}function or(e,t,s){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=vl(t)),ir(e)}function ir(e,t,s){const n=e.type;e.render||(e.render=n.render||He);{const l=ls(e);Ke();try{ti(e)}finally{Ve(),l()}}}const Di={get(e,t){return _e(e,"get",""),e[t]}};function ji(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Di),slots:e.slots,emit:e.emit,expose:t}}function js(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vl(yo(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Zt)return Zt[s](e)},has(t,s){return s in t||s in Zt}})):e.proxy}const Fi=/(?:^|[-_])\w/g,Bi=e=>e.replace(Fi,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ni(e,t=!0){return J(e)?e.displayName||e.name:e.name||t&&e.__name}function ar(e,t,s=!1){let n=Ni(t);if(!n&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(n=l[1])}if(!n&&e){const l=r=>{for(const i in r)if(r[i]===t)return i};n=l(e.components)||e.parent&&l(e.parent.type.components)||l(e.appContext.components)}return n?Bi(n):s?"App":"Anonymous"}function Hi(e){return J(e)&&"__vccOpts"in e}const Y=(e,t)=>$o(e,t,Ft);function Ui(e,t,s){try{Os(-1);const n=arguments.length;return n===2?ae(t)&&!q(t)?Rs(t)?pe(e,null,[t]):pe(e,t):pe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Rs(s)&&(s=[s]),pe(e,t,s))}finally{Os(1)}}const Ki="3.5.29";let Mn;const ur=typeof window<"u"&&window.trustedTypes;if(ur)try{Mn=ur.createPolicy("vue",{createHTML:e=>e})}catch{}const cr=Mn?e=>Mn.createHTML(e):e=>e,Vi="http://www.w3.org/2000/svg",zi="http://www.w3.org/1998/Math/MathML",ut=typeof document<"u"?document:null,dr=ut&&ut.createElement("template"),Wi={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const l=t==="svg"?ut.createElementNS(Vi,e):t==="mathml"?ut.createElementNS(zi,e):s?ut.createElement(e,{is:s}):ut.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,r){const i=s?s.previousSibling:t.lastChild;if(l&&(l===r||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===r||!(l=l.nextSibling)););else{dr.innerHTML=cr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=dr.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},qi=Symbol("_vtc");function Ji(e,t,s){const n=e[qi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const fr=Symbol("_vod"),Gi=Symbol("_vsh"),Qi=Symbol(""),Yi=/(?:^|;)\s*display\s*:/;function Xi(e,t,s){const n=e.style,l=ge(s);let r=!1;if(s&&!l){if(t)if(ge(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&Fs(n,a,"")}else for(const i in t)s[i]==null&&Fs(n,i,"");for(const i in s)i==="display"&&(r=!0),Fs(n,i,s[i])}else if(l){if(t!==s){const i=n[Qi];i&&(s+=";"+i),n.cssText=s,r=Yi.test(s)}}else t&&e.removeAttribute("style");fr in e&&(e[fr]=r?n.display:"",e[Gi]&&(n.display="none"))}const hr=/\s*!important$/;function Fs(e,t,s){if(q(s))s.forEach(n=>Fs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Zi(e,t);hr.test(s)?e.setProperty(ft(n),s.replace(hr,""),"important"):e[n]=s}}const pr=["Webkit","Moz","ms"],Ln={};function Zi(e,t){const s=Ln[t];if(s)return s;let n=dt(t);if(n!=="filter"&&n in e)return Ln[t]=n;n=qn(n);for(let l=0;l<pr.length;l++){const r=pr[l]+n;if(r in e)return Ln[t]=r}return t}const gr="http://www.w3.org/1999/xlink";function br(e,t,s,n,l,r=Gr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(gr,t.slice(6,t.length)):e.setAttributeNS(gr,t,s):s==null||r&&!Qn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ue(s)?String(s):s)}function vr(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?cr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=Qn(s):s==null&&a==="string"?(s="",i=!0):a==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(l||t)}function Bt(e,t,s,n){e.addEventListener(t,s,n)}function ea(e,t,s,n){e.removeEventListener(t,s,n)}const mr=Symbol("_vei");function ta(e,t,s,n,l=null){const r=e[mr]||(e[mr]={}),i=r[t];if(n&&i)i.value=n;else{const[a,u]=sa(t);if(n){const p=r[t]=ra(n,l);Bt(e,a,p,u)}else i&&(ea(e,a,i,u),r[t]=void 0)}}const yr=/(?:Once|Passive|Capture)$/;function sa(e){let t;if(yr.test(e)){t={};let n;for(;n=e.match(yr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ft(e.slice(2)),t]}let On=0;const na=Promise.resolve(),la=()=>On||(na.then(()=>On=0),On=Date.now());function ra(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ze(oa(n,s.value),t,5,[n])};return s.value=e,s.attached=la(),s}function oa(e,t){if(q(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>l=>!l._stopped&&n&&n(l))}else return t}const _r=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ia=(e,t,s,n,l,r)=>{const i=l==="svg";t==="class"?Ji(e,n,i):t==="style"?Xi(e,s,n):ds(t)?Ws(t)||ta(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):aa(e,t,n,i))?(vr(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&br(e,t,n,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ge(n))?vr(e,dt(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),br(e,t,n,i))};function aa(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&_r(t)&&J(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return _r(t)&&ge(s)?!1:t in e}const xr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?s=>hs(t,s):t};function ua(e){e.target.composing=!0}function wr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rn=Symbol("_assign");function kr(e,t,s){return t&&(e=e.trim()),s&&(e=Qs(e)),e}const Qe={created(e,{modifiers:{lazy:t,trim:s,number:n}},l){e[Rn]=xr(l);const r=n||l.props&&l.props.type==="number";Bt(e,t?"change":"input",i=>{i.target.composing||e[Rn](kr(e.value,s,r))}),(s||r)&&Bt(e,"change",()=>{e.value=kr(e.value,s,r)}),t||(Bt(e,"compositionstart",ua),Bt(e,"compositionend",wr),Bt(e,"change",wr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:r}},i){if(e[Rn]=xr(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Qs(e.value):e.value,u=t??"";a!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||l&&e.value.trim()===u)||(e.value=u))}},ca=["ctrl","shift","alt","meta"],da={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ca.some(s=>e[`${s}Key`]&&!t.includes(s))},Nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...r)=>{for(let i=0;i<t.length;i++){const a=da[t[i]];if(a&&a(l,t))return}return e(l,...r)}))},fa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$r=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const r=ft(l.key);if(t.some(i=>i===r||fa[i]===r))return e(l)}))},ha=be({patchProp:ia},Wi);let Cr;function pa(){return Cr||(Cr=xi(ha))}const ga=((...e)=>{const t=pa().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=va(n);if(!l)return;const r=t._component;!J(r)&&!r.render&&!r.template&&(r.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=s(l,!1,ba(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function ba(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function va(e){return ge(e)?document.querySelector(e):e}class Bs extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class ma extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class In{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const l={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},r=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:l,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(r.status===401||r.status===403)throw new Bs(r.status);if(!r.ok){const i=await r.text().catch(()=>"");throw new ma(r.status,i)}return r.json()}async get(t,s){const n=s?`${t}?${s}`:t;return this.fetch(n)}async post(t,s){const n={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,n)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const ya=3e3,_a=100,xa=500,wa={queries:"/queries",events:"/events",emails:"/emails",routes:"/routes",logs:"/logs",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config",internals:"/diagnostics"};function ka(e){return wa[e]||`/${e}`}class Tr{client;endpoint;refreshInterval;callbacks;timer=null;currentTab=null;fetchOnceCache={};abortController=null;constructor(t){this.client=new In({baseUrl:t.baseUrl,authToken:t.authToken}),this.endpoint=t.endpoint??"/admin/api/debug",this.refreshInterval=t.refreshInterval??ya,this.callbacks={onData:t.onData,onLoading:t.onLoading,onError:t.onError,onUnauthorized:t.onUnauthorized}}start(t){this.stop(),this.currentTab=t,this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetchData(),this.timer=setInterval(()=>this.fetchData(),this.refreshInterval)}stop(){this.timer&&(clearInterval(this.timer),this.timer=null),this.abortController?.abort(),this.abortController=null}switchTab(t){this.start(t)}refresh(){this.currentTab&&this.fetchData()}async fetchCustomPane(t,s=!1){if(s&&this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.callbacks.onLoading(!0);try{const n=await this.client.fetch(t);this.callbacks.onData(n),this.callbacks.onError(null),s&&(this.fetchOnceCache[t]=n)}catch(n){if(n instanceof Bs){this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n)))}finally{this.callbacks.onLoading(!1)}}cacheForTab(t,s){this.fetchOnceCache[t]=s}clearCache(){this.fetchOnceCache={}}async fetchData(){const t=this.currentTab;if(!t)return;if(this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.abortController?.abort();const s=new AbortController;this.abortController=s;try{const n=`${this.endpoint}${ka(t)}`,l=await this.client.fetch(n,{signal:s.signal});if(s.signal.aborted)return;this.callbacks.onData(l),this.callbacks.onError(null),this.callbacks.onLoading(!1)}catch(n){if(n instanceof DOMException&&n.name==="AbortError"||s.signal.aborted)return;if(n instanceof Bs){this.callbacks.onError(n),this.callbacks.onLoading(!1),this.stop(),this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n))),this.callbacks.onLoading(!1)}}}const Sr=new Set(["cache","jobs","config"]);function $a(e,t={}){const{baseUrl:s="",debugEndpoint:n="/admin/api/debug",dashboardEndpoint:l,authToken:r,refreshInterval:i}=t,a=z(null),u=z(!1),p=z(null),f=z(!1),x=new Tr({baseUrl:s,endpoint:n,authToken:r,refreshInterval:i,onData:w=>{a.value=w},onLoading:w=>{u.value=w},onError:w=>{p.value=w},onUnauthorized:()=>{f.value=!0}});let y=null;function g(){return!y&&l&&(y=new Tr({baseUrl:s,endpoint:l,authToken:r,refreshInterval:i,onData:w=>{a.value=w},onLoading:w=>{u.value=w},onError:w=>{p.value=w},onUnauthorized:()=>{f.value=!0}})),y}function $(){const w=e();if(w&&!w.startsWith("custom-"))if(Sr.has(w)&&l){const B=g();x.stop(),B.start(w)}else y?.stop(),x.start(w)}function _(){x.stop(),y?.stop()}async function K(w,B=!1){await x.fetchCustomPane(w,B)}function S(){$()}function b(){_()}function k(){const w=e();Sr.has(w)&&l&&y?y.refresh():x.refresh()}function O(){a.value=null}return ot(e,()=>{O(),$()}),Ct(()=>{S()}),Ps(()=>{_()}),{data:a,loading:u,error:p,isUnauthorized:f,refresh:k,clear:O,fetchCustomPane:K,startRefresh:S,stopRefresh:b}}const Ns="ss-dash-theme",Dn="ss-theme-change";function Hs(){if(typeof window>"u")return"light";const e=localStorage.getItem(Ns);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ca(e){typeof window>"u"||(localStorage.setItem(Ns,e),window.dispatchEvent(new CustomEvent(Dn,{detail:e})))}function Ta(){const t=Hs()==="dark"?"light":"dark";return Ca(t),t}function Sa(e){if(typeof window>"u")return()=>{};const t=r=>{const i=r.detail;(i==="dark"||i==="light")&&e(i)},s=r=>{if(r.key===Ns){const i=r.newValue;e(i==="dark"||i==="light"?i:Hs())}},n=window.matchMedia("(prefers-color-scheme: dark)"),l=r=>{localStorage.getItem(Ns)||e(r.matches?"dark":"light")};return window.addEventListener(Dn,t),window.addEventListener("storage",s),n.addEventListener("change",l),()=>{window.removeEventListener(Dn,t),window.removeEventListener("storage",s),n.removeEventListener("change",l)}}function Ea(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),n=Math.floor(t%86400/3600),l=Math.floor(t%3600/60);return s>0?`${s}d ${n}h`:n>0?`${n}h ${l}m`:l>0?`${l}m ${t%60}s`:`${t}s`}function Ie(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function Er(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function mt(e){if(!e)return"-";const t=typeof e=="string"?new Date(Er(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function Be(e){if(!e)return"-";const t=typeof e=="string"?new Date(Er(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function jn(e){return e>xa?"very-slow":e>_a?"slow":"normal"}function rs(e,t=100){if(e===null)return"null";if(e===void 0)return"-";if(typeof e=="string")return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"';if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const n="["+e.slice(0,3).map(l=>rs(l,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return n.length>t?"["+e.length+" items]":n}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const n=[];for(let r=0;r<Math.min(s.length,4);r++)n.push(s[r]+": "+rs(e[s[r]],30));const l="{ "+n.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return l.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":l}return String(e)}function Pr(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function Pa(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Ar="/admin/api/debug",Mr={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Aa(e){return{tracing:e.features?.tracing??!1,process:e.features?.process??!1,system:e.features?.system??!1,http:e.features?.http??!1,db:e.features?.db??!1,redis:e.features?.redis??!1,queues:e.features?.queues??!1,cache:e.features?.cache??!1,app:e.features?.app??!1,log:e.features?.log??!1,emails:e.features?.emails??!1,dashboard:e.features?.dashboard??!1,customPanes:e.customPanes??[]}}async function Ma(e,t=Ar){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function La(e){const{baseUrl:t="",debugEndpoint:s=Ar,authToken:n}=e,l=new In({baseUrl:t,authToken:n});try{const r=await Ma(l,s);return Aa(r)}catch{return Mr}}const Ce={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},Oa="ss-col-resize",Lr="ss-resizing";function Ra(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let n=!1;function l(){if(!n){n=!0;for(const r of t)r.style.width=r.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const r of t){let i=function(u){u.preventDefault(),u.stopPropagation(),l();const p=u.clientX,f=r.offsetWidth;a.classList.add(Lr),a.setPointerCapture(u.pointerId);function x(g){const $=g.clientX-p,_=Math.max(30,f+$);r.style.width=_+"px"}function y(){a.classList.remove(Lr),a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",y)}a.addEventListener("pointermove",x),a.addEventListener("pointerup",y)};if(!r.textContent?.trim())continue;const a=document.createElement("div");a.className=Oa,r.appendChild(a),a.addEventListener("pointerdown",i),s.push(()=>{a.removeEventListener("pointerdown",i),a.remove()})}return()=>{for(const r of s)r()}}const Ia=["all","error","warn","info","debug"];function os(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function Fn(e){return e.msg||e.message||JSON.stringify(e)}function yt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ne(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function Or(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}function Da(e,t){return t==="all"?e:e.filter(s=>{const n=os(s);return t==="error"?n==="error"||n==="fatal":n===t})}const Rr=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function Ye(e){if(e.data){let s=null;if(typeof e.data=="string")try{s=JSON.parse(e.data)}catch{}else typeof e.data=="object"&&!Array.isArray(e.data)&&(s=e.data);if(s){const n={};for(const[l,r]of Object.entries(s))Rr.has(l)||(n[l]=r);if(Object.keys(n).length>0)return n}}const t={};for(const[s,n]of Object.entries(e))Rr.has(s)||(t[s]=n);return Object.keys(t).length>0?t:null}function ja(e,t){if(!t)return e;const s=t.toLowerCase();return e.filter(n=>n.sql.toLowerCase().includes(s)||n.model&&n.model.toLowerCase().includes(s)||n.method.toLowerCase().includes(s))}function Fa(e){const t={};for(const s of e)t[s.sql]=(t[s.sql]||0)+1;return t}function Ba(e,t){const s=e.filter(r=>r.duration>100).length,n=Object.values(t).filter(r=>r>1).length,l=e.length>0?e.reduce((r,i)=>r+i.duration,0)/e.length:0;return{slowCount:s,dupCount:n,avgDuration:l,totalCount:e.length}}const Na=["all","active","waiting","delayed","completed","failed"];function Ha(e,t="ss-dbg-job-status"){switch(e){case"completed":case"failed":case"active":case"waiting":case"delayed":return`${t}-${e}`;default:return"ss-dbg-badge-muted"}}const Ua=["password","secret","token","key","credential","auth"];function Ka(e){const t=e.toLowerCase();return Ua.some(s=>t.includes(s))}function Va(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const za={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Wa(e){return za[e]||e}const qa={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Ja(e){return qa[e]||e}function Ga(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Qa(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function Ya(e){return Object.entries(e).map(([t,s])=>({key:t,value:Va(s),secret:Ka(t)}))}function Xa(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Za=["healthy","active","connected","available","ready"],eu=["errored","unavailable"];function tu(e){return Za.includes(e)?"ok":eu.includes(e)?"err":""}function su(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function nu(e,t,s){return!s||e.toLowerCase().includes(s)?!0:(su(t)?t.display:t==null?"":String(t)).toLowerCase().includes(s)}const lu=new Set(["secret","key","token","password","pass","pwd","auth","credential","credentials","apikey","private","encryption"]);function ru(e){const t=e.split(/[._-]/),s=[];for(const n of t){const l=n.split(new RegExp("(?<=[a-z])(?=[A-Z])"));for(const r of l)r&&s.push(r)}return s}function ou(e){return ru(e).some(s=>lu.has(s.toLowerCase()))}function iu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,l=z({...Mr}),r=z(!0);return Ct(async()=>{l.value=await La({baseUrl:t,debugEndpoint:s,authToken:n}),r.value=!1}),{features:l,loading:r}}function Ir(){const e=z(Hs());let t=null;function s(l){e.value=l}function n(){const l=Ta();return e.value=l,l}return Ct(()=>{e.value=Hs(),t=Sa(s)}),Ps(()=>{t?.()}),{theme:e,toggleTheme:n}}const au=["title","aria-label"],uu=["viewBox","innerHTML"],cu=["viewBox","innerHTML"],du=xe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:n}=Ir(),l=Y(()=>s.value==="dark"),r=Y(()=>l.value?"Switch to light theme":"Switch to dark theme"),i=Y(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(a,u)=>(c(),d("button",{type:"button",class:H(i.value),title:r.value,"aria-label":r.value,onClick:u[0]||(u[0]=(...p)=>T(n)&&T(n)(...p))},[l.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:T(Ce).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce).sun.elements.join("")},null,8,uu)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:T(Ce).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce).moon.elements.join("")},null,8,cu))],10,au))}}),fu=["data-ss-theme"],hu={class:"ss-dbg-tabs"},pu={class:"ss-dbg-tabs-scroll"},gu=["onClick"],bu=["viewBox","innerHTML"],vu={class:"ss-dbg-tabs-right"},mu=["title"],yu=["href"],_u=["viewBox","innerHTML"],xu={class:"ss-dbg-content"},wu={key:0,class:"ss-dbg-empty"},ku={key:1,class:"ss-dbg-empty",style:{color:"var(--ss-red-fg)"}},$u=xe({__name:"DebugPanel",props:{dashboardPath:{default:"/__stats"},tracingEnabled:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},baseUrl:{default:""},debugEndpoint:{default:"/admin/api/debug"},authToken:{},className:{},defaultOpen:{type:Boolean,default:!1}},setup(e,{expose:t}){const s=Fe(()=>Promise.resolve().then(()=>Ru)),n=Fe(()=>Promise.resolve().then(()=>Vu)),l=Fe(()=>Promise.resolve().then(()=>cc)),r=Fe(()=>Promise.resolve().then(()=>mc)),i=Fe(()=>Promise.resolve().then(()=>Rc)),a=Fe(()=>Promise.resolve().then(()=>wd)),u=Fe(()=>Promise.resolve().then(()=>Wd)),p=Fe(()=>Promise.resolve().then(()=>gf)),f=Fe(()=>Promise.resolve().then(()=>Yf)),x=Fe(()=>Promise.resolve().then(()=>Rh)),y=Fe(()=>Promise.resolve().then(()=>Kh)),g=e,$=z(g.defaultOpen),_=z("queries"),{theme:K}=Ir(),{features:S}=iu({baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,authToken:g.authToken}),b=g.dashboardPath?g.dashboardPath.replace(/\/+$/,"")+"/api":void 0,k=Y(()=>_.value.startsWith("custom-")),O=Y(()=>k.value||_.value==="internals"),{data:w,loading:B,error:N,isUnauthorized:U,startRefresh:ee,stopRefresh:Q}=$a(()=>_.value,{baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,dashboardEndpoint:b,authToken:g.authToken}),ne=Y(()=>{const Z=[{id:"queries",label:"Queries",icon:"Q"},{id:"events",label:"Events",icon:"E"},{id:"emails",label:"Emails",icon:"M"},{id:"routes",label:"Routes",icon:"R"},{id:"logs",label:"Logs",icon:"L"}];(S.value.tracing||g.tracingEnabled)&&Z.push({id:"timeline",label:"Requests",icon:"R"}),S.value.cache&&Z.push({id:"cache",label:"Cache",icon:"C"}),S.value.queues&&Z.push({id:"jobs",label:"Jobs",icon:"J"}),Z.push({id:"config",label:"Config",icon:"G"}),Z.push({id:"internals",label:"Internals",icon:"I"});for(const le of S.value.customPanes)Z.push({id:`custom-${le.id}`,label:le.label,icon:le.label.charAt(0).toUpperCase()});return Z});function F(Z){const le=Z.replace("custom-","");return S.value.customPanes.find(ye=>ye.id===le)}function ce(){$.value=!0,ee()}function ct(){$.value=!1,Q()}function Ks(){$.value?ct():ce()}function me(Z){_.value=Z}return ot($,Z=>{Z?ee():Q()}),t({toggle:Ks,open:ce,close:ct}),(Z,le)=>T(U)?oe("",!0):(c(),d("div",{key:0,class:H(["ss-dbg-panel",{"ss-dbg-open":$.value}]),"data-ss-theme":T(K)},[o("div",hu,[o("div",pu,[(c(!0),d(L,null,X(ne.value,ye=>(c(),d("button",{key:ye.id,type:"button",class:H(["ss-dbg-tab",{"ss-dbg-active":_.value===ye.id}]),onClick:is=>me(ye.id)},[T(Ce)[ye.id]?(c(),d("svg",{key:0,class:"ss-dbg-tab-icon",viewBox:T(Ce)[ye.id].viewBox,innerHTML:T(Ce)[ye.id].elements.join("")},null,8,bu)):oe("",!0),se(" "+m(ye.label),1)],10,gu))),128))]),o("div",vu,[o("span",{class:H(["ss-dbg-conn-mode",e.isLive?"ss-dbg-conn-live":"ss-dbg-conn-polling"]),title:e.isLive?"Connected via Transmit (SSE) — real-time updates":"Polling every 3s"},m(e.isLive?"live":"polling"),11,mu),e.dashboardPath&&T(S).dashboard?(c(),d("a",{key:0,href:e.dashboardPath,target:"_blank",rel:"noopener noreferrer",class:"ss-dbg-dashboard-link",title:"Open dashboard"},[(c(),d("svg",{width:"14",height:"14",viewBox:T(Ce)["external-link"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce)["external-link"].elements.join("")},null,8,_u))],8,yu)):oe("",!0),pe(du),o("button",{type:"button",class:"ss-dbg-close",onClick:ct,title:"Close panel"}," × ")])]),o("div",xu,[T(B)&&!T(w)&&!O.value?(c(),d("div",wu,"Loading...")):T(N)&&!O.value?(c(),d("div",ku," Error: "+m(T(N).message),1)):(c(),d(L,{key:2},[_.value==="queries"?(c(),Re(T(s),{key:0,data:T(w),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="events"?(c(),Re(T(n),{key:1,data:T(w),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="emails"?(c(),Re(T(l),{key:2,data:T(w),"dashboard-path":e.dashboardPath,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","debug-endpoint","auth-token"])):_.value==="routes"?(c(),Re(T(r),{key:3,data:T(w)},null,8,["data"])):_.value==="logs"?(c(),Re(T(i),{key:4,data:T(w),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="timeline"?(c(),Re(T(a),{key:5,data:T(w),"dashboard-path":e.dashboardPath,"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","base-url","debug-endpoint","auth-token"])):_.value==="cache"?(c(),Re(T(u),{key:6,data:T(w)},null,8,["data"])):_.value==="jobs"?(c(),Re(T(p),{key:7,data:T(w)},null,8,["data"])):_.value==="config"?(c(),Re(T(f),{key:8,data:T(w)},null,8,["data"])):_.value==="internals"?(c(),Re(T(x),{key:9,data:T(w),"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","base-url","debug-endpoint","auth-token"])):_.value.startsWith("custom-")?(c(),Re(T(y),{key:10,pane:F(_.value),"base-url":e.baseUrl,"auth-token":e.authToken},null,8,["pane","base-url","auth-token"])):oe("",!0)],64))])],10,fu))}});let St=null;window.__ssDebugPanel={mount(e,t,s){St&&St.unmount(),St=ga({setup(){return()=>Ui($u,{debugEndpoint:t.debugEndpoint,authToken:t.authToken,dashboardPath:t.dashboardPath||void 0,isLive:s,defaultOpen:!0})}}),St.mount(e)},unmount(e){St&&(St.unmount(),St=null)}};function _t(e){const t=z(null);let s=null;function n(){s&&s(),s=null,gn(()=>{t.value&&(s=Ra(t.value))})}return e&&ot(e,n),Ct(n),Es(()=>{s&&s(),s=null}),{tableRef:t}}const Cu={class:"ss-dbg-search-bar"},Tu={class:"ss-dbg-summary"},Su={key:0,class:"ss-dbg-empty"},Eu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Pu=["onClick","onKeydown"],Au={key:0,class:"ss-dbg-dup"},Mu={key:1,class:"ss-dbg-dup"},Lu={class:"ss-dbg-c-muted"},Ou=["title"],Ru=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"QueriesTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=new Set,l=Y(()=>{if(!t.data)return[];const g=t.data;return(Array.isArray(g)?g:g.queries)||[]}),r=Y(()=>ja(l.value,s.value)),i=Y(()=>Fa(l.value)),a=Y(()=>Ba(l.value,i.value)),u=Y(()=>{let g=`${r.value.length} queries`;return a.value.slowCount>0&&(g+=` | ${a.value.slowCount} slow`),a.value.dupCount>0&&(g+=` | ${a.value.dupCount} dup`),r.value.length>0&&(g+=` | avg ${Ie(a.value.avgDuration)}`),g});function p(g){n.has(g)?n.delete(g):n.add(g)}function f(g){return n.has(g)}function x(g){const $=jn(g);return $==="very-slow"?"ss-dbg-very-slow":$==="slow"?"ss-dbg-slow":""}const{tableRef:y}=_t(()=>r.value);return(g,$)=>(c(),d("div",null,[o("div",Cu,[qe(o("input",{"onUpdate:modelValue":$[0]||($[0]=_=>s.value=_),class:"ss-dbg-search",placeholder:"Filter queries...",type:"text"},null,512),[[Qe,s.value]]),o("span",Tu,m(u.value),1)]),r.value.length===0?(c(),d("div",Su,"No queries captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:y,class:"ss-dbg-table"},[$[1]||($[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"SQL"),o("th",null,"Duration"),o("th",null,"Method"),o("th",null,"Model"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(r.value,_=>(c(),d("tr",{key:_.id},[o("td",Eu,m(_.id),1),o("td",null,[o("span",{class:H(["ss-dbg-sql",{"ss-dbg-expanded":f(_.id)}]),role:"button",tabindex:"0",onClick:K=>p(_.id),onKeydown:$r(K=>p(_.id),["enter"])},m(_.sql),43,Pu),i.value[_.sql]>1?(c(),d("span",Au," x"+m(i.value[_.sql]),1)):oe("",!0),_.inTransaction?(c(),d("span",Mu," TXN")):oe("",!0)]),o("td",{class:H(["ss-dbg-duration",x(_.duration)])},m(T(Ie)(_.duration)),3),o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${_.method.toLowerCase()}`)},m(_.method),3)]),o("td",Lu,m(_.model||"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(_.timestamp)},m(T(Be)(_.timestamp)),9,Ou)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Us=xe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=z(t.defaultExpanded),n=Y(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return rs(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return rs(t.value,t.maxLen||100)}),l=Y(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function r(){s.value=!s.value}function i(){navigator.clipboard?.writeText(l.value)}return(a,u)=>e.value===null||e.value===void 0?(c(),d("span",{key:0,class:H(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(c(),d("div",{key:1,class:H(`${t.classPrefix}-data-cell`)},[s.value?oe("",!0):(c(),d("span",{key:0,class:H(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:r,onKeydown:u[0]||(u[0]=p=>p.key==="Enter"&&r())},m(n.value),35)),s.value?(c(),d("div",{key:1,class:H(`${t.classPrefix}-data-full`),onClick:r},[o("button",{class:H(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:Nt(i,["stop"])}," Copy ",2),o("pre",null,m(l.value),1)],2)):oe("",!0)],2))}}),Iu={class:"ss-dbg-search-bar"},Du={class:"ss-dbg-summary"},ju={key:0,class:"ss-dbg-empty"},Fu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Bu={class:"ss-dbg-event-name"},Nu=["href"],Hu=["viewBox","innerHTML"],Uu={class:"ss-dbg-event-data"},Ku=["title"],Vu=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"EventsTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=Y(()=>{const i=t.data,a=i?(Array.isArray(i)?i:i.events)||[]:[];if(!s.value.trim())return a;const u=s.value.toLowerCase();return a.filter(p=>p.event.toLowerCase().includes(u)||p.data&&p.data.toLowerCase().includes(u))}),l=Y(()=>{const i=t.data;return`${(i?(Array.isArray(i)?i:i.events)||[]:[]).length} events`}),{tableRef:r}=_t(()=>n.value);return(i,a)=>(c(),d("div",null,[o("div",Iu,[qe(o("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>s.value=u),class:"ss-dbg-search",placeholder:"Filter events...",type:"text"},null,512),[[Qe,s.value]]),o("span",Du,m(l.value),1)]),n.value.length===0?(c(),d("div",ju,"No events captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:r,class:"ss-dbg-table"},[a[1]||(a[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Event"),o("th",null,"Data"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(n.value,u=>(c(),d("tr",{key:u.id},[o("td",Fu,m(u.id),1),o("td",Bu,[se(m(u.event)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#events?id=${u.id}`,target:"_blank",class:"ss-dbg-deeplink"},[(c(),d("svg",{width:"12",height:"12",viewBox:T(Ce)["open-external"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,Hu))],8,Nu)):oe("",!0)]),o("td",Uu,[pe(Us,{value:u.data,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",{class:"ss-dbg-event-time",title:T(mt)(u.timestamp)},m(T(Be)(u.timestamp)),9,Ku)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),zu={style:{position:"relative",height:"100%"}},Wu={key:0,class:"ss-dbg-email-preview"},qu={class:"ss-dbg-email-preview-header"},Ju={class:"ss-dbg-email-preview-meta"},Gu={key:0},Qu={key:0,class:"ss-dbg-empty"},Yu=["srcdoc"],Xu={key:2,class:"ss-dbg-empty"},Zu={class:"ss-dbg-search-bar"},ec={class:"ss-dbg-summary"},tc={key:0,class:"ss-dbg-empty"},sc=["onClick"],nc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},lc=["title"],rc=["title"],oc={class:"ss-dbg-c-sql"},ic={class:"ss-dbg-c-muted"},ac={class:"ss-dbg-c-dim",style:{"text-align":"center"}},uc=["title"],cc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"EmailsTab",props:{data:{},dashboardPath:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(""),n=z(null),l=z(null),r=z(!1),i=Y(()=>{const y=t.data,g=y?(Array.isArray(y)?y:y.emails)||[]:[];if(!s.value.trim())return g;const $=s.value.toLowerCase();return g.filter(_=>_.subject.toLowerCase().includes($)||_.from.toLowerCase().includes($)||_.to.toLowerCase().includes($)||_.mailer&&_.mailer.toLowerCase().includes($))}),a=Y(()=>{const y=t.data;return`${(y?(Array.isArray(y)?y:y.emails)||[]:[]).length} emails`});function u(y){return{sent:"ss-dbg-email-status-sent",sending:"ss-dbg-email-status-sending",queueing:"ss-dbg-email-status-queued",queued:"ss-dbg-email-status-queued",failed:"ss-dbg-email-status-failed"}[y]||""}async function p(y){if(n.value=y,l.value=y.html||null,!l.value&&y.id){r.value=!0;try{const g=t.debugEndpoint||"/admin/api/debug",$={};t.authToken&&($.Authorization=`Bearer ${t.authToken}`);const _=await fetch(`${g}/emails/${y.id}/preview`,{headers:$,credentials:t.authToken?"omit":"include"});_.ok&&(l.value=await _.text())}catch{}finally{r.value=!1}}}function f(){n.value=null,l.value=null,r.value=!1}const{tableRef:x}=_t(()=>i.value);return(y,g)=>(c(),d("div",zu,[n.value?(c(),d("div",Wu,[o("div",qu,[o("div",Ju,[o("div",null,[g[1]||(g[1]=o("strong",null,"From:",-1)),se(" "+m(n.value.from),1)]),o("div",null,[g[2]||(g[2]=o("strong",null,"To:",-1)),se(" "+m(n.value.to),1)]),n.value.cc?(c(),d("div",Gu,[g[3]||(g[3]=o("strong",null,"CC:",-1)),se(" "+m(n.value.cc),1)])):oe("",!0),o("div",null,[g[4]||(g[4]=o("strong",null,"Subject:",-1)),se(" "+m(n.value.subject),1)]),o("div",null,[g[5]||(g[5]=o("strong",null,"Status:",-1)),o("span",{class:H(["ss-dbg-email-status",u(n.value.status)])},m(n.value.status),3)])]),o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:f},"×")]),r.value?(c(),d("div",Qu,"Loading preview...")):l.value?(c(),d("iframe",{key:1,class:"ss-dbg-email-iframe",srcdoc:l.value},null,8,Yu)):(c(),d("div",Xu,"No HTML content"))])):oe("",!0),n.value?oe("",!0):(c(),d(L,{key:1},[o("div",Zu,[qe(o("input",{"onUpdate:modelValue":g[0]||(g[0]=$=>s.value=$),class:"ss-dbg-search",placeholder:"Filter emails...",type:"text"},null,512),[[Qe,s.value]]),o("span",ec,m(a.value),1)]),i.value.length===0?(c(),d("div",tc,"No emails captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:x,class:"ss-dbg-table"},[g[6]||(g[6]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"From"),o("th",null,"To"),o("th",null,"Subject"),o("th",null,"Status"),o("th",null,"Mailer"),o("th",{title:"Attachments"},"📎"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(i.value,$=>(c(),d("tr",{key:$.id,class:"ss-dbg-email-row",onClick:_=>p($)},[o("td",nc,m($.id),1),o("td",{class:"ss-dbg-c-secondary",title:$.from},m($.from),9,lc),o("td",{class:"ss-dbg-c-secondary",title:$.to},m($.to),9,rc),o("td",oc,m($.subject),1),o("td",null,[o("span",{class:H(["ss-dbg-email-status",u($.status)])},m($.status),3)]),o("td",ic,m($.mailer),1),o("td",ac,m($.attachmentCount>0?$.attachmentCount:"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)($.timestamp)},m(T(Be)($.timestamp)),9,uc)],8,sc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),dc={class:"ss-dbg-search-bar"},fc={class:"ss-dbg-summary"},hc={key:0,class:"ss-dbg-empty"},pc={class:"ss-dbg-c-text"},gc={class:"ss-dbg-c-muted"},bc={class:"ss-dbg-c-sql"},vc={class:"ss-dbg-c-dim",style:{"font-size":"10px"}},mc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"RoutesTab",props:{data:{},currentUrl:{}},setup(e){const t=e,s=z(""),n=Y(()=>{const a=t.data,u=a?(Array.isArray(a)?a:a.routes)||[]:[];if(!s.value.trim())return u;const p=s.value.toLowerCase();return u.filter(f=>f.pattern.toLowerCase().includes(p)||f.handler.toLowerCase().includes(p)||f.method.toLowerCase().includes(p)||f.name&&f.name.toLowerCase().includes(p))}),l=Y(()=>{const a=t.data;return`${(a?(Array.isArray(a)?a:a.routes)||[]:[]).length} routes`});function r(a){return t.currentUrl?t.currentUrl.includes(a.pattern.replace(/:[^/]+/g,"")):!1}const{tableRef:i}=_t(()=>n.value);return(a,u)=>(c(),d("div",null,[o("div",dc,[qe(o("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),class:"ss-dbg-search",placeholder:"Filter routes...",type:"text"},null,512),[[Qe,s.value]]),o("span",fc,m(l.value),1)]),n.value.length===0?(c(),d("div",hc,"No routes found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:i,class:"ss-dbg-table"},[u[1]||(u[1]=o("thead",null,[o("tr",null,[o("th",null,"Method"),o("th",null,"Pattern"),o("th",null,"Name"),o("th",null,"Handler"),o("th",null,"Middleware")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(n.value,(p,f)=>(c(),d("tr",{key:f,class:H({"ss-dbg-current-route":r(p)})},[o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${p.method.toLowerCase()}`)},m(p.method),3)]),o("td",pc,m(p.pattern),1),o("td",gc,m(p.name||"-"),1),o("td",bc,m(p.handler),1),o("td",vc,m(p.middleware.length>0?p.middleware.join(", "):"-"),1)],2))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),yc={class:"ss-dbg-log-filters"},_c=["onClick"],xc={class:"ss-dbg-summary",style:{"margin-left":"auto"}},wc={class:"ss-dbg-search-bar"},kc={class:"ss-dbg-summary"},$c={key:0,class:"ss-dbg-empty"},Cc=["onClick"],Tc=["title"],Sc=["title","onClick","onKeydown"],Ec={key:1,class:"ss-dbg-log-reqid-empty"},Pc={key:3,style:{width:"14px"}},Ac={class:"ss-dbg-log-msg"},Mc=["href"],Lc=["viewBox","innerHTML"],Oc={key:0,class:"ss-dbg-log-detail"},Rc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"LogsTab",props:{data:{},dashboardPath:{}},emits:["filterByRequestId"],setup(e,{emit:t}){const s=e,n=t,l=z("all"),r=z(""),i=z(""),a=z(null),u=Y(()=>{const y=s.data;let g=y?(Array.isArray(y)?y:y.logs||y.entries)||[]:[];if(g=Da(g,l.value),i.value.trim()){const $=i.value.trim().toLowerCase();g=g.filter(_=>{const K=Ne(_);return K&&K.toLowerCase().includes($)})}if(r.value.trim()){const $=r.value.trim().toLowerCase();g=g.filter(_=>Fn(_).toLowerCase().includes($))}return g}),p=Y(()=>{const y=s.data,g=y?(Array.isArray(y)?y:y.logs||y.entries)||[]:[];return`${u.value.length} of ${g.length} entries`});function f(y,g){g&&(a.value=a.value===y?null:y)}function x(y){i.value=y,n("filterByRequestId",y)}return(y,g)=>(c(),d("div",null,[o("div",yc,[(c(!0),d(L,null,X(T(Ia),$=>(c(),d("button",{key:$,type:"button",class:H(["ss-dbg-log-filter",{"ss-dbg-active":l.value===$}]),onClick:_=>l.value=$},m($),11,_c))),128)),i.value?(c(),d("button",{key:0,type:"button",class:"ss-dbg-log-filter ss-dbg-active",onClick:g[0]||(g[0]=$=>i.value="")}," req: "+m(i.value.slice(0,8))+" x ",1)):oe("",!0),o("span",xc,m(u.value.length)+" entries",1)]),o("div",wc,[qe(o("input",{"onUpdate:modelValue":g[1]||(g[1]=$=>r.value=$),class:"ss-dbg-search",placeholder:"Filter log messages...",type:"text"},null,512),[[Qe,r.value]]),qe(o("input",{"onUpdate:modelValue":g[2]||(g[2]=$=>i.value=$),class:"ss-dbg-search ss-dbg-reqid-input",placeholder:"Filter by request ID...",type:"text"},null,512),[[Qe,i.value]]),o("span",kc,m(p.value),1)]),u.value.length===0?(c(),d("div",$c,"No log entries")):(c(!0),d(L,{key:1},X(u.value,($,_)=>(c(),d(L,{key:String($.id||_)},[o("div",{class:H(["ss-dbg-log-entry",{"ss-dbg-log-entry-expandable":!!T(Ye)($)}]),onClick:K=>f(_,!!T(Ye)($))},[o("span",{class:H(["ss-dbg-log-level",T(Or)(T(os)($))])},m(T(os)($).toUpperCase()),3),o("span",{class:"ss-dbg-log-time",title:T(yt)($)?T(mt)(T(yt)($)):""},m(T(yt)($)?T(Be)(T(yt)($)):"-"),9,Tc),T(Ne)($)?(c(),d("span",{key:0,class:"ss-dbg-log-reqid",role:"button",tabindex:"0",title:T(Ne)($),onClick:Nt(K=>x(T(Ne)($)),["stop"]),onKeydown:$r(Nt(K=>x(T(Ne)($)),["stop"]),["enter"])},m(T(Ne)($).slice(0,8)),41,Sc)):(c(),d("span",Ec,"-")),T(Ye)($)?(c(),d("span",{key:2,class:H(["ss-dbg-log-expand-icon",{"ss-dbg-log-expand-icon-open":a.value===_}])},"▶",2)):(c(),d("span",Pc)),o("span",Ac,m(T(Fn)($)),1),e.dashboardPath&&T(Ne)($)?(c(),d("a",{key:4,href:`${e.dashboardPath}#logs?requestId=${T(Ne)($)}`,target:"_blank",class:"ss-dbg-deeplink",onClick:g[3]||(g[3]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:T(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,Lc))],8,Mc)):oe("",!0)],10,Cc),a.value===_&&T(Ye)($)?(c(),d("div",Oc,[pe(Us,{value:T(Ye)($),"class-prefix":"ss-dbg","default-expanded":""},null,8,["value"])])):oe("",!0)],64))),128))]))}})},Symbol.toStringTag,{value:"Module"}));function Bn(e="",t){let s=null;return function(){return s||(s=new In({baseUrl:e,authToken:t})),s}}function Ic(e){const{container:t,handle:s,topPane:n,bottomPane:l,storageKey:r,minHeight:i=60}=e;if(r){const u=localStorage.getItem(r);if(u){const p=parseFloat(u);p>0&&p<1&&(n.style.flex=`${p}`,l.style.flex=`${1-p}`)}}function a(u){u.preventDefault(),s.setPointerCapture(u.pointerId);const f=t.getBoundingClientRect().height,x=u.clientY,y=n.getBoundingClientRect().height;function g(_){const K=_.clientY-x;let S=y+K;const b=f-i-s.offsetHeight;S=Math.max(i,Math.min(S,b));const k=S/(f-s.offsetHeight);n.style.flex=`${k}`,l.style.flex=`${1-k}`}function $(){if(s.removeEventListener("pointermove",g),s.removeEventListener("pointerup",$),r){const _=t.getBoundingClientRect().height-s.offsetHeight;if(_>0){const K=n.getBoundingClientRect().height/_;localStorage.setItem(r,String(K))}}}s.addEventListener("pointermove",g),s.addEventListener("pointerup",$)}return s.addEventListener("pointerdown",a),()=>{s.removeEventListener("pointerdown",a)}}const Dc={key:0},jc={style:{overflow:"auto"}},Fc=["onClick"],Bc=["title"],Nc=["title"],Hc={key:3,style:{width:"14px"}},Uc=xe({__name:"RelatedLogs",props:{logs:{},classPrefix:{default:"ss-dash"}},setup(e){const t=z(null);function s(n,l){l&&(t.value=t.value===n?null:n)}return(n,l)=>e.logs.length>0?(c(),d("div",Dc,[o("div",{class:H(`${e.classPrefix}-related-logs-title`)},[l[0]||(l[0]=se(" Related Logs ",-1)),o("span",{class:H(`${e.classPrefix}-related-logs-count`)},"("+m(e.logs.length)+")",3)],2),o("div",jc,[(c(!0),d(L,null,X(e.logs,(r,i)=>(c(),d(L,{key:r.id||i},[o("div",{class:H([`${e.classPrefix}-log-entry`,T(Ye)(r)?`${e.classPrefix}-log-entry-expandable`:""]),onClick:a=>s(i,!!T(Ye)(r))},[o("span",{class:H([`${e.classPrefix}-log-level`,T(Or)(T(os)(r),`${e.classPrefix}-log-level`)])},m(T(os)(r).toUpperCase()),3),o("span",{class:H(`${e.classPrefix}-log-time`),title:T(yt)(r)?T(mt)(T(yt)(r)):""},m(T(yt)(r)?T(Be)(T(yt)(r)):"-"),11,Bc),T(Ne)(r)?(c(),d("span",{key:0,class:H(`${e.classPrefix}-log-reqid`),title:T(Ne)(r)},m(T(Ne)(r).slice(0,8)),11,Nc)):(c(),d("span",{key:1,class:H(`${e.classPrefix}-log-reqid-empty`)},"--",2)),T(Ye)(r)?(c(),d("span",{key:2,class:H([`${e.classPrefix}-log-expand-icon`,t.value===i?`${e.classPrefix}-log-expand-icon-open`:""])},"▶",2)):(c(),d("span",Hc)),o("span",{class:H(`${e.classPrefix}-log-msg`)},m(T(Fn)(r)),3)],10,Fc),t.value===i&&T(Ye)(r)?(c(),d("div",{key:0,class:H(`${e.classPrefix}-log-detail`)},[pe(Us,{value:T(Ye)(r),"class-prefix":e.classPrefix,"default-expanded":!0},null,8,["value","class-prefix"])],2)):oe("",!0)],64))),128))])])):oe("",!0)}}),Kc={key:0,class:"ss-dbg-empty"},Vc={class:"ss-dbg-empty"},zc={key:2,class:"ss-dbg-tl-detail-wrapper"},Wc={class:"ss-dbg-tl-detail-header"},qc={class:"ss-dbg-tl-detail-url"},Jc={class:"ss-dbg-tl-meta"},Gc={class:"ss-dbg-tl-legend"},Qc={id:"ss-dbg-tl-waterfall"},Yc={key:0,class:"ss-dbg-empty"},Xc=["title"],Zc={class:"ss-dbg-tl-track"},ed=["title"],td={class:"ss-dbg-tl-dur"},sd={key:0,class:"ss-dbg-tl-warnings"},nd={class:"ss-dbg-tl-legend"},ld={id:"ss-dbg-tl-waterfall"},rd={key:0,class:"ss-dbg-empty"},od=["title"],id={class:"ss-dbg-tl-track"},ad=["title"],ud={class:"ss-dbg-tl-dur"},cd={key:0,class:"ss-dbg-tl-warnings"},dd={key:3,class:"ss-dbg-empty"},fd={class:"ss-dbg-search-bar"},hd={class:"ss-dbg-summary"},pd={key:0,class:"ss-dbg-empty"},gd=["onClick"],bd={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},vd={class:"ss-dbg-c-text"},md=["href"],yd=["viewBox","innerHTML"],_d={class:"ss-dbg-c-muted",style:{"text-align":"center"}},xd=["title"],wd=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"TimelineTab",props:{data:{},dashboardPath:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(""),n=z(null),l=z(null),r=z(!1),i=z(null),a=Bn(t.baseUrl||"",t.authToken),u=Y(()=>{const Q=t.data;if(!Q)return[];const ne=Array.isArray(Q)?Q:Q.traces||[];if(!s.value.trim())return ne;const F=s.value.toLowerCase();return ne.filter(ce=>ce.url.toLowerCase().includes(F)||ce.method.toLowerCase().includes(F)||String(ce.statusCode).includes(F))}),p={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"#525252"},f={request:"Request",middleware:"Middleware",db:"Database",view:"View",mail:"Mail",event:"Event",custom:"Custom"};function x(Q){n.value===Q.id?(n.value=null,l.value=null,i.value=null):(n.value=Q.id,$(Q.id))}function y(){n.value=null,l.value=null,i.value=null}let g=null;async function $(Q){g&&g.abort(),g=new AbortController,r.value=!0,i.value=null,l.value=null;const ne=t.debugEndpoint||"/admin/api/debug";try{const ce=await a().get(`${ne}/traces/${Q}`);l.value=ce}catch(F){if(F instanceof Error&&F.name==="AbortError")return;i.value=F instanceof Error?F.message:"Failed to load trace"}finally{r.value=!1}}const _=Y(()=>l.value?.spans||[]),K=Y(()=>l.value?.warnings||[]);function S(Q,ne){const F=ne||1,ce=F>0?Q.startOffset/F*100:0,ct=F>0?Math.max(Q.duration/F*100,.5):.5;return{left:`${ce}%`,width:`${ct}%`,background:p[Q.category]||p.custom}}const{tableRef:b}=_t(()=>u.value),k=z(null),O=z(null),w=z(null),B=z(null);let N=null;const U=Y(()=>l.value?l.value.logs||[]:[]);ot([n,l],async()=>{N?.(),N=null,l.value&&U.value.length>0&&(await gn(),k.value&&O.value&&w.value&&B.value&&(N=Ic({container:k.value,handle:O.value,topPane:w.value,bottomPane:B.value,storageKey:"ss-dbg-timeline-split"})))}),Es(()=>{g&&g.abort(),N?.()});function ee(Q){const ne=jn(Q);return ne==="very-slow"?"ss-dbg-very-slow":ne==="slow"?"ss-dbg-slow":""}return(Q,ne)=>(c(),d("div",null,[n.value!==null?(c(),d(L,{key:0},[r.value?(c(),d("div",Kc,"Loading trace detail...")):i.value?(c(),d(L,{key:1},[o("div",{class:"ss-dbg-tl-detail-header"},[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back")]),o("div",Vc,"Error: "+m(i.value),1)],64)):l.value?(c(),d("div",zc,[o("div",Wc,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back"),o("span",{class:H(`ss-dbg-method ss-dbg-method-${l.value.method.toLowerCase()}`)},m(l.value.method),3),o("span",qc,m(l.value.url),1),o("span",{class:H(`ss-dbg-status ss-dbg-status-${Math.floor(l.value.statusCode/100)}xx`)},m(l.value.statusCode),3),o("span",Jc,m(T(Ie)(l.value.totalDuration))+" · "+m(l.value.spanCount)+" spans ",1)]),U.value.length>0?(c(),d("div",{key:0,ref_key:"splitContainerRef",ref:k,class:"ss-dbg-split-container"},[o("div",{ref_key:"splitTopRef",ref:w,class:"ss-dbg-split-top"},[o("div",Gc,[(c(),d(L,null,X(p,(F,ce)=>o("span",{key:ce,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:pt({background:F})},null,4),se(" "+m(f[ce]||ce),1)])),64))]),o("div",Qc,[_.value.length===0?(c(),d("div",Yc," No spans captured for this request ")):oe("",!0),(c(!0),d(L,null,X(_.value,F=>(c(),d("div",{key:F.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:F.label},m(F.label),9,Xc),o("span",Zc,[o("span",{class:H(`ss-dbg-tl-bar ss-dbg-tl-bar-${F.category}`),style:pt(S(F,l.value.totalDuration)),title:`${F.label}: ${T(Ie)(F.duration)}`},null,14,ed)]),o("span",td,m(T(Ie)(F.duration)),1)]))),128))]),K.value.length>0?(c(),d("div",sd,[ne[2]||(ne[2]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(K.value,(F,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(F),1))),128))])):oe("",!0)],512),o("div",{ref_key:"splitHandleRef",ref:O,class:"ss-dbg-split-handle"},null,512),o("div",{ref_key:"splitBottomRef",ref:B,class:"ss-dbg-split-bottom"},[pe(Uc,{logs:U.value,"class-prefix":"ss-dbg"},null,8,["logs"])],512)],512)):(c(),d(L,{key:1},[o("div",nd,[(c(),d(L,null,X(p,(F,ce)=>o("span",{key:ce,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:pt({background:F})},null,4),se(" "+m(f[ce]||ce),1)])),64))]),o("div",ld,[_.value.length===0?(c(),d("div",rd," No spans captured for this request ")):oe("",!0),(c(!0),d(L,null,X(_.value,F=>(c(),d("div",{key:F.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:F.label},m(F.label),9,od),o("span",id,[o("span",{class:H(`ss-dbg-tl-bar ss-dbg-tl-bar-${F.category}`),style:pt(S(F,l.value.totalDuration)),title:`${F.label}: ${T(Ie)(F.duration)}`},null,14,ad)]),o("span",ud,m(T(Ie)(F.duration)),1)]))),128))]),K.value.length>0?(c(),d("div",cd,[ne[3]||(ne[3]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(K.value,(F,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(F),1))),128))])):oe("",!0)],64))])):(c(),d("div",dd,"Loading trace detail..."))],64)):(c(),d(L,{key:1},[o("div",fd,[qe(o("input",{"onUpdate:modelValue":ne[0]||(ne[0]=F=>s.value=F),class:"ss-dbg-search",placeholder:"Filter traces...",type:"text"},null,512),[[Qe,s.value]]),o("span",hd,m(u.value.length)+" traces",1)]),u.value.length===0?(c(),d("div",pd,"No traces captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:b,class:"ss-dbg-table"},[ne[4]||(ne[4]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Method"),o("th",null,"URL"),o("th",null,"Status"),o("th",null,"Duration"),o("th",null,"Spans"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(u.value,F=>(c(),d("tr",{key:F.id,class:"ss-dbg-email-row",onClick:ce=>x(F)},[o("td",bd,m(F.id),1),o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${F.method.toLowerCase()}`)},m(F.method),3)]),o("td",vd,[se(m(F.url)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#requests?id=${F.id}`,target:"_blank",class:"ss-dbg-deeplink",onClick:ne[1]||(ne[1]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:T(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,yd))],8,md)):oe("",!0)]),o("td",null,[o("span",{class:H(`ss-dbg-status ss-dbg-status-${Math.floor(F.statusCode/100)}xx`)},m(F.statusCode),3)]),o("td",{class:H(["ss-dbg-duration",ee(F.totalDuration)])},m(T(Ie)(F.totalDuration)),3),o("td",_d,m(F.spanCount),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(F.timestamp)},m(T(Be)(F.timestamp)),9,xd)],8,gd))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),kd={class:"ss-dbg-cache-stats"},$d={class:"ss-dbg-cache-stat"},Cd={class:"ss-dbg-cache-stat-value"},Td={class:"ss-dbg-cache-stat"},Sd={class:"ss-dbg-cache-stat-value"},Ed={class:"ss-dbg-cache-stat"},Pd={class:"ss-dbg-cache-stat-value"},Ad={class:"ss-dbg-cache-stat"},Md={class:"ss-dbg-cache-stat-value"},Ld={class:"ss-dbg-cache-stat"},Od={class:"ss-dbg-cache-stat-value"},Rd={class:"ss-dbg-search-bar"},Id={class:"ss-dbg-summary"},Dd={key:0,class:"ss-dbg-cache-detail"},jd={style:{"margin-top":"8px"}},Fd={class:"ss-dbg-c-muted",style:{"margin-left":"8px"}},Bd={key:0},Nd={key:0,class:"ss-dbg-empty"},Hd=["onClick"],Ud={class:"ss-dbg-c-sql"},Kd={class:"ss-dbg-c-muted"},Vd={class:"ss-dbg-c-dim"},zd={class:"ss-dbg-c-dim"},Wd=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"CacheTab",props:{data:{}},setup(e){const t=e,s=z(""),n=z(null),l=Y(()=>t.data||{}),r=Y(()=>l.value.stats||{}),i=Y(()=>{const u=l.value.keys||[];if(!s.value.trim())return u;const p=s.value.toLowerCase();return u.filter(f=>f.key.toLowerCase().includes(p))}),{tableRef:a}=_t(()=>i.value);return(u,p)=>(c(),d("div",null,[o("div",kd,[o("span",$d,[p[2]||(p[2]=o("span",{class:"ss-dbg-cache-stat-label"},"Hit Rate:",-1)),o("span",Cd,m((r.value.hitRate||0).toFixed(0))+"%",1)]),o("span",Td,[p[3]||(p[3]=o("span",{class:"ss-dbg-cache-stat-label"},"Hits:",-1)),o("span",Sd,m(r.value.totalHits||0),1)]),o("span",Ed,[p[4]||(p[4]=o("span",{class:"ss-dbg-cache-stat-label"},"Misses:",-1)),o("span",Pd,m(r.value.totalMisses||0),1)]),o("span",Ad,[p[5]||(p[5]=o("span",{class:"ss-dbg-cache-stat-label"},"Keys:",-1)),o("span",Md,m(r.value.keyCount||0),1)]),o("span",Ld,[p[6]||(p[6]=o("span",{class:"ss-dbg-cache-stat-label"},"Memory:",-1)),o("span",Od,m((r.value.memoryUsedMb||0).toFixed(1))+"MB",1)])]),o("div",Rd,[qe(o("input",{"onUpdate:modelValue":p[0]||(p[0]=f=>s.value=f),class:"ss-dbg-search",placeholder:"Filter keys...",type:"text"},null,512),[[Qe,s.value]]),o("span",Id,m(i.value.length)+" keys",1)]),n.value?(c(),d("div",Dd,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:p[1]||(p[1]=f=>n.value=null)}," ← Back "),o("div",jd,[o("strong",null,m(n.value.key),1),o("span",Fd,m(n.value.type)+" · TTL: "+m(T(Pr)(n.value.ttl)),1)]),n.value.value!==void 0?(c(),d("pre",Bd,m(JSON.stringify(n.value.value,null,2)),1)):oe("",!0)])):(c(),d(L,{key:1},[i.value.length===0?(c(),d("div",Nd,"No cache keys found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:a,class:"ss-dbg-table"},[p[7]||(p[7]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Type"),o("th",null,"TTL"),o("th",null,"Size")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(i.value,f=>(c(),d("tr",{key:f.key,class:"ss-dbg-email-row",onClick:x=>n.value=f},[o("td",Ud,m(f.key),1),o("td",Kd,m(f.type),1),o("td",Vd,m(T(Pr)(f.ttl)),1),o("td",zd,m(T(Pa)(f.size)),1)],8,Hd))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),qd={class:"ss-dbg-job-stats-area"},Jd={class:"ss-dbg-job-stats"},Gd={class:"ss-dbg-job-stat"},Qd={class:"ss-dbg-job-stat-value"},Yd={class:"ss-dbg-job-stat"},Xd={class:"ss-dbg-job-stat-value"},Zd={class:"ss-dbg-job-stat"},ef={class:"ss-dbg-job-stat-value"},tf={class:"ss-dbg-job-stat"},sf={class:"ss-dbg-job-stat-value"},nf={class:"ss-dbg-job-stat"},lf={class:"ss-dbg-job-stat-value ss-dbg-c-red"},rf={class:"ss-dbg-log-filters"},of=["onClick"],af={key:0,class:"ss-dbg-empty"},uf={class:"ss-dbg-c-dim"},cf={class:"ss-dbg-c-sql"},df={class:"ss-dbg-c-muted",style:{"text-align":"center"}},ff={class:"ss-dbg-duration"},hf=["title"],pf=["onClick"],gf=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"JobsTab",props:{data:{}},emits:["retryJob"],setup(e,{emit:t}){const s=e,n=t,l=z("all"),r=Y(()=>s.data||{}),i=Y(()=>r.value.stats||r.value.overview||{}),a=Y(()=>{const f=r.value.jobs||[];return l.value==="all"?f:f.filter(x=>x.status===l.value)});function u(f){n("retryJob",f)}const{tableRef:p}=_t(()=>a.value);return(f,x)=>(c(),d("div",null,[o("div",qd,[o("div",Jd,[o("span",Gd,[x[0]||(x[0]=o("span",{class:"ss-dbg-job-stat-label"},"Active:",-1)),o("span",Qd,m(i.value.active??0),1)]),o("span",Yd,[x[1]||(x[1]=o("span",{class:"ss-dbg-job-stat-label"},"Waiting:",-1)),o("span",Xd,m(i.value.waiting??0),1)]),o("span",Zd,[x[2]||(x[2]=o("span",{class:"ss-dbg-job-stat-label"},"Delayed:",-1)),o("span",ef,m(i.value.delayed??0),1)]),o("span",tf,[x[3]||(x[3]=o("span",{class:"ss-dbg-job-stat-label"},"Completed:",-1)),o("span",sf,m(i.value.completed??0),1)]),o("span",nf,[x[4]||(x[4]=o("span",{class:"ss-dbg-job-stat-label"},"Failed:",-1)),o("span",lf,m(i.value.failed??0),1)])]),o("div",rf,[(c(!0),d(L,null,X(T(Na),y=>(c(),d("button",{key:y,class:H(["ss-dbg-job-filter",{"ss-dbg-active":l.value===y}]),onClick:g=>l.value=y},m(y),11,of))),128))])]),a.value.length===0?(c(),d("div",af,"No jobs found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:p,class:"ss-dbg-table"},[x[5]||(x[5]=o("thead",null,[o("tr",null,[o("th",null,"ID"),o("th",null,"Name"),o("th",null,"Status"),o("th",null,"Payload"),o("th",null,"Tries"),o("th",null,"Duration"),o("th",null,"Time"),o("th")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(a.value,y=>(c(),d("tr",{key:y.id},[o("td",uf,m(y.id),1),o("td",cf,m(y.name),1),o("td",null,[o("span",{class:H(`ss-dbg-badge ${T(Ha)(y.status)}`)},m(y.status),3)]),o("td",null,[pe(Us,{value:y.payload||y.data,"max-len":60,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",df,m(y.attempts),1),o("td",ff,m(y.duration!==null?T(Ie)(y.duration):"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(y.timestamp||y.createdAt)},m(T(Be)(y.timestamp||y.createdAt)),9,hf),o("td",null,[y.status==="failed"?(c(),d("button",{key:0,class:"ss-dbg-retry-btn",onClick:g=>u(y.id)}," Retry ",8,pf)):oe("",!0)])]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),bf={key:0,class:"ss-dbg-empty"},vf={class:"ss-dbg-search-bar"},mf={class:"ss-dbg-config-search-wrap"},yf=["title"],_f={class:"ss-dbg-summary"},xf={key:0,class:"ss-dbg-empty"},wf={key:1,class:"ss-dbg-config-sections"},kf={key:0,class:"ss-dbg-config-section-header ss-dbg-config-leaf"},$f={class:"ss-dbg-config-key"},Cf={key:0,class:"ss-dbg-config-match"},Tf={key:0,class:"ss-dbg-config-redacted"},Sf={key:0,class:"ss-dbg-config-match"},Ef=["onClick"],Pf=["onClick"],Af={class:"ss-dbg-config-toggle"},Mf={class:"ss-dbg-config-key"},Lf={key:0,class:"ss-dbg-config-match"},Of={class:"ss-dbg-config-count"},Rf={key:0,class:"ss-dbg-config-table-wrap"},If={class:"ss-dbg-table"},Df={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},jf={key:0,class:"ss-dbg-config-match"},Ff={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Bf={key:0,class:"ss-dbg-redacted-wrap"},Nf={key:0,class:"ss-dbg-config-match"},Hf=["onClick"],Uf={key:0,class:"ss-dbg-empty"},Kf={key:1,class:"ss-dbg-config-table-wrap"},Vf={class:"ss-dbg-table"},zf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Wf={key:0,class:"ss-dbg-config-match"},qf={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Jf={key:0,class:"ss-dbg-redacted-wrap"},Gf={key:0,class:"ss-dbg-config-match"},Qf=["onClick"],Yf=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"ConfigTab",props:{data:{}},setup(e){const t=e,s=z("app"),n=z(""),l=z(""),r=z(!1),i=z(new Set),a=z(null);let u=null;ot(n,w=>{u&&clearTimeout(u),u=setTimeout(()=>{l.value=w.trim().toLowerCase()},200)});function p(w){return ou(w)}function f(w){if(w==null)return"null";if(typeof w=="boolean"||typeof w=="number")return String(w);if(typeof w=="string")return w;if(Array.isArray(w))return JSON.stringify(w);try{return JSON.stringify(w)}catch{return String(w)}}function x(w){return w==null?"ss-dbg-config-val-null":typeof w=="boolean"?w?"ss-dbg-config-val-true":"ss-dbg-config-val-false":typeof w=="number"?"ss-dbg-config-val-number":Array.isArray(w)?"ss-dbg-config-val-array":"ss-dbg-config-val"}function y(w,B){navigator.clipboard.writeText(w).then(()=>{a.value=B,setTimeout(()=>{a.value===B&&(a.value=null)},1500)})}function g(){const w=s.value==="app"?t.data?.app:t.data?.env;w&&y(JSON.stringify(w,null,2),"__all_json__")}function $(w,B){return nu(w,B,l.value)}function _(w){if(!l.value)return[{text:w,match:!1}];const B=l.value,N=w.toLowerCase(),U=[];let ee=0,Q=N.indexOf(B);for(;Q!==-1;)Q>ee&&U.push({text:w.slice(ee,Q),match:!1}),U.push({text:w.slice(Q,Q+B.length),match:!0}),ee=Q+B.length,Q=N.indexOf(B,ee);return ee<w.length&&U.push({text:w.slice(ee),match:!1}),U.length?U:[{text:w,match:!1}]}const K=Y(()=>{const w=t.data?.app;if(!w)return[];const B=[];for(const[N,U]of Object.entries(w))if(U!==null&&typeof U=="object"&&!Array.isArray(U)){const Q=Object.entries(U).filter(([ne,F])=>$(ne,F)).map(([ne,F])=>({key:ne,value:F,fullKey:`${N}.${ne}`}));(Q.length>0||!l.value)&&B.push({key:N,entries:Q,isFlat:!1})}else $(N,U)&&B.push({key:N,entries:[{key:N,value:U,fullKey:N}],isFlat:!0});return B}),S=Y(()=>{const w=t.data?.env;return w?Object.entries(w).filter(([B,N])=>$(B,N)).map(([B,N])=>({key:B,value:N})):[]});function b(w){i.value.has(w)?i.value.delete(w):i.value.add(w)}function k(){for(const w of K.value)w.isFlat||i.value.add(w.key)}function O(){i.value.clear()}return ot(l,w=>{if(w)for(const B of K.value)!B.isFlat&&B.entries.length>0&&i.value.add(B.key)}),(w,B)=>(c(),d("div",null,[e.data?(c(),d(L,{key:1},[o("div",vf,[o("button",{class:H(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="app"}]),onClick:B[0]||(B[0]=N=>s.value="app")}," App Config ",2),o("button",{class:H(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="env"}]),onClick:B[1]||(B[1]=N=>s.value="env")}," Environment ",2),o("div",mf,[qe(o("input",{"onUpdate:modelValue":B[2]||(B[2]=N=>n.value=N),class:"ss-dbg-search",placeholder:"Search config...",type:"text"},null,512),[[Qe,n.value]])]),s.value==="app"&&!l.value?(c(),d(L,{key:0},[o("button",{class:"ss-dbg-btn-clear",onClick:k},"Expand All"),o("button",{class:"ss-dbg-btn-clear",onClick:O},"Collapse All")],64)):oe("",!0),o("button",{class:H(["ss-dbg-btn-clear",{"ss-dbg-active":r.value}]),onClick:B[3]||(B[3]=N=>r.value=!r.value),title:r.value?"Hide redacted values":"Show redacted values"},m(r.value?"Hide Secrets":"Show Secrets"),11,yf),o("button",{class:"ss-dbg-btn-clear",onClick:g,title:"Copy all as JSON"},m(a.value==="__all_json__"?"Copied!":"Copy JSON"),1),o("span",_f,[s.value==="app"?(c(),d(L,{key:0},[se(m(K.value.length)+" sections ",1)],64)):(c(),d(L,{key:1},[se(m(S.value.length)+" variables ",1)],64))])]),s.value==="app"?(c(),d(L,{key:0},[K.value.length===0?(c(),d("div",xf,m(l.value?"No matching config entries":"No app config data"),1)):(c(),d("div",wf,[(c(!0),d(L,null,X(K.value,N=>(c(),d("div",{key:N.key,class:"ss-dbg-config-section"},[N.isFlat?(c(),d("div",kf,[o("span",$f,[(c(!0),d(L,null,X(_(N.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Cf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),B[7]||(B[7]=o("span",{style:{margin:"0 4px",color:"var(--ss-dim)"}},"=",-1)),p(N.key)&&!r.value?(c(),d("span",Tf,[...B[6]||(B[6]=[o("span",{class:"ss-dbg-redacted-wrap"}," •••••••• ",-1)])])):(c(),d("span",{key:1,class:H(x(N.entries[0].value))},[(c(!0),d(L,null,X(_(f(N.entries[0].value)),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Sf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))],2)),o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===N.key}]),onClick:Nt(U=>y(f(N.entries[0].value),N.key),["stop"]),title:"Copy value"},m(a.value===N.key?"✓":"⎘"),11,Ef)])):(c(),d(L,{key:1},[o("div",{class:"ss-dbg-config-section-header",onClick:U=>b(N.key)},[o("span",Af,m(i.value.has(N.key)?"▼":"▶"),1),o("span",Mf,[(c(!0),d(L,null,X(_(N.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Lf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),o("span",Of,m(N.entries.length)+" keys",1)],8,Pf),i.value.has(N.key)?(c(),d("div",Rf,[o("table",If,[B[9]||(B[9]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(c(!0),d(L,null,X(N.entries,U=>(c(),d("tr",{key:U.fullKey},[o("td",Df,[(c(!0),d(L,null,X(_(U.key),(ee,Q)=>(c(),d(L,{key:Q},[ee.match?(c(),d("span",jf,m(ee.text),1)):(c(),d(L,{key:1},[se(m(ee.text),1)],64))],64))),128))]),o("td",Ff,[p(U.key)&&!r.value?(c(),d("span",Bf,[B[8]||(B[8]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:B[4]||(B[4]=ee=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:H(x(U.value))},[(c(!0),d(L,null,X(_(f(U.value)),(ee,Q)=>(c(),d(L,{key:Q},[ee.match?(c(),d("span",Nf,m(ee.text),1)):(c(),d(L,{key:1},[se(m(ee.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===U.fullKey}]),onClick:ee=>y(f(U.value),U.fullKey),title:"Copy value"},m(a.value===U.fullKey?"✓":"⎘"),11,Hf)])]))),128))])])])):oe("",!0)],64))]))),128))]))],64)):(c(),d(L,{key:1},[S.value.length===0?(c(),d("div",Uf,m(l.value?"No matching environment variables":"No environment data"),1)):(c(),d("div",Kf,[o("table",Vf,[B[11]||(B[11]=o("thead",null,[o("tr",null,[o("th",null,"Variable"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(c(!0),d(L,null,X(S.value,N=>(c(),d("tr",{key:N.key},[o("td",zf,[(c(!0),d(L,null,X(_(N.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Wf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),o("td",qf,[p(N.key)&&!r.value?(c(),d("span",Jf,[B[10]||(B[10]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:B[5]||(B[5]=U=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:H(x(N.value))},[(c(!0),d(L,null,X(_(f(N.value)),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Gf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===`env-${N.key}`}]),onClick:U=>y(f(N.value),`env-${N.key}`),title:"Copy value"},m(a.value===`env-${N.key}`?"✓":"⎘"),11,Qf)])]))),128))])])]))],64))],64)):(c(),d("div",bf,"Loading config data..."))]))}})},Symbol.toStringTag,{value:"Module"})),Xf={key:0,class:"ss-dbg-empty"},Zf={key:1,class:"ss-dbg-empty"},eh={key:2,class:"ss-dbg-empty"},th={class:"ss-dbg-info-cards"},sh={class:"ss-dbg-info-card-label"},nh={class:"ss-dbg-info-card-value"},lh={key:0,class:"ss-dbg-empty"},rh={key:1,class:"ss-dbg-table"},oh={style:{"font-family":"monospace","font-size":"11px"}},ih={key:0,class:"ss-dbg-c-dim",style:{"margin-left":"6px","font-size":"11px"}},ah={class:"ss-dbg-c-red"},uh={class:"ss-dbg-c-dim",style:{"margin-left":"4px"}},ch={style:{"font-size":"11px"}},dh=["onClick"],fh=["onClick"],hh={key:2,class:"ss-dbg-empty"},ph={key:3,class:"ss-dbg-table"},gh={class:"ss-dbg-bar"},bh={class:"ss-dbg-bar-track"},vh={key:4,class:"ss-dbg-empty"},mh={key:5,class:"ss-dbg-table"},yh={class:"ss-dbg-c-dim"},_h={key:6,class:"ss-dbg-empty"},xh={key:7,class:"ss-dbg-table"},wh={class:"ss-dbg-c-dim"},kh={class:"ss-dbg-table"},$h={style:{"font-family":"monospace","font-size":"11px"}},Ch={key:0,class:"ss-dbg-table",style:{"margin-top":"8px"}},Th={style:{"font-family":"monospace","font-size":"11px"}},Sh={class:"ss-dbg-table"},Eh={class:"ss-dbg-table"},Ph={style:{"font-family":"monospace","font-size":"11px"}},Ah={style:{"font-family":"monospace","font-size":"11px"}},Mh={style:{"font-family":"monospace","font-size":"11px"}},Lh={style:{"font-size":"11px"}},Oh=3e3,Rh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"InternalsTab",props:{data:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(null),n=z(!0),l=z(null);let r=null;const i=Bn(t.baseUrl||"",t.authToken);async function a(){const S=t.debugEndpoint||"/admin/api/debug";try{const k=await i().get(`${S}/diagnostics`);s.value=k,l.value=null,n.value=!1}catch(b){if(b instanceof Bs){l.value=b,n.value=!1,r&&(clearInterval(r),r=null);return}l.value=b instanceof Error?b:new Error(String(b)),n.value=!1}}Ct(()=>{n.value=!0,l.value=null,a(),r=setInterval(a,Oh)}),Es(()=>{r&&(clearInterval(r),r=null)});const u=z(new Set);function p(S){u.value.has(S)?u.value.delete(S):u.value.add(S)}function f(S){const b=tu(S);return b==="ok"?"ss-dbg-dot-ok":b==="err"?"ss-dbg-dot-err":""}function x(S){return S.debounceMs!==void 0?`${Ie(S.debounceMs)} (debounce)`:S.intervalMs!==void 0?Ie(S.intervalMs):"-"}const y=Y(()=>s.value||t.data||null),g=Y(()=>y.value||{}),$=Y(()=>g.value.buffers?Object.entries(g.value.buffers).map(([S,b])=>({name:S.charAt(0).toUpperCase()+S.slice(1),...b,percent:Xa(b.current,b.max)})):[]),_=Y(()=>g.value.timers?Object.entries(g.value.timers).map(([S,b])=>({key:S,label:Wa(S),...b,interval:x(b)})):[]),K=Y(()=>{if(!g.value)return[];const S=[];if(g.value.transmit&&S.push({key:"transmit",label:"Transmit (SSE)",status:g.value.transmit.available?"connected":"unavailable",details:g.value.transmit.available?`Channels: ${g.value.transmit.channels.join(", ")}`:"Not installed"}),g.value.integrations)for(const[b,k]of Object.entries(g.value.integrations))S.push({key:b,label:Ja(b),status:Ga(k),details:Qa(b,k)});return S});return(S,b)=>(c(),d("div",null,[n.value&&!y.value?(c(),d("div",Xf,"Loading diagnostics...")):l.value?(c(),d("div",Zf,"Error: "+m(l.value.message),1)):y.value?(c(),d(L,{key:3},[b[41]||(b[41]=o("div",{class:"ss-dbg-internals-title"},"Package Info",-1)),o("div",th,[(c(!0),d(L,null,X([{label:"Version",value:g.value.package?.version||"-"},{label:"Node.js",value:g.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:g.value.package?.adonisVersion||"-"},{label:"Uptime",value:T(Ea)(g.value.package?.uptime)},{label:"Renderer",value:g.value.devToolbar?.renderer||"preact"}],k=>(c(),d("div",{key:k.label,class:"ss-dbg-info-card"},[o("span",sh,m(k.label),1),o("span",nh,m(k.value),1)]))),128))]),b[42]||(b[42]=o("div",{class:"ss-dbg-internals-title"},"Collectors",-1)),g.value.collectors?.length?(c(),d("table",rh,[b[4]||(b[4]=o("thead",null,[o("tr",null,[o("th",null,"Collector"),o("th",null,"Status"),o("th",null,"Last Error"),o("th",null,"Config")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(g.value.collectors,k=>(c(),d("tr",{key:k.name},[o("td",null,[o("span",oh,m(k.name),1),k.label&&k.label!==k.name?(c(),d("span",ih,m(k.label),1)):oe("",!0)]),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(k.status)])},null,2),se(" "+m(k.status),1)]),o("td",ah,[k.lastError?(c(),d(L,{key:0},[se(m(k.lastError)+" ",1),o("span",uh,m(T(Be)(k.lastErrorAt??0)),1)],64)):(c(),d(L,{key:1},[se("-")],64))]),o("td",ch,[Object.keys(k.config||{}).length?(c(!0),d(L,{key:0},X(T(Ya)(k.config),O=>(c(),d("span",{key:O.key,style:{"margin-right":"8px"}},[se(m(O.key)+"=",1),O.secret&&!u.value.has(`collector-${k.name}-${O.key}`)?(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:w=>p(`collector-${k.name}-${O.key}`)},"••••••••",8,dh)):(c(),d(L,{key:1},[o("span",null,m(O.value),1),O.secret?(c(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:w=>p(`collector-${k.name}-${O.key}`)}," Hide ",8,fh)):oe("",!0)],64))]))),128)):(c(),d(L,{key:1},[se("-")],64))])]))),128))])])):(c(),d("div",lh,"No collectors")),b[43]||(b[43]=o("div",{class:"ss-dbg-internals-title"},"Buffers",-1)),$.value.length?(c(),d("table",ph,[b[5]||(b[5]=o("thead",null,[o("tr",null,[o("th",null,"Buffer"),o("th",null,"Usage"),o("th",null,"Fill %")])],-1)),o("tbody",null,[(c(!0),d(L,null,X($.value,k=>(c(),d("tr",{key:k.name},[o("td",null,m(k.name),1),o("td",null,m(k.current.toLocaleString())+" / "+m(k.max.toLocaleString()),1),o("td",null,[o("div",gh,[o("div",bh,[o("div",{class:H(["ss-dbg-bar-fill",k.percent>=100?"ss-dbg-bar-fill-warn":""]),style:pt({width:k.percent+"%"})},null,6)]),o("span",{class:H(["ss-dbg-bar-pct",k.percent>=100?"ss-dbg-bar-pct-warn":""])},m(k.percent)+"%",3)])])]))),128))])])):(c(),d("div",hh,"No buffer data")),b[44]||(b[44]=o("div",{class:"ss-dbg-internals-title"},"Timers",-1)),_.value.length?(c(),d("table",mh,[b[6]||(b[6]=o("thead",null,[o("tr",null,[o("th",null,"Timer"),o("th",null,"Status"),o("th",null,"Interval")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(_.value,k=>(c(),d("tr",{key:k.key},[o("td",null,m(k.label),1),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(k.active?"active":"inactive")])},null,2),se(" "+m(k.active?"active":"inactive"),1)]),o("td",yh,m(k.interval),1)]))),128))])])):(c(),d("div",vh,"No timer data")),b[45]||(b[45]=o("div",{class:"ss-dbg-internals-title"},"Integrations",-1)),K.value.length?(c(),d("table",xh,[b[7]||(b[7]=o("thead",null,[o("tr",null,[o("th",null,"Integration"),o("th",null,"Status"),o("th",null,"Details")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(K.value,k=>(c(),d("tr",{key:k.key},[o("td",null,m(k.label),1),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(k.status)])},null,2),se(" "+m(k.status),1)]),o("td",wh,m(k.details),1)]))),128))])])):(c(),d("div",_h,"No integration data")),g.value.storage?(c(),d(L,{key:8},[b[16]||(b[16]=o("div",{class:"ss-dbg-internals-title"},"Storage",-1)),o("table",kh,[b[14]||(b[14]=o("thead",null,[o("tr",null,[o("th",null,"Metric"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[8]||(b[8]=o("td",null,"Status",-1)),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(g.value.storage.ready?"ready":"unavailable")])},null,2),se(" "+m(g.value.storage.ready?"ready":"not ready"),1)])]),o("tr",null,[b[9]||(b[9]=o("td",null,"DB Path",-1)),o("td",$h,m(g.value.storage.dbPath),1)]),o("tr",null,[b[10]||(b[10]=o("td",null,"File Size",-1)),o("td",null,m(g.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[11]||(b[11]=o("td",null,"WAL Size",-1)),o("td",null,m(g.value.storage.walSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[12]||(b[12]=o("td",null,"Retention",-1)),o("td",null,m(g.value.storage.retentionDays)+" days",1)]),o("tr",null,[b[13]||(b[13]=o("td",null,"Last Cleanup",-1)),o("td",null,m(T(Be)(g.value.storage.lastCleanupAt??0)),1)])])]),g.value.storage.tables?.length?(c(),d("table",Ch,[b[15]||(b[15]=o("thead",null,[o("tr",null,[o("th",null,"Table"),o("th",null,"Rows")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(g.value.storage.tables,k=>(c(),d("tr",{key:k.name},[o("td",Th,m(k.name),1),o("td",null,m(k.rowCount.toLocaleString()),1)]))),128))])])):oe("",!0)],64)):oe("",!0),b[46]||(b[46]=o("div",{class:"ss-dbg-internals-title"},"Resolved Config",-1)),o("table",Sh,[b[24]||(b[24]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[17]||(b[17]=o("td",null,"intervalMs",-1)),o("td",null,m(g.value.config?.intervalMs),1)]),o("tr",null,[b[18]||(b[18]=o("td",null,"transport",-1)),o("td",null,m(g.value.config?.transport),1)]),o("tr",null,[b[19]||(b[19]=o("td",null,"channelName",-1)),o("td",null,m(g.value.config?.channelName),1)]),o("tr",null,[b[20]||(b[20]=o("td",null,"endpoint",-1)),o("td",null,m(g.value.config?.endpoint===!1?"false":g.value.config?.endpoint),1)]),o("tr",null,[b[21]||(b[21]=o("td",null,"skipInTest",-1)),o("td",null,m(g.value.config?.skipInTest),1)]),o("tr",null,[b[22]||(b[22]=o("td",null,"onStats callback",-1)),o("td",null,m(g.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),o("tr",null,[b[23]||(b[23]=o("td",null,"shouldShow callback",-1)),o("td",null,m(g.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[47]||(b[47]=o("div",{class:"ss-dbg-internals-title"},"DevToolbar",-1)),o("table",Eh,[b[40]||(b[40]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[25]||(b[25]=o("td",null,"enabled",-1)),o("td",null,m(g.value.devToolbar?.enabled),1)]),o("tr",null,[b[26]||(b[26]=o("td",null,"tracing",-1)),o("td",null,m(g.value.devToolbar?.tracing),1)]),o("tr",null,[b[27]||(b[27]=o("td",null,"dashboard",-1)),o("td",null,m(g.value.devToolbar?.dashboard),1)]),o("tr",null,[b[28]||(b[28]=o("td",null,"dashboardPath",-1)),o("td",Ph,m(g.value.devToolbar?.dashboardPath),1)]),o("tr",null,[b[29]||(b[29]=o("td",null,"debugEndpoint",-1)),o("td",Ah,[u.value.has("cfg-debugEndpoint")?(c(),d(L,{key:1},[se(m(g.value.devToolbar?.debugEndpoint)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[1]||(b[1]=k=>p("cfg-debugEndpoint"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[0]||(b[0]=k=>p("cfg-debugEndpoint"))},"••••••••"))])]),o("tr",null,[b[30]||(b[30]=o("td",null,"maxQueries",-1)),o("td",null,m(g.value.devToolbar?.maxQueries),1)]),o("tr",null,[b[31]||(b[31]=o("td",null,"maxEvents",-1)),o("td",null,m(g.value.devToolbar?.maxEvents),1)]),o("tr",null,[b[32]||(b[32]=o("td",null,"maxEmails",-1)),o("td",null,m(g.value.devToolbar?.maxEmails),1)]),o("tr",null,[b[33]||(b[33]=o("td",null,"maxTraces",-1)),o("td",null,m(g.value.devToolbar?.maxTraces),1)]),o("tr",null,[b[34]||(b[34]=o("td",null,"slowQueryThresholdMs",-1)),o("td",null,m(g.value.devToolbar?.slowQueryThresholdMs),1)]),o("tr",null,[b[35]||(b[35]=o("td",null,"retentionDays",-1)),o("td",null,m(g.value.devToolbar?.retentionDays),1)]),o("tr",null,[b[36]||(b[36]=o("td",null,"dbPath",-1)),o("td",Mh,[u.value.has("cfg-dbPath")?(c(),d(L,{key:1},[se(m(g.value.devToolbar?.dbPath)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[3]||(b[3]=k=>p("cfg-dbPath"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[2]||(b[2]=k=>p("cfg-dbPath"))},"••••••••"))])]),o("tr",null,[b[37]||(b[37]=o("td",null,"persistDebugData",-1)),o("td",null,m(g.value.devToolbar?.persistDebugData),1)]),o("tr",null,[b[38]||(b[38]=o("td",null,"excludeFromTracing",-1)),o("td",Lh,m(g.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),o("tr",null,[b[39]||(b[39]=o("td",null,"customPanes",-1)),o("td",null,m(g.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(c(),d("div",eh,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"})),Ih={key:0,class:"ss-dbg-search-bar"},Dh=["placeholder"],jh={class:"ss-dbg-summary"},Fh={key:1,class:"ss-dbg-empty"},Bh={key:2,class:"ss-dbg-empty"},Nh=["onClick"],Hh={key:0,class:"ss-dbg-c-dim"},Uh=["title"],Kh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"CustomPaneTab",props:{pane:{},baseUrl:{},authToken:{}},setup(e){const t=e,s=z([]),n=z(!1),l=z(""),r=Bn(t.baseUrl||"",t.authToken);let i=!1;async function a(){if(!(t.pane.fetchOnce&&i)){n.value=!0;try{const S=await r().fetch(t.pane.endpoint),k=(t.pane.dataKey||t.pane.id).split(".");let O=S;for(const w of k)O=O?.[w];s.value=Array.isArray(O)?O:[],i=!0}catch{s.value=[]}finally{n.value=!1}}}const u=Y(()=>{if(!l.value.trim())return s.value;const S=l.value.toLowerCase(),b=t.pane.columns.filter(k=>k.searchable).map(k=>k.key);return b.length===0?s.value:s.value.filter(k=>b.some(O=>{const w=k[O];return w==null?!1:String(w).toLowerCase().includes(S)}))});function p(S,b){if(S==null)return"-";switch(b.format||"text"){case"time":return typeof S=="number"?Be(S):String(S);case"timeAgo":return Be(S);case"duration":return Ie(typeof S=="number"?S:parseFloat(String(S)));case"method":return String(S);case"json":{let O=S;if(typeof S=="string")try{O=JSON.parse(S)}catch{}return rs(O,80)}case"badge":return String(S);default:return String(S)}}function f(S,b){if(b.format==="time"||b.format==="timeAgo")return mt(S)}function x(S){return S==null}function y(S){const b=typeof S=="number"?S:parseFloat(String(S));if(isNaN(b))return"ss-dbg-duration";const k=jn(b);return k==="very-slow"?"ss-dbg-duration ss-dbg-very-slow":k==="slow"?"ss-dbg-duration ss-dbg-slow":"ss-dbg-duration"}function g(S,b){if(b.format==="badge"&&b.badgeColorMap){const k=String(S).toLowerCase();return b.badgeColorMap[k]||"muted"}return""}function $(S){return`ss-dbg-method ss-dbg-method-${String(S).toLowerCase()}`}function _(){s.value=[]}const{tableRef:K}=_t(()=>u.value);return Ct(()=>{a()}),(S,b)=>(c(),d("div",null,[e.pane.search?(c(),d("div",Ih,[qe(o("input",{"onUpdate:modelValue":b[0]||(b[0]=k=>l.value=k),class:"ss-dbg-search",placeholder:e.pane.search.placeholder,type:"text"},null,8,Dh),[[Qe,l.value]]),o("span",jh,m(u.value.length)+" items",1),e.pane.clearable?(c(),d("button",{key:0,class:"ss-dbg-btn-clear",onClick:_},"Clear")):oe("",!0)])):oe("",!0),n.value?(c(),d("div",Fh,"Loading...")):u.value.length===0?(c(),d("div",Bh,"No data")):(c(),d("table",{key:3,ref_key:"tableRef",ref:K,class:"ss-dbg-table"},[o("thead",null,[o("tr",null,[(c(!0),d(L,null,X(e.pane.columns,k=>(c(),d("th",{key:k.key},m(k.label),1))),128))])]),o("tbody",null,[(c(!0),d(L,null,X(u.value,(k,O)=>(c(),d("tr",{key:String(k.id??O)},[(c(!0),d(L,null,X(e.pane.columns,w=>(c(),d("td",{key:w.key,class:H({"ss-dbg-filterable":w.filterable}),onClick:B=>w.filterable?l.value=String(k[w.key]):void 0},[x(k[w.key])?(c(),d("span",Hh,"-")):w.format==="time"||w.format==="timeAgo"?(c(),d("span",{key:1,class:"ss-dbg-event-time",title:f(k[w.key],w)},m(p(k[w.key],w)),9,Uh)):w.format==="duration"?(c(),d("span",{key:2,class:H(y(k[w.key]))},m(p(k[w.key],w)),3)):w.format==="method"?(c(),d("span",{key:3,class:H($(k[w.key]))},m(p(k[w.key],w)),3)):w.format==="badge"?(c(),d("span",{key:4,class:H(`ss-dbg-badge ss-dbg-badge-${g(k[w.key],w)}`)},m(p(k[w.key],w)),3)):(c(),d(L,{key:5},[se(m(p(k[w.key],w)),1)],64))],10,Nh))),128))]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|
|
3
|
+
`,...Po(l)),console.warn(...r)}Ve(),gn=!1}function Eo(){let e=Jt[Jt.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function Po(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
|
|
4
|
+
`],...Ao(s))}),t}function Ao({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,l=` at <${ar(e.component,e.type,n)}`,r=">"+s;return e.props?[l,...Mo(e.props),r]:[l+r]}function Mo(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...ml(n,e[n]))}),s.length>3&&t.push(" ..."),t}function ml(e,t,s){return pe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ve(t)?(t=ml(e,re(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):J(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=re(t),s?t:[`${e}=`,t])}function Ot(e,t,s,n){try{return n?e(...n):e()}catch(l){Gt(l,t,s)}}function ze(e,t,s,n){if(J(e)){const l=Ot(e,t,s,n);return l&&Vn(l)&&l.catch(r=>{Gt(r,t,s)}),l}if(q(e)){const l=[];for(let r=0;r<e.length;r++)l.push(ze(e[r],t,s,n));return l}}function Gt(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||de;if(t){let a=t.parent;const u=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const f=a.ec;if(f){for(let x=0;x<f.length;x++)if(f[x](e,u,g)===!1)return}a=a.parent}if(r){Ke(),Ot(r,null,10,[e,u,g]),Ve();return}}Lo(e,s,l,n,i)}function Lo(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ke=[];let We=-1;const Rt=[];let bt=null,It=0;const yl=Promise.resolve();let ws=null;function pn(e){const t=ws||yl;return e?t.then(this?e.bind(this):e):t}function Oo(e){let t=We+1,s=ke.length;for(;t<s;){const n=t+s>>>1,l=ke[n],r=Qt(l);r<e||r===e&&l.flags&2?t=n+1:s=n}return t}function bn(e){if(!(e.flags&1)){const t=Qt(e),s=ke[ke.length-1];!s||!(e.flags&2)&&t>=Qt(s)?ke.push(e):ke.splice(Oo(t),0,e),e.flags|=1,_l()}}function _l(){ws||(ws=yl.then(kl))}function Ro(e){q(e)?Rt.push(...e):bt&&e.id===-1?bt.splice(It+1,0,e):e.flags&1||(Rt.push(e),e.flags|=1),_l()}function xl(e,t,s=We+1){for(;s<ke.length;s++){const n=ke[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ke.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function wl(e){if(Rt.length){const t=[...new Set(Rt)].sort((s,n)=>Qt(s)-Qt(n));if(Rt.length=0,bt){bt.push(...t);return}for(bt=t,It=0;It<bt.length;It++){const s=bt[It];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}bt=null,It=0}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kl(e){try{for(We=0;We<ke.length;We++){const t=ke[We];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ot(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;We<ke.length;We++){const t=ke[We];t&&(t.flags&=-2)}We=-1,ke.length=0,wl(),ws=null,(ke.length||Rt.length)&&kl()}}let Oe=null,$l=null;function ks(e){const t=Oe;return Oe=e,$l=e&&e.type.__scopeId||null,t}function Io(e,t=Oe,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&Os(-1);const r=ks(t);let i;try{i=e(...l)}finally{ks(r),n._d&&Os(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function qe(e,t){if(Oe===null)return e;const s=Fs(Oe),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[r,i,a,u=de]=t[l];r&&(J(r)&&(r={mounted:r,updated:r}),r.deep&&rt(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function $t(e,t,s,n){const l=e.dirs,r=t&&t.dirs;for(let i=0;i<l.length;i++){const a=l[i];r&&(a.oldValue=r[i].value);let u=a.dir[n];u&&(Ke(),ze(u,s,8,[e.el,a,e,t]),Ve())}}function Do(e,t){if(we){let s=we.provides;const n=we.parent&&we.parent.provides;n===s&&(s=we.provides=Object.create(n)),s[e]=t}}function $s(e,t,s=!1){const n=Ri();if(n||Dt){let l=Dt?Dt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return s&&J(t)?t.call(n&&n.proxy):t}}const Fo=Symbol.for("v-scx"),jo=()=>$s(Fo);function ot(e,t,s){return Cl(e,t,s)}function Cl(e,t,s=de){const{immediate:n,deep:l,flush:r,once:i}=s,a=be({},s),u=t&&n||!t&&r!=="post";let g;if(jt){if(r==="sync"){const p=jo();g=p.__watcherHandles||(p.__watcherHandles=[])}else if(!u){const p=()=>{};return p.stop=He,p.resume=He,p.pause=He,p}}const f=we;a.call=(p,k,_)=>ze(p,f,k,_);let x=!1;r==="post"?a.scheduler=p=>{Se(p,f&&f.suspense)}:r!=="sync"&&(x=!0,a.scheduler=(p,k)=>{k?p():bn(p)}),a.augmentJob=p=>{t&&(p.flags|=4),x&&(p.flags|=2,f&&(p.id=f.uid,p.i=f))};const y=So(e,t,a);return jt&&(g?g.push(y):u&&y()),y}function Bo(e,t,s){const n=this.proxy,l=pe(e)?e.includes(".")?Tl(n,e):()=>n[e]:e.bind(n,n);let r;J(t)?r=t:(r=t.handler,s=t);const i=ls(this),a=Cl(l,r.bind(n),s);return i(),a}function Tl(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const No=Symbol("_vte"),Ho=e=>e.__isTeleport,Uo=Symbol("_leaveCb");function vn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xe(e,t){return J(e)?be({name:e.name},t,{setup:e}):e}function mn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Sl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Cs=new WeakMap;function Yt(e,t,s,n,l=!1){if(q(e)){e.forEach((_,K)=>Yt(_,t&&(q(t)?t[K]:t),s,n,l));return}if(Xt(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Yt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Fs(n.component):n.el,i=l?null:r,{i:a,r:u}=e,g=t&&t.r,f=a.refs===de?a.refs={}:a.refs,x=a.setupState,y=re(x),p=x===de?Hn:_=>Sl(f,_)?!1:ie(y,_),k=(_,K)=>!(K&&Sl(f,K));if(g!=null&&g!==u){if(El(t),pe(g))f[g]=null,p(g)&&(x[g]=null);else if(ve(g)){const _=t;k(g,_.k)&&(g.value=null),_.k&&(f[_.k]=null)}}if(J(u))Ot(u,a,12,[i,f]);else{const _=pe(u),K=ve(u);if(_||K){const S=()=>{if(e.f){const b=_?p(u)?x[u]:f[u]:k()||!e.k?u.value:f[e.k];if(l)q(b)&&qs(b,r);else if(q(b))b.includes(r)||b.push(r);else if(_)f[u]=[r],p(u)&&(x[u]=f[u]);else{const w=[r];k(u,e.k)&&(u.value=w),e.k&&(f[e.k]=w)}}else _?(f[u]=i,p(u)&&(x[u]=i)):K&&(k(u,e.k)&&(u.value=i),e.k&&(f[e.k]=i))};if(i){const b=()=>{S(),Cs.delete(e)};b.id=-1,Cs.set(e,b),Se(b,s)}else El(e),S()}}}function El(e){const t=Cs.get(e);t&&(t.flags|=8,Cs.delete(e))}const Pl=e=>e.nodeType===8;gs().requestIdleCallback,gs().cancelIdleCallback;function Ko(e,t){if(Pl(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Pl(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const Xt=e=>!!e.type.__asyncLoader;function je(e){J(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:l=200,hydrate:r,timeout:i,suspensible:a=!0,onError:u}=e;let g=null,f,x=0;const y=()=>(x++,g=null,p()),p=()=>{let k;return g||(k=g=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),u)return new Promise((K,S)=>{u(_,()=>K(y()),()=>S(_),x+1)});throw _}).then(_=>k!==g&&g?g:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(k,_,K){let S=!1;(_.bu||(_.bu=[])).push(()=>S=!0);const b=()=>{S||K()},w=r?()=>{const R=r(b,$=>Ko(k,$));R&&(_.bum||(_.bum=[])).push(R)}:b;f?w():p().then(()=>!_.isUnmounted&&w())},get __asyncResolved(){return f},setup(){const k=we;if(mn(k),f)return()=>Ts(f,k);const _=w=>{g=null,Gt(w,k,13,!n)};if(a&&k.suspense||jt)return p().then(w=>()=>Ts(w,k)).catch(w=>(_(w),()=>n?ge(n,{error:w}):null));const K=z(!1),S=z(),b=z(!!l);return l&&setTimeout(()=>{b.value=!1},l),i!=null&&setTimeout(()=>{if(!K.value&&!S.value){const w=new Error(`Async component timed out after ${i}ms.`);_(w),S.value=w}},i),p().then(()=>{K.value=!0,k.parent&&yn(k.parent.vnode)&&k.parent.update()}).catch(w=>{_(w),S.value=w}),()=>{if(K.value&&f)return Ts(f,k);if(S.value&&n)return ge(n,{error:S.value});if(s&&!b.value)return Ts(s,k)}}})}function Ts(e,t){const{ref:s,props:n,children:l,ce:r}=t.vnode,i=ge(e,n,l);return i.ref=s,i.ce=r,delete t.vnode.ce,i}const yn=e=>e.type.__isKeepAlive;function Vo(e,t){Al(e,"a",t)}function zo(e,t){Al(e,"da",t)}function Al(e,t,s=we){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Ss(t,n,s),s){let l=s.parent;for(;l&&l.parent;)yn(l.parent.vnode)&&Wo(n,t,s,l),l=l.parent}}function Wo(e,t,s,n){const l=Ss(t,e,n,!0);Ps(()=>{qs(n[t],l)},s)}function Ss(e,t,s=we,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ke();const a=ls(s),u=ze(t,s,e,i);return a(),Ve(),u});return n?l.unshift(r):l.push(r),r}}const it=e=>(t,s=we)=>{(!jt||e==="sp")&&Ss(e,(...n)=>t(...n),s)},qo=it("bm"),Ct=it("m"),Jo=it("bu"),Go=it("u"),Es=it("bum"),Ps=it("um"),Qo=it("sp"),Yo=it("rtg"),Xo=it("rtc");function Zo(e,t=we){Ss("ec",e,t)}const ei=Symbol.for("v-ndc");function X(e,t,s,n){let l;const r=s,i=q(e);if(i||pe(e)){const a=i&&wt(e);let u=!1,g=!1;a&&(u=!Le(e),g=lt(e),e=ps(e)),l=new Array(e.length);for(let f=0,x=e.length;f<x;f++)l[f]=t(u?g?Lt(Fe(e[f])):Fe(e[f]):e[f],f,void 0,r)}else if(typeof e=="number"){l=new Array(e);for(let a=0;a<e;a++)l[a]=t(a+1,a,void 0,r)}else if(ae(e))if(e[Symbol.iterator])l=Array.from(e,(a,u)=>t(a,u,void 0,r));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,g=a.length;u<g;u++){const f=a[u];l[u]=t(e[f],f,u,r)}}else l=[];return l}const _n=e=>e?rr(e)?Fs(e):_n(e.parent):null,Zt=be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_n(e.parent),$root:e=>_n(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rl(e),$forceUpdate:e=>e.f||(e.f=()=>{bn(e.update)}),$nextTick:e=>e.n||(e.n=pn.bind(e.proxy)),$watch:e=>Bo.bind(e)}),xn=(e,t)=>e!==de&&!e.__isScriptSetup&&ie(e,t),ti={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(xn(n,t))return i[t]=1,n[t];if(l!==de&&ie(l,t))return i[t]=2,l[t];if(ie(r,t))return i[t]=3,r[t];if(s!==de&&ie(s,t))return i[t]=4,s[t];wn&&(i[t]=0)}}const g=Zt[t];let f,x;if(g)return t==="$attrs"&&_e(e.attrs,"get",""),g(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(s!==de&&ie(s,t))return i[t]=4,s[t];if(x=u.config.globalProperties,ie(x,t))return x[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return xn(l,t)?(l[t]=s,!0):n!==de&&ie(n,t)?(n[t]=s,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,props:r,type:i}},a){let u;return!!(s[a]||e!==de&&a[0]!=="$"&&ie(e,a)||xn(t,a)||ie(r,a)||ie(n,a)||ie(Zt,a)||ie(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ie(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Ml(e){return q(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let wn=!0;function si(e){const t=Rl(e),s=e.proxy,n=e.ctx;wn=!1,t.beforeCreate&&Ll(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:a,provide:u,inject:g,created:f,beforeMount:x,mounted:y,beforeUpdate:p,updated:k,activated:_,deactivated:K,beforeDestroy:S,beforeUnmount:b,destroyed:w,unmounted:R,render:$,renderTracked:N,renderTriggered:B,errorCaptured:U,serverPrefetch:ee,expose:Q,inheritAttrs:ne,components:j,directives:ce,filters:ct}=t;if(g&&ni(g,n,null),i)for(const Z in i){const le=i[Z];J(le)&&(n[Z]=le.bind(s))}if(l){const Z=l.call(s,s);ae(Z)&&(e.data=dn(Z))}if(wn=!0,r)for(const Z in r){const le=r[Z],ye=J(le)?le.bind(s,s):J(le.get)?le.get.bind(s,s):He,is=!J(le)&&J(le.set)?le.set.bind(s):He,Et=Y({get:ye,set:is});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>Et.value,set:Xe=>Et.value=Xe})}if(a)for(const Z in a)Ol(a[Z],n,s,Z);if(u){const Z=J(u)?u.call(s):u;Reflect.ownKeys(Z).forEach(le=>{Do(le,Z[le])})}f&&Ll(f,e,"c");function me(Z,le){q(le)?le.forEach(ye=>Z(ye.bind(s))):le&&Z(le.bind(s))}if(me(qo,x),me(Ct,y),me(Jo,p),me(Go,k),me(Vo,_),me(zo,K),me(Zo,U),me(Xo,N),me(Yo,B),me(Es,b),me(Ps,R),me(Qo,ee),q(Q))if(Q.length){const Z=e.exposed||(e.exposed={});Q.forEach(le=>{Object.defineProperty(Z,le,{get:()=>s[le],set:ye=>s[le]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===He&&(e.render=$),ne!=null&&(e.inheritAttrs=ne),j&&(e.components=j),ce&&(e.directives=ce),ee&&mn(e)}function ni(e,t,s=He){q(e)&&(e=kn(e));for(const n in e){const l=e[n];let r;ae(l)?"default"in l?r=$s(l.from||n,l.default,!0):r=$s(l.from||n):r=$s(l),ve(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function Ll(e,t,s){ze(q(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ol(e,t,s,n){let l=n.includes(".")?Tl(s,n):()=>s[n];if(pe(e)){const r=t[e];J(r)&&ot(l,r)}else if(J(e))ot(l,e.bind(s));else if(ae(e))if(q(e))e.forEach(r=>Ol(r,t,s,n));else{const r=J(e.handler)?e.handler.bind(s):t[e.handler];J(r)&&ot(l,r,e)}}function Rl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!l.length&&!s&&!n?u=t:(u={},l.length&&l.forEach(g=>As(u,g,i,!0)),As(u,t,i)),ae(t)&&r.set(t,u),u}function As(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&As(e,r,s,!0),l&&l.forEach(i=>As(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=li[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const li={data:Il,props:Dl,emits:Dl,methods:es,computed:es,beforeCreate:$e,created:$e,beforeMount:$e,mounted:$e,beforeUpdate:$e,updated:$e,beforeDestroy:$e,beforeUnmount:$e,destroyed:$e,unmounted:$e,activated:$e,deactivated:$e,errorCaptured:$e,serverPrefetch:$e,components:es,directives:es,watch:oi,provide:Il,inject:ri};function Il(e,t){return t?e?function(){return be(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function ri(e,t){return es(kn(e),kn(t))}function kn(e){if(q(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function $e(e,t){return e?[...new Set([].concat(e,t))]:t}function es(e,t){return e?be(Object.create(null),e,t):t}function Dl(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:be(Object.create(null),Ml(e),Ml(t??{})):t}function oi(e,t){if(!e)return t;if(!t)return e;const s=be(Object.create(null),e);for(const n in t)s[n]=$e(e[n],t[n]);return s}function Fl(){return{app:null,config:{isNativeTag:Hn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ii=0;function ai(e,t){return function(n,l=null){J(n)||(n=be({},n)),l!=null&&!ae(l)&&(l=null);const r=Fl(),i=new WeakSet,a=[];let u=!1;const g=r.app={_uid:ii++,_component:n,_props:l,_container:null,_context:r,_instance:null,version:Vi,get config(){return r.config},set config(f){},use(f,...x){return i.has(f)||(f&&J(f.install)?(i.add(f),f.install(g,...x)):J(f)&&(i.add(f),f(g,...x))),g},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),g},component(f,x){return x?(r.components[f]=x,g):r.components[f]},directive(f,x){return x?(r.directives[f]=x,g):r.directives[f]},mount(f,x,y){if(!u){const p=g._ceVNode||ge(n,l);return p.appContext=r,y===!0?y="svg":y===!1&&(y=void 0),e(p,f,y),u=!0,g._container=f,f.__vue_app__=g,Fs(p.component)}},onUnmount(f){a.push(f)},unmount(){u&&(ze(a,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(f,x){return r.provides[f]=x,g},runWithContext(f){const x=Dt;Dt=g;try{return f()}finally{Dt=x}}};return g}}let Dt=null;const ui=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${dt(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function ci(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||de;let l=s;const r=t.startsWith("update:"),i=r&&ui(n,t.slice(7));i&&(i.trim&&(l=s.map(f=>pe(f)?f.trim():f)),i.number&&(l=s.map(Qs)));let a,u=n[a=Gs(t)]||n[a=Gs(dt(t))];!u&&r&&(u=n[a=Gs(ft(t))]),u&&ze(u,e,6,l);const g=n[a+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ze(g,e,6,l)}}const di=new WeakMap;function jl(e,t,s=!1){const n=s?di:t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},a=!1;if(!J(e)){const u=g=>{const f=jl(g,t,!0);f&&(a=!0,be(i,f))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(ae(e)&&n.set(e,null),null):(q(r)?r.forEach(u=>i[u]=null):be(i,r),ae(e)&&n.set(e,i),i)}function Ms(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,ft(t))||ie(e,t))}function ng(){}function Bl(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:a,emit:u,render:g,renderCache:f,props:x,data:y,setupState:p,ctx:k,inheritAttrs:_}=e,K=ks(e);let S,b;try{if(s.shapeFlag&4){const R=l||n,$=R;S=Je(g.call($,R,f,x,p,y,k)),b=a}else{const R=t;S=Je(R.length>1?R(x,{attrs:a,slots:i,emit:u}):R(x,null)),b=t.props?a:fi(a)}}catch(R){ts.length=0,Gt(R,e,1),S=ge(vt)}let w=S;if(b&&_!==!1){const R=Object.keys(b),{shapeFlag:$}=w;R.length&&$&7&&(r&&R.some(Ws)&&(b=hi(b,r)),w=Ft(w,b,!1,!0))}return s.dirs&&(w=Ft(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(s.dirs):s.dirs),s.transition&&vn(w,s.transition),S=w,ks(K),S}const fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||ds(s))&&((t||(t={}))[s]=e[s]);return t},hi=(e,t)=>{const s={};for(const n in e)(!Ws(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function gi(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:a,patchFlag:u}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?Nl(n,i,g):!!i;if(u&8){const f=t.dynamicProps;for(let x=0;x<f.length;x++){const y=f[x];if(Hl(i,n,y)&&!Ms(g,y))return!0}}}else return(l||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?Nl(n,i,g):!0:!!i;return!1}function Nl(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let l=0;l<n.length;l++){const r=n[l];if(Hl(t,e,r)&&!Ms(s,r))return!0}return!1}function Hl(e,t,s){const n=e[s],l=t[s];return s==="style"&&ae(n)&&ae(l)?!Ys(n,l):n!==l}function pi({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Ul={},Kl=()=>Object.create(Ul),Vl=e=>Object.getPrototypeOf(e)===Ul;function bi(e,t,s,n=!1){const l={},r=Kl();e.propsDefaults=Object.create(null),zl(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:yo(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function vi(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,a=re(l),[u]=e.propsOptions;let g=!1;if((n||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let x=0;x<f.length;x++){let y=f[x];if(Ms(e.emitsOptions,y))continue;const p=t[y];if(u)if(ie(r,y))p!==r[y]&&(r[y]=p,g=!0);else{const k=dt(y);l[k]=$n(u,a,k,p,e,!1)}else p!==r[y]&&(r[y]=p,g=!0)}}}else{zl(e,t,l,r)&&(g=!0);let f;for(const x in a)(!t||!ie(t,x)&&((f=ft(x))===x||!ie(t,f)))&&(u?s&&(s[x]!==void 0||s[f]!==void 0)&&(l[x]=$n(u,a,x,void 0,e,!0)):delete l[x]);if(r!==a)for(const x in r)(!t||!ie(t,x))&&(delete r[x],g=!0)}g&&st(e.attrs,"set","")}function zl(e,t,s,n){const[l,r]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Ut(u))continue;const g=t[u];let f;l&&ie(l,f=dt(u))?!r||!r.includes(f)?s[f]=g:(a||(a={}))[f]=g:Ms(e.emitsOptions,u)||(!(u in n)||g!==n[u])&&(n[u]=g,i=!0)}if(r){const u=re(s),g=a||de;for(let f=0;f<r.length;f++){const x=r[f];s[x]=$n(l,u,x,g[x],e,!ie(g,x))}}return i}function $n(e,t,s,n,l,r){const i=e[s];if(i!=null){const a=ie(i,"default");if(a&&n===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&J(u)){const{propsDefaults:g}=l;if(s in g)n=g[s];else{const f=ls(l);n=g[s]=u.call(null,t),f()}}else n=u;l.ce&&l.ce._setProp(s,n)}i[0]&&(r&&!a?n=!1:i[1]&&(n===""||n===ft(s))&&(n=!0))}return n}const mi=new WeakMap;function Wl(e,t,s=!1){const n=s?mi:t.propsCache,l=n.get(e);if(l)return l;const r=e.props,i={},a=[];let u=!1;if(!J(e)){const f=x=>{u=!0;const[y,p]=Wl(x,t,!0);be(i,y),p&&a.push(...p)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!u)return ae(e)&&n.set(e,Pt),Pt;if(q(r))for(let f=0;f<r.length;f++){const x=dt(r[f]);ql(x)&&(i[x]=de)}else if(r)for(const f in r){const x=dt(f);if(ql(x)){const y=r[f],p=i[x]=q(y)||J(y)?{type:y}:be({},y),k=p.type;let _=!1,K=!0;if(q(k))for(let S=0;S<k.length;++S){const b=k[S],w=J(b)&&b.name;if(w==="Boolean"){_=!0;break}else w==="String"&&(K=!1)}else _=J(k)&&k.name==="Boolean";p[0]=_,p[1]=K,(_||ie(p,"default"))&&a.push(x)}}const g=[i,a];return ae(e)&&n.set(e,g),g}function ql(e){return e[0]!=="$"&&!Ut(e)}const Cn=e=>e==="_"||e==="_ctx"||e==="$stable",Tn=e=>q(e)?e.map(Je):[Je(e)],yi=(e,t,s)=>{if(t._n)return t;const n=Io((...l)=>Tn(t(...l)),s);return n._c=!1,n},Jl=(e,t,s)=>{const n=e._ctx;for(const l in e){if(Cn(l))continue;const r=e[l];if(J(r))t[l]=yi(l,r,n);else if(r!=null){const i=Tn(r);t[l]=()=>i}}},Gl=(e,t)=>{const s=Tn(t);e.slots.default=()=>s},Ql=(e,t,s)=>{for(const n in t)(s||!Cn(n))&&(e[n]=t[n])},_i=(e,t,s)=>{const n=e.slots=Kl();if(e.vnode.shapeFlag&32){const l=t._;l?(Ql(n,t,s),s&&Jn(n,"_",l,!0)):Jl(t,n)}else t&&Gl(e,t)},xi=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=de;if(n.shapeFlag&32){const a=t._;a?s&&a===1?r=!1:Ql(l,t,s):(r=!t.$stable,Jl(t,l)),i=t}else t&&(Gl(e,t),i={default:1});if(r)for(const a in l)!Cn(a)&&i[a]==null&&delete l[a]},Se=Ti;function wi(e){return ki(e)}function ki(e,t){const s=gs();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:a,createComment:u,setText:g,setElementText:f,parentNode:x,nextSibling:y,setScopeId:p=He,insertStaticContent:k}=e,_=(h,v,C,M=null,E=null,P=null,D=void 0,I=null,O=!!v.dynamicChildren)=>{if(h===v)return;h&&!ns(h,v)&&(M=Vs(h),Xe(h,E,P,!0),h=null),v.patchFlag===-2&&(O=!1,v.dynamicChildren=null);const{type:A,ref:W,shapeFlag:F}=v;switch(A){case Ls:K(h,v,C,M);break;case vt:S(h,v,C,M);break;case En:h==null&&b(v,C,M,D);break;case L:j(h,v,C,M,E,P,D,I,O);break;default:F&1?$(h,v,C,M,E,P,D,I,O):F&6?ce(h,v,C,M,E,P,D,I,O):(F&64||F&128)&&A.process(h,v,C,M,E,P,D,I,O,us)}W!=null&&E?Yt(W,h&&h.ref,P,v||h,!v):W==null&&h&&h.ref!=null&&Yt(h.ref,null,P,h,!0)},K=(h,v,C,M)=>{if(h==null)n(v.el=a(v.children),C,M);else{const E=v.el=h.el;v.children!==h.children&&g(E,v.children)}},S=(h,v,C,M)=>{h==null?n(v.el=u(v.children||""),C,M):v.el=h.el},b=(h,v,C,M)=>{[h.el,h.anchor]=k(h.children,v,C,M,h.el,h.anchor)},w=({el:h,anchor:v},C,M)=>{let E;for(;h&&h!==v;)E=y(h),n(h,C,M),h=E;n(v,C,M)},R=({el:h,anchor:v})=>{let C;for(;h&&h!==v;)C=y(h),l(h),h=C;l(v)},$=(h,v,C,M,E,P,D,I,O)=>{if(v.type==="svg"?D="svg":v.type==="math"&&(D="mathml"),h==null)N(v,C,M,E,P,D,I,O);else{const A=h.el&&h.el._isVueCE?h.el:null;try{A&&A._beginPatch(),ee(h,v,E,P,D,I,O)}finally{A&&A._endPatch()}}},N=(h,v,C,M,E,P,D,I)=>{let O,A;const{props:W,shapeFlag:F,transition:V,dirs:G}=h;if(O=h.el=i(h.type,P,W&&W.is,W),F&8?f(O,h.children):F&16&&U(h.children,O,null,M,E,Sn(h,P),D,I),G&&$t(h,null,M,"created"),B(O,h,h.scopeId,D,M),W){for(const he in W)he!=="value"&&!Ut(he)&&r(O,he,null,W[he],P,M);"value"in W&&r(O,"value",null,W.value,P),(A=W.onVnodeBeforeMount)&&Ge(A,M,h)}G&&$t(h,null,M,"beforeMount");const te=$i(E,V);te&&V.beforeEnter(O),n(O,v,C),((A=W&&W.onVnodeMounted)||te||G)&&Se(()=>{A&&Ge(A,M,h),te&&V.enter(O),G&&$t(h,null,M,"mounted")},E)},B=(h,v,C,M,E)=>{if(C&&p(h,C),M)for(let P=0;P<M.length;P++)p(h,M[P]);if(E){let P=E.subTree;if(v===P||tr(P.type)&&(P.ssContent===v||P.ssFallback===v)){const D=E.vnode;B(h,D,D.scopeId,D.slotScopeIds,E.parent)}}},U=(h,v,C,M,E,P,D,I,O=0)=>{for(let A=O;A<h.length;A++){const W=h[A]=I?at(h[A]):Je(h[A]);_(null,W,v,C,M,E,P,D,I)}},ee=(h,v,C,M,E,P,D)=>{const I=v.el=h.el;let{patchFlag:O,dynamicChildren:A,dirs:W}=v;O|=h.patchFlag&16;const F=h.props||de,V=v.props||de;let G;if(C&&Tt(C,!1),(G=V.onVnodeBeforeUpdate)&&Ge(G,C,v,h),W&&$t(v,h,C,"beforeUpdate"),C&&Tt(C,!0),(F.innerHTML&&V.innerHTML==null||F.textContent&&V.textContent==null)&&f(I,""),A?Q(h.dynamicChildren,A,I,C,M,Sn(v,E),P):D||le(h,v,I,null,C,M,Sn(v,E),P,!1),O>0){if(O&16)ne(I,F,V,C,E);else if(O&2&&F.class!==V.class&&r(I,"class",null,V.class,E),O&4&&r(I,"style",F.style,V.style,E),O&8){const te=v.dynamicProps;for(let he=0;he<te.length;he++){const ue=te[he],Ee=F[ue],Pe=V[ue];(Pe!==Ee||ue==="value")&&r(I,ue,Ee,Pe,E,C)}}O&1&&h.children!==v.children&&f(I,v.children)}else!D&&A==null&&ne(I,F,V,C,E);((G=V.onVnodeUpdated)||W)&&Se(()=>{G&&Ge(G,C,v,h),W&&$t(v,h,C,"updated")},M)},Q=(h,v,C,M,E,P,D)=>{for(let I=0;I<v.length;I++){const O=h[I],A=v[I],W=O.el&&(O.type===L||!ns(O,A)||O.shapeFlag&198)?x(O.el):C;_(O,A,W,null,M,E,P,D,!0)}},ne=(h,v,C,M,E)=>{if(v!==C){if(v!==de)for(const P in v)!Ut(P)&&!(P in C)&&r(h,P,v[P],null,E,M);for(const P in C){if(Ut(P))continue;const D=C[P],I=v[P];D!==I&&P!=="value"&&r(h,P,I,D,E,M)}"value"in C&&r(h,"value",v.value,C.value,E)}},j=(h,v,C,M,E,P,D,I,O)=>{const A=v.el=h?h.el:a(""),W=v.anchor=h?h.anchor:a("");let{patchFlag:F,dynamicChildren:V,slotScopeIds:G}=v;G&&(I=I?I.concat(G):G),h==null?(n(A,C,M),n(W,C,M),U(v.children||[],C,W,E,P,D,I,O)):F>0&&F&64&&V&&h.dynamicChildren&&h.dynamicChildren.length===V.length?(Q(h.dynamicChildren,V,C,E,P,D,I),(v.key!=null||E&&v===E.subTree)&&Yl(h,v,!0)):le(h,v,C,W,E,P,D,I,O)},ce=(h,v,C,M,E,P,D,I,O)=>{v.slotScopeIds=I,h==null?v.shapeFlag&512?E.ctx.activate(v,C,M,D,O):ct(v,C,M,E,P,D,O):Ks(h,v,O)},ct=(h,v,C,M,E,P,D)=>{const I=h.component=Oi(h,M,E);if(yn(h)&&(I.ctx.renderer=us),Ii(I,!1,D),I.asyncDep){if(E&&E.registerDep(I,me,D),!h.el){const O=I.subTree=ge(vt);S(null,O,v,C),h.placeholder=O.el}}else me(I,h,v,C,E,P,D)},Ks=(h,v,C)=>{const M=v.component=h.component;if(gi(h,v,C))if(M.asyncDep&&!M.asyncResolved){Z(M,v,C);return}else M.next=v,M.update();else v.el=h.el,M.vnode=v},me=(h,v,C,M,E,P,D)=>{const I=()=>{if(h.isMounted){let{next:F,bu:V,u:G,parent:te,vnode:he}=h;{const et=Xl(h);if(et){F&&(F.el=he.el,Z(h,F,D)),et.asyncDep.then(()=>{Se(()=>{h.isUnmounted||A()},E)});return}}let ue=F,Ee;Tt(h,!1),F?(F.el=he.el,Z(h,F,D)):F=he,V&&hs(V),(Ee=F.props&&F.props.onVnodeBeforeUpdate)&&Ge(Ee,te,F,he),Tt(h,!0);const Pe=Bl(h),Ze=h.subTree;h.subTree=Pe,_(Ze,Pe,x(Ze.el),Vs(Ze),h,E,P),F.el=Pe.el,ue===null&&pi(h,Pe.el),G&&Se(G,E),(Ee=F.props&&F.props.onVnodeUpdated)&&Se(()=>Ge(Ee,te,F,he),E)}else{let F;const{el:V,props:G}=v,{bm:te,m:he,parent:ue,root:Ee,type:Pe}=h,Ze=Xt(v);Tt(h,!1),te&&hs(te),!Ze&&(F=G&&G.onVnodeBeforeMount)&&Ge(F,ue,v),Tt(h,!0);{Ee.ce&&Ee.ce._hasShadowRoot()&&Ee.ce._injectChildStyle(Pe);const et=h.subTree=Bl(h);_(null,et,C,M,h,E,P),v.el=et.el}if(he&&Se(he,E),!Ze&&(F=G&&G.onVnodeMounted)){const et=v;Se(()=>Ge(F,ue,et),E)}(v.shapeFlag&256||ue&&Xt(ue.vnode)&&ue.vnode.shapeFlag&256)&&h.a&&Se(h.a,E),h.isMounted=!0,v=C=M=null}};h.scope.on();const O=h.effect=new Zn(I);h.scope.off();const A=h.update=O.run.bind(O),W=h.job=O.runIfDirty.bind(O);W.i=h,W.id=h.uid,O.scheduler=()=>bn(W),Tt(h,!0),A()},Z=(h,v,C)=>{v.component=h;const M=h.vnode.props;h.vnode=v,h.next=null,vi(h,v.props,M,C),xi(h,v.children,C),Ke(),xl(h),Ve()},le=(h,v,C,M,E,P,D,I,O=!1)=>{const A=h&&h.children,W=h?h.shapeFlag:0,F=v.children,{patchFlag:V,shapeFlag:G}=v;if(V>0){if(V&128){is(A,F,C,M,E,P,D,I,O);return}else if(V&256){ye(A,F,C,M,E,P,D,I,O);return}}G&8?(W&16&&as(A,E,P),F!==A&&f(C,F)):W&16?G&16?is(A,F,C,M,E,P,D,I,O):as(A,E,P,!0):(W&8&&f(C,""),G&16&&U(F,C,M,E,P,D,I,O))},ye=(h,v,C,M,E,P,D,I,O)=>{h=h||Pt,v=v||Pt;const A=h.length,W=v.length,F=Math.min(A,W);let V;for(V=0;V<F;V++){const G=v[V]=O?at(v[V]):Je(v[V]);_(h[V],G,C,null,E,P,D,I,O)}A>W?as(h,E,P,!0,!1,F):U(v,C,M,E,P,D,I,O,F)},is=(h,v,C,M,E,P,D,I,O)=>{let A=0;const W=v.length;let F=h.length-1,V=W-1;for(;A<=F&&A<=V;){const G=h[A],te=v[A]=O?at(v[A]):Je(v[A]);if(ns(G,te))_(G,te,C,null,E,P,D,I,O);else break;A++}for(;A<=F&&A<=V;){const G=h[F],te=v[V]=O?at(v[V]):Je(v[V]);if(ns(G,te))_(G,te,C,null,E,P,D,I,O);else break;F--,V--}if(A>F){if(A<=V){const G=V+1,te=G<W?v[G].el:M;for(;A<=V;)_(null,v[A]=O?at(v[A]):Je(v[A]),C,te,E,P,D,I,O),A++}}else if(A>V)for(;A<=F;)Xe(h[A],E,P,!0),A++;else{const G=A,te=A,he=new Map;for(A=te;A<=V;A++){const Me=v[A]=O?at(v[A]):Je(v[A]);Me.key!=null&&he.set(Me.key,A)}let ue,Ee=0;const Pe=V-te+1;let Ze=!1,et=0;const cs=new Array(Pe);for(A=0;A<Pe;A++)cs[A]=0;for(A=G;A<=F;A++){const Me=h[A];if(Ee>=Pe){Xe(Me,E,P,!0);continue}let tt;if(Me.key!=null)tt=he.get(Me.key);else for(ue=te;ue<=V;ue++)if(cs[ue-te]===0&&ns(Me,v[ue])){tt=ue;break}tt===void 0?Xe(Me,E,P,!0):(cs[tt-te]=A+1,tt>=et?et=tt:Ze=!0,_(Me,v[tt],C,null,E,P,D,I,O),Ee++)}const Br=Ze?Ci(cs):Pt;for(ue=Br.length-1,A=Pe-1;A>=0;A--){const Me=te+A,tt=v[Me],Nr=v[Me+1],Hr=Me+1<W?Nr.el||er(Nr):M;cs[A]===0?_(null,tt,C,Hr,E,P,D,I,O):Ze&&(ue<0||A!==Br[ue]?Et(tt,C,Hr,2):ue--)}}},Et=(h,v,C,M,E=null)=>{const{el:P,type:D,transition:I,children:O,shapeFlag:A}=h;if(A&6){Et(h.component.subTree,v,C,M);return}if(A&128){h.suspense.move(v,C,M);return}if(A&64){D.move(h,v,C,us);return}if(D===L){n(P,v,C);for(let F=0;F<O.length;F++)Et(O[F],v,C,M);n(h.anchor,v,C);return}if(D===En){w(h,v,C);return}if(M!==2&&A&1&&I)if(M===0)I.beforeEnter(P),n(P,v,C),Se(()=>I.enter(P),E);else{const{leave:F,delayLeave:V,afterLeave:G}=I,te=()=>{h.ctx.isUnmounted?l(P):n(P,v,C)},he=()=>{P._isLeaving&&P[Uo](!0),F(P,()=>{te(),G&&G()})};V?V(P,te,he):he()}else n(P,v,C)},Xe=(h,v,C,M=!1,E=!1)=>{const{type:P,props:D,ref:I,children:O,dynamicChildren:A,shapeFlag:W,patchFlag:F,dirs:V,cacheIndex:G}=h;if(F===-2&&(E=!1),I!=null&&(Ke(),Yt(I,null,C,h,!0),Ve()),G!=null&&(v.renderCache[G]=void 0),W&256){v.ctx.deactivate(h);return}const te=W&1&&V,he=!Xt(h);let ue;if(he&&(ue=D&&D.onVnodeBeforeUnmount)&&Ge(ue,v,h),W&6)Zh(h.component,C,M);else{if(W&128){h.suspense.unmount(C,M);return}te&&$t(h,null,v,"beforeUnmount"),W&64?h.type.remove(h,v,C,us,M):A&&!A.hasOnce&&(P!==L||F>0&&F&64)?as(A,v,C,!1,!0):(P===L&&F&384||!E&&W&16)&&as(O,v,C),M&&Fr(h)}(he&&(ue=D&&D.onVnodeUnmounted)||te)&&Se(()=>{ue&&Ge(ue,v,h),te&&$t(h,null,v,"unmounted")},C)},Fr=h=>{const{type:v,el:C,anchor:M,transition:E}=h;if(v===L){Xh(C,M);return}if(v===En){R(h);return}const P=()=>{l(C),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(h.shapeFlag&1&&E&&!E.persisted){const{leave:D,delayLeave:I}=E,O=()=>D(C,P);I?I(h.el,P,O):O()}else P()},Xh=(h,v)=>{let C;for(;h!==v;)C=y(h),l(h),h=C;l(v)},Zh=(h,v,C)=>{const{bum:M,scope:E,job:P,subTree:D,um:I,m:O,a:A}=h;Zl(O),Zl(A),M&&hs(M),E.stop(),P&&(P.flags|=8,Xe(D,h,v,C)),I&&Se(I,v),Se(()=>{h.isUnmounted=!0},v)},as=(h,v,C,M=!1,E=!1,P=0)=>{for(let D=P;D<h.length;D++)Xe(h[D],v,C,M,E)},Vs=h=>{if(h.shapeFlag&6)return Vs(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const v=y(h.anchor||h.el),C=v&&v[No];return C?y(C):v};let Nn=!1;const jr=(h,v,C)=>{let M;h==null?v._vnode&&(Xe(v._vnode,null,null,!0),M=v._vnode.component):_(v._vnode||null,h,v,null,null,null,C),v._vnode=h,Nn||(Nn=!0,xl(M),wl(),Nn=!1)},us={p:_,um:Xe,m:Et,r:Fr,mt:ct,mc:U,pc:le,pbc:Q,n:Vs,o:e};return{render:jr,hydrate:void 0,createApp:ai(jr)}}function Sn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Tt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $i(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yl(e,t,s=!1){const n=e.children,l=t.children;if(q(n)&&q(l))for(let r=0;r<n.length;r++){const i=n[r];let a=l[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[r]=at(l[r]),a.el=i.el),!s&&a.patchFlag!==-2&&Yl(i,a)),a.type===Ls&&(a.patchFlag===-1&&(a=l[r]=at(a)),a.el=i.el),a.type===vt&&!a.el&&(a.el=i.el)}}function Ci(e){const t=e.slice(),s=[0];let n,l,r,i,a;const u=e.length;for(n=0;n<u;n++){const g=e[n];if(g!==0){if(l=s[s.length-1],e[l]<g){t[n]=l,s.push(n);continue}for(r=0,i=s.length-1;r<i;)a=r+i>>1,e[s[a]]<g?r=a+1:i=a;g<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Xl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xl(t)}function Zl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function er(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?er(t.subTree):null}const tr=e=>e.__isSuspense;function Ti(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Ro(e)}const L=Symbol.for("v-fgt"),Ls=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),ts=[];let Ae=null;function c(e=!1){ts.push(Ae=e?null:[])}function Si(){ts.pop(),Ae=ts[ts.length-1]||null}let ss=1;function Os(e,t=!1){ss+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function sr(e){return e.dynamicChildren=ss>0?Ae||Pt:null,Si(),ss>0&&Ae&&Ae.push(e),e}function d(e,t,s,n,l,r){return sr(o(e,t,s,n,l,r,!0))}function Re(e,t,s,n,l){return sr(ge(e,t,s,n,l,!0))}function Rs(e){return e?e.__v_isVNode===!0:!1}function ns(e,t){return e.type===t.type&&e.key===t.key}const nr=({key:e})=>e??null,Is=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?pe(e)||ve(e)||J(e)?{i:Oe,r:e,k:t,f:!!s}:e:null);function o(e,t=null,s=null,n=0,l=null,r=e===L?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nr(t),ref:t&&Is(t),scopeId:$l,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Oe};return a?(Pn(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=pe(s)?8:16),ss>0&&!i&&Ae&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Ae.push(u),u}const ge=Ei;function Ei(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===ei)&&(e=vt),Rs(e)){const a=Ft(e,t,!0);return s&&Pn(a,s),ss>0&&!r&&Ae&&(a.shapeFlag&6?Ae[Ae.indexOf(e)]=a:Ae.push(a)),a.patchFlag=-2,a}if(Ui(e)&&(e=e.__vccOpts),t){t=Pi(t);let{class:a,style:u}=t;a&&!pe(a)&&(t.class=H(a)),ae(u)&&(hn(u)&&!q(u)&&(u=be({},u)),t.style=gt(u))}const i=pe(e)?1:tr(e)?128:Ho(e)?64:ae(e)?4:J(e)?2:0;return o(e,t,s,n,l,i,r,!0)}function Pi(e){return e?hn(e)||Vl(e)?be({},e):e:null}function Ft(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:a,transition:u}=e,g=t?Ai(l||{},t):l,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&nr(g),ref:t&&t.ref?s&&r?q(r)?r.concat(Is(t)):[r,Is(t)]:Is(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==L?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ft(e.ssContent),ssFallback:e.ssFallback&&Ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&vn(f,u.clone(f)),f}function se(e=" ",t=0){return ge(Ls,null,e,t)}function oe(e="",t=!1){return t?(c(),Re(vt,null,e)):ge(vt,null,e)}function Je(e){return e==null||typeof e=="boolean"?ge(vt):q(e)?ge(L,null,e.slice()):Rs(e)?at(e):ge(Ls,null,String(e))}function at(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function Pn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(q(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),Pn(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!Vl(t)?t._ctx=Oe:l===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else J(t)?(t={default:t,_ctx:Oe},s=32):(t=String(t),n&64?(s=16,t=[se(t)]):s=8);e.children=t,e.shapeFlag|=s}function Ai(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const l in n)if(l==="class")t.class!==n.class&&(t.class=H([t.class,n.class]));else if(l==="style")t.style=gt([t.style,n.style]);else if(ds(l)){const r=t[l],i=n[l];i&&r!==i&&!(q(r)&&r.includes(i))&&(t[l]=r?[].concat(r,i):i)}else l!==""&&(t[l]=n[l])}return t}function Ge(e,t,s,n=null){ze(e,t,7,[s,n])}const Mi=Fl();let Li=0;function Oi(e,t,s){const n=e.type,l=(t?t.appContext:e.appContext)||Mi,r={uid:Li++,vnode:e,type:n,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Xr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wl(n,l),emitsOptions:jl(n,l),emit:null,emitted:null,propsDefaults:de,inheritAttrs:n.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=ci.bind(null,r),e.ce&&e.ce(r),r}let we=null;const Ri=()=>we||Oe;let Ds,An;{const e=gs(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ds=t("__VUE_INSTANCE_SETTERS__",s=>we=s),An=t("__VUE_SSR_SETTERS__",s=>jt=s)}const ls=e=>{const t=we;return Ds(e),e.scope.on(),()=>{e.scope.off(),Ds(t)}},lr=()=>{we&&we.scope.off(),Ds(null)};function rr(e){return e.vnode.shapeFlag&4}let jt=!1;function Ii(e,t=!1,s=!1){t&&An(t);const{props:n,children:l}=e.vnode,r=rr(e);bi(e,n,r,t),_i(e,l,s||t);const i=r?Di(e,t):void 0;return t&&An(!1),i}function Di(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ti);const{setup:n}=s;if(n){Ke();const l=e.setupContext=n.length>1?ji(e):null,r=ls(e),i=Ot(n,e,0,[e.props,l]),a=Vn(i);if(Ve(),r(),(a||e.sp)&&!Xt(e)&&mn(e),a){if(i.then(lr,lr),t)return i.then(u=>{or(e,u)}).catch(u=>{Gt(u,e,0)});e.asyncDep=i}else or(e,i)}else ir(e)}function or(e,t,s){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=vl(t)),ir(e)}function ir(e,t,s){const n=e.type;e.render||(e.render=n.render||He);{const l=ls(e);Ke();try{si(e)}finally{Ve(),l()}}}const Fi={get(e,t){return _e(e,"get",""),e[t]}};function ji(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Fi),slots:e.slots,emit:e.emit,expose:t}}function Fs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vl(_o(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Zt)return Zt[s](e)},has(t,s){return s in t||s in Zt}})):e.proxy}const Bi=/(?:^|[-_])\w/g,Ni=e=>e.replace(Bi,t=>t.toUpperCase()).replace(/[-_]/g,"");function Hi(e,t=!0){return J(e)?e.displayName||e.name:e.name||t&&e.__name}function ar(e,t,s=!1){let n=Hi(t);if(!n&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(n=l[1])}if(!n&&e){const l=r=>{for(const i in r)if(r[i]===t)return i};n=l(e.components)||e.parent&&l(e.parent.type.components)||l(e.appContext.components)}return n?Ni(n):s?"App":"Anonymous"}function Ui(e){return J(e)&&"__vccOpts"in e}const Y=(e,t)=>Co(e,t,jt);function Ki(e,t,s){try{Os(-1);const n=arguments.length;return n===2?ae(t)&&!q(t)?Rs(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Rs(s)&&(s=[s]),ge(e,t,s))}finally{Os(1)}}const Vi="3.5.29";let Mn;const ur=typeof window<"u"&&window.trustedTypes;if(ur)try{Mn=ur.createPolicy("vue",{createHTML:e=>e})}catch{}const cr=Mn?e=>Mn.createHTML(e):e=>e,zi="http://www.w3.org/2000/svg",Wi="http://www.w3.org/1998/Math/MathML",ut=typeof document<"u"?document:null,dr=ut&&ut.createElement("template"),qi={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const l=t==="svg"?ut.createElementNS(zi,e):t==="mathml"?ut.createElementNS(Wi,e):s?ut.createElement(e,{is:s}):ut.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,r){const i=s?s.previousSibling:t.lastChild;if(l&&(l===r||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===r||!(l=l.nextSibling)););else{dr.innerHTML=cr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=dr.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ji=Symbol("_vtc");function Gi(e,t,s){const n=e[Ji];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const fr=Symbol("_vod"),Qi=Symbol("_vsh"),Yi=Symbol(""),Xi=/(?:^|;)\s*display\s*:/;function Zi(e,t,s){const n=e.style,l=pe(s);let r=!1;if(s&&!l){if(t)if(pe(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&js(n,a,"")}else for(const i in t)s[i]==null&&js(n,i,"");for(const i in s)i==="display"&&(r=!0),js(n,i,s[i])}else if(l){if(t!==s){const i=n[Yi];i&&(s+=";"+i),n.cssText=s,r=Xi.test(s)}}else t&&e.removeAttribute("style");fr in e&&(e[fr]=r?n.display:"",e[Qi]&&(n.display="none"))}const hr=/\s*!important$/;function js(e,t,s){if(q(s))s.forEach(n=>js(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ea(e,t);hr.test(s)?e.setProperty(ft(n),s.replace(hr,""),"important"):e[n]=s}}const gr=["Webkit","Moz","ms"],Ln={};function ea(e,t){const s=Ln[t];if(s)return s;let n=dt(t);if(n!=="filter"&&n in e)return Ln[t]=n;n=qn(n);for(let l=0;l<gr.length;l++){const r=gr[l]+n;if(r in e)return Ln[t]=r}return t}const pr="http://www.w3.org/1999/xlink";function br(e,t,s,n,l,r=Qr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(pr,t.slice(6,t.length)):e.setAttributeNS(pr,t,s):s==null||r&&!Qn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ue(s)?String(s):s)}function vr(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?cr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=Qn(s):s==null&&a==="string"?(s="",i=!0):a==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(l||t)}function Bt(e,t,s,n){e.addEventListener(t,s,n)}function ta(e,t,s,n){e.removeEventListener(t,s,n)}const mr=Symbol("_vei");function sa(e,t,s,n,l=null){const r=e[mr]||(e[mr]={}),i=r[t];if(n&&i)i.value=n;else{const[a,u]=na(t);if(n){const g=r[t]=oa(n,l);Bt(e,a,g,u)}else i&&(ta(e,a,i,u),r[t]=void 0)}}const yr=/(?:Once|Passive|Capture)$/;function na(e){let t;if(yr.test(e)){t={};let n;for(;n=e.match(yr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ft(e.slice(2)),t]}let On=0;const la=Promise.resolve(),ra=()=>On||(la.then(()=>On=0),On=Date.now());function oa(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ze(ia(n,s.value),t,5,[n])};return s.value=e,s.attached=ra(),s}function ia(e,t){if(q(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>l=>!l._stopped&&n&&n(l))}else return t}const _r=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,aa=(e,t,s,n,l,r)=>{const i=l==="svg";t==="class"?Gi(e,n,i):t==="style"?Zi(e,s,n):ds(t)?Ws(t)||sa(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ua(e,t,n,i))?(vr(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&br(e,t,n,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pe(n))?vr(e,dt(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),br(e,t,n,i))};function ua(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&_r(t)&&J(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return _r(t)&&pe(s)?!1:t in e}const xr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?s=>hs(t,s):t};function ca(e){e.target.composing=!0}function wr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rn=Symbol("_assign");function kr(e,t,s){return t&&(e=e.trim()),s&&(e=Qs(e)),e}const Qe={created(e,{modifiers:{lazy:t,trim:s,number:n}},l){e[Rn]=xr(l);const r=n||l.props&&l.props.type==="number";Bt(e,t?"change":"input",i=>{i.target.composing||e[Rn](kr(e.value,s,r))}),(s||r)&&Bt(e,"change",()=>{e.value=kr(e.value,s,r)}),t||(Bt(e,"compositionstart",ca),Bt(e,"compositionend",wr),Bt(e,"change",wr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:r}},i){if(e[Rn]=xr(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Qs(e.value):e.value,u=t??"";a!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||l&&e.value.trim()===u)||(e.value=u))}},da=["ctrl","shift","alt","meta"],fa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>da.some(s=>e[`${s}Key`]&&!t.includes(s))},Nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...r)=>{for(let i=0;i<t.length;i++){const a=fa[t[i]];if(a&&a(l,t))return}return e(l,...r)}))},ha={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$r=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const r=ft(l.key);if(t.some(i=>i===r||ha[i]===r))return e(l)}))},ga=be({patchProp:aa},qi);let Cr;function pa(){return Cr||(Cr=wi(ga))}const ba=((...e)=>{const t=pa().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=ma(n);if(!l)return;const r=t._component;!J(r)&&!r.render&&!r.template&&(r.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=s(l,!1,va(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function va(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ma(e){return pe(e)?document.querySelector(e):e}class Bs extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class ya extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class In{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const l={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},r=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:l,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(r.status===401||r.status===403)throw new Bs(r.status);if(!r.ok){const i=await r.text().catch(()=>"");throw new ya(r.status,i)}return r.json()}async get(t,s){const n=s?`${t}?${s}`:t;return this.fetch(n)}async post(t,s){const n={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,n)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const _a=3e3,xa=100,wa=500,ka={queries:"/queries",events:"/events",emails:"/emails",routes:"/routes",logs:"/logs",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config",internals:"/diagnostics"};function $a(e){return ka[e]||`/${e}`}class Tr{client;endpoint;refreshInterval;callbacks;timer=null;currentTab=null;fetchOnceCache={};abortController=null;constructor(t){this.client=new In({baseUrl:t.baseUrl,authToken:t.authToken}),this.endpoint=t.endpoint??"/admin/api/debug",this.refreshInterval=t.refreshInterval??_a,this.callbacks={onData:t.onData,onLoading:t.onLoading,onError:t.onError,onUnauthorized:t.onUnauthorized}}start(t){this.stop(),this.currentTab=t,this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetchData(),this.timer=setInterval(()=>this.fetchData(),this.refreshInterval)}stop(){this.timer&&(clearInterval(this.timer),this.timer=null),this.abortController?.abort(),this.abortController=null}switchTab(t){this.start(t)}refresh(){this.currentTab&&this.fetchData()}async fetchCustomPane(t,s=!1){if(s&&this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.callbacks.onLoading(!0);try{const n=await this.client.fetch(t);this.callbacks.onData(n),this.callbacks.onError(null),s&&(this.fetchOnceCache[t]=n)}catch(n){if(n instanceof Bs){this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n)))}finally{this.callbacks.onLoading(!1)}}cacheForTab(t,s){this.fetchOnceCache[t]=s}clearCache(){this.fetchOnceCache={}}async fetchData(){const t=this.currentTab;if(!t||this.serveFromCache(t))return;this.abortController?.abort();const s=new AbortController;this.abortController=s;try{const n=`${this.endpoint}${$a(t)}`,l=await this.client.fetch(n,{signal:s.signal});if(s.signal.aborted)return;this.callbacks.onData(l),this.callbacks.onError(null),this.callbacks.onLoading(!1)}catch(n){this.handleFetchError(n,s)}}serveFromCache(t){return this.fetchOnceCache[t]===void 0?!1:(this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1),!0)}handleFetchError(t,s){if(!(t instanceof DOMException&&t.name==="AbortError")&&!s.signal.aborted){if(t instanceof Bs){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stop(),this.callbacks.onUnauthorized(t);return}this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1)}}}const Sr=new Set(["cache","jobs","config"]);function Er(e){return{onData:t=>{e.data.value=t},onLoading:t=>{e.loading.value=t},onError:t=>{e.error.value=t},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}class Ca{constructor(t,s,n,l){this.refs=t,this.config=s,this.dashboardEndpoint=l,this.controller=new Tr({...s,endpoint:n,...Er(t)})}controller;dashboardController=null;dashboardEndpoint;getDashboardController(){return!this.dashboardController&&this.dashboardEndpoint&&(this.dashboardController=new Tr({...this.config,endpoint:this.dashboardEndpoint,...Er(this.refs)})),this.dashboardController}startForTab(t){const s=t();!s||s.startsWith("custom-")||(Sr.has(s)&&this.dashboardEndpoint?(this.controller.stop(),this.getDashboardController().start(s)):(this.dashboardController?.stop(),this.controller.start(s)))}stopAll(){this.controller.stop(),this.dashboardController?.stop()}refresh(t){const s=t();Sr.has(s)&&this.dashboardEndpoint&&this.dashboardController?this.dashboardController.refresh():this.controller.refresh()}fetchCustomPane(t,s=!1){return this.controller.fetchCustomPane(t,s)}}function Ta(e,t={}){const{baseUrl:s="",debugEndpoint:n="/admin/api/debug",dashboardEndpoint:l,authToken:r,refreshInterval:i}=t,a=z(null),u=z(!1),g=z(null),f=z(!1),x={data:a,loading:u,error:g,isUnauthorized:f},y=new Ca(x,{baseUrl:s,authToken:r,refreshInterval:i},n,l);return ot(e,()=>{a.value=null,y.startForTab(e)}),Ct(()=>y.startForTab(e)),Ps(()=>y.stopAll()),{data:a,loading:u,error:g,isUnauthorized:f,refresh:()=>y.refresh(e),clear:()=>{a.value=null},fetchCustomPane:(p,k=!1)=>y.fetchCustomPane(p,k),startRefresh:()=>y.startForTab(e),stopRefresh:()=>y.stopAll()}}const Ns="ss-dash-theme",Dn="ss-theme-change";function Hs(){if(typeof window>"u")return"light";const e=localStorage.getItem(Ns);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function Sa(e){typeof window>"u"||(localStorage.setItem(Ns,e),window.dispatchEvent(new CustomEvent(Dn,{detail:e})))}function Ea(){const t=Hs()==="dark"?"light":"dark";return Sa(t),t}function Pa(e){if(typeof window>"u")return()=>{};const t=r=>{const i=r.detail;(i==="dark"||i==="light")&&e(i)},s=r=>{if(r.key===Ns){const i=r.newValue;e(i==="dark"||i==="light"?i:Hs())}},n=window.matchMedia("(prefers-color-scheme: dark)"),l=r=>{localStorage.getItem(Ns)||e(r.matches?"dark":"light")};return window.addEventListener(Dn,t),window.addEventListener("storage",s),n.addEventListener("change",l),()=>{window.removeEventListener(Dn,t),window.removeEventListener("storage",s),n.removeEventListener("change",l)}}function Aa(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function Ma(e,t,s){if(e.length===0)return"[]";const n=e.slice(0,3).map(i=>s(i,30)),l=e.length>3?", ..."+e.length+" items":"",r="["+n.join(", ")+l+"]";return r.length>t?"["+e.length+" items]":r}function La(e,t,s){const n=Object.keys(e);if(n.length===0)return"{}";const l=[];for(let u=0;u<Math.min(n.length,4);u++)l.push(n[u]+": "+s(e[n[u]],30));const r=n.length>4?", ...+"+(n.length-4):"",i="{ "+l.join(", ")+r+" }";return i.length<=t?i:"{ "+(n.slice(0,6).join(", ")+(n.length>6?", ...":""))+" }"}function Oa(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),n=Math.floor(t%86400/3600),l=Math.floor(t%3600/60);return s>0?`${s}d ${n}h`:n>0?`${n}h ${l}m`:l>0?`${l}m ${t%60}s`:`${t}s`}function Ie(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function Pr(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function mt(e){if(!e)return"-";const t=typeof e=="string"?new Date(Pr(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function Be(e){if(!e)return"-";const t=typeof e=="string"?new Date(Pr(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 Fn(e){return e>wa?"very-slow":e>xa?"slow":"normal"}function rs(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?Aa(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?Ma(e,t,rs):typeof e=="object"?La(e,t,rs):String(e)}function Ar(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 Ra(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Ia=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],Mr="/admin/api/debug",Lr={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 Da(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const n of Ia)t[n]=s?.[n]??!1;return t}async function Fa(e,t=Mr){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function ja(e){const{baseUrl:t="",debugEndpoint:s=Mr,authToken:n}=e,l=new In({baseUrl:t,authToken:n});try{const r=await Fa(l,s);return Da(r)}catch{return Lr}}const Ce={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},Ba="ss-col-resize",Or="ss-resizing";function Na(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let n=!1;function l(){if(!n){n=!0;for(const r of t)r.style.width=r.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const r of t){let i=function(u){u.preventDefault(),u.stopPropagation(),l();const g=u.clientX,f=r.offsetWidth;a.classList.add(Or),a.setPointerCapture(u.pointerId);function x(p){const k=p.clientX-g,_=Math.max(30,f+k);r.style.width=_+"px"}function y(){a.classList.remove(Or),a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",y)}a.addEventListener("pointermove",x),a.addEventListener("pointerup",y)};if(!r.textContent?.trim())continue;const a=document.createElement("div");a.className=Ba,r.appendChild(a),a.addEventListener("pointerdown",i),s.push(()=>{a.removeEventListener("pointerdown",i),a.remove()})}return()=>{for(const r of s)r()}}function Ha(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 Rr(e){const t={};for(const[s,n]of Object.entries(e))Va.has(s)||(t[s]=n);return Object.keys(t).length>0?t:null}const Ua=["all","error","warn","info","debug"];function os(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function jn(e){return e.msg||e.message||JSON.stringify(e)}function yt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ne(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function Ir(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}function Ka(e,t){return t==="all"?e:e.filter(s=>{const n=os(s);return t==="error"?n==="error"||n==="fatal":n===t})}const Va=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function Ye(e){if(e.data){const t=Ha(e.data);if(t){const s=Rr(t);if(s)return s}}return Rr(e)}function za(e,t){if(!t)return e;const s=t.toLowerCase();return e.filter(n=>n.sql.toLowerCase().includes(s)||n.model&&n.model.toLowerCase().includes(s)||n.method.toLowerCase().includes(s))}function Wa(e){const t={};for(const s of e)t[s.sql]=(t[s.sql]||0)+1;return t}function qa(e,t){const s=e.filter(r=>r.duration>100).length,n=Object.values(t).filter(r=>r>1).length,l=e.length>0?e.reduce((r,i)=>r+i.duration,0)/e.length:0;return{slowCount:s,dupCount:n,avgDuration:l,totalCount:e.length}}const Ja=["all","active","waiting","delayed","completed","failed"];function Ga(e,t="ss-dbg-job-status"){switch(e){case"completed":case"failed":case"active":case"waiting":case"delayed":return`${t}-${e}`;default:return"ss-dbg-badge-muted"}}const Qa=["password","secret","token","key","credential","auth"];function Ya(e){const t=e.toLowerCase();return Qa.some(s=>t.includes(s))}function Xa(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const Za={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function eu(e){return Za[e]||e}const tu={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function su(e){return tu[e]||e}function nu(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function lu(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 ru(e){return Object.entries(e).map(([t,s])=>({key:t,value:Xa(s),secret:Ya(t)}))}function ou(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const iu=["healthy","active","connected","available","ready"],au=["errored","unavailable"];function uu(e){return iu.includes(e)?"ok":au.includes(e)?"err":""}function cu(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function du(e,t,s){return!s||e.toLowerCase().includes(s)?!0:(cu(t)?t.display:t==null?"":String(t)).toLowerCase().includes(s)}const fu=new Set(["secret","key","token","password","pass","pwd","auth","credential","credentials","apikey","private","encryption"]);function hu(e){const t=e.split(/[._-]/),s=[];for(const n of t){const l=n.split(new RegExp("(?<=[a-z])(?=[A-Z])"));for(const r of l)r&&s.push(r)}return s}function gu(e){return hu(e).some(s=>fu.has(s.toLowerCase()))}function pu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,l=z({...Lr}),r=z(!0);return Ct(async()=>{l.value=await ja({baseUrl:t,debugEndpoint:s,authToken:n}),r.value=!1}),{features:l,loading:r}}function Dr(){const e=z(Hs());let t=null;function s(l){e.value=l}function n(){const l=Ea();return e.value=l,l}return Ct(()=>{e.value=Hs(),t=Pa(s)}),Ps(()=>{t?.()}),{theme:e,toggleTheme:n}}const bu=["title","aria-label"],vu=["viewBox","innerHTML"],mu=["viewBox","innerHTML"],yu=xe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:n}=Dr(),l=Y(()=>s.value==="dark"),r=Y(()=>l.value?"Switch to light theme":"Switch to dark theme"),i=Y(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(a,u)=>(c(),d("button",{type:"button",class:H(i.value),title:r.value,"aria-label":r.value,onClick:u[0]||(u[0]=(...g)=>T(n)&&T(n)(...g))},[l.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:T(Ce).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce).sun.elements.join("")},null,8,vu)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:T(Ce).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce).moon.elements.join("")},null,8,mu))],10,bu))}}),_u=["data-ss-theme"],xu={class:"ss-dbg-tabs"},wu={class:"ss-dbg-tabs-scroll"},ku=["onClick"],$u=["viewBox","innerHTML"],Cu={class:"ss-dbg-tabs-right"},Tu=["title"],Su=["href"],Eu=["viewBox","innerHTML"],Pu={class:"ss-dbg-content"},Au={key:0,class:"ss-dbg-empty"},Mu={key:1,class:"ss-dbg-empty",style:{color:"var(--ss-red-fg)"}},Lu=xe({__name:"DebugPanel",props:{dashboardPath:{default:"/__stats"},tracingEnabled:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},baseUrl:{default:""},debugEndpoint:{default:"/admin/api/debug"},authToken:{},className:{},defaultOpen:{type:Boolean,default:!1}},setup(e,{expose:t}){const s=je(()=>Promise.resolve().then(()=>Uu)),n=je(()=>Promise.resolve().then(()=>Xu)),l=je(()=>Promise.resolve().then(()=>mc)),r=je(()=>Promise.resolve().then(()=>Tc)),i=je(()=>Promise.resolve().then(()=>Uc)),a=je(()=>Promise.resolve().then(()=>Ad)),u=je(()=>Promise.resolve().then(()=>ef)),g=je(()=>Promise.resolve().then(()=>kf)),f=je(()=>Promise.resolve().then(()=>rh)),x=je(()=>Promise.resolve().then(()=>Uh)),y=je(()=>Promise.resolve().then(()=>Yh)),p=e,k=z(p.defaultOpen),_=z("queries"),{theme:K}=Dr(),{features:S}=pu({baseUrl:p.baseUrl,debugEndpoint:p.debugEndpoint,authToken:p.authToken}),b=p.dashboardPath?p.dashboardPath.replace(/\/+$/,"")+"/api":void 0,w=Y(()=>_.value.startsWith("custom-")),R=Y(()=>w.value||_.value==="internals"),{data:$,loading:N,error:B,isUnauthorized:U,startRefresh:ee,stopRefresh:Q}=Ta(()=>_.value,{baseUrl:p.baseUrl,debugEndpoint:p.debugEndpoint,dashboardEndpoint:b,authToken:p.authToken}),ne=Y(()=>{const Z=[{id:"queries",label:"Queries",icon:"Q"},{id:"events",label:"Events",icon:"E"},{id:"emails",label:"Emails",icon:"M"},{id:"routes",label:"Routes",icon:"R"},{id:"logs",label:"Logs",icon:"L"}];(S.value.tracing||p.tracingEnabled)&&Z.push({id:"timeline",label:"Requests",icon:"R"}),S.value.cache&&Z.push({id:"cache",label:"Cache",icon:"C"}),S.value.queues&&Z.push({id:"jobs",label:"Jobs",icon:"J"}),Z.push({id:"config",label:"Config",icon:"G"}),Z.push({id:"internals",label:"Internals",icon:"I"});for(const le of S.value.customPanes)Z.push({id:`custom-${le.id}`,label:le.label,icon:le.label.charAt(0).toUpperCase()});return Z});function j(Z){const le=Z.replace("custom-","");return S.value.customPanes.find(ye=>ye.id===le)}function ce(){k.value=!0,ee()}function ct(){k.value=!1,Q()}function Ks(){k.value?ct():ce()}function me(Z){_.value=Z}return ot(k,Z=>{Z?ee():Q()}),t({toggle:Ks,open:ce,close:ct}),(Z,le)=>T(U)?oe("",!0):(c(),d("div",{key:0,class:H(["ss-dbg-panel",{"ss-dbg-open":k.value}]),"data-ss-theme":T(K)},[o("div",xu,[o("div",wu,[(c(!0),d(L,null,X(ne.value,ye=>(c(),d("button",{key:ye.id,type:"button",class:H(["ss-dbg-tab",{"ss-dbg-active":_.value===ye.id}]),onClick:is=>me(ye.id)},[T(Ce)[ye.id]?(c(),d("svg",{key:0,class:"ss-dbg-tab-icon",viewBox:T(Ce)[ye.id].viewBox,innerHTML:T(Ce)[ye.id].elements.join("")},null,8,$u)):oe("",!0),se(" "+m(ye.label),1)],10,ku))),128))]),o("div",Cu,[o("span",{class:H(["ss-dbg-conn-mode",e.isLive?"ss-dbg-conn-live":"ss-dbg-conn-polling"]),title:e.isLive?"Connected via Transmit (SSE) — real-time updates":"Polling every 3s"},m(e.isLive?"live":"polling"),11,Tu),e.dashboardPath&&T(S).dashboard?(c(),d("a",{key:0,href:e.dashboardPath,target:"_blank",rel:"noopener noreferrer",class:"ss-dbg-dashboard-link",title:"Open dashboard"},[(c(),d("svg",{width:"14",height:"14",viewBox:T(Ce)["external-link"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce)["external-link"].elements.join("")},null,8,Eu))],8,Su)):oe("",!0),ge(yu),o("button",{type:"button",class:"ss-dbg-close",onClick:ct,title:"Close panel"}," × ")])]),o("div",Pu,[T(N)&&!T($)&&!R.value?(c(),d("div",Au,"Loading...")):T(B)&&!R.value?(c(),d("div",Mu," Error: "+m(T(B).message),1)):(c(),d(L,{key:2},[_.value==="queries"?(c(),Re(T(s),{key:0,data:T($),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="events"?(c(),Re(T(n),{key:1,data:T($),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="emails"?(c(),Re(T(l),{key:2,data:T($),"dashboard-path":e.dashboardPath,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","debug-endpoint","auth-token"])):_.value==="routes"?(c(),Re(T(r),{key:3,data:T($)},null,8,["data"])):_.value==="logs"?(c(),Re(T(i),{key:4,data:T($),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="timeline"?(c(),Re(T(a),{key:5,data:T($),"dashboard-path":e.dashboardPath,"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","base-url","debug-endpoint","auth-token"])):_.value==="cache"?(c(),Re(T(u),{key:6,data:T($)},null,8,["data"])):_.value==="jobs"?(c(),Re(T(g),{key:7,data:T($)},null,8,["data"])):_.value==="config"?(c(),Re(T(f),{key:8,data:T($)},null,8,["data"])):_.value==="internals"?(c(),Re(T(x),{key:9,data:T($),"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","base-url","debug-endpoint","auth-token"])):_.value.startsWith("custom-")?(c(),Re(T(y),{key:10,pane:j(_.value),"base-url":e.baseUrl,"auth-token":e.authToken},null,8,["pane","base-url","auth-token"])):oe("",!0)],64))])],10,_u))}});let St=null;window.__ssDebugPanel={mount(e,t,s){St&&St.unmount(),St=ba({setup(){return()=>Ki(Lu,{debugEndpoint:t.debugEndpoint,authToken:t.authToken,dashboardPath:t.dashboardPath||void 0,isLive:s,defaultOpen:!0})}}),St.mount(e)},unmount(e){St&&(St.unmount(),St=null)}};function _t(e){const t=z(null);let s=null;function n(){s&&s(),s=null,pn(()=>{t.value&&(s=Na(t.value))})}return e&&ot(e,n),Ct(n),Es(()=>{s&&s(),s=null}),{tableRef:t}}const Ou={class:"ss-dbg-search-bar"},Ru={class:"ss-dbg-summary"},Iu={key:0,class:"ss-dbg-empty"},Du={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Fu=["onClick","onKeydown"],ju={key:0,class:"ss-dbg-dup"},Bu={key:1,class:"ss-dbg-dup"},Nu={class:"ss-dbg-c-muted"},Hu=["title"],Uu=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"QueriesTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=new Set,l=Y(()=>{if(!t.data)return[];const p=t.data;return(Array.isArray(p)?p:p.queries)||[]}),r=Y(()=>za(l.value,s.value)),i=Y(()=>Wa(l.value)),a=Y(()=>qa(l.value,i.value)),u=Y(()=>{let p=`${r.value.length} queries`;return a.value.slowCount>0&&(p+=` | ${a.value.slowCount} slow`),a.value.dupCount>0&&(p+=` | ${a.value.dupCount} dup`),r.value.length>0&&(p+=` | avg ${Ie(a.value.avgDuration)}`),p});function g(p){n.has(p)?n.delete(p):n.add(p)}function f(p){return n.has(p)}function x(p){const k=Fn(p);return k==="very-slow"?"ss-dbg-very-slow":k==="slow"?"ss-dbg-slow":""}const{tableRef:y}=_t(()=>r.value);return(p,k)=>(c(),d("div",null,[o("div",Ou,[qe(o("input",{"onUpdate:modelValue":k[0]||(k[0]=_=>s.value=_),class:"ss-dbg-search",placeholder:"Filter queries...",type:"text"},null,512),[[Qe,s.value]]),o("span",Ru,m(u.value),1)]),r.value.length===0?(c(),d("div",Iu,"No queries captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:y,class:"ss-dbg-table"},[k[1]||(k[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"SQL"),o("th",null,"Duration"),o("th",null,"Method"),o("th",null,"Model"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(r.value,_=>(c(),d("tr",{key:_.id},[o("td",Du,m(_.id),1),o("td",null,[o("span",{class:H(["ss-dbg-sql",{"ss-dbg-expanded":f(_.id)}]),role:"button",tabindex:"0",onClick:K=>g(_.id),onKeydown:$r(K=>g(_.id),["enter"])},m(_.sql),43,Fu),i.value[_.sql]>1?(c(),d("span",ju," x"+m(i.value[_.sql]),1)):oe("",!0),_.inTransaction?(c(),d("span",Bu," TXN")):oe("",!0)]),o("td",{class:H(["ss-dbg-duration",x(_.duration)])},m(T(Ie)(_.duration)),3),o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${_.method.toLowerCase()}`)},m(_.method),3)]),o("td",Nu,m(_.model||"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(_.timestamp)},m(T(Be)(_.timestamp)),9,Hu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Us=xe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=z(t.defaultExpanded),n=Y(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return rs(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return rs(t.value,t.maxLen||100)}),l=Y(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function r(){s.value=!s.value}function i(){navigator.clipboard?.writeText(l.value)}return(a,u)=>e.value===null||e.value===void 0?(c(),d("span",{key:0,class:H(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(c(),d("div",{key:1,class:H(`${t.classPrefix}-data-cell`)},[s.value?oe("",!0):(c(),d("span",{key:0,class:H(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:r,onKeydown:u[0]||(u[0]=g=>g.key==="Enter"&&r())},m(n.value),35)),s.value?(c(),d("div",{key:1,class:H(`${t.classPrefix}-data-full`),onClick:r},[o("button",{class:H(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:Nt(i,["stop"])}," Copy ",2),o("pre",null,m(l.value),1)],2)):oe("",!0)],2))}}),Ku={class:"ss-dbg-search-bar"},Vu={class:"ss-dbg-summary"},zu={key:0,class:"ss-dbg-empty"},Wu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},qu={class:"ss-dbg-event-name"},Ju=["href"],Gu=["viewBox","innerHTML"],Qu={class:"ss-dbg-event-data"},Yu=["title"],Xu=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"EventsTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=Y(()=>{const i=t.data,a=i?(Array.isArray(i)?i:i.events)||[]:[];if(!s.value.trim())return a;const u=s.value.toLowerCase();return a.filter(g=>g.event.toLowerCase().includes(u)||g.data&&g.data.toLowerCase().includes(u))}),l=Y(()=>{const i=t.data;return`${(i?(Array.isArray(i)?i:i.events)||[]:[]).length} events`}),{tableRef:r}=_t(()=>n.value);return(i,a)=>(c(),d("div",null,[o("div",Ku,[qe(o("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>s.value=u),class:"ss-dbg-search",placeholder:"Filter events...",type:"text"},null,512),[[Qe,s.value]]),o("span",Vu,m(l.value),1)]),n.value.length===0?(c(),d("div",zu,"No events captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:r,class:"ss-dbg-table"},[a[1]||(a[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Event"),o("th",null,"Data"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(n.value,u=>(c(),d("tr",{key:u.id},[o("td",Wu,m(u.id),1),o("td",qu,[se(m(u.event)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#events?id=${u.id}`,target:"_blank",class:"ss-dbg-deeplink"},[(c(),d("svg",{width:"12",height:"12",viewBox:T(Ce)["open-external"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,Gu))],8,Ju)):oe("",!0)]),o("td",Qu,[ge(Us,{value:u.data,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",{class:"ss-dbg-event-time",title:T(mt)(u.timestamp)},m(T(Be)(u.timestamp)),9,Yu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Zu={style:{position:"relative",height:"100%"}},ec={key:0,class:"ss-dbg-email-preview"},tc={class:"ss-dbg-email-preview-header"},sc={class:"ss-dbg-email-preview-meta"},nc={key:0},lc={key:0,class:"ss-dbg-empty"},rc=["srcdoc"],oc={key:2,class:"ss-dbg-empty"},ic={class:"ss-dbg-search-bar"},ac={class:"ss-dbg-summary"},uc={key:0,class:"ss-dbg-empty"},cc=["onClick"],dc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},fc=["title"],hc=["title"],gc={class:"ss-dbg-c-sql"},pc={class:"ss-dbg-c-muted"},bc={class:"ss-dbg-c-dim",style:{"text-align":"center"}},vc=["title"],mc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"EmailsTab",props:{data:{},dashboardPath:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(""),n=z(null),l=z(null),r=z(!1),i=Y(()=>{const y=t.data,p=y?(Array.isArray(y)?y:y.emails)||[]:[];if(!s.value.trim())return p;const k=s.value.toLowerCase();return p.filter(_=>_.subject.toLowerCase().includes(k)||_.from.toLowerCase().includes(k)||_.to.toLowerCase().includes(k)||_.mailer&&_.mailer.toLowerCase().includes(k))}),a=Y(()=>{const y=t.data;return`${(y?(Array.isArray(y)?y:y.emails)||[]:[]).length} emails`});function u(y){return{sent:"ss-dbg-email-status-sent",sending:"ss-dbg-email-status-sending",queueing:"ss-dbg-email-status-queued",queued:"ss-dbg-email-status-queued",failed:"ss-dbg-email-status-failed"}[y]||""}async function g(y){if(n.value=y,l.value=y.html||null,!l.value&&y.id){r.value=!0;try{const p=t.debugEndpoint||"/admin/api/debug",k={};t.authToken&&(k.Authorization=`Bearer ${t.authToken}`);const _=await fetch(`${p}/emails/${y.id}/preview`,{headers:k,credentials:t.authToken?"omit":"include"});_.ok&&(l.value=await _.text())}catch{}finally{r.value=!1}}}function f(){n.value=null,l.value=null,r.value=!1}const{tableRef:x}=_t(()=>i.value);return(y,p)=>(c(),d("div",Zu,[n.value?(c(),d("div",ec,[o("div",tc,[o("div",sc,[o("div",null,[p[1]||(p[1]=o("strong",null,"From:",-1)),se(" "+m(n.value.from),1)]),o("div",null,[p[2]||(p[2]=o("strong",null,"To:",-1)),se(" "+m(n.value.to),1)]),n.value.cc?(c(),d("div",nc,[p[3]||(p[3]=o("strong",null,"CC:",-1)),se(" "+m(n.value.cc),1)])):oe("",!0),o("div",null,[p[4]||(p[4]=o("strong",null,"Subject:",-1)),se(" "+m(n.value.subject),1)]),o("div",null,[p[5]||(p[5]=o("strong",null,"Status:",-1)),o("span",{class:H(["ss-dbg-email-status",u(n.value.status)])},m(n.value.status),3)])]),o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:f},"×")]),r.value?(c(),d("div",lc,"Loading preview...")):l.value?(c(),d("iframe",{key:1,class:"ss-dbg-email-iframe",srcdoc:l.value},null,8,rc)):(c(),d("div",oc,"No HTML content"))])):oe("",!0),n.value?oe("",!0):(c(),d(L,{key:1},[o("div",ic,[qe(o("input",{"onUpdate:modelValue":p[0]||(p[0]=k=>s.value=k),class:"ss-dbg-search",placeholder:"Filter emails...",type:"text"},null,512),[[Qe,s.value]]),o("span",ac,m(a.value),1)]),i.value.length===0?(c(),d("div",uc,"No emails captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:x,class:"ss-dbg-table"},[p[6]||(p[6]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"From"),o("th",null,"To"),o("th",null,"Subject"),o("th",null,"Status"),o("th",null,"Mailer"),o("th",{title:"Attachments"},"📎"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(i.value,k=>(c(),d("tr",{key:k.id,class:"ss-dbg-email-row",onClick:_=>g(k)},[o("td",dc,m(k.id),1),o("td",{class:"ss-dbg-c-secondary",title:k.from},m(k.from),9,fc),o("td",{class:"ss-dbg-c-secondary",title:k.to},m(k.to),9,hc),o("td",gc,m(k.subject),1),o("td",null,[o("span",{class:H(["ss-dbg-email-status",u(k.status)])},m(k.status),3)]),o("td",pc,m(k.mailer),1),o("td",bc,m(k.attachmentCount>0?k.attachmentCount:"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(k.timestamp)},m(T(Be)(k.timestamp)),9,vc)],8,cc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),yc={class:"ss-dbg-search-bar"},_c={class:"ss-dbg-summary"},xc={key:0,class:"ss-dbg-empty"},wc={class:"ss-dbg-c-text"},kc={class:"ss-dbg-c-muted"},$c={class:"ss-dbg-c-sql"},Cc={class:"ss-dbg-c-dim",style:{"font-size":"10px"}},Tc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"RoutesTab",props:{data:{},currentUrl:{}},setup(e){const t=e,s=z(""),n=Y(()=>{const a=t.data,u=a?(Array.isArray(a)?a:a.routes)||[]:[];if(!s.value.trim())return u;const g=s.value.toLowerCase();return u.filter(f=>f.pattern.toLowerCase().includes(g)||f.handler.toLowerCase().includes(g)||f.method.toLowerCase().includes(g)||f.name&&f.name.toLowerCase().includes(g))}),l=Y(()=>{const a=t.data;return`${(a?(Array.isArray(a)?a:a.routes)||[]:[]).length} routes`});function r(a){return t.currentUrl?t.currentUrl.includes(a.pattern.replace(/:[^/]+/g,"")):!1}const{tableRef:i}=_t(()=>n.value);return(a,u)=>(c(),d("div",null,[o("div",yc,[qe(o("input",{"onUpdate:modelValue":u[0]||(u[0]=g=>s.value=g),class:"ss-dbg-search",placeholder:"Filter routes...",type:"text"},null,512),[[Qe,s.value]]),o("span",_c,m(l.value),1)]),n.value.length===0?(c(),d("div",xc,"No routes found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:i,class:"ss-dbg-table"},[u[1]||(u[1]=o("thead",null,[o("tr",null,[o("th",null,"Method"),o("th",null,"Pattern"),o("th",null,"Name"),o("th",null,"Handler"),o("th",null,"Middleware")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(n.value,(g,f)=>(c(),d("tr",{key:f,class:H({"ss-dbg-current-route":r(g)})},[o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${g.method.toLowerCase()}`)},m(g.method),3)]),o("td",wc,m(g.pattern),1),o("td",kc,m(g.name||"-"),1),o("td",$c,m(g.handler),1),o("td",Cc,m(g.middleware.length>0?g.middleware.join(", "):"-"),1)],2))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Sc={class:"ss-dbg-log-filters"},Ec=["onClick"],Pc={class:"ss-dbg-summary",style:{"margin-left":"auto"}},Ac={class:"ss-dbg-search-bar"},Mc={class:"ss-dbg-summary"},Lc={key:0,class:"ss-dbg-empty"},Oc=["onClick"],Rc=["title"],Ic=["title","onClick","onKeydown"],Dc={key:1,class:"ss-dbg-log-reqid-empty"},Fc={key:3,style:{width:"14px"}},jc={class:"ss-dbg-log-msg"},Bc=["href"],Nc=["viewBox","innerHTML"],Hc={key:0,class:"ss-dbg-log-detail"},Uc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"LogsTab",props:{data:{},dashboardPath:{}},emits:["filterByRequestId"],setup(e,{emit:t}){const s=e,n=t,l=z("all"),r=z(""),i=z(""),a=z(null),u=Y(()=>{const y=s.data;let p=y?(Array.isArray(y)?y:y.logs||y.entries)||[]:[];if(p=Ka(p,l.value),i.value.trim()){const k=i.value.trim().toLowerCase();p=p.filter(_=>{const K=Ne(_);return K&&K.toLowerCase().includes(k)})}if(r.value.trim()){const k=r.value.trim().toLowerCase();p=p.filter(_=>jn(_).toLowerCase().includes(k))}return p}),g=Y(()=>{const y=s.data,p=y?(Array.isArray(y)?y:y.logs||y.entries)||[]:[];return`${u.value.length} of ${p.length} entries`});function f(y,p){p&&(a.value=a.value===y?null:y)}function x(y){i.value=y,n("filterByRequestId",y)}return(y,p)=>(c(),d("div",null,[o("div",Sc,[(c(!0),d(L,null,X(T(Ua),k=>(c(),d("button",{key:k,type:"button",class:H(["ss-dbg-log-filter",{"ss-dbg-active":l.value===k}]),onClick:_=>l.value=k},m(k),11,Ec))),128)),i.value?(c(),d("button",{key:0,type:"button",class:"ss-dbg-log-filter ss-dbg-active",onClick:p[0]||(p[0]=k=>i.value="")}," req: "+m(i.value.slice(0,8))+" x ",1)):oe("",!0),o("span",Pc,m(u.value.length)+" entries",1)]),o("div",Ac,[qe(o("input",{"onUpdate:modelValue":p[1]||(p[1]=k=>r.value=k),class:"ss-dbg-search",placeholder:"Filter log messages...",type:"text"},null,512),[[Qe,r.value]]),qe(o("input",{"onUpdate:modelValue":p[2]||(p[2]=k=>i.value=k),class:"ss-dbg-search ss-dbg-reqid-input",placeholder:"Filter by request ID...",type:"text"},null,512),[[Qe,i.value]]),o("span",Mc,m(g.value),1)]),u.value.length===0?(c(),d("div",Lc,"No log entries")):(c(!0),d(L,{key:1},X(u.value,(k,_)=>(c(),d(L,{key:String(k.id||_)},[o("div",{class:H(["ss-dbg-log-entry",{"ss-dbg-log-entry-expandable":!!T(Ye)(k)}]),onClick:K=>f(_,!!T(Ye)(k))},[o("span",{class:H(["ss-dbg-log-level",T(Ir)(T(os)(k))])},m(T(os)(k).toUpperCase()),3),o("span",{class:"ss-dbg-log-time",title:T(yt)(k)?T(mt)(T(yt)(k)):""},m(T(yt)(k)?T(Be)(T(yt)(k)):"-"),9,Rc),T(Ne)(k)?(c(),d("span",{key:0,class:"ss-dbg-log-reqid",role:"button",tabindex:"0",title:T(Ne)(k),onClick:Nt(K=>x(T(Ne)(k)),["stop"]),onKeydown:$r(Nt(K=>x(T(Ne)(k)),["stop"]),["enter"])},m(T(Ne)(k).slice(0,8)),41,Ic)):(c(),d("span",Dc,"-")),T(Ye)(k)?(c(),d("span",{key:2,class:H(["ss-dbg-log-expand-icon",{"ss-dbg-log-expand-icon-open":a.value===_}])},"▶",2)):(c(),d("span",Fc)),o("span",jc,m(T(jn)(k)),1),e.dashboardPath&&T(Ne)(k)?(c(),d("a",{key:4,href:`${e.dashboardPath}#logs?requestId=${T(Ne)(k)}`,target:"_blank",class:"ss-dbg-deeplink",onClick:p[3]||(p[3]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:T(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,Nc))],8,Bc)):oe("",!0)],10,Oc),a.value===_&&T(Ye)(k)?(c(),d("div",Hc,[ge(Us,{value:T(Ye)(k),"class-prefix":"ss-dbg","default-expanded":""},null,8,["value"])])):oe("",!0)],64))),128))]))}})},Symbol.toStringTag,{value:"Module"}));function Bn(e="",t){let s=null;return function(){return s||(s=new In({baseUrl:e,authToken:t})),s}}function Kc(e){const{container:t,handle:s,topPane:n,bottomPane:l,storageKey:r,minHeight:i=60}=e;if(r){const u=localStorage.getItem(r);if(u){const g=parseFloat(u);g>0&&g<1&&(n.style.flex=`${g}`,l.style.flex=`${1-g}`)}}function a(u){u.preventDefault(),s.setPointerCapture(u.pointerId);const f=t.getBoundingClientRect().height,x=u.clientY,y=n.getBoundingClientRect().height;function p(_){const K=_.clientY-x;let S=y+K;const b=f-i-s.offsetHeight;S=Math.max(i,Math.min(S,b));const w=S/(f-s.offsetHeight);n.style.flex=`${w}`,l.style.flex=`${1-w}`}function k(){if(s.removeEventListener("pointermove",p),s.removeEventListener("pointerup",k),r){const _=t.getBoundingClientRect().height-s.offsetHeight;if(_>0){const K=n.getBoundingClientRect().height/_;localStorage.setItem(r,String(K))}}}s.addEventListener("pointermove",p),s.addEventListener("pointerup",k)}return s.addEventListener("pointerdown",a),()=>{s.removeEventListener("pointerdown",a)}}const Vc={key:0},zc={style:{overflow:"auto"}},Wc=["onClick"],qc=["title"],Jc=["title"],Gc={key:3,style:{width:"14px"}},Qc=xe({__name:"RelatedLogs",props:{logs:{},classPrefix:{default:"ss-dash"}},setup(e){const t=z(null);function s(n,l){l&&(t.value=t.value===n?null:n)}return(n,l)=>e.logs.length>0?(c(),d("div",Vc,[o("div",{class:H(`${e.classPrefix}-related-logs-title`)},[l[0]||(l[0]=se(" Related Logs ",-1)),o("span",{class:H(`${e.classPrefix}-related-logs-count`)},"("+m(e.logs.length)+")",3)],2),o("div",zc,[(c(!0),d(L,null,X(e.logs,(r,i)=>(c(),d(L,{key:r.id||i},[o("div",{class:H([`${e.classPrefix}-log-entry`,T(Ye)(r)?`${e.classPrefix}-log-entry-expandable`:""]),onClick:a=>s(i,!!T(Ye)(r))},[o("span",{class:H([`${e.classPrefix}-log-level`,T(Ir)(T(os)(r),`${e.classPrefix}-log-level`)])},m(T(os)(r).toUpperCase()),3),o("span",{class:H(`${e.classPrefix}-log-time`),title:T(yt)(r)?T(mt)(T(yt)(r)):""},m(T(yt)(r)?T(Be)(T(yt)(r)):"-"),11,qc),T(Ne)(r)?(c(),d("span",{key:0,class:H(`${e.classPrefix}-log-reqid`),title:T(Ne)(r)},m(T(Ne)(r).slice(0,8)),11,Jc)):(c(),d("span",{key:1,class:H(`${e.classPrefix}-log-reqid-empty`)},"--",2)),T(Ye)(r)?(c(),d("span",{key:2,class:H([`${e.classPrefix}-log-expand-icon`,t.value===i?`${e.classPrefix}-log-expand-icon-open`:""])},"▶",2)):(c(),d("span",Gc)),o("span",{class:H(`${e.classPrefix}-log-msg`)},m(T(jn)(r)),3)],10,Wc),t.value===i&&T(Ye)(r)?(c(),d("div",{key:0,class:H(`${e.classPrefix}-log-detail`)},[ge(Us,{value:T(Ye)(r),"class-prefix":e.classPrefix,"default-expanded":!0},null,8,["value","class-prefix"])],2)):oe("",!0)],64))),128))])])):oe("",!0)}}),Yc={key:0,class:"ss-dbg-empty"},Xc={class:"ss-dbg-empty"},Zc={key:2,class:"ss-dbg-tl-detail-wrapper"},ed={class:"ss-dbg-tl-detail-header"},td={class:"ss-dbg-tl-detail-url"},sd={class:"ss-dbg-tl-meta"},nd={class:"ss-dbg-tl-legend"},ld={id:"ss-dbg-tl-waterfall"},rd={key:0,class:"ss-dbg-empty"},od=["title"],id={class:"ss-dbg-tl-track"},ad=["title"],ud={class:"ss-dbg-tl-dur"},cd={key:0,class:"ss-dbg-tl-warnings"},dd={class:"ss-dbg-tl-legend"},fd={id:"ss-dbg-tl-waterfall"},hd={key:0,class:"ss-dbg-empty"},gd=["title"],pd={class:"ss-dbg-tl-track"},bd=["title"],vd={class:"ss-dbg-tl-dur"},md={key:0,class:"ss-dbg-tl-warnings"},yd={key:3,class:"ss-dbg-empty"},_d={class:"ss-dbg-search-bar"},xd={class:"ss-dbg-summary"},wd={key:0,class:"ss-dbg-empty"},kd=["onClick"],$d={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Cd={class:"ss-dbg-c-text"},Td=["href"],Sd=["viewBox","innerHTML"],Ed={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Pd=["title"],Ad=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"TimelineTab",props:{data:{},dashboardPath:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(""),n=z(null),l=z(null),r=z(!1),i=z(null),a=Bn(t.baseUrl||"",t.authToken),u=Y(()=>{const Q=t.data;if(!Q)return[];const ne=Array.isArray(Q)?Q:Q.traces||[];if(!s.value.trim())return ne;const j=s.value.toLowerCase();return ne.filter(ce=>ce.url.toLowerCase().includes(j)||ce.method.toLowerCase().includes(j)||String(ce.statusCode).includes(j))}),g={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"#525252"},f={request:"Request",middleware:"Middleware",db:"Database",view:"View",mail:"Mail",event:"Event",custom:"Custom"};function x(Q){n.value===Q.id?(n.value=null,l.value=null,i.value=null):(n.value=Q.id,k(Q.id))}function y(){n.value=null,l.value=null,i.value=null}let p=null;async function k(Q){p&&p.abort(),p=new AbortController,r.value=!0,i.value=null,l.value=null;const ne=t.debugEndpoint||"/admin/api/debug";try{const ce=await a().get(`${ne}/traces/${Q}`);l.value=ce}catch(j){if(j instanceof Error&&j.name==="AbortError")return;i.value=j instanceof Error?j.message:"Failed to load trace"}finally{r.value=!1}}const _=Y(()=>l.value?.spans||[]),K=Y(()=>l.value?.warnings||[]);function S(Q,ne){const j=ne||1,ce=j>0?Q.startOffset/j*100:0,ct=j>0?Math.max(Q.duration/j*100,.5):.5;return{left:`${ce}%`,width:`${ct}%`,background:g[Q.category]||g.custom}}const{tableRef:b}=_t(()=>u.value),w=z(null),R=z(null),$=z(null),N=z(null);let B=null;const U=Y(()=>l.value?l.value.logs||[]:[]);ot([n,l],async()=>{B?.(),B=null,l.value&&U.value.length>0&&(await pn(),w.value&&R.value&&$.value&&N.value&&(B=Kc({container:w.value,handle:R.value,topPane:$.value,bottomPane:N.value,storageKey:"ss-dbg-timeline-split"})))}),Es(()=>{p&&p.abort(),B?.()});function ee(Q){const ne=Fn(Q);return ne==="very-slow"?"ss-dbg-very-slow":ne==="slow"?"ss-dbg-slow":""}return(Q,ne)=>(c(),d("div",null,[n.value!==null?(c(),d(L,{key:0},[r.value?(c(),d("div",Yc,"Loading trace detail...")):i.value?(c(),d(L,{key:1},[o("div",{class:"ss-dbg-tl-detail-header"},[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back")]),o("div",Xc,"Error: "+m(i.value),1)],64)):l.value?(c(),d("div",Zc,[o("div",ed,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back"),o("span",{class:H(`ss-dbg-method ss-dbg-method-${l.value.method.toLowerCase()}`)},m(l.value.method),3),o("span",td,m(l.value.url),1),o("span",{class:H(`ss-dbg-status ss-dbg-status-${Math.floor(l.value.statusCode/100)}xx`)},m(l.value.statusCode),3),o("span",sd,m(T(Ie)(l.value.totalDuration))+" · "+m(l.value.spanCount)+" spans ",1)]),U.value.length>0?(c(),d("div",{key:0,ref_key:"splitContainerRef",ref:w,class:"ss-dbg-split-container"},[o("div",{ref_key:"splitTopRef",ref:$,class:"ss-dbg-split-top"},[o("div",nd,[(c(),d(L,null,X(g,(j,ce)=>o("span",{key:ce,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:gt({background:j})},null,4),se(" "+m(f[ce]||ce),1)])),64))]),o("div",ld,[_.value.length===0?(c(),d("div",rd," No spans captured for this request ")):oe("",!0),(c(!0),d(L,null,X(_.value,j=>(c(),d("div",{key:j.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:j.label},m(j.label),9,od),o("span",id,[o("span",{class:H(`ss-dbg-tl-bar ss-dbg-tl-bar-${j.category}`),style:gt(S(j,l.value.totalDuration)),title:`${j.label}: ${T(Ie)(j.duration)}`},null,14,ad)]),o("span",ud,m(T(Ie)(j.duration)),1)]))),128))]),K.value.length>0?(c(),d("div",cd,[ne[2]||(ne[2]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(K.value,(j,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(j),1))),128))])):oe("",!0)],512),o("div",{ref_key:"splitHandleRef",ref:R,class:"ss-dbg-split-handle"},null,512),o("div",{ref_key:"splitBottomRef",ref:N,class:"ss-dbg-split-bottom"},[ge(Qc,{logs:U.value,"class-prefix":"ss-dbg"},null,8,["logs"])],512)],512)):(c(),d(L,{key:1},[o("div",dd,[(c(),d(L,null,X(g,(j,ce)=>o("span",{key:ce,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:gt({background:j})},null,4),se(" "+m(f[ce]||ce),1)])),64))]),o("div",fd,[_.value.length===0?(c(),d("div",hd," No spans captured for this request ")):oe("",!0),(c(!0),d(L,null,X(_.value,j=>(c(),d("div",{key:j.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:j.label},m(j.label),9,gd),o("span",pd,[o("span",{class:H(`ss-dbg-tl-bar ss-dbg-tl-bar-${j.category}`),style:gt(S(j,l.value.totalDuration)),title:`${j.label}: ${T(Ie)(j.duration)}`},null,14,bd)]),o("span",vd,m(T(Ie)(j.duration)),1)]))),128))]),K.value.length>0?(c(),d("div",md,[ne[3]||(ne[3]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(K.value,(j,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(j),1))),128))])):oe("",!0)],64))])):(c(),d("div",yd,"Loading trace detail..."))],64)):(c(),d(L,{key:1},[o("div",_d,[qe(o("input",{"onUpdate:modelValue":ne[0]||(ne[0]=j=>s.value=j),class:"ss-dbg-search",placeholder:"Filter traces...",type:"text"},null,512),[[Qe,s.value]]),o("span",xd,m(u.value.length)+" traces",1)]),u.value.length===0?(c(),d("div",wd,"No traces captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:b,class:"ss-dbg-table"},[ne[4]||(ne[4]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Method"),o("th",null,"URL"),o("th",null,"Status"),o("th",null,"Duration"),o("th",null,"Spans"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(u.value,j=>(c(),d("tr",{key:j.id,class:"ss-dbg-email-row",onClick:ce=>x(j)},[o("td",$d,m(j.id),1),o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${j.method.toLowerCase()}`)},m(j.method),3)]),o("td",Cd,[se(m(j.url)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#requests?id=${j.id}`,target:"_blank",class:"ss-dbg-deeplink",onClick:ne[1]||(ne[1]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:T(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,Sd))],8,Td)):oe("",!0)]),o("td",null,[o("span",{class:H(`ss-dbg-status ss-dbg-status-${Math.floor(j.statusCode/100)}xx`)},m(j.statusCode),3)]),o("td",{class:H(["ss-dbg-duration",ee(j.totalDuration)])},m(T(Ie)(j.totalDuration)),3),o("td",Ed,m(j.spanCount),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(j.timestamp)},m(T(Be)(j.timestamp)),9,Pd)],8,kd))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Md={class:"ss-dbg-cache-stats"},Ld={class:"ss-dbg-cache-stat"},Od={class:"ss-dbg-cache-stat-value"},Rd={class:"ss-dbg-cache-stat"},Id={class:"ss-dbg-cache-stat-value"},Dd={class:"ss-dbg-cache-stat"},Fd={class:"ss-dbg-cache-stat-value"},jd={class:"ss-dbg-cache-stat"},Bd={class:"ss-dbg-cache-stat-value"},Nd={class:"ss-dbg-cache-stat"},Hd={class:"ss-dbg-cache-stat-value"},Ud={class:"ss-dbg-search-bar"},Kd={class:"ss-dbg-summary"},Vd={key:0,class:"ss-dbg-cache-detail"},zd={style:{"margin-top":"8px"}},Wd={class:"ss-dbg-c-muted",style:{"margin-left":"8px"}},qd={key:0},Jd={key:0,class:"ss-dbg-empty"},Gd=["onClick"],Qd={class:"ss-dbg-c-sql"},Yd={class:"ss-dbg-c-muted"},Xd={class:"ss-dbg-c-dim"},Zd={class:"ss-dbg-c-dim"},ef=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"CacheTab",props:{data:{}},setup(e){const t=e,s=z(""),n=z(null),l=Y(()=>t.data||{}),r=Y(()=>l.value.stats||{}),i=Y(()=>{const u=l.value.keys||[];if(!s.value.trim())return u;const g=s.value.toLowerCase();return u.filter(f=>f.key.toLowerCase().includes(g))}),{tableRef:a}=_t(()=>i.value);return(u,g)=>(c(),d("div",null,[o("div",Md,[o("span",Ld,[g[2]||(g[2]=o("span",{class:"ss-dbg-cache-stat-label"},"Hit Rate:",-1)),o("span",Od,m((r.value.hitRate||0).toFixed(0))+"%",1)]),o("span",Rd,[g[3]||(g[3]=o("span",{class:"ss-dbg-cache-stat-label"},"Hits:",-1)),o("span",Id,m(r.value.totalHits||0),1)]),o("span",Dd,[g[4]||(g[4]=o("span",{class:"ss-dbg-cache-stat-label"},"Misses:",-1)),o("span",Fd,m(r.value.totalMisses||0),1)]),o("span",jd,[g[5]||(g[5]=o("span",{class:"ss-dbg-cache-stat-label"},"Keys:",-1)),o("span",Bd,m(r.value.keyCount||0),1)]),o("span",Nd,[g[6]||(g[6]=o("span",{class:"ss-dbg-cache-stat-label"},"Memory:",-1)),o("span",Hd,m((r.value.memoryUsedMb||0).toFixed(1))+"MB",1)])]),o("div",Ud,[qe(o("input",{"onUpdate:modelValue":g[0]||(g[0]=f=>s.value=f),class:"ss-dbg-search",placeholder:"Filter keys...",type:"text"},null,512),[[Qe,s.value]]),o("span",Kd,m(i.value.length)+" keys",1)]),n.value?(c(),d("div",Vd,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:g[1]||(g[1]=f=>n.value=null)}," ← Back "),o("div",zd,[o("strong",null,m(n.value.key),1),o("span",Wd,m(n.value.type)+" · TTL: "+m(T(Ar)(n.value.ttl)),1)]),n.value.value!==void 0?(c(),d("pre",qd,m(JSON.stringify(n.value.value,null,2)),1)):oe("",!0)])):(c(),d(L,{key:1},[i.value.length===0?(c(),d("div",Jd,"No cache keys found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:a,class:"ss-dbg-table"},[g[7]||(g[7]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Type"),o("th",null,"TTL"),o("th",null,"Size")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(i.value,f=>(c(),d("tr",{key:f.key,class:"ss-dbg-email-row",onClick:x=>n.value=f},[o("td",Qd,m(f.key),1),o("td",Yd,m(f.type),1),o("td",Xd,m(T(Ar)(f.ttl)),1),o("td",Zd,m(T(Ra)(f.size)),1)],8,Gd))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),tf={class:"ss-dbg-job-stats-area"},sf={class:"ss-dbg-job-stats"},nf={class:"ss-dbg-job-stat"},lf={class:"ss-dbg-job-stat-value"},rf={class:"ss-dbg-job-stat"},of={class:"ss-dbg-job-stat-value"},af={class:"ss-dbg-job-stat"},uf={class:"ss-dbg-job-stat-value"},cf={class:"ss-dbg-job-stat"},df={class:"ss-dbg-job-stat-value"},ff={class:"ss-dbg-job-stat"},hf={class:"ss-dbg-job-stat-value ss-dbg-c-red"},gf={class:"ss-dbg-log-filters"},pf=["onClick"],bf={key:0,class:"ss-dbg-empty"},vf={class:"ss-dbg-c-dim"},mf={class:"ss-dbg-c-sql"},yf={class:"ss-dbg-c-muted",style:{"text-align":"center"}},_f={class:"ss-dbg-duration"},xf=["title"],wf=["onClick"],kf=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"JobsTab",props:{data:{}},emits:["retryJob"],setup(e,{emit:t}){const s=e,n=t,l=z("all"),r=Y(()=>s.data||{}),i=Y(()=>r.value.stats||r.value.overview||{}),a=Y(()=>{const f=r.value.jobs||[];return l.value==="all"?f:f.filter(x=>x.status===l.value)});function u(f){n("retryJob",f)}const{tableRef:g}=_t(()=>a.value);return(f,x)=>(c(),d("div",null,[o("div",tf,[o("div",sf,[o("span",nf,[x[0]||(x[0]=o("span",{class:"ss-dbg-job-stat-label"},"Active:",-1)),o("span",lf,m(i.value.active??0),1)]),o("span",rf,[x[1]||(x[1]=o("span",{class:"ss-dbg-job-stat-label"},"Waiting:",-1)),o("span",of,m(i.value.waiting??0),1)]),o("span",af,[x[2]||(x[2]=o("span",{class:"ss-dbg-job-stat-label"},"Delayed:",-1)),o("span",uf,m(i.value.delayed??0),1)]),o("span",cf,[x[3]||(x[3]=o("span",{class:"ss-dbg-job-stat-label"},"Completed:",-1)),o("span",df,m(i.value.completed??0),1)]),o("span",ff,[x[4]||(x[4]=o("span",{class:"ss-dbg-job-stat-label"},"Failed:",-1)),o("span",hf,m(i.value.failed??0),1)])]),o("div",gf,[(c(!0),d(L,null,X(T(Ja),y=>(c(),d("button",{key:y,class:H(["ss-dbg-job-filter",{"ss-dbg-active":l.value===y}]),onClick:p=>l.value=y},m(y),11,pf))),128))])]),a.value.length===0?(c(),d("div",bf,"No jobs found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:g,class:"ss-dbg-table"},[x[5]||(x[5]=o("thead",null,[o("tr",null,[o("th",null,"ID"),o("th",null,"Name"),o("th",null,"Status"),o("th",null,"Payload"),o("th",null,"Tries"),o("th",null,"Duration"),o("th",null,"Time"),o("th")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(a.value,y=>(c(),d("tr",{key:y.id},[o("td",vf,m(y.id),1),o("td",mf,m(y.name),1),o("td",null,[o("span",{class:H(`ss-dbg-badge ${T(Ga)(y.status)}`)},m(y.status),3)]),o("td",null,[ge(Us,{value:y.payload||y.data,"max-len":60,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",yf,m(y.attempts),1),o("td",_f,m(y.duration!==null?T(Ie)(y.duration):"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(y.timestamp||y.createdAt)},m(T(Be)(y.timestamp||y.createdAt)),9,xf),o("td",null,[y.status==="failed"?(c(),d("button",{key:0,class:"ss-dbg-retry-btn",onClick:p=>u(y.id)}," Retry ",8,wf)):oe("",!0)])]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),$f={key:0,class:"ss-dbg-empty"},Cf={class:"ss-dbg-search-bar"},Tf={class:"ss-dbg-config-search-wrap"},Sf=["title"],Ef={class:"ss-dbg-summary"},Pf={key:0,class:"ss-dbg-empty"},Af={key:1,class:"ss-dbg-config-sections"},Mf={key:0,class:"ss-dbg-config-section-header ss-dbg-config-leaf"},Lf={class:"ss-dbg-config-key"},Of={key:0,class:"ss-dbg-config-match"},Rf={key:0,class:"ss-dbg-config-redacted"},If={key:0,class:"ss-dbg-config-match"},Df=["onClick"],Ff=["onClick"],jf={class:"ss-dbg-config-toggle"},Bf={class:"ss-dbg-config-key"},Nf={key:0,class:"ss-dbg-config-match"},Hf={class:"ss-dbg-config-count"},Uf={key:0,class:"ss-dbg-config-table-wrap"},Kf={class:"ss-dbg-table"},Vf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},zf={key:0,class:"ss-dbg-config-match"},Wf={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},qf={key:0,class:"ss-dbg-redacted-wrap"},Jf={key:0,class:"ss-dbg-config-match"},Gf=["onClick"],Qf={key:0,class:"ss-dbg-empty"},Yf={key:1,class:"ss-dbg-config-table-wrap"},Xf={class:"ss-dbg-table"},Zf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},eh={key:0,class:"ss-dbg-config-match"},th={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},sh={key:0,class:"ss-dbg-redacted-wrap"},nh={key:0,class:"ss-dbg-config-match"},lh=["onClick"],rh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"ConfigTab",props:{data:{}},setup(e){const t=e,s=z("app"),n=z(""),l=z(""),r=z(!1),i=z(new Set),a=z(null);let u=null;ot(n,$=>{u&&clearTimeout(u),u=setTimeout(()=>{l.value=$.trim().toLowerCase()},200)});function g($){return gu($)}function f($){if($==null)return"null";if(typeof $=="boolean"||typeof $=="number")return String($);if(typeof $=="string")return $;if(Array.isArray($))return JSON.stringify($);try{return JSON.stringify($)}catch{return String($)}}function x($){return $==null?"ss-dbg-config-val-null":typeof $=="boolean"?$?"ss-dbg-config-val-true":"ss-dbg-config-val-false":typeof $=="number"?"ss-dbg-config-val-number":Array.isArray($)?"ss-dbg-config-val-array":"ss-dbg-config-val"}function y($,N){navigator.clipboard.writeText($).then(()=>{a.value=N,setTimeout(()=>{a.value===N&&(a.value=null)},1500)})}function p(){const $=s.value==="app"?t.data?.app:t.data?.env;$&&y(JSON.stringify($,null,2),"__all_json__")}function k($,N){return du($,N,l.value)}function _($){if(!l.value)return[{text:$,match:!1}];const N=l.value,B=$.toLowerCase(),U=[];let ee=0,Q=B.indexOf(N);for(;Q!==-1;)Q>ee&&U.push({text:$.slice(ee,Q),match:!1}),U.push({text:$.slice(Q,Q+N.length),match:!0}),ee=Q+N.length,Q=B.indexOf(N,ee);return ee<$.length&&U.push({text:$.slice(ee),match:!1}),U.length?U:[{text:$,match:!1}]}const K=Y(()=>{const $=t.data?.app;if(!$)return[];const N=[];for(const[B,U]of Object.entries($))if(U!==null&&typeof U=="object"&&!Array.isArray(U)){const Q=Object.entries(U).filter(([ne,j])=>k(ne,j)).map(([ne,j])=>({key:ne,value:j,fullKey:`${B}.${ne}`}));(Q.length>0||!l.value)&&N.push({key:B,entries:Q,isFlat:!1})}else k(B,U)&&N.push({key:B,entries:[{key:B,value:U,fullKey:B}],isFlat:!0});return N}),S=Y(()=>{const $=t.data?.env;return $?Object.entries($).filter(([N,B])=>k(N,B)).map(([N,B])=>({key:N,value:B})):[]});function b($){i.value.has($)?i.value.delete($):i.value.add($)}function w(){for(const $ of K.value)$.isFlat||i.value.add($.key)}function R(){i.value.clear()}return ot(l,$=>{if($)for(const N of K.value)!N.isFlat&&N.entries.length>0&&i.value.add(N.key)}),($,N)=>(c(),d("div",null,[e.data?(c(),d(L,{key:1},[o("div",Cf,[o("button",{class:H(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="app"}]),onClick:N[0]||(N[0]=B=>s.value="app")}," App Config ",2),o("button",{class:H(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="env"}]),onClick:N[1]||(N[1]=B=>s.value="env")}," Environment ",2),o("div",Tf,[qe(o("input",{"onUpdate:modelValue":N[2]||(N[2]=B=>n.value=B),class:"ss-dbg-search",placeholder:"Search config...",type:"text"},null,512),[[Qe,n.value]])]),s.value==="app"&&!l.value?(c(),d(L,{key:0},[o("button",{class:"ss-dbg-btn-clear",onClick:w},"Expand All"),o("button",{class:"ss-dbg-btn-clear",onClick:R},"Collapse All")],64)):oe("",!0),o("button",{class:H(["ss-dbg-btn-clear",{"ss-dbg-active":r.value}]),onClick:N[3]||(N[3]=B=>r.value=!r.value),title:r.value?"Hide redacted values":"Show redacted values"},m(r.value?"Hide Secrets":"Show Secrets"),11,Sf),o("button",{class:"ss-dbg-btn-clear",onClick:p,title:"Copy all as JSON"},m(a.value==="__all_json__"?"Copied!":"Copy JSON"),1),o("span",Ef,[s.value==="app"?(c(),d(L,{key:0},[se(m(K.value.length)+" sections ",1)],64)):(c(),d(L,{key:1},[se(m(S.value.length)+" variables ",1)],64))])]),s.value==="app"?(c(),d(L,{key:0},[K.value.length===0?(c(),d("div",Pf,m(l.value?"No matching config entries":"No app config data"),1)):(c(),d("div",Af,[(c(!0),d(L,null,X(K.value,B=>(c(),d("div",{key:B.key,class:"ss-dbg-config-section"},[B.isFlat?(c(),d("div",Mf,[o("span",Lf,[(c(!0),d(L,null,X(_(B.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Of,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),N[7]||(N[7]=o("span",{style:{margin:"0 4px",color:"var(--ss-dim)"}},"=",-1)),g(B.key)&&!r.value?(c(),d("span",Rf,[...N[6]||(N[6]=[o("span",{class:"ss-dbg-redacted-wrap"}," •••••••• ",-1)])])):(c(),d("span",{key:1,class:H(x(B.entries[0].value))},[(c(!0),d(L,null,X(_(f(B.entries[0].value)),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",If,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))],2)),o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===B.key}]),onClick:Nt(U=>y(f(B.entries[0].value),B.key),["stop"]),title:"Copy value"},m(a.value===B.key?"✓":"⎘"),11,Df)])):(c(),d(L,{key:1},[o("div",{class:"ss-dbg-config-section-header",onClick:U=>b(B.key)},[o("span",jf,m(i.value.has(B.key)?"▼":"▶"),1),o("span",Bf,[(c(!0),d(L,null,X(_(B.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Nf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),o("span",Hf,m(B.entries.length)+" keys",1)],8,Ff),i.value.has(B.key)?(c(),d("div",Uf,[o("table",Kf,[N[9]||(N[9]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(c(!0),d(L,null,X(B.entries,U=>(c(),d("tr",{key:U.fullKey},[o("td",Vf,[(c(!0),d(L,null,X(_(U.key),(ee,Q)=>(c(),d(L,{key:Q},[ee.match?(c(),d("span",zf,m(ee.text),1)):(c(),d(L,{key:1},[se(m(ee.text),1)],64))],64))),128))]),o("td",Wf,[g(U.key)&&!r.value?(c(),d("span",qf,[N[8]||(N[8]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:N[4]||(N[4]=ee=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:H(x(U.value))},[(c(!0),d(L,null,X(_(f(U.value)),(ee,Q)=>(c(),d(L,{key:Q},[ee.match?(c(),d("span",Jf,m(ee.text),1)):(c(),d(L,{key:1},[se(m(ee.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===U.fullKey}]),onClick:ee=>y(f(U.value),U.fullKey),title:"Copy value"},m(a.value===U.fullKey?"✓":"⎘"),11,Gf)])]))),128))])])])):oe("",!0)],64))]))),128))]))],64)):(c(),d(L,{key:1},[S.value.length===0?(c(),d("div",Qf,m(l.value?"No matching environment variables":"No environment data"),1)):(c(),d("div",Yf,[o("table",Xf,[N[11]||(N[11]=o("thead",null,[o("tr",null,[o("th",null,"Variable"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(c(!0),d(L,null,X(S.value,B=>(c(),d("tr",{key:B.key},[o("td",Zf,[(c(!0),d(L,null,X(_(B.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",eh,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),o("td",th,[g(B.key)&&!r.value?(c(),d("span",sh,[N[10]||(N[10]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:N[5]||(N[5]=U=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:H(x(B.value))},[(c(!0),d(L,null,X(_(f(B.value)),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",nh,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===`env-${B.key}`}]),onClick:U=>y(f(B.value),`env-${B.key}`),title:"Copy value"},m(a.value===`env-${B.key}`?"✓":"⎘"),11,lh)])]))),128))])])]))],64))],64)):(c(),d("div",$f,"Loading config data..."))]))}})},Symbol.toStringTag,{value:"Module"})),oh={key:0,class:"ss-dbg-empty"},ih={key:1,class:"ss-dbg-empty"},ah={key:2,class:"ss-dbg-empty"},uh={class:"ss-dbg-info-cards"},ch={class:"ss-dbg-info-card-label"},dh={class:"ss-dbg-info-card-value"},fh={key:0,class:"ss-dbg-empty"},hh={key:1,class:"ss-dbg-table"},gh={style:{"font-family":"monospace","font-size":"11px"}},ph={key:0,class:"ss-dbg-c-dim",style:{"margin-left":"6px","font-size":"11px"}},bh={class:"ss-dbg-c-red"},vh={class:"ss-dbg-c-dim",style:{"margin-left":"4px"}},mh={style:{"font-size":"11px"}},yh=["onClick"],_h=["onClick"],xh={key:2,class:"ss-dbg-empty"},wh={key:3,class:"ss-dbg-table"},kh={class:"ss-dbg-bar"},$h={class:"ss-dbg-bar-track"},Ch={key:4,class:"ss-dbg-empty"},Th={key:5,class:"ss-dbg-table"},Sh={class:"ss-dbg-c-dim"},Eh={key:6,class:"ss-dbg-empty"},Ph={key:7,class:"ss-dbg-table"},Ah={class:"ss-dbg-c-dim"},Mh={class:"ss-dbg-table"},Lh={style:{"font-family":"monospace","font-size":"11px"}},Oh={key:0,class:"ss-dbg-table",style:{"margin-top":"8px"}},Rh={style:{"font-family":"monospace","font-size":"11px"}},Ih={class:"ss-dbg-table"},Dh={class:"ss-dbg-table"},Fh={style:{"font-family":"monospace","font-size":"11px"}},jh={style:{"font-family":"monospace","font-size":"11px"}},Bh={style:{"font-family":"monospace","font-size":"11px"}},Nh={style:{"font-size":"11px"}},Hh=3e3,Uh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"InternalsTab",props:{data:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(null),n=z(!0),l=z(null);let r=null;const i=Bn(t.baseUrl||"",t.authToken);async function a(){const S=t.debugEndpoint||"/admin/api/debug";try{const w=await i().get(`${S}/diagnostics`);s.value=w,l.value=null,n.value=!1}catch(b){if(b instanceof Bs){l.value=b,n.value=!1,r&&(clearInterval(r),r=null);return}l.value=b instanceof Error?b:new Error(String(b)),n.value=!1}}Ct(()=>{n.value=!0,l.value=null,a(),r=setInterval(a,Hh)}),Es(()=>{r&&(clearInterval(r),r=null)});const u=z(new Set);function g(S){u.value.has(S)?u.value.delete(S):u.value.add(S)}function f(S){const b=uu(S);return b==="ok"?"ss-dbg-dot-ok":b==="err"?"ss-dbg-dot-err":""}function x(S){return S.debounceMs!==void 0?`${Ie(S.debounceMs)} (debounce)`:S.intervalMs!==void 0?Ie(S.intervalMs):"-"}const y=Y(()=>s.value||t.data||null),p=Y(()=>y.value||{}),k=Y(()=>p.value.buffers?Object.entries(p.value.buffers).map(([S,b])=>({name:S.charAt(0).toUpperCase()+S.slice(1),...b,percent:ou(b.current,b.max)})):[]),_=Y(()=>p.value.timers?Object.entries(p.value.timers).map(([S,b])=>({key:S,label:eu(S),...b,interval:x(b)})):[]),K=Y(()=>{if(!p.value)return[];const S=[];if(p.value.transmit&&S.push({key:"transmit",label:"Transmit (SSE)",status:p.value.transmit.available?"connected":"unavailable",details:p.value.transmit.available?`Channels: ${p.value.transmit.channels.join(", ")}`:"Not installed"}),p.value.integrations)for(const[b,w]of Object.entries(p.value.integrations))S.push({key:b,label:su(b),status:nu(w),details:lu(b,w)});return S});return(S,b)=>(c(),d("div",null,[n.value&&!y.value?(c(),d("div",oh,"Loading diagnostics...")):l.value?(c(),d("div",ih,"Error: "+m(l.value.message),1)):y.value?(c(),d(L,{key:3},[b[41]||(b[41]=o("div",{class:"ss-dbg-internals-title"},"Package Info",-1)),o("div",uh,[(c(!0),d(L,null,X([{label:"Version",value:p.value.package?.version||"-"},{label:"Node.js",value:p.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:p.value.package?.adonisVersion||"-"},{label:"Uptime",value:T(Oa)(p.value.package?.uptime)},{label:"Renderer",value:p.value.devToolbar?.renderer||"preact"}],w=>(c(),d("div",{key:w.label,class:"ss-dbg-info-card"},[o("span",ch,m(w.label),1),o("span",dh,m(w.value),1)]))),128))]),b[42]||(b[42]=o("div",{class:"ss-dbg-internals-title"},"Collectors",-1)),p.value.collectors?.length?(c(),d("table",hh,[b[4]||(b[4]=o("thead",null,[o("tr",null,[o("th",null,"Collector"),o("th",null,"Status"),o("th",null,"Last Error"),o("th",null,"Config")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(p.value.collectors,w=>(c(),d("tr",{key:w.name},[o("td",null,[o("span",gh,m(w.name),1),w.label&&w.label!==w.name?(c(),d("span",ph,m(w.label),1)):oe("",!0)]),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(w.status)])},null,2),se(" "+m(w.status),1)]),o("td",bh,[w.lastError?(c(),d(L,{key:0},[se(m(w.lastError)+" ",1),o("span",vh,m(T(Be)(w.lastErrorAt??0)),1)],64)):(c(),d(L,{key:1},[se("-")],64))]),o("td",mh,[Object.keys(w.config||{}).length?(c(!0),d(L,{key:0},X(T(ru)(w.config),R=>(c(),d("span",{key:R.key,style:{"margin-right":"8px"}},[se(m(R.key)+"=",1),R.secret&&!u.value.has(`collector-${w.name}-${R.key}`)?(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:$=>g(`collector-${w.name}-${R.key}`)},"••••••••",8,yh)):(c(),d(L,{key:1},[o("span",null,m(R.value),1),R.secret?(c(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:$=>g(`collector-${w.name}-${R.key}`)}," Hide ",8,_h)):oe("",!0)],64))]))),128)):(c(),d(L,{key:1},[se("-")],64))])]))),128))])])):(c(),d("div",fh,"No collectors")),b[43]||(b[43]=o("div",{class:"ss-dbg-internals-title"},"Buffers",-1)),k.value.length?(c(),d("table",wh,[b[5]||(b[5]=o("thead",null,[o("tr",null,[o("th",null,"Buffer"),o("th",null,"Usage"),o("th",null,"Fill %")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(k.value,w=>(c(),d("tr",{key:w.name},[o("td",null,m(w.name),1),o("td",null,m(w.current.toLocaleString())+" / "+m(w.max.toLocaleString()),1),o("td",null,[o("div",kh,[o("div",$h,[o("div",{class:H(["ss-dbg-bar-fill",w.percent>=100?"ss-dbg-bar-fill-warn":""]),style:gt({width:w.percent+"%"})},null,6)]),o("span",{class:H(["ss-dbg-bar-pct",w.percent>=100?"ss-dbg-bar-pct-warn":""])},m(w.percent)+"%",3)])])]))),128))])])):(c(),d("div",xh,"No buffer data")),b[44]||(b[44]=o("div",{class:"ss-dbg-internals-title"},"Timers",-1)),_.value.length?(c(),d("table",Th,[b[6]||(b[6]=o("thead",null,[o("tr",null,[o("th",null,"Timer"),o("th",null,"Status"),o("th",null,"Interval")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(_.value,w=>(c(),d("tr",{key:w.key},[o("td",null,m(w.label),1),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(w.active?"active":"inactive")])},null,2),se(" "+m(w.active?"active":"inactive"),1)]),o("td",Sh,m(w.interval),1)]))),128))])])):(c(),d("div",Ch,"No timer data")),b[45]||(b[45]=o("div",{class:"ss-dbg-internals-title"},"Integrations",-1)),K.value.length?(c(),d("table",Ph,[b[7]||(b[7]=o("thead",null,[o("tr",null,[o("th",null,"Integration"),o("th",null,"Status"),o("th",null,"Details")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(K.value,w=>(c(),d("tr",{key:w.key},[o("td",null,m(w.label),1),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(w.status)])},null,2),se(" "+m(w.status),1)]),o("td",Ah,m(w.details),1)]))),128))])])):(c(),d("div",Eh,"No integration data")),p.value.storage?(c(),d(L,{key:8},[b[16]||(b[16]=o("div",{class:"ss-dbg-internals-title"},"Storage",-1)),o("table",Mh,[b[14]||(b[14]=o("thead",null,[o("tr",null,[o("th",null,"Metric"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[8]||(b[8]=o("td",null,"Status",-1)),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(p.value.storage.ready?"ready":"unavailable")])},null,2),se(" "+m(p.value.storage.ready?"ready":"not ready"),1)])]),o("tr",null,[b[9]||(b[9]=o("td",null,"DB Path",-1)),o("td",Lh,m(p.value.storage.dbPath),1)]),o("tr",null,[b[10]||(b[10]=o("td",null,"File Size",-1)),o("td",null,m(p.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[11]||(b[11]=o("td",null,"WAL Size",-1)),o("td",null,m(p.value.storage.walSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[12]||(b[12]=o("td",null,"Retention",-1)),o("td",null,m(p.value.storage.retentionDays)+" days",1)]),o("tr",null,[b[13]||(b[13]=o("td",null,"Last Cleanup",-1)),o("td",null,m(T(Be)(p.value.storage.lastCleanupAt??0)),1)])])]),p.value.storage.tables?.length?(c(),d("table",Oh,[b[15]||(b[15]=o("thead",null,[o("tr",null,[o("th",null,"Table"),o("th",null,"Rows")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(p.value.storage.tables,w=>(c(),d("tr",{key:w.name},[o("td",Rh,m(w.name),1),o("td",null,m(w.rowCount.toLocaleString()),1)]))),128))])])):oe("",!0)],64)):oe("",!0),b[46]||(b[46]=o("div",{class:"ss-dbg-internals-title"},"Resolved Config",-1)),o("table",Ih,[b[24]||(b[24]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[17]||(b[17]=o("td",null,"intervalMs",-1)),o("td",null,m(p.value.config?.intervalMs),1)]),o("tr",null,[b[18]||(b[18]=o("td",null,"transport",-1)),o("td",null,m(p.value.config?.transport),1)]),o("tr",null,[b[19]||(b[19]=o("td",null,"channelName",-1)),o("td",null,m(p.value.config?.channelName),1)]),o("tr",null,[b[20]||(b[20]=o("td",null,"endpoint",-1)),o("td",null,m(p.value.config?.endpoint===!1?"false":p.value.config?.endpoint),1)]),o("tr",null,[b[21]||(b[21]=o("td",null,"skipInTest",-1)),o("td",null,m(p.value.config?.skipInTest),1)]),o("tr",null,[b[22]||(b[22]=o("td",null,"onStats callback",-1)),o("td",null,m(p.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),o("tr",null,[b[23]||(b[23]=o("td",null,"shouldShow callback",-1)),o("td",null,m(p.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[47]||(b[47]=o("div",{class:"ss-dbg-internals-title"},"DevToolbar",-1)),o("table",Dh,[b[40]||(b[40]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[25]||(b[25]=o("td",null,"enabled",-1)),o("td",null,m(p.value.devToolbar?.enabled),1)]),o("tr",null,[b[26]||(b[26]=o("td",null,"tracing",-1)),o("td",null,m(p.value.devToolbar?.tracing),1)]),o("tr",null,[b[27]||(b[27]=o("td",null,"dashboard",-1)),o("td",null,m(p.value.devToolbar?.dashboard),1)]),o("tr",null,[b[28]||(b[28]=o("td",null,"dashboardPath",-1)),o("td",Fh,m(p.value.devToolbar?.dashboardPath),1)]),o("tr",null,[b[29]||(b[29]=o("td",null,"debugEndpoint",-1)),o("td",jh,[u.value.has("cfg-debugEndpoint")?(c(),d(L,{key:1},[se(m(p.value.devToolbar?.debugEndpoint)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[1]||(b[1]=w=>g("cfg-debugEndpoint"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[0]||(b[0]=w=>g("cfg-debugEndpoint"))},"••••••••"))])]),o("tr",null,[b[30]||(b[30]=o("td",null,"maxQueries",-1)),o("td",null,m(p.value.devToolbar?.maxQueries),1)]),o("tr",null,[b[31]||(b[31]=o("td",null,"maxEvents",-1)),o("td",null,m(p.value.devToolbar?.maxEvents),1)]),o("tr",null,[b[32]||(b[32]=o("td",null,"maxEmails",-1)),o("td",null,m(p.value.devToolbar?.maxEmails),1)]),o("tr",null,[b[33]||(b[33]=o("td",null,"maxTraces",-1)),o("td",null,m(p.value.devToolbar?.maxTraces),1)]),o("tr",null,[b[34]||(b[34]=o("td",null,"slowQueryThresholdMs",-1)),o("td",null,m(p.value.devToolbar?.slowQueryThresholdMs),1)]),o("tr",null,[b[35]||(b[35]=o("td",null,"retentionDays",-1)),o("td",null,m(p.value.devToolbar?.retentionDays),1)]),o("tr",null,[b[36]||(b[36]=o("td",null,"dbPath",-1)),o("td",Bh,[u.value.has("cfg-dbPath")?(c(),d(L,{key:1},[se(m(p.value.devToolbar?.dbPath)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[3]||(b[3]=w=>g("cfg-dbPath"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[2]||(b[2]=w=>g("cfg-dbPath"))},"••••••••"))])]),o("tr",null,[b[37]||(b[37]=o("td",null,"persistDebugData",-1)),o("td",null,m(p.value.devToolbar?.persistDebugData),1)]),o("tr",null,[b[38]||(b[38]=o("td",null,"excludeFromTracing",-1)),o("td",Nh,m(p.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),o("tr",null,[b[39]||(b[39]=o("td",null,"customPanes",-1)),o("td",null,m(p.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(c(),d("div",ah,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"})),Kh={key:0,class:"ss-dbg-search-bar"},Vh=["placeholder"],zh={class:"ss-dbg-summary"},Wh={key:1,class:"ss-dbg-empty"},qh={key:2,class:"ss-dbg-empty"},Jh=["onClick"],Gh={key:0,class:"ss-dbg-c-dim"},Qh=["title"],Yh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"CustomPaneTab",props:{pane:{},baseUrl:{},authToken:{}},setup(e){const t=e,s=z([]),n=z(!1),l=z(""),r=Bn(t.baseUrl||"",t.authToken);let i=!1;async function a(){if(!(t.pane.fetchOnce&&i)){n.value=!0;try{const S=await r().fetch(t.pane.endpoint),w=(t.pane.dataKey||t.pane.id).split(".");let R=S;for(const $ of w)R=R?.[$];s.value=Array.isArray(R)?R:[],i=!0}catch{s.value=[]}finally{n.value=!1}}}const u=Y(()=>{if(!l.value.trim())return s.value;const S=l.value.toLowerCase(),b=t.pane.columns.filter(w=>w.searchable).map(w=>w.key);return b.length===0?s.value:s.value.filter(w=>b.some(R=>{const $=w[R];return $==null?!1:String($).toLowerCase().includes(S)}))});function g(S,b){if(S==null)return"-";switch(b.format||"text"){case"time":return typeof S=="number"?Be(S):String(S);case"timeAgo":return Be(S);case"duration":return Ie(typeof S=="number"?S:parseFloat(String(S)));case"method":return String(S);case"json":{let R=S;if(typeof S=="string")try{R=JSON.parse(S)}catch{}return rs(R,80)}case"badge":return String(S);default:return String(S)}}function f(S,b){if(b.format==="time"||b.format==="timeAgo")return mt(S)}function x(S){return S==null}function y(S){const b=typeof S=="number"?S:parseFloat(String(S));if(isNaN(b))return"ss-dbg-duration";const w=Fn(b);return w==="very-slow"?"ss-dbg-duration ss-dbg-very-slow":w==="slow"?"ss-dbg-duration ss-dbg-slow":"ss-dbg-duration"}function p(S,b){if(b.format==="badge"&&b.badgeColorMap){const w=String(S).toLowerCase();return b.badgeColorMap[w]||"muted"}return""}function k(S){return`ss-dbg-method ss-dbg-method-${String(S).toLowerCase()}`}function _(){s.value=[]}const{tableRef:K}=_t(()=>u.value);return Ct(()=>{a()}),(S,b)=>(c(),d("div",null,[e.pane.search?(c(),d("div",Kh,[qe(o("input",{"onUpdate:modelValue":b[0]||(b[0]=w=>l.value=w),class:"ss-dbg-search",placeholder:e.pane.search.placeholder,type:"text"},null,8,Vh),[[Qe,l.value]]),o("span",zh,m(u.value.length)+" items",1),e.pane.clearable?(c(),d("button",{key:0,class:"ss-dbg-btn-clear",onClick:_},"Clear")):oe("",!0)])):oe("",!0),n.value?(c(),d("div",Wh,"Loading...")):u.value.length===0?(c(),d("div",qh,"No data")):(c(),d("table",{key:3,ref_key:"tableRef",ref:K,class:"ss-dbg-table"},[o("thead",null,[o("tr",null,[(c(!0),d(L,null,X(e.pane.columns,w=>(c(),d("th",{key:w.key},m(w.label),1))),128))])]),o("tbody",null,[(c(!0),d(L,null,X(u.value,(w,R)=>(c(),d("tr",{key:String(w.id??R)},[(c(!0),d(L,null,X(e.pane.columns,$=>(c(),d("td",{key:$.key,class:H({"ss-dbg-filterable":$.filterable}),onClick:N=>$.filterable?l.value=String(w[$.key]):void 0},[x(w[$.key])?(c(),d("span",Gh,"-")):$.format==="time"||$.format==="timeAgo"?(c(),d("span",{key:1,class:"ss-dbg-event-time",title:f(w[$.key],$)},m(g(w[$.key],$)),9,Qh)):$.format==="duration"?(c(),d("span",{key:2,class:H(y(w[$.key]))},m(g(w[$.key],$)),3)):$.format==="method"?(c(),d("span",{key:3,class:H(k(w[$.key]))},m(g(w[$.key],$)),3)):$.format==="badge"?(c(),d("span",{key:4,class:H(`ss-dbg-badge ss-dbg-badge-${p(w[$.key],$)}`)},m(g(w[$.key],$)),3)):(c(),d(L,{key:5},[se(m(g(w[$.key],$)),1)],64))],10,Jh))),128))]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|