nuxt-devtools-observatory 0.1.33 → 0.1.34

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.
@@ -1,20 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function s(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=s(r);fetch(r.href,o)}})();/**
2
- * @vue/shared v3.5.30
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function dr(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ve={},ys=[],Et=()=>{},To=()=>!1,$n=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fr=e=>e.startsWith("onUpdate:"),Je=Object.assign,pr=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ol=Object.prototype.hasOwnProperty,Le=(e,t)=>ol.call(e,t),ve=Array.isArray,ks=e=>Js(e)==="[object Map]",xn=e=>Js(e)==="[object Set]",Or=e=>Js(e)==="[object Date]",ke=e=>typeof e=="function",Ue=e=>typeof e=="string",It=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",Mo=e=>(Pe(e)||ke(e))&&ke(e.then)&&ke(e.catch),Eo=Object.prototype.toString,Js=e=>Eo.call(e),il=e=>Js(e).slice(8,-1),Io=e=>Js(e)==="[object Object]",hr=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rs=dr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wn=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ll=/-\w/g,mt=wn(e=>e.replace(ll,t=>t.slice(1).toUpperCase())),al=/\B([A-Z])/g,cs=wn(e=>e.replace(al,"-$1").toLowerCase()),Oo=wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pn=wn(e=>e?`on${Oo(e)}`:""),Mt=(e,t)=>!Object.is(e,t),sn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Ro=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Sn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},cl=e=>{const t=Ue(e)?Number(e):NaN;return isNaN(t)?e:t};let Rr;const Cn=()=>Rr||(Rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function we(e){if(ve(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Ue(n)?pl(n):we(n);if(r)for(const o in r)t[o]=r[o]}return t}else if(Ue(e)||Pe(e))return e}const ul=/;(?![^(]*\))/g,dl=/:([^]+)/,fl=/\/\*[^]*?\*\//g;function pl(e){const t={};return e.replace(fl,"").split(ul).forEach(s=>{if(s){const n=s.split(dl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function oe(e){let t="";if(Ue(e))t=e;else if(ve(e))for(let s=0;s<e.length;s++){const n=oe(e[s]);n&&(t+=n+" ")}else if(Pe(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const hl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vl=dr(hl);function Ao(e){return!!e||e===""}function ml(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Gs(e[n],t[n]);return s}function Gs(e,t){if(e===t)return!0;let s=Or(e),n=Or(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=It(e),n=It(t),s||n)return e===t;if(s=ve(e),n=ve(t),s||n)return s&&n?ml(e,t):!1;if(s=Pe(e),n=Pe(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Gs(e[l],t[l]))return!1}}return String(e)===String(t)}function _l(e,t){return e.findIndex(s=>Gs(s,t))}const Fo=e=>!!(e&&e.__v_isRef===!0),f=e=>Ue(e)?e:e==null?"":ve(e)||Pe(e)&&(e.toString===Eo||!ke(e.toString))?Fo(e)?f(e.value):JSON.stringify(e,No,2):String(e),No=(e,t)=>Fo(t)?No(e,t.value):ks(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],o)=>(s[Dn(n,o)+" =>"]=r,s),{})}:xn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Dn(s))}:It(t)?Dn(t):Pe(t)&&!ve(t)&&!Io(t)?String(t):t,Dn=(e,t="")=>{var s;return It(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
6
- * @vue/reactivity v3.5.30
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let et;class gl{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=et,!t&&et&&(this.index=(et.scopes||(et.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=et;try{return et=this,t()}finally{et=s}}}on(){++this._on===1&&(this.prevScope=et,et=this)}off(){this._on>0&&--this._on===0&&(et=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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function bl(){return et}function yl(e,t=!1){et&&et.cleanups.push(e)}let je;const Vn=new WeakSet;class Lo{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,et&&et.active&&et.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vn.has(this)&&(Vn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Do(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ar(this),Vo(this);const t=je,s=_t;je=this,_t=!0;try{return this.fn()}finally{jo(this),je=t,_t=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)_r(t);this.deps=this.depsTail=void 0,Ar(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gn(this)&&this.run()}get dirty(){return Gn(this)}}let Po=0,As,Fs;function Do(e,t=!1){if(e.flags|=8,t){e.next=Fs,Fs=e;return}e.next=As,As=e}function vr(){Po++}function mr(){if(--Po>0)return;if(Fs){let t=Fs;for(Fs=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;As;){let t=As;for(As=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 Vo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function jo(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),_r(n),kl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Gn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ho(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ho(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vs)||(e.globalVersion=Vs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gn(e))))return;e.flags|=2;const t=e.dep,s=je,n=_t;je=e,_t=!0;try{Vo(e);const r=e.fn(e._value);(t.version===0||Mt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{je=s,_t=n,jo(e),e.flags&=-3}}function _r(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)_r(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function kl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let _t=!0;const zo=[];function jt(){zo.push(_t),_t=!1}function Ht(){const e=zo.pop();_t=e===void 0?!0:e}function Ar(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=je;je=void 0;try{t()}finally{je=s}}}let Vs=0;class $l{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 gr{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(!je||!_t||je===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==je)s=this.activeLink=new $l(je,this),je.deps?(s.prevDep=je.depsTail,je.depsTail.nextDep=s,je.depsTail=s):je.deps=je.depsTail=s,Bo(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=je.depsTail,s.nextDep=void 0,je.depsTail.nextDep=s,je.depsTail=s,je.deps===s&&(je.deps=n)}return s}trigger(t){this.version++,Vs++,this.notify(t)}notify(t){vr();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{mr()}}}function Bo(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)Bo(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const qn=new WeakMap,is=Symbol(""),Xn=Symbol(""),js=Symbol("");function tt(e,t,s){if(_t&&je){let n=qn.get(e);n||qn.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new gr),r.map=n,r.key=s),r.track()}}function Dt(e,t,s,n,r,o){const l=qn.get(e);if(!l){Vs++;return}const a=c=>{c&&c.trigger()};if(vr(),t==="clear")l.forEach(a);else{const c=ve(e),p=c&&hr(s);if(c&&s==="length"){const d=Number(n);l.forEach((v,y)=>{(y==="length"||y===js||!It(y)&&y>=d)&&a(v)})}else switch((s!==void 0||l.has(void 0))&&a(l.get(s)),p&&a(l.get(js)),t){case"add":c?p&&a(l.get("length")):(a(l.get(is)),ks(e)&&a(l.get(Xn)));break;case"delete":c||(a(l.get(is)),ks(e)&&a(l.get(Xn)));break;case"set":ks(e)&&a(l.get(is));break}}mr()}function fs(e){const t=Fe(e);return t===e?t:(tt(t,"iterate",js),pt(e)?t:t.map(gt))}function Tn(e){return tt(e=Fe(e),"iterate",js),e}function St(e,t){return zt(e)?Ss(ls(e)?gt(t):t):gt(t)}const xl={__proto__:null,[Symbol.iterator](){return jn(this,Symbol.iterator,e=>St(this,e))},concat(...e){return fs(this).concat(...e.map(t=>ve(t)?fs(t):t))},entries(){return jn(this,"entries",e=>(e[1]=St(this,e[1]),e))},every(e,t){return At(this,"every",e,t,void 0,arguments)},filter(e,t){return At(this,"filter",e,t,s=>s.map(n=>St(this,n)),arguments)},find(e,t){return At(this,"find",e,t,s=>St(this,s),arguments)},findIndex(e,t){return At(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return At(this,"findLast",e,t,s=>St(this,s),arguments)},findLastIndex(e,t){return At(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return At(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hn(this,"includes",e)},indexOf(...e){return Hn(this,"indexOf",e)},join(e){return fs(this).join(e)},lastIndexOf(...e){return Hn(this,"lastIndexOf",e)},map(e,t){return At(this,"map",e,t,void 0,arguments)},pop(){return Ts(this,"pop")},push(...e){return Ts(this,"push",e)},reduce(e,...t){return Fr(this,"reduce",e,t)},reduceRight(e,...t){return Fr(this,"reduceRight",e,t)},shift(){return Ts(this,"shift")},some(e,t){return At(this,"some",e,t,void 0,arguments)},splice(...e){return Ts(this,"splice",e)},toReversed(){return fs(this).toReversed()},toSorted(e){return fs(this).toSorted(e)},toSpliced(...e){return fs(this).toSpliced(...e)},unshift(...e){return Ts(this,"unshift",e)},values(){return jn(this,"values",e=>St(this,e))}};function jn(e,t,s){const n=Tn(e),r=n[t]();return n!==e&&!pt(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=s(o.value)),o}),r}const wl=Array.prototype;function At(e,t,s,n,r,o){const l=Tn(e),a=l!==e&&!pt(e),c=l[t];if(c!==wl[t]){const v=c.apply(e,o);return a?gt(v):v}let p=s;l!==e&&(a?p=function(v,y){return s.call(this,St(e,v),y,e)}:s.length>2&&(p=function(v,y){return s.call(this,v,y,e)}));const d=c.call(l,p,n);return a&&r?r(d):d}function Fr(e,t,s,n){const r=Tn(e),o=r!==e&&!pt(e);let l=s,a=!1;r!==e&&(o?(a=n.length===0,l=function(p,d,v){return a&&(a=!1,p=St(e,p)),s.call(this,p,St(e,d),v,e)}):s.length>3&&(l=function(p,d,v){return s.call(this,p,d,v,e)}));const c=r[t](l,...n);return a?St(e,c):c}function Hn(e,t,s){const n=Fe(e);tt(n,"iterate",js);const r=n[t](...s);return(r===-1||r===!1)&&$r(s[0])?(s[0]=Fe(s[0]),n[t](...s)):r}function Ts(e,t,s=[]){jt(),vr();const n=Fe(e)[t].apply(e,s);return mr(),Ht(),n}const Sl=dr("__proto__,__v_isRef,__isVue"),Uo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(It));function Cl(e){It(e)||(e=String(e));const t=Fe(this);return tt(t,"has",e),t.hasOwnProperty(e)}class Wo{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(r?o?Ll:qo:o?Go:Jo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=ve(t);if(!r){let c;if(l&&(c=xl[s]))return c;if(s==="hasOwnProperty")return Cl}const a=Reflect.get(t,s,st(t)?t:n);if((It(s)?Uo.has(s):Sl(s))||(r||tt(t,"get",s),o))return a;if(st(a)){const c=l&&hr(s)?a:a.value;return r&&Pe(c)?Yn(c):c}return Pe(a)?r?Yn(a):yr(a):a}}class Ko extends Wo{constructor(t=!1){super(!1,t)}set(t,s,n,r){let o=t[s];const l=ve(t)&&hr(s);if(!this._isShallow){const p=zt(o);if(!pt(n)&&!zt(n)&&(o=Fe(o),n=Fe(n)),!l&&st(o)&&!st(n))return p||(o.value=n),!0}const a=l?Number(s)<t.length:Le(t,s),c=Reflect.set(t,s,n,st(t)?t:r);return t===Fe(r)&&(a?Mt(n,o)&&Dt(t,"set",s,n):Dt(t,"add",s,n)),c}deleteProperty(t,s){const n=Le(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&Dt(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!It(s)||!Uo.has(s))&&tt(t,"has",s),n}ownKeys(t){return tt(t,"iterate",ve(t)?"length":is),Reflect.ownKeys(t)}}class Tl extends Wo{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Ml=new Ko,El=new Tl,Il=new Ko(!0);const Qn=e=>e,Zs=e=>Reflect.getPrototypeOf(e);function Ol(e,t,s){return function(...n){const r=this.__v_raw,o=Fe(r),l=ks(o),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,p=r[e](...n),d=s?Qn:t?Ss:gt;return!t&&tt(o,"iterate",c?Xn:is),Je(Object.create(p),{next(){const{value:v,done:y}=p.next();return y?{value:v,done:y}:{value:a?[d(v[0]),d(v[1])]:d(v),done:y}}})}}function en(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Rl(e,t){const s={get(r){const o=this.__v_raw,l=Fe(o),a=Fe(r);e||(Mt(r,a)&&tt(l,"get",r),tt(l,"get",a));const{has:c}=Zs(l),p=t?Qn:e?Ss:gt;if(c.call(l,r))return p(o.get(r));if(c.call(l,a))return p(o.get(a));o!==l&&o.get(r)},get size(){const r=this.__v_raw;return!e&&tt(Fe(r),"iterate",is),r.size},has(r){const o=this.__v_raw,l=Fe(o),a=Fe(r);return e||(Mt(r,a)&&tt(l,"has",r),tt(l,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const l=this,a=l.__v_raw,c=Fe(a),p=t?Qn:e?Ss:gt;return!e&&tt(c,"iterate",is),a.forEach((d,v)=>r.call(o,p(d),p(v),l))}};return Je(s,e?{add:en("add"),set:en("set"),delete:en("delete"),clear:en("clear")}:{add(r){const o=Fe(this),l=Zs(o),a=Fe(r),c=!t&&!pt(r)&&!zt(r)?a:r;return l.has.call(o,c)||Mt(r,c)&&l.has.call(o,r)||Mt(a,c)&&l.has.call(o,a)||(o.add(c),Dt(o,"add",c,c)),this},set(r,o){!t&&!pt(o)&&!zt(o)&&(o=Fe(o));const l=Fe(this),{has:a,get:c}=Zs(l);let p=a.call(l,r);p||(r=Fe(r),p=a.call(l,r));const d=c.call(l,r);return l.set(r,o),p?Mt(o,d)&&Dt(l,"set",r,o):Dt(l,"add",r,o),this},delete(r){const o=Fe(this),{has:l,get:a}=Zs(o);let c=l.call(o,r);c||(r=Fe(r),c=l.call(o,r)),a&&a.call(o,r);const p=o.delete(r);return c&&Dt(o,"delete",r,void 0),p},clear(){const r=Fe(this),o=r.size!==0,l=r.clear();return o&&Dt(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ol(r,e,t)}),s}function br(e,t){const s=Rl(e,t);return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Le(s,r)&&r in n?s:n,r,o)}const Al={get:br(!1,!1)},Fl={get:br(!1,!0)},Nl={get:br(!0,!1)};const Jo=new WeakMap,Go=new WeakMap,qo=new WeakMap,Ll=new WeakMap;function Pl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dl(e){return e.__v_skip||!Object.isExtensible(e)?0:Pl(il(e))}function yr(e){return zt(e)?e:kr(e,!1,Ml,Al,Jo)}function Vl(e){return kr(e,!1,Il,Fl,Go)}function Yn(e){return kr(e,!0,El,Nl,qo)}function kr(e,t,s,n,r){if(!Pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Dl(e);if(o===0)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,o===2?n:s);return r.set(e,a),a}function ls(e){return zt(e)?ls(e.__v_raw):!!(e&&e.__v_isReactive)}function zt(e){return!!(e&&e.__v_isReadonly)}function pt(e){return!!(e&&e.__v_isShallow)}function $r(e){return e?!!e.__v_raw:!1}function Fe(e){const t=e&&e.__v_raw;return t?Fe(t):e}function jl(e){return!Le(e,"__v_skip")&&Object.isExtensible(e)&&Ro(e,"__v_skip",!0),e}const gt=e=>Pe(e)?yr(e):e,Ss=e=>Pe(e)?Yn(e):e;function st(e){return e?e.__v_isRef===!0:!1}function re(e){return Qo(e,!1)}function Xo(e){return Qo(e,!0)}function Qo(e,t){return st(e)?e:new Hl(e,t)}class Hl{constructor(t,s){this.dep=new gr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Fe(t),this._value=s?t:gt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||pt(t)||zt(t);t=n?t:Fe(t),Mt(t,s)&&(this._rawValue=t,this._value=n?t:gt(t),this.dep.trigger())}}function Zn(e){e.dep&&e.dep.trigger()}function Re(e){return st(e)?e.value:e}const zl={get:(e,t,s)=>t==="__v_raw"?e:Re(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return st(r)&&!st(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function Yo(e){return ls(e)?e:new Proxy(e,zl)}class Bl{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new gr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&je!==this)return Do(this,!0),!0}get value(){const t=this.dep.track();return Ho(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ul(e,t,s=!1){let n,r;return ke(e)?n=e:(n=e.get,r=e.set),new Bl(n,r,s)}const tn={},un=new WeakMap;let ts;function Wl(e,t=!1,s=ts){if(s){let n=un.get(s);n||un.set(s,n=[]),n.push(e)}}function Kl(e,t,s=Ve){const{immediate:n,deep:r,once:o,scheduler:l,augmentJob:a,call:c}=s,p=w=>r?w:pt(w)||r===!1||r===0?Vt(w,1):Vt(w);let d,v,y,h,x=!1,$=!1;if(st(e)?(v=()=>e.value,x=pt(e)):ls(e)?(v=()=>p(e),x=!0):ve(e)?($=!0,x=e.some(w=>ls(w)||pt(w)),v=()=>e.map(w=>{if(st(w))return w.value;if(ls(w))return p(w);if(ke(w))return c?c(w,2):w()})):ke(e)?t?v=c?()=>c(e,2):e:v=()=>{if(y){jt();try{y()}finally{Ht()}}const w=ts;ts=d;try{return c?c(e,3,[h]):e(h)}finally{ts=w}}:v=Et,t&&r){const w=v,B=r===!0?1/0:r;v=()=>Vt(w(),B)}const R=bl(),J=()=>{d.stop(),R&&R.active&&pr(R.effects,d)};if(o&&t){const w=t;t=(...B)=>{w(...B),J()}}let H=$?new Array(e.length).fill(tn):tn;const O=w=>{if(!(!(d.flags&1)||!d.dirty&&!w))if(t){const B=d.run();if(r||x||($?B.some((ue,$e)=>Mt(ue,H[$e])):Mt(B,H))){y&&y();const ue=ts;ts=d;try{const $e=[B,H===tn?void 0:$&&H[0]===tn?[]:H,h];H=B,c?c(t,3,$e):t(...$e)}finally{ts=ue}}}else d.run()};return a&&a(O),d=new Lo(v),d.scheduler=l?()=>l(O,!1):O,h=w=>Wl(w,!1,d),y=d.onStop=()=>{const w=un.get(d);if(w){if(c)c(w,4);else for(const B of w)B();un.delete(d)}},t?n?O(!0):H=d.run():l?l(O.bind(null,!0),!0):d.run(),J.pause=d.pause.bind(d),J.resume=d.resume.bind(d),J.stop=J,J}function Vt(e,t=1/0,s){if(t<=0||!Pe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,st(e))Vt(e.value,t,s);else if(ve(e))for(let n=0;n<e.length;n++)Vt(e[n],t,s);else if(xn(e)||ks(e))e.forEach(n=>{Vt(n,t,s)});else if(Io(e)){for(const n in e)Vt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Vt(e[n],t,s)}return e}/**
10
- * @vue/runtime-core v3.5.30
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function qs(e,t,s,n){try{return n?e(...n):e()}catch(r){Mn(r,t,s)}}function bt(e,t,s,n){if(ke(e)){const r=qs(e,t,s,n);return r&&Mo(r)&&r.catch(o=>{Mn(o,t,s)}),r}if(ve(e)){const r=[];for(let o=0;o<e.length;o++)r.push(bt(e[o],t,s,n));return r}}function Mn(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Ve;if(t){let a=t.parent;const c=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const d=a.ec;if(d){for(let v=0;v<d.length;v++)if(d[v](e,c,p)===!1)return}a=a.parent}if(o){jt(),qs(o,null,10,[e,c,p]),Ht();return}}Jl(e,s,r,n,l)}function Jl(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const ot=[];let xt=-1;const $s=[];let Jt=null,gs=0;const Zo=Promise.resolve();let dn=null;function ei(e){const t=dn||Zo;return e?t.then(this?e.bind(this):e):t}function Gl(e){let t=xt+1,s=ot.length;for(;t<s;){const n=t+s>>>1,r=ot[n],o=Hs(r);o<e||o===e&&r.flags&2?t=n+1:s=n}return t}function xr(e){if(!(e.flags&1)){const t=Hs(e),s=ot[ot.length-1];!s||!(e.flags&2)&&t>=Hs(s)?ot.push(e):ot.splice(Gl(t),0,e),e.flags|=1,ti()}}function ti(){dn||(dn=Zo.then(ni))}function ql(e){ve(e)?$s.push(...e):Jt&&e.id===-1?Jt.splice(gs+1,0,e):e.flags&1||($s.push(e),e.flags|=1),ti()}function Nr(e,t,s=xt+1){for(;s<ot.length;s++){const n=ot[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ot.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function si(e){if($s.length){const t=[...new Set($s)].sort((s,n)=>Hs(s)-Hs(n));if($s.length=0,Jt){Jt.push(...t);return}for(Jt=t,gs=0;gs<Jt.length;gs++){const s=Jt[gs];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Jt=null,gs=0}}const Hs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ni(e){try{for(xt=0;xt<ot.length;xt++){const t=ot[xt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),qs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;xt<ot.length;xt++){const t=ot[xt];t&&(t.flags&=-2)}xt=-1,ot.length=0,si(),dn=null,(ot.length||$s.length)&&ni()}}let ft=null,ri=null;function fn(e){const t=ft;return ft=e,ri=e&&e.type.__scopeId||null,t}function zs(e,t=ft,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&vn(-1);const o=fn(t);let l;try{l=e(...r)}finally{fn(o),n._d&&vn(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Gt(e,t){if(ft===null)return e;const s=An(ft),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,l,a,c=Ve]=t[r];o&&(ke(o)&&(o={mounted:o,updated:o}),o.deep&&Vt(l),n.push({dir:o,instance:s,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function Qt(e,t,s,n){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const a=r[l];o&&(a.oldValue=o[l].value);let c=a.dir[n];c&&(jt(),bt(c,s,8,[e.el,a,e,t]),Ht())}}function Xl(e,t){if(lt){let s=lt.provides;const n=lt.parent&&lt.parent.provides;n===s&&(s=lt.provides=Object.create(n)),s[e]=t}}function nn(e,t,s=!1){const n=Li();if(n||xs){let r=xs?xs._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&ke(t)?t.call(n&&n.proxy):t}}const Ql=Symbol.for("v-scx"),Yl=()=>nn(Ql);function ht(e,t,s){return oi(e,t,s)}function oi(e,t,s=Ve){const{immediate:n,deep:r,flush:o,once:l}=s,a=Je({},s),c=t&&n||!t&&o!=="post";let p;if(Ws){if(o==="sync"){const h=Yl();p=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=Et,h.resume=Et,h.pause=Et,h}}const d=lt;a.call=(h,x,$)=>bt(h,d,x,$);let v=!1;o==="post"?a.scheduler=h=>{ct(h,d&&d.suspense)}:o!=="sync"&&(v=!0,a.scheduler=(h,x)=>{x?h():xr(h)}),a.augmentJob=h=>{t&&(h.flags|=4),v&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const y=Kl(e,t,a);return Ws&&(p?p.push(y):c&&y()),y}function Zl(e,t,s){const n=this.proxy,r=Ue(e)?e.includes(".")?ii(n,e):()=>n[e]:e.bind(n,n);let o;ke(t)?o=t:(o=t.handler,s=t);const l=Xs(this),a=oi(r,o.bind(n),s);return l(),a}function ii(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const ea=Symbol("_vte"),li=e=>e.__isTeleport,wt=Symbol("_leaveCb"),Ms=Symbol("_enterCb");function ta(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vi(()=>{e.isMounted=!0}),wr(()=>{e.isUnmounting=!0}),e}const dt=[Function,Array],ai={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dt,onEnter:dt,onAfterEnter:dt,onEnterCancelled:dt,onBeforeLeave:dt,onLeave:dt,onAfterLeave:dt,onLeaveCancelled:dt,onBeforeAppear:dt,onAppear:dt,onAfterAppear:dt,onAppearCancelled:dt},ci=e=>{const t=e.subTree;return t.component?ci(t.component):t},sa={name:"BaseTransition",props:ai,setup(e,{slots:t}){const s=Li(),n=ta();return()=>{const r=t.default&&fi(t.default(),!0);if(!r||!r.length)return;const o=ui(r),l=Fe(e),{mode:a}=l;if(n.isLeaving)return zn(o);const c=Lr(o);if(!c)return zn(o);let p=er(c,l,n,s,v=>p=v);c.type!==it&&Bs(c,p);let d=s.subTree&&Lr(s.subTree);if(d&&d.type!==it&&!ns(d,c)&&ci(s).type!==it){let v=er(d,l,n,s);if(Bs(d,v),a==="out-in"&&c.type!==it)return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete v.afterLeave,d=void 0},zn(o);a==="in-out"&&c.type!==it?v.delayLeave=(y,h,x)=>{const $=di(n,d);$[String(d.key)]=d,y[wt]=()=>{h(),y[wt]=void 0,delete p.delayedLeave,d=void 0},p.delayedLeave=()=>{x(),delete p.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return o}}};function ui(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==it){t=s;break}}return t}const na=sa;function di(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function er(e,t,s,n,r){const{appear:o,mode:l,persisted:a=!1,onBeforeEnter:c,onEnter:p,onAfterEnter:d,onEnterCancelled:v,onBeforeLeave:y,onLeave:h,onAfterLeave:x,onLeaveCancelled:$,onBeforeAppear:R,onAppear:J,onAfterAppear:H,onAppearCancelled:O}=t,w=String(e.key),B=di(s,e),ue=(de,he)=>{de&&bt(de,n,9,he)},$e=(de,he)=>{const Se=he[1];ue(de,he),ve(de)?de.every(T=>T.length<=1)&&Se():de.length<=1&&Se()},be={mode:l,persisted:a,beforeEnter(de){let he=c;if(!s.isMounted)if(o)he=R||c;else return;de[wt]&&de[wt](!0);const Se=B[w];Se&&ns(e,Se)&&Se.el[wt]&&Se.el[wt](),ue(he,[de])},enter(de){if(B[w]===e)return;let he=p,Se=d,T=v;if(!s.isMounted)if(o)he=J||p,Se=H||d,T=O||v;else return;let L=!1;de[Ms]=V=>{L||(L=!0,V?ue(T,[de]):ue(Se,[de]),be.delayedLeave&&be.delayedLeave(),de[Ms]=void 0)};const E=de[Ms].bind(null,!1);he?$e(he,[de,E]):E()},leave(de,he){const Se=String(e.key);if(de[Ms]&&de[Ms](!0),s.isUnmounting)return he();ue(y,[de]);let T=!1;de[wt]=E=>{T||(T=!0,he(),E?ue($,[de]):ue(x,[de]),de[wt]=void 0,B[Se]===e&&delete B[Se])};const L=de[wt].bind(null,!1);B[Se]=e,h?$e(h,[de,L]):L()},clone(de){const he=er(de,t,s,n,r);return r&&r(he),he}};return be}function zn(e){if(En(e))return e=qt(e),e.children=null,e}function Lr(e){if(!En(e))return li(e.type)&&e.children?ui(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&ke(s.default))return s.default()}}function Bs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bs(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 fi(e,t=!1,s){let n=[],r=0;for(let o=0;o<e.length;o++){let l=e[o];const a=s==null?l.key:String(s)+String(l.key!=null?l.key:o);l.type===_e?(l.patchFlag&128&&r++,n=n.concat(fi(l.children,t,a))):(t||l.type!==it)&&n.push(a!=null?qt(l,{key:a}):l)}if(r>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function vt(e,t){return ke(e)?Je({name:e.name},t,{setup:e}):e}function pi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Pr(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const pn=new WeakMap;function Ns(e,t,s,n,r=!1){if(ve(e)){e.forEach(($,R)=>Ns($,t&&(ve(t)?t[R]:t),s,n,r));return}if(Ls(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ns(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?An(n.component):n.el,l=r?null:o,{i:a,r:c}=e,p=t&&t.r,d=a.refs===Ve?a.refs={}:a.refs,v=a.setupState,y=Fe(v),h=v===Ve?To:$=>Pr(d,$)?!1:Le(y,$),x=($,R)=>!(R&&Pr(d,R));if(p!=null&&p!==c){if(Dr(t),Ue(p))d[p]=null,h(p)&&(v[p]=null);else if(st(p)){const $=t;x(p,$.k)&&(p.value=null),$.k&&(d[$.k]=null)}}if(ke(c))qs(c,a,12,[l,d]);else{const $=Ue(c),R=st(c);if($||R){const J=()=>{if(e.f){const H=$?h(c)?v[c]:d[c]:x()||!e.k?c.value:d[e.k];if(r)ve(H)&&pr(H,o);else if(ve(H))H.includes(o)||H.push(o);else if($)d[c]=[o],h(c)&&(v[c]=d[c]);else{const O=[o];x(c,e.k)&&(c.value=O),e.k&&(d[e.k]=O)}}else $?(d[c]=l,h(c)&&(v[c]=l)):R&&(x(c,e.k)&&(c.value=l),e.k&&(d[e.k]=l))};if(l){const H=()=>{J(),pn.delete(e)};H.id=-1,pn.set(e,H),ct(H,s)}else Dr(e),J()}}}function Dr(e){const t=pn.get(e);t&&(t.flags|=8,pn.delete(e))}Cn().requestIdleCallback;Cn().cancelIdleCallback;const Ls=e=>!!e.type.__asyncLoader,En=e=>e.type.__isKeepAlive;function ra(e,t){hi(e,"a",t)}function oa(e,t){hi(e,"da",t)}function hi(e,t,s=lt){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(In(t,n,s),s){let r=s.parent;for(;r&&r.parent;)En(r.parent.vnode)&&ia(n,t,s,r),r=r.parent}}function ia(e,t,s,n){const r=In(t,e,n,!0);mi(()=>{pr(n[t],r)},s)}function In(e,t,s=lt,n=!1){if(s){const r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...l)=>{jt();const a=Xs(s),c=bt(t,s,e,l);return a(),Ht(),c});return n?r.unshift(o):r.push(o),o}}const Bt=e=>(t,s=lt)=>{(!Ws||e==="sp")&&In(e,(...n)=>t(...n),s)},la=Bt("bm"),vi=Bt("m"),aa=Bt("bu"),ca=Bt("u"),wr=Bt("bum"),mi=Bt("um"),ua=Bt("sp"),da=Bt("rtg"),fa=Bt("rtc");function pa(e,t=lt){In("ec",e,t)}const ha=Symbol.for("v-ndc");function Ae(e,t,s,n){let r;const o=s,l=ve(e);if(l||Ue(e)){const a=l&&ls(e);let c=!1,p=!1;a&&(c=!pt(e),p=zt(e),e=Tn(e)),r=new Array(e.length);for(let d=0,v=e.length;d<v;d++)r[d]=t(c?p?Ss(gt(e[d])):gt(e[d]):e[d],d,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,o)}else if(Pe(e))if(e[Symbol.iterator])r=Array.from(e,(a,c)=>t(a,c,void 0,o));else{const a=Object.keys(e);r=new Array(a.length);for(let c=0,p=a.length;c<p;c++){const d=a[c];r[c]=t(e[d],d,c,o)}}else r=[];return r}const tr=e=>e?Pi(e)?An(e):tr(e.parent):null,Ps=Je(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=>tr(e.parent),$root:e=>tr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gi(e),$forceUpdate:e=>e.f||(e.f=()=>{xr(e.update)}),$nextTick:e=>e.n||(e.n=ei.bind(e.proxy)),$watch:e=>Zl.bind(e)}),Bn=(e,t)=>e!==Ve&&!e.__isScriptSetup&&Le(e,t),va={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:o,accessCache:l,type:a,appContext:c}=e;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return o[t]}else{if(Bn(n,t))return l[t]=1,n[t];if(r!==Ve&&Le(r,t))return l[t]=2,r[t];if(Le(o,t))return l[t]=3,o[t];if(s!==Ve&&Le(s,t))return l[t]=4,s[t];sr&&(l[t]=0)}}const p=Ps[t];let d,v;if(p)return t==="$attrs"&&tt(e.attrs,"get",""),p(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(s!==Ve&&Le(s,t))return l[t]=4,s[t];if(v=c.config.globalProperties,Le(v,t))return v[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:o}=e;return Bn(r,t)?(r[t]=s,!0):n!==Ve&&Le(n,t)?(n[t]=s,!0):Le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:o,type:l}},a){let c;return!!(s[a]||e!==Ve&&a[0]!=="$"&&Le(e,a)||Bn(t,a)||Le(o,a)||Le(n,a)||Le(Ps,a)||Le(r.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Le(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Vr(e){return ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let sr=!0;function ma(e){const t=gi(e),s=e.proxy,n=e.ctx;sr=!1,t.beforeCreate&&jr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:a,provide:c,inject:p,created:d,beforeMount:v,mounted:y,beforeUpdate:h,updated:x,activated:$,deactivated:R,beforeDestroy:J,beforeUnmount:H,destroyed:O,unmounted:w,render:B,renderTracked:ue,renderTriggered:$e,errorCaptured:be,serverPrefetch:de,expose:he,inheritAttrs:Se,components:T,directives:L,filters:E}=t;if(p&&_a(p,n,null),l)for(const te in l){const se=l[te];ke(se)&&(n[te]=se.bind(s))}if(r){const te=r.call(s,s);Pe(te)&&(e.data=yr(te))}if(sr=!0,o)for(const te in o){const se=o[te],Ce=ke(se)?se.bind(s,s):ke(se.get)?se.get.bind(s,s):Et,U=!ke(se)&&ke(se.set)?se.set.bind(s):Et,ye=A({get:Ce,set:U});Object.defineProperty(n,te,{enumerable:!0,configurable:!0,get:()=>ye.value,set:Te=>ye.value=Te})}if(a)for(const te in a)_i(a[te],n,s,te);if(c){const te=ke(c)?c.call(s):c;Reflect.ownKeys(te).forEach(se=>{Xl(se,te[se])})}d&&jr(d,e,"c");function C(te,se){ve(se)?se.forEach(Ce=>te(Ce.bind(s))):se&&te(se.bind(s))}if(C(la,v),C(vi,y),C(aa,h),C(ca,x),C(ra,$),C(oa,R),C(pa,be),C(fa,ue),C(da,$e),C(wr,H),C(mi,w),C(ua,de),ve(he))if(he.length){const te=e.exposed||(e.exposed={});he.forEach(se=>{Object.defineProperty(te,se,{get:()=>s[se],set:Ce=>s[se]=Ce,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===Et&&(e.render=B),Se!=null&&(e.inheritAttrs=Se),T&&(e.components=T),L&&(e.directives=L),de&&pi(e)}function _a(e,t,s=Et){ve(e)&&(e=nr(e));for(const n in e){const r=e[n];let o;Pe(r)?"default"in r?o=nn(r.from||n,r.default,!0):o=nn(r.from||n):o=nn(r),st(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[n]=o}}function jr(e,t,s){bt(ve(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function _i(e,t,s,n){let r=n.includes(".")?ii(s,n):()=>s[n];if(Ue(e)){const o=t[e];ke(o)&&ht(r,o)}else if(ke(e))ht(r,e.bind(s));else if(Pe(e))if(ve(e))e.forEach(o=>_i(o,t,s,n));else{const o=ke(e.handler)?e.handler.bind(s):t[e.handler];ke(o)&&ht(r,o,e)}}function gi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,a=o.get(t);let c;return a?c=a:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(p=>hn(c,p,l,!0)),hn(c,t,l)),Pe(t)&&o.set(t,c),c}function hn(e,t,s,n=!1){const{mixins:r,extends:o}=t;o&&hn(e,o,s,!0),r&&r.forEach(l=>hn(e,l,s,!0));for(const l in t)if(!(n&&l==="expose")){const a=ga[l]||s&&s[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const ga={data:Hr,props:zr,emits:zr,methods:Os,computed:Os,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:Os,directives:Os,watch:ya,provide:Hr,inject:ba};function Hr(e,t){return t?e?function(){return Je(ke(e)?e.call(this,this):e,ke(t)?t.call(this,this):t)}:t:e}function ba(e,t){return Os(nr(e),nr(t))}function nr(e){if(ve(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function rt(e,t){return e?[...new Set([].concat(e,t))]:t}function Os(e,t){return e?Je(Object.create(null),e,t):t}function zr(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Je(Object.create(null),Vr(e),Vr(t??{})):t}function ya(e,t){if(!e)return t;if(!t)return e;const s=Je(Object.create(null),e);for(const n in t)s[n]=rt(e[n],t[n]);return s}function bi(){return{app:null,config:{isNativeTag:To,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 ka=0;function $a(e,t){return function(n,r=null){ke(n)||(n=Je({},n)),r!=null&&!Pe(r)&&(r=null);const o=bi(),l=new WeakSet,a=[];let c=!1;const p=o.app={_uid:ka++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:ec,get config(){return o.config},set config(d){},use(d,...v){return l.has(d)||(d&&ke(d.install)?(l.add(d),d.install(p,...v)):ke(d)&&(l.add(d),d(p,...v))),p},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),p},component(d,v){return v?(o.components[d]=v,p):o.components[d]},directive(d,v){return v?(o.directives[d]=v,p):o.directives[d]},mount(d,v,y){if(!c){const h=p._ceVNode||Be(n,r);return h.appContext=o,y===!0?y="svg":y===!1&&(y=void 0),e(h,d,y),c=!0,p._container=d,d.__vue_app__=p,An(h.component)}},onUnmount(d){a.push(d)},unmount(){c&&(bt(a,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(d,v){return o.provides[d]=v,p},runWithContext(d){const v=xs;xs=p;try{return d()}finally{xs=v}}};return p}}let xs=null;const xa=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mt(t)}Modifiers`]||e[`${cs(t)}Modifiers`];function wa(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||Ve;let r=s;const o=t.startsWith("update:"),l=o&&xa(n,t.slice(7));l&&(l.trim&&(r=s.map(d=>Ue(d)?d.trim():d)),l.number&&(r=s.map(Sn)));let a,c=n[a=Pn(t)]||n[a=Pn(mt(t))];!c&&o&&(c=n[a=Pn(cs(t))]),c&&bt(c,e,6,r);const p=n[a+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,bt(p,e,6,r)}}const Sa=new WeakMap;function yi(e,t,s=!1){const n=s?Sa:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const o=e.emits;let l={},a=!1;if(!ke(e)){const c=p=>{const d=yi(p,t,!0);d&&(a=!0,Je(l,d))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(Pe(e)&&n.set(e,null),null):(ve(o)?o.forEach(c=>l[c]=null):Je(l,o),Pe(e)&&n.set(e,l),l)}function On(e,t){return!e||!$n(t)?!1:(t=t.slice(2).replace(/Once$/,""),Le(e,t[0].toLowerCase()+t.slice(1))||Le(e,cs(t))||Le(e,t))}function Br(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[o],slots:l,attrs:a,emit:c,render:p,renderCache:d,props:v,data:y,setupState:h,ctx:x,inheritAttrs:$}=e,R=fn(e);let J,H;try{if(s.shapeFlag&4){const w=r||n,B=w;J=Ct(p.call(B,w,d,v,h,y,x)),H=a}else{const w=t;J=Ct(w.length>1?w(v,{attrs:a,slots:l,emit:c}):w(v,null)),H=t.props?a:Ca(a)}}catch(w){Ds.length=0,Mn(w,e,1),J=Be(it)}let O=J;if(H&&$!==!1){const w=Object.keys(H),{shapeFlag:B}=O;w.length&&B&7&&(o&&w.some(fr)&&(H=Ta(H,o)),O=qt(O,H,!1,!0))}return s.dirs&&(O=qt(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(s.dirs):s.dirs),s.transition&&Bs(O,s.transition),J=O,fn(R),J}const Ca=e=>{let t;for(const s in e)(s==="class"||s==="style"||$n(s))&&((t||(t={}))[s]=e[s]);return t},Ta=(e,t)=>{const s={};for(const n in e)(!fr(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Ma(e,t,s){const{props:n,children:r,component:o}=e,{props:l,children:a,patchFlag:c}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Ur(n,l,p):!!l;if(c&8){const d=t.dynamicProps;for(let v=0;v<d.length;v++){const y=d[v];if(ki(l,n,y)&&!On(p,y))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===l?!1:n?l?Ur(n,l,p):!0:!!l;return!1}function Ur(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const o=n[r];if(ki(t,e,o)&&!On(s,o))return!0}return!1}function ki(e,t,s){const n=e[s],r=t[s];return s==="style"&&Pe(n)&&Pe(r)?!Gs(n,r):n!==r}function Ea({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 $i={},xi=()=>Object.create($i),wi=e=>Object.getPrototypeOf(e)===$i;function Ia(e,t,s,n=!1){const r={},o=xi();e.propsDefaults=Object.create(null),Si(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);s?e.props=n?r:Vl(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Oa(e,t,s,n){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,a=Fe(r),[c]=e.propsOptions;let p=!1;if((n||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let v=0;v<d.length;v++){let y=d[v];if(On(e.emitsOptions,y))continue;const h=t[y];if(c)if(Le(o,y))h!==o[y]&&(o[y]=h,p=!0);else{const x=mt(y);r[x]=rr(c,a,x,h,e,!1)}else h!==o[y]&&(o[y]=h,p=!0)}}}else{Si(e,t,r,o)&&(p=!0);let d;for(const v in a)(!t||!Le(t,v)&&((d=cs(v))===v||!Le(t,d)))&&(c?s&&(s[v]!==void 0||s[d]!==void 0)&&(r[v]=rr(c,a,v,void 0,e,!0)):delete r[v]);if(o!==a)for(const v in o)(!t||!Le(t,v))&&(delete o[v],p=!0)}p&&Dt(e.attrs,"set","")}function Si(e,t,s,n){const[r,o]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Rs(c))continue;const p=t[c];let d;r&&Le(r,d=mt(c))?!o||!o.includes(d)?s[d]=p:(a||(a={}))[d]=p:On(e.emitsOptions,c)||(!(c in n)||p!==n[c])&&(n[c]=p,l=!0)}if(o){const c=Fe(s),p=a||Ve;for(let d=0;d<o.length;d++){const v=o[d];s[v]=rr(r,c,v,p[v],e,!Le(p,v))}}return l}function rr(e,t,s,n,r,o){const l=e[s];if(l!=null){const a=Le(l,"default");if(a&&n===void 0){const c=l.default;if(l.type!==Function&&!l.skipFactory&&ke(c)){const{propsDefaults:p}=r;if(s in p)n=p[s];else{const d=Xs(r);n=p[s]=c.call(null,t),d()}}else n=c;r.ce&&r.ce._setProp(s,n)}l[0]&&(o&&!a?n=!1:l[1]&&(n===""||n===cs(s))&&(n=!0))}return n}const Ra=new WeakMap;function Ci(e,t,s=!1){const n=s?Ra:t.propsCache,r=n.get(e);if(r)return r;const o=e.props,l={},a=[];let c=!1;if(!ke(e)){const d=v=>{c=!0;const[y,h]=Ci(v,t,!0);Je(l,y),h&&a.push(...h)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return Pe(e)&&n.set(e,ys),ys;if(ve(o))for(let d=0;d<o.length;d++){const v=mt(o[d]);Wr(v)&&(l[v]=Ve)}else if(o)for(const d in o){const v=mt(d);if(Wr(v)){const y=o[d],h=l[v]=ve(y)||ke(y)?{type:y}:Je({},y),x=h.type;let $=!1,R=!0;if(ve(x))for(let J=0;J<x.length;++J){const H=x[J],O=ke(H)&&H.name;if(O==="Boolean"){$=!0;break}else O==="String"&&(R=!1)}else $=ke(x)&&x.name==="Boolean";h[0]=$,h[1]=R,($||Le(h,"default"))&&a.push(v)}}const p=[l,a];return Pe(e)&&n.set(e,p),p}function Wr(e){return e[0]!=="$"&&!Rs(e)}const Sr=e=>e==="_"||e==="_ctx"||e==="$stable",Cr=e=>ve(e)?e.map(Ct):[Ct(e)],Aa=(e,t,s)=>{if(t._n)return t;const n=zs((...r)=>Cr(t(...r)),s);return n._c=!1,n},Ti=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Sr(r))continue;const o=e[r];if(ke(o))t[r]=Aa(r,o,n);else if(o!=null){const l=Cr(o);t[r]=()=>l}}},Mi=(e,t)=>{const s=Cr(t);e.slots.default=()=>s},Ei=(e,t,s)=>{for(const n in t)(s||!Sr(n))&&(e[n]=t[n])},Fa=(e,t,s)=>{const n=e.slots=xi();if(e.vnode.shapeFlag&32){const r=t._;r?(Ei(n,t,s),s&&Ro(n,"_",r,!0)):Ti(t,n)}else t&&Mi(e,t)},Na=(e,t,s)=>{const{vnode:n,slots:r}=e;let o=!0,l=Ve;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:Ei(r,t,s):(o=!t.$stable,Ti(t,r)),l=t}else t&&(Mi(e,t),l={default:1});if(o)for(const a in r)!Sr(a)&&l[a]==null&&delete r[a]},ct=ja;function La(e){return Pa(e)}function Pa(e,t){const s=Cn();s.__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:l,createText:a,createComment:c,setText:p,setElementText:d,parentNode:v,nextSibling:y,setScopeId:h=Et,insertStaticContent:x}=e,$=(u,_,S,N=null,D=null,F=null,Z=void 0,G=null,Q=!!_.dynamicChildren)=>{if(u===_)return;u&&!ns(u,_)&&(N=nt(u),Te(u,D,F,!0),u=null),_.patchFlag===-2&&(Q=!1,_.dynamicChildren=null);const{type:z,ref:pe,shapeFlag:ne}=_;switch(z){case Rn:R(u,_,S,N);break;case it:J(u,_,S,N);break;case rn:u==null&&H(_,S,N,Z);break;case _e:T(u,_,S,N,D,F,Z,G,Q);break;default:ne&1?B(u,_,S,N,D,F,Z,G,Q):ne&6?L(u,_,S,N,D,F,Z,G,Q):(ne&64||ne&128)&&z.process(u,_,S,N,D,F,Z,G,Q,K)}pe!=null&&D?Ns(pe,u&&u.ref,F,_||u,!_):pe==null&&u&&u.ref!=null&&Ns(u.ref,null,F,u,!0)},R=(u,_,S,N)=>{if(u==null)n(_.el=a(_.children),S,N);else{const D=_.el=u.el;_.children!==u.children&&p(D,_.children)}},J=(u,_,S,N)=>{u==null?n(_.el=c(_.children||""),S,N):_.el=u.el},H=(u,_,S,N)=>{[u.el,u.anchor]=x(u.children,_,S,N,u.el,u.anchor)},O=({el:u,anchor:_},S,N)=>{let D;for(;u&&u!==_;)D=y(u),n(u,S,N),u=D;n(_,S,N)},w=({el:u,anchor:_})=>{let S;for(;u&&u!==_;)S=y(u),r(u),u=S;r(_)},B=(u,_,S,N,D,F,Z,G,Q)=>{if(_.type==="svg"?Z="svg":_.type==="math"&&(Z="mathml"),u==null)ue(_,S,N,D,F,Z,G,Q);else{const z=u.el&&u.el._isVueCE?u.el:null;try{z&&z._beginPatch(),de(u,_,D,F,Z,G,Q)}finally{z&&z._endPatch()}}},ue=(u,_,S,N,D,F,Z,G)=>{let Q,z;const{props:pe,shapeFlag:ne,transition:ce,dirs:me}=u;if(Q=u.el=l(u.type,F,pe&&pe.is,pe),ne&8?d(Q,u.children):ne&16&&be(u.children,Q,null,N,D,Un(u,F),Z,G),me&&Qt(u,null,N,"created"),$e(Q,u,u.scopeId,Z,N),pe){for(const Me in pe)Me!=="value"&&!Rs(Me)&&o(Q,Me,null,pe[Me],F,N);"value"in pe&&o(Q,"value",null,pe.value,F),(z=pe.onVnodeBeforeMount)&&$t(z,N,u)}me&&Qt(u,null,N,"beforeMount");const xe=Da(D,ce);xe&&ce.beforeEnter(Q),n(Q,_,S),((z=pe&&pe.onVnodeMounted)||xe||me)&&ct(()=>{z&&$t(z,N,u),xe&&ce.enter(Q),me&&Qt(u,null,N,"mounted")},D)},$e=(u,_,S,N,D)=>{if(S&&h(u,S),N)for(let F=0;F<N.length;F++)h(u,N[F]);if(D){let F=D.subTree;if(_===F||Ai(F.type)&&(F.ssContent===_||F.ssFallback===_)){const Z=D.vnode;$e(u,Z,Z.scopeId,Z.slotScopeIds,D.parent)}}},be=(u,_,S,N,D,F,Z,G,Q=0)=>{for(let z=Q;z<u.length;z++){const pe=u[z]=G?Pt(u[z]):Ct(u[z]);$(null,pe,_,S,N,D,F,Z,G)}},de=(u,_,S,N,D,F,Z)=>{const G=_.el=u.el;let{patchFlag:Q,dynamicChildren:z,dirs:pe}=_;Q|=u.patchFlag&16;const ne=u.props||Ve,ce=_.props||Ve;let me;if(S&&Yt(S,!1),(me=ce.onVnodeBeforeUpdate)&&$t(me,S,_,u),pe&&Qt(_,u,S,"beforeUpdate"),S&&Yt(S,!0),(ne.innerHTML&&ce.innerHTML==null||ne.textContent&&ce.textContent==null)&&d(G,""),z?he(u.dynamicChildren,z,G,S,N,Un(_,D),F):Z||se(u,_,G,null,S,N,Un(_,D),F,!1),Q>0){if(Q&16)Se(G,ne,ce,S,D);else if(Q&2&&ne.class!==ce.class&&o(G,"class",null,ce.class,D),Q&4&&o(G,"style",ne.style,ce.style,D),Q&8){const xe=_.dynamicProps;for(let Me=0;Me<xe.length;Me++){const Oe=xe[Me],Ke=ne[Oe],Ge=ce[Oe];(Ge!==Ke||Oe==="value")&&o(G,Oe,Ke,Ge,D,S)}}Q&1&&u.children!==_.children&&d(G,_.children)}else!Z&&z==null&&Se(G,ne,ce,S,D);((me=ce.onVnodeUpdated)||pe)&&ct(()=>{me&&$t(me,S,_,u),pe&&Qt(_,u,S,"updated")},N)},he=(u,_,S,N,D,F,Z)=>{for(let G=0;G<_.length;G++){const Q=u[G],z=_[G],pe=Q.el&&(Q.type===_e||!ns(Q,z)||Q.shapeFlag&198)?v(Q.el):S;$(Q,z,pe,null,N,D,F,Z,!0)}},Se=(u,_,S,N,D)=>{if(_!==S){if(_!==Ve)for(const F in _)!Rs(F)&&!(F in S)&&o(u,F,_[F],null,D,N);for(const F in S){if(Rs(F))continue;const Z=S[F],G=_[F];Z!==G&&F!=="value"&&o(u,F,G,Z,D,N)}"value"in S&&o(u,"value",_.value,S.value,D)}},T=(u,_,S,N,D,F,Z,G,Q)=>{const z=_.el=u?u.el:a(""),pe=_.anchor=u?u.anchor:a("");let{patchFlag:ne,dynamicChildren:ce,slotScopeIds:me}=_;me&&(G=G?G.concat(me):me),u==null?(n(z,S,N),n(pe,S,N),be(_.children||[],S,pe,D,F,Z,G,Q)):ne>0&&ne&64&&ce&&u.dynamicChildren&&u.dynamicChildren.length===ce.length?(he(u.dynamicChildren,ce,S,D,F,Z,G),(_.key!=null||D&&_===D.subTree)&&Ii(u,_,!0)):se(u,_,S,pe,D,F,Z,G,Q)},L=(u,_,S,N,D,F,Z,G,Q)=>{_.slotScopeIds=G,u==null?_.shapeFlag&512?D.ctx.activate(_,S,N,Z,Q):E(_,S,N,D,F,Z,Q):V(u,_,Q)},E=(u,_,S,N,D,F,Z)=>{const G=u.component=Ga(u,N,D);if(En(u)&&(G.ctx.renderer=K),qa(G,!1,Z),G.asyncDep){if(D&&D.registerDep(G,C,Z),!u.el){const Q=G.subTree=Be(it);J(null,Q,_,S),u.placeholder=Q.el}}else C(G,u,_,S,D,F,Z)},V=(u,_,S)=>{const N=_.component=u.component;if(Ma(u,_,S))if(N.asyncDep&&!N.asyncResolved){te(N,_,S);return}else N.next=_,N.update();else _.el=u.el,N.vnode=_},C=(u,_,S,N,D,F,Z)=>{const G=()=>{if(u.isMounted){let{next:ne,bu:ce,u:me,parent:xe,vnode:Me}=u;{const qe=Oi(u);if(qe){ne&&(ne.el=Me.el,te(u,ne,Z)),qe.asyncDep.then(()=>{ct(()=>{u.isUnmounted||z()},D)});return}}let Oe=ne,Ke;Yt(u,!1),ne?(ne.el=Me.el,te(u,ne,Z)):ne=Me,ce&&sn(ce),(Ke=ne.props&&ne.props.onVnodeBeforeUpdate)&&$t(Ke,xe,ne,Me),Yt(u,!0);const Ge=Br(u),Xe=u.subTree;u.subTree=Ge,$(Xe,Ge,v(Xe.el),nt(Xe),u,D,F),ne.el=Ge.el,Oe===null&&Ea(u,Ge.el),me&&ct(me,D),(Ke=ne.props&&ne.props.onVnodeUpdated)&&ct(()=>$t(Ke,xe,ne,Me),D)}else{let ne;const{el:ce,props:me}=_,{bm:xe,m:Me,parent:Oe,root:Ke,type:Ge}=u,Xe=Ls(_);Yt(u,!1),xe&&sn(xe),!Xe&&(ne=me&&me.onVnodeBeforeMount)&&$t(ne,Oe,_),Yt(u,!0);{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(Ge,u.parent?u.parent.type:void 0);const qe=u.subTree=Br(u);$(null,qe,S,N,u,D,F),_.el=qe.el}if(Me&&ct(Me,D),!Xe&&(ne=me&&me.onVnodeMounted)){const qe=_;ct(()=>$t(ne,Oe,qe),D)}(_.shapeFlag&256||Oe&&Ls(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&u.a&&ct(u.a,D),u.isMounted=!0,_=S=N=null}};u.scope.on();const Q=u.effect=new Lo(G);u.scope.off();const z=u.update=Q.run.bind(Q),pe=u.job=Q.runIfDirty.bind(Q);pe.i=u,pe.id=u.uid,Q.scheduler=()=>xr(pe),Yt(u,!0),z()},te=(u,_,S)=>{_.component=u;const N=u.vnode.props;u.vnode=_,u.next=null,Oa(u,_.props,N,S),Na(u,_.children,S),jt(),Nr(u),Ht()},se=(u,_,S,N,D,F,Z,G,Q=!1)=>{const z=u&&u.children,pe=u?u.shapeFlag:0,ne=_.children,{patchFlag:ce,shapeFlag:me}=_;if(ce>0){if(ce&128){U(z,ne,S,N,D,F,Z,G,Q);return}else if(ce&256){Ce(z,ne,S,N,D,F,Z,G,Q);return}}me&8?(pe&16&&He(z,D,F),ne!==z&&d(S,ne)):pe&16?me&16?U(z,ne,S,N,D,F,Z,G,Q):He(z,D,F,!0):(pe&8&&d(S,""),me&16&&be(ne,S,N,D,F,Z,G,Q))},Ce=(u,_,S,N,D,F,Z,G,Q)=>{u=u||ys,_=_||ys;const z=u.length,pe=_.length,ne=Math.min(z,pe);let ce;for(ce=0;ce<ne;ce++){const me=_[ce]=Q?Pt(_[ce]):Ct(_[ce]);$(u[ce],me,S,null,D,F,Z,G,Q)}z>pe?He(u,D,F,!0,!1,ne):be(_,S,N,D,F,Z,G,Q,ne)},U=(u,_,S,N,D,F,Z,G,Q)=>{let z=0;const pe=_.length;let ne=u.length-1,ce=pe-1;for(;z<=ne&&z<=ce;){const me=u[z],xe=_[z]=Q?Pt(_[z]):Ct(_[z]);if(ns(me,xe))$(me,xe,S,null,D,F,Z,G,Q);else break;z++}for(;z<=ne&&z<=ce;){const me=u[ne],xe=_[ce]=Q?Pt(_[ce]):Ct(_[ce]);if(ns(me,xe))$(me,xe,S,null,D,F,Z,G,Q);else break;ne--,ce--}if(z>ne){if(z<=ce){const me=ce+1,xe=me<pe?_[me].el:N;for(;z<=ce;)$(null,_[z]=Q?Pt(_[z]):Ct(_[z]),S,xe,D,F,Z,G,Q),z++}}else if(z>ce)for(;z<=ne;)Te(u[z],D,F,!0),z++;else{const me=z,xe=z,Me=new Map;for(z=xe;z<=ce;z++){const Qe=_[z]=Q?Pt(_[z]):Ct(_[z]);Qe.key!=null&&Me.set(Qe.key,z)}let Oe,Ke=0;const Ge=ce-xe+1;let Xe=!1,qe=0;const Ot=new Array(Ge);for(z=0;z<Ge;z++)Ot[z]=0;for(z=me;z<=ne;z++){const Qe=u[z];if(Ke>=Ge){Te(Qe,D,F,!0);continue}let X;if(Qe.key!=null)X=Me.get(Qe.key);else for(Oe=xe;Oe<=ce;Oe++)if(Ot[Oe-xe]===0&&ns(Qe,_[Oe])){X=Oe;break}X===void 0?Te(Qe,D,F,!0):(Ot[X-xe]=z+1,X>=qe?qe=X:Xe=!0,$(Qe,_[X],S,null,D,F,Z,G,Q),Ke++)}const ge=Xe?Va(Ot):ys;for(Oe=ge.length-1,z=Ge-1;z>=0;z--){const Qe=xe+z,X=_[Qe],M=_[Qe+1],Ee=Qe+1<pe?M.el||Ri(M):N;Ot[z]===0?$(null,X,S,Ee,D,F,Z,G,Q):Xe&&(Oe<0||z!==ge[Oe]?ye(X,S,Ee,2):Oe--)}}},ye=(u,_,S,N,D=null)=>{const{el:F,type:Z,transition:G,children:Q,shapeFlag:z}=u;if(z&6){ye(u.component.subTree,_,S,N);return}if(z&128){u.suspense.move(_,S,N);return}if(z&64){Z.move(u,_,S,K);return}if(Z===_e){n(F,_,S);for(let ne=0;ne<Q.length;ne++)ye(Q[ne],_,S,N);n(u.anchor,_,S);return}if(Z===rn){O(u,_,S);return}if(N!==2&&z&1&&G)if(N===0)G.beforeEnter(F),n(F,_,S),ct(()=>G.enter(F),D);else{const{leave:ne,delayLeave:ce,afterLeave:me}=G,xe=()=>{u.ctx.isUnmounted?r(F):n(F,_,S)},Me=()=>{F._isLeaving&&F[wt](!0),ne(F,()=>{xe(),me&&me()})};ce?ce(F,xe,Me):Me()}else n(F,_,S)},Te=(u,_,S,N=!1,D=!1)=>{const{type:F,props:Z,ref:G,children:Q,dynamicChildren:z,shapeFlag:pe,patchFlag:ne,dirs:ce,cacheIndex:me}=u;if(ne===-2&&(D=!1),G!=null&&(jt(),Ns(G,null,S,u,!0),Ht()),me!=null&&(_.renderCache[me]=void 0),pe&256){_.ctx.deactivate(u);return}const xe=pe&1&&ce,Me=!Ls(u);let Oe;if(Me&&(Oe=Z&&Z.onVnodeBeforeUnmount)&&$t(Oe,_,u),pe&6)le(u.component,S,N);else{if(pe&128){u.suspense.unmount(S,N);return}xe&&Qt(u,null,_,"beforeUnmount"),pe&64?u.type.remove(u,_,S,K,N):z&&!z.hasOnce&&(F!==_e||ne>0&&ne&64)?He(z,_,S,!1,!0):(F===_e&&ne&384||!D&&pe&16)&&He(Q,_,S),N&&P(u)}(Me&&(Oe=Z&&Z.onVnodeUnmounted)||xe)&&ct(()=>{Oe&&$t(Oe,_,u),xe&&Qt(u,null,_,"unmounted")},S)},P=u=>{const{type:_,el:S,anchor:N,transition:D}=u;if(_===_e){Y(S,N);return}if(_===rn){w(u);return}const F=()=>{r(S),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(u.shapeFlag&1&&D&&!D.persisted){const{leave:Z,delayLeave:G}=D,Q=()=>Z(S,F);G?G(u.el,F,Q):Q()}else F()},Y=(u,_)=>{let S;for(;u!==_;)S=y(u),r(u),u=S;r(_)},le=(u,_,S)=>{const{bum:N,scope:D,job:F,subTree:Z,um:G,m:Q,a:z}=u;Kr(Q),Kr(z),N&&sn(N),D.stop(),F&&(F.flags|=8,Te(Z,u,_,S)),G&&ct(G,_),ct(()=>{u.isUnmounted=!0},_)},He=(u,_,S,N=!1,D=!1,F=0)=>{for(let Z=F;Z<u.length;Z++)Te(u[Z],_,S,N,D)},nt=u=>{if(u.shapeFlag&6)return nt(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const _=y(u.anchor||u.el),S=_&&_[ea];return S?y(S):_};let W=!1;const j=(u,_,S)=>{let N;u==null?_._vnode&&(Te(_._vnode,null,null,!0),N=_._vnode.component):$(_._vnode||null,u,_,null,null,null,S),_._vnode=u,W||(W=!0,Nr(N),si(),W=!1)},K={p:$,um:Te,m:ye,r:P,mt:E,mc:be,pc:se,pbc:he,n:nt,o:e};return{render:j,hydrate:void 0,createApp:$a(j)}}function Un({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 Yt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Da(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ii(e,t,s=!1){const n=e.children,r=t.children;if(ve(n)&&ve(r))for(let o=0;o<n.length;o++){const l=n[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=Pt(r[o]),a.el=l.el),!s&&a.patchFlag!==-2&&Ii(l,a)),a.type===Rn&&(a.patchFlag===-1&&(a=r[o]=Pt(a)),a.el=l.el),a.type===it&&!a.el&&(a.el=l.el)}}function Va(e){const t=e.slice(),s=[0];let n,r,o,l,a;const c=e.length;for(n=0;n<c;n++){const p=e[n];if(p!==0){if(r=s[s.length-1],e[r]<p){t[n]=r,s.push(n);continue}for(o=0,l=s.length-1;o<l;)a=o+l>>1,e[s[a]]<p?o=a+1:l=a;p<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,l=s[o-1];o-- >0;)s[o]=l,l=t[l];return s}function Oi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Oi(t)}function Kr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ri(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ri(t.subTree):null}const Ai=e=>e.__isSuspense;function ja(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):ql(e)}const _e=Symbol.for("v-fgt"),Rn=Symbol.for("v-txt"),it=Symbol.for("v-cmt"),rn=Symbol.for("v-stc"),Ds=[];let ut=null;function m(e=!1){Ds.push(ut=e?null:[])}function Ha(){Ds.pop(),ut=Ds[Ds.length-1]||null}let Us=1;function vn(e,t=!1){Us+=e,e<0&&ut&&t&&(ut.hasOnce=!0)}function Fi(e){return e.dynamicChildren=Us>0?ut||ys:null,Ha(),Us>0&&ut&&ut.push(e),e}function b(e,t,s,n,r,o){return Fi(i(e,t,s,n,r,o,!0))}function Lt(e,t,s,n,r){return Fi(Be(e,t,s,n,r,!0))}function mn(e){return e?e.__v_isVNode===!0:!1}function ns(e,t){return e.type===t.type&&e.key===t.key}const Ni=({key:e})=>e??null,on=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ue(e)||st(e)||ke(e)?{i:ft,r:e,k:t,f:!!s}:e:null);function i(e,t=null,s=null,n=0,r=null,o=e===_e?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ni(t),ref:t&&on(t),scopeId:ri,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ft};return a?(Tr(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Ue(s)?8:16),Us>0&&!l&&ut&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ut.push(c),c}const Be=za;function za(e,t=null,s=null,n=0,r=null,o=!1){if((!e||e===ha)&&(e=it),mn(e)){const a=qt(e,t,!0);return s&&Tr(a,s),Us>0&&!o&&ut&&(a.shapeFlag&6?ut[ut.indexOf(e)]=a:ut.push(a)),a.patchFlag=-2,a}if(Za(e)&&(e=e.__vccOpts),t){t=Ba(t);let{class:a,style:c}=t;a&&!Ue(a)&&(t.class=oe(a)),Pe(c)&&($r(c)&&!ve(c)&&(c=Je({},c)),t.style=we(c))}const l=Ue(e)?1:Ai(e)?128:li(e)?64:Pe(e)?4:ke(e)?2:0;return i(e,t,s,n,r,l,o,!0)}function Ba(e){return e?$r(e)||wi(e)?Je({},e):e:null}function qt(e,t,s=!1,n=!1){const{props:r,ref:o,patchFlag:l,children:a,transition:c}=e,p=t?Wa(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Ni(p),ref:t&&t.ref?s&&o?ve(o)?o.concat(on(t)):[o,on(t)]:on(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Bs(d,c.clone(d)),d}function We(e=" ",t=0){return Be(Rn,null,e,t)}function Ua(e,t){const s=Be(rn,null,e);return s.staticCount=t,s}function q(e="",t=!1){return t?(m(),Lt(it,null,e)):Be(it,null,e)}function Ct(e){return e==null||typeof e=="boolean"?Be(it):ve(e)?Be(_e,null,e.slice()):mn(e)?Pt(e):Be(Rn,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function Tr(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ve(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Tr(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!wi(t)?t._ctx=ft:r===3&&ft&&(ft.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ke(t)?(t={default:t,_ctx:ft},s=32):(t=String(t),n&64?(s=16,t=[We(t)]):s=8);e.children=t,e.shapeFlag|=s}function Wa(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=oe([t.class,n.class]));else if(r==="style")t.style=we([t.style,n.style]);else if($n(r)){const o=t[r],l=n[r];l&&o!==l&&!(ve(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=n[r])}return t}function $t(e,t,s,n=null){bt(e,t,7,[s,n])}const Ka=bi();let Ja=0;function Ga(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Ka,o={uid:Ja++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new gl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ci(n,r),emitsOptions:yi(n,r),emit:null,emitted:null,propsDefaults:Ve,inheritAttrs:n.inheritAttrs,ctx:Ve,data:Ve,props:Ve,attrs:Ve,slots:Ve,refs:Ve,setupState:Ve,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=wa.bind(null,o),e.ce&&e.ce(o),o}let lt=null;const Li=()=>lt||ft;let _n,or;{const e=Cn(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),o=>{r.length>1?r.forEach(l=>l(o)):r[0](o)}};_n=t("__VUE_INSTANCE_SETTERS__",s=>lt=s),or=t("__VUE_SSR_SETTERS__",s=>Ws=s)}const Xs=e=>{const t=lt;return _n(e),e.scope.on(),()=>{e.scope.off(),_n(t)}},Jr=()=>{lt&&lt.scope.off(),_n(null)};function Pi(e){return e.vnode.shapeFlag&4}let Ws=!1;function qa(e,t=!1,s=!1){t&&or(t);const{props:n,children:r}=e.vnode,o=Pi(e);Ia(e,n,o,t),Fa(e,r,s||t);const l=o?Xa(e,t):void 0;return t&&or(!1),l}function Xa(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,va);const{setup:n}=s;if(n){jt();const r=e.setupContext=n.length>1?Ya(e):null,o=Xs(e),l=qs(n,e,0,[e.props,r]),a=Mo(l);if(Ht(),o(),(a||e.sp)&&!Ls(e)&&pi(e),a){if(l.then(Jr,Jr),t)return l.then(c=>{Gr(e,c)}).catch(c=>{Mn(c,e,0)});e.asyncDep=l}else Gr(e,l)}else Di(e)}function Gr(e,t,s){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(e.setupState=Yo(t)),Di(e)}function Di(e,t,s){const n=e.type;e.render||(e.render=n.render||Et);{const r=Xs(e);jt();try{ma(e)}finally{Ht(),r()}}}const Qa={get(e,t){return tt(e,"get",""),e[t]}};function Ya(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Qa),slots:e.slots,emit:e.emit,expose:t}}function An(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Yo(jl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ps)return Ps[s](e)},has(t,s){return s in t||s in Ps}})):e.proxy}function Za(e){return ke(e)&&"__vccOpts"in e}const A=(e,t)=>Ul(e,t,Ws);function Ze(e,t,s){try{vn(-1);const n=arguments.length;return n===2?Pe(t)&&!ve(t)?mn(t)?Be(e,null,[t]):Be(e,t):Be(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&mn(s)&&(s=[s]),Be(e,t,s))}finally{vn(1)}}const ec="3.5.30";/**
14
- * @vue/runtime-dom v3.5.30
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let ir;const qr=typeof window<"u"&&window.trustedTypes;if(qr)try{ir=qr.createPolicy("vue",{createHTML:e=>e})}catch{}const Vi=ir?e=>ir.createHTML(e):e=>e,tc="http://www.w3.org/2000/svg",sc="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,Xr=Nt&&Nt.createElement("template"),nc={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 r=t==="svg"?Nt.createElementNS(tc,e):t==="mathml"?Nt.createElementNS(sc,e):s?Nt.createElement(e,{is:s}):Nt.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,o){const l=s?s.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{Xr.innerHTML=Vi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Xr.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Wt="transition",Es="animation",Ks=Symbol("_vtc"),ji={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},rc=Je({},ai,ji),oc=e=>(e.displayName="Transition",e.props=rc,e),gn=oc((e,{slots:t})=>Ze(na,ic(e),t)),Zt=(e,t=[])=>{ve(e)?e.forEach(s=>s(...t)):e&&e(...t)},Qr=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function ic(e){const t={};for(const T in e)T in ji||(t[T]=e[T]);if(e.css===!1)return t;const{name:s="v",type:n,duration:r,enterFromClass:o=`${s}-enter-from`,enterActiveClass:l=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:c=o,appearActiveClass:p=l,appearToClass:d=a,leaveFromClass:v=`${s}-leave-from`,leaveActiveClass:y=`${s}-leave-active`,leaveToClass:h=`${s}-leave-to`}=e,x=lc(r),$=x&&x[0],R=x&&x[1],{onBeforeEnter:J,onEnter:H,onEnterCancelled:O,onLeave:w,onLeaveCancelled:B,onBeforeAppear:ue=J,onAppear:$e=H,onAppearCancelled:be=O}=t,de=(T,L,E,V)=>{T._enterCancelled=V,es(T,L?d:a),es(T,L?p:l),E&&E()},he=(T,L)=>{T._isLeaving=!1,es(T,v),es(T,h),es(T,y),L&&L()},Se=T=>(L,E)=>{const V=T?$e:H,C=()=>de(L,T,E);Zt(V,[L,C]),Yr(()=>{es(L,T?c:o),Ft(L,T?d:a),Qr(V)||Zr(L,n,$,C)})};return Je(t,{onBeforeEnter(T){Zt(J,[T]),Ft(T,o),Ft(T,l)},onBeforeAppear(T){Zt(ue,[T]),Ft(T,c),Ft(T,p)},onEnter:Se(!1),onAppear:Se(!0),onLeave(T,L){T._isLeaving=!0;const E=()=>he(T,L);Ft(T,v),T._enterCancelled?(Ft(T,y),so(T)):(so(T),Ft(T,y)),Yr(()=>{T._isLeaving&&(es(T,v),Ft(T,h),Qr(w)||Zr(T,n,R,E))}),Zt(w,[T,E])},onEnterCancelled(T){de(T,!1,void 0,!0),Zt(O,[T])},onAppearCancelled(T){de(T,!0,void 0,!0),Zt(be,[T])},onLeaveCancelled(T){he(T),Zt(B,[T])}})}function lc(e){if(e==null)return null;if(Pe(e))return[Wn(e.enter),Wn(e.leave)];{const t=Wn(e);return[t,t]}}function Wn(e){return cl(e)}function Ft(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Ks]||(e[Ks]=new Set)).add(t)}function es(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Ks];s&&(s.delete(t),s.size||(e[Ks]=void 0))}function Yr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ac=0;function Zr(e,t,s,n){const r=e._endId=++ac,o=()=>{r===e._endId&&n()};if(s!=null)return setTimeout(o,s);const{type:l,timeout:a,propCount:c}=cc(e,t);if(!l)return n();const p=l+"end";let d=0;const v=()=>{e.removeEventListener(p,y),o()},y=h=>{h.target===e&&++d>=c&&v()};setTimeout(()=>{d<c&&v()},a+1),e.addEventListener(p,y)}function cc(e,t){const s=window.getComputedStyle(e),n=x=>(s[x]||"").split(", "),r=n(`${Wt}Delay`),o=n(`${Wt}Duration`),l=eo(r,o),a=n(`${Es}Delay`),c=n(`${Es}Duration`),p=eo(a,c);let d=null,v=0,y=0;t===Wt?l>0&&(d=Wt,v=l,y=o.length):t===Es?p>0&&(d=Es,v=p,y=c.length):(v=Math.max(l,p),d=v>0?l>p?Wt:Es:null,y=d?d===Wt?o.length:c.length:0);const h=d===Wt&&/\b(?:transform|all)(?:,|$)/.test(n(`${Wt}Property`).toString());return{type:d,timeout:v,propCount:y,hasTransform:h}}function eo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>to(s)+to(e[n])))}function to(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function so(e){return(e?e.ownerDocument:document).body.offsetHeight}function uc(e,t,s){const n=e[Ks];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const no=Symbol("_vod"),dc=Symbol("_vsh"),fc=Symbol(""),pc=/(?:^|;)\s*display\s*:/;function hc(e,t,s){const n=e.style,r=Ue(s);let o=!1;if(s&&!r){if(t)if(Ue(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();s[a]==null&&ln(n,a,"")}else for(const l in t)s[l]==null&&ln(n,l,"");for(const l in s)l==="display"&&(o=!0),ln(n,l,s[l])}else if(r){if(t!==s){const l=n[fc];l&&(s+=";"+l),n.cssText=s,o=pc.test(s)}}else t&&e.removeAttribute("style");no in e&&(e[no]=o?n.display:"",e[dc]&&(n.display="none"))}const ro=/\s*!important$/;function ln(e,t,s){if(ve(s))s.forEach(n=>ln(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=vc(e,t);ro.test(s)?e.setProperty(cs(n),s.replace(ro,""),"important"):e[n]=s}}const oo=["Webkit","Moz","ms"],Kn={};function vc(e,t){const s=Kn[t];if(s)return s;let n=mt(t);if(n!=="filter"&&n in e)return Kn[t]=n;n=Oo(n);for(let r=0;r<oo.length;r++){const o=oo[r]+n;if(o in e)return Kn[t]=o}return t}const io="http://www.w3.org/1999/xlink";function lo(e,t,s,n,r,o=vl(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(io,t.slice(6,t.length)):e.setAttributeNS(io,t,s):s==null||o&&!Ao(s)?e.removeAttribute(t):e.setAttribute(t,o?"":It(s)?String(s):s)}function ao(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Vi(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(a!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=Ao(s):s==null&&a==="string"?(s="",l=!0):a==="number"&&(s=0,l=!0)}try{e[t]=s}catch{}l&&e.removeAttribute(r||t)}function rs(e,t,s,n){e.addEventListener(t,s,n)}function mc(e,t,s,n){e.removeEventListener(t,s,n)}const co=Symbol("_vei");function _c(e,t,s,n,r=null){const o=e[co]||(e[co]={}),l=o[t];if(n&&l)l.value=n;else{const[a,c]=gc(t);if(n){const p=o[t]=kc(n,r);rs(e,a,p,c)}else l&&(mc(e,a,l,c),o[t]=void 0)}}const uo=/(?:Once|Passive|Capture)$/;function gc(e){let t;if(uo.test(e)){t={};let n;for(;n=e.match(uo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):cs(e.slice(2)),t]}let Jn=0;const bc=Promise.resolve(),yc=()=>Jn||(bc.then(()=>Jn=0),Jn=Date.now());function kc(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;bt($c(n,s.value),t,5,[n])};return s.value=e,s.attached=yc(),s}function $c(e,t){if(ve(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const fo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xc=(e,t,s,n,r,o)=>{const l=r==="svg";t==="class"?uc(e,n,l):t==="style"?hc(e,s,n):$n(t)?fr(t)||_c(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wc(e,t,n,l))?(ao(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&lo(e,t,n,l,o,t!=="value")):e._isVueCE&&(Sc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ue(n)))?ao(e,mt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),lo(e,t,n,l))};function wc(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&fo(t)&&ke(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return fo(t)&&Ue(s)?!1:t in e}function Sc(e,t){const s=e._def.props;if(!s)return!1;const n=mt(t);return Array.isArray(s)?s.some(r=>mt(r)===n):Object.keys(s).some(r=>mt(r)===n)}const bn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?s=>sn(t,s):t};function Cc(e){e.target.composing=!0}function po(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ws=Symbol("_assign");function ho(e,t,s){return t&&(e=e.trim()),s&&(e=Sn(e)),e}const as={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[ws]=bn(r);const o=n||r.props&&r.props.type==="number";rs(e,t?"change":"input",l=>{l.target.composing||e[ws](ho(e.value,s,o))}),(s||o)&&rs(e,"change",()=>{e.value=ho(e.value,s,o)}),t||(rs(e,"compositionstart",Cc),rs(e,"compositionend",po),rs(e,"change",po))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:o}},l){if(e[ws]=bn(l),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Sn(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===c)||(e.value=c))}},Tc={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const r=xn(t);rs(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>s?Sn(yn(l)):yn(l));e[ws](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,ei(()=>{e._assigning=!1})}),e[ws]=bn(n)},mounted(e,{value:t}){vo(e,t)},beforeUpdate(e,t,s){e[ws]=bn(s)},updated(e,{value:t}){e._assigning||vo(e,t)}};function vo(e,t){const s=e.multiple,n=ve(t);if(!(s&&!n&&!xn(t))){for(let r=0,o=e.options.length;r<o;r++){const l=e.options[r],a=yn(l);if(s)if(n){const c=typeof a;c==="string"||c==="number"?l.selected=t.some(p=>String(p)===String(a)):l.selected=_l(t,a)>-1}else l.selected=t.has(a);else if(Gs(yn(l),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function yn(e){return"_value"in e?e._value:e.value}const Mc=["ctrl","shift","alt","meta"],Ec={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)=>Mc.some(s=>e[`${s}Key`]&&!t.includes(s))},Tt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...o)=>{for(let l=0;l<t.length;l++){const a=Ec[t[l]];if(a&&a(r,t))return}return e(r,...o)}))},Ic=Je({patchProp:xc},nc);let mo;function Oc(){return mo||(mo=La(Ic))}const Rc=((...e)=>{const t=Oc().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=Fc(n);if(!r)return;const o=t._component;!ke(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=s(r,!1,Ac(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function Ac(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Fc(e){return Ue(e)?document.querySelector(e):e}let ss;const Is=[];function Hi(e){if(Is.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Is.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Is.forEach(s=>s(t))},get(){return ss.value},configurable:!0}),()=>{Is.splice(Is.indexOf(e),1)}}function zi(){ss||(ss=Xo(),Hi(t));function e(){ss&&Zn(ss)}function t(s){ss.value=s,s.host&&s.host.hooks.hook("host:update:reactivity",e)}return ss}const lr=re([]),Bi=re({provides:[],injects:[]}),kn=re([]),ar=re([]),cr=re([]),ur=re([]),Ui=re(!1),os=re({}),Nc=typeof window<"u"&&new URLSearchParams(window.location.search).has("debugRpc");let _o=!1,Ne=null,go=!1,an=null,Kt=null;function Xt(...e){Nc&&console.info("[observatory][rpc][iframe]",...e)}function ps(e){return e?e.map(t=>({...t})):[]}function Lc(e){return e?e.map(t=>({...t})):[]}function cn(e){var s;lr.value=ps(e.fetch),Bi.value=e.provideInject?{provides:ps(e.provideInject.provides),injects:ps(e.provideInject.injects)}:{provides:[],injects:[]},kn.value=ps(e.composables),ar.value=Lc(e.renders),cr.value=ps(e.transitions),ur.value=ps(e.traces),os.value=e.features||{};const t=(s=os.value)==null?void 0:s.composableNavigationMode;Kt&&t!==Kt&&(os.value={...os.value||{},composableNavigationMode:Kt},Ne==null||Ne.setComposableMode(Kt).then(()=>Ne==null?void 0:Ne.requestSnapshot()).catch(n=>{Xt("setComposableMode reconcile failed",n)})),Kt&&t===Kt&&(Kt=null),Ui.value=!0,go||(go=!0,Xt("first snapshot received",{fetch:lr.value.length,composables:kn.value.length,renders:ar.value.length,transitions:cr.value.length,traces:ur.value.length}))}function Pc(){if(_o)return;_o=!0,typeof window<"u"&&window.addEventListener("message",s=>{s.data&&s.data.type==="observatory:snapshot"&&cn(s.data.data)});const e=zi(),t=()=>{if(!(!e.value||Ne)){if(Ne=e.value.devtools.extendClientRpc("observatory",{onSnapshot(s){cn(s)}}),Xt("RPC connected"),an){const s=an;an=null,Ne.setComposableMode(s).catch(n=>{Xt("setComposableMode failed (queued)",n)})}Ne.getSnapshot().then(s=>{s&&cn(s)}).catch(()=>{}),Ne.requestSnapshot().catch(()=>{})}};t(),Hi(()=>{t()})}function Dc(){kn.value=[],Ne==null||Ne.clearComposables().then(()=>Ne==null?void 0:Ne.requestSnapshot()).catch(e=>{Xt("clearComposables failed",e)})}function Vc(e){if(Kt=e,os.value={...os.value||{},composableNavigationMode:e},!Ne){an=e,Xt("setComposableMode queued",e);return}Ne.setComposableMode(e).then(()=>Ne==null?void 0:Ne.requestSnapshot()).catch(t=>{Xt("setComposableMode failed",t)})}function jc(e,t,s){Ne==null||Ne.editComposableValue(e,t,s).catch(n=>{Xt("editComposableValue failed",n)})}function Mr(e){var s,n;if(!e||e==="unknown")return;const t=(n=(s=zi().value)==null?void 0:s.devtools)==null?void 0:n.rpc;t!=null&&t.openInEditor&&t.openInEditor(e)}function us(){return Pc(),{fetch:lr,provideInject:Bi,composables:kn,renders:ar,transitions:cr,traces:ur,features:os,connected:Ui,refresh:()=>{Ne==null||Ne.getSnapshot().then(t=>{t&&cn(t)}).catch(()=>{}),Ne==null||Ne.requestSnapshot().catch(()=>{})},clearComposables:Dc}}function hs(e,t,s){let n=s.initialDeps??[],r,o=!0;function l(){var a,c,p;let d;s.key&&((a=s.debug)!=null&&a.call(s))&&(d=Date.now());const v=e();if(!(v.length!==n.length||v.some((x,$)=>n[$]!==x)))return r;n=v;let h;if(s.key&&((c=s.debug)!=null&&c.call(s))&&(h=Date.now()),r=t(...v),s.key&&((p=s.debug)!=null&&p.call(s))){const x=Math.round((Date.now()-d)*100)/100,$=Math.round((Date.now()-h)*100)/100,R=$/16,J=(H,O)=>{for(H=String(H);H.length<O;)H=" "+H;return H};console.info(`%c⏱ ${J($,5)} /${J(x,5)} ms`,`
18
- font-size: .6rem;
19
- font-weight: bold;
20
- color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,s==null?void 0:s.key)}return s!=null&&s.onChange&&!(o&&s.skipInitialOnChange)&&s.onChange(r),o=!1,r}return l.updateDeps=a=>{n=a},l}function bo(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Hc=(e,t)=>Math.abs(e-t)<1.01,zc=(e,t,s)=>{let n;return function(...r){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,r),s)}},yo=e=>{const{offsetWidth:t,offsetHeight:s}=e;return{width:t,height:s}},Bc=e=>e,Uc=e=>{const t=Math.max(e.startIndex-e.overscan,0),s=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let r=t;r<=s;r++)n.push(r);return n},Wc=(e,t)=>{const s=e.scrollElement;if(!s)return;const n=e.targetWindow;if(!n)return;const r=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(r(yo(s)),!n.ResizeObserver)return()=>{};const o=new n.ResizeObserver(l=>{const a=()=>{const c=l[0];if(c!=null&&c.borderBoxSize){const p=c.borderBoxSize[0];if(p){r({width:p.inlineSize,height:p.blockSize});return}}r(yo(s))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return o.observe(s,{box:"border-box"}),()=>{o.unobserve(s)}},ko={passive:!0},$o=typeof window>"u"?!0:"onscrollend"in window,Kc=(e,t)=>{const s=e.scrollElement;if(!s)return;const n=e.targetWindow;if(!n)return;let r=0;const o=e.options.useScrollendEvent&&$o?()=>{}:zc(n,()=>{t(r,!1)},e.options.isScrollingResetDelay),l=d=>()=>{const{horizontal:v,isRtl:y}=e.options;r=v?s.scrollLeft*(y&&-1||1):s.scrollTop,o(),t(r,d)},a=l(!0),c=l(!1);s.addEventListener("scroll",a,ko);const p=e.options.useScrollendEvent&&$o;return p&&s.addEventListener("scrollend",c,ko),()=>{s.removeEventListener("scroll",a),p&&s.removeEventListener("scrollend",c)}},Jc=(e,t,s)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[s.options.horizontal?"inlineSize":"blockSize"])}return e[s.options.horizontal?"offsetWidth":"offsetHeight"]},Gc=(e,{adjustments:t=0,behavior:s},n)=>{var r,o;const l=e+t;(o=(r=n.scrollElement)==null?void 0:r.scrollTo)==null||o.call(r,{[n.options.horizontal?"left":"top"]:l,behavior:s})};class qc{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var s,n,r;return((r=(n=(s=this.targetWindow)==null?void 0:s.performance)==null?void 0:n.now)==null?void 0:r.call(n))??Date.now()},this.observer=(()=>{let s=null;const n=()=>s||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:s=new this.targetWindow.ResizeObserver(r=>{r.forEach(o=>{const l=()=>{const a=o.target,c=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);return}this.shouldMeasureDuringScroll(c)&&this.resizeItem(c,this.options.measureElement(a,o,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),s=null},observe:r=>{var o;return(o=n())==null?void 0:o.observe(r,{box:"border-box"})},unobserve:r=>{var o;return(o=n())==null?void 0:o.unobserve(r)}}})(),this.range=null,this.setOptions=s=>{Object.entries(s).forEach(([n,r])=>{typeof r>"u"&&delete s[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Bc,rangeExtractor:Uc,onChange:()=>{},measureElement:Jc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...s}},this.notify=s=>{var n,r;(r=(n=this.options).onChange)==null||r.call(n,this,s)},this.maybeNotify=hs(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),s=>{this.notify(s)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(s=>s()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((s=this.scrollElement)==null?void 0:s.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=o,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(s,n)=>{const r=new Map,o=new Map;for(let l=n-1;l>=0;l--){const a=s[l];if(r.has(a.lane))continue;const c=o.get(a.lane);if(c==null||a.end>c.end?o.set(a.lane,a):a.end<c.end&&r.set(a.lane,!0),r.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurementOptions=hs(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(s,n,r,o,l,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:s,paddingStart:n,scrollMargin:r,getItemKey:o,enabled:l,lanes:a}),{key:!1}),this.getMeasurements=hs(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:s,paddingStart:n,scrollMargin:r,getItemKey:o,enabled:l,lanes:a},c)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>s)for(const y of this.laneAssignments.keys())y>=s&&this.laneAssignments.delete(y);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(y=>{this.itemSizeCache.set(y.key,y.size)}));const p=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===s&&(this.lanesSettling=!1);const d=this.measurementsCache.slice(0,p),v=new Array(a).fill(void 0);for(let y=0;y<p;y++){const h=d[y];h&&(v[h.lane]=y)}for(let y=p;y<s;y++){const h=o(y),x=this.laneAssignments.get(y);let $,R;if(x!==void 0&&this.options.lanes>1){$=x;const w=v[$],B=w!==void 0?d[w]:void 0;R=B?B.end+this.options.gap:n+r}else{const w=this.options.lanes===1?d[y-1]:this.getFurthestMeasurement(d,y);R=w?w.end+this.options.gap:n+r,$=w?w.lane:y%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(y,$)}const J=c.get(h),H=typeof J=="number"?J:this.options.estimateSize(y),O=R+H;d[y]={index:y,start:R,size:H,end:O,key:h,lane:$},v[$]=y}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=hs(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(s,n,r,o)=>this.range=s.length>0&&n>0?Xc({measurements:s,outerSize:n,scrollOffset:r,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=hs(()=>{let s=null,n=null;const r=this.calculateRange();return r&&(s=r.startIndex,n=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,s,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,s,n]},(s,n,r,o,l)=>o===null||l===null?[]:s({startIndex:o,endIndex:l,overscan:n,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=s=>{const n=this.options.indexAttribute,r=s.getAttribute(n);return r?parseInt(r,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=s=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(r!==void 0&&this.range){const o=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,r-o),a=Math.min(this.options.count-1,r+o);return s>=l&&s<=a}return!0},this.measureElement=s=>{if(!s){this.elementsCache.forEach((l,a)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(a))});return}const n=this.indexFromElement(s),r=this.options.getItemKey(n),o=this.elementsCache.get(r);o!==s&&(o&&this.observer.unobserve(o),this.observer.observe(s),this.elementsCache.set(r,s)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(s,void 0,this))},this.resizeItem=(s,n)=>{var r;const o=this.measurementsCache[s];if(!o)return;const l=this.itemSizeCache.get(o.key)??o.size,a=n-l;a!==0&&(((r=this.scrollState)==null?void 0:r.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.getVirtualItems=hs(()=>[this.getVirtualIndexes(),this.getMeasurements()],(s,n)=>{const r=[];for(let o=0,l=s.length;o<l;o++){const a=s[o],c=n[a];r.push(c)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=s=>{const n=this.getMeasurements();if(n.length!==0)return bo(n[Wi(0,n.length-1,r=>bo(n[r]).start,s)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const s=this.scrollElement.document.documentElement;return this.options.horizontal?s.scrollWidth-this.scrollElement.innerWidth:s.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(s,n,r=0)=>{if(!this.scrollElement)return 0;const o=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=s>=l+o?"end":"start"),n==="center"?s+=(r-o)/2:n==="end"&&(s-=o);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,s),0)},this.getOffsetForIndex=(s,n="auto")=>{s=Math.max(0,Math.min(s,this.options.count-1));const r=this.getSize(),o=this.getScrollOffset(),l=this.measurementsCache[s];if(!l)return;if(n==="auto")if(l.end>=o+r-this.options.scrollPaddingEnd)n="end";else if(l.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];if(n==="end"&&s===this.options.count-1)return[this.getMaxScrollOffset(),n];const a=n==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,n,l.size),n]},this.scrollToOffset=(s,{align:n="start",behavior:r="auto"}={})=>{const o=this.getOffsetForAlignment(s,n),l=this.now();this.scrollState={index:null,align:n,behavior:r,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(s,{align:n="auto",behavior:r="auto"}={})=>{s=Math.max(0,Math.min(s,this.options.count-1));const o=this.getOffsetForIndex(s,n);if(!o)return;const[l,a]=o,c=this.now();this.scrollState={index:s,align:a,behavior:r,startedAt:c,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(s,{behavior:n="auto"}={})=>{const r=this.getScrollOffset()+s,o=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var s;const n=this.getMeasurements();let r;if(n.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((s=n[n.length-1])==null?void 0:s.end)??0;else{const o=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&o.some(a=>a===null);){const a=n[l];o[a.lane]===null&&(o[a.lane]=a.end),l--}r=Math.max(...o.filter(a=>a!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(s,{adjustments:n,behavior:r})=>{this.options.scrollToFn(s,{behavior:r,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const n=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=n?n[0]:this.scrollState.lastTargetOffset,o=1,l=r!==this.scrollState.lastTargetOffset;if(!l&&Hc(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.scrollState=null;return}}else this.scrollState.stableFrames=0,l&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Wi=(e,t,s,n)=>{for(;e<=t;){const r=(e+t)/2|0,o=s(r);if(o<n)e=r+1;else if(o>n)t=r-1;else return r}return e>0?e-1:0};function Xc({measurements:e,outerSize:t,scrollOffset:s,lanes:n}){const r=e.length-1,o=c=>e[c].start;if(e.length<=n)return{startIndex:0,endIndex:r};let l=Wi(0,r,o,s),a=l;if(n===1)for(;a<r&&e[a].end<s+t;)a++;else if(n>1){const c=Array(n).fill(0);for(;a<r&&c.some(d=>d<s+t);){const d=e[a];c[d.lane]=d.end,a++}const p=Array(n).fill(s+t);for(;l>=0&&p.some(d=>d>=s);){const d=e[l];p[d.lane]=d.start,l--}l=Math.max(0,l-l%n),a=Math.min(r,a+(n-1-a%n))}return{startIndex:l,endIndex:a}}function Qc(e){const t=new qc(Re(e)),s=Xo(t),n=t._didMount();return ht(()=>Re(e).getScrollElement(),r=>{r&&t._willUpdate()},{immediate:!0}),ht(()=>Re(e),r=>{t.setOptions({...r,onChange:(o,l)=>{var a;Zn(s),(a=r.onChange)==null||a.call(r,o,l)}}),t._willUpdate(),Zn(s)},{immediate:!0}),yl(n),s}function Cs(e){return Qc(A(()=>({observeElementRect:Wc,observeElementOffset:Kc,scrollToFn:Gc,...Re(e)})))}const Yc=34,Ki=10,Zc=2,eu=40;function xo(e){return Number.isFinite(e)?Math.max(Zc,Math.min(eu,Math.round(e))):Ki}function Qs(e){const t=re((e==null?void 0:e.rowHeight)??Yc),s=re(xo((e==null?void 0:e.overscan)??Ki)),n=A(()=>({rowHeight:Math.max(20,t.value),overscan:xo(s.value)}));return{rowHeight:t,overscan:s,preset:n}}function Fn(e,t){const s=t&&Number(localStorage.getItem(t))||e,n=re(Math.max(160,Math.min(600,s)));let r=!1,o=0,l=0;function a(d){if(!r)return;const v=o-d.clientX;n.value=Math.max(160,Math.min(600,l+v)),t&&localStorage.setItem(t,String(n.value))}function c(){r&&(r=!1,document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect="")}function p(d){d.preventDefault(),r=!0,o=d.clientX,l=n.value,document.addEventListener("mousemove",a),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize",document.body.style.userSelect="none"}return wr(()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""}),{paneWidth:n,onHandleMouseDown:p}}const tu={class:"fetch-dashboard tracker-view"},su={class:"fetch-dashboard__stats tracker-stats-row"},nu={class:"stat-card"},ru={class:"stat-val"},ou={class:"stat-card"},iu={class:"stat-val stat-val--ok"},lu={class:"stat-card"},au={class:"stat-val stat-val--pending"},cu={class:"stat-card"},uu={class:"stat-val stat-val--error"},du={class:"fetch-dashboard__toolbar tracker-toolbar"},fu={class:"fetch-dashboard__split tracker-split"},pu={class:"data-table"},hu={key:0,class:"fetch-dashboard__virtual-spacer-row","aria-hidden":"true"},vu=["onClick"],mu={class:"fetch-dashboard__key mono tracker-mono-secondary"},_u=["title"],gu={class:"muted text-sm"},bu={class:"mono text-sm"},yu={class:"fetch-dashboard__bar-track tracker-progress-bar"},ku={key:1,class:"fetch-dashboard__virtual-spacer-row","aria-hidden":"true"},$u={key:2},xu={colspan:"7",class:"tracker-empty-cell"},wu={key:3,class:"fetch-dashboard__pagination-row","aria-live":"polite"},Su={colspan:"7",class:"fetch-dashboard__pagination-cell"},Cu={class:"mono muted text-sm"},Tu={key:0,class:"mono muted text-sm"},Mu={class:"fetch-dashboard__detail-header"},Eu={class:"fetch-dashboard__detail-title mono bold"},Iu={class:"flex gap-2"},Ou={class:"fetch-dashboard__meta-grid"},Ru={class:"muted text-sm"},Au={class:"fetch-dashboard__meta-value mono text-sm"},Fu={class:"fetch-dashboard__payload-box"},Nu={class:"mono text-sm muted"},Lu={class:"fetch-dashboard__waterfall"},Pu={class:"fetch-dashboard__waterfall-header"},Du={key:0,class:"fetch-dashboard__waterfall-body"},Vu={class:"fetch-dashboard__waterfall-key mono muted text-sm"},ju={class:"fetch-dashboard__waterfall-track"},Hu={class:"fetch-dashboard__waterfall-time mono muted text-sm"},zu=vt({__name:"FetchDashboard",setup(e){const{fetch:t,connected:s,features:n}=us(),{paneWidth:r,onHandleMouseDown:o}=Fn(280,"observatory:fetch:detailWidth"),l=re("all"),a=re(""),c=re(null),p=re(!0),d=re(null),v=re(1),{preset:y}=Qs({rowHeight:38,overscan:6}),h=A(()=>{const P=[...t.value].sort((le,He)=>le.startTime-He.startTime),Y=P.length>0?P[0].startTime:0;return P.map(le=>({...le,startOffset:Math.max(0,le.startTime-Y)}))}),x=A(()=>new Map(h.value.map(P=>[P.id,P]))),$=A(()=>c.value?x.value.get(c.value)??null:null),R=A(()=>({ok:h.value.filter(P=>P.status==="ok"||P.status==="cached").length,pending:h.value.filter(P=>P.status==="pending").length,error:h.value.filter(P=>P.status==="error").length})),J=A(()=>h.value.filter(P=>{if(l.value!=="all"&&P.status!==l.value)return!1;const Y=a.value.toLowerCase();return!(Y&&!P.key.toLowerCase().includes(Y)&&!P.url.toLowerCase().includes(Y))})),H=A(()=>{var Y;const P=(Y=n.value)==null?void 0:Y.fetchPageSize;return typeof P!="number"||!Number.isFinite(P)?20:Math.max(1,Math.floor(P))}),O=A(()=>J.value.slice(0,v.value*H.value)),w=A(()=>O.value.length<J.value.length),B=A(()=>!0),ue=A(()=>({count:O.value.length,getScrollElement:()=>d.value,estimateSize:()=>y.value.rowHeight,overscan:y.value.overscan})),$e=Cs(ue),be=A(()=>B.value?$e.value.getVirtualItems():[]),de=A(()=>!B.value||be.value.length===0?0:be.value[0].start),he=A(()=>{if(!B.value||be.value.length===0)return 0;const P=$e.value.getTotalSize(),Y=be.value[be.value.length-1];return Math.max(0,P-Y.end)}),Se=A(()=>B.value?be.value.map(P=>O.value[P.index]).filter(P=>!!P):O.value);ht([l,a],()=>{v.value=1,d.value&&(d.value.scrollTop=0)}),ht(J,P=>{const Y=Math.max(1,Math.ceil(P.length/H.value));v.value>Y&&(v.value=Y)});function T(){const P=d.value;if(!P||!w.value)return;P.scrollTop+P.clientHeight>=P.scrollHeight-32&&(v.value+=1)}const L=A(()=>{if(!$.value)return[];const P=$.value;return[["url",P.url],["status",P.status],["origin",P.origin],["duration",P.ms!=null?`${P.ms}ms`:"—"],["size",P.size?Te(P.size):"—"],["cached",P.cached?"yes":"no"]]}),E=A(()=>{if(!$.value)return"";const P=$.value.payload;if(P===void 0)return"(no payload captured yet)";try{return JSON.stringify(P,null,2)}catch{return String(P)}});function V(P){return{ok:"badge-ok",error:"badge-err",pending:"badge-warn",cached:"badge-gray"}[P]??"badge-gray"}function C(P){return{ok:"var(--teal)",error:"var(--red)",pending:"var(--amber)",cached:"var(--border)"}[P]??"var(--border)"}const te=A(()=>{let P=1;for(const Y of h.value)Y.ms!=null&&Y.ms>P&&(P=Y.ms);return P});function se(P){const Y=te.value;return P.ms!=null?Math.max(4,Math.round(P.ms/Y*100)):4}const Ce=A(()=>{let P=1;for(const Y of h.value){if(Y.ms==null)continue;const le=Y.startOffset+Y.ms;le>P&&(P=le)}return P});function U(P){const Y=Ce.value;return Math.min(98,Math.round(P.startOffset/Y*100))}function ye(P){if(P.ms==null)return 2;const Y=Ce.value,le=U(P);return Math.min(100-le,Math.max(2,Math.round(P.ms/Y*100)))}function Te(P){return P<1024?`${P}B`:`${(P/1024).toFixed(1)}KB`}return(P,Y)=>(m(),b("div",tu,[i("div",su,[i("div",nu,[Y[8]||(Y[8]=i("div",{class:"stat-label"},"total",-1)),i("div",ru,f(h.value.length),1)]),i("div",ou,[Y[9]||(Y[9]=i("div",{class:"stat-label"},"success",-1)),i("div",iu,f(R.value.ok),1)]),i("div",lu,[Y[10]||(Y[10]=i("div",{class:"stat-label"},"pending",-1)),i("div",au,f(R.value.pending),1)]),i("div",cu,[Y[11]||(Y[11]=i("div",{class:"stat-label"},"error",-1)),i("div",uu,f(R.value.error),1)])]),i("div",du,[i("button",{class:oe({active:l.value==="all"}),onClick:Y[0]||(Y[0]=le=>l.value="all")},"all",2),i("button",{class:oe({"danger-active":l.value==="error"}),onClick:Y[1]||(Y[1]=le=>l.value="error")},"errors",2),i("button",{class:oe({active:l.value==="pending"}),onClick:Y[2]||(Y[2]=le=>l.value="pending")},"pending",2),i("button",{class:oe({active:l.value==="cached"}),onClick:Y[3]||(Y[3]=le=>l.value="cached")},"cached",2),Gt(i("input",{"onUpdate:modelValue":Y[4]||(Y[4]=le=>a.value=le),type:"search",class:"fetch-dashboard__search tracker-toolbar__spacer",placeholder:"search key or url…"},null,512),[[as,a.value]])]),i("div",fu,[i("div",{ref_key:"tableScrollRef",ref:d,class:"fetch-dashboard__table tracker-table-wrap",onScroll:T},[i("table",pu,[Y[12]||(Y[12]=i("thead",null,[i("tr",null,[i("th",null,"key"),i("th",null,"url"),i("th",null,"status"),i("th",null,"origin"),i("th",null,"size"),i("th",null,"time"),i("th",{class:"fetch-dashboard__bar-column"},"bar")])],-1)),i("tbody",null,[B.value&&de.value>0?(m(),b("tr",hu,[i("td",{colspan:"7",style:we({height:`${de.value}px`})},null,4)])):q("",!0),(m(!0),b(_e,null,Ae(Se.value,le=>{var He;return m(),b("tr",{key:le.id,class:oe({selected:((He=$.value)==null?void 0:He.id)===le.id}),onClick:nt=>c.value=le.id},[i("td",null,[i("span",mu,f(le.key),1)]),i("td",null,[i("span",{class:"fetch-dashboard__url mono tracker-mono-secondary tracker-truncate",title:le.url},f(le.url),9,_u)]),i("td",null,[i("span",{class:oe(["badge",V(le.status)])},f(le.status),3)]),i("td",null,[i("span",{class:oe(["badge",le.origin==="ssr"?"badge-info":"badge-gray"])},f(le.origin),3)]),i("td",gu,f(le.size?Te(le.size):"—"),1),i("td",bu,f(le.ms!=null?`${le.ms}ms`:"—"),1),i("td",null,[i("div",yu,[i("div",{class:"fetch-dashboard__bar-fill tracker-progress-bar__fill",style:we({width:`${se(le)}%`,background:C(le.status)})},null,4)])])],10,vu)}),128)),B.value&&he.value>0?(m(),b("tr",ku,[i("td",{colspan:"7",style:we({height:`${he.value}px`})},null,4)])):q("",!0),J.value.length?(m(),b("tr",wu,[i("td",Su,[i("span",Cu,"showing "+f(O.value.length)+" of "+f(J.value.length),1),w.value?(m(),b("span",Tu,"scroll to load more")):q("",!0)])])):(m(),b("tr",$u,[i("td",xu,f(Re(s)?"No fetches recorded yet.":"Waiting for connection to the Nuxt app…"),1)]))])])],544),i("div",{class:"tracker-resize-handle",onMousedown:Y[5]||(Y[5]=(...le)=>Re(o)&&Re(o)(...le))},null,32),$.value?(m(),b("div",{key:0,class:"fetch-dashboard__detail tracker-detail-panel",style:we({width:Re(r)+"px"})},[i("div",Mu,[i("span",Eu,f($.value.key),1),i("div",Iu,[i("button",{onClick:Y[6]||(Y[6]=le=>c.value=null)},"×")])]),i("div",Ou,[(m(!0),b(_e,null,Ae(L.value,([le,He])=>(m(),b(_e,{key:le},[i("span",Ru,f(le),1),i("span",Au,f(He),1)],64))),128))]),Y[13]||(Y[13]=i("div",{class:"tracker-section-label fetch-dashboard__section-label"},"payload",-1)),i("pre",Fu,f(E.value),1),Y[14]||(Y[14]=i("div",{class:"tracker-section-label fetch-dashboard__section-label fetch-dashboard__section-label--source"},"source",-1)),i("div",Nu,f($.value.file)+":"+f($.value.line),1)],4)):(m(),b("div",{key:1,class:"tracker-detail-empty",style:we({width:Re(r)+"px"})},"select a call to inspect",4))]),i("div",Lu,[i("div",Pu,[Y[15]||(Y[15]=i("div",{class:"tracker-section-label fetch-dashboard__waterfall-label"},"waterfall",-1)),i("button",{class:oe({active:p.value}),onClick:Y[7]||(Y[7]=le=>p.value=!p.value)},f(p.value?"hide":"show"),3)]),p.value?(m(),b("div",Du,[(m(!0),b(_e,null,Ae(h.value,le=>(m(),b("div",{key:le.id,class:"fetch-dashboard__waterfall-row"},[i("span",Vu,f(le.key),1),i("div",ju,[i("div",{class:"fetch-dashboard__waterfall-bar",style:we({left:`${U(le)}%`,width:`${Math.max(2,ye(le))}%`,background:C(le.status)})},null,4)]),i("span",Hu,f(le.ms!=null?`${le.ms}ms`:"—"),1)]))),128))])):q("",!0)])]))}}),yt=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Bu=yt(zu,[["__scopeId","data-v-a1c3b641"]]),Uu={class:"provide-graph tracker-view"},Wu={class:"provide-graph__toolbar tracker-toolbar"},Ku=["onClick"],Ju={class:"provide-graph__split tracker-split"},Gu={class:"provide-graph__graph-area"},qu={key:0,class:"provide-graph__canvas-stage"},Xu=["width","height","viewBox"],Qu=["d"],Yu=["onClick"],Zu={class:"mono provide-graph__node-label"},ed={key:0,class:"badge badge-ok badge-xs"},td={key:1,class:"badge badge-err badge-xs"},sd={key:1,class:"provide-graph__graph-empty"},nd={class:"provide-graph__detail-header"},rd={class:"provide-graph__detail-title mono bold"},od={key:0,class:"detail-section"},id={class:"tracker-section-label provide-graph__section-label"},ld={class:"detail-list"},ad={class:"row-main"},cd={class:"mono text-sm row-key"},ud=["title"],dd=["onClick"],fd={key:0,class:"row-warning"},pd={key:1,class:"row-consumers"},hd={key:0,class:"muted text-sm"},vd={key:2,class:"provide-graph__compact-muted muted text-sm"},md={key:3,class:"value-box"},_d={class:"tracker-section-label provide-graph__section-label"},gd={class:"detail-list"},bd={class:"mono text-sm row-key"},yd={key:0,class:"badge badge-ok"},kd={key:1,class:"badge badge-err"},$d=["title"],xd={key:2,class:"provide-graph__empty-detail muted text-sm"},wd={key:2,class:"tracker-detail-empty"},vs=140,ms=32,Sd=72,_s=18,Cd=vt({__name:"ProvideInjectGraph",setup(e){const{provideInject:t,connected:s}=us(),{paneWidth:n,onHandleMouseDown:r}=Fn(280,"observatory:provide:detailWidth");function o(E){return E.injects.some(V=>!V.ok)?"var(--red)":E.type==="both"?"var(--blue)":E.type==="provider"?"var(--teal)":"var(--text3)"}function l(E,V){return V==="all"?!0:V==="warn"?E.injects.some(C=>!C.ok):V==="shadow"?E.provides.some(C=>C.isShadowing):E.provides.some(C=>C.key===V)||E.injects.some(C=>C.key===V)}function a(E,V){if(!V)return!0;const C=V.toLowerCase();return E.label.toLowerCase().includes(C)||E.componentName.toLowerCase().includes(C)||E.provides.some(te=>te.key.toLowerCase().includes(C))||E.injects.some(te=>te.key.toLowerCase().includes(C))}function c(E){const V=new Map;for(const C of E){const te=[{node:C,visited:!1}];for(;te.length;){const se=te.pop();if(!se.visited){te.push({node:se.node,visited:!0});for(let U=se.node.children.length-1;U>=0;U--)te.push({node:se.node.children[U],visited:!1});continue}if(se.node.children.length===0){V.set(se.node.id,1);continue}let Ce=0;for(const U of se.node.children)Ce+=V.get(U.id)??1;V.set(se.node.id,Ce)}}return V}function p(E){if(typeof E=="string")return E;try{return JSON.stringify(E)}catch{return String(E)}}function d(E){return typeof E=="object"&&E!==null}function v(E){if(E===null)return"null";if(Array.isArray(E))return`Array(${E.length})`;if(typeof E=="object"){const V=Object.keys(E);return V.length?`{ ${V.join(", ")} }`:"{}"}return p(E)}function y(E){if(!d(E))return p(E);try{return JSON.stringify(E,null,2)}catch{return p(E)}}function h(E,V,C){return`${E}:${V}:${C}`}function x(E){return E.split("/").pop()??E}function $(E){Mr(E)}function R(E){return String(E.componentUid)}const J=A(()=>{const E=new Map,V=new Map;function C(U){const ye=R(U),Te=E.get(ye);if(Te)return Te;const P={id:ye,label:x(U.componentFile),componentName:U.componentName??x(U.componentFile),componentFile:U.componentFile,type:"consumer",provides:[],injects:[],children:[]};return E.set(ye,P),V.set(ye,U.parentUid!==void 0?String(U.parentUid):null),P}const te=new Map;for(const U of t.value.injects){const ye=te.get(U.key)??[];ye.push(U),te.set(U.key,ye)}const se=new Map;for(const U of t.value.provides)se.set(U.componentUid,U.componentName);for(const U of t.value.injects)se.set(U.componentUid,U.componentName);for(const U of t.value.provides){const ye=C(U),Te=te.get(U.key)??[];ye.provides.push({key:U.key,val:v(U.valueSnapshot),raw:U.valueSnapshot,reactive:U.isReactive,complex:d(U.valueSnapshot),scope:U.scope??"component",isShadowing:U.isShadowing??!1,consumerUids:Te.map(P=>P.componentUid),consumerNames:Te.map(P=>P.componentName)})}for(const U of t.value.injects)C(U).injects.push({key:U.key,from:U.resolvedFromFile??null,fromName:U.resolvedFromUid!==void 0?se.get(U.resolvedFromUid)??null:null,ok:U.resolved});for(const U of E.values())U.injects.some(ye=>!ye.ok)?U.type="error":U.provides.length&&U.injects.length?U.type="both":U.provides.length?U.type="provider":U.type="consumer";const Ce=[];for(const[U,ye]of E.entries()){const Te=V.get(U),P=Te?E.get(Te):void 0;P?P.children.push(ye):Ce.push(ye)}return Ce}),H=re("all"),O=re(""),w=re(null),B=re(new Set);ht(w,()=>{B.value=new Set});function ue(E){const V=new Set(B.value);V.has(E)?V.delete(E):V.add(E),B.value=V}const $e=A(()=>{const E=new Set,V=[...J.value];for(;V.length;){const C=V.pop();C.provides.forEach(te=>E.add(te.key)),C.injects.forEach(te=>E.add(te.key)),V.push(...C.children)}return[...E]}),be=A(()=>{function E(V){const C=[],te=[V];for(;te.length;){const Ce=te.pop();C.push(Ce);for(let U=Ce.children.length-1;U>=0;U--)te.push(Ce.children[U])}const se=new Map;for(let Ce=C.length-1;Ce>=0;Ce--){const U=C[Ce],ye=U.children.map(P=>se.get(P)??null).filter(P=>P!==null);!(l(U,H.value)&&a(U,O.value))&&!ye.length?se.set(U,null):se.set(U,{...U,children:ye})}return se.get(V)??null}return J.value.map(E).filter(Boolean)}),de=A(()=>c(be.value));ht([be,w],([E,V])=>{if(!V)return;const C=new Set,te=[...E];for(;te.length;){const se=te.pop();C.add(se.id),te.push(...se.children)}C.has(V.id)||(w.value=null)});const he=A(()=>{const E=[],V=_s,C=de.value,te=Ce=>C.get(Ce.id)??1;let se=V;for(const Ce of be.value){const U=[{node:Ce,depth:0,slotLeft:se,parentId:null}];for(;U.length;){const{node:Te,depth:P,slotLeft:Y,parentId:le}=U.pop(),nt=te(Te)*(vs+_s)-_s;E.push({data:Te,parentId:le,x:Math.round(Y+nt/2),y:Math.round(V+P*(ms+Sd)+ms/2)});let W=Y;const j=[];for(const K of Te.children){const Ie=te(K);j.push({node:K,depth:P+1,slotLeft:W,parentId:Te.id}),W+=Ie*(vs+_s)}for(let K=j.length-1;K>=0;K--)U.push(j[K])}const ye=te(Ce);se+=ye*(vs+_s)+_s*2}return E}),Se=A(()=>he.value.reduce((E,V)=>Math.max(E,V.x+vs/2+20),520)),T=A(()=>he.value.reduce((E,V)=>Math.max(E,V.y+ms/2+20),200)),L=A(()=>{const E=new Map(he.value.map(V=>[V.data.id,V]));return he.value.filter(V=>V.parentId!==null).map(V=>{const C=E.get(V.parentId);return{id:`${C.data.id}--${V.data.id}`,x1:C.x,y1:C.y+ms/2,x2:V.x,y2:V.y-ms/2}})});return(E,V)=>(m(),b("div",Uu,[i("div",Wu,[i("button",{class:oe({active:H.value==="all"}),onClick:V[0]||(V[0]=C=>H.value="all")},"all keys",2),(m(!0),b(_e,null,Ae($e.value,C=>(m(),b("button",{key:C,class:oe(["provide-graph__key-filter mono",{active:H.value===C}]),onClick:te=>H.value=C},f(C),11,Ku))),128)),i("button",{class:oe(["provide-graph__toolbar-spacer",{"danger-active":H.value==="shadow"}]),onClick:V[1]||(V[1]=C=>H.value=H.value==="shadow"?"all":"shadow")}," shadowed ",2),i("button",{class:oe({"danger-active":H.value==="warn"}),onClick:V[2]||(V[2]=C=>H.value=H.value==="warn"?"all":"warn")}," warnings ",2),Gt(i("input",{"onUpdate:modelValue":V[3]||(V[3]=C=>O.value=C),type:"search",class:"provide-graph__search",placeholder:"search component or key…"},null,512),[[as,O.value]])]),i("div",Ju,[i("div",Gu,[V[7]||(V[7]=Ua('<div class="provide-graph__legend" data-v-0b4a9fb5><span class="provide-graph__legend-dot provide-graph__legend-dot--provides" data-v-0b4a9fb5></span><span data-v-0b4a9fb5>provides</span><span class="provide-graph__legend-dot provide-graph__legend-dot--both" data-v-0b4a9fb5></span><span data-v-0b4a9fb5>both</span><span class="provide-graph__legend-dot provide-graph__legend-dot--injects" data-v-0b4a9fb5></span><span data-v-0b4a9fb5>injects</span><span class="provide-graph__legend-dot provide-graph__legend-dot--missing" data-v-0b4a9fb5></span><span data-v-0b4a9fb5>missing provider</span></div>',1)),he.value.length?(m(),b("div",qu,[i("div",{class:"provide-graph__canvas-wrap",style:we({width:`${Se.value}px`,height:`${T.value}px`})},[(m(),b("svg",{class:"provide-graph__edges-svg",width:Se.value,height:T.value,viewBox:`0 0 ${Se.value} ${T.value}`},[(m(!0),b(_e,null,Ae(L.value,C=>(m(),b("path",{key:C.id,d:`M ${C.x1},${C.y1} C ${C.x1},${(C.y1+C.y2)/2} ${C.x2},${(C.y1+C.y2)/2} ${C.x2},${C.y2}`,class:"provide-graph__edge",fill:"none"},null,8,Qu))),128))],8,Xu)),(m(!0),b(_e,null,Ae(he.value,C=>{var te;return m(),b("div",{key:C.data.id,class:oe(["provide-graph__node",{"provide-graph__node--selected":((te=w.value)==null?void 0:te.id)===C.data.id}]),style:we({left:`${C.x-vs/2}px`,top:`${C.y-ms/2}px`,width:`${vs}px`,"--node-color":o(C.data)}),onClick:se=>w.value=C.data},[i("span",{class:"provide-graph__node-dot",style:we({background:o(C.data)})},null,4),i("span",Zu,f(C.data.label),1),C.data.provides.length?(m(),b("span",ed," +"+f(C.data.provides.length),1)):q("",!0),C.data.injects.some(se=>!se.ok)?(m(),b("span",td,"!")):q("",!0)],14,Yu)}),128))],4)])):(m(),b("div",sd,f(Re(s)?"No components match the current provide/inject filter.":"Waiting for connection to the Nuxt app…"),1))]),w.value?(m(),b("div",{key:0,class:"tracker-resize-handle",onMousedown:V[4]||(V[4]=(...C)=>Re(r)&&Re(r)(...C))},null,32)):q("",!0),w.value?(m(),b("div",{key:1,class:"provide-graph__detail tracker-detail-panel",style:we({width:Re(n)+"px"})},[i("div",nd,[i("span",rd,f(w.value.label),1),w.value.componentFile&&w.value.componentFile!=="unknown"?(m(),b("button",{key:0,class:"jump-btn",title:"Open in editor",onClick:V[5]||(V[5]=C=>$(w.value.componentFile))}," open ↗ ")):q("",!0),i("button",{onClick:V[6]||(V[6]=C=>w.value=null)},"×")]),w.value.provides.length?(m(),b("div",od,[i("div",id,"provides ("+f(w.value.provides.length)+")",1),i("div",ld,[(m(!0),b(_e,null,Ae(w.value.provides,(C,te)=>(m(),b("div",{key:h(w.value.id,C.key,te),class:"provide-row"},[i("div",ad,[i("span",cd,f(C.key),1),i("span",{class:"mono text-sm muted row-value-preview",title:C.val},f(C.val),9,ud),i("span",{class:oe(["badge scope-badge",`scope-${C.scope}`])},f(C.scope),3),i("span",{class:oe(["badge",C.reactive?"badge-ok":"badge-gray"])},f(C.reactive?"reactive":"static"),3),C.complex?(m(),b("button",{key:0,class:"row-toggle mono",onClick:se=>ue(h(w.value.id,C.key,te))},f(B.value.has(h(w.value.id,C.key,te))?"hide":"view"),9,dd)):q("",!0)]),C.isShadowing?(m(),b("div",fd,"shadows a parent provide with the same key")):q("",!0),C.consumerNames.length?(m(),b("div",pd,[V[8]||(V[8]=i("span",{class:"muted text-sm"},"used by:",-1)),(m(!0),b(_e,null,Ae(C.consumerNames,se=>(m(),b("span",{key:se,class:"consumer-chip mono"},f(se),1))),128)),C.consumerNames.length?q("",!0):(m(),b("span",hd,"no consumers"))])):(m(),b("div",vd,"no consumers detected")),C.complex&&B.value.has(h(w.value.id,C.key,te))?(m(),b("pre",md,f(y(C.raw)),1)):q("",!0)]))),128))])])):q("",!0),w.value.injects.length?(m(),b("div",{key:1,class:"detail-section",style:we({marginTop:w.value.provides.length?"10px":"0"})},[i("div",_d,"injects ("+f(w.value.injects.length)+")",1),i("div",gd,[(m(!0),b(_e,null,Ae(w.value.injects,C=>(m(),b("div",{key:C.key,class:oe(["inject-row",{"inject-miss":!C.ok}])},[i("span",bd,f(C.key),1),C.ok?(m(),b("span",yd,"resolved")):(m(),b("span",kd,"no provider")),i("span",{class:oe(["mono text-sm row-from",C.fromName?"":"muted"]),title:C.from??"undefined"},f(C.fromName??C.from??"undefined"),11,$d)],2))),128))])],4)):q("",!0),!w.value.provides.length&&!w.value.injects.length?(m(),b("div",xd," no provide/inject in this component ")):q("",!0)],4)):(m(),b("div",wd,f(Re(s)?"Click a node to inspect.":"Waiting for connection to the Nuxt app…"),1))])]))}}),Td=yt(Cd,[["__scopeId","data-v-0b4a9fb5"]]),Ji={enabled:!1,heatmap:!1,traces:!1,composables:!1,fetch:!1,transitions:!1},Ye=re({...Ji});let wo=!1;function So(e){return e==null?null:e==="1"||e==="true"||e==="on"?!0:e==="0"||e==="false"||e==="off"?!1:null}function Md(){return{...Ji}}function Ed(e){if(typeof window>"u")return e;const t=new URLSearchParams(window.location.search),s=So(t.get("virt")),n={...e};s!=null&&(n.enabled=s);const r=[["heatmap","virtHeatmap"],["traces","virtTraces"],["composables","virtComposables"],["fetch","virtFetch"],["transitions","virtTransitions"]];for(const[o,l]of r){const a=So(t.get(l));a!=null&&(n[o]=a)}return n}function Id(){if(wo)return;wo=!0;const e=Md(),t=Ed(e);Ye.value=t}function Od(e){const t={...Ye.value,enabled:e};Ye.value=t}function Rd(e,t){const s={...Ye.value,[e]:t};Ye.value=s}function Ys(){Id();const e=A(()=>({enabled:Ye.value.enabled,heatmap:Ye.value.enabled&&Ye.value.heatmap,traces:Ye.value.enabled&&Ye.value.traces,composables:Ye.value.enabled&&Ye.value.composables,fetch:Ye.value.enabled&&Ye.value.fetch,transitions:Ye.value.enabled&&Ye.value.transitions}));return{flags:Ye,effective:e,setAllEnabled:Od,setScreenEnabled:Rd}}const Ad=6,Fd=1500;function bs(e,t,s,n,r=0){if(n.nodes>=Fd||(n.nodes++,e==null))return!1;const o=typeof e;if(o==="string"||o==="number"||o==="boolean"||o==="bigint")return String(e).toLowerCase().includes(t);if(o!=="object"||r>=Ad)return!1;const l=e;if(s.has(l))return!1;if(s.add(l),Array.isArray(e))return e.some(a=>bs(a,t,s,n,r+1));if(e instanceof Map){for(const[a,c]of e.entries())if(bs(a,t,s,n,r+1)||bs(c,t,s,n,r+1))return!0;return!1}if(e instanceof Set){for(const a of e.values())if(bs(a,t,s,n,r+1))return!0;return!1}try{const a=Object.entries(e);for(const[c,p]of a)if(c.toLowerCase().includes(t)||bs(p,t,s,n,r+1))return!0}catch{return!1}return!1}function Nd(e,t){const s=t.trim().toLowerCase();if(!s||e.name.toLowerCase().includes(s)||e.componentFile.toLowerCase().includes(s))return!0;const n=new WeakSet,r={nodes:0};for(const[o,l]of Object.entries(e.refs))if(o.toLowerCase().includes(s)||bs(l.value,s,n,r))return!0;return!1}const Ld={class:"composable-tracker tracker-view"},Pd={class:"composable-tracker__stats tracker-stats-row"},Dd={class:"stat-card"},Vd={class:"stat-val"},jd={class:"stat-card"},Hd={class:"stat-val stat-val--active"},zd={class:"stat-card"},Bd={class:"stat-val stat-val--error"},Ud={class:"stat-card"},Wd={class:"stat-val"},Kd={class:"composable-tracker__toolbar tracker-toolbar"},Jd=["title"],Gd=["onClick"],qd={class:"composable-tracker__card-header"},Xd={class:"composable-tracker__identity"},Qd={class:"composable-tracker__name mono"},Yd={class:"composable-tracker__file muted mono"},Zd={class:"composable-tracker__meta"},ef={key:0,class:"badge badge-warn"},tf={key:1,class:"badge badge-warn"},sf={key:2,class:"badge badge-err"},nf={key:3,class:"badge badge-ok"},rf={key:4,class:"badge badge-gray"},of={key:0,class:"composable-tracker__refs-preview"},lf=["title"],af={class:"composable-tracker__ref-chip-key"},cf={class:"composable-tracker__ref-chip-val"},uf={key:0,class:"composable-tracker__ref-chip-shared-dot",title:"global"},df={key:0,class:"muted text-sm"},ff={key:0,class:"composable-tracker__leak-banner"},pf={key:1,class:"composable-tracker__global-banner"},hf={key:2,class:"composable-tracker__compact-muted muted text-sm"},vf=["title","onClick"],mf={class:"composable-tracker__ref-row-actions"},_f=["title","onClick"],gf={key:1,class:"badge badge-amber text-xs"},bf=["onClick"],yf={class:"composable-tracker__section-label composable-tracker__section-label--spaced tracker-section-label"},kf={class:"composable-tracker__section-label-meta muted"},$f={class:"composable-tracker__history-list"},xf={class:"composable-tracker__history-time mono muted"},wf={class:"composable-tracker__history-key mono"},Sf={class:"composable-tracker__history-val mono"},Cf={key:0,class:"composable-tracker__compact-muted muted text-sm"},Tf={class:"composable-tracker__context-label muted text-sm"},Mf={class:"composable-tracker__lifecycle-row"},Ef={class:"composable-tracker__context-value mono text-sm"},If={class:"composable-tracker__lifecycle-row"},Of={class:"composable-tracker__context-value composable-tracker__context-value--muted mono text-sm muted"},Rf={class:"composable-tracker__lifecycle-row"},Af={class:"composable-tracker__context-value composable-tracker__context-value--row composable-tracker__context-value--muted mono text-sm muted"},Ff=["onClick"],Nf={class:"composable-tracker__lifecycle-row"},Lf={class:"composable-tracker__context-value composable-tracker__context-value--muted mono text-sm muted"},Pf={class:"composable-tracker__lifecycle-row"},Df={class:"composable-tracker__context-value mono text-sm"},Vf={class:"composable-tracker__lifecycle-row"},jf={class:"composable-tracker__context-value mono text-sm"},Hf={key:2,class:"composable-tracker__empty muted text-sm"},zf={key:0,class:"composable-tracker__lookup-panel"},Bf={class:"composable-tracker__lookup-header"},Uf={class:"mono text-sm"},Wf={class:"muted text-sm"},Kf={key:0,class:"composable-tracker__lookup-empty muted text-sm"},Jf={class:"mono text-sm"},Gf={class:"muted text-sm"},qf={class:"composable-tracker__lookup-route muted text-sm"},Xf={class:"composable-tracker__edit-dialog"},Qf={class:"composable-tracker__edit-dialog-header"},Yf={class:"mono"},Zf={key:0,class:"composable-tracker__edit-error text-sm"},ep={class:"composable-tracker__edit-actions"},tp=vt({__name:"ComposableTracker",setup(e){const{composables:t,connected:s,features:n,clearComposables:r}=us(),o=A(()=>{var W;return((W=n.value)==null?void 0:W.composableNavigationMode)==="session"?"session":"route"});function l(){const W=o.value==="route"?"session":"route";Vc(W)}function a(){r()}function c(W){if(W===null)return"null";if(W===void 0)return"undefined";if(typeof W=="string")return`"${W}"`;if(typeof W=="object")try{const j=JSON.stringify(W);return j.length>80?j.slice(0,80)+"…":j}catch{return String(W)}return String(W)}function p(W){if(W===null)return"null";if(W===void 0)return"undefined";if(typeof W=="string")return`"${W}"`;if(typeof W=="object")try{return JSON.stringify(W,null,2)}catch{return String(W)}return String(W)}function d(W){return W.split("/").pop()??W}function v(W){Mr(W)}const y=re("all"),h=re(""),x=re(null),$=re(null),{effective:R}=Ys(),{preset:J}=Qs({rowHeight:88,overscan:6}),H=A(()=>t.value),O=A(()=>({mounted:H.value.filter(W=>W.status==="mounted").length,leaks:H.value.filter(W=>W.leak).length})),w=A(()=>{const j=[...H.value].reverse().filter(u=>!(y.value==="leak"&&!u.leak||y.value==="mounted"&&u.status!=="mounted"||y.value==="unmounted"&&u.status!=="unmounted"||h.value.trim()&&!Nd(u,h.value))),K=[],Ie=[];for(const u of j)u.isLayoutComposable?K.push(u):Ie.push(u);return[...K,...Ie]}),B=A(()=>R.value.composables&&x.value===null),ue=A(()=>({count:w.value.length,getScrollElement:()=>$.value,estimateSize:()=>J.value.rowHeight,overscan:J.value.overscan})),$e=Cs(ue),be=A(()=>B.value?$e.value.getVirtualItems():[]),de=A(()=>!B.value||be.value.length===0?0:be.value[0].start),he=A(()=>{if(!B.value||be.value.length===0)return 0;const W=$e.value.getTotalSize(),j=be.value[be.value.length-1];return Math.max(0,W-j.end)}),Se=A(()=>B.value?be.value.map(W=>w.value[W.index]).filter(W=>!!W):w.value),T=A(()=>Se.value.map(W=>{const j=Object.entries(W.refs),K=j.map(([S,N])=>{var G;const D=te(N.value),F=D&&se(W.id,S),Z=!!((G=W.sharedKeys)!=null&&G.includes(S));return{key:S,ref:N,isLong:D,expanded:F,displayValue:D&&!F?c(N.value):p(N.value),typeClass:E(N.type),shared:Z}}),Ie=W.history??[],u=[],_=Math.max(Ie.length-20,0);for(let S=Ie.length-1;S>=_;S--){const N=Ie[S];u.push({id:`${W.id}-${N.key}-${N.t}-${S}`,timeLabel:`+${(N.t/1e3).toFixed(2)}s`,key:N.key,value:c(N.value)})}return{entry:W,refCount:j.length,previewRefs:K.slice(0,3),detailRefs:K,historyRows:u,historyHiddenCount:Math.max(0,Ie.length-20),lifecycle:L(W)}}));function L(W){return[{label:"onMounted",ok:W.lifecycle.hasOnMounted,status:W.lifecycle.hasOnMounted?"registered":"not used"},{label:"onUnmounted",ok:W.lifecycle.hasOnUnmounted,status:W.lifecycle.hasOnUnmounted?"registered":"missing"},{label:"watchers cleaned",ok:W.lifecycle.watchersCleaned,status:W.lifecycle.watchersCleaned?"all stopped":"NOT stopped"},{label:"intervals cleared",ok:W.lifecycle.intervalsCleaned,status:W.lifecycle.intervalsCleaned?"all cleared":"NOT cleared"}]}function E(W){return W==="computed"?"badge-info":W==="reactive"?"badge-purple":"badge-gray"}const V=re(new Set);function C(W,j){return`${W}:${j}`}function te(W){if(W==null||typeof W!="object")return!1;try{return JSON.stringify(W).length>60}catch{return!1}}function se(W,j){return V.value.has(C(W,j))}function Ce(W,j){const K=C(W,j),Ie=new Set(V.value);Ie.has(K)?Ie.delete(K):Ie.add(K),V.value=Ie}const U=re(null),ye=A(()=>{if(!U.value)return[];const W=U.value;return W.identityGroup?H.value.filter(j=>{var K;return j.name===W.composableName&&((K=j.sharedKeyGroups)==null?void 0:K[W.key])===W.identityGroup&&W.key in j.refs}):H.value.filter(j=>W.key in j.refs)}),Te=A(()=>U.value?U.value.identityGroup?`${U.value.key} (shared identity)`:U.value.key:"");function P(W,j){var u,_,S,N;const K=(u=W.sharedKeyGroups)==null?void 0:u[j],Ie={key:j,composableName:W.name,identityGroup:K};if(((_=U.value)==null?void 0:_.key)===Ie.key&&((S=U.value)==null?void 0:S.composableName)===Ie.composableName&&((N=U.value)==null?void 0:N.identityGroup)===Ie.identityGroup){U.value=null;return}U.value=Ie}const Y=re(null),le=re("");function He(W,j,K){le.value="",Y.value={id:W,key:j,rawValue:JSON.stringify(K,null,2)}}function nt(){if(!Y.value)return;let W;try{W=JSON.parse(Y.value.rawValue),le.value=""}catch(j){le.value=`Invalid JSON: ${j.message}`;return}jc(Y.value.id,Y.value.key,W),Y.value=null}return(W,j)=>(m(),b("div",Ld,[i("div",Pd,[i("div",Dd,[j[11]||(j[11]=i("div",{class:"stat-label"},"total",-1)),i("div",Vd,f(H.value.length),1)]),i("div",jd,[j[12]||(j[12]=i("div",{class:"stat-label"},"mounted",-1)),i("div",Hd,f(O.value.mounted),1)]),i("div",zd,[j[13]||(j[13]=i("div",{class:"stat-label"},"leaks",-1)),i("div",Bd,f(O.value.leaks),1)]),i("div",Ud,[j[14]||(j[14]=i("div",{class:"stat-label"},"instances",-1)),i("div",Wd,f(H.value.length),1)])]),i("div",Kd,[i("button",{class:oe({active:y.value==="all"}),onClick:j[0]||(j[0]=K=>y.value="all")},"all",2),i("button",{class:oe({active:y.value==="mounted"}),onClick:j[1]||(j[1]=K=>y.value="mounted")},"mounted",2),i("button",{class:oe({"danger-active":y.value==="leak"}),onClick:j[2]||(j[2]=K=>y.value="leak")},"leaks only",2),i("button",{class:oe({active:y.value==="unmounted"}),onClick:j[3]||(j[3]=K=>y.value="unmounted")},"unmounted",2),i("button",{class:"composable-tracker__mode-btn",title:`switch to ${o.value==="route"?"session":"route"} mode`,onClick:l}," mode: "+f(o.value),9,Jd),j[15]||(j[15]=i("span",{class:"tracker-toolbar__spacer"},null,-1)),Gt(i("input",{"onUpdate:modelValue":j[4]||(j[4]=K=>h.value=K),class:"composable-tracker__search",type:"search",placeholder:"search name, file, or ref…"},null,512),[[as,h.value]]),o.value==="session"?(m(),b("button",{key:0,class:"composable-tracker__clear-btn",title:"Clear session history",onClick:a}," clear session ")):q("",!0)]),i("div",{ref_key:"listScrollRef",ref:$,class:"composable-tracker__list"},[B.value&&de.value>0?(m(),b("div",{key:0,class:"composable-tracker__virtual-spacer",style:we({height:`${de.value}px`}),"aria-hidden":"true"},null,4)):q("",!0),(m(!0),b(_e,null,Ae(T.value,K=>{var Ie;return m(),b("div",{key:K.entry.id,class:oe(["composable-tracker__card",{"composable-tracker__card--leak":K.entry.leak,"composable-tracker__card--expanded":x.value===K.entry.id}]),onClick:u=>x.value=x.value===K.entry.id?null:K.entry.id},[i("div",qd,[i("div",Xd,[i("span",Qd,f(K.entry.name),1),i("span",Yd,f(d(K.entry.componentFile)),1)]),i("div",Zd,[K.entry.watcherCount>0&&!K.entry.leak?(m(),b("span",ef,f(K.entry.watcherCount)+"w ",1)):q("",!0),K.entry.intervalCount>0&&!K.entry.leak?(m(),b("span",tf,f(K.entry.intervalCount)+"t ",1)):q("",!0),K.entry.leak?(m(),b("span",sf,"leak")):K.entry.status==="mounted"?(m(),b("span",nf,"mounted")):(m(),b("span",rf,"unmounted"))])]),K.refCount?(m(),b("div",of,[(m(!0),b(_e,null,Ae(K.previewRefs,u=>(m(),b("span",{key:u.key,class:oe(["composable-tracker__ref-chip",{"composable-tracker__ref-chip--reactive":u.ref.type==="reactive","composable-tracker__ref-chip--computed":u.ref.type==="computed","composable-tracker__ref-chip--shared":u.shared}]),title:u.shared?"shared global state":""},[i("span",af,f(u.key),1),i("span",cf,f(c(u.ref.value)),1),u.shared?(m(),b("span",uf)):q("",!0)],10,lf))),128)),K.refCount>3?(m(),b("span",df,"+"+f(K.refCount-3)+" more",1)):q("",!0)])):q("",!0),x.value===K.entry.id?(m(),b("div",{key:1,class:"composable-tracker__detail",onClick:j[5]||(j[5]=Tt(()=>{},["stop"]))},[K.entry.leak?(m(),b("div",ff,f(K.entry.leakReason),1)):q("",!0),(Ie=K.entry.sharedKeys)!=null&&Ie.length?(m(),b("div",pf,[j[17]||(j[17]=i("span",{class:"composable-tracker__global-dot"},null,-1)),i("span",null,[j[16]||(j[16]=i("strong",null,"global state",-1)),We(" — "+f(K.entry.sharedKeys.join(", "))+" "+f(K.entry.sharedKeys.length===1?"is":"are")+" shared across all instances of "+f(K.entry.name),1)])])):q("",!0),j[25]||(j[25]=i("div",{class:"composable-tracker__section-label tracker-section-label"},"reactive state",-1)),K.refCount?q("",!0):(m(),b("div",hf,"no tracked state returned")),(m(!0),b(_e,null,Ae(K.detailRefs,u=>{var _;return m(),b("div",{key:u.key,class:"composable-tracker__ref-row"},[i("span",{class:"composable-tracker__ref-key composable-tracker__ref-key--clickable mono text-sm",title:(_=K.entry.sharedKeyGroups)!=null&&_[u.key]?`click to see instances sharing this exact '${u.key}' state`:`click to see all instances exposing '${u.key}'`,onClick:Tt(S=>P(K.entry,u.key),["stop"])},f(u.key),9,vf),i("span",{class:oe(["composable-tracker__ref-val mono text-sm",{"composable-tracker__ref-val--full":u.isLong&&u.expanded,"composable-tracker__ref-val--collapsed":u.isLong&&!u.expanded}])},f(u.displayValue),3),i("div",mf,[u.isLong?(m(),b("button",{key:0,class:"composable-tracker__expand-btn",title:u.expanded?"Collapse":"Expand",onClick:Tt(S=>Ce(K.entry.id,u.key),["stop"])},f(u.expanded?"▲":"▼"),9,_f)):q("",!0),i("span",{class:oe(["badge text-xs",u.typeClass])},f(u.ref.type),3),u.shared?(m(),b("span",gf,"global")):q("",!0),u.ref.type==="ref"?(m(),b("button",{key:2,class:"composable-tracker__edit-btn",title:"Edit value",onClick:Tt(S=>He(K.entry.id,u.key,u.ref.value),["stop"])}," edit ",8,bf)):q("",!0)])])}),128)),K.historyRows.length?(m(),b(_e,{key:3},[i("div",yf,[j[18]||(j[18]=We(" change history ",-1)),i("span",kf,"("+f(K.entry.history.length)+" events)",1)]),i("div",$f,[(m(!0),b(_e,null,Ae(K.historyRows,u=>(m(),b("div",{key:u.id,class:"composable-tracker__history-row"},[i("span",xf,f(u.timeLabel),1),i("span",wf,f(u.key),1),i("span",Sf,f(u.value),1)]))),128)),K.historyHiddenCount>0?(m(),b("div",Cf," … "+f(K.historyHiddenCount)+" earlier events ",1)):q("",!0)])],64)):q("",!0),j[26]||(j[26]=i("div",{class:"composable-tracker__section-label composable-tracker__section-label--spaced tracker-section-label"}," lifecycle ",-1)),(m(!0),b(_e,null,Ae(K.lifecycle,u=>(m(),b("div",{key:u.label,class:"composable-tracker__lifecycle-row"},[i("span",{class:oe(["composable-tracker__lifecycle-dot",u.ok?"composable-tracker__lifecycle-dot--ok":"composable-tracker__lifecycle-dot--error"])},null,2),i("span",Tf,f(u.label),1),i("span",{class:oe(["composable-tracker__lifecycle-status text-sm",u.ok?"composable-tracker__lifecycle-status--ok":"composable-tracker__lifecycle-status--error"])},f(u.status),3)]))),128)),j[27]||(j[27]=i("div",{class:"composable-tracker__section-label composable-tracker__section-label--spaced tracker-section-label"}," context ",-1)),i("div",Mf,[j[19]||(j[19]=i("span",{class:"composable-tracker__context-label muted text-sm"},"component",-1)),i("span",Ef,f(d(K.entry.componentFile)),1)]),i("div",If,[j[20]||(j[20]=i("span",{class:"composable-tracker__context-label muted text-sm"},"uid",-1)),i("span",Of,f(K.entry.componentUid),1)]),i("div",Rf,[j[21]||(j[21]=i("span",{class:"composable-tracker__context-label muted text-sm"},"defined in",-1)),i("span",Af,[We(f(K.entry.file)+":"+f(K.entry.line)+" ",1),i("button",{class:"composable-tracker__jump-btn",title:"Open in editor",onClick:Tt(u=>v(K.entry.file),["stop"])}," open ↗ ",8,Ff)])]),i("div",Nf,[j[22]||(j[22]=i("span",{class:"composable-tracker__context-label muted text-sm"},"route",-1)),i("span",Lf,f(K.entry.route),1)]),i("div",Pf,[j[23]||(j[23]=i("span",{class:"composable-tracker__context-label muted text-sm"},"watchers",-1)),i("span",Df,f(K.entry.watcherCount),1)]),i("div",Vf,[j[24]||(j[24]=i("span",{class:"composable-tracker__context-label muted text-sm"},"intervals",-1)),i("span",jf,f(K.entry.intervalCount),1)])])):q("",!0)],10,Gd)}),128)),B.value&&he.value>0?(m(),b("div",{key:1,class:"composable-tracker__virtual-spacer",style:we({height:`${he.value}px`}),"aria-hidden":"true"},null,4)):q("",!0),w.value.length?q("",!0):(m(),b("div",Hf,f(Re(s)?"No composables recorded yet.":"Waiting for connection to the Nuxt app…"),1))],512),Be(gn,{name:"slide"},{default:zs(()=>[U.value?(m(),b("div",zf,[i("div",Bf,[i("span",Uf,f(Te.value),1),i("span",Wf,"— "+f(ye.value.length)+" instance"+f(ye.value.length!==1?"s":""),1),i("button",{class:"composable-tracker__clear-btn composable-tracker__lookup-close",onClick:j[6]||(j[6]=K=>U.value=null)},"✕")]),ye.value.length?q("",!0):(m(),b("div",Kf," No instances matched this lookup. ")),(m(!0),b(_e,null,Ae(ye.value,K=>(m(),b("div",{key:K.id,class:"composable-tracker__lookup-row"},[i("span",Jf,f(K.name),1),i("span",Gf,f(d(K.componentFile)),1),i("span",qf,f(K.route),1)]))),128))])):q("",!0)]),_:1}),Be(gn,{name:"fade"},{default:zs(()=>[Y.value?(m(),b("div",{key:0,class:"composable-tracker__edit-overlay",onClick:j[10]||(j[10]=Tt(K=>Y.value=null,["self"]))},[i("div",Xf,[i("div",Qf,[j[28]||(j[28]=We(" edit ",-1)),i("span",Yf,f(Y.value.key),1),i("button",{class:"composable-tracker__clear-btn composable-tracker__dialog-close",onClick:j[7]||(j[7]=K=>Y.value=null)},"✕")]),j[29]||(j[29]=i("p",{class:"composable-tracker__edit-help muted text-sm"},[We(" Value applied immediately to the live ref. Only "),i("span",{class:"mono"},"ref"),We(" values are writable. ")],-1)),Gt(i("textarea",{"onUpdate:modelValue":j[8]||(j[8]=K=>Y.value.rawValue=K),class:"composable-tracker__edit-textarea",rows:"6",spellcheck:"false"},null,512),[[as,Y.value.rawValue]]),le.value?(m(),b("div",Zf,f(le.value),1)):q("",!0),i("div",ep,[i("button",{onClick:nt},"apply"),i("button",{class:"composable-tracker__clear-btn",onClick:j[9]||(j[9]=K=>Y.value=null)},"cancel")])])])):q("",!0)]),_:1})]))}}),sp=yt(tp,[["__scopeId","data-v-66c39308"]]);function Gi(e,t){const s=JSON.stringify(t,null,2),n=new Blob([s],{type:"application/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=e,o.click(),URL.revokeObjectURL(r)}function qi(){return new Promise((e,t)=>{const s=document.createElement("input");s.type="file",s.accept=".json,application/json",s.addEventListener("change",()=>{var o;const n=(o=s.files)==null?void 0:o[0];if(!n){t(new Error("No file selected"));return}const r=new FileReader;r.addEventListener("load",()=>{try{e(JSON.parse(r.result))}catch{t(new Error("Invalid JSON file"))}}),r.addEventListener("error",()=>t(new Error("Failed to read file"))),r.readAsText(n)}),window.addEventListener("focus",()=>{setTimeout(()=>{var n;(n=s.files)!=null&&n.length||t(new Error("cancelled"))},300)},{once:!0}),s.click()})}const np={class:"render-heatmap tracker-view"},rp={class:"render-heatmap__controls tracker-toolbar"},op={class:"render-heatmap__mode-group"},ip={class:"render-heatmap__threshold-group"},lp=["min","max","step"],ap={class:"mono text-sm"},cp=["value"],up={class:"render-heatmap__stats tracker-stats-row"},dp={class:"stat-card"},fp={class:"stat-val"},pp={class:"stat-card"},hp={class:"stat-val"},vp={class:"stat-card"},mp={class:"stat-val stat-val--error"},_p={class:"stat-card"},gp={class:"stat-val"},bp={class:"render-heatmap__inspector"},yp={class:"render-heatmap__roots-panel"},kp=["onClick"],$p={class:"render-heatmap__root-copy"},xp={class:"render-heatmap__root-label mono"},wp={class:"render-heatmap__root-sub muted mono"},Sp={class:"render-heatmap__root-meta mono"},Cp={key:0,class:"render-heatmap__detail-empty"},Tp={class:"render-heatmap__tree-panel"},Mp={class:"render-heatmap__tree-toolbar"},Ep=["value"],Ip={class:"render-heatmap__tree-canvas tree-canvas"},Op=["onClick"],Rp=["disabled","onClick"],Ap={class:"tree-copy"},Fp=["title"],Np={key:0,class:"tree-badges"},Lp=["title"],Pp={class:"tree-metrics mono"},Dp={key:0,class:"tree-persistent-pill",title:"Layout / persistent component — survives navigation"},Vp={key:1,class:"tree-hydration-pill",title:"First mount was SSR hydration — not a user-triggered render"},jp={class:"tree-metric-pill"},Hp=["title","onClick"],zp={key:0,class:"render-heatmap__detail-empty"},Bp={class:"render-heatmap__detail-header"},Up={class:"render-heatmap__detail-title mono bold"},Wp={class:"render-heatmap__detail-pill-row"},Kp={class:"render-heatmap__detail-pill mono"},Jp={class:"render-heatmap__detail-pill render-heatmap__detail-pill--muted mono muted"},Gp={key:0,class:"render-heatmap__detail-pill mono"},qp={key:1,class:"render-heatmap__detail-pill render-heatmap__detail-pill--persistent mono"},Xp={key:2,class:"render-heatmap__detail-pill render-heatmap__detail-pill--hydrated mono"},Qp={class:"render-heatmap__detail-pill mono"},Yp={class:"render-heatmap__meta-grid"},Zp={class:"mono text-sm"},eh={class:"mono text-sm"},th={class:"render-heatmap__file-row mono text-sm muted"},sh={class:"mono text-sm"},nh={class:"mono text-sm"},rh={class:"mono text-sm"},oh={class:"render-heatmap__meta-grid"},ih={class:"mono text-sm"},lh={class:"mono text-sm"},ah={class:"mono text-sm"},ch={class:"mono text-sm"},uh={class:"mono text-sm"},dh={class:"mono text-sm"},fh={class:"mono text-sm"},ph={key:0,class:"muted text-sm"},hh={class:"tracker-section-label render-heatmap__section-label render-heatmap__section-label--timeline"},vh={class:"render-heatmap__section-label-meta muted"},mh={key:1,class:"muted text-sm"},_h={key:2,class:"render-heatmap__timeline-list"},gh={class:"render-heatmap__timeline-time mono muted"},bh={class:"render-heatmap__timeline-dur mono"},yh={key:0,class:"render-heatmap__timeline-trigger mono muted"},kh={class:"render-heatmap__timeline-route mono muted"},$h={key:0,class:"render-heatmap__compact-muted muted text-sm"},xh={key:1,class:"render-heatmap__detail-empty"},wh=vt({__name:"RenderHeatmap",setup(e){function t(k){var ae,ie;const g=[],I=(ae=k.element)==null?void 0:ae.toLowerCase();if(k.element&&k.element!==k.label&&!["div","span","p"].includes(I??"")&&g.push(k.element),k.file!=="unknown"){const fe=((ie=k.file.split("/").pop())==null?void 0:ie.replace(/\.vue$/i,""))??k.file;fe!==k.label&&!g.includes(fe)&&g.push(fe)}return g}const s=vt({name:"TreeNode",props:{node:Object,mode:String,threshold:Number,selected:String,expandedIds:Object},emits:["select","toggle"],setup(k,{emit:g}){function I(fe){return k.mode==="count"?fe.rerenders+fe.mountCount:fe.avgMs}function ae(fe){return I(fe)>=k.threshold}function ie(fe){return{selected:k.selected===fe.id,hot:ae(fe)}}return()=>{var Ir;const fe=k.node,ze=((Ir=k.expandedIds)==null?void 0:Ir.has(fe.id))??!1,Rt=fe.children.length>0,nl=k.mode==="count"?`${fe.rerenders+fe.mountCount}`:`${fe.avgMs.toFixed(1)}ms`,rl=k.mode==="count"?"renders":"avg",Er=t(fe);return Ze("div",{class:"tree-node"},[Ze("div",{class:["tree-row",ie(fe)],style:{"--tree-depth":String(fe.depth)},onClick:kt=>{kt.stopPropagation(),g("select",fe)}},[Ze("span",{class:"tree-rail","aria-hidden":"true"}),Ze("button",{class:["tree-toggle",{empty:!Rt}],disabled:!Rt,onClick:kt=>{kt.stopPropagation(),Rt&&g("toggle",fe.id)}},Rt?ze?"⌄":"›":""),Ze("div",{class:"tree-copy"},[Ze("span",{class:"tree-name mono",title:fe.label},fe.label),Er.length?Ze("div",{class:"tree-badges"},Er.slice(0,1).map(kt=>Ze("span",{class:"tree-badge mono",title:kt},kt))):null]),Ze("div",{class:"tree-metrics mono"},[fe.isPersistent?Ze("span",{class:"tree-persistent-pill",title:"Layout / persistent component — survives navigation"},"persistent"):null,fe.isHydrationMount?Ze("span",{class:"tree-hydration-pill",title:"First mount was SSR hydration — not a user-triggered render"},"hydrated"):null,Ze("span",{class:"tree-metric-pill"},`${nl} ${rl}`),fe.file&&fe.file!=="unknown"?Ze("button",{class:"tree-jump-btn",title:`Open ${fe.file} in editor`,onClick:kt=>{kt.stopPropagation(),Nn(fe.file)}},"↗"):null])]),ze&&Rt?Ze("div",{class:"tree-children"},fe.children.map(kt=>Ze(s,{node:kt,mode:k.mode,threshold:k.threshold,selected:k.selected,expandedIds:k.expandedIds,onSelect:Ln=>g("select",Ln),onToggle:Ln=>g("toggle",Ln)}))):null])}}}),{renders:n,connected:r}=us(),{paneWidth:o,onHandleMouseDown:l}=Fn(280,"observatory:heatmap:detailWidth"),a=re("count"),c=re(""),p=3,d=1600,v=re(Number(p)),y=re(Number(d)),h=A({get:()=>a.value==="count"?v.value:y.value,set:k=>{a.value==="count"?v.value=k:y.value=k}}),x=re(!1),$=re(!1),R=re(!1),J=re(""),H=re(null),O=re(null),w=re(new Set),B=re([]),ue=re(!1),$e=re(null),{effective:be}=Ys(),{preset:de}=Qs({rowHeight:34,overscan:6});function he(k){var I;if(k.name&&k.name!=="unknown"&&!/^Component#\d+$/.test(k.name))return k.name;if(k.element)return k.element;const g=(I=k.file.split("/").pop())==null?void 0:I.replace(/\.vue$/i,"");return g&&g!=="unknown"?g:k.name&&k.name!=="unknown"?k.name:`Component#${k.uid}`}function Se(k){return`${k.type}: ${k.key}`}function T(k){const g=new Map;for(const ie of k)g.set(String(ie.uid),{id:String(ie.uid),label:he(ie),file:ie.file,element:ie.element,depth:0,path:[],rerenders:ie.rerenders??0,mountCount:ie.mountCount??1,avgMs:ie.avgMs,triggers:ie.triggers.map(Se),timeline:ie.timeline??[],children:[],parentId:ie.parentUid!==void 0?String(ie.parentUid):void 0,isPersistent:!!ie.isPersistent,isHydrationMount:!!ie.isHydrationMount,route:ie.route??"/"});const I=[];for(const ie of k){const fe=g.get(String(ie.uid));if(!fe)continue;const ze=ie.parentUid!==void 0?g.get(String(ie.parentUid)):void 0;ze?(fe.parentLabel=ze.label,ze.children.push(fe)):I.push(fe)}function ae(ie,fe=[],ze=0){ie.depth=ze,ie.path=[...fe,ie.label],ie.children.forEach(Rt=>ae(Rt,ie.path,ze+1))}return I.forEach(ie=>ae(ie)),I}function L(k){const g=[];function I(ae){g.push(ae),ae.children.forEach(I)}return k.forEach(I),g}function E(k){const g=new Map;for(const I of k){const ae=[{node:I,visited:!1}];for(;ae.length;){const ie=ae.pop();if(!ie.visited){ae.push({node:ie.node,visited:!0});for(let ze=ie.node.children.length-1;ze>=0;ze--)ae.push({node:ie.node.children[ze],visited:!1});continue}let fe=1;for(const ze of ie.node.children)fe+=g.get(ze.id)??1;g.set(ie.node.id,fe)}}return g}function V(k){const g=new Map;for(const I of k){const ae=[I];for(;ae.length;){const ie=ae.pop();g.set(ie.id,I.id);for(let fe=ie.children.length-1;fe>=0;fe--)ae.push(ie.children[fe])}}return g}function C(k){if(U(k))return k;for(const g of k.children){const I=C(g);if(I)return I}return null}function te(k){if(!k)return new Set;const g=new Set;function I(ae){ae.children.length>0&&(g.add(ae.id),ae.children.forEach(I))}return I(k),g}function se(k,g){const I=te(k);if(!k||!g)return I;function ae(ie){const fe=ie.children.some(Rt=>ae(Rt)),ze=ye(ie,g);return fe&&I.add(ie.id),ze||fe}return ae(k),I}function Ce(k){return a.value==="count"?k.rerenders+k.mountCount:k.avgMs}function U(k){return Ce(k)>=h.value}function ye(k,g){if(!g)return!0;const I=g.toLowerCase();return k.label.toLowerCase().includes(I)||k.file.toLowerCase().includes(I)||k.path.some(ae=>ae.toLowerCase().includes(I))||k.triggers.some(ae=>ae.toLowerCase().includes(I))}function Te(k,g){return g?ye(k,g)||k.children.some(I=>Te(I,g)):!0}function P(k){return U(k)||k.children.some(g=>P(g))}function Y(k){return!c.value||k.route===c.value?!0:k.timeline.some(g=>g.route===c.value)}function le(k){return Y(k)||k.children.some(g=>le(g))}function He(k,g){const I=Te(k,g),ae=!x.value||P(k),ie=!c.value||le(k);return I&&ae&&ie}function nt(k,g){const I=k.children.map(ze=>nt(ze,g)).filter(ze=>ze!==null),ae=!g||ye(k,g)||I.length>0,ie=!x.value||U(k)||I.length>0,fe=!c.value||Y(k)||I.length>0;return!ae||!ie||!fe?null:{...k,children:I}}const W=A(()=>$.value?B.value:n.value),j=A(()=>T(W.value)),K=A(()=>new Map(j.value.map(k=>[k.id,k]))),Ie=A(()=>L(j.value)),u=A(()=>new Map(Ie.value.map(k=>[k.id,k]))),_=A(()=>new Set(Ie.value.map(k=>k.id))),S=A(()=>E(j.value)),N=A(()=>V(j.value));function D(k,g){const I=[];let ae=u.value.get(k);for(;ae&&(I.push(ae.id),!(g&&ae.id===g||!ae.parentId));)ae=u.value.get(ae.parentId);return I.reverse(),g&&I[0]!==g?[]:I}const F=A(()=>{const k=J.value.trim();return j.value.filter(g=>He(g,k))}),Z=A(()=>new Map(F.value.map(k=>[k.id,k]))),G=A(()=>O.value?Z.value.get(O.value)??K.value.get(O.value)??null:F.value[0]??j.value[0]??null),Q=A(()=>{const k=J.value.trim();return G.value?nt(G.value,k):null}),z=A(()=>Q.value?[Q.value]:[]),pe=A(()=>be.value.heatmap);function ne(k,g){if(!k)return[];const I=[];function ae(ie){I.push(ie),g.has(ie.id)&&ie.children.forEach(ae)}return ae(k),I}const ce=A(()=>ne(Q.value,w.value)),me=A(()=>({count:ce.value.length,getScrollElement:()=>$e.value,estimateSize:()=>de.value.rowHeight,overscan:de.value.overscan})),xe=Cs(me),Me=A(()=>pe.value?xe.value.getVirtualItems():[]),Oe=A(()=>!pe.value||Me.value.length===0?0:Me.value[0].start),Ke=A(()=>{if(!pe.value||Me.value.length===0)return 0;const k=xe.value.getTotalSize(),g=Me.value[Me.value.length-1];return Math.max(0,k-g.end)}),Ge=A(()=>pe.value?Me.value.map(k=>ce.value[k.index]).filter(k=>!!k):ce.value),Xe=A(()=>{const k=a.value==="count"?"renders":"avg";return Ge.value.map(g=>{const I=t(g);return{node:g,primaryBadge:I[0]??null,metricValue:a.value==="count"?`${g.rerenders+g.mountCount}`:`${g.avgMs.toFixed(1)}ms`,metricLabel:k,hot:U(g)}})}),qe=A(()=>F.value.map((k,g)=>({id:k.id,label:`App ${g+1}`,meta:`${S.value.get(k.id)??1} nodes`,root:k}))),Ot=A(()=>{const k=new Set;for(const g of Ie.value){g.route&&k.add(g.route);for(const I of g.timeline)I.route&&k.add(I.route)}return[...k].sort()}),ge=A(()=>H.value?u.value.get(H.value)??null:null),Qe=A(()=>{var ae;const k=((ae=ge.value)==null?void 0:ae.timeline)??[];if(!k.length)return[];const g=[],I=Math.max(k.length-30,0);for(let ie=k.length-1;ie>=I;ie--){const fe=k[ie];g.push({key:`${fe.kind}-${fe.t}-${ie}`,event:fe})}return g}),X=A(()=>Ie.value.reduce((k,g)=>k+g.rerenders+g.mountCount,0)),M=A(()=>Ie.value.filter(k=>U(k)).length),Ee=A(()=>{const k=Ie.value.filter(g=>g.avgMs>0);return k.length?(k.reduce((g,I)=>g+I.avgMs,0)/k.length).toFixed(1):"0.0"});ht(j,k=>{if(!k.length){O.value=null,H.value=null,w.value=new Set,ue.value=!1;return}const g=new Set(k.map(ae=>ae.id));(!O.value||!g.has(O.value))&&(O.value=k[0].id),H.value&&!_.value.has(H.value)&&(H.value=null);const I=new Set([...w.value].filter(ae=>_.value.has(ae)));if(!ue.value){w.value=te(G.value),ue.value=!0;return}!J.value.trim()&&H.value&&G.value&&D(H.value,G.value.id).forEach(ie=>I.add(ie)),w.value=I},{immediate:!0}),ht(J,k=>{if(!G.value)return;const g=k.trim();if(g){w.value=se(G.value,g);return}if(H.value){const I=D(H.value,G.value.id);w.value=I.length?new Set(I):te(G.value);return}w.value=te(G.value)}),ht([x,h,a,F],()=>{if(!x.value)return;const k=F.value[0]??null;if(!k){H.value=null;return}const g=C(k);if(!g){H.value=null;return}O.value=k.id,H.value!==g.id&&(H.value=g.id),w.value=new Set(D(g.id,k.id))});function ee(k){H.value=k.id;const g=N.value.get(k.id),I=g?K.value.get(g):null;I&&(O.value=I.id,w.value=new Set(D(k.id,I.id)))}function De(k){const g=new Set(w.value);g.has(k)?g.delete(k):g.add(k),w.value=g}function at(k){O.value=k.id,w.value=te(k),ue.value=!0}function Ut(k){const g=k.target;J.value=(g==null?void 0:g.value)??""}function ds(){if($.value){$.value=!1,R.value=!1,B.value=[];return}B.value=JSON.parse(JSON.stringify(n.value)),$.value=!0}function Qi(){Gi(`observatory-renders-${Date.now()}.json`,{type:"observatory-renders",version:"1",exportedAt:Date.now(),count:W.value.length,data:W.value})}async function Yi(){var I,ae,ie;let k;try{k=await qi()}catch(fe){fe instanceof Error&&fe.message!=="cancelled"&&alert(`Import failed: ${fe.message}`);return}const g=k;if((g==null?void 0:g.type)!=="observatory-renders"||(g==null?void 0:g.version)!=="1"||!Array.isArray(g==null?void 0:g.data)||g.data.length>0&&(((I=g.data[0])==null?void 0:I.uid)===void 0||!((ae=g.data[0])!=null&&ae.name)||!((ie=g.data[0])!=null&&ie.file))){alert("Invalid observatory renders file.");return}B.value=g.data,$.value=!0,R.value=!0}function Zi(k){var g;return((g=k.split("/").pop())==null?void 0:g.replace(/\.vue$/i,""))??k}function Nn(k){Mr(k)}function el(k){return k.path.join(" / ")}function tl(k){return k<1?"<1ms":`${k.toFixed(1)}ms`}function sl(k){return`+${(k/1e3).toFixed(2)}s`}return(k,g)=>(m(),b("div",np,[i("div",rp,[i("div",op,[i("button",{class:oe({active:a.value==="count"}),onClick:g[0]||(g[0]=I=>a.value="count")},"render count",2),i("button",{class:oe({active:a.value==="time"}),onClick:g[1]||(g[1]=I=>a.value="time")},"render time",2)]),i("div",ip,[g[8]||(g[8]=i("span",{class:"muted text-sm"},"threshold",-1)),Gt(i("input",{"onUpdate:modelValue":g[2]||(g[2]=I=>h.value=I),type:"range",min:a.value==="count"?2:4,max:a.value==="count"?20:100,step:a.value==="count"?1:4,class:"render-heatmap__threshold-range"},null,8,lp),[[as,h.value,void 0,{number:!0}]]),i("span",ap,f(h.value)+f(a.value==="count"?"+ renders":"ms+"),1)]),i("button",{class:oe({active:x.value}),onClick:g[3]||(g[3]=I=>x.value=!x.value)},"hot only",2),Gt(i("select",{"onUpdate:modelValue":g[4]||(g[4]=I=>c.value=I),class:"route-select mono text-sm",title:"Filter by route"},[g[9]||(g[9]=i("option",{value:""},"all routes",-1)),(m(!0),b(_e,null,Ae(Ot.value,I=>(m(),b("option",{key:I,value:I},f(I),9,cp))),128))],512),[[Tc,c.value]]),i("button",{class:oe([{active:$.value},"render-heatmap__freeze tracker-toolbar__spacer"]),onClick:ds},f($.value&&R.value?"unfreeze (imported)":$.value?"unfreeze":"freeze snapshot"),3),i("button",{class:"render-heatmap__action-btn",title:"Export render data as JSON",onClick:Qi},"↓ export"),i("button",{class:"render-heatmap__action-btn",title:"Import render data from JSON file",onClick:Yi},"↑ import")]),i("div",up,[i("div",dp,[g[10]||(g[10]=i("div",{class:"stat-label"},"components",-1)),i("div",fp,f(Ie.value.length),1)]),i("div",pp,[g[11]||(g[11]=i("div",{class:"stat-label"},"total renders",-1)),i("div",hp,f(X.value),1)]),i("div",vp,[g[12]||(g[12]=i("div",{class:"stat-label"},"hot",-1)),i("div",mp,f(M.value),1)]),i("div",_p,[g[13]||(g[13]=i("div",{class:"stat-label"},"avg time",-1)),i("div",gp,f(Ee.value)+"ms",1)])]),i("div",bp,[i("aside",yp,[g[14]||(g[14]=i("div",{class:"render-heatmap__panel-title tracker-section-label"},"apps",-1)),(m(!0),b(_e,null,Ae(qe.value,I=>(m(),b("button",{key:I.id,class:oe(["render-heatmap__root-item",{active:O.value===I.id}]),onClick:ae=>at(I.root)},[i("div",$p,[i("span",xp,f(I.label),1),i("span",wp,f(I.root.label),1)]),i("span",Sp,f(I.meta),1)],10,kp))),128)),qe.value.length?q("",!0):(m(),b("div",Cp,"no apps match"))]),i("section",Tp,[i("div",Mp,[i("input",{value:J.value,class:"render-heatmap__search-input mono",placeholder:"Find components...",onInput:Ut},null,40,Ep)]),i("div",{ref_key:"treeFrameRef",ref:$e,class:"render-heatmap__tree-frame"},[i("div",Ip,[pe.value?(m(),b(_e,{key:0},[Oe.value>0?(m(),b("div",{key:0,class:"render-heatmap__tree-spacer",style:we({height:`${Oe.value}px`}),"aria-hidden":"true"},null,4)):q("",!0),(m(!0),b(_e,null,Ae(Xe.value,I=>{var ae;return m(),b("div",{key:I.node.id,class:oe(["tree-row",{selected:((ae=ge.value)==null?void 0:ae.id)===I.node.id,hot:I.hot}]),style:we({"--tree-depth":String(I.node.depth)}),onClick:ie=>ee(I.node)},[g[15]||(g[15]=i("span",{class:"tree-rail","aria-hidden":"true"},null,-1)),i("button",{class:oe(["tree-toggle",{empty:!I.node.children.length}]),disabled:!I.node.children.length,onClick:Tt(ie=>I.node.children.length?De(I.node.id):void 0,["stop"])},f(I.node.children.length?w.value.has(I.node.id)?"⌄":"›":""),11,Rp),i("div",Ap,[i("span",{class:"tree-name mono",title:I.node.label},f(I.node.label),9,Fp),I.primaryBadge?(m(),b("div",Np,[i("span",{class:"tree-badge mono",title:I.primaryBadge},f(I.primaryBadge),9,Lp)])):q("",!0)]),i("div",Pp,[I.node.isPersistent?(m(),b("span",Dp," persistent ")):q("",!0),I.node.isHydrationMount?(m(),b("span",Vp," hydrated ")):q("",!0),i("span",jp,f(I.metricValue)+" "+f(I.metricLabel),1),I.node.file&&I.node.file!=="unknown"?(m(),b("button",{key:2,class:"tree-jump-btn",title:`Open ${I.node.file} in editor`,onClick:Tt(ie=>Nn(I.node.file),["stop"])}," ↗ ",8,Hp)):q("",!0)])],14,Op)}),128)),Ke.value>0?(m(),b("div",{key:1,class:"render-heatmap__tree-spacer",style:we({height:`${Ke.value}px`}),"aria-hidden":"true"},null,4)):q("",!0)],64)):(m(!0),b(_e,{key:1},Ae(z.value,I=>{var ae;return m(),Lt(Re(s),{key:I.id,node:I,mode:a.value,threshold:h.value,selected:(ae=ge.value)==null?void 0:ae.id,"expanded-ids":w.value,onSelect:ee,onToggle:De},null,8,["node","mode","threshold","selected","expanded-ids"])}),128))]),ce.value.length?q("",!0):(m(),b("div",zp,f(Re(r)?"No render activity recorded yet.":"Waiting for connection to the Nuxt app…"),1))],512)]),i("div",{class:"tracker-resize-handle",onMousedown:g[5]||(g[5]=(...I)=>Re(l)&&Re(l)(...I))},null,32),i("aside",{class:"render-heatmap__detail-panel tracker-detail-panel",style:we({width:Re(o)+"px"})},[ge.value?(m(),b(_e,{key:0},[i("div",Bp,[i("span",Up,f(ge.value.label),1),i("button",{onClick:g[6]||(g[6]=I=>H.value=null)},"×")]),i("div",Wp,[i("span",Kp,f(ge.value.rerenders+ge.value.mountCount)+" render"+f(ge.value.rerenders+ge.value.mountCount!==1?"s":""),1),i("span",Jp,f(ge.value.mountCount)+" mount"+f(ge.value.mountCount!==1?"s":""),1),ge.value.rerenders?(m(),b("span",Gp,f(ge.value.rerenders)+" re-render"+f(ge.value.rerenders!==1?"s":""),1)):q("",!0),ge.value.isPersistent?(m(),b("span",qp," persistent ")):q("",!0),ge.value.isHydrationMount?(m(),b("span",Xp," hydrated ")):q("",!0),i("span",Qp,f(ge.value.avgMs.toFixed(1))+"ms avg",1),i("span",{class:oe(["render-heatmap__detail-pill mono",{"render-heatmap__detail-pill--hot":U(ge.value)}])},f(U(ge.value)?"hot":"cool"),3)]),g[31]||(g[31]=i("div",{class:"tracker-section-label render-heatmap__section-label"},"identity",-1)),i("div",Yp,[g[16]||(g[16]=i("span",{class:"muted text-sm"},"label",-1)),i("span",Zp,f(ge.value.label),1),g[17]||(g[17]=i("span",{class:"muted text-sm"},"path",-1)),i("span",eh,f(el(ge.value)),1),g[18]||(g[18]=i("span",{class:"muted text-sm"},"file",-1)),i("span",th,[We(f(ge.value.file)+" ",1),ge.value.file&&ge.value.file!=="unknown"?(m(),b("button",{key:0,class:"jump-btn",title:"Open in editor",onClick:g[7]||(g[7]=I=>Nn(ge.value.file))}," open ↗ ")):q("",!0)]),g[19]||(g[19]=i("span",{class:"muted text-sm"},"file name",-1)),i("span",sh,f(Zi(ge.value.file)),1),g[20]||(g[20]=i("span",{class:"muted text-sm"},"parent",-1)),i("span",nh,f(ge.value.parentLabel??"none"),1),g[21]||(g[21]=i("span",{class:"muted text-sm"},"children",-1)),i("span",rh,f(ge.value.children.length),1)]),g[32]||(g[32]=i("div",{class:"tracker-section-label render-heatmap__section-label"},"rendering",-1)),i("div",oh,[g[22]||(g[22]=i("span",{class:"muted text-sm"},"total renders",-1)),i("span",ih,f(ge.value.rerenders+ge.value.mountCount),1),g[23]||(g[23]=i("span",{class:"muted text-sm"},"re-renders",-1)),i("span",lh,f(ge.value.rerenders),1),g[24]||(g[24]=i("span",{class:"muted text-sm"},"mounts",-1)),i("span",ah,f(ge.value.mountCount),1),g[25]||(g[25]=i("span",{class:"muted text-sm"},"persistent",-1)),i("span",{class:oe(["mono text-sm",{"render-heatmap__persistent-value":ge.value.isPersistent}])},f(ge.value.isPersistent?"yes — survives navigation":"no"),3),g[26]||(g[26]=i("span",{class:"muted text-sm"},"hydration mount",-1)),i("span",ch,f(ge.value.isHydrationMount?"yes — SSR hydrated":"no"),1),g[27]||(g[27]=i("span",{class:"muted text-sm"},"avg render time",-1)),i("span",uh,f(ge.value.avgMs.toFixed(1))+"ms",1),g[28]||(g[28]=i("span",{class:"muted text-sm"},"threshold",-1)),i("span",dh,f(h.value)+f(a.value==="count"?"+ renders":"ms+"),1),g[29]||(g[29]=i("span",{class:"muted text-sm"},"mode",-1)),i("span",fh,f(a.value==="count"?"re-render count":"render time"),1)]),g[33]||(g[33]=i("div",{class:"tracker-section-label render-heatmap__section-label"},"triggers",-1)),(m(!0),b(_e,null,Ae(ge.value.triggers,I=>(m(),b("div",{key:I,class:"render-heatmap__trigger-item mono text-sm"},f(I),1))),128)),ge.value.triggers.length?q("",!0):(m(),b("div",ph,"no triggers recorded")),i("div",hh,[g[30]||(g[30]=We(" render timeline ",-1)),i("span",vh,"("+f(ge.value.timeline.length)+")",1)]),ge.value.timeline.length?(m(),b("div",_h,[(m(!0),b(_e,null,Ae(Qe.value,I=>(m(),b("div",{key:I.key,class:"render-heatmap__timeline-row"},[i("span",{class:oe(["render-heatmap__timeline-kind mono",I.event.kind])},f(I.event.kind),3),i("span",gh,f(sl(I.event.t)),1),i("span",bh,f(tl(I.event.durationMs)),1),I.event.triggerKey?(m(),b("span",yh,f(I.event.triggerKey),1)):q("",!0),i("span",kh,f(I.event.route),1)]))),128)),ge.value.timeline.length>30?(m(),b("div",$h," … "+f(ge.value.timeline.length-30)+" earlier events ",1)):q("",!0)])):(m(),b("div",mh,"no timeline events yet"))],64)):(m(),b("div",xh,"click a component to inspect"))],4)])]))}}),Sh=yt(wh,[["__scopeId","data-v-18c45b5d"]]),Ch={class:"transition-timeline tracker-view"},Th={class:"transition-timeline__stats tracker-stats-row"},Mh={class:"stat-card"},Eh={class:"stat-val"},Ih={class:"stat-card"},Oh={class:"stat-val stat-val--active"},Rh={class:"stat-card"},Ah={class:"stat-val stat-val--error"},Fh={class:"stat-card"},Nh={class:"stat-val"},Lh={class:"transition-timeline__toolbar tracker-toolbar"},Ph={class:"transition-timeline__filters"},Dh={class:"transition-timeline__content tracker-split"},Vh={class:"data-table"},jh={key:0,class:"transition-timeline__virtual-spacer-row","aria-hidden":"true"},Hh=["onClick"],zh={class:"transition-timeline__name mono"},Bh={class:"transition-timeline__duration mono"},Uh={class:"transition-timeline__component muted"},Wh={class:"transition-timeline__bar-cell"},Kh={class:"transition-timeline__bar-track"},Jh={key:1,class:"transition-timeline__virtual-spacer-row","aria-hidden":"true"},Gh={key:2},qh={colspan:"6",class:"tracker-empty-cell"},Xh={class:"transition-timeline__detail-header"},Qh={class:"transition-timeline__detail-title"},Yh={class:"transition-timeline__detail-section"},Zh={class:"transition-timeline__detail-row"},ev={class:"transition-timeline__detail-row"},tv={class:"transition-timeline__detail-row"},sv={class:"transition-timeline__detail-val transition-timeline__detail-val--mono mono"},nv={key:0,class:"transition-timeline__detail-row"},rv={class:"transition-timeline__detail-val transition-timeline__detail-val--mono mono"},ov={class:"transition-timeline__detail-section"},iv={class:"transition-timeline__detail-row"},lv={class:"transition-timeline__detail-val transition-timeline__detail-val--mono mono"},av={class:"transition-timeline__detail-row"},cv={class:"transition-timeline__detail-val transition-timeline__detail-val--mono mono"},uv={class:"transition-timeline__detail-row"},dv={class:"transition-timeline__detail-val transition-timeline__detail-val--mono transition-timeline__detail-val--strong mono"},fv={class:"transition-timeline__detail-section"},pv={class:"transition-timeline__detail-row"},hv={class:"transition-timeline__detail-row"},vv={key:0,class:"transition-timeline__notice transition-timeline__notice--cancelled"},mv={key:1,class:"transition-timeline__notice transition-timeline__notice--active"},_v=vt({__name:"TransitionTimeline",setup(e){const{transitions:t,connected:s}=us(),{paneWidth:n,onHandleMouseDown:r}=Fn(260,"observatory:transitions:detailWidth"),o=re("all"),l=re(""),a=re(null),c=re(null),{effective:p}=Ys(),{preset:d}=Qs({rowHeight:42,overscan:6}),v=A(()=>[...t.value].sort((T,L)=>T.startTime-L.startTime)),y=A(()=>new Map(t.value.map(T=>[T.id,T]))),h=A(()=>a.value?y.value.get(a.value)??null:null),x=A(()=>{let T=v.value;if(l.value){const L=l.value.toLowerCase();T=T.filter(E=>E.transitionName.toLowerCase().includes(L)||E.parentComponent.toLowerCase().includes(L))}return o.value==="cancelled"?T=T.filter(L=>L.cancelled||L.phase==="interrupted"):o.value==="active"?T=T.filter(L=>L.phase==="entering"||L.phase==="leaving"):o.value==="completed"&&(T=T.filter(L=>L.phase==="entered"||L.phase==="left")),T}),$=A(()=>({total:t.value.length,active:t.value.filter(T=>T.phase==="entering"||T.phase==="leaving").length,cancelled:t.value.filter(T=>T.cancelled||T.phase==="interrupted").length,avgMs:(()=>{const T=t.value.filter(L=>L.durationMs!==void 0);return T.length?Math.round(T.reduce((L,E)=>L+(E.durationMs??0),0)/T.length):0})()})),R=A(()=>{const T=x.value;if(!T.length)return[];const L=T.reduce((C,te)=>Math.min(C,te.startTime),T[0].startTime),E=T.reduce((C,te)=>Math.max(C,te.endTime??te.startTime+400),0),V=Math.max(E-L,1);return T.map(C=>({left:(C.startTime-L)/V*100,width:((C.endTime??C.startTime+80)-C.startTime)/V*100}))}),J=A(()=>p.value.transitions),H=A(()=>({count:x.value.length,getScrollElement:()=>c.value,estimateSize:()=>d.value.rowHeight,overscan:d.value.overscan})),O=Cs(H),w=A(()=>J.value?O.value.getVirtualItems():[]),B=A(()=>!J.value||w.value.length===0?0:w.value[0].start),ue=A(()=>{if(!J.value||w.value.length===0)return 0;const T=O.value.getTotalSize(),L=w.value[w.value.length-1];return Math.max(0,T-L.end)}),$e=A(()=>J.value?w.value.map(T=>({entry:x.value[T.index],geometry:R.value[T.index]})).filter(T=>!!(T.entry&&T.geometry)):x.value.map((T,L)=>({entry:T,geometry:R.value[L]})));function be(T){return T==="entering"||T==="leaving"?"#7f77dd":T==="entered"?"#1d9e75":T==="left"?"#378add":T==="enter-cancelled"||T==="leave-cancelled"?"#e24b4a":T==="interrupted"?"#e09a3a":"#888"}function de(T){return T==="entering"||T==="leaving"?"badge-purple":T==="entered"||T==="left"?"badge-ok":T.includes("cancelled")?"badge-err":T==="interrupted"?"badge-warn":"badge-gray"}function he(T){return T.appear?"✦ appear":T.direction==="enter"?"→ enter":"← leave"}function Se(T){return T.appear?"var(--amber)":T.direction==="enter"?"var(--teal)":"var(--blue)"}return(T,L)=>(m(),b("div",Ch,[i("div",Th,[i("div",Mh,[i("div",Eh,f($.value.total),1),L[7]||(L[7]=i("div",{class:"stat-label"},"total",-1))]),i("div",Ih,[i("div",Oh,f($.value.active),1),L[8]||(L[8]=i("div",{class:"stat-label"},"active",-1))]),i("div",Rh,[i("div",Ah,f($.value.cancelled),1),L[9]||(L[9]=i("div",{class:"stat-label"},"cancelled",-1))]),i("div",Fh,[i("div",Nh,[We(f($.value.avgMs)+" ",1),L[10]||(L[10]=i("span",{class:"stat-unit"},"ms",-1))]),L[11]||(L[11]=i("div",{class:"stat-label"},"avg duration",-1))])]),i("div",Lh,[Gt(i("input",{"onUpdate:modelValue":L[0]||(L[0]=E=>l.value=E),type:"search",placeholder:"filter by name or component…",class:"transition-timeline__search"},null,512),[[as,l.value]]),i("div",Ph,[i("button",{class:oe({active:o.value==="all"}),onClick:L[1]||(L[1]=E=>o.value="all")},"All",2),i("button",{class:oe({active:o.value==="active"}),onClick:L[2]||(L[2]=E=>o.value="active")},"Active",2),i("button",{class:oe({active:o.value==="completed"}),onClick:L[3]||(L[3]=E=>o.value="completed")},"Completed",2),i("button",{class:oe({active:o.value==="cancelled","danger-active":o.value==="cancelled"}),onClick:L[4]||(L[4]=E=>o.value="cancelled")}," Cancelled ",2)])]),i("div",Dh,[i("div",{ref_key:"tableScrollRef",ref:c,class:"transition-timeline__table tracker-table-wrap"},[i("table",Vh,[L[12]||(L[12]=i("thead",null,[i("tr",null,[i("th",{class:"transition-timeline__col-name"},"NAME"),i("th",{class:"transition-timeline__col-dir"},"DIR"),i("th",{class:"transition-timeline__col-phase"},"PHASE"),i("th",{class:"transition-timeline__col-duration"},"DURATION"),i("th",null,"COMPONENT"),i("th",null,"TIMELINE")])],-1)),i("tbody",null,[J.value&&B.value>0?(m(),b("tr",jh,[i("td",{colspan:"6",style:we({height:`${B.value}px`})},null,4)])):q("",!0),(m(!0),b(_e,null,Ae($e.value,E=>{var V;return m(),b("tr",{key:E.entry.id,class:oe({selected:((V=h.value)==null?void 0:V.id)===E.entry.id}),onClick:C=>{var te;return a.value=((te=h.value)==null?void 0:te.id)===E.entry.id?null:E.entry.id}},[i("td",null,[i("span",zh,f(E.entry.transitionName),1)]),i("td",null,[i("span",{class:"transition-timeline__direction mono",style:we({color:Se(E.entry)})},f(he(E.entry)),5)]),i("td",null,[i("span",{class:oe(["badge",de(E.entry.phase)])},f(E.entry.phase),3)]),i("td",Bh,f(E.entry.durationMs!==void 0?E.entry.durationMs+"ms":"—"),1),i("td",Uh,f(E.entry.parentComponent),1),i("td",Wh,[i("div",Kh,[i("div",{class:"transition-timeline__bar-fill",style:we({left:E.geometry.left+"%",width:Math.max(E.geometry.width,1)+"%",background:be(E.entry.phase),opacity:E.entry.phase==="entering"||E.entry.phase==="leaving"?"0.55":"1"})},null,4)])])],10,Hh)}),128)),J.value&&ue.value>0?(m(),b("tr",Jh,[i("td",{colspan:"6",style:we({height:`${ue.value}px`})},null,4)])):q("",!0),x.value.length?q("",!0):(m(),b("tr",Gh,[i("td",qh,f(Re(s)?"No transitions recorded yet — trigger one on the page.":"Waiting for connection to the Nuxt app…"),1)]))])])],512),Be(gn,{name:"panel-slide"},{default:zs(()=>[h.value?(m(),b("div",{key:0,class:"tracker-resize-handle",onMousedown:L[5]||(L[5]=(...E)=>Re(r)&&Re(r)(...E))},null,32)):q("",!0)]),_:1}),Be(gn,{name:"panel-slide"},{default:zs(()=>[h.value?(m(),b("aside",{key:0,class:"transition-timeline__detail",style:we({width:Re(n)+"px"})},[i("div",Xh,[i("span",Qh,f(h.value.transitionName),1),i("button",{class:"transition-timeline__close-btn",onClick:L[6]||(L[6]=E=>a.value=null)},"✕")]),i("div",Yh,[i("div",Zh,[L[13]||(L[13]=i("span",{class:"transition-timeline__detail-key"},"Direction",-1)),i("span",{class:"transition-timeline__detail-val",style:we({color:Se(h.value)})},f(he(h.value)),5)]),i("div",ev,[L[14]||(L[14]=i("span",{class:"transition-timeline__detail-key"},"Phase",-1)),i("span",{class:oe(["badge",de(h.value.phase)])},f(h.value.phase),3)]),i("div",tv,[L[15]||(L[15]=i("span",{class:"transition-timeline__detail-key"},"Component",-1)),i("span",sv,f(h.value.parentComponent),1)]),h.value.mode?(m(),b("div",nv,[L[16]||(L[16]=i("span",{class:"transition-timeline__detail-key"},"Mode",-1)),i("span",rv,f(h.value.mode),1)])):q("",!0)]),i("div",ov,[L[20]||(L[20]=i("div",{class:"tracker-section-label transition-timeline__section-title"},"Timing",-1)),i("div",iv,[L[17]||(L[17]=i("span",{class:"transition-timeline__detail-key"},"Start",-1)),i("span",lv,f(h.value.startTime.toFixed(2))+"ms ",1)]),i("div",av,[L[18]||(L[18]=i("span",{class:"transition-timeline__detail-key"},"End",-1)),i("span",cv,f(h.value.endTime!==void 0?h.value.endTime.toFixed(2)+"ms":"—"),1)]),i("div",uv,[L[19]||(L[19]=i("span",{class:"transition-timeline__detail-key"},"Duration",-1)),i("span",dv,f(h.value.durationMs!==void 0?h.value.durationMs+"ms":h.value.phase==="interrupted"?"interrupted":"in progress"),1)])]),i("div",fv,[L[23]||(L[23]=i("div",{class:"tracker-section-label transition-timeline__section-title"},"Flags",-1)),i("div",pv,[L[21]||(L[21]=i("span",{class:"transition-timeline__detail-key"},"Appear",-1)),i("span",{class:"transition-timeline__detail-val",style:we({color:h.value.appear?"var(--amber)":"var(--text3)"})},f(h.value.appear?"yes":"no"),5)]),i("div",hv,[L[22]||(L[22]=i("span",{class:"transition-timeline__detail-key"},"Cancelled",-1)),i("span",{class:"transition-timeline__detail-val",style:we({color:h.value.cancelled?"var(--red)":"var(--text3)"})},f(h.value.cancelled?"yes":"no"),5)])]),h.value.cancelled?(m(),b("div",vv,[...L[24]||(L[24]=[We(" This transition was cancelled mid-flight. The element may be stuck in a partial animation state if the interruption was not handled with ",-1),i("code",null,"onEnterCancelled",-1),We(" / ",-1),i("code",null,"onLeaveCancelled",-1),We(" . ",-1)])])):q("",!0),h.value.phase==="entering"||h.value.phase==="leaving"?(m(),b("div",mv,[...L[25]||(L[25]=[We(" Transition is currently in progress. If it stays in this state longer than expected, the ",-1),i("code",null,"done()",-1),We(" callback may not be getting called (JS-mode transition stall). ",-1)])])):q("",!0)],4)):q("",!0)]),_:1})])]))}}),gv=yt(_v,[["__scopeId","data-v-0d839cfd"]]),bv={class:"flamegraph"},yv={class:"flamegraph__timeline-header"},kv={class:"flamegraph__time-label"},$v={class:"flamegraph__time-label"},xv={class:"flamegraph__rows"},wv=["onClick"],Sv=["onClick"],Cv={class:"flamegraph__span-name"},Tv={class:"flamegraph__span-type"},Mv={class:"flamegraph__bar-container"},Ev=["title","onClick"],Iv={key:0,class:"flamegraph__bar-label"},Ov={key:0,class:"flamegraph__empty"},Rv=vt({__name:"Flamegraph",props:{trace:{},selectedSpanId:{}},emits:["select-span"],setup(e,{emit:t}){const s=e,n=t,r=re(new Set);function o(O){r.value.has(O)?r.value.delete(O):r.value.add(O)}function l(O,w=void 0,B=0){return O.filter(ue=>ue.parentSpanId===w).map(ue=>({...ue,children:l(O,ue.id,B+1),level:B}))}const a=A(()=>l(s.trace.spans,void 0,0)),c=A(()=>{if(s.trace.durationMs&&s.trace.durationMs>0)return s.trace.durationMs;if(s.trace.endTime&&s.trace.endTime>s.trace.startTime)return s.trace.endTime-s.trace.startTime;let O=0;for(const w of s.trace.spans){const ue=(w.endTime??w.startTime+(w.durationMs??0))-s.trace.startTime;ue>O&&(O=ue)}return O>0?O*1.1:1});function p(O){const w=s.trace.startTime,B=(O.startTime-w)/c.value*100,ue=(O.durationMs||0)/c.value*100;return{left:`${Math.min(100,Math.max(0,B))}%`,width:`${Math.max(.5,Math.min(100-Math.max(0,B),ue))}%`}}function d(O){return(O.durationMs||0)/c.value*100<5}function v(O){return O?O<1?`${(O*1e3).toFixed(1)}μs`:O<1e3?`${O.toFixed(1)}ms`:`${(O/1e3).toFixed(2)}s`:"0ms"}function y(O){return typeof O=="string"&&O.length>0?O:void 0}function h(O){return typeof O=="number"?O:void 0}function x(O){const w=O.metadata??{},B=y(w.lifecycle),ue=y(w.componentName),$e=h(w.uid),be=y(w.route)??y(w.path),de=y(w.method),he=y(w.url);return ue&&B?$e!==void 0?`${ue}.${B} #${$e}`:`${ue}.${B}`:ue?$e!==void 0?`${ue} #${$e}`:ue:de&&he?`${de} ${he}`:he||(be?`${O.name} (${be})`:O.name)}function $(O){const w=O.metadata??{},B=x(O),ue=O.status,$e=v(O.durationMs),be=y(w.route)??y(w.path);return be?`${B} - ${$e} (${ue}) [${be}]`:`${B} - ${$e} (${ue})`}function R(O){return{fetch:"bg-blue-500",composable:"bg-purple-500",component:"bg-green-500",navigation:"bg-yellow-500",render:"bg-orange-500",transition:"bg-pink-500"}[O]||"bg-gray-500"}function J(O){const w=[O];if(r.value.has(O.id)&&O.children.length>0)for(const B of O.children)w.push(...J(B));return w}const H=A(()=>{const O=[];for(const w of a.value)for(const B of J(w)){const ue=B.level+(B.parentSpanId?1:0);O.push({node:B,displayDepth:ue})}return O});return(O,w)=>(m(),b("div",bv,[i("div",yv,[w[0]||(w[0]=i("div",{class:"flamegraph__time-label"},"0ms",-1)),i("div",kv,f(v(c.value/2)),1),i("div",$v,f(v(c.value)),1)]),i("div",xv,[(m(!0),b(_e,null,Ae(H.value,({node:B,displayDepth:ue})=>(m(),b("div",{key:B.id,class:oe([{"flamegraph__row--selected":B.id===s.selectedSpanId},"flamegraph__row"])},[i("div",{class:"flamegraph__label",style:we({paddingLeft:`calc(8px + ${ue*16}px)`})},[B.children.length>0?(m(),b("button",{key:0,class:oe({"flamegraph__expand-btn":!0,"flamegraph__expand-btn--expanded":r.value.has(B.id)}),onClick:$e=>o(B.id)}," ▶ ",10,wv)):q("",!0),i("button",{class:"flamegraph__node-button",onClick:$e=>n("select-span",B)},[i("span",Cv,f(x(B)),1),i("span",Tv,f(B.type),1)],8,Sv)],4),i("div",Mv,[i("div",{class:oe(["flamegraph__bar",R(B.type)]),style:we(p(B)),title:$(B),onClick:$e=>n("select-span",B)},[d(B)?q("",!0):(m(),b("span",Iv,f(v(B.durationMs)),1))],14,Ev),d(B)?(m(),b("span",{key:0,class:"flamegraph__bar-label-outside",style:we({left:p(B).left})},f(v(B.durationMs)),5)):q("",!0)])],2))),128)),H.value.length===0?(m(),b("div",Ov,"No spans in this trace")):q("",!0)])]))}}),Av=yt(Rv,[["__scopeId","data-v-90173439"]]),Fv={class:"waterfall"},Nv={class:"waterfall__timeline-header"},Lv={class:"waterfall__timeline-col"},Pv={class:"waterfall__time-markers"},Dv={class:"waterfall__time-marker"},Vv={class:"waterfall__time-marker"},jv={class:"waterfall__time-marker"},Hv={class:"waterfall__time-marker"},zv={class:"waterfall__groups"},Bv={class:"waterfall__group-header"},Uv={class:"waterfall__group-type"},Wv={class:"waterfall__group-count"},Kv={class:"waterfall__group-spans"},Jv={class:"waterfall__span-label"},Gv=["title"],qv={class:"waterfall__span-bar-container"},Xv=["title"],Qv={key:0,class:"waterfall__bar-duration"},Yv={key:0,class:"waterfall__empty"},Zv=vt({__name:"WaterfallView",props:{trace:{}},setup(e){const t=e,s=A(()=>{const h={};for(const x of t.trace.spans)h[x.type]||(h[x.type]=[]),h[x.type].push(x);return Object.entries(h).map(([x,$])=>({type:x,spans:$.sort((R,J)=>R.startTime-J.startTime)})).sort((x,$)=>{const R={navigation:0,fetch:1,composable:2,component:3,render:4,transition:5};return(R[x.type]??999)-(R[$.type]??999)})}),n=A(()=>{if(t.trace.durationMs&&t.trace.durationMs>0)return t.trace.durationMs;if(t.trace.endTime&&t.trace.endTime>t.trace.startTime)return t.trace.endTime-t.trace.startTime;let h=0;for(const x of t.trace.spans){const R=(x.endTime??x.startTime+(x.durationMs??0))-t.trace.startTime;R>h&&(h=R)}return h||1});function r(h){const x=(h.startTime-t.trace.startTime)/n.value*100;return Math.min(100,Math.max(0,x))}function o(h){const x=r(h),$=(h.durationMs||0)/n.value*100;return Math.max(2,Math.min(100-x,$))}function l(h){return(h.durationMs||0)/n.value*100<5}function a(h){return h?h<1?`${(h*1e3).toFixed(1)}μs`:h<1e3?`${h.toFixed(1)}ms`:`${(h/1e3).toFixed(2)}s`:"0ms"}function c(h){return{fetch:"bg-blue-500",composable:"bg-purple-500",component:"bg-green-500",navigation:"bg-yellow-500",render:"bg-orange-500",transition:"bg-pink-500"}[h]||"bg-gray-500"}function p(h){return{ok:"border-green-400",error:"border-red-400",cancelled:"border-gray-400",active:"border-yellow-400"}[h]||"border-gray-400"}function d(h){return typeof h=="string"?h:""}function v(h){const x=h.metadata;if(!x)return h.name;const $=d(x.componentName),R=d(x.lifecycle),J=x.uid!==void 0?String(x.uid):"",H=d(x.method),O=d(x.url),w=d(x.route)||d(x.path);return $&&R?J?`${$}.${R} #${J}`:`${$}.${R}`:$?J?`${$} #${J}`:$:H&&O?`${H} ${O}`:O||(w?`${h.name} (${w})`:h.name)}function y(h){const x=v(h),$=a(h.durationMs),R=h.metadata,J=R?d(R.route)||d(R.path):"";let H=`${x} — ${$} (${h.status})`;return J&&!x.includes(J)&&(H+=` [${J}]`),H}return(h,x)=>(m(),b("div",Fv,[i("div",Nv,[x[1]||(x[1]=i("div",{class:"waterfall__type-col"},"Type",-1)),i("div",Lv,[i("div",Pv,[x[0]||(x[0]=i("div",{class:"waterfall__time-marker"},"0ms",-1)),i("div",Dv,f(a(n.value/4)),1),i("div",Vv,f(a(n.value/2)),1),i("div",jv,f(a(n.value*3/4)),1),i("div",Hv,f(a(n.value)),1)])])]),i("div",zv,[(m(!0),b(_e,null,Ae(s.value,$=>(m(),b("div",{key:$.type,class:"waterfall__group"},[i("div",Bv,[i("span",Uv,[i("span",{class:oe(["waterfall__color-dot",c($.type)])},null,2),We(" "+f($.type),1)]),i("span",Wv,f($.spans.length),1)]),i("div",Kv,[(m(!0),b(_e,null,Ae($.spans,R=>(m(),b("div",{key:R.id,class:"waterfall__span-row"},[i("div",Jv,[i("span",{title:y(R)},f(v(R)),9,Gv)]),i("div",qv,[i("div",{class:oe(["waterfall__span-bar",[c(R.type),p(R.status)]]),style:we({left:`${r(R)}%`,width:`${Math.max(1,o(R))}%`}),title:y(R)},[l(R)?q("",!0):(m(),b("span",Qv,f(a(R.durationMs)),1))],14,Xv),l(R)?(m(),b("span",{key:0,class:"waterfall__bar-duration-outside",style:we({left:`calc(${r(R)}% + 4px)`})},f(a(R.durationMs)),5)):q("",!0)])]))),128))])]))),128)),s.value.length===0?(m(),b("div",Yv,"No spans in this trace")):q("",!0)])]))}}),em=yt(Zv,[["__scopeId","data-v-a606e7cf"]]),tm={class:"span-inspector"},sm={key:0,class:"span-inspector__empty"},nm={key:1,class:"span-inspector__content"},rm={class:"span-inspector__header"},om={class:"span-inspector__title"},im={class:"span-inspector__section"},lm={class:"span-inspector__property-grid"},am={class:"span-inspector__property"},cm={class:"span-inspector__value mono"},um={class:"span-inspector__property"},dm={class:"span-inspector__value mono"},fm={class:"span-inspector__property"},pm={class:"span-inspector__value mono"},hm={class:"span-inspector__section"},vm={class:"span-inspector__property-grid"},mm={class:"span-inspector__property"},_m={class:"span-inspector__value mono text-xs"},gm={class:"span-inspector__property"},bm={class:"span-inspector__value mono"},ym={class:"span-inspector__property"},km={class:"span-inspector__value mono text-xs"},$m={key:0,class:"span-inspector__section"},xm={key:1,class:"span-inspector__section"},wm={class:"span-inspector__section-title"},Sm={class:"span-inspector__child-list"},Cm=["onClick"],Tm={class:"span-inspector__child-name"},Mm={class:"span-inspector__child-duration"},Em={key:2,class:"span-inspector__section"},Im={class:"span-inspector__metadata"},Om={class:"span-inspector__metadata-key"},Rm={class:"span-inspector__metadata-value"},Am={key:0,class:"span-inspector__code"},Fm={key:1,class:"span-inspector__code"},Nm=vt({__name:"SpanInspector",props:{trace:{},span:{}},emits:["select-span"],setup(e,{emit:t}){const s=e,n=t,r=A(()=>!s.span||!s.span.parentSpanId?null:s.trace.spans.find(v=>v.id===s.span.parentSpanId)),o=A(()=>s.span?s.trace.spans.filter(v=>v.parentSpanId===s.span.id).sort((v,y)=>v.startTime-y.startTime):[]);function l(v){return v?v<1?`${(v*1e3).toFixed(1)}μs`:v<1e3?`${v.toFixed(1)}ms`:`${(v/1e3).toFixed(2)}s`:"0ms"}function a(v){const y=v-s.trace.startTime;return Math.abs(y)<1?`+${(y*1e3).toFixed(1)}μs`:Math.abs(y)<1e3?`+${y.toFixed(3)}ms`:`+${(y/1e3).toFixed(3)}s`}function c(v){return v.endTime!==void 0?v.endTime:v.durationMs!==void 0?v.startTime+v.durationMs:v.startTime}function p(v){return{ok:"#22c55e",error:"#ef4444",cancelled:"#6b7280",active:"#eab308"}[v]||"#6b7280"}function d(v){return{fetch:"bg-blue-500",composable:"bg-purple-500",component:"bg-green-500",navigation:"bg-yellow-500",render:"bg-orange-500",transition:"bg-pink-500"}[v]||"bg-gray-500"}return(v,y)=>(m(),b("div",tm,[e.span?(m(),b("div",nm,[i("div",rm,[i("div",om,[i("span",{class:oe([d(e.span.type),"span-inspector__type-badge"])},null,2),We(" "+f(e.span.name),1)]),i("div",{class:"span-inspector__status",style:we({color:p(e.span.status)})},f(e.span.status),5)]),i("div",im,[y[5]||(y[5]=i("div",{class:"span-inspector__section-title"},"Timing",-1)),i("div",lm,[i("div",am,[y[2]||(y[2]=i("span",{class:"span-inspector__label"},"Duration",-1)),i("span",cm,f(l(e.span.durationMs)),1)]),i("div",um,[y[3]||(y[3]=i("span",{class:"span-inspector__label"},"Start Time",-1)),i("span",dm,f(a(e.span.startTime)),1)]),i("div",fm,[y[4]||(y[4]=i("span",{class:"span-inspector__label"},"End Time",-1)),i("span",pm,f(a(c(e.span))),1)])])]),i("div",hm,[y[9]||(y[9]=i("div",{class:"span-inspector__section-title"},"Properties",-1)),i("div",vm,[i("div",mm,[y[6]||(y[6]=i("span",{class:"span-inspector__label"},"ID",-1)),i("span",_m,f(e.span.id),1)]),i("div",gm,[y[7]||(y[7]=i("span",{class:"span-inspector__label"},"Type",-1)),i("span",bm,f(e.span.type),1)]),i("div",ym,[y[8]||(y[8]=i("span",{class:"span-inspector__label"},"Trace ID",-1)),i("span",km,f(e.span.traceId),1)])])]),r.value?(m(),b("div",$m,[y[10]||(y[10]=i("div",{class:"span-inspector__section-title"},"Parent Span",-1)),i("div",{class:"span-inspector__link",onClick:y[0]||(y[0]=h=>n("select-span",r.value))},[i("span",{class:oe([d(r.value.type),"span-inspector__link-badge"])},null,2),We(" "+f(r.value.name),1)])])):q("",!0),o.value.length>0?(m(),b("div",xm,[i("div",wm,"Child Spans ("+f(o.value.length)+")",1),i("div",Sm,[(m(!0),b(_e,null,Ae(o.value,h=>(m(),b("div",{key:h.id,class:"span-inspector__child-item",onClick:x=>n("select-span",h)},[i("span",{class:oe([d(h.type),"span-inspector__child-badge"])},null,2),i("span",Tm,f(h.name),1),i("span",Mm,f(l(h.durationMs)),1)],8,Cm))),128))])])):q("",!0),e.span.metadata&&Object.keys(e.span.metadata).length>0?(m(),b("div",Em,[y[11]||(y[11]=i("div",{class:"span-inspector__section-title"},"Metadata",-1)),i("div",Im,[(m(!0),b(_e,null,Ae(e.span.metadata,(h,x)=>(m(),b("div",{key:x,class:"span-inspector__metadata-item"},[i("span",Om,f(x)+":",1),i("span",Rm,[typeof h=="object"?(m(),b("code",Am,f(JSON.stringify(h,null,2)),1)):(m(),b("span",Fm,f(h),1))])]))),128))])])):q("",!0)])):(m(),b("div",sm,[...y[1]||(y[1]=[i("div",{class:"span-inspector__empty-icon"},"📊",-1),i("p",null,"Select a span to view details",-1)])]))]))}}),Lm=yt(Nm,[["__scopeId","data-v-358f51d2"]]);function Pm(e){const t=new Set;for(const s of e)for(const n of s.spans)t.add(n.type);return Array.from(t).sort()}function Dm(){const e=re(""),t=re(new Set),s=re(0),n=re(1/0),r=re("");function o(h,x){if(!x)return!0;const $=x.toLowerCase();if(h.name.toLowerCase().includes($))return!0;for(const R of h.spans)if(R.name.toLowerCase().includes($))return!0;for(const R of h.spans)if(R.metadata){for(const J of Object.values(R.metadata))if(typeof J=="string"&&J.toLowerCase().includes($))return!0}return!1}function l(h,x){if(x.size===0)return!0;for(const $ of h.spans)if(x.has($.type))return!0;return!1}function a(h,x,$){const R=x>0||$<1/0;return h.durationMs===void 0?!R:h.durationMs>=x&&h.durationMs<=$}function c(h,x){var $,R,J;if(!x||($=h.metadata)!=null&&$.route&&typeof h.metadata.route=="string"&&h.metadata.route.toLowerCase().includes(x.toLowerCase()))return!0;for(const H of h.spans)if((R=H.metadata)!=null&&R.route&&String(H.metadata.route).toLowerCase().includes(x.toLowerCase())||(J=H.metadata)!=null&&J.path&&String(H.metadata.path).toLowerCase().includes(x.toLowerCase()))return!0;return!1}function p(h){return h.filter(x=>o(x,e.value)&&l(x,t.value)&&a(x,s.value,n.value)&&c(x,r.value))}function d(h){t.value.has(h)?t.value.delete(h):t.value.add(h)}function v(){e.value="",t.value.clear(),s.value=0,n.value=1/0,r.value=""}const y=A(()=>e.value.length>0||t.value.size>0||s.value>0||n.value<1/0||r.value.length>0);return{searchQuery:e,selectedSpanTypes:t,minDuration:s,maxDuration:n,routeFilter:r,filterTraces:p,toggleSpanType:d,clearFilters:v,hasActiveFilters:y}}const Vm={class:"trace-filter"},jm={class:"trace-filter__section"},Hm=["value"],zm={key:0,class:"trace-filter__section"},Bm={class:"trace-filter__type-filters"},Um=["title","onClick"],Wm={class:"trace-filter__section"},Km={class:"trace-filter__duration-inputs"},Jm=["value"],Gm=["value","min","max"],qm=["value","max"],Xm={class:"trace-filter__section"},Qm=["value"],Ym=vt({__name:"TraceFilter",props:{traces:{},searchQuery:{},selectedSpanTypes:{},minDuration:{},maxDuration:{},routeFilter:{},hasActiveFilters:{type:Boolean}},emits:["update:search","update:types","update:min-duration","update:max-duration","update:route","clear-filters"],setup(e,{emit:t}){const s=e,n=t,r=A(()=>Pm(s.traces)),o=A(()=>{let x=0;for(const $ of s.traces)$.durationMs&&$.durationMs>x&&(x=$.durationMs);return Math.ceil(x/10)*10||1e3});function l(x){n("update:search",x)}function a(x){return x.target.value}function c(x){const $=new Set(s.selectedSpanTypes);$.has(x)?$.delete(x):$.add(x),n("update:types",$)}function p(x){const $=Math.max(0,parseInt(x)||0);n("update:min-duration",$)}function d(x){const $=Math.max(0,parseInt(x)||1/0);n("update:max-duration",$)}function v(x){n("update:route",x)}function y(){n("clear-filters")}function h(x){return{fetch:"#3b82f6",composable:"#a855f7",component:"#22c55e",navigation:"#eab308",render:"#f97316",transition:"#ec4899"}[x]||"#6b7280"}return(x,$)=>(m(),b("div",Vm,[i("div",jm,[$[5]||($[5]=i("label",{class:"trace-filter__label"},"Search",-1)),i("input",{value:s.searchQuery,type:"text",class:"trace-filter__search-input",placeholder:"Search traces, spans, endpoints…",onInput:$[0]||($[0]=R=>l(a(R)))},null,40,Hm)]),r.value.length>0?(m(),b("div",zm,[$[6]||($[6]=i("label",{class:"trace-filter__label"},"Span Type",-1)),i("div",Bm,[(m(!0),b(_e,null,Ae(r.value,R=>(m(),b("button",{key:R,class:oe([{"trace-filter__type-badge--selected":s.selectedSpanTypes.has(R)},"trace-filter__type-badge"]),title:`Filter by ${R} spans`,onClick:J=>c(R)},[i("span",{class:"trace-filter__type-dot",style:we({backgroundColor:h(R)})},null,4),We(" "+f(R),1)],10,Um))),128))])])):q("",!0),i("div",Wm,[$[8]||($[8]=i("label",{class:"trace-filter__label"},"Duration (ms)",-1)),i("div",Km,[i("input",{value:s.minDuration,type:"number",min:"0",class:"trace-filter__duration-input",placeholder:"Min",onInput:$[1]||($[1]=R=>p(a(R)))},null,40,Jm),$[7]||($[7]=i("span",{class:"trace-filter__duration-separator"},"–",-1)),i("input",{value:s.maxDuration===1/0?"":s.maxDuration,type:"number",min:s.minDuration,max:o.value,class:"trace-filter__duration-input",placeholder:"Max",onInput:$[2]||($[2]=R=>d(a(R)))},null,40,Gm)]),o.value?(m(),b("input",{key:0,value:s.maxDuration===1/0?o.value:s.maxDuration,type:"range",min:0,max:o.value,class:"trace-filter__duration-slider",onInput:$[3]||($[3]=R=>d(a(R)))},null,40,qm)):q("",!0)]),i("div",Xm,[$[9]||($[9]=i("label",{class:"trace-filter__label"},"Route",-1)),i("input",{value:s.routeFilter,type:"text",class:"trace-filter__search-input",placeholder:"Filter by route…",onInput:$[4]||($[4]=R=>v(a(R)))},null,40,Qm)]),s.hasActiveFilters?(m(),b("button",{key:1,class:"trace-filter__clear-btn",onClick:y},"Clear Filters")):q("",!0)]))}}),Zm=yt(Ym,[["__scopeId","data-v-f5ab93b2"]]);function Co(e){return e.metadata??{}}function e_(e){return Number.isFinite(e)?e:0}function t_(e,t){const s=String(e.componentName??"").trim(),n=String(e.file??"").trim();return s&&n?{key:`${n}::${s}`,name:s,file:n}:s?{key:`name::${s}`,name:s,file:n}:{key:`unknown::${t}`,name:t,file:n}}function Xi(e){if(!e)return[];const t=new Map;for(const n of e.spans){if(n.type!=="render")continue;const r=Co(n),o=r.uid??n.id,l=t_(r,String(o));t.has(o)||t.set(o,{key:l.key,name:l.name,file:l.file,spans:[]}),t.get(o).spans.push(n)}const s=[];for(const[n,{key:r,name:o,file:l,spans:a}]of t){let c=0,p=0,d=0;for(const y of a){const h=String(Co(y).lifecycle??""),x=e_(y.durationMs);h==="render:mount"?c++:p++,d+=x}const v=c+p;s.push({componentKey:r,componentName:o||String(n),file:l,uid:n,mountCount:c,rerenderCount:p,totalMs:d,avgMs:v>0?d/v:0})}return s.sort((n,r)=>r.rerenderCount-n.rerenderCount||r.totalMs-n.totalMs),s}function s_(e,t){if(e.length===0)return[];const s=new Map;for(const r of e){const o=Xi(r),l=new Map;for(const a of o){const c=l.get(a.componentKey);if(!c){l.set(a.componentKey,{name:a.componentName,file:a.file,rerenders:a.rerenderCount,renders:a.mountCount+a.rerenderCount,ms:a.totalMs,uid:a.uid,peakUidRerenders:a.rerenderCount});continue}c.rerenders+=a.rerenderCount,c.renders+=a.mountCount+a.rerenderCount,c.ms+=a.totalMs,a.rerenderCount>c.peakUidRerenders&&(c.uid=a.uid,c.peakUidRerenders=a.rerenderCount)}for(const[a,c]of l){s.has(a)||s.set(a,{componentName:c.name,file:c.file,tracesSeen:0,totalRerenders:0,totalRenders:0,totalMs:0});const p=s.get(a);p.tracesSeen+=1,p.totalRerenders+=c.rerenders,p.totalRenders+=c.renders,p.totalMs+=c.ms,t&&r.id===t&&(p.selectedUid=c.uid,p.selectedRerenders=c.rerenders)}}const n=[];for(const[r,o]of s){const l=o.tracesSeen>0?o.totalRerenders/o.tracesSeen:0,a=o.totalRenders>0?o.totalMs/o.totalRenders:0;let c,p;if(o.selectedRerenders!==void 0&&o.tracesSeen>1){const d=o.tracesSeen-1,v=o.totalRerenders-o.selectedRerenders;c=d>0?v/d:0,p=o.selectedRerenders-c}n.push({componentKey:r,componentName:o.componentName,file:o.file,tracesSeen:o.tracesSeen,avgRerendersPerTrace:l,totalRerenders:o.totalRerenders,totalMs:o.totalMs,avgMsPerRender:a,selectedUid:o.selectedUid,selectedRerenders:o.selectedRerenders,baselineRerenders:c,deltaVsBaseline:p})}return n.sort((r,o)=>o.avgRerendersPerTrace-r.avgRerendersPerTrace||o.totalMs-r.totalMs),n}const n_={class:"trace-viewer tracker-view"},r_={class:"trace-viewer__header tracker-toolbar"},o_={class:"trace-viewer__header-actions"},i_={class:"trace-viewer__count muted text-sm"},l_=["disabled"],a_={class:"trace-viewer__container"},c_={class:"trace-viewer__list"},u_={class:"data-table"},d_={key:0,class:"trace-viewer__virtual-spacer-row","aria-hidden":"true"},f_=["onClick"],p_={class:"mono"},h_={class:"mono"},v_={class:"mono"},m_={key:1,class:"trace-viewer__virtual-spacer-row","aria-hidden":"true"},__={key:2},g_={colspan:"3",class:"tracker-empty-cell"},b_={key:0,class:"trace-viewer__detail"},y_={class:"trace-viewer__detail-content"},k_={class:"trace-viewer__tabs"},$_={class:"trace-viewer__visualization"},x_={key:0,class:"trace-viewer__overview"},w_={class:"trace-viewer__overview-header"},S_={class:"trace-viewer__overview-value"},C_={class:"trace-viewer__overview-value"},T_={class:"trace-viewer__overview-value"},M_={class:"trace-viewer__overview-value"},E_={class:"trace-viewer__span-list"},I_=["onClick"],O_={class:"trace-viewer__span-name"},R_={class:"trace-viewer__span-meta"},A_={class:"trace-viewer__span-type"},F_={class:"trace-viewer__span-duration"},N_={class:"trace-viewer__render-summary-toggle"},L_={class:"trace-viewer__render-summary-count muted"},P_={key:0,class:"trace-viewer__render-summary-table-wrap"},D_={class:"data-table trace-viewer__render-summary-table"},V_=["title","onClick"],j_={class:"mono"},H_={class:"mono"},z_={class:"mono"},B_={class:"mono"},U_={class:"trace-viewer__render-summary-toggle"},W_={class:"trace-viewer__render-summary-count muted"},K_={class:"trace-viewer__render-summary-count muted"},J_={class:"trace-viewer__comparison-toolbar"},G_={class:"data-table trace-viewer__render-summary-table"},q_={key:0,class:"trace-viewer__virtual-spacer-row","aria-hidden":"true"},X_=["title","onClick"],Q_={class:"mono"},Y_={class:"mono trace-viewer__col-desktop"},Z_={class:"mono"},eg={class:"mono trace-viewer__col-desktop"},tg={class:"mono"},sg={class:"mono trace-viewer__col-desktop"},ng={class:"mono"},rg={key:1,class:"trace-viewer__virtual-spacer-row","aria-hidden":"true"},og={key:2},ig={key:1,class:"trace-viewer__flamegraph"},lg={key:2,class:"trace-viewer__waterfall"},ag={class:"trace-viewer__inspector"},cg=vt({__name:"TraceViewer",setup(e){const{traces:t,connected:s}=us(),n=re([]),r=A(()=>n.value.length>0),o=re(null),l=re(void 0),a=re("overview"),c=re(!1),p=re(!0),d=re(!0),v=re("avgRerendersPerTrace"),y=re("desc"),h=re(!1),x=re(!1),$=re(""),R=re(void 0),J=re(void 0),H=re(null),O=re(null),{effective:w}=Ys(),{preset:B}=Qs({rowHeight:34,overscan:6}),{searchQuery:ue,selectedSpanTypes:$e,minDuration:be,maxDuration:de,routeFilter:he,filterTraces:Se,clearFilters:T,hasActiveFilters:L}=Dm(),E=A(()=>[...r.value?n.value:t.value].sort((M,Ee)=>Ee.startTime-M.startTime)),V=A(()=>Se(E.value)),C=A(()=>new Map(V.value.map(X=>[X.id,X]))),te=A(()=>{const X=r.value?" (imported)":"";return L.value?`Showing ${V.value.length} of ${E.value.length} traces${X}`:`${E.value.length} traces${X}`}),se=A(()=>o.value?C.value.get(o.value):V.value[0]),Ce=A(()=>Xi(se.value)),U=A(()=>{var X;return s_(V.value,(X=se.value)==null?void 0:X.id)}),ye=A(()=>{const X=$.value.trim().toLowerCase();let M=U.value.filter(Ee=>{if(h.value&&(Ee.deltaVsBaseline??0)<=0||x.value&&Ee.selectedRerenders===void 0)return!1;if(X){const ee=Ee.componentName.toLowerCase().includes(X),De=Ee.file.toLowerCase().includes(X);if(!ee&&!De)return!1}return!0});return M=[...M].sort((Ee,ee)=>{const De=v.value,at=y.value==="asc"?1:-1;if(De==="componentName")return Ee.componentName.localeCompare(ee.componentName)*at;if(De==="deltaVsBaseline"){const Ut=Ee.deltaVsBaseline??Number.NEGATIVE_INFINITY,ds=ee.deltaVsBaseline??Number.NEGATIVE_INFINITY;return(Ut-ds)*at}return(Ee[De]-ee[De])*at}),M}),Te=A(()=>U.value.filter(X=>(X.deltaVsBaseline??0)>0).length),P=A(()=>w.value.traces),Y=A(()=>({count:V.value.length,getScrollElement:()=>H.value,estimateSize:()=>B.value.rowHeight,overscan:B.value.overscan})),le=Cs(Y),He=A(()=>P.value?le.value.getVirtualItems():[]),nt=A(()=>!P.value||He.value.length===0?0:He.value[0].start),W=A(()=>{if(!P.value||He.value.length===0)return 0;const X=le.value.getTotalSize(),M=He.value[He.value.length-1];return Math.max(0,X-M.end)}),j=A(()=>P.value?He.value.map(X=>V.value[X.index]).filter(X=>!!X):V.value),K=A(()=>({count:ye.value.length,getScrollElement:()=>O.value,estimateSize:()=>B.value.rowHeight,overscan:B.value.overscan})),Ie=Cs(K),u=A(()=>P.value?Ie.value.getVirtualItems():[]),_=A(()=>!P.value||u.value.length===0?0:u.value[0].start),S=A(()=>{if(!P.value||u.value.length===0)return 0;const X=Ie.value.getTotalSize(),M=u.value[u.value.length-1];return Math.max(0,X-M.end)}),N=A(()=>P.value?u.value.map(X=>ye.value[X.index]).filter(X=>!!X):ye.value);function D(X){if(!X.spans.length)return;let M=0;for(const Ee of X.spans){const De=(Ee.endTime??Ee.startTime+(Ee.durationMs??0))-X.startTime;De>M&&(M=De)}return M>0?M:void 0}function F(X,M){if(X!==void 0)return`${Math.round(X*10)/10}ms`;if(M){const Ee=D(M);if(Ee!==void 0)return`~${Math.round(Ee*10)/10}ms`}return"active"}function Z(X){return typeof X=="string"?X:""}function G(X){const M=X.metadata;if(!M)return X.name;const Ee=Z(M.componentName),ee=Z(M.lifecycle),De=M.uid!==void 0?String(M.uid):"",at=Z(M.method),Ut=Z(M.url),ds=Z(M.route)||Z(M.path);return Ee&&ee?De?`${Ee}.${ee} #${De}`:`${Ee}.${ee}`:Ee?De?`${Ee} #${De}`:Ee:at&&Ut?`${at} ${Ut}`:Ut||(ds?`${X.name} (${ds})`:X.name)}function Q(X){const M=X.metadata;return M==null?void 0:M.uid}const z=A(()=>{const X=se.value;return X?X.spans.map(M=>({span:M,displayName:G(M),uid:Q(M)})):[]});function pe(X){o.value=X.id,l.value=void 0,R.value=void 0,J.value=void 0}function ne(){T(),l.value=void 0,R.value=void 0,J.value=void 0}function ce(X){$e.value=X}function me(){Gi(`observatory-traces-${Date.now()}.json`,{type:"observatory-traces",version:"1",exportedAt:Date.now(),count:t.value.length,data:t.value})}async function xe(){var Ee,ee,De;let X;try{X=await qi()}catch(at){at instanceof Error&&at.message!=="cancelled"&&alert(`Import failed: ${at.message}`);return}const M=X;if((M==null?void 0:M.type)!=="observatory-traces"||(M==null?void 0:M.version)!=="1"||!Array.isArray(M==null?void 0:M.data)||M.data.length>0&&(!((Ee=M.data[0])!=null&&Ee.id)||!((ee=M.data[0])!=null&&ee.name)||!Array.isArray((De=M.data[0])==null?void 0:De.spans))){alert("Invalid observatory traces file.");return}n.value=M.data,o.value=null,l.value=void 0}function Me(){n.value=[],o.value=null,l.value=void 0,R.value=void 0,J.value=void 0}function Oe(X){R.value=R.value===X?void 0:X,J.value=void 0,l.value=void 0}function Ke(X){if(X===void 0)return"n/a";const M=Math.round(X*10)/10;return M>0?`+${M}`:`${M}`}function Ge(X){return X===void 0?"trace-viewer__delta--na":X>0?"trace-viewer__delta--regression":X<0?"trace-viewer__delta--improvement":"trace-viewer__delta--neutral"}function Xe(X){if(v.value===X){y.value=y.value==="desc"?"asc":"desc";return}v.value=X,y.value=X==="componentName"?"asc":"desc"}function qe(X){return v.value!==X?"":y.value==="desc"?" ↓":" ↑"}const Ot=A(()=>new Map(ye.value.map(X=>[X.componentKey,X])));function ge(){J.value=void 0,R.value=void 0}function Qe(X){const M=Ot.value.get(X);if(!M||M.selectedUid===void 0){R.value=void 0,J.value=void 0,l.value=void 0;return}if(J.value===X){J.value=void 0,R.value=void 0,l.value=void 0;return}J.value=X,R.value=M.selectedUid,l.value=void 0}return(X,M)=>{var Ee;return m(),b("div",n_,[i("div",r_,[M[20]||(M[20]=i("div",{class:"trace-viewer__title"},"Trace Viewer",-1)),i("div",o_,[i("div",i_,f(te.value),1),r.value?(m(),b("button",{key:0,class:"trace-viewer__import-mode-btn",title:"Return to live data",onClick:Me}," ← live ")):q("",!0),i("button",{class:"trace-viewer__action-btn",title:"Export traces as JSON",disabled:Re(t).length===0&&!r.value,onClick:me}," ↓ export ",8,l_),i("button",{class:"trace-viewer__action-btn",title:"Import traces from JSON file",onClick:xe},"↑ import"),i("button",{class:oe([{"trace-viewer__filter-btn--active":c.value},"trace-viewer__filter-btn"]),title:"Toggle filters",onClick:M[0]||(M[0]=ee=>c.value=!c.value)}," 🔍 ",2)])]),c.value?(m(),Lt(Zm,{key:0,traces:E.value,"search-query":Re(ue),"selected-span-types":Re($e),"min-duration":Re(be),"max-duration":Re(de),"route-filter":Re(he),"has-active-filters":Re(L),"onUpdate:search":M[1]||(M[1]=ee=>ue.value=ee),"onUpdate:types":ce,"onUpdate:minDuration":M[2]||(M[2]=ee=>be.value=ee),"onUpdate:maxDuration":M[3]||(M[3]=ee=>de.value=ee),"onUpdate:route":M[4]||(M[4]=ee=>he.value=ee),onClearFilters:ne},null,8,["traces","search-query","selected-span-types","min-duration","max-duration","route-filter","has-active-filters"])):q("",!0),i("div",a_,[i("div",c_,[M[22]||(M[22]=i("div",{class:"trace-viewer__list-header"},[i("span",{class:"trace-viewer__list-title"},"Traces")],-1)),i("div",{ref_key:"traceListScrollRef",ref:H,class:"trace-viewer__table-wrap tracker-table-wrap"},[i("table",u_,[M[21]||(M[21]=i("thead",null,[i("tr",null,[i("th",null,"Trace Name"),i("th",null,"Duration"),i("th",null,"Spans")])],-1)),i("tbody",null,[P.value&&nt.value>0?(m(),b("tr",d_,[i("td",{colspan:"3",style:we({height:`${nt.value}px`})},null,4)])):q("",!0),(m(!0),b(_e,null,Ae(j.value,ee=>{var De;return m(),b("tr",{key:ee.id,class:oe([{"trace-viewer__trace-row--selected":((De=se.value)==null?void 0:De.id)===ee.id},"trace-viewer__trace-row"]),onClick:at=>pe(ee)},[i("td",p_,f(ee.name),1),i("td",h_,f(F(ee.durationMs,ee)),1),i("td",v_,f(ee.spans.length),1)],10,f_)}),128)),P.value&&W.value>0?(m(),b("tr",m_,[i("td",{colspan:"3",style:we({height:`${W.value}px`})},null,4)])):q("",!0),V.value.length?q("",!0):(m(),b("tr",__,[i("td",g_,f(E.value.length===0?Re(s)?"No traces recorded yet.":"Waiting for connection to the Nuxt app…":"No traces match applied filters."),1)]))])])],512)]),se.value?(m(),b("div",b_,[i("div",y_,[i("div",k_,[i("button",{class:oe([{"trace-viewer__tab--active":a.value==="overview"},"trace-viewer__tab"]),onClick:M[5]||(M[5]=ee=>a.value="overview")}," Overview ",2),i("button",{class:oe([{"trace-viewer__tab--active":a.value==="flamegraph"},"trace-viewer__tab"]),onClick:M[6]||(M[6]=ee=>a.value="flamegraph")}," Flamegraph ",2),i("button",{class:oe([{"trace-viewer__tab--active":a.value==="waterfall"},"trace-viewer__tab"]),onClick:M[7]||(M[7]=ee=>a.value="waterfall")}," Waterfall ",2)]),i("div",$_,[a.value==="overview"?(m(),b("div",x_,[i("div",w_,[i("div",null,[M[23]||(M[23]=i("div",{class:"trace-viewer__overview-label"},"Trace",-1)),i("div",S_,f(se.value.name),1)]),i("div",null,[M[24]||(M[24]=i("div",{class:"trace-viewer__overview-label"},"Duration",-1)),i("div",C_,f(F(se.value.durationMs,se.value)),1)]),i("div",null,[M[25]||(M[25]=i("div",{class:"trace-viewer__overview-label"},"Spans",-1)),i("div",T_,f(se.value.spans.length),1)]),i("div",null,[M[26]||(M[26]=i("div",{class:"trace-viewer__overview-label"},"Status",-1)),i("div",M_,f(se.value.status),1)])]),i("div",E_,[(m(!0),b(_e,null,Ae(z.value,ee=>{var De;return m(),b("div",{key:ee.span.id,class:oe([{"trace-viewer__span-item--selected":((De=l.value)==null?void 0:De.id)===ee.span.id,"trace-viewer__span-item--highlighted":R.value!==void 0&&ee.uid===R.value},"trace-viewer__span-item"]),onClick:at=>l.value=ee.span},[i("div",O_,f(ee.displayName),1),i("div",R_,[i("span",A_,f(ee.span.type),1),i("span",F_,f(F(ee.span.durationMs)),1)])],10,I_)}),128))]),Ce.value.length>0?(m(),b(_e,{key:0},[i("div",{class:"trace-viewer__render-summary-header",onClick:M[9]||(M[9]=ee=>p.value=!p.value)},[i("span",N_,f(p.value?"▾":"▸"),1),M[27]||(M[27]=i("span",{class:"trace-viewer__render-summary-title"},"Render Summary",-1)),i("span",L_,f(Ce.value.length)+" components",1),R.value!==void 0?(m(),b("span",{key:0,class:"trace-viewer__render-summary-clear",onClick:M[8]||(M[8]=Tt(ee=>R.value=void 0,["stop"]))}," ✕ clear ")):q("",!0)]),p.value?(m(),b("div",P_,[i("table",D_,[M[28]||(M[28]=i("thead",null,[i("tr",null,[i("th",null,"Component"),i("th",{title:"Times the component was mounted"},"Mounts"),i("th",{title:"Reactive re-renders after initial mount"},"Re-renders"),i("th",{title:"Average render duration"},"Avg"),i("th",{title:"Sum of all render durations"},"Total")])],-1)),i("tbody",null,[(m(!0),b(_e,null,Ae(Ce.value,ee=>(m(),b("tr",{key:ee.uid,class:oe([{"trace-viewer__render-summary-row--active":R.value===ee.uid},"trace-viewer__render-summary-row"]),title:ee.file,onClick:De=>Oe(ee.uid)},[i("td",j_,f(ee.componentName),1),i("td",H_,f(ee.mountCount),1),i("td",{class:oe(["mono",{"trace-viewer__render-hot":ee.rerenderCount>3}])},f(ee.rerenderCount),3),i("td",z_,f(F(ee.avgMs)),1),i("td",B_,f(F(ee.totalMs)),1)],10,V_))),128))])])])):q("",!0)],64)):q("",!0),U.value.length>0?(m(),b(_e,{key:1},[i("div",{class:"trace-viewer__render-summary-header",onClick:M[10]||(M[10]=ee=>d.value=!d.value)},[i("span",U_,f(d.value?"▾":"▸"),1),M[29]||(M[29]=i("span",{class:"trace-viewer__render-summary-title"},"Cross-Trace Render Comparison",-1)),i("span",W_,f(U.value.length)+" components · "+f(V.value.length)+" traces ",1),i("span",K_,f(Te.value)+" regressions ",1),M[30]||(M[30]=i("span",{class:"trace-viewer__mobile-hint muted"},"mobile mode: condensed columns",-1)),J.value!==void 0?(m(),b("span",{key:0,class:"trace-viewer__render-summary-clear",onClick:Tt(ge,["stop"])}," ✕ clear ")):q("",!0)]),d.value?(m(),b("div",{key:0,ref_key:"crossTraceScrollRef",ref:O,class:"trace-viewer__render-summary-table-wrap"},[i("div",J_,[i("button",{class:oe([{"trace-viewer__comparison-chip--active":h.value},"trace-viewer__comparison-chip"]),onClick:M[11]||(M[11]=ee=>h.value=!h.value)}," regressions only ",2),i("button",{class:oe([{"trace-viewer__comparison-chip--active":x.value},"trace-viewer__comparison-chip"]),onClick:M[12]||(M[12]=ee=>x.value=!x.value)}," selected trace only ",2),M[31]||(M[31]=i("span",{class:"trace-viewer__comparison-spacer"},null,-1)),Gt(i("input",{"onUpdate:modelValue":M[13]||(M[13]=ee=>$.value=ee),class:"trace-viewer__comparison-search mono",type:"search",placeholder:"filter component..."},null,512),[[as,$.value]])]),i("table",G_,[i("thead",null,[i("tr",null,[i("th",{class:"trace-viewer__sortable",onClick:M[14]||(M[14]=ee=>Xe("componentName"))}," Component"+f(qe("componentName")),1),M[32]||(M[32]=i("th",{class:"trace-viewer__col-desktop",title:"How many traces include this component"}," Traces ",-1)),i("th",{class:"trace-viewer__sortable",title:"Average re-renders per trace",onClick:M[15]||(M[15]=ee=>Xe("avgRerendersPerTrace"))}," Avg Re-renders"+f(qe("avgRerendersPerTrace")),1),M[33]||(M[33]=i("th",{class:"trace-viewer__col-desktop",title:"Re-renders in selected trace"},"Selected",-1)),i("th",{class:"trace-viewer__sortable",title:"Selected trace vs other traces baseline",onClick:M[16]||(M[16]=ee=>Xe("deltaVsBaseline"))}," Delta"+f(qe("deltaVsBaseline")),1),M[34]||(M[34]=i("th",{class:"trace-viewer__col-desktop",title:"Average render duration across all renders"}," Avg ms ",-1)),i("th",{class:"trace-viewer__sortable",title:"Sum of all render duration across filtered traces",onClick:M[17]||(M[17]=ee=>Xe("totalMs"))}," Total ms"+f(qe("totalMs")),1)])]),i("tbody",null,[P.value&&_.value>0?(m(),b("tr",q_,[i("td",{colspan:"7",style:we({height:`${_.value}px`})},null,4)])):q("",!0),(m(!0),b(_e,null,Ae(N.value,ee=>(m(),b("tr",{key:ee.componentKey,class:oe([{"trace-viewer__render-summary-row--active":J.value===ee.componentKey},"trace-viewer__render-summary-row"]),title:ee.file,onClick:De=>Qe(ee.componentKey)},[i("td",Q_,f(ee.componentName),1),i("td",Y_,f(ee.tracesSeen),1),i("td",Z_,f((Math.round(ee.avgRerendersPerTrace*10)/10).toFixed(1)),1),i("td",eg,f(ee.selectedRerenders??"n/a"),1),i("td",tg,[i("span",{class:oe(["trace-viewer__delta",Ge(ee.deltaVsBaseline)])},f(Ke(ee.deltaVsBaseline)),3)]),i("td",sg,f(F(ee.avgMsPerRender)),1),i("td",ng,f(F(ee.totalMs)),1)],10,X_))),128)),P.value&&S.value>0?(m(),b("tr",rg,[i("td",{colspan:"7",style:we({height:`${S.value}px`})},null,4)])):q("",!0),ye.value.length?q("",!0):(m(),b("tr",og,[...M[35]||(M[35]=[i("td",{colspan:"7",class:"tracker-empty-cell"},"No components match the comparison filters.",-1)])]))])])],512)):q("",!0)],64)):q("",!0)])):q("",!0),a.value==="flamegraph"?(m(),b("div",ig,[Be(Av,{trace:se.value,"selected-span-id":(Ee=l.value)==null?void 0:Ee.id,onSelectSpan:M[18]||(M[18]=ee=>l.value=ee)},null,8,["trace","selected-span-id"])])):q("",!0),a.value==="waterfall"?(m(),b("div",lg,[Be(em,{trace:se.value},null,8,["trace"])])):q("",!0)])]),i("div",ag,[Be(Lm,{trace:se.value,span:l.value,onSelectSpan:M[19]||(M[19]=ee=>l.value=ee)},null,8,["trace","span"])])])):q("",!0)])])}}}),ug=yt(cg,[["__scopeId","data-v-2e59a1b2"]]),dg={id:"app-root"},fg={class:"tabbar"},pg=["onClick"],hg={class:"tab-icon"},vg={class:"tab-content"},mg=vt({__name:"App",setup(e){const t={fetch:"fetch",provide:"provide",composables:"composable",heatmap:"heatmap",transitions:"transitions",traces:"traces"},s=window.location.pathname.split("/").filter(Boolean).pop()??"",n=re(t[s]??"fetch"),{features:r}=us();Ys();const o=A(()=>{const l=r.value||{};return[l.fetchDashboard&&{id:"fetch",label:"useFetch",icon:"⬡"},l.provideInjectGraph&&{id:"provide",label:"provide/inject",icon:"⬡"},l.composableTracker&&{id:"composable",label:"Composables",icon:"⬡"},l.renderHeatmap&&{id:"heatmap",label:"Heatmap",icon:"⬡"},l.transitionTracker&&{id:"transitions",label:"Transitions",icon:"⬡"},l.traceViewer&&{id:"traces",label:"Traces",icon:"⬡"}].filter(a=>!!a)});return(l,a)=>(m(),b("div",dg,[i("nav",fg,[a[0]||(a[0]=i("div",{class:"tabbar-brand"},"observatory",-1)),(m(!0),b(_e,null,Ae(o.value,c=>(m(),b("button",{key:c.id,class:oe(["tab-btn",{active:n.value===c.id}]),onClick:p=>n.value=c.id},[i("span",hg,f(c.icon),1),We(" "+f(c.label),1)],10,pg))),128))]),i("main",vg,[n.value==="fetch"?(m(),Lt(Bu,{key:0})):n.value==="provide"?(m(),Lt(Td,{key:1})):n.value==="composable"?(m(),Lt(sp,{key:2})):n.value==="heatmap"?(m(),Lt(Sh,{key:3})):n.value==="transitions"?(m(),Lt(gv,{key:4})):n.value==="traces"?(m(),Lt(ug,{key:5})):q("",!0)])]))}}),_g=yt(mg,[["__scopeId","data-v-535db4e7"]]);Rc(_g).mount("#app");