autotel-devtools 28.0.0 → 28.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- var AutotelDevtools=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,l=Array.prototype,u=Object.getPrototypeOf,d=Object.isExtensible;function f(e){return typeof e==`function`}var p=()=>{};function m(e){for(var t=0;t<e.length;t++)e[t]()}function h(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function g(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}function _(e){"@babel/helpers - typeof";return _=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_(e)}function v(e,t){if(_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function y(e){var t=v(e,`string`);return _(t)==`symbol`?t:t+``}function b(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=1<<24,S=1024,C=2048,w=4096,ee=8192,te=16384,ne=32768,re=1<<25,ie=65536,ae=1<<19,oe=1<<20,se=1<<25,ce=65536,le=1<<21,ue=1<<22,T=1<<23,de=Symbol(`$state`),fe=Symbol(`legacy props`),pe=Symbol(``),me=Symbol(`attributes`),he=Symbol(`class`),ge=Symbol(`style`),_e=Symbol(`text`),ve=Symbol(`form reset`),ye=new class extends Error{constructor(...e){super(...e),b(this,`name`,`StaleReactionError`),b(this,`message`,"The reaction that called `getAbortSignal()` was re-run or destroyed")}},be=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function xe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Se(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ce(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function we(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Te(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ee(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function De(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Oe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ke(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ae(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function je(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Me(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ne={},Pe=Symbol(`uninitialized`),Fe=`http://www.w3.org/2000/svg`,Ie=`@attach`;function Le(){console.warn(`https://svelte.dev/e/derived_inert`)}function Re(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ze(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Be(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var Ve=!1;function He(e){Ve=e}var Ue;function We(e){if(e===null)throw Re(),Ne;return Ue=e}function Ge(){return We(Dr(Ue))}function E(e){if(Ve){if(Dr(Ue)!==null)throw Re(),Ne;Ue=e}}function Ke(e=1){if(Ve){for(var t=e,n=Ue;t--;)n=Dr(n);Ue=n}}function qe(e=!0){for(var t=0,n=Ue;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Dr(n);e&&n.remove(),n=i}}function Je(e){if(!e||e.nodeType!==8)throw Re(),Ne;return e.data}function Ye(e){return e===this.v}function Xe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ze(e){return!Xe(e,this.v)}var Qe=null;function $e(e){Qe=e}function et(e){return st(`getContext`).get(e)}function tt(e,t){return st(`setContext`).set(e,t),t}function nt(e){return st(`hasContext`).has(e)}function rt(){return st(`getAllContexts`)}function it(e,t=!1,n){Qe={p:Qe,i:!1,c:null,e:null,s:e,x:null,r:pi,l:null}}function at(e){var t=Qe,n=t.e;if(n!==null){t.e=null;for(var r of n)zr(r)}return e!==void 0&&(t.x=e),t.i=!0,Qe=t.p,e??{}}function ot(){return!0}function st(e){var t;return Qe===null&&xe(e),(t=Qe).c??(t.c=new Map(ct(Qe)||void 0))}function ct(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var lt=[];function ut(){var e=lt;lt=[],m(e)}function dt(e){if(lt.length===0&&!Tn){var t=lt;queueMicrotask(()=>{t===lt&&ut()})}lt.push(e)}function ft(){for(;lt.length>0;)ut()}function pt(e){var t=pi;if(t===null)return ui.f|=T,e;if(!(t.f&32768)&&!(t.f&4))throw e;mt(e,t)}function mt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var ht=~(C|w|S);function gt(e,t){e.f=e.f&ht|t}function _t(e){e.f&512||e.deps===null?gt(e,S):gt(e,w)}function vt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,vt(t.deps))}function yt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),vt(e.deps),gt(e,S)}var bt=!1;function xt(e){var t=bt;try{return bt=!1,[e(),bt]}finally{bt=t}}function St(e,t){if(t){let t=document.body;e.autofocus=!0,dt(()=>{document.activeElement===t&&e.focus()})}}var Ct=!1;function wt(){Ct||(Ct=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[ve]?.()})},{capture:!0}))}function Tt(e){var t=ui,n=pi;fi(null),mi(null);try{return e()}finally{fi(t),mi(n)}}function Et(e,t,n,r=n){e.addEventListener(t,()=>Tt(n));let i=e[ve];e[ve]=i?()=>{i(),r(!0)}:()=>r(!0),wt()}function Dt(e){let t=0,n=dr(0),r;return()=>{Ir()&&(L(n),Gr(()=>(t===0&&(r=Fi(()=>e(()=>hr(n)))),t+=1,()=>{dt(()=>{--t,t===0&&(r?.(),r=void 0,hr(n))})})))}}function Ot(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function kt(e,t){Ot(e,t),t.add(e)}function D(e,t,n){Ot(e,t),t.set(e,n)}function O(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function k(e,t,n){return e.set(O(e,t),n),n}function A(e,t){return e.get(O(e,t))}var At=ie|ae;function jt(e,t,n,r){new Yt(e,t,n,r)}var Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap,Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,qt=new WeakMap,Jt=new WeakSet,Yt=class{constructor(e,t,n,r){kt(this,Jt),b(this,`parent`,void 0),b(this,`is_pending`,!1),b(this,`transform_error`,void 0),D(this,Mt,void 0),D(this,Nt,Ve?Ue:null),D(this,Pt,void 0),D(this,Ft,void 0),D(this,It,void 0),D(this,Lt,null),D(this,Rt,null),D(this,zt,null),D(this,Bt,null),D(this,Vt,0),D(this,Ht,0),D(this,Ut,!1),D(this,Wt,new Set),D(this,Gt,new Set),D(this,Kt,null),D(this,qt,Dt(()=>(k(Kt,this,dr(A(Vt,this))),()=>{k(Kt,this,null)}))),k(Mt,this,e),k(Pt,this,t),k(Ft,this,e=>{var t=pi;t.b=this,t.f|=128,n(e)}),this.parent=pi.b,this.transform_error=r??this.parent?.transform_error??(e=>e),k(It,this,Kr(()=>{if(Ve){let e=A(Nt,this);Ge();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));O(Jt,this,Zt).call(this,t)}else t?O(Jt,this,$t).call(this):O(Jt,this,Xt).call(this)}else O(Jt,this,en).call(this)},At)),Ve&&k(Mt,this,Ue)}defer_effect(e){yt(e,A(Wt,this),A(Gt,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!A(Pt,this).pending}update_pending_count(e,t){O(Jt,this,rn).call(this,e,t),k(Vt,this,A(Vt,this)+e),!(!A(Kt,this)||A(Ut,this))&&(k(Ut,this,!0),dt(()=>{k(Ut,this,!1),A(Kt,this)&&pr(A(Kt,this),A(Vt,this))}))}get_effect_pending(){return A(qt,this).call(this),L(A(Kt,this))}error(e){if(!A(Pt,this).onerror&&!A(Pt,this).failed)throw e;xn?.is_fork?(A(Lt,this)&&xn.skip_effect(A(Lt,this)),A(Rt,this)&&xn.skip_effect(A(Rt,this)),A(zt,this)&&xn.skip_effect(A(zt,this)),xn.oncommit(()=>{O(Jt,this,an).call(this,e)})):O(Jt,this,an).call(this,e)}};function Xt(){try{k(Lt,this,Jr(()=>A(Ft,this).call(this,A(Mt,this))))}catch(e){this.error(e)}}function Zt(e){let t=A(Pt,this).failed,{reset:n,invoke_onerror:r}=O(Jt,this,Qt).call(this,e);dt(r),t&&k(zt,this,Jr(()=>{t(A(Mt,this),()=>e,()=>n)}))}function Qt(e){var t=!1,n=!1;let r=()=>{if(t){Be();return}t=!0,n&&Me(),A(zt,this)!==null&&ti(A(zt,this),()=>{k(zt,this,null)}),O(Jt,this,nn).call(this,()=>{O(Jt,this,en).call(this)})};return{reset:r,invoke_onerror:()=>{try{n=!0,A(Pt,this).onerror?.(e,r),n=!1}catch(e){mt(e,A(It,this)&&A(It,this).parent)}}}}function $t(){let e=A(Pt,this).pending;e&&(this.is_pending=!0,k(Rt,this,Jr(()=>e(A(Mt,this)))),dt(()=>{var e=k(Bt,this,document.createDocumentFragment()),t=Tr();e.append(t),k(Lt,this,O(Jt,this,nn).call(this,()=>Jr(()=>A(Ft,this).call(this,t)))),A(Ht,this)===0&&(A(Mt,this).before(e),k(Bt,this,null),ti(A(Rt,this),()=>{k(Rt,this,null)}),O(Jt,this,tn).call(this,xn))}))}function en(){try{if(this.is_pending=this.has_pending_snippet(),k(Ht,this,0),k(Vt,this,0),k(Lt,this,Jr(()=>{A(Ft,this).call(this,A(Mt,this))})),A(Ht,this)>0){var e=k(Bt,this,document.createDocumentFragment());ai(A(Lt,this),e);let t=A(Pt,this).pending;k(Rt,this,Jr(()=>t(A(Mt,this))))}else O(Jt,this,tn).call(this,xn)}catch(e){this.error(e)}}function tn(e){this.is_pending=!1,e.transfer_effects(A(Wt,this),A(Gt,this))}function nn(e){var t=pi,n=ui,r=Qe;mi(A(It,this)),fi(A(It,this)),$e(A(It,this).ctx);try{return qn.ensure(),e()}catch(e){return pt(e),null}finally{mi(t),fi(n),$e(r)}}function rn(e,t){if(!this.has_pending_snippet()){if(this.parent){var n;O(Jt,n=this.parent,rn).call(n,e,t)}return}k(Ht,this,A(Ht,this)+e),A(Ht,this)===0&&(O(Jt,this,tn).call(this,t),A(Rt,this)&&ti(A(Rt,this),()=>{k(Rt,this,null)}),A(Bt,this)&&(A(Mt,this).before(A(Bt,this)),k(Bt,this,null)))}function an(e){A(Lt,this)&&(Qr(A(Lt,this)),k(Lt,this,null)),A(Rt,this)&&(Qr(A(Rt,this)),k(Rt,this,null)),A(zt,this)&&(Qr(A(zt,this)),k(zt,this,null)),Ve&&(We(A(Nt,this)),Ke(),We(qe()));let t=A(Pt,this).failed,n=e=>{let{reset:n,invoke_onerror:r}=O(Jt,this,Qt).call(this,e);r(),t&&k(zt,this,O(Jt,this,nn).call(this,()=>{try{return Jr(()=>{var r=pi;r.b=this,r.f|=128,t(A(Mt,this),()=>e,()=>n)})}catch(e){return mt(e,A(It,this).parent),null}}))};dt(()=>{var t;try{t=this.transform_error(e)}catch(e){mt(e,A(It,this)&&A(It,this).parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>mt(e,A(It,this)&&A(It,this).parent)):n(t)})}function on(e,t,n,r){let i=ot()?un:pn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=pi,c=sn(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){mt(e,s)}cn()}}var d=ln();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>fn(e))).then(u).catch(e=>mt(e,s)).finally(d)}l?l.then(()=>{c(),f(),cn()}):f()}function sn(){var e=pi,t=ui,n=Qe,r=xn;return function(i=!0){mi(e),fi(t),$e(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function cn(e=!0){mi(null),fi(null),$e(null),e&&xn?.deactivate()}function ln(){var e=pi,t=e.b,n=xn,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function un(e){var t=2|C;return pi!==null&&(pi.f|=ae),{ctx:Qe,deps:null,effects:null,equals:Ye,f:t,fn:e,reactions:null,rv:0,v:Pe,wv:0,parent:pi,ac:null}}var dn=Symbol(`obsolete`);function fn(e,t,n){let r=pi;r===null&&Se();var i=void 0,a=dr(Pe),o=!ui,s=new Set;return Wr(()=>{var t=pi,n=h();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==ye&&n.reject(e)}).finally(cn)}catch(e){n.reject(e),cn()}var c=xn;if(o){if(t.f&32768)var l=ln();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(dn);else for(let e of s.values())e.reject(dn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==dn&&(c.activate(),t?(a.f|=T,pr(a,t)):(a.f&8388608&&(a.f^=T),pr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Lr(()=>{for(let e of s)e.reject(dn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=un(e);return gi(t),t}function pn(e){let t=un(e);return t.equals=Ze,t}function mn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Qr(t[n])}}function hn(e){var t,n=pi,r=e.parent;if(!ci&&r!==null&&e.v!==Pe&&r.f&24576)return Le(),e.v;mi(r);try{e.f&=~ce,mn(e),t=Oi(e)}finally{mi(n)}return t}function gn(e){var t=hn(e);if(!e.equals(t)&&(e.wv=Ti(),(!xn?.is_fork||e.deps===null)&&(xn===null?e.v=t:(xn.capture(e,t,!0),Sn?.capture(e,t,!0)),e.deps===null))){gt(e,S);return}ci||(Cn===null?_t(e):(Ir()||xn?.is_fork)&&Cn.set(e,t))}function _n(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Tt(()=>{t.ac.abort(ye),t.ac=null}),t.fn!==null&&(t.teardown=p),Ai(t,0),Xr(t))}function vn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&ji(t)}var yn,bn=null,xn=null,Sn=null,Cn=null,wn=null,Tn=!1,En=!1,Dn=null,On=null,kn=0,An=1,jn=new WeakMap,Mn=new WeakMap,Nn=new WeakMap,Pn=new WeakMap,Fn=new WeakMap,In=new WeakMap,Ln=new WeakMap,Rn=new WeakMap,zn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Hn=new WeakMap,Un=new WeakMap,Wn=new WeakMap,Gn=new WeakMap,Kn=new WeakSet,qn=class e{constructor(){kt(this,Kn),b(this,`id`,An++),D(this,jn,!1),b(this,`linked`,!0),D(this,Mn,null),D(this,Nn,null),b(this,`async_deriveds`,new Map),b(this,`current`,new Map),b(this,`previous`,new Map),D(this,Pn,new Set),D(this,Fn,new Set),D(this,In,0),D(this,Ln,new Map),D(this,Rn,null),D(this,zn,[]),D(this,Bn,[]),D(this,Vn,new Set),D(this,Hn,new Set),D(this,Un,new Map),D(this,Wn,new Set),b(this,`is_fork`,!1),D(this,Gn,!1),bn===null?bn=this:(k(Nn,bn,this),k(Mn,this,bn)),bn=this}skip_effect(e){A(Un,this).has(e)||A(Un,this).set(e,{d:[],m:[]}),A(Wn,this).delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=A(Un,this).get(e);if(n){A(Un,this).delete(e);for(var r of n.d)gt(r,C),t(r);for(r of n.m)gt(r,w),t(r)}A(Wn,this).add(e)}capture(e,t,n=!1){e.v!==Pe&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),Cn?.set(e,t)),this.is_fork||(e.v=t)}activate(){xn=this}deactivate(){xn=null,Cn=null}flush(){try{En=!0,xn=this,O(Kn,this,Yn).call(this)}finally{kn=0,wn=null,Dn=null,On=null,En=!1,xn=null,Cn=null,lr.clear()}}discard(){for(let e of A(Fn,this))e(this);A(Fn,this).clear();for(let e of this.async_deriveds.values())e.reject(dn);O(Kn,this,er).call(this),A(Rn,this)?.resolve()}register_created_effect(e){A(Bn,this).push(e)}increment(e,t){if(k(In,this,A(In,this)+1),e){let e=A(Ln,this).get(t)??0;A(Ln,this).set(t,e+1)}}decrement(e,t){if(k(In,this,A(In,this)-1),e){let e=A(Ln,this).get(t)??0;e===1?A(Ln,this).delete(t):A(Ln,this).set(t,e-1)}A(Gn,this)||(k(Gn,this,!0),dt(()=>{k(Gn,this,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)A(Vn,this).add(t);for(let e of t)A(Hn,this).add(e);e.clear(),t.clear()}oncommit(e){A(Pn,this).add(e)}ondiscard(e){A(Fn,this).add(e)}settled(){return(A(Rn,this)??k(Rn,this,h())).promise}static ensure(){if(xn===null){let t=xn=new e;!En&&!Tn&&dt(()=>{A(jn,t)||t.flush()})}return xn}apply(){Cn=null}schedule(e){if(wn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Dn!==null&&t===pi&&(ui===null||!(ui.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=S}}A(zn,this).push(t)}};yn=qn;function Jn(){if(this.is_fork)return!0;for(let n of A(Ln,this).keys()){for(var e=n,t=!1;e.parent!==null;){if(A(Un,this).has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}function Yn(){k(jn,this,!0),kn++>1e3&&(O(Kn,this,er).call(this),nr());for(let e of A(Vn,this))A(Hn,this).delete(e),gt(e,C),this.schedule(e);for(let e of A(Hn,this))gt(e,w),this.schedule(e);let e=A(zn,this);k(zn,this,[]),this.apply();var t=Dn=[],n=[],r=On=[];for(let r of e)try{O(Kn,this,Xn).call(this,r,t,n)}catch(e){throw sr(r),O(Kn,this,Jn).call(this)||this.discard(),e}if(xn=null,r.length>0){var i=yn.ensure();for(let e of r)i.schedule(e)}if(Dn=null,On=null,O(Kn,this,Jn).call(this)){O(Kn,this,$n).call(this,n),O(Kn,this,$n).call(this,t);for(let[e,t]of A(Un,this))or(e,t);r.length>0&&O(Kn,xn,Yn).call(xn);return}let a=O(Kn,this,Zn).call(this);if(a){O(Kn,this,$n).call(this,n),O(Kn,this,$n).call(this,t),O(Kn,a,Qn).call(a,this);return}A(Vn,this).clear(),A(Hn,this).clear();for(let e of A(Pn,this))e(this);A(Pn,this).clear(),Sn=this,ir(n),ir(t),Sn=null,A(Rn,this)?.resolve();var o=xn;if(A(In,this)===0&&(A(zn,this).length===0||o!==null)&&O(Kn,this,er).call(this),A(zn,this).length>0){if(o!==null){let e=o;A(zn,e).push(...A(zn,this).filter(t=>!A(zn,e).includes(t)))}else o=this}o!==null&&O(Kn,o,Yn).call(o)}function Xn(e,t,n){e.f^=S;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||A(Un,this).has(r))&&r.fn!==null){a?r.f^=S:i&4?t.push(r):Ei(r)&&(i&16&&A(Hn,this).add(r),ji(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}function Zn(){for(var e=A(Mn,this);e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=A(Mn,e)}return null}function Qn(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(A(Vn,e),A(Hn,e));let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(A(Hn,this).delete(i),gt(i,C),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),O(Kn,e,er).call(e),xn=this,O(Kn,this,Yn).call(this)}function $n(e){for(var t=0;t<e.length;t+=1)yt(e[t],A(Vn,this),A(Hn,this))}function er(){if(this.linked){var e=A(Mn,this),t=A(Nn,this);e===null||k(Nn,e,t),t===null?bn=e:k(Mn,t,e),this.linked=!1}}function tr(e){var t=Tn;Tn=!0;try{var n;for(e&&(xn!==null&&!xn.is_fork&&xn.flush(),n=e());;){if(ft(),xn===null)return n;xn.flush()}}finally{Tn=t}}function nr(){try{De()}catch(e){mt(e,wn)}}var rr=null;function ir(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ei(r)&&(rr=new Set,ji(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&ei(r),rr?.size>0)){lr.clear();for(let e of rr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)rr.has(n)&&(rr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ji(n)}}rr.clear()}}rr=null}}function ar(e){xn.schedule(e)}function or(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),gt(e,S);for(var n=e.first;n!==null;)or(n,t),n=n.next}}function sr(e){gt(e,S);for(var t=e.first;t!==null;)sr(t),t=t.next}var cr=new Set,lr=new Map,ur=!1;function dr(e,t){return{f:0,v:e,reactions:null,equals:Ye,rv:0,wv:0}}function M(e,t){let n=dr(e,t);return gi(n),n}function fr(e,t=!1,n=!0){let r=dr(e);return t||(r.equals=Ze),r}function N(e,t,n=!1){return ui!==null&&(!di||ui.f&131072)&&ot()&&ui.f&4325394&&(hi===null||!hi.has(e))&&je(),pr(e,n?_r(t):t,On)}function pr(e,t,n=null){if(!e.equals(t)){lr.set(e,ci?t:e.v);var r=qn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&hn(t),Cn===null&&_t(t)}e.wv=Ti(),gr(e,C,n),ot()&&pi!==null&&pi.f&1024&&!(pi.f&96)&&(yi===null?bi([e]):yi.push(e)),!r.is_fork&&cr.size>0&&!ur&&mr()}return t}function mr(){ur=!1;for(let e of cr){e.f&1024&&gt(e,w);let t;try{t=Ei(e)}catch{t=!0}t&&ji(e)}cr.clear()}function hr(e){N(e,e.v+1)}function gr(e,t,n){var r=e.reactions;if(r!==null)for(var i=ot(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===pi)){var l=(c&C)===0;if(l&&gt(s,t),c&131072)cr.add(s);else if(c&2){var u=s;Cn?.delete(u),c&65536||(c&512&&(pi===null||!(pi.f&2097152))&&(s.f|=ce),gr(u,w,n))}else if(l){var d=s;c&16&&rr!==null&&rr.add(d),n===null?ar(d):n.push(d)}}}}function _r(e){if(typeof e!=`object`||!e||de in e)return e;let n=u(e);if(n!==c&&n!==l)return e;var r=new Map,i=t(e),a=M(0),s=null,d=Ci,f=e=>{if(Ci===d)return e();var t=ui,n=Ci;fi(null),wi(d);var r=e();return fi(t),wi(n),r};return i&&r.set(`length`,M(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&ke();var i=r.get(t);return i===void 0?f(()=>{var e=M(n.value,s);return r.set(t,e),e}):N(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>M(Pe,s));r.set(t,e),hr(a)}}else N(n,Pe),hr(a);return!0},get(t,n,i){if(n===de)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>M(_r(c?t[n]:Pe),s)),r.set(n,a)),a!==void 0){var l=L(a);return l===Pe?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=L(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==Pe)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===de)return!0;var n=r.get(t),i=n!==void 0&&n.v!==Pe||Reflect.has(e,t);return(n!==void 0||pi!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>M(i?_r(e[t]):Pe,s)),r.set(t,n)),L(n)===Pe)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>M(Pe,s)),r.set(d+``,p)):N(p,Pe)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>M(void 0,s)),N(l,_r(n)),r.set(t,l));else{u=l.v!==Pe;var m=f(()=>_r(n));N(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&N(g,_+1)}hr(a)}return!0},ownKeys(e){L(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==Pe});for(var[n,i]of r)i.v!==Pe&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Ae()}})}function vr(e){try{if(typeof e==`object`&&e&&de in e)return e[de]}catch{}return e}function yr(e,t){return Object.is(vr(e),vr(t))}var br,xr,Sr,Cr;function wr(){if(br===void 0){br=window,xr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Sr=o(t,`firstChild`).get,Cr=o(t,`nextSibling`).get,d(e)&&(e[he]=void 0,e[me]=null,e[ge]=void 0,e.__e=void 0),d(n)&&(n[_e]=void 0)}}function Tr(e=``){return document.createTextNode(e)}function Er(e){return Sr.call(e)}function Dr(e){return Cr.call(e)}function P(e,t){if(!Ve)return Er(e);var n=Er(Ue);if(n===null)n=Ue.appendChild(Tr());else if(t&&n.nodeType!==3){var r=Tr();return n?.before(r),We(r),r}return t&&Mr(n),We(n),n}function Or(e,t=!1){if(!Ve){var n=Er(e);return n instanceof Comment&&n.data===``?Dr(n):n}if(t){if(Ue?.nodeType!==3){var r=Tr();return Ue?.before(r),We(r),r}Mr(Ue)}return Ue}function F(e,t=1,n=!1){let r=Ve?Ue:e;for(var i;t--;)i=r,r=Dr(r);if(!Ve)return r;if(n){if(r?.nodeType!==3){var a=Tr();return r===null?i?.after(a):r.before(a),We(a),a}Mr(r)}return We(r),r}function kr(e){e.textContent=``}function Ar(){return!1}function jr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Mr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Nr(e){pi===null&&(ui===null&&Ee(e),Te()),ci&&we(e)}function Pr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Fr(e,t){var n=pi;n!==null&&n.f&8192&&(e|=ee);var r={ctx:Qe,deps:null,nodes:null,f:e|C|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};xn?.register_created_effect(r);var i=r;if(e&4)Dn===null?qn.ensure().schedule(r):Dn.push(r);else if(t!==null){try{ji(r)}catch(e){throw Qr(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ie))}if(i!==null&&(i.parent=n,n!==null&&Pr(i,n),ui!==null&&ui.f&2&&!(e&64))){var a=ui;(a.effects??(a.effects=[])).push(i)}return r}function Ir(){return ui!==null&&!di}function Lr(e){let t=Fr(8,null);return gt(t,S),t.teardown=e,t}function Rr(e){Nr(`$effect`);var t=pi.f;if(!ui&&t&32&&Qe!==null&&!Qe.i){var n=Qe;(n.e??(n.e=[])).push(e)}else return zr(e)}function zr(e){return Fr(4|oe,e)}function Br(e){return Nr(`$effect.pre`),Fr(8|oe,e)}function Vr(e){qn.ensure();let t=Fr(64|ae,e);return()=>{Qr(t)}}function Hr(e){qn.ensure();let t=Fr(64|ae,e);return(e={})=>new Promise(n=>{e.outro?ti(t,()=>{Qr(t),n(void 0)}):(Qr(t),n(void 0))})}function Ur(e){return Fr(4,e)}function Wr(e){return Fr(ue|ae,e)}function Gr(e,t=0){return Fr(8|t,e)}function I(e,t=[],n=[],r=[]){on(r,t,n,t=>{Fr(8,()=>{e(...t.map(L))})})}function Kr(e,t=0){return Fr(16|t,e)}function qr(e,t=0){return Fr(x|t,e)}function Jr(e){return Fr(32|ae,e)}function Yr(e){var t=e.teardown;if(t!==null){let e=ci,n=ui;li(!0),fi(null);try{t.call(null)}finally{li(e),fi(n)}}}function Xr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Tt(()=>{e.abort(ye)});var r=n.next;n.f&64?n.parent=null:Qr(n,t),n=r}}function Zr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Qr(t),t=n}}function Qr(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&($r(e.nodes.start,e.nodes.end),n=!0),e.f|=re,Xr(e,t&&!n),Ai(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Yr(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&ei(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function $r(e,t){for(;e!==null;){var n=e===t?null:Dr(e);e.remove(),e=n}}function ei(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ti(e,t,n=!0){var r=[];ni(e,r,!0);var i=()=>{n&&Qr(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function ni(e,t,n){if(!(e.f&8192)){e.f^=ee;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);ni(i,t,o?n:!1)}i=a}}}function ri(e){ii(e,!0)}function ii(e,t){if(e.f&8192){e.f^=ee,e.f&1024||(gt(e,C),qn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);ii(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function ai(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Dr(n);t.append(n),n=i}}var oi=null,si=!1,ci=!1;function li(e){ci=e}var ui=null,di=!1;function fi(e){ui=e}var pi=null;function mi(e){pi=e}var hi=null;function gi(e){ui!==null&&(hi??(hi=new Set)).add(e)}var _i=null,vi=0,yi=null;function bi(e){yi=e}var xi=1,Si=0,Ci=Si;function wi(e){Ci=e}function Ti(){return++xi}function Ei(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ei(a)&&gn(a),a.wv>e.wv)return!0}t&512&&Cn===null&&gt(e,S)}return!1}function Di(e,t,n=!0){var r=e.reactions;if(r!==null&&!(hi!==null&&hi.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Di(a,t,!1):t===a&&(n?gt(a,C):a.f&1024&&gt(a,w),ar(a))}}function Oi(e){var t=_i,n=vi,r=yi,i=ui,a=hi,o=Qe,s=di,c=Ci,l=e.f;_i=null,vi=0,yi=null,ui=l&96?null:e,hi=null,$e(e.ctx),di=!1,Ci=++Si,e.ac!==null&&(Tt(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=xn?.is_fork;if(_i!==null){var m;if(p||Ai(e,vi),f!==null&&vi>0)for(f.length=vi+_i.length,m=0;m<_i.length;m++)f[vi+m]=_i[m];else e.deps=f=_i;if(Ir()&&e.f&512)for(m=vi;m<f.length;m++){var h;((h=f[m]).reactions??(h.reactions=[])).push(e)}}else!p&&f!==null&&vi<f.length&&(Ai(e,vi),f.length=vi);if(ot()&&yi!==null&&!di&&f!==null&&!(e.f&6146))for(m=0;m<yi.length;m++)Di(yi[m],e);if(i!==null&&i!==e){if(Si++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Si;if(t!==null)for(let e of t)e.rv=Si;yi!==null&&(r===null?r=yi:r.push(...yi))}return e.f&8388608&&(e.f^=T),d}catch(e){return pt(e)}finally{e.f^=le,_i=t,vi=n,yi=r,ui=i,hi=a,$e(o),di=s,Ci=c}}function ki(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(_i===null||!r.call(_i,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),s.v!==Pe&&_t(s),s.ac!==null&&Tt(()=>{s.ac.abort(ye),s.ac=null,gt(s,C)}),_n(s),Ai(s,0)}}function Ai(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ki(e,n[r])}function ji(e){var t=e.f;if(!(t&16384)){gt(e,S);var n=pi,r=si;pi=e,si=!(t&96);try{t&16777232?Zr(e):Xr(e),Yr(e);var i=Oi(e);e.teardown=typeof i==`function`?i:null,e.wv=xi}finally{si=r,pi=n}}}async function Mi(){await Promise.resolve(),tr()}function L(e){var t=!!(e.f&2);if(oi?.add(e),ui!==null&&!di&&!(pi!==null&&pi.f&16384)&&(hi===null||!hi.has(e))){var n=ui.deps;if(ui.f&2097152)e.rv<Si&&(e.rv=Si,_i===null&&n!==null&&n[vi]===e?vi++:_i===null?_i=[e]:_i.push(e));else{var i;(i=ui).deps??(i.deps=[]),r.call(ui.deps,e)||ui.deps.push(e);var a=e.reactions;a===null?e.reactions=[ui]:r.call(a,ui)||a.push(ui)}}if(ci&&lr.has(e))return lr.get(e);if(t){var o=e;if(ci){var s=o.v;return(!(o.f&1024)&&o.reactions!==null||Pi(o))&&(s=hn(o)),lr.set(o,s),s}var c=!(o.f&512)&&!di&&ui!==null&&(si||!!(ui.f&512)),l=(o.f&ne)===0;Ei(o)&&(c&&(o.f|=512),gn(o)),c&&!l&&(vn(o),Ni(o))}if(Cn?.has(e))return Cn.get(e);if(e.f&8388608)throw e.v;return e.v}function Ni(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&2&&!(t.f&512)&&(vn(t),Ni(t))}function Pi(e){if(e.v===Pe)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(lr.has(t)||t.f&2&&Pi(t))return!0;return!1}function Fi(e){var t=di;try{return di=!0,e()}finally{di=t}}function Ii(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(de in e)Li(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&de in n&&Li(n)}}}function Li(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Li(e[n],t)}catch{}let n=u(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=s(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function Ri(){return Symbol(Ie)}function zi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Bi=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Vi(e){return Bi.includes(e)}var Hi=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),Ui={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function Wi(e){return e=e.toLowerCase(),Ui[e]??e}[...Hi];var Gi=[`touchstart`,`touchmove`];function Ki(e){return Gi.includes(e)}var qi=[`textarea`,`script`,`style`,`title`];function Ji(e){return qi.includes(e)}var Yi=Symbol(`events`),Xi=new Set,Zi=new Set;function Qi(e,t,n,r={}){function i(e){if(r.capture||ra.call(t,e),!e.cancelBubble)return Tt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?dt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function $i(e,t,n,r={}){var i=Qi(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ea(e,t,n,r,i){var a={capture:r,passive:i},o=Qi(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Lr(()=>{t.removeEventListener(e,o,a)})}function R(e,t,n){(t[Yi]??(t[Yi]={}))[e]=n}function ta(e){for(var t=0;t<e.length;t++)Xi.add(e[t]);for(var n of Zi)n(e)}var na=null;function ra(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;na=e;var s=0,c=na===e&&e[Yi];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[Yi]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){a(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=ui,f=pi;fi(null),mi(null);try{for(var p,m=[];o!==null&&o!==t;){try{var h=o[Yi]?.[r];h!=null&&(!o.disabled||e.target===o)&&h.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,o=s<i.length?i[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Yi]=t,delete e.currentTarget,fi(d),mi(f)}}}var ia=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function aa(e){return ia?.createHTML(e)??e}function oa(e){var t=jr(`template`);return t.innerHTML=aa(e.replaceAll(`<!>`,`<!---->`)),t.content}function sa(e,t){var n=pi;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function z(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(Ve)return sa(Ue,null),Ue;i===void 0&&(i=oa(a?e:`<!>`+e),n||(i=Er(i)));var t=r||xr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Er(t),s=t.lastChild;sa(o,s)}else sa(t,t);return t}}function ca(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(Ve)return sa(Ue,null),Ue;if(!o){var e=Er(oa(a));if(i)for(o=document.createDocumentFragment();Er(e);)o.appendChild(Er(e));else o=Er(e)}var t=o.cloneNode(!0);if(i){var n=Er(t),r=t.lastChild;sa(n,r)}else sa(t,t);return t}}function la(e,t){return ca(e,t,`svg`)}function ua(){if(Ve)return sa(Ue,null),Ue;var e=document.createDocumentFragment(),t=document.createComment(``),n=Tr();return e.append(t,n),sa(t,n),e}function B(e,t){if(Ve){var n=pi;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=Ue),Ge();return}e!==null&&e.before(t)}function da(){var e,t;if(Ve&&Ue&&Ue.nodeType===8&&Ue.textContent?.startsWith(`$`)){let e=Ue.textContent.substring(1);return Ge(),e}return(e=(t=window).__svelte??(t.__svelte={})).uid??(e.uid=1),`c${window.__svelte.uid++}`}var fa=!0;function pa(e){fa=e}function V(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[_e]??(e[_e]=e.nodeValue))&&(e[_e]=n,e.nodeValue=`${n}`)}function ma(e,t){return ga(e,t)}var ha=new Map;function ga(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){wr();var l=void 0,u=Hr(()=>{var u=n??t.appendChild(Tr());jt(u,{pending:()=>{}},t=>{it({});var n=Qe;if(o&&(n.c=o),a&&(r.$$events=a),Ve&&sa(t,null),fa=s,l=e(t,r)||{},fa=!0,Ve&&(pi.nodes.end=Ue,Ue===null||Ue.nodeType!==8||Ue.data!==`]`))throw Re(),Ne;at()},c);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=Ki(r);for(let e of[t,document]){var a=ha.get(e);a===void 0&&(a=new Map,ha.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ra,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(i(Xi)),Zi.add(f),()=>{for(var e of d)for(let n of[t,document]){var r=ha.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ra),r.delete(e),r.size===0&&ha.delete(n)):r.set(e,i)}Zi.delete(f),u!==n&&u.parentNode?.removeChild(u)}});return _a.set(l,u),l}var _a=new WeakMap;function va(e,t){let n=_a.get(e);return n?(_a.delete(e),n(t)):Promise.resolve()}var ya=new WeakMap,ba=new WeakMap,xa=new WeakMap,Sa=new WeakMap,Ca=new WeakMap,wa=new WeakMap,Ta=new WeakMap,Ea=class{constructor(e,t=!0){b(this,`anchor`,void 0),D(this,ya,new Map),D(this,ba,new Map),D(this,xa,new Map),D(this,Sa,new Set),D(this,Ca,!0),D(this,wa,e=>{if(A(ya,this).has(e)){var t=A(ya,this).get(e),n=A(ba,this).get(t);if(n)ri(n),A(Sa,this).delete(t);else{var r=A(xa,this).get(t);r&&(ri(r.effect),A(ba,this).set(t,r.effect),A(xa,this).delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of A(ya,this)){if(A(ya,this).delete(t),t===e)break;let r=A(xa,this).get(n);r&&(Qr(r.effect),A(xa,this).delete(n))}for(let[e,r]of A(ba,this)){if(e===t||A(Sa,this).has(e))continue;let i=()=>{if(Array.from(A(ya,this).values()).includes(e)){var t=document.createDocumentFragment();ai(r,t),t.append(Tr()),A(xa,this).set(e,{effect:r,fragment:t})}else Qr(r);A(Sa,this).delete(e),A(ba,this).delete(e)};A(Ca,this)||!n?(A(Sa,this).add(e),ti(r,i,!1)):i()}}}),D(this,Ta,e=>{A(ya,this).delete(e);let t=Array.from(A(ya,this).values());for(let[e,n]of A(xa,this))t.includes(e)||(Qr(n.effect),A(xa,this).delete(e))}),this.anchor=e,k(Ca,this,t)}ensure(e,t){var n=xn,r=Ar();if(t&&!A(ba,this).has(e)&&!A(xa,this).has(e)){if(r){var i=document.createDocumentFragment(),a=Tr();i.append(a),A(xa,this).set(e,{effect:Jr(()=>t(a)),fragment:i})}else A(ba,this).set(e,Jr(()=>t(this.anchor)))}if(A(ya,this).set(n,e),r){for(let[t,r]of A(ba,this))t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of A(xa,this))t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(A(wa,this)),n.ondiscard(A(Ta,this))}else Ve&&(this.anchor=Ue),A(wa,this).call(this,n)}};function H(e,t,n=!1){var r;Ve&&(r=Ue,Ge());var i=new Ea(e),a=n?ie:0;function o(e,t){if(Ve){var n=Je(r);if(e!==parseInt(n.substring(1))){var a=qe();We(a),i.anchor=a,He(!1),i.ensure(e,t),He(!0);return}}i.ensure(e,t)}Kr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Da=Symbol(`NaN`);function Oa(e,t,n){Ve&&Ge();var r=new Ea(e),i=!ot();Kr(()=>{var e=t();e!==e&&(e=Da),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function ka(e,t){return t}function Aa(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];ti(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;ja(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;kr(d),d.append(u),e.items.clear()}ja(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function ja(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=se,ai(a,document.createDocumentFragment())):Qr(t[i],n)}}var Ma;function Na(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=Ve?We(Er(u)):u.appendChild(Tr())}Ve&&Ge();var d=null,f=pn(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Fa(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=se,La(d,null,c)):ri(d):ti(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Kr(()=>{p=L(f);var e=p.length;let t=!1;Ve&&Je(c)===`[!`!=(e===0)&&(c=qe(),We(c),He(!1),t=!0);for(var i=new Set,u=xn,v=Ar(),y=0;y<e;y+=1){Ve&&Ue.nodeType===8&&Ue.data===`]`&&(c=Ue,t=!0,He(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&pr(S.v,b),S.i&&pr(S.i,y),v&&u.unskip_effect(S.e)):(S=Ia(l,h?c:Ma??(Ma=Tr()),b,x,y,o,n,r),h||(S.e.f|=se),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=Jr(()=>s(c)):(d=Jr(()=>s(Ma??(Ma=Tr()))),d.f|=se)),e>i.size&&Ce(``,``,``),Ve&&e>0&&We(qe()),!h){if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u)}t&&He(!0),L(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,Ve&&(c=Ue)}function Pa(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Fa(e,t,n,r,a){var o=!!(r&8),s=t.length,c=e.items,l=Pa(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??(f=new Set)).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(ri(_),o&&(_.nodes?.a?.unfix(),(f??(f=new Set)).delete(_))),_.f&33554432){if(_.f^=se,_===l)La(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ra(e,d,_),Ra(e,_,y),La(_,y,n),d=_,p=[],m=[],l=Pa(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],C=p[p.length-1];for(x=0;x<p.length;x+=1)La(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Ra(e,S.prev,C.next),Ra(e,d,S),Ra(e,C,b),l=b,d=C,--v,p=[],m=[]}else u.delete(_),La(_,l,n),Ra(e,_.prev,_.next),Ra(e,_,d===null?e.effect.first:d.next),Ra(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??(u=new Set)).add(l),m.push(l),l=Pa(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Pa(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(ja(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var w=[];if(u!==void 0)for(_ of u)_.f&8192||w.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&w.push(l),l=Pa(l.next);var ee=w.length;if(ee>0){var te=r&4&&s===0?n:null;if(o){for(v=0;v<ee;v+=1)w[v].nodes?.a?.measure();for(v=0;v<ee;v+=1)w[v].nodes?.a?.fix()}Aa(e,w,te)}}o&&dt(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ia(e,t,n,r,i,a,o,s){var c=o&1?o&16?dr(n):fr(n,!1,!1):null,l=o&2?dr(i):null;return{v:c,i:l,e:Jr(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function La(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=Dr(r);if(a.before(r),r===i)return;r=o}}function Ra(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function za(e,t,...n){var r=new Ea(e);Kr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ie)}function Ba(e,t,n){var r;Ve&&(r=Ue,Ge());var i=new Ea(e);Kr(()=>{var e=t()??null;if(Ve&&Je(r)===`[`!=(e!==null)){var a=qe();We(a),i.anchor=a,He(!1),i.ensure(e,e&&(t=>n(t,e))),He(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ie)}var Va=()=>performance.now(),Ha={tick:e=>requestAnimationFrame(e),now:()=>Va(),tasks:new Set};function Ua(){let e=Ha.now();Ha.tasks.forEach(t=>{t.c(e)||(Ha.tasks.delete(t),t.f())}),Ha.tasks.size!==0&&Ha.tick(Ua)}function Wa(e){let t;return Ha.tasks.size===0&&Ha.tick(Ua),{promise:new Promise(n=>{Ha.tasks.add(t={c:e,f:n})}),abort(){Ha.tasks.delete(t)}}}function Ga(e,t){Tt(()=>{e.dispatchEvent(new CustomEvent(t))})}function Ka(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function qa(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Ka(n.trim());t[i]=r.trim()}return t}var Ja=e=>e;function Ya(e,t,n,r){var i,a=!!(e&1),o=!!(e&2),s=a&&o,c=!!(e&4),l=s?`both`:a?`in`:`out`,u,d=t.inert,f=t.style.overflow,p,m;function h(){return Tt(()=>u??(u=n()(t,r?.()??{},{direction:l})))}var g={is_global:c,in(){if(t.inert=d,!a){m?.abort(),m?.reset?.();return}o||p?.abort(),p=Xa(t,h(),m,1,()=>{Ga(t,`introstart`)},()=>{Ga(t,`introend`),p?.abort(),p=u=void 0,t.style.overflow=f})},out(e){if(!o){e?.(),u=void 0;return}t.inert=!0,m=Xa(t,h(),p,0,()=>{Ga(t,`outrostart`)},()=>{Ga(t,`outroend`),e?.()})},stop:()=>{p?.abort(),m?.abort()}},_=pi;if(((i=_.nodes).t??(i.t=[])).push(g),a&&fa){var v=c;if(!v){for(var y=_.parent;y&&y.f&65536;)for(;(y=y.parent)&&!(y.f&16););v=!y||!!(y.f&32768)}v&&Ur(()=>{Fi(()=>g.in())})}}function Xa(e,t,n,r,i,a){var o=r===1;if(f(t)){var s,c=!1;return dt(()=>{c||(s=Xa(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:p,deactivate:p,reset:p,t:()=>r};let{delay:l=0,css:u,tick:d,easing:m=Ja}=t;var h=[];if(o&&n===void 0&&(d&&d(0,1),u)){var g=qa(u(0,1));h.push(g,g)}var _=()=>1-r,v=e.animate(h,{duration:l,fill:`forwards`});return v.onfinish=()=>{v.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var f=!1;if(u)for(var p=Math.ceil(c/(1e3/60)),h=0;h<=p;h+=1){var g=o+s*m(h/p),y=qa(u(g,1-g));l.push(y),f||(f=y.overflow===`hidden`)}f&&(e.style.overflow=`hidden`),_=()=>{var e=v.currentTime;return o+s*m(e/c)},d&&Wa(()=>{if(v.playState!==`running`)return!1;var e=_();return d(e,1-e),!0})}v=e.animate(l,{duration:c,fill:`forwards`}),v.onfinish=()=>{_=()=>r,d?.(r,1-r),a()}},{abort:()=>{v&&(v.cancel(),v.effect=null,v.onfinish=p)},deactivate:()=>{a=p},reset:()=>{r===0&&d?.(1,0)},t:()=>_()}}function Za(e,t,n,r,i,a){let o=Ve;Ve&&Ge();var s=null;Ve&&Ue.nodeType===1&&(s=Ue,Ge());var c=Ve?Ue:e,l=new Ea(c,!1);Kr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Fe:void 0;if(e===null){l.ensure(null,null),pa(!0);return}return l.ensure(e,t=>{if(e){if(s=Ve?s:jr(e,a),sa(s,s),r){var n=null;Ve&&Ji(e)&&s.append(n=document.createComment(``));var i=Ve?Er(s):s.appendChild(Tr());Ve&&(i===null?He(!1):We(i)),r(s,i),n?.remove()}pi.nodes.end=s,t.before(s)}Ve&&We(t)}),pa(!0),()=>{e&&pa(!1)}},ie),Lr(()=>{pa(!0)}),o&&(He(!0),We(c))}function Qa(e,t,n){Ur(()=>{var r=Fi(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};Gr(()=>{var e=n();Ii(e),i&&Xe(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function $a(e,t){var n=void 0,r;qr(()=>{n!==(n=t())&&(r&&(Qr(r),r=null),n&&(r=Jr(()=>{Ur(()=>n(e))})))})}function eo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=eo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function to(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=eo(e))&&(r&&(r+=` `),r+=t);return r}function U(e){return typeof e==`object`?to(e):e??``}var no=[...`
2
- \r\f\xA0\v`];function ro(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||no.includes(r[o-1]))&&(s===r.length||no.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function io(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ao(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function oo(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ao)),i&&c.push(...Object.keys(i).map(ao));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ao(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=io(r)),i&&(n+=io(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function W(e,t,n,r,i,a){var o=e[he];if(Ve||o!==n||o===void 0){var s=ro(n,r,a);(!Ve||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[he]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function so(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function co(e,t,n,r){var i=e[ge];if(Ve||i!==t){var a=oo(t,r);(!Ve||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[ge]=t}else r&&(Array.isArray(r)?(so(e,n?.[0],r[0]),so(e,n?.[1],r[1],`important`)):so(e,n,r));return r}function lo(e,n,r=!1){if(e.multiple){if(n==null)return;if(!t(n))return ze();for(var i of e.options)i.selected=n.includes(fo(i));return}for(i of e.options)if(yr(fo(i),n)){i.selected=!0;return}(!r||n!==void 0)&&(e.selectedIndex=-1)}function uo(e){var t=new MutationObserver(()=>{`__value`in e&&lo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Lr(()=>{t.disconnect()})}function fo(e){return`__value`in e?e.__value:e.value}var po=Symbol(`class`),mo=Symbol(`style`),ho=Symbol(`is custom element`),go=Symbol(`is html`),_o=be?`link`:`LINK`,vo=be?`input`:`INPUT`,yo=be?`option`:`OPTION`,bo=be?`select`:`SELECT`,xo=be?`progress`:`PROGRESS`;function So(e){if(Ve){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;G(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;G(e,`checked`,null),e.checked=r}}};e[ve]=n,dt(n),wt()}}function Co(e,t){var n=Oo(e);n.value!==(n.value=t??void 0)&&(e.value!==t||t===0&&e.nodeName===xo)&&(e.value=t??``)}function wo(e,t){var n=Oo(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function To(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function G(e,t,n,r){var i=Oo(e);Ve&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===_o)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ao(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Eo(e,t,n,r,i=!1,a=!1){if(Ve&&i&&e.nodeName===vo){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||So(o)}var s=Oo(e),c=s[ho],l=!s[go];let u=Ve&&c;u&&He(!1);var d=t||{},f=e.nodeName===yo;for(var p in t)p in n||(n[p]=null);n.class?n.class=U(n.class):(r||n[po])&&(n.class=null),n[mo]&&(n.style??(n.style=null));var m=Ao(e);if(e.nodeName===vo&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,G(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){W(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[po],n[po]),d[i]=o,d[po]=n[po];continue}if(i===`style`){co(e,o,t?.[mo],n[mo]),d[i]=o,d[mo]=n[mo];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Vi(r);if(zi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)R(r,e,o),ta([r]);else if(o!=null){function y(e){d[i].call(this,e)}d[n]=Qi(r,e,y,t)}}else if(i===`style`)G(e,i,o);else if(i===`autofocus`)St(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)To(e,o);else{var b=i;l||(b=Wi(b));var x=b===`defaultValue`||b===`defaultChecked`;if(o==null&&!c&&!x){if(s[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||m.includes(b)&&(c||typeof o!=`string`)?(e[b]=o,b in s&&(s[b]=Pe)):typeof o!=`function`&&G(e,b,o,a)}}}}return u&&He(!0),d}function Do(e,t,n=[],r=[],i=[],a,o=!1,s=!1){on(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===bo,l=!1;if(qr(()=>{var u=t(...n.map(L)),d=Eo(e,r,u,a,o,s);l&&c&&`value`in u&&lo(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||Qr(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&Qr(i[t]),i[t]=Jr(()=>$a(e,()=>f))),d[t]=f}r=d}),c){var u=e;Ur(()=>{lo(u,r.value,!0),uo(u)})}l=!0})}function Oo(e){return e[me]??(e[me]={[ho]:e.nodeName.includes(`-`),[go]:e.namespaceURI===`http://www.w3.org/1999/xhtml`})}var ko=new Map;function Ao(e){var t=e.getAttribute(`is`)||e.nodeName,n=ko.get(t);if(n)return n;ko.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=u(i)}return n}function jo(e,t,n=t){var r=new WeakSet;Et(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Mo(e)?No(a):a,n(a),xn!==null&&r.add(xn),await Mi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(Ve&&e.defaultValue!==e.value||Fi(t)==null&&e.value)&&(n(Mo(e)?No(e.value):e.value),xn!==null&&r.add(xn)),Gr(()=>{var n=t();if(e===document.activeElement){var i=xn;if(r.has(i))return}Mo(e)&&n===No(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Mo(e){var t=e.type;return t===`number`||t===`range`}function No(e){return e===``?null:+e}var Po,Fo=new WeakMap,Io=new WeakMap,Lo=new WeakMap,Ro=new WeakSet,zo=class{constructor(e){kt(this,Ro),D(this,Fo,new WeakMap),D(this,Io,void 0),D(this,Lo,void 0),k(Lo,this,e)}observe(e,t){var n=A(Fo,this).get(e)||new Set;return n.add(t),A(Fo,this).set(e,n),O(Ro,this,Bo).call(this).observe(e,A(Lo,this)),()=>{var n=A(Fo,this).get(e);n.delete(t),n.size===0&&(A(Fo,this).delete(e),A(Io,this).unobserve(e))}}};Po=zo;function Bo(){return A(Io,this)??k(Io,this,new ResizeObserver(e=>{for(var t of e){Po.entries.set(t.target,t);for(var n of A(Fo,this).get(t.target)||[])n(t)}}))}b(zo,`entries`,new WeakMap);function Vo(e,t){return e===t||e?.[de]===t}function Ho(e={},t,n,r){var i=Qe.r,a=pi;return Ur(()=>{var o,s;return Gr(()=>{o=s,s=r?.()||[],Fi(()=>{Vo(n(...s),e)||(t(e,...s),o&&Vo(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Vo(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var Uo={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function K(e,t,n){return new Proxy({props:e,exclude:t},Uo)}var Wo={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(f(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];f(i)&&(i=i());let a=o(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(f(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=o(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===de||t===fe)return!1;for(let n of e.props)if(f(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(f(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function q(...e){return new Proxy({props:e},Wo)}function J(e,t,n,r){var i=!0,a=!!(n&8),s=!!(n&16),c=r,l=!0,u=void 0,d=()=>s&&i?(u??(u=un(r)),L(u)):(l&&(l=!1,c=s?Fi(r):r),c);let f;if(a){var p=de in e||fe in e;f=o(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=xt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Oe(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?un:pn)(()=>(v=!1,g()));a&&L(y);var b=pi;return(function(e,t){if(arguments.length>0){let n=t?L(y):i&&a?_r(e):e;return N(y,n),v=!0,c!==void 0&&(c=n),e}return ci&&v||b.f&16384?y.v:L(y)})}function Go(e){Qe===null&&xe(`onMount`),Rr(()=>{let t=Fi(e);if(typeof t==`function`)return t})}if(typeof window<`u`){var Ko,qo;((Ko=(qo=window).__svelte??(qo.__svelte={})).v??(Ko.v=new Set)).add(`5`)}function Jo(e){return{...e,endTime:e.endTime??(e.startTime??0)+(e.duration??0)}}function Yo(e){let t=Array.isArray(e.spans)?e.spans.map(Jo):[];return{...Jo(e),rootSpan:e.rootSpan?Jo(e.rootSpan):t[0],spans:t}}var Xo=e=>e.map(Yo),Zo=class{constructor(e){b(this,`url`,void 0),b(this,`ws`,null),b(this,`reconnectTimer`,null),b(this,`messageHandlers`,new Set),b(this,`statusHandlers`,new Set),b(this,`reconnectAttempts`,0),b(this,`closed`,!1),b(this,`reconnectDelay`,1e3),b(this,`maxReconnectDelay`,15e3),this.url=e}connect(){this.closed=!1;try{this.ws=new WebSocket(this.url),this.ws.addEventListener(`open`,()=>{this.reconnectAttempts=0,this.emitStatus(`connected`)}),this.ws.addEventListener(`message`,e=>{try{let t=JSON.parse(e.data),n=Array.isArray(t?.traces)?{...t,traces:Xo(t.traces)}:t;for(let e of this.messageHandlers)e(n)}catch{}}),this.ws.addEventListener(`close`,()=>{this.emitStatus(`disconnected`),this.scheduleReconnect()})}catch{this.emitStatus(`disconnected`),this.scheduleReconnect()}}emitStatus(e){if(!this.closed)for(let t of this.statusHandlers)t(e)}scheduleReconnect(){if(this.closed||this.reconnectTimer)return;this.reconnectAttempts++;let e=Math.min(this.reconnectDelay*2**(this.reconnectAttempts-1),this.maxReconnectDelay);this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},e)}onMessage(e){return this.messageHandlers.add(e),()=>this.messageHandlers.delete(e)}onStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}disconnect(){this.closed=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null),this.messageHandlers.clear(),this.statusHandlers.clear()}isConnected(){return this.ws?.readyState===WebSocket.OPEN}};function Qo(e){try{let t=new URL(e);return t.protocol===`ws:`?`http://${t.host}`:t.protocol===`wss:`?`https://${t.host}`:null}catch{return null}}function $o(e,t=fetch){return async(n,r)=>{if(n.kind!==`app`)return null;let i=new URL(`/source`,e);i.searchParams.set(`file`,n.file),i.searchParams.set(`line`,String(n.line)),i.searchParams.set(`context`,String(r));try{let e=await t(i.toString());return e.ok?await e.json():null}catch{return null}}}var es=null;function ts(e){es=e===null?null:$o(e)}var ns=(e,t)=>es===null?Promise.resolve(null):es(e,t),rs=new WeakMap,is=class{constructor(e){D(this,rs,M(void 0)),N(A(rs,this),e,!0)}get value(){return L(A(rs,this))}set value(e){N(A(rs,this),e,!0)}},as=new WeakMap,os=new WeakMap,ss=class{constructor(e){D(this,as,void 0),D(this,os,j(()=>A(as,this).call(this))),k(as,this,e)}get value(){return L(A(os,this))}};function cs(e){return new is(e)}function ls(e){return new ss(e)}function us(e){return Vr(()=>{Rr(e)})}function ds(e,...t){for(let n of t){let t=e?.[n];if(typeof t==`string`&&t.length>0)return t}}function Y(e){return typeof e==`string`?e:void 0}function fs(e){if(typeof e==`number`)return e;if(typeof e==`string`&&e!==``){let t=Number(e);return Number.isFinite(t)?t:void 0}}function ps(e){if(typeof e==`boolean`)return e;if(e===`true`)return!0;if(e===`false`)return!1}function ms(e){if(Array.isArray(e)){let t=e.filter(e=>typeof e==`string`);return t.length===e.length?t:void 0}return typeof e==`string`?[e]:void 0}function hs(e,t){let n=e.attributes||{},r=[n[`service.name`],n[`service.peer.name`],n[`peer.service`],n[`http.host`],n[`db.system.name`],n[`db.system`],n[`messaging.system`],n[`rpc.service`],t];for(let e of r){let t=Y(e)?.trim();if(t)return t}return`unknown`}function gs(e,t){return Y(e[`db.system.name`])!==void 0||Y(e[`db.system`])!==void 0?`database`:Y(e[`cache.system`])===void 0?Y(e[`messaging.system`])===void 0?Y(e[`service.peer.name`])!==void 0||Y(e[`peer.service`])!==void 0||Y(e[`net.peer.name`])!==void 0||Y(e[`http.host`])!==void 0?t===e[`service.name`]?`service`:`external`:Y(e[`service.name`])===void 0?`unknown`:`service`:`messaging`:`cache`}function _s(e){if(e.resourceName)return e.resourceName;let t=e.resource||{},n=[t[`service.name`],t[`service.namespace`],t[`host.name`],t[`container.name`]];for(let e of n){let t=Y(e)?.trim();if(t)return t}return`unknown`}function vs(e,t){if(e===0&&t===0)return`unknown`;let n=e===0?1:t/e;return n>=.2?`unhealthy`:n>=.05?`degraded`:`healthy`}function ys(e){let t=new Map,n=(e,n=`unknown`)=>{let r=t.get(e);if(r)return r.type===`unknown`&&n!==`unknown`&&(r.type=n),r;let i={name:e,type:n,health:`unknown`,requestCount:0,errorCount:0,traceCount:0,logCount:0};return t.set(e,i),i};for(let t of e.traces){let e=new Set;for(let r of t.spans){let i=hs(r,t.service),a=n(i,gs(r.attributes,i));a.requestCount+=1,a.lastSeen=Math.max(a.lastSeen??0,r.endTime),r.status.code===`ERROR`&&(a.errorCount+=1),e.has(i)||(a.traceCount+=1,e.add(i))}}for(let t of e.logs){let e=n(_s(t),`service`);e.logCount+=1,e.lastSeen=Math.max(e.lastSeen??0,t.timestamp)}for(let t of e.errors){if(!t.service)continue;let e=n(t.service,`service`);e.errorCount+=t.count,e.lastSeen=Math.max(e.lastSeen??0,t.lastSeen)}return[...t.values()].map(e=>({...e,health:vs(e.requestCount,e.errorCount)})).sort((e,t)=>{let n=(t.lastSeen??0)-(e.lastSeen??0);return n===0?e.name.localeCompare(t.name):n})}var bs=[{id:`all`,label:`All time`,durationMs:null},{id:`5m`,label:`Last 5m`,durationMs:3e5},{id:`15m`,label:`Last 15m`,durationMs:9e5},{id:`30m`,label:`Last 30m`,durationMs:18e5},{id:`1h`,label:`Last 1h`,durationMs:36e5},{id:`3h`,label:`Last 3h`,durationMs:108e5},{id:`6h`,label:`Last 6h`,durationMs:216e5},{id:`24h`,label:`Last 24h`,durationMs:864e5},{id:`7d`,label:`Last 7d`,durationMs:6048e5}],xs={type:`preset`,preset:`all`},Ss=new Map(bs.map(e=>[e.id,e]));function Cs(e,t){let n=Ss.get(e);return!n||n.durationMs===null?{start:null,end:null}:{start:t-n.durationMs,end:t}}function ws(e,t){return e.type===`preset`?Cs(e.preset,t):{start:Math.min(e.start,e.end),end:Math.max(e.start,e.end)}}function Ts(e){return e.start===null||e.end===null}function Es(e){return e.type===`preset`?Ss.get(e.preset)?.label??`All time`:`${Ds(e.start)} → ${Ds(e.end)}`}function Ds(e){let t=new Date(e),n=new Date,r=t.toDateString()===n.toDateString(),i=t.toLocaleTimeString(void 0,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`});return r?i:`${t.toLocaleDateString(void 0,{month:`short`,day:`numeric`})} ${i}`}function Os(e){return e.type===`preset`?e.preset===xs.preset?null:e.preset:`custom:${e.start}:${e.end}`}function ks(e){if(!e)return xs;if(e.startsWith(`custom:`)){let[,t,n]=e.split(`:`),r=Number(t),i=Number(n);return!Number.isFinite(r)||!Number.isFinite(i)?xs:{type:`custom`,start:r,end:i}}return Ss.has(e)?{type:`preset`,preset:e}:xs}function As(e){if(!Ts(e))return{start:e.start,end:e.end}}var js=[`gen_ai.system`,`gen_ai.provider.name`,`gen_ai.operation.name`,`ai.model.provider`];function Ms(e){let t=e.attributes??{};for(let e of js)if(t[e]!=null)return!0;return!1}function Ns(e){let t=e.toLowerCase();return t===`az.ai.openai`||t===`azure_openai`?`openai`:t===`vertex_ai`||t===`gcp.vertex_ai`||t===`gcp.gemini`?`google`:t}function Ps(e){let t=Object.keys(e).sort((e,t)=>{let n=e.split(`/`)[1]??``;return(t.split(`/`)[1]??``).length-n.length});return(n,r)=>{let i=Ns(n),a=r.toLowerCase();for(let n of t){let[t,r]=n.split(`/`);if(t===i&&a.startsWith(r))return e[n]}}}var Fs=Ps({"openai/gpt-4o":{inputPerMTok:2.5,outputPerMTok:10},"openai/gpt-4o-mini":{inputPerMTok:.15,outputPerMTok:.6},"openai/gpt-4-turbo":{inputPerMTok:10,outputPerMTok:30},"openai/gpt-3.5-turbo":{inputPerMTok:.5,outputPerMTok:1.5},"anthropic/claude-opus-4":{inputPerMTok:15,outputPerMTok:75},"anthropic/claude-sonnet-4":{inputPerMTok:3,outputPerMTok:15},"anthropic/claude-3-5-sonnet":{inputPerMTok:3,outputPerMTok:15},"anthropic/claude-3-5-haiku":{inputPerMTok:.8,outputPerMTok:4},"anthropic/claude-3-opus":{inputPerMTok:15,outputPerMTok:75},"anthropic/claude-3-haiku":{inputPerMTok:.25,outputPerMTok:1.25},"google/gemini-2.5-flash":{inputPerMTok:.3,outputPerMTok:2.5},"google/gemini-2.0-flash":{inputPerMTok:.1,outputPerMTok:.4},"google/gemini-1.5-pro":{inputPerMTok:1.25,outputPerMTok:5},"google/gemini-1.5-flash":{inputPerMTok:.075,outputPerMTok:.3},"mistral/mistral-large":{inputPerMTok:2,outputPerMTok:6},"mistral/mistral-small":{inputPerMTok:.2,outputPerMTok:.6},"groq/llama-3.1-70b":{inputPerMTok:.59,outputPerMTok:.79},"deepseek/deepseek-chat":{inputPerMTok:.27,outputPerMTok:1.1}});function Is(e){let t=Fs(e.provider,e.model);if(!t)return{currency:`USD`,input:0,output:0,cacheRead:0,cacheWrite:0,total:0,source:`unknown`};let n=t.cacheReadPerMTok??t.inputPerMTok*.1,r=t.cacheWritePerMTok??t.inputPerMTok*1.25,i=(e.cacheReadInputTokens??0)/1e6*n,a=(e.cacheCreationInputTokens??0)/1e6*r,o=Math.max(0,(e.inputTokens??0)-(e.cacheReadInputTokens??0)-(e.cacheCreationInputTokens??0))/1e6*t.inputPerMTok,s=(e.outputTokens??0)/1e6*t.outputPerMTok;return{currency:`USD`,input:o,output:s,cacheRead:i,cacheWrite:a,total:o+s+i+a,source:`table`}}function Ls(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function Rs(e,t){let n=e[t];return typeof n==`string`?n:void 0}function zs(e,t){let n=e[t];return typeof n==`number`?n:void 0}function Bs(e,t){return Ls(e[t])}function Vs(e,t){let n=e[t];return Array.isArray(n)?n:[]}function Hs(e,t){return Array.isArray(e[t])}function Us(e,t,n,r){return r.filter(t=>n(e,t)===void 0).map(e=>`${t}: Missing or invalid ${e}`)}function Ws(e){if(e!=null){if(typeof e==`object`)return e;if(typeof e==`string`)try{return JSON.parse(e)}catch{return}}}function Gs(e){if(Array.isArray(e.parts))return e.parts.map(e=>{let t=e.type??`text`;return t===`text`?{kind:`text`,text:String(e.content??``)}:t===`image`?{kind:`image`,mediaType:`image/*`,dataRef:String(e.content??``)}:t===`audio`?{kind:`audio`,mediaType:`audio/*`,dataRef:String(e.content??``)}:{kind:`json`,value:e.content}});if(Array.isArray(e.content))return e.content.map(e=>e.type===`text`||e.text!==void 0?{kind:`text`,text:String(e.text??``)}:e.type===`image`?{kind:`image`,mediaType:e.mimeType??`image/*`,dataRef:String(e.image??e.data??``)}:e.type===`audio`?{kind:`audio`,mediaType:e.mimeType??`audio/*`,dataRef:String(e.data??``)}:{kind:`json`,value:e});let t=Y(e.content);return t===void 0?e.content==null?[]:[{kind:`json`,value:e.content}]:[{kind:`text`,text:t}]}function Ks(e){let t=Ls(e);return t&&`value`in t?t.value:e}function qs(e){return e.type===`tool-call`?{kind:`call`,call:{id:e.toolCallId,name:e.toolName??``,arguments:Ws(e.input)??e.input??{}}}:e.type===`tool-result`?{kind:`result`,result:{id:e.toolCallId,value:Ks(e.output)}}:e.type===`text`||e.text!==void 0?{kind:`text`,text:String(e.text??``)}:null}function Js(e){return e.type===`tool_call`?{kind:`call`,call:{id:e.id,name:e.name??``,arguments:Ws(e.arguments)??e.arguments??{}}}:e.type===`tool_call_response`?{kind:`result`,result:{id:e.id,value:Ks(e.response)}}:e.type===`text`||e.type==null?{kind:`text`,text:String(e.content??``)}:null}function Ys(e,t,n){let r=[],i=[],a=[];for(let e of t)e.kind===`call`?r.push(e.call):e.kind===`result`?a.push(e.result):i.push({kind:`text`,text:e.text});if(a.length>1){let t={role:e,parts:[]};return t._toolResults=a,t}let o={role:e,parts:i};return r.length>0&&(o.toolCalls=r),a.length===1&&(o.toolCallId=a[0].id,o.parts=[{kind:`json`,value:a[0].value}]),n&&(o.finishReason=n),o}function Xs(e){let t=e.role??`user`;if(Array.isArray(e.content)){let n=e.content;if(n.some(e=>e.type===`tool-call`||e.type===`tool-result`))return Ys(t,n.map(qs).filter(e=>e!==null),e.finish_reason)}if(Array.isArray(e.parts)){let n=e.parts;if(n.some(e=>e.type===`tool_call`||e.type===`tool_call_response`))return Ys(t,n.map(Js).filter(e=>e!==null),e.finish_reason)}let n={role:t,parts:Gs(e)};return Array.isArray(e.tool_calls)&&e.tool_calls.length>0&&(n.toolCalls=e.tool_calls.map(e=>({id:e.id,name:e.function?.name??``,arguments:Ws(e.function?.arguments)??e.function?.arguments??{},type:e.type}))),e.tool_call_id&&(n.toolCallId=e.tool_call_id),e.finish_reason&&(n.finishReason=e.finish_reason),n}function Zs(e,t){let n=Ws(e[t]);if(Array.isArray(n))return n.map(Xs)}function Qs(e){if(!e||e.length===0)return[];let t=[];for(let n of e){let e=n.attributes??{};if(n.name===`gen_ai.choice`){let n=e.message,r=Ws(e.message)??n,i=Y(e.finish_reason);if(r){let e=Xs(r);i&&(e.finishReason=i),t.push(e)}continue}let r=n.name.match(/^gen_ai\.(system|user|assistant|tool)\.message$/);if(!r)continue;let i=r[1],a=e.content,o=Y(a),s=o===void 0?a:Ws(o)??o;t.push(Xs({role:i,content:s,tool_calls:Ws(e.tool_calls),tool_call_id:Y(e.id)??Y(e.tool_call_id)}))}return t}function $s(e){let t=Ws(e[`gen_ai.tool.definitions`]??e[`gen_ai.orchestrator.agent.definitions`]);if(Array.isArray(t))return t.filter(e=>Y(e.name)!==void 0).map(e=>({name:e.name,description:e.description,type:e.type,schema:e.schema??e.parameters}))}function ec(e){return{inputTokens:fs(e[`gen_ai.usage.input_tokens`])??fs(e[`gen_ai.usage.prompt_tokens`])??fs(e[`llm.usage.prompt_tokens`])??fs(e[`ai.usage.inputTokens`]),outputTokens:fs(e[`gen_ai.usage.output_tokens`])??fs(e[`gen_ai.usage.completion_tokens`])??fs(e[`llm.usage.completion_tokens`])??fs(e[`ai.usage.outputTokens`]),reasoningOutputTokens:fs(e[`gen_ai.usage.reasoning.output_tokens`]),cacheReadInputTokens:fs(e[`gen_ai.usage.cache_read.input_tokens`]),cacheCreationInputTokens:fs(e[`gen_ai.usage.cache_creation.input_tokens`])}}function tc(e){let t=fs(e[`gen_ai.response.time_to_first_chunk`]),n=fs(e[`gen_ai.response.time_to_finish`]),r=fs(e[`gen_ai.response.output_tokens_per_second`]),i=fs(e[`gen_ai.response.time_per_output_chunk`]);if(t!==void 0||n!==void 0||r!==void 0||i!==void 0)return{timeToFirstChunkS:t,timeToFinishS:n,outputTokensPerSecond:r,timePerOutputChunkS:i}}function nc(e){let t=fs(e[`gen_ai.session.cost.usd`]),n=fs(e[`gen_ai.session.input_tokens`]),r=fs(e[`gen_ai.session.output_tokens`]),i=fs(e[`gen_ai.session.step.count`]),a=fs(e[`gen_ai.session.tool_call.count`]),o=fs(e[`gen_ai.session.error.count`]);if(t!==void 0||n!==void 0||r!==void 0||i!==void 0||a!==void 0||o!==void 0)return{costUsd:t,inputTokens:n,outputTokens:r,stepCount:i,toolCallCount:a,errorCount:o}}function rc(e,t){let n=Y(e[`gen_ai.guard.rule`]);if(n)return{rule:n,action:Y(e[`gen_ai.guard.action`])??t,message:Y(e[`gen_ai.guard.message`]),observed:fs(e[`gen_ai.guard.observed`]),limit:fs(e[`gen_ai.guard.limit`])}}function ic(e,t){let n=ps(e[`gen_ai.guard.stopped`]),r=[],i=rc(e),a=e=>{e&&(!i||e.action===`stop`)&&(i=e)};for(let e of t??[]){let t=e.attributes??{};if(e.name===`gen_ai.guard.stop`)a(rc(t,`stop`));else if(e.name===`gen_ai.guard.warning`)a(rc(t,`warn`));else if(e.name===`gen_ai.client.warnings`){let e=Ws(t[`gen_ai.warnings`]);Array.isArray(e)&&r.push(...e)}}return(n!==void 0||i)&&(i={...i,stopped:n??i?.action===`stop`}),{guard:i,warnings:r.length>0?r:void 0}}function ac(e){let t=e.toLowerCase();return t===`az.ai.openai`||t===`azure_openai`?`openai`:t===`gcp.vertex_ai`||t===`vertex_ai`||t===`gcp.gemini`||t===`google-gla`||t===`google_genai`||t===`gemini`?`google`:t}var oc=new Set(`gen_ai.system,gen_ai.provider.name,gen_ai.operation.name,gen_ai.request.model,gen_ai.response.model,gen_ai.response.id,gen_ai.response.finish_reasons,gen_ai.request.temperature,gen_ai.request.top_p,gen_ai.request.top_k,gen_ai.request.max_tokens,gen_ai.request.stop_sequences,gen_ai.request.seed,gen_ai.request.frequency_penalty,gen_ai.request.presence_penalty,gen_ai.request.choice.count,gen_ai.usage.input_tokens,gen_ai.usage.output_tokens,gen_ai.usage.prompt_tokens,gen_ai.usage.completion_tokens,gen_ai.usage.reasoning.output_tokens,gen_ai.usage.cache_read.input_tokens,gen_ai.usage.cache_creation.input_tokens,gen_ai.usage.cost.usd,gen_ai.response.time_to_first_chunk,gen_ai.response.time_to_finish,gen_ai.response.output_tokens_per_second,gen_ai.response.time_per_output_chunk,gen_ai.guard.stopped,gen_ai.guard.rule,gen_ai.guard.action,gen_ai.guard.message,gen_ai.guard.observed,gen_ai.guard.limit,gen_ai.session.cost.usd,gen_ai.session.input_tokens,gen_ai.session.output_tokens,gen_ai.session.step.count,gen_ai.session.tool_call.count,gen_ai.session.error.count,gen_ai.input.messages,gen_ai.output.messages,gen_ai.input.messages.ref,gen_ai.output.messages.ref,gen_ai.system_instructions,gen_ai.tool.definitions,gen_ai.orchestrator.agent.definitions,gen_ai.agent.id,gen_ai.agent.name,gen_ai.agent.description,gen_ai.tool.name,gen_ai.tool.call.id,gen_ai.handoff.from_agent,gen_ai.handoff.to_agent,gen_ai.guardrail.name,gen_ai.guardrail.triggered,gen_ai.conversation.id,gen_ai.evaluation.name,gen_ai.evaluation.score.value,gen_ai.evaluation.score.label,gen_ai.evaluation.explanation,gen_ai.audio.input.format,gen_ai.audio.output.format,gen_ai.speech.voice,gen_ai.speech.input_text,gen_ai.transcription.text,gen_ai.embeddings.dimension.count,gen_ai.openai.request.service_tier,gen_ai.openai.response.service_tier,gen_ai.openai.response.system_fingerprint,gen_ai.openai.request.response_format,openai.request.service_tier,openai.response.service_tier,openai.response.system_fingerprint,openai.request.response_format`.split(`,`));function sc(e){let t=e.attributes??{},n=ac(Y(t[`gen_ai.provider.name`])??Y(t[`gen_ai.system`])??Y(t[`ai.model.provider`])??`unknown`),r=Y(t[`gen_ai.operation.name`])??`chat`,i=Y(t[`gen_ai.request.model`])??Y(t[`llm.request.model`])??Y(t.model_name)??Y(t[`ai.model.id`])??`unknown`,a=Y(t[`gen_ai.response.model`])??Y(t[`llm.response.model`])??Y(t[`ai.response.model`]),o=Zs(t,`gen_ai.input.messages`)??[],s=Zs(t,`gen_ai.output.messages`)??[],c=[],l=Ws(t[`gen_ai.system_instructions`]);if(Array.isArray(l)&&l.length>0){let e=Ls(l[0]);c=e&&`role`in e?l.map(e=>Xs(e)):[{role:`system`,parts:l.map(e=>e.type===`text`||e.content!==void 0?{kind:`text`,text:String(e.content??``)}:{kind:`json`,value:e})}]}let u=o.length||s.length||c.length?[...c,...o,...s]:Qs(e.events),d=Y(t[`gen_ai.input.messages.ref`]),f=Y(t[`gen_ai.output.messages.ref`]),p=u.some(e=>e.role===`system`||e.role===`user`),m=u.some(e=>e.role===`assistant`);if(d&&!p&&u.push({role:`user`,parts:[{kind:`ref`,ref:d,direction:`input`}]}),f&&!m&&u.push({role:`assistant`,parts:[{kind:`ref`,ref:f,direction:`output`}]}),u.length===0){let e=Ws(t[`ai.prompt.messages`]);if(Array.isArray(e))u.push(...e.map(Xs));else{let e=Ws(t[`ai.prompt`]);e&&(Array.isArray(e.messages)?u.push(...e.messages.map(Xs)):(e.system&&u.push({role:`system`,parts:[{kind:`text`,text:e.system}]}),e.prompt&&u.push({role:`user`,parts:[{kind:`text`,text:e.prompt}]})))}let n=Ws(t[`ai.response.toolCalls`]),r=Array.isArray(n)?n.filter(e=>Y(e.toolName)!==void 0).map(e=>({id:e.toolCallId,name:e.toolName,arguments:Ws(e.input??e.args)??e.input??e.args??{}})):void 0,i=Y(t[`ai.response.text`]);if(i||r&&r.length>0){let e=ms(t[`gen_ai.response.finish_reasons`])?.[0]??Y(t[`ai.response.finishReason`]),n=Xs({role:`assistant`,content:i??``});e&&(n.finishReason=e),r&&r.length>0&&(n.toolCalls=r),u.push(n)}}if(u.length===0){let e=Ws(t[`pydantic_ai.all_messages`]);Array.isArray(e)&&u.push(...e.map(Xs))}if(u.length===0){let e=[];for(let n=0;n<32;n++){let r=Y(t[`gen_ai.prompt.${n}.role`])??Y(t[`llm.prompts.${n}.role`]),i=t[`gen_ai.prompt.${n}.content`]??t[`llm.prompts.${n}.content`];if(!r)break;e.push(Xs({role:r,content:i}))}for(let n=0;n<32;n++){let r=Y(t[`gen_ai.completion.${n}.role`])??Y(t[`llm.completions.${n}.role`]),i=t[`gen_ai.completion.${n}.content`]??t[`llm.completions.${n}.content`],a=Y(t[`gen_ai.completion.${n}.finish_reason`]);if(!r)break;let o=Xs({role:r,content:i});a&&(o.finishReason=a),e.push(o)}e.length>0&&(u=e)}u=u.flatMap(e=>{let t=e._toolResults;return t?t.map(e=>({role:`tool`,parts:[{kind:`json`,value:e.value}],toolCallId:e.id})):[e]});let h=[];for(let e of u)e.toolCalls&&h.push(...e.toolCalls);if(h.length>0){let e=new Map;for(let t of h)t.id&&e.set(t.id,t);for(let t of u){if(t.role!==`tool`||!t.toolCallId)continue;let n=e.get(t.toolCallId);if(!n||n.result!==void 0)continue;let r=t.parts.find(e=>e.kind===`text`),i=t.parts.find(e=>e.kind===`json`);r&&r.kind===`text`?n.result=Ws(r.text)??r.text:i&&i.kind===`json`&&(n.result=i.value)}}let g=ec(t),_=Is({provider:n,model:a??i,inputTokens:g.inputTokens,outputTokens:g.outputTokens,cacheReadInputTokens:g.cacheReadInputTokens,cacheCreationInputTokens:g.cacheCreationInputTokens}),v=fs(t[`gen_ai.usage.cost.usd`]),y=v===void 0?_:{currency:`USD`,input:_?.input??0,output:_?.output??0,cacheRead:_?.cacheRead??0,cacheWrite:_?.cacheWrite??0,total:v,source:`reported`},b=tc(t),x=nc(t),{guard:S,warnings:C}=ic(t,e.events),w=ms(t[`gen_ai.response.finish_reasons`]),ee=Y(t[`gen_ai.agent.name`]),te=Y(t[`gen_ai.agent.id`]),ne=Y(t[`gen_ai.agent.description`]),re=Y(t[`gen_ai.tool.name`]),ie=Y(t[`gen_ai.tool.call.id`]),ae=Y(t[`gen_ai.handoff.from_agent`]),oe=Y(t[`gen_ai.handoff.to_agent`]),se=Y(t[`gen_ai.guardrail.name`]),ce=ps(t[`gen_ai.guardrail.triggered`]),le=Y(t[`gen_ai.evaluation.name`]),ue=fs(t[`gen_ai.evaluation.score.value`]),T=Y(t[`gen_ai.evaluation.score.label`]),de=Y(t[`gen_ai.evaluation.explanation`]),fe=Y(t[`gen_ai.audio.input.format`]),pe=Y(t[`gen_ai.audio.output.format`]),me=Y(t[`gen_ai.speech.voice`]),he=Y(t[`gen_ai.speech.input_text`]),ge=Y(t[`gen_ai.transcription.text`]),_e=fs(t[`gen_ai.embeddings.dimension.count`]),ve=Y(t[`agent.consent.outcome`]),ye=Y(t[`policy.decision`]),be=Y(t[`mcp.security.injection.verdict`]),xe=Y(t[`agent.action.risk_class`]),Se=Y(t[`agent.input.provenance`]),Ce=fs(t[`agent.plan.step_index`]),we=Y(t[`security.event`]),Te=ps(t[`gen_ai.guard.stopped`]),Ee=ve||ye||be||xe||Se||Ce!==void 0||we||Te!==void 0||S?.stopped?{...ve&&{consentOutcome:ve},...ye&&{policyDecision:ye},...be&&{injectionVerdict:be},...xe&&{actionRiskClass:xe},...Se&&{inputProvenance:Se},...Ce!==void 0&&{planStepIndex:Ce},...we&&{securityEvent:we},guardStopped:S?.stopped??Te}:void 0,De={};for(let[e,n]of Object.entries(t))oc.has(e)||e.startsWith(`gen_ai.prompt.`)||e.startsWith(`gen_ai.completion.`)||e.startsWith(`llm.prompts.`)||e.startsWith(`llm.completions.`)||(De[e]=n);return{traceId:e.traceId,spanId:e.spanId,parentSpanId:e.parentSpanId,name:e.name,startMs:e.startTime,endMs:e.endTime,status:e.status?.code===`OK`?`ok`:e.status?.code===`ERROR`?`error`:`unset`,errorMessage:e.status?.message,provider:n,operation:r,requestModel:i,responseModel:a,params:{temperature:fs(t[`gen_ai.request.temperature`]),topP:fs(t[`gen_ai.request.top_p`]),topK:fs(t[`gen_ai.request.top_k`]),maxTokens:fs(t[`gen_ai.request.max_tokens`]),stopSequences:ms(t[`gen_ai.request.stop_sequences`]),seed:fs(t[`gen_ai.request.seed`]),frequencyPenalty:fs(t[`gen_ai.request.frequency_penalty`]),presencePenalty:fs(t[`gen_ai.request.presence_penalty`]),choiceCount:fs(t[`gen_ai.request.choice.count`])},messages:u,toolDefinitions:$s(t),toolCalls:h,usage:g,cost:y,streaming:b,guard:S,session:x,warnings:C,finishReasons:w,responseId:Y(t[`gen_ai.response.id`]),agent:te||ee||ne?{id:te,name:ee,description:ne}:void 0,tool:re||ie?{name:re,callId:ie}:void 0,handoff:ae||oe?{fromAgent:ae,toAgent:oe}:void 0,guardrail:se||ce!==void 0?{name:se,triggered:ce}:void 0,conversationId:Y(t[`gen_ai.conversation.id`]),agentSecurity:Ee,evaluation:le||ue!==void 0||T||de?{name:le,scoreValue:ue,scoreLabel:T,explanation:de}:void 0,modality:fe||pe||me||he||ge||_e?{audioInputFormat:fe,audioOutputFormat:pe,speechVoice:me,speechInputText:he,transcriptionText:ge,embeddingDimensions:_e}:void 0,extras:{openaiServiceTier:Y(t[`gen_ai.openai.request.service_tier`])||Y(t[`gen_ai.openai.response.service_tier`])||Y(t[`openai.request.service_tier`])||Y(t[`openai.response.service_tier`])?{request:Y(t[`gen_ai.openai.request.service_tier`])??Y(t[`openai.request.service_tier`]),response:Y(t[`gen_ai.openai.response.service_tier`])??Y(t[`openai.response.service_tier`])}:void 0,openaiSystemFingerprint:Y(t[`gen_ai.openai.response.system_fingerprint`])??Y(t[`openai.response.system_fingerprint`]),openaiResponseFormat:Y(t[`gen_ai.openai.request.response_format`])??Y(t[`openai.request.response_format`]),raw:De}}}function cc(e){let t=new Map;for(let n of e){let e=n.attributes??{},r=e[`ai.toolCall.id`];if(typeof r!=`string`)continue;let i=e[`ai.toolCall.result`];if(i!=null){if(typeof i==`string`)try{t.set(r,JSON.parse(i))}catch{t.set(r,i)}else t.set(r,i)}}return t}function lc(e,t){if(t.size!==0){for(let n of e.toolCalls){if(n.result!==void 0||!n.id)continue;let e=t.get(n.id);e!==void 0&&(n.result=e)}for(let n of e.messages)if(n.toolCalls)for(let e of n.toolCalls){if(e.result!==void 0||!e.id)continue;let n=t.get(e.id);n!==void 0&&(e.result=n)}}}function uc(e,...t){for(let n of t){let t=e[n];if(t==null||t instanceof Object)continue;let r=String(t);if(r.length>0)return r}}function dc(e,...t){for(let n of t){let t=e[n];if(t==null||t instanceof Object||t===!0||t===!1)continue;let r=Number(t);if(Number.isFinite(r)&&String(t).trim()!==``)return r}}function fc(e,...t){for(let n of t){let t=e[n];if(t===!0||t===`true`)return!0;if(t===!1||t===`false`)return!1}}var pc=[[`claude-opus-4`,15,75],[`claude-sonnet-4`,3,15],[`claude-haiku-4`,.8,4],[`claude-3-5-sonnet`,3,15],[`claude-3-5-haiku`,.8,4],[`claude-3-opus`,15,75],[`claude-3-haiku`,.25,1.25],[`opus`,15,75],[`sonnet`,3,15],[`haiku`,.8,4]];function mc(e,t,n){if(!e)return;let r=e.toLowerCase(),i=pc.find(([e])=>r.includes(e));if(!i)return;let[,a,o]=i;return(t??0)/1e6*a+(n??0)/1e6*o}function hc(...e){return Object.assign({},...e)}function gc(e){return{user:uc(e,`user.id`,`user.account_uuid`,`user.email`),organization:uc(e,`organization.id`),terminal:uc(e,`terminal.type`),appVersion:uc(e,`app.version`),model:uc(e,`model`)}}var _c=`mcp__`;function vc(e){if(!e.startsWith(_c))return{name:e,isMcp:!1};let t=e.slice(5),n=t.indexOf(`__`);if(n===-1)return{name:e,isMcp:!0,mcpServer:t||void 0};let r=t.slice(0,n),i=t.slice(n+2);return{name:e,isMcp:!0,mcpServer:r||void 0,mcpTool:i||void 0}}function yc(e){return e.startsWith(_c)}var bc=[`file`,`shell`,`search`,`web`,`todo`,`subagent`,`skill`,`mcp`,`other`],xc=new Map([[`read`,`file`],[`edit`,`file`],[`write`,`file`],[`multiedit`,`file`],[`notebookedit`,`file`],[`bash`,`shell`],[`bashoutput`,`shell`],[`killshell`,`shell`],[`killbash`,`shell`],[`grep`,`search`],[`glob`,`search`],[`ls`,`search`],[`webfetch`,`web`],[`websearch`,`web`],[`todowrite`,`todo`],[`task`,`subagent`],[`agent`,`subagent`],[`skill`,`skill`]]);function Sc(e){return yc(e)?`mcp`:xc.get(e.toLowerCase())??`other`}function Cc(e){return uc(e,`subagent_type`,`agent_type`,`subagent.type`)}function wc(e){return uc(e,`skill`,`skill_name`,`skill.name`)}var Tc=new Map([[`user_prompt`,`user_prompt`],[`api_request`,`api_request`],[`api_error`,`api_error`],[`api_refusal`,`api_refusal`],[`tool_result`,`tool_result`],[`tool_decision`,`tool_decision`],[`mcp_server_connection`,`mcp_connection`],[`plugin_loaded`,`plugin_loaded`],[`hook_execution_complete`,`hook_execution`]]),Ec=[...Tc.keys()];function Dc(e,t){let n=Sc(e),r={...vc(e),category:n};if(n===`subagent`){let e=Cc(t);e&&(r.subAgentType=e)}else if(n===`skill`){let e=wc(t);e&&(r.skillName=e)}return r}var Oc=new Map([[`lines_of_code.count`,`lines_of_code`],[`commit.count`,`commit`],[`pull_request.count`,`pull_request`],[`active_time.total`,`active_time`]]);function kc(e){let{kind:t,prefix:n,scopeHint:r,serviceHint:i}=e,a=e=>e!==void 0&&e.includes(r),o=e=>{let t=uc(e,`service.name`);return t!==void 0&&t.includes(i)},s=e=>e.startsWith(n)?e.slice(n.length):e;return{kind:t,matchesMetric(e){return e.name.startsWith(n)||a(e.scope?.name)||o(e.resource)},matchesEvent(e){return e.eventName.startsWith(n)||a(e.scope?.name)||o(e.resource)},normalizeEvent(e){let n=hc(e.resource,e.attributes),r=s(e.eventName)||uc(n,`event.name`)||e.eventName,i=Tc.get(r)??`other`,a=uc(n,`session.id`);if(!a)return null;let o={id:`${a}:0`,sessionId:a,agent:t,type:i,rawEventName:r,timestamp:e.timestamp,model:uc(n,`model`),promptId:uc(n,`prompt.id`),attributes:e.attributes};switch((i===`api_request`||i===`api_error`||i===`api_refusal`)&&(o.effort=uc(n,`effort`),o.speed=uc(n,`speed`),o.agentName=uc(n,`agent.name`),o.skillName=uc(n,`skill.name`)),i){case`api_request`:{o.inputTokens=dc(n,`input_tokens`),o.outputTokens=dc(n,`output_tokens`),o.cacheReadTokens=dc(n,`cache_read_tokens`),o.contextLineageId=uc(n,`query_source`),o.tokenSource=uc(n,`token_source`)===`estimated`?`estimated`:void 0,o.cacheCreationTokens=dc(n,`cache_creation_tokens`),o.durationMs=dc(n,`duration_ms`);let e=dc(n,`cost_usd`,`cost`);if(e===void 0){let e=mc(o.model,o.inputTokens,o.outputTokens);e!==void 0&&(o.costUsd=e,o.costSource=`estimated`)}else o.costUsd=e,o.costSource=`reported`;break}case`api_refusal`:o.durationMs=dc(n,`duration_ms`);break;case`api_error`:o.errorMessage=uc(n,`error`,`error.message`,`message`),o.statusCode=dc(n,`status_code`,`http.response.status_code`,`http.status_code`),o.durationMs=dc(n,`duration_ms`);break;case`tool_result`:{let e=uc(n,`tool_name`,`name`,`tool`);e&&(o.tool=Dc(e,n)),o.success=fc(n,`success`),o.durationMs=dc(n,`duration_ms`);let t=uc(n,`decision`);(t===`accept`||t===`reject`)&&(o.decision=t);break}case`tool_decision`:{let e=uc(n,`tool_name`,`name`,`tool`);e&&(o.tool=Dc(e,n));let t=uc(n,`decision`);(t===`accept`||t===`reject`)&&(o.decision=t);break}case`user_prompt`:{o.promptLength=dc(n,`prompt_length`,`prompt.length`);let e=uc(n,`prompt`);e&&(o.promptText=e);break}case`mcp_connection`:o.mcpServerName=uc(n,`server_name`,`name`),o.mcpTransport=uc(n,`transport_type`,`transport`),o.mcpStatus=uc(n,`status`),o.durationMs=dc(n,`duration_ms`);break;case`plugin_loaded`:o.pluginName=uc(n,`plugin.name`,`plugin_name`,`name`),o.pluginVersion=uc(n,`plugin.version`,`plugin_version`);break;case`hook_execution`:o.hookName=uc(n,`hook_event`,`hook_name`,`name`),o.hookSuccess=dc(n,`num_success`),o.hookBlocked=dc(n,`num_blocking`),o.hookErrored=dc(n,`num_non_blocking_error`),o.hookCancelled=dc(n,`num_cancelled`)}return o},normalizeMetric(e){let n=Oc.get(s(e.name))??`other`;return e.dataPoints.map(r=>{let i=hc(e.resource,r.attributes);return{agent:t,sessionId:uc(i,`session.id`),identity:gc(i),kind:n,value:r.value,temporality:e.temporality,timestamp:r.timestamp,attributes:r.attributes}})}}}kc({kind:`claude-code`,prefix:`claude_code.`,scopeHint:`claude_code`,serviceHint:`claude-code`});var Ac={handled:Ec,ignored:[`api_request_body`,`api_response_body`,`assistant_response`,`hook_registered`,`hook_execution_start`,`permission_mode_changed`,`auth`]};[...Ac.handled,...Ac.ignored],kc({kind:`opencode`,prefix:`opencode.`,scopeHint:`opencode`,serviceHint:`opencode`});function jc(){return Object.fromEntries(bc.map(e=>[e,0]))}function Mc(){return Object.create(null)}function Nc(){return{requests:0,costUsd:0,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0}}function Pc(e,t){for(let[n,r]of Object.entries(t)){let t=e[n]??(e[n]=Nc());t.requests+=r.requests,t.costUsd+=r.costUsd,t.inputTokens+=r.inputTokens,t.outputTokens+=r.outputTokens,t.cacheReadTokens+=r.cacheReadTokens,t.cacheCreationTokens+=r.cacheCreationTokens}}function Fc(e){let t={sessions:0,costUsd:0,inputTokens:0,outputTokens:0,apiRequests:0,apiErrors:0,accepted:0,rejected:0,byModel:Mc(),byEffort:Mc(),bySkill:Mc(),byAgent:Mc(),tools:Mc(),toolCategories:jc(),mcpServers:Mc(),subAgents:Mc(),skills:Mc(),mcpConnections:Mc(),plugins:Mc(),hooks:{runs:0,blocked:0,errored:0,cancelled:0}};for(let n of e){t.sessions+=1;let{rollup:e}=n;t.costUsd+=e.costUsd,t.inputTokens+=e.inputTokens,t.outputTokens+=e.outputTokens,t.apiRequests+=e.apiRequests,t.apiErrors+=e.apiErrors,t.accepted+=e.accepted,t.rejected+=e.rejected,Pc(t.byModel,e.byModel),Pc(t.byEffort,e.byEffort),Pc(t.bySkill,e.bySkill),Pc(t.byAgent,e.byAgent);for(let n of Object.values(e.tools))t.tools[n.name]=(t.tools[n.name]??0)+n.count,n.isMcp&&n.mcpServer&&(t.mcpServers[n.mcpServer]=(t.mcpServers[n.mcpServer]??0)+n.count);for(let n of bc)t.toolCategories[n]+=e.toolCategories[n];for(let[n,r]of Object.entries(e.subAgents))t.subAgents[n]=(t.subAgents[n]??0)+r;for(let[n,r]of Object.entries(e.skills))t.skills[n]=(t.skills[n]??0)+r;for(let n of Object.values(e.mcpConnections)){let e=t.mcpConnections[n.name]??{name:n.name,transport:n.transport,connected:!1,connects:0,disconnects:0};e.connects+=n.connects,e.disconnects+=n.disconnects,e.connected=e.connected||n.connected,n.transport&&(e.transport=n.transport),t.mcpConnections[n.name]=e}for(let n of Object.values(e.plugins))t.plugins[n.name]=n;t.hooks.runs+=e.hooks.runs,t.hooks.blocked+=e.hooks.blocked,t.hooks.errored+=e.hooks.errored,t.hooks.cancelled+=e.hooks.cancelled}return t}var Ic=cs(!1),Lc=cs({x:20,y:20}),Rc=cs(`bottom-right`),zc=cs(`bottom`),Bc=cs(!1),Vc=cs(`traces`),Hc=cs(null),Uc=cs(null),Wc=cs(null);function Gc(e,t){Wc.value={traceId:e,spanId:t}}var Kc=cs(`system`);function qc(){try{let e=localStorage.getItem(`autotel-devtools-theme`);if(e===`light`||e===`dark`||e===`system`)return e}catch{}return`system`}var Jc=[`system`,`light`,`dark`];function Yc(){let e=Jc[(Jc.indexOf(Kc.value)+1)%Jc.length];Kc.value=e;try{localStorage.setItem(`autotel-devtools-theme`,e)}catch{}}var Xc=`autotel-devtools-editor`;function Zc(){try{let e=localStorage.getItem(Xc);if(e===`vscode`||e===`cursor`||e===`webstorm`)return e}catch{}return`vscode`}var Qc=cs(Zc());function $c(e){Qc.value=e;try{localStorage.setItem(Xc,e)}catch{}}var el=cs(null);function tl(e){el.value=e}function nl(){el.value=null}function rl(e){el.value=el.value?null:e}var il={vertical:440,horizontal:560},al=cs({...il});function ol(e){return globalThis.window===void 0?e===`vertical`?{min:200,max:900}:{min:360,max:1200}:e===`vertical`?{min:200,max:Math.round(window.innerHeight*.92)}:{min:360,max:Math.round(window.innerWidth*.92)}}function sl(e,t){let{min:n,max:r}=ol(e),i=Math.min(r,Math.max(n,Math.round(t)));al.value={...al.value,[e]:i}}function cl(e){sl(e,il[e])}var ll=cs([]),ul=cs({connectionStatus:`disconnected`}),dl=cs([]),fl=cs([]),pl=cs(`disconnected`),ml=cs(null),hl=cs(xs),gl=cs([]),_l=cs([]),vl=cs(`pending`),yl=ls(()=>{if(vl.value===`ready`)return gl.value;let e=ws(hl.value,Date.now());if(Ts(e))return ll.value;let{start:t,end:n}=e;return ll.value.filter(e=>e.startTime>=t&&e.startTime<=n)}),bl=cs(0),xl=15e3,Sl=[];function Cl(e,t,n){if(e+t+n===0)return;let r=Date.now();Sl.push({t:r,traces:e,logs:t,metrics:n});let i=r-xl;(Sl.length>1024||Sl[0].t<i)&&(Sl=Sl.filter(e=>e.t>=i)),bl.value+=1}function wl(e=5e3,t=Date.now()){let n=t-e,r=0,i=0,a=0;for(let e of Sl)e.t>=n&&(r+=e.traces,i+=e.logs,a+=e.metrics);let o=e/1e3;return{traces:r/o,logs:i/o,metrics:a/o,total:(r+i+a)/o}}var Tl=cs(!1),El=cs([]),Dl=cs([]),Ol=ls(()=>El.value.length),kl=ls(()=>Dl.value.length),Al=cs(!1),jl=ls(()=>ll.value.filter(e=>e.status===`ERROR`)),Ml=ls(()=>{let e=jl.value;return Ic.value?0:e.length}),Nl=cs({key:`time`,dir:`desc`}),Pl=cs(``),Fl=cs(`all`),Il=cs(0),Ll=cs(new Set);function Rl(e){let t=new Set(Ll.value);t.has(e)?t.delete(e):t.add(e),Ll.value=t}function zl(){Ll.value.size>0&&(Ll.value=new Set)}var Bl=cs(``),Vl=new Map([[`time`,`desc`],[`duration`,`desc`],[`spans`,`desc`],[`service`,`asc`],[`name`,`asc`],[`status`,`desc`]]);function Hl(e){let t=Nl.value;Nl.value=t.key===e?{key:e,dir:t.dir===`asc`?`desc`:`asc`}:{key:e,dir:Vl.get(e)??`desc`}}var Ul=new Set([`service`,`name`]);function Wl(e,t){return(t===`service`?e.service:e.rootSpan?.name)??``}function Gl(e,t){switch(t){case`duration`:return e.duration;case`spans`:return e.spans.length;case`status`:return+(e.status===`ERROR`);default:return e.startTime}}function Kl(e,t,n){return Ul.has(n)?Wl(e,n).localeCompare(Wl(t,n)):Gl(e,n)-Gl(t,n)}var ql=ls(()=>{let{key:e,dir:t}=Nl.value,n=t===`asc`?1:-1;return[...ll.value].sort((t,r)=>{let i=Kl(t,r,e);return i===0?r.startTime-t.startTime:i*n})}),Jl=ls(()=>[...fl.value].sort((e,t)=>t.timestamp-e.timestamp)),Yl=cs([]),Xl=cs(null),Zl=ls(()=>[...Yl.value].sort((e,t)=>t.lastSeen-e.lastSeen));ls(()=>Fc(Yl.value)),ls(()=>{let e=Zl.value;if(e.length===0)return null;let t=Xl.value;return e.find(e=>e.id===t)??e[0]});var Ql=ls(()=>ys({traces:yl.value,logs:fl.value,errors:dl.value})),$l=ls(()=>{let e=[];for(let t of yl.value){let n=cc(t.spans);for(let r of t.spans){if(!Ms(r))continue;let i=sc(r);lc(i,n),e.push({raw:r,normalized:i,service:t.service,traceId:t.traceId})}}return e.sort((e,t)=>t.normalized.startMs-e.normalized.startMs),e}),eu=ls(()=>$l.value.length),tu=ls(()=>yl.value.filter(e=>e.spans.length>1).length),nu=ls(()=>{if(vl.value===`ready`)return _l.value;let e=ws(hl.value,Date.now());if(Ts(e))return dl.value;let{start:t,end:n}=e;return dl.value.filter(e=>e.lastSeen>=t&&e.firstSeen<=n)}),ru=ls(()=>[...nu.value].sort((e,t)=>t.lastSeen-e.lastSeen)),iu=ls(()=>[...nu.value].sort((e,t)=>t.count-e.count)),au=ls(()=>nu.value.reduce((e,t)=>e+t.count,0)),ou=ls(()=>{let e=Date.now()-36e5;return dl.value.filter(t=>t.lastSeen>e).reduce((e,t)=>e+t.count,0)}),su=ls(()=>{let e=Hc.value;return e&&yl.value.find(t=>t.traceId===e)||null}),cu=cs(new Set);function lu(e){let t=new Set(cu.value);t.has(e)?t.delete(e):t.add(e),cu.value=t}function uu(){cu.value=new Set(yl.value.map(e=>e.traceId))}function du(){cu.value=new Set}function fu(){let e=cu.value;ll.value=ll.value.filter(t=>!e.has(t.traceId)),gl.value=gl.value.filter(t=>!e.has(t.traceId)),du(),Hc.value&&e.has(Hc.value)&&(Hc.value=null)}var pu=ls(()=>cu.value.size);function mu(e,t){let n=[...t].sort((e,t)=>e.startTime-t.startTime),r=n.find(e=>!e.parentSpanId)??e.rootSpan??n[0],i=Math.min(...n.map(e=>e.startTime)),a=Math.max(...n.map(e=>e.endTime)),o=n.some(e=>e.status.code===`ERROR`)?`ERROR`:`OK`,s=ds(r?.attributes,`service.name`);return{...e,rootSpan:r,spans:n,startTime:i,endTime:a,duration:a-i,status:o,service:s??e.service}}function hu(e,t){let n=new Map;for(let t of e.spans)n.set(t.spanId,t);for(let e of t.spans)n.has(e.spanId)||n.set(e.spanId,e);return mu(e,[...n.values()])}function gu(e,t){if(t.length===0)return e;let n=new Map;for(let e of t){let t=n.get(e.traceId);n.set(e.traceId,t?hu(t,e):e)}let r=new Set(e.map(e=>e.traceId)),i=e.map(e=>{let t=n.get(e.traceId);return t?hu(e,t):e});for(let[e,t]of n)r.has(e)||i.push(t);return i}function _u(e,t,n){let r=gu(e,t);return r.length>n?r.slice(-n):r}function vu(e,t){if(t.length===0)return e;let n=[...t,...e];return n.length>Lu?n.slice(0,Lu):n}function yu(e,t,n,r=n){return{ingest(i,a){i.length!==0&&(a?t.value=r(t.value,i):e.value=n(e.value,i))},flushToLive(){t.value.length!==0&&(e.value=n(e.value,t.value),t.value=[])},clearPending(){t.value=[]}}}var bu=yu(ll,El,gu,(e,t)=>_u(e,t,Lu)),xu=yu(fl,Dl,vu),Su=[bu,xu];function Cu(e){if(Al.value){e.health&&(ul.value=e.health,pl.value=e.health.connectionStatus);return}let t=Tl.value;bu.ingest(e.traces??[],t),xu.ingest(e.logs??[],t),Cl(e.traces?.length??0,e.logs?.length??0,0),e.health&&(ul.value=e.health,pl.value=e.health.connectionStatus),e.errors&&(dl.value=e.errors),e.agents&&(Yl.value=e.agents)}function wu(e){if(Tl.value!==e&&(Tl.value=e,!e))for(let e of Su)e.flushToLive()}function Tu(){wu(!Tl.value)}function Eu(){for(let e of Su)e.clearPending()}function Du(e){ll.value=e.traces??[],fl.value=(e.logs??[]).slice(0,Lu),dl.value=e.errors??[],El.value=[],Dl.value=[],Tl.value=!1,Al.value=!0}function Ou(){Al.value=!1,ll.value=[],fl.value=[],dl.value=[]}function ku(){Ic.value=!Ic.value}function Au(e){Vc.value=e}function ju(e,t=null){Hc.value=e,Uc.value=e?t:null}function Mu(e,t){ju(e,t??null),Au(`traces`)}function Nu(e,t){Lc.value={x:e,y:t}}function Pu(e){Rc.value=e}function Fu(e){zc.value=e}function Iu(){let e=[`bottom`,`right`,`left`],t=zc.value??`bottom`;zc.value=e[(e.indexOf(t)+1)%e.length]}var Lu=100;function Ru(){ll.value=[],gl.value=[],dl.value=[],_l.value=[],fl.value=[],Yl.value=[],Xl.value=null,El.value=[],Dl.value=[],cu.value=new Set,Hc.value=null,Uc.value=null,vl.value=`pending`,Al.value=!1}function zu(e){if(e.length===0)return;let t=new Set(ll.value.map(e=>e.traceId)),n=e.filter(e=>!t.has(e.traceId));n.length>0?(console.log(`[Autotel Devtools] Importing ${n.length} trace(s)`),ll.value=[...ll.value,...n]):console.log(`[Autotel Devtools] No new traces to import (all duplicates)`)}var Bu=cs(`local`),Vu=`autotel-devtools-widget-state`;function Hu(){try{let e=localStorage.getItem(Vu);if(e){let t=JSON.parse(e);t.position&&(Lc.value=t.position),t.corner&&(Rc.value=t.corner),t.docked&&(zc.value=t.docked),t.panelSize&&(al.value={vertical:Number(t.panelSize.vertical)||440,horizontal:Number(t.panelSize.horizontal)||560}),typeof t.timeZone==`string`&&(Bu.value=t.timeZone)}}catch(e){console.error(`[Autotel Devtools] Failed to load persisted state:`,e)}}function Uu(){try{let e={position:Lc.value,corner:Rc.value,docked:zc.value,panelSize:al.value,timeZone:Bu.value};localStorage.setItem(Vu,JSON.stringify(e))}catch(e){console.error(`[Autotel Devtools] Failed to persist state:`,e)}}us(()=>{Lc.value,Rc.value,zc.value,Bu.value,al.value,Uu()});var Wu=[`traces`,`resources`,`service-map`,`metrics`,`logs`,`errors`,`genai`,`flow`,`security`];function Gu(e,t){return e.find(e=>e===t)}function Ku(e){return Gu(Wu,e)!==void 0}var qu=[`time`,`duration`,`spans`,`service`,`name`,`status`],Ju=[`error`,`ok`],Yu={key:`time`,dir:`desc`};function Xu(e){if(!e)return;let[t,n]=e.split(`:`),r=Gu(qu,t);return r&&{key:r,dir:n===`asc`?`asc`:`desc`}}function Zu(e){let t=e.startsWith(`#`)?e.slice(1):e;if(!t)return{};let n=new URLSearchParams(t),r={},i=n.get(`tab`);Ku(i)&&(r.tab=i);let a=n.get(`trace`)||void 0;a&&(r.traceId=a);let o=n.get(`span`)||void 0;a&&o&&(r.spanId=o);let s=n.get(`q`)||void 0;s&&(r.q=s);let c=Gu(Ju,n.get(`status`));c&&(r.status=c);let l=n.get(`min`),u=l==null?NaN:Number(l);Number.isFinite(u)&&u>0&&(r.minDuration=u);let d=n.get(`window`);d&&(r.window=ks(d));let f=Xu(n.get(`sort`));f&&(r.sort=f);let p=n.get(`gq`)||void 0;return p&&(r.genaiQuery=p),r}function Qu(e){let t=new URLSearchParams;if(e.tab&&e.tab!==`traces`&&t.set(`tab`,e.tab),e.traceId&&t.set(`trace`,e.traceId),e.traceId&&e.spanId&&t.set(`span`,e.spanId),e.q&&t.set(`q`,e.q),e.status&&e.status!==`all`&&t.set(`status`,e.status),e.minDuration&&e.minDuration>0&&t.set(`min`,String(e.minDuration)),e.window){let n=Os(e.window);n&&t.set(`window`,n)}e.sort&&(e.sort.key!==Yu.key||e.sort.dir!==Yu.dir)&&t.set(`sort`,`${e.sort.key}:${e.sort.dir}`),e.genaiQuery&&t.set(`gq`,e.genaiQuery);let n=t.toString();return n?`#${n}`:``}function $u(e,t){return e&&(e.tab!==t.tab||e.traceId!==t.traceId||e.spanId!==t.spanId)?`push`:`replace`}var ed=new Set([`$$slots`,`$$events`,`$$legacy`,`fill`,`width`,`height`]),td=la(`<svg><circle cx="17" cy="20" r="3" fill="#9AAAB4"></circle><path fill="#DA2F47" d="M19.235 17.059a1.003 1.003 0 0 1-1.353.412L5.529 10.883a1.004 1.004 0 0 1-.412-1.353L7.94 4.235c.259-.485.868-.67 1.353-.412l12.353 6.588c.485.259.671.868.412 1.353z"></path><path fill="#DA2F47" d="M31.177 22.293a1.004 1.004 0 0 1-1.354.412l-9.705-5.176a1.004 1.004 0 0 1-.412-1.354l1.882-3.529c.259-.485.868-.67 1.354-.412l9.705 5.176c.485.259.671.868.412 1.354z"></path><path fill="#BB1A34" d="m19.235 17.058 2.824-5.293 1.765.941L20.999 18z"></path><path fill="#9D0522" d="m28.942 22.235 2.823-5.294 3.53 1.882-2.824 5.294z"></path><path fill="#292F33" d="m8.294 7.824 1.882-3.53-.881-.47v-.001L4.882 1.471a1.003 1.003 0 0 0-1.353.411L.706 7.177a1 1 0 0 0 .412 1.353l3.529 1.882 1.766.941.47-.882zM23 25a2 2 0 0 1-2 2h-8a2 2 0 0 1 0-4h8a2 2 0 0 1 2 2"></path><path fill="#9AAAB4" d="m9.467 36 3.344-7.152c.468-1 .036-2.191-.965-2.658a1.997 1.997 0 0 0-2.658.965L5.052 36zm15.065 0h4.416l-4.137-8.846a1.997 1.997 0 0 0-2.658-.965 2 2 0 0 0-.965 2.658zM19 36v-8a2 2 0 0 0-4 0v8z"></path></svg>`);function nd(e,t){let n=J(t,`width`,3,40),r=J(t,`height`,3,40),i=K(t,ed);var a=td();Do(a,()=>({width:n(),height:r(),viewBox:`0 0 36 36`,xmlns:`http://www.w3.org/2000/svg`,...i})),B(e,a)}function rd(e){let t=e<0,n=Math.abs(e),r;if(n===0)r=`0`;else if(n<.001)r=`${(n*1e6).toFixed(0)}ns`;else if(n<1)r=`${(n*1e3).toFixed(2).replace(/\.?0+$/,``)}µs`;else if(n<1e3)r=`${n.toFixed(2).replace(/\.?0+$/,``)}ms`;else if(n<6e4)r=`${(n/1e3).toFixed(2).replace(/\.?0+$/,``)}s`;else{let e=Math.floor(n/6e4),t=Math.floor(n%6e4/1e3);r=t>0?`${e}m ${t}s`:`${e}m`}return t?`⚠ ${r}`:r}function id(e){let t=new Date(e),n=new Date().getTime()-t.getTime();if(n<6e4){let e=Math.floor(n/1e3);return e<=1?`just now`:`${e}s ago`}return n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:t.toLocaleTimeString()}function ad(e){switch(e){case`OK`:return`text-green-600`;case`ERROR`:return`text-red-600`;default:return`text-gray-500`}}function od(e,t,n,r){let i=n/2,a=r/2;return e<i&&t<a?{corner:`top-left`,x:20,y:20}:e>=i&&t<a?{corner:`top-right`,x:n-100,y:20}:e<i&&t>=a?{corner:`bottom-left`,x:20,y:r-100}:{corner:`bottom-right`,x:n-100,y:r-100}}function sd(e,t,n){return Math.min(Math.max(e,t),n)}var cd=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ld=(e,t)=>({classGroupId:e,validator:t}),ud=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),dd=`-`,fd=[],pd=`arbitrary..`,md=e=>{let t=_d(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return gd(e);let n=e.split(dd);return hd(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?cd(i,t):t:i||fd}return n[e]||fd}}},hd=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=hd(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(dd):e.slice(t).join(dd),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},gd=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?pd+r:void 0})(),_d=e=>{let{theme:t,classGroups:n}=e;return vd(n,t)},vd=(e,t)=>{let n=ud();for(let r in e){let i=e[r];yd(i,n,r,t)}return n},yd=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];bd(i,t,n,r)}},bd=(e,t,n,r)=>{if(typeof e==`string`){xd(e,t,n);return}if(typeof e==`function`){Sd(e,t,n,r);return}Cd(e,t,n,r)},xd=(e,t,n)=>{let r=e===``?t:wd(t,e);r.classGroupId=n},Sd=(e,t,n,r)=>{if(Td(e)){yd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ld(n,e))},Cd=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];yd(o,wd(t,a),n,r)}},wd=(e,t)=>{let n=e,r=t.split(dd),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ud(),n.nextPart.set(t,i)),n=i}return n},Td=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ed=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Dd=`!`,Od=`:`,kd=[],Ad=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),jd=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Od){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Dd)?(c=s.slice(0,-1),l=!0):s.startsWith(Dd)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ad(t,l,c,u)};if(t){let e=t+Od,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ad(kd,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Md=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Nd=e=>({cache:Ed(e.cacheSize),parseClassName:jd(e),sortModifiers:Md(e),postfixLookupClassGroupIds:Pd(e),...md(e)}),Pd=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Fd=/\s+/,Id=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Fd),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Dd:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ld=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Rd(n))&&(i&&(i+=` `),i+=r);return i},Rd=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Rd(e[r]))&&(n&&(n+=` `),n+=t);return n},zd=(e,...t)=>{let n,r,i,a,o=o=>(n=Nd(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Id(e,n);return i(e,a),a};return a=o,(...e)=>a(Ld(...e))},Bd=[],Vd=e=>{let t=t=>t[e]||Bd;return t.isThemeGetter=!0,t},Hd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ud=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Gd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xd=e=>Wd.test(e),Zd=e=>!!e&&!Number.isNaN(Number(e)),Qd=e=>!!e&&Number.isInteger(Number(e)),$d=e=>e.endsWith(`%`)&&Zd(e.slice(0,-1)),ef=e=>Gd.test(e),tf=()=>!0,nf=e=>Kd.test(e)&&!qd.test(e),rf=()=>!1,af=e=>Jd.test(e),of=e=>Yd.test(e),sf=e=>!X(e)&&!Z(e),cf=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),lf=e=>wf(e,Of,rf),X=e=>Hd.test(e),uf=e=>wf(e,kf,nf),df=e=>wf(e,Af,Zd),ff=e=>wf(e,Mf,tf),pf=e=>wf(e,jf,rf),mf=e=>wf(e,Ef,rf),hf=e=>wf(e,Df,of),gf=e=>wf(e,Nf,af),Z=e=>Ud.test(e),_f=e=>Tf(e,kf),vf=e=>Tf(e,jf),yf=e=>Tf(e,Ef),bf=e=>Tf(e,Of),xf=e=>Tf(e,Df),Sf=e=>Tf(e,Nf,!0),Cf=e=>Tf(e,Mf,!0),wf=(e,t,n)=>{let r=Hd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Tf=(e,t,n=!1)=>{let r=Ud.exec(e);return r?r[1]?t(r[1]):n:!1},Ef=e=>e===`position`||e===`percentage`,Df=e=>e===`image`||e===`url`,Of=e=>e===`length`||e===`size`||e===`bg-size`,kf=e=>e===`length`,Af=e=>e===`number`,jf=e=>e===`family-name`,Mf=e=>e===`number`||e===`weight`,Nf=e=>e===`shadow`,Pf=zd(()=>{let e=Vd(`color`),t=Vd(`font`),n=Vd(`text`),r=Vd(`font-weight`),i=Vd(`tracking`),a=Vd(`leading`),o=Vd(`breakpoint`),s=Vd(`container`),c=Vd(`spacing`),l=Vd(`radius`),u=Vd(`shadow`),d=Vd(`inset-shadow`),f=Vd(`text-shadow`),p=Vd(`drop-shadow`),m=Vd(`blur`),h=Vd(`perspective`),g=Vd(`aspect`),_=Vd(`ease`),v=Vd(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Z,X],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Z,X,c],ee=()=>[Xd,`full`,`auto`,...w()],te=()=>[Qd,`none`,`subgrid`,Z,X],ne=()=>[`auto`,{span:[`full`,Qd,Z,X]},Qd,Z,X],re=()=>[Qd,`auto`,Z,X],ie=()=>[`auto`,`min`,`max`,`fr`,Z,X],ae=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],oe=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...w()],ce=()=>[Xd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],le=()=>[Xd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ue=()=>[Xd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],T=()=>[e,Z,X],de=()=>[...b(),yf,mf,{position:[Z,X]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],pe=()=>[`auto`,`cover`,`contain`,bf,lf,{size:[Z,X]}],me=()=>[$d,_f,uf],he=()=>[``,`none`,`full`,l,Z,X],ge=()=>[``,Zd,_f,uf],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ye=()=>[Zd,$d,yf,mf],be=()=>[``,`none`,m,Z,X],xe=()=>[`none`,Zd,Z,X],Se=()=>[`none`,Zd,Z,X],Ce=()=>[Zd,Z,X],we=()=>[Xd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ef],breakpoint:[ef],color:[tf],container:[ef],"drop-shadow":[ef],ease:[`in`,`out`,`in-out`],font:[sf],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ef],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ef],shadow:[ef],spacing:[`px`,Zd],text:[ef],"text-shadow":[ef],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Xd,X,Z,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Z,X]}],"container-named":[cf],columns:[{columns:[Zd,X,Z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Qd,`auto`,Z,X]}],basis:[{basis:[Xd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Zd,Xd,`auto`,`initial`,`none`,X]}],grow:[{grow:[``,Zd,Z,X]}],shrink:[{shrink:[``,Zd,Z,X]}],order:[{order:[Qd,`first`,`last`,`none`,Z,X]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ae(),`normal`]}],"justify-items":[{"justify-items":[...oe(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...oe()]}],"align-content":[{content:[`normal`,...ae()]}],"align-items":[{items:[...oe(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...oe(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...oe(),`baseline`]}],"place-self":[{"place-self":[`auto`,...oe()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,...ce()]}],"font-size":[{text:[`base`,n,_f,uf]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Cf,ff]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,$d,X]}],"font-family":[{font:[vf,pf,t]}],"font-features":[{"font-features":[X]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Z,X]}],"line-clamp":[{"line-clamp":[Zd,`none`,Z,df]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Z,X]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Z,X]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[Zd,`from-font`,`auto`,Z,uf]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Zd,`auto`,Z,X]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Qd,Z,X]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Z,X]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Z,X]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Qd,Z,X],radial:[``,Z,X],conic:[Qd,Z,X]},xf,hf]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Zd,Z,X]}],"outline-w":[{outline:[``,Zd,_f,uf]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`none`,u,Sf,gf]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,Sf,gf]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ge()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Zd,uf]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,Sf,gf]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Zd,Z,X]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Zd]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Zd]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Z,X]}],filter:[{filter:[``,`none`,Z,X]}],blur:[{blur:be()}],brightness:[{brightness:[Zd,Z,X]}],contrast:[{contrast:[Zd,Z,X]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Sf,gf]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,Zd,Z,X]}],"hue-rotate":[{"hue-rotate":[Zd,Z,X]}],invert:[{invert:[``,Zd,Z,X]}],saturate:[{saturate:[Zd,Z,X]}],sepia:[{sepia:[``,Zd,Z,X]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Z,X]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[Zd,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[Zd,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Zd,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Zd,Z,X]}],"backdrop-invert":[{"backdrop-invert":[``,Zd,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[Zd,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[Zd,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":[``,Zd,Z,X]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Z,X]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Zd,`initial`,Z,X]}],ease:[{ease:[`linear`,`initial`,_,Z,X]}],delay:[{delay:[Zd,Z,X]}],animate:[{animate:[`none`,v,Z,X]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Z,X]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":[`scale-3d`],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[Z,X,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":[`translate-none`],zoom:[{zoom:[Qd,Z,X]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Z,X]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Z,X]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[Zd,_f,uf,df]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),Q=(...e)=>Pf(to(e)),Ff=z(`<button title="Autolemetry Observability"><!></button>`);function If(e,t){it(t,!0);let n=M(void 0),r=!1,i={x:0,y:0},a=j(()=>Lc.value),o=j(()=>Ml.value),s=j(()=>Ic.value),c=j(()=>L(o)>0),l=j(()=>L(c)?`#DA2F47`:`#22c55e`);function u(e){e.button===0&&(r=!0,i={x:e.clientX-L(a).x,y:e.clientY-L(a).y},L(n)?.setPointerCapture(e.pointerId),e.preventDefault())}function d(e){r&&Nu(sd(e.clientX-i.x,0,window.innerWidth-48),sd(e.clientY-i.y,0,window.innerHeight-48))}function f(e){if(!r)return;r=!1,L(n)?.releasePointerCapture(e.pointerId);let t=od(L(a).x,L(a).y,window.innerWidth,window.innerHeight);Nu(t.x,t.y),Pu(t.corner)}function p(){r||ku()}var m=ua(),h=Or(m),g=e=>{var t=Ff(),r=P(t);{let e=j(()=>L(c)?`#fff`:void 0);nd(r,{get fill(){return L(e)},width:28,height:28})}E(t),Ho(t,e=>N(n,e),()=>L(n)),I(e=>{W(t,1,e),co(t,`width: 48px; height: 48px; left: ${L(a).x??``}px; top: ${L(a).y??``}px; transform: translate3d(0, 0, 0); border-color: ${L(l)??``};`)},[()=>U(Q(`fixed z-[1000] rounded-full border-2 shadow-md`,`flex items-center justify-center cursor-pointer touch-none`,`transition-all duration-150 select-none`,`hover:shadow-lg`,`bg-surface hover:bg-subtle`))]),R(`click`,t,p),R(`pointerdown`,t,u),R(`pointermove`,t,d),R(`pointerup`,t,f),B(e,t)};H(h,e=>{L(s)||e(g)}),B(e,m),at()}ta([`click`,`pointerdown`,`pointermove`,`pointerup`]);var Lf={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Rf=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},zf=Symbol(`lucide-context`),Bf=()=>et(zf),Vf=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),Hf=la(`<svg><!><!></svg>`);function Uf(e,t){it(t,!0);let n=Bf()??{},r=J(t,`color`,19,()=>n.color??`currentColor`),i=J(t,`size`,19,()=>n.size??24),a=J(t,`strokeWidth`,19,()=>n.strokeWidth??2),o=J(t,`absoluteStrokeWidth`,19,()=>n.absoluteStrokeWidth??!1),s=J(t,`iconNode`,19,()=>[]),c=K(t,Vf),l=j(()=>o()?Number(a())*24/Number(i()):a());var u=Hf();Do(u,e=>({...Lf,...e,...c,width:i(),height:i(),stroke:r(),"stroke-width":L(l),class:[`lucide-icon lucide`,n.class,t.name&&`lucide-${t.name}`,t.class]}),[()=>!t.children&&!Rf(c)&&{"aria-hidden":`true`}]);var d=P(u);Na(d,17,s,ka,(e,t)=>{var n=j(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=ua();Za(Or(a),r,!0,(e,t)=>{Do(e,()=>({...i()}))}),B(e,a)}),za(F(d),()=>t.children??p),E(u),B(e,u),at()}var Wf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Gf(e,t){let n=K(t,Wf),r=[[`path`,{d:`M12 5v14`}],[`path`,{d:`m19 12-7 7-7-7`}]];Uf(e,q({name:`arrow-down`},()=>n,{get iconNode(){return r}}))}var Kf=new Set([`$$slots`,`$$events`,`$$legacy`]);function qf(e,t){let n=K(t,Kf),r=[[`path`,{d:`m5 12 7-7 7 7`}],[`path`,{d:`M12 19V5`}]];Uf(e,q({name:`arrow-up`},()=>n,{get iconNode(){return r}}))}var Jf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Yf(e,t){let n=K(t,Jf),r=[[`path`,{d:`M12 8V4H8`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`}],[`path`,{d:`M2 14h2`}],[`path`,{d:`M20 14h2`}],[`path`,{d:`M15 13v2`}],[`path`,{d:`M9 13v2`}]];Uf(e,q({name:`bot`},()=>n,{get iconNode(){return r}}))}var Xf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Zf(e,t){let n=K(t,Xf),r=[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`}],[`path`,{d:`m7 16.5-4.74-2.85`}],[`path`,{d:`m7 16.5 5-3`}],[`path`,{d:`M7 16.5v5.17`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`}],[`path`,{d:`m17 16.5-5-3`}],[`path`,{d:`m17 16.5 4.74-2.85`}],[`path`,{d:`M17 16.5v5.17`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`}],[`path`,{d:`M12 8 7.26 5.15`}],[`path`,{d:`m12 8 4.74-2.85`}],[`path`,{d:`M12 13.5V8`}]];Uf(e,q({name:`boxes`},()=>n,{get iconNode(){return r}}))}var Qf=new Set([`$$slots`,`$$events`,`$$legacy`]);function $f(e,t){let n=K(t,Qf),r=[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`}],[`circle`,{cx:`12`,cy:`13`,r:`3`}]];Uf(e,q({name:`camera`},()=>n,{get iconNode(){return r}}))}var ep=new Set([`$$slots`,`$$events`,`$$legacy`]);function tp(e,t){let n=K(t,ep),r=[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`}],[`path`,{d:`M18 17V9`}],[`path`,{d:`M13 17V5`}],[`path`,{d:`M8 17v-3`}]];Uf(e,q({name:`chart-column`},()=>n,{get iconNode(){return r}}))}var np=new Set([`$$slots`,`$$events`,`$$legacy`]);function rp(e,t){let n=K(t,np),r=[[`path`,{d:`M5 21v-6`}],[`path`,{d:`M12 21V9`}],[`path`,{d:`M19 21V3`}]];Uf(e,q({name:`chart-no-axes-column-increasing`},()=>n,{get iconNode(){return r}}))}var ip=new Set([`$$slots`,`$$events`,`$$legacy`]);function ap(e,t){let n=K(t,ip),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];Uf(e,q({name:`check`},()=>n,{get iconNode(){return r}}))}var op=new Set([`$$slots`,`$$events`,`$$legacy`]);function sp(e,t){let n=K(t,op),r=[[`path`,{d:`m6 9 6 6 6-6`}]];Uf(e,q({name:`chevron-down`},()=>n,{get iconNode(){return r}}))}var cp=new Set([`$$slots`,`$$events`,`$$legacy`]);function lp(e,t){let n=K(t,cp),r=[[`path`,{d:`m15 18-6-6 6-6`}]];Uf(e,q({name:`chevron-left`},()=>n,{get iconNode(){return r}}))}var up=new Set([`$$slots`,`$$events`,`$$legacy`]);function dp(e,t){let n=K(t,up),r=[[`path`,{d:`m9 18 6-6-6-6`}]];Uf(e,q({name:`chevron-right`},()=>n,{get iconNode(){return r}}))}var fp=new Set([`$$slots`,`$$events`,`$$legacy`]);function pp(e,t){let n=K(t,fp),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]];Uf(e,q({name:`circle-alert`},()=>n,{get iconNode(){return r}}))}var mp=new Set([`$$slots`,`$$events`,`$$legacy`]);function hp(e,t){let n=K(t,mp),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}],[`path`,{d:`M12 17h.01`}]];Uf(e,q({name:`circle-question-mark`},()=>n,{get iconNode(){return r}}))}var gp=new Set([`$$slots`,`$$events`,`$$legacy`]);function _p(e,t){let n=K(t,gp),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 6v6l4 2`}]];Uf(e,q({name:`clock`},()=>n,{get iconNode(){return r}}))}var vp=new Set([`$$slots`,`$$events`,`$$legacy`]);function yp(e,t){let n=K(t,vp),r=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]];Uf(e,q({name:`code-xml`},()=>n,{get iconNode(){return r}}))}var bp=new Set([`$$slots`,`$$events`,`$$legacy`]);function xp(e,t){let n=K(t,bp),r=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]];Uf(e,q({name:`copy`},()=>n,{get iconNode(){return r}}))}var Sp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Cp(e,t){let n=K(t,Sp),r=[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`}]];Uf(e,q({name:`database`},()=>n,{get iconNode(){return r}}))}var wp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tp(e,t){let n=K(t,wp),r=[[`path`,{d:`M12 15V3`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}],[`path`,{d:`m7 10 5 5 5-5`}]];Uf(e,q({name:`download`},()=>n,{get iconNode(){return r}}))}var Ep=new Set([`$$slots`,`$$events`,`$$legacy`]);function Dp(e,t){let n=K(t,Ep),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`M10 14 21 3`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}]];Uf(e,q({name:`external-link`},()=>n,{get iconNode(){return r}}))}var Op=new Set([`$$slots`,`$$events`,`$$legacy`]);function kp(e,t){let n=K(t,Op),r=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 9H8`}],[`path`,{d:`M16 13H8`}],[`path`,{d:`M16 17H8`}]];Uf(e,q({name:`file-text`},()=>n,{get iconNode(){return r}}))}var Ap=new Set([`$$slots`,`$$events`,`$$legacy`]);function jp(e,t){let n=K(t,Ap),r=[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`}]];Uf(e,q({name:`flame`},()=>n,{get iconNode(){return r}}))}var Mp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Np(e,t){let n=K(t,Mp),r=[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`}]];Uf(e,q({name:`funnel`},()=>n,{get iconNode(){return r}}))}var Pp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Fp(e,t){let n=K(t,Pp),r=[[`circle`,{cx:`18`,cy:`18`,r:`3`}],[`circle`,{cx:`6`,cy:`6`,r:`3`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`}]];Uf(e,q({name:`git-compare`},()=>n,{get iconNode(){return r}}))}var Ip=new Set([`$$slots`,`$$events`,`$$legacy`]);function Lp(e,t){let n=K(t,Ip),r=[[`circle`,{cx:`12`,cy:`9`,r:`1`}],[`circle`,{cx:`19`,cy:`9`,r:`1`}],[`circle`,{cx:`5`,cy:`9`,r:`1`}],[`circle`,{cx:`12`,cy:`15`,r:`1`}],[`circle`,{cx:`19`,cy:`15`,r:`1`}],[`circle`,{cx:`5`,cy:`15`,r:`1`}]];Uf(e,q({name:`grip-horizontal`},()=>n,{get iconNode(){return r}}))}var Rp=new Set([`$$slots`,`$$events`,`$$legacy`]);function zp(e,t){let n=K(t,Rp),r=[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`}]];Uf(e,q({name:`hash`},()=>n,{get iconNode(){return r}}))}var Bp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Vp(e,t){let n=K(t,Bp),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 16v-4`}],[`path`,{d:`M12 8h.01`}]];Uf(e,q({name:`info`},()=>n,{get iconNode(){return r}}))}var Hp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Up(e,t){let n=K(t,Hp),r=[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`}]];Uf(e,q({name:`layers`},()=>n,{get iconNode(){return r}}))}var Wp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Gp(e,t){let n=K(t,Wp),r=[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`}],[`path`,{d:`M14 4h7`}],[`path`,{d:`M14 9h7`}],[`path`,{d:`M14 15h7`}],[`path`,{d:`M14 20h7`}]];Uf(e,q({name:`layout-list`},()=>n,{get iconNode(){return r}}))}var Kp=new Set([`$$slots`,`$$events`,`$$legacy`]);function qp(e,t){let n=K(t,Kp),r=[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`}]];Uf(e,q({name:`link-2`},()=>n,{get iconNode(){return r}}))}var Jp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Yp(e,t){let n=K(t,Jp),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]];Uf(e,q({name:`maximize-2`},()=>n,{get iconNode(){return r}}))}var Xp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Zp(e,t){let n=K(t,Xp),r=[[`path`,{d:`m14 10 7-7`}],[`path`,{d:`M20 10h-6V4`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M4 14h6v6`}]];Uf(e,q({name:`minimize-2`},()=>n,{get iconNode(){return r}}))}var Qp=new Set([`$$slots`,`$$events`,`$$legacy`]);function $p(e,t){let n=K(t,Qp),r=[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`}]];Uf(e,q({name:`monitor`},()=>n,{get iconNode(){return r}}))}var em=new Set([`$$slots`,`$$events`,`$$legacy`]);function tm(e,t){let n=K(t,em),r=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]];Uf(e,q({name:`moon`},()=>n,{get iconNode(){return r}}))}var nm=new Set([`$$slots`,`$$events`,`$$legacy`]);function rm(e,t){let n=K(t,nm),r=[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`}],[`path`,{d:`M12 12V8`}]];Uf(e,q({name:`network`},()=>n,{get iconNode(){return r}}))}var im=new Set([`$$slots`,`$$events`,`$$legacy`]);function am(e,t){let n=K(t,im),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M3 15h18`}]];Uf(e,q({name:`panel-bottom`},()=>n,{get iconNode(){return r}}))}var om=new Set([`$$slots`,`$$events`,`$$legacy`]);function sm(e,t){let n=K(t,om),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}]];Uf(e,q({name:`panel-left`},()=>n,{get iconNode(){return r}}))}var cm=new Set([`$$slots`,`$$events`,`$$legacy`]);function lm(e,t){let n=K(t,cm),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M15 3v18`}]];Uf(e,q({name:`panel-right`},()=>n,{get iconNode(){return r}}))}var um=new Set([`$$slots`,`$$events`,`$$legacy`]);function dm(e,t){let n=K(t,um),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];Uf(e,q({name:`pause`},()=>n,{get iconNode(){return r}}))}var fm=new Set([`$$slots`,`$$events`,`$$legacy`]);function pm(e,t){let n=K(t,fm),r=[[`path`,{d:`M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4`}],[`rect`,{width:`10`,height:`7`,x:`12`,y:`13`,rx:`2`}]];Uf(e,q({name:`picture-in-picture-2`},()=>n,{get iconNode(){return r}}))}var mm=new Set([`$$slots`,`$$events`,`$$legacy`]);function hm(e,t){let n=K(t,mm),r=[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`}]];Uf(e,q({name:`play`},()=>n,{get iconNode(){return r}}))}var gm=new Set([`$$slots`,`$$events`,`$$legacy`]);function _m(e,t){let n=K(t,gm),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]];Uf(e,q({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var vm=new Set([`$$slots`,`$$events`,`$$legacy`]);function ym(e,t){let n=K(t,vm),r=[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}],[`path`,{d:`m16 16-1.9-1.9`}]];Uf(e,q({name:`scan-search`},()=>n,{get iconNode(){return r}}))}var bm=new Set([`$$slots`,`$$events`,`$$legacy`]);function xm(e,t){let n=K(t,bm),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];Uf(e,q({name:`search`},()=>n,{get iconNode(){return r}}))}var Sm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Cm(e,t){let n=K(t,Sm),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`M12 8v4`}],[`path`,{d:`M12 16h.01`}]];Uf(e,q({name:`shield-alert`},()=>n,{get iconNode(){return r}}))}var wm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tm(e,t){let n=K(t,wm),r=[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`}],[`path`,{d:`M20 2v4`}],[`path`,{d:`M22 4h-4`}],[`circle`,{cx:`4`,cy:`20`,r:`2`}]];Uf(e,q({name:`sparkles`},()=>n,{get iconNode(){return r}}))}var Em=new Set([`$$slots`,`$$events`,`$$legacy`]);function Dm(e,t){let n=K(t,Em),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]];Uf(e,q({name:`sun`},()=>n,{get iconNode(){return r}}))}var Om=new Set([`$$slots`,`$$events`,`$$legacy`]);function km(e,t){let n=K(t,Om),r=[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`}]];Uf(e,q({name:`tag`},()=>n,{get iconNode(){return r}}))}var Am=new Set([`$$slots`,`$$events`,`$$legacy`]);function jm(e,t){let n=K(t,Am),r=[[`path`,{d:`M10 11v6`}],[`path`,{d:`M14 11v6`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}],[`path`,{d:`M3 6h18`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}]];Uf(e,q({name:`trash-2`},()=>n,{get iconNode(){return r}}))}var Mm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Nm(e,t){let n=K(t,Mm),r=[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}],[`path`,{d:`M12 9v4`}],[`path`,{d:`M12 17h.01`}]];Uf(e,q({name:`triangle-alert`},()=>n,{get iconNode(){return r}}))}var Pm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Fm(e,t){let n=K(t,Pm),r=[[`path`,{d:`M12 3v12`}],[`path`,{d:`m17 8-5-5-5 5`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}]];Uf(e,q({name:`upload`},()=>n,{get iconNode(){return r}}))}var Im=new Set([`$$slots`,`$$events`,`$$legacy`]);function Lm(e,t){let n=K(t,Im),r=[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`}]];Uf(e,q({name:`workflow`},()=>n,{get iconNode(){return r}}))}var Rm=new Set([`$$slots`,`$$events`,`$$legacy`]);function zm(e,t){let n=K(t,Rm),r=[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`}]];Uf(e,q({name:`wrench`},()=>n,{get iconNode(){return r}}))}var Bm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Vm(e,t){let n=K(t,Bm),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];Uf(e,q({name:`x`},()=>n,{get iconNode(){return r}}))}var Hm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Um(e,t){let n=K(t,Hm),r=[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`}]];Uf(e,q({name:`zap`},()=>n,{get iconNode(){return r}}))}function Wm(e){let t=e-1;return t*t*t+1}function Gm(){return globalThis.window===void 0?null:window.documentPictureInPicture??null}function Km(){return Gm()!==null}var qm=null,Jm=null;async function Ym(e,t,{width:n=720,height:r=560}={}){let i=Gm();if(!i||qm)return!1;let a=await i.requestWindow({width:n,height:r});qm=a,a.document.title=e.ownerDocument.title||`autotel devtools`;let o=a.document.createElement(`style`);return o.textContent=`html,body{margin:0;padding:0;height:100%;width:100%;overflow:hidden;background:transparent}`,a.document.head.appendChild(o),Jm=e.ownerDocument.createComment(`autotel-pip-placeholder`),e.replaceWith(Jm),a.document.body.appendChild(e),a.addEventListener(`pagehide`,()=>Zm(t),{once:!0}),!0}function Xm(e){if(!qm)return;let t=qm;Zm(e);try{t.close()}catch{}}function Zm(e){let t=qm;if(!t)return;qm=null;let n=t.document.body.firstElementChild;n&&(Jm?.isConnected?Jm.replaceWith(n):document.body.appendChild(n)),Jm=null,e?.()}var Qm=[{fill:`#ede9fe`,stroke:`#8b5cf6`},{fill:`#ccfbf1`,stroke:`#14b8a6`},{fill:`#dbeafe`,stroke:`#3b82f6`},{fill:`#fef9c3`,stroke:`#ca8a04`},{fill:`#fce7f3`,stroke:`#db2777`},{fill:`#dcfce7`,stroke:`#16a34a`},{fill:`#ffedd5`,stroke:`#ea580c`},{fill:`#e0e7ff`,stroke:`#6366f1`}];function $m(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return Qm[t%Qm.length]}var eh=[{keys:[`1-6`],description:`Switch between tabs (Traces through Errors)`},{keys:[`?`],description:`Show/hide this shortcuts help`},{keys:[`Esc`],description:`Close shortcuts help / go back from trace detail`},{keys:[`/`],description:`Focus search filter`}],th=[{keys:[`/`],description:`Focus search filter`},{keys:[`Esc`],description:`Clear selection / clear search`},{keys:[`CmdOrCtrl`,`A`],description:`Select all traces`},{keys:[`?`],description:`Show/hide keyboard shortcuts`}],nh=[{keys:[`Esc`],description:`Go back to trace list / close span detail`},{keys:[`w`],description:`Switch to waterfall view`},{keys:[`f`],description:`Switch to flame graph view`},{keys:[`l`],description:`Switch to list view`},{keys:[`↑`,`↓`,`Enter`],description:`Navigate spans / select in waterfall`},{keys:[`e`,`Shift+E`],description:`Next / previous error span`},{keys:[`/`],description:`Search spans in this trace`},{keys:[`?`],description:`Show/hide keyboard shortcuts`}];function rh(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;if(!e)return!1;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||!!e.isContentEditable}function ih(e){return t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),e())}}var ah=globalThis.navigator!==void 0&&/Mac|iPhone|iPad|iPod/.test(navigator.platform),oh=z(`<div class="border border-line rounded-lg p-3 bg-subtle"><div class="font-semibold text-fg"> </div> <div class="text-xs text-fg-subtle mt-0.5"> </div></div>`),sh=z(`<div class="p-3 bg-danger-bg border border-danger-border rounded-md text-sm text-danger flex items-start gap-2"><!> <span> </span></div>`),ch=z(`<p class="mb-1 last:mb-0"> </p>`),lh=z(`<div class="p-3 bg-accent/10 border border-accent/30 rounded-md text-sm text-accent"></div>`),uh=z(`<div class="p-3 bg-success-bg border border-success-border rounded-md text-sm text-success"> </div>`),dh=z(`<div class="fixed inset-0 z-[1100] flex items-center justify-center" role="dialog" aria-modal="true" aria-label="Import traces"><button type="button" aria-label="Close" class="absolute inset-0 bg-black/55 backdrop-blur-[2px] at-backdrop-in"></button> <div tabindex="-1" class="at-modal-in relative z-[1] w-[min(560px,92vw)] max-h-[85vh] overflow-hidden flex flex-col bg-surface rounded-lg shadow-xl border border-line outline-none"><div class="flex items-center justify-between px-4 py-3 border-b border-line bg-subtle flex-shrink-0"><span class="text-sm font-semibold text-fg">Import Traces</span> <button class="inline-flex items-center justify-center w-7 h-7 bg-transparent border border-line rounded text-sm text-fg-subtle hover:bg-danger-bg hover:border-danger-border hover:text-danger transition-colors" title="Close (Esc)"><!></button></div> <div class="overflow-y-auto p-4 flex flex-col gap-3"><label class="flex flex-col gap-2 text-sm text-fg-muted"><span class="font-semibold text-fg">JSON file</span> <span class="inline-flex items-center px-3 py-1.5 border border-line rounded text-sm text-fg-muted bg-surface hover:bg-subtle cursor-pointer w-fit transition-colors"><!> Choose file</span> <input type="file" accept=".json,application/json" class="hidden"/></label> <!> <!> <!> <!></div> <div class="flex items-center justify-end gap-3 px-4 py-3 border-t border-line bg-subtle flex-shrink-0"><button class="px-3 py-1.5 text-sm border border-line rounded bg-surface text-fg-muted hover:bg-subtle disabled:opacity-50 disabled:cursor-not-allowed transition-colors">Cancel</button> <button class="px-4 py-1.5 text-sm rounded bg-accent text-white hover:bg-accent/90 disabled:opacity-50 disabled:cursor-not-allowed transition-colors"> </button></div></div></div>`);function fh(e,t){it(t,!0);function n(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}let r=M(null),i=M(!1),a=M(null),o=M(null),s=M(void 0);Rr(()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),t.onclose())};return window.addEventListener(`keydown`,e),L(s)?.focus(),()=>window.removeEventListener(`keydown`,e)});let c=e=>{let t=e.target.files?.[0];t&&(N(r,t,!0),N(o,null),N(a,null))},l=async()=>{if(L(r)){N(i,!0),N(o,null);try{let e=await t.onimport(L(r));N(a,e,!0),e.errors.length>0&&N(o,e.errors.join(`; `),!0),e.imported>0&&e.errors.length===0&&setTimeout(t.onclose,1500)}catch(e){N(o,String(e),!0)}finally{N(i,!1)}}};var u=dh(),d=P(u),f=F(d,2),p=P(f),m=F(P(p),2);Vm(P(m),{size:14}),E(m),E(p);var h=F(p,2),g=P(h),_=F(P(g),2);Fm(P(_),{size:14,class:`mr-1.5`}),Ke(),E(_);var v=F(_,2);E(g);var y=F(g,2),b=e=>{var t=oh(),i=P(t),a=P(i,!0);E(i);var o=F(i,2),s=P(o,!0);E(o),E(t),I(e=>{V(a,L(r).name),V(s,e)},[()=>n(L(r).size)]),B(e,t)};H(y,e=>{L(r)&&e(b)});var x=F(y,2),S=e=>{var t=sh(),n=P(t);Nm(n,{size:14,class:`flex-shrink-0 mt-0.5`});var r=F(n,2),i=P(r,!0);E(r),E(t),I(()=>V(i,L(o))),B(e,t)};H(x,e=>{L(o)&&e(S)});var C=F(x,2),w=e=>{var t=lh();Na(t,21,()=>L(a).warnings,ka,(e,t)=>{var n=ch(),r=P(n,!0);E(n),I(()=>V(r,L(t))),B(e,n)}),E(t),B(e,t)};H(C,e=>{L(a)&&L(a).warnings.length>0&&e(w)});var ee=F(C,2),te=e=>{var t=uh(),n=P(t);E(t),I(()=>V(n,`Successfully imported ${L(a).imported??``} trace${L(a).imported===1?``:`s`}.`)),B(e,t)};H(ee,e=>{L(a)&&L(a).imported>0&&e(te)}),E(h);var ne=F(h,2),re=P(ne),ie=F(re,2),ae=P(ie,!0);E(ie),E(ne),E(f),Ho(f,e=>N(s,e),()=>L(s)),E(u),I(()=>{re.disabled=L(i),ie.disabled=!L(r)||L(i),V(ae,L(i)?`Importing...`:`Confirm Import`)}),R(`click`,d,function(...e){t.onclose?.apply(this,e)}),R(`click`,m,function(...e){t.onclose?.apply(this,e)}),R(`change`,v,c),R(`click`,re,function(...e){t.onclose?.apply(this,e)}),R(`click`,ie,l),B(e,u),at()}ta([`click`,`change`]);function ph(e,t){if(t.length===0)return e.duration;let n=t.map(t=>[Math.max(t.startTime,e.startTime),Math.min(t.endTime,e.endTime)]).filter(([e,t])=>t>e).sort((e,t)=>e[0]-t[0]),r=0,i=-1/0,a=-1/0;for(let[e,t]of n)e>a?(a>i&&(r+=a-i),i=e,a=t):t>a&&(a=t);return a>i&&(r+=a-i),Math.max(0,e.duration-r)}function mh(e){let t=new Set;if(e.length===0)return t;let n=new Map;for(let t of e)n.set(t.spanId,t);let r=new Map;for(let t of e){let e=t.parentSpanId&&n.has(t.parentSpanId)?t.parentSpanId:``,i=r.get(e);i?i.push(t):r.set(e,[t])}let i=r.get(``)??[];if(i.length===0)return t;let a=e=>e.reduce((e,t)=>t.endTime>e.endTime?t:e),o=a(i);for(;o&&!t.has(o.spanId);){t.add(o.spanId);let e=r.get(o.spanId);o=e&&e.length?a(e):void 0}return t}function hh(e,t=()=>!1){let n=[],r=(e,i,a)=>{e.forEach((o,s)=>{let c=s===e.length-1;n.push({node:o,connectors:{ancestorLines:[...i],isLast:c,depth:a}}),!(t(o)||o.children.length===0)&&r(o.children,[...i,!c],a+1)})};return r(e,[],0),n}function gh(e){if(e!==`local`)return e===`utc`?`UTC`:e}function _h(e,t){try{return new Intl.DateTimeFormat(void 0,{...t,timeZone:gh(e)})}catch{return new Intl.DateTimeFormat(void 0,t)}}function vh(e,t=`local`){return _h(t,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(new Date(e))}function yh(e=`local`){return e===`utc`?`UTC`:_h(e,{timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??`Local`}var bh=2;function xh(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=n>0?(e[i].timestamp-t)/n*100:0,o=Math.min(Math.max(a,0),100),s=r.find(e=>e.every(e=>Math.abs(o-e.posPercent)>bh));s?s.push({index:i,posPercent:o}):r.push([{index:i,posPercent:o}])}return r}var Sh=new Set([`error`,`fatal`,`critical`]);function Ch(e){if(e.name===`exception`)return`exception`;let t=e.attributes?.level??e.attributes?.severity;return typeof t==`string`&&Sh.has(t.toLowerCase())?`exception`:`event`}var wh=z(`<span class="absolute inset-y-0 border-l border-line"></span>`),Th=z(`<span class="relative shrink-0"><!></span>`),Eh=z(`<span class="relative shrink-0"><span></span> <span class="absolute top-1/2 border-t border-line"></span></span>`),Dh=z(`<span aria-hidden="true" data-testid="tree-gutter"><!> <!></span>`);function Oh(e,t){it(t,!0);let n=J(t,`indent`,3,16);var r=Dh(),i=P(r);Na(i,17,()=>t.ancestorLines,ka,(e,t)=>{var r=Th(),i=P(r),a=e=>{var t=wh();I(()=>co(t,`left:${n()/2}px`)),B(e,t)};H(i,e=>{L(t)&&e(a)}),E(r),I(()=>{co(r,`width:${n()??``}px`),G(r,`data-testid`,L(t)?`gutter-line`:`gutter-blank`)}),B(e,r)});var a=F(i,2),o=e=>{var r=Eh(),i=P(r),a=F(i,2);E(r),I(e=>{co(r,`width:${n()??``}px`),G(r,`data-testid`,t.isLast?`gutter-elbow`:`gutter-tee`),W(i,1,e),co(i,`left:${n()/2}px`),co(a,`left:${n()/2}px; width:${n()/2}px`)},[()=>U(Q(`absolute top-0 border-l border-line`,t.isLast?`h-1/2`:`inset-y-0`))]),B(e,r)};H(a,e=>{(t.ancestorLines.length>0||!t.isLast)&&e(o)}),E(r),I(e=>W(r,1,e),[()=>U(Q(`flex shrink-0 self-stretch`,t.class))]),B(e,r),at()}function kh(e){let t=e.children.length;for(let n of e.children)t+=kh(n);return t}function Ah(e,t){let n=t.startTime,r=t.duration||1,i=e.startTime-n,a=i/r*100,o=e.duration/r*100;return{offsetMs:i,offsetPercent:Math.max(0,Math.min(100,a)),widthPercent:Math.max(.5,Math.min(100-a,o))}}function jh(e){switch(e){case`SERVER`:return`bg-blue-500`;case`CLIENT`:return`bg-green-500`;case`PRODUCER`:return`bg-purple-500`;case`CONSUMER`:return`bg-orange-500`;default:return`bg-gray-500`}}function Mh(e){switch(e){case`SERVER`:return`bg-blue-400`;case`CLIENT`:return`bg-green-400`;case`PRODUCER`:return`bg-purple-400`;case`CONSUMER`:return`bg-orange-400`;default:return`bg-gray-400`}}var Nh=z(`<button class="p-0.5 hover:bg-hover rounded flex-shrink-0"><!></button>`),Ph=z(`<div class="w-4"></div>`),Fh=z(`<span class="text-xs text-fg-subtle ml-1"> </span>`),Ih=z(`<span class="absolute inset-0 flex items-center justify-center text-[10px] text-white font-medium"> </span>`),Lh=z(`<button type="button"></button>`),Rh=z(`<div class="flex gap-2 py-0.5"><span class="text-fg-subtle flex-shrink-0"> </span> <span class="text-fg break-all"> </span></div>`),zh=z(`<div class="font-mono text-[11px] text-fg-muted bg-subtle rounded p-2 border border-line-subtle max-h-[160px] overflow-auto"></div>`),Bh=z(`<div class="text-[11px] text-fg-subtle italic">No attributes</div>`),Vh=z(`<div class="absolute z-30 top-[calc(100%-2px)] left-2 right-2 max-w-[420px] bg-surface border border-line rounded-md shadow-lg p-2.5 text-left at-modal-in"><div class="flex items-center gap-2 mb-1.5"><span></span> <span> </span> <span class="text-[10px] text-fg-subtle font-mono"> </span> <button type="button" class="p-0.5 hover:bg-hover rounded flex-shrink-0" aria-label="Close event detail"><!></button></div> <div class="text-[10px] text-fg-subtle font-mono mb-1.5"> </div> <!></div>`),Hh=z(`<div><div class="w-[200px] shrink-0 pr-2 py-2 flex items-center gap-1 min-w-0"><!> <!> <!> <!> <!> <span> </span> <!></div> <div class="flex-1 relative"><div><!></div> <!> <!></div> <div class="w-[80px] shrink-0 px-2 py-2 text-right"><span> </span></div></div>`);function Uh(e,t){it(t,!0);let n=j(()=>t.node.span),r=j(()=>Ah(L(n),t.trace)),i=j(()=>L(n).status.code===`ERROR`),a=j(()=>L(n).events&&L(n).events.length>0),o=j(()=>xh(L(n).events??[],t.trace.startTime,t.trace.duration)),s=M(null),c=e=>{N(s,L(s)===e?null:e,!0)};Rr(()=>{if(L(s)===null)return;let e=()=>{N(s,null)},t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`click`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`keydown`,t)}});var l=Hh(),u=P(l),d=P(u),f=e=>{Oh(e,{get ancestorLines(){return t.connectors.ancestorLines},get isLast(){return t.connectors.isLast}})};H(d,e=>{t.connectors&&e(f)});var p=F(d,2),m=e=>{var n=Nh(),r=P(n),i=e=>{dp(e,{size:12,class:`text-fg-subtle`})},a=e=>{sp(e,{size:12,class:`text-fg-subtle`})};H(r,e=>{t.isCollapsed?e(i):e(a,-1)}),E(n),R(`click`,n,e=>{e.stopPropagation(),t.onToggleCollapse?.()}),B(e,n)},h=e=>{B(e,Ph())};H(p,e=>{t.hasChildren?e(m):e(h,-1)});var _=F(p,2),v=e=>{pp(e,{size:12,class:`text-danger flex-shrink-0`})};H(_,e=>{L(i)&&e(v)});var y=F(_,2),b=e=>{Vp(e,{size:10,class:`text-accent flex-shrink-0`})};H(y,e=>{L(a)&&e(b)});var x=F(y,2),S=e=>{Um(e,{size:10,class:`text-warning fill-warning flex-shrink-0`})};H(x,e=>{t.isCritical&&e(S)});var C=F(x,2),w=P(C,!0);E(C);var ee=F(C,2),te=e=>{var n=Fh(),r=P(n);E(n),I(e=>V(r,`(+${e??``})`),[()=>kh(t.node)]),B(e,n)};H(ee,e=>{t.isCollapsed&&t.node.children.length>0&&e(te)}),E(u);var ne=F(u,2),re=P(ne),ie=P(re),ae=e=>{var t=Ih(),r=P(t,!0);E(t),I(e=>V(r,e),[()=>rd(L(n).duration)]),B(e,t)};H(ie,e=>{L(r).widthPercent>10&&e(ae)}),E(re);var oe=F(re,2);Na(oe,17,()=>L(o),ka,(e,r,i)=>{var a=ua();Na(Or(a),17,()=>L(r),e=>e.index,(e,r)=>{let a=j(()=>L(n).events[L(r).index]),o=j(()=>28+i*8),l=j(()=>Ch(L(a))===`exception`);var u=Lh();I((e,t)=>{W(u,1,e),co(u,`left: ${L(r).posPercent}%; top: ${L(o)}px; transform: translateX(-50%);`),G(u,`title`,t),G(u,`aria-label`,`Event ${L(a).name}`)},[()=>U(Q(`absolute w-2.5 h-2.5 rounded-full border border-white z-10 cursor-pointer hover:scale-125 transition-transform`,L(l)?`bg-danger`:`bg-warning`,L(s)===L(r).index&&`ring-2 ring-accent scale-125`)),()=>`${L(a).name} at ${rd(L(a).timestamp-t.trace.startTime)} — click for detail`]),R(`click`,u,e=>{e.stopPropagation(),c(L(r).index)}),B(e,u)}),B(e,a)});var se=F(oe,2),ce=e=>{let r=j(()=>L(n).events[L(s)]),i=j(()=>Ch(L(r))===`exception`);var a=Vh(),o=P(a),c=P(o),l=F(c,2),u=P(l,!0);E(l);var d=F(l,2),f=P(d);E(d);var p=F(d,2);Vm(P(p),{size:12,class:`text-fg-subtle`}),E(p),E(o);var m=F(o,2),h=P(m,!0);E(m);var _=F(m,2),v=e=>{var t=zh();Na(t,21,()=>Object.entries(L(r).attributes),([e,t])=>e,(e,t)=>{var n=j(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=Rh(),o=P(a),s=P(o,!0);E(o);var c=F(o,2),l=P(c,!0);E(c),E(a),I(e=>{V(s,r()),V(l,e)},[()=>typeof i()==`object`?JSON.stringify(i()):String(i())]),B(e,a)}),E(t),B(e,t)},y=j(()=>L(r).attributes&&Object.keys(L(r).attributes).length>0),b=e=>{B(e,Bh())};H(_,e=>{L(y)?e(v):e(b,-1)}),E(a),I((e,t,n,i)=>{W(c,1,e),W(l,1,t),V(u,L(r).name),V(f,`+${n??``}`),V(h,i)},[()=>U(Q(`w-2 h-2 rounded-full flex-shrink-0`,L(i)?`bg-danger`:`bg-warning`)),()=>U(Q(`text-xs font-medium flex-1 truncate`,L(i)?`text-danger`:`text-fg`)),()=>rd(L(r).timestamp-t.trace.startTime),()=>vh(L(r).timestamp,Bu.value)]),R(`click`,a,e=>e.stopPropagation()),R(`click`,p,e=>{e.stopPropagation(),N(s,null)}),B(e,a)};H(se,e=>{L(s)!==null&&L(n).events?.[L(s)]&&e(ce)}),E(ne);var le=F(ne,2),ue=P(le),T=P(ue,!0);E(ue),E(le),E(l),I((e,i,a,o,s,c,d)=>{G(l,`id`,`waterfall-row-${L(n).spanId}`),W(l,1,e),co(u,t.connectors?`padding-left: 8px;`:`padding-left: ${8+t.node.depth*16}px;`),W(C,1,i),G(C,`title`,L(n).name),V(w,L(n).name||`unknown`),co(ne,a),W(re,1,o),co(re,`left: ${L(r).offsetPercent}%; width: ${L(r).widthPercent}%; top: 6px; min-width: 4px;`),G(re,`title`,s),W(ue,1,c),V(T,d)},[()=>U(Q(`flex items-center border-b border-line-subtle hover:bg-accent/5 cursor-pointer transition-colors`,t.isSelected&&`bg-accent/10 hover:bg-accent/15`,L(i)&&`bg-danger-bg/40 hover:bg-danger-bg/60`,t.isCritical&&`border-l-2 border-l-warning`)),()=>U(Q(`text-xs truncate`,L(i)?`text-danger`:`text-fg`)),()=>`height: ${Math.max(32,30+L(o).length*8)}px;`,()=>U(Q(`absolute h-5 rounded-sm transition-colors group`,L(i)?`bg-danger`:jh(L(n).kind),t.isSelected&&(L(i)?`bg-danger`:Mh(L(n).kind)))),()=>`${L(n).name}: ${rd(L(n).duration)}`,()=>U(Q(`text-xs font-mono`,L(i)?`text-danger`:`text-fg-muted`)),()=>rd(L(n).duration)]),R(`click`,l,()=>t.onSelect?.()),B(e,l),at()}ta([`click`]);function Wh(e){let t=new Map,n=[],r=new Map;for(let n of e)t.set(n.spanId,{span:n,children:[],depth:0});for(let i of e){let e=t.get(i.spanId);if(i.parentSpanId){let n=t.get(i.parentSpanId);if(n)n.children.push(e);else{let t=r.get(i.parentSpanId)||[];t.push(e),r.set(i.parentSpanId,t)}}else n.push(e)}let i=(e,t,n=new Set)=>{if(!n.has(e.span.spanId)){n.add(e.span.spanId),e.depth=t;for(let r of e.children)i(r,t+1,new Set(n))}};for(let[t,i]of r){i.sort((e,t)=>e.span.startTime-t.span.startTime);let r=Math.min(...i.map(e=>e.span.startTime)),a=Math.max(...i.map(e=>e.span.endTime)),o=e.find(e=>e.spanId===t),s={span:{spanId:t,traceId:i[0].span.traceId,parentSpanId:o?.parentSpanId||void 0,name:`(missing)`,kind:`INTERNAL`,startTime:r,endTime:a,duration:a-r,attributes:{},status:{code:`UNSET`},events:[]},children:i,depth:0};n.push(s)}for(let e of n)i(e,0);let a=e=>{e.sort((e,t)=>e.span.startTime-t.span.startTime);for(let t of e)a(t.children)};return a(n),n}var Gh=z(`<div class="absolute text-[10px] whitespace-nowrap tabular-nums"> </div>`),Kh=z(`<div class="absolute top-0 bottom-0 border-l border-line-subtle"></div>`),qh=z(`<div></div>`),Jh=z(`<div><!></div>`),Yh=z(`<div class="px-3 py-6 text-center text-xs text-fg-subtle"> </div>`),Xh=z(`<div class="flex items-center gap-1"><div></div> <span class="text-fg-muted"> </span></div>`),Zh=z(`<div class="flex flex-col h-full"><div class="flex border-b border-line bg-subtle text-xs text-fg-subtle"><div class="w-[200px] shrink-0 px-3 py-2 font-medium text-fg-muted">Span Name</div> <div class="flex-1 relative py-2"></div> <div class="w-[80px] shrink-0 px-2 py-2 text-right font-medium text-fg-muted">Duration</div></div> <div class="flex-1 overflow-auto relative"><div class="absolute inset-0 pointer-events-none"></div> <div class="relative"><!> <!> <!> <!></div></div> <div class="flex items-center gap-4 px-3 py-2 border-t border-line bg-subtle text-xs"><span class="text-fg-subtle font-medium">Kind:</span> <!> <button title="Highlight the spans that determine total trace latency"><!> Critical path</button></div></div>`);function Qh(e,t){it(t,!0);let n=J(t,`selectedSpanId`,3,null),r=J(t,`query`,3,``),i=j(()=>{let e=r().trim().toLowerCase();if(!e)return new Set;let n=new Set,i=(t.trace.service?.toLowerCase()??``).includes(e);for(let r of t.trace.spans)(i||r.name?.toLowerCase().includes(e))&&n.add(r.spanId);return n}),a=j(()=>r().trim().length>0);Rr(()=>{t.onMatchCount?.(L(i).size)});let o=M(_r(new Set)),s=M(!0),c=M(void 0),l=M(0),u=M(void 0),d=M(0),f=M(0),p=j(()=>mh(t.trace.spans));Rr(()=>{let e=L(c);if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e=>{N(l,e[0].contentRect.width,!0)});return t.observe(e),()=>t.disconnect()});let m=j(()=>Wh(t.trace.spans)),h=j(()=>hh(L(m),e=>L(o).has(e.span.spanId))),g=j(()=>L(h).map(e=>e.node)),_=j(()=>L(h).length<300||L(f)===0?{start:0,end:L(h).length}:{start:Math.max(0,Math.floor(L(d)/34)-12),end:Math.min(L(h).length,Math.ceil((L(d)+L(f))/34)+12)}),v=j(()=>L(h).slice(L(_).start,L(_).end));Rr(()=>{let e=L(u);if(!e||typeof ResizeObserver>`u`)return;N(f,e.clientHeight,!0);let t=new ResizeObserver(()=>{N(f,e.clientHeight,!0)});return t.observe(e),()=>t.disconnect()});function y(e){return L(u)?.querySelector(`#waterfall-row-${e}`)}function b(e){if(!L(u)||L(h).length<300)return;let t=e*34,n=t+34;t<L(u).scrollTop?L(u).scrollTop=t:n>L(u).scrollTop+L(u).clientHeight&&(L(u).scrollTop=n-L(u).clientHeight),N(d,L(u).scrollTop,!0)}let x=e=>{if(el.value||rh()||e.key!==`ArrowUp`&&e.key!==`ArrowDown`&&e.key!==`Enter`)return;e.preventDefault();let r=L(g).findIndex(e=>e.span.spanId===n()),i;if(e.key===`ArrowUp`)i=r>0?r-1:L(g).length-1;else if(e.key===`ArrowDown`)i=r<L(g).length-1?r+1:0;else{if(r>=0){t.onSpanSelect?.(L(g)[r].span);return}i=0}let a=L(g)[i];a&&(t.onSpanSelect?.(a.span),b(i),y(a.span.spanId)?.scrollIntoView({block:`nearest`}))};Rr(()=>(L(g),n(),window.addEventListener(`keydown`,x),()=>window.removeEventListener(`keydown`,x))),Rr(()=>{let e=n();e&&Fi(()=>{let n=new Map(t.trace.spans.map(e=>[e.spanId,e])),r=new Set(L(o)),i=!1,a=n.get(e)?.parentSpanId;for(;a;)r.delete(a)&&(i=!0),a=n.get(a)?.parentSpanId;i&&N(o,r,!0);let s=L(h).findIndex(t=>t.node.span.spanId===e);s>=0&&b(s),requestAnimationFrame(()=>y(e)?.scrollIntoView({block:`center`}))})});let S=e=>{let t=new Set(L(o));t.has(e)?t.delete(e):t.add(e),N(o,t,!0)},C=e=>t.trace.spans.some(t=>t.parentSpanId===e),w=j(()=>{let e=t.trace.duration||1,n=L(l)>0?Math.min(8,Math.max(2,Math.floor(L(l)/90))):5,r=[];for(let t=0;t<=n;t++)r.push({percent:t/n*100,label:rd(t/n*e),align:t===0?`start`:t===n?`end`:`mid`});return r}),ee=[`SERVER`,`CLIENT`,`INTERNAL`,`PRODUCER`,`CONSUMER`];var te=Zh(),ne=P(te),re=F(P(ne),2);Na(re,21,()=>L(w),ka,(e,t)=>{var n=Gh(),r=P(n,!0);E(n),I(()=>{co(n,`left: ${L(t).percent}%; transform: ${L(t).align===`start`?`translateX(0)`:L(t).align===`end`?`translateX(-100%)`:`translateX(-50%)`};`),V(r,L(t).label)}),B(e,n)}),E(re),Ho(re,e=>N(c,e),()=>L(c)),Ke(2),E(ne);var ie=F(ne,2),ae=P(ie);co(ae,`left: 200px; right: 80px;`),Na(ae,21,()=>L(w),ka,(e,t)=>{var n=Kh();I(()=>co(n,`left: ${L(t).percent}%;`)),B(e,n)}),E(ae);var oe=F(ae,2),se=P(oe),ce=e=>{var t=qh();I(()=>co(t,`height: ${L(_).start*34}px`)),B(e,t)};H(se,e=>{L(_).start>0&&e(ce)});var le=F(se,2);Na(le,17,()=>L(v),({node:e,connectors:t})=>e.span.spanId,(e,r)=>{let c=()=>L(r).node,l=()=>L(r).connectors,u=j(()=>L(i).has(c().span.spanId));var d=Jh(),f=P(d);{let e=j(()=>n()===c().span.spanId),r=j(()=>L(o).has(c().span.spanId)),i=j(()=>C(c().span.spanId)),a=j(()=>L(s)&&L(p).has(c().span.spanId));Uh(f,{get node(){return c()},get trace(){return t.trace},get isSelected(){return L(e)},get isCollapsed(){return L(r)},get hasChildren(){return L(i)},get isCritical(){return L(a)},get connectors(){return l()},onSelect:()=>t.onSpanSelect?.(c().span),onToggleCollapse:()=>S(c().span.spanId)})}E(d),I(e=>W(d,1,e),[()=>U(Q(`transition-opacity`,L(a)&&!L(u)&&`opacity-40`,L(a)&&L(u)&&`ring-1 ring-inset ring-accent rounded-sm`))]),B(e,d)});var ue=F(le,2),T=e=>{var t=qh();I(()=>co(t,`height: ${(L(h).length-L(_).end)*34}px`)),B(e,t)};H(ue,e=>{L(_).end<L(h).length&&e(T)});var de=F(ue,2),fe=e=>{var t=Yh(),n=P(t);E(t),I(e=>V(n,`No spans match “${e??``}”.`),[()=>r().trim()]),B(e,t)};H(de,e=>{L(a)&&L(i).size===0&&e(fe)}),E(oe),E(ie),Ho(ie,e=>N(u,e),()=>L(u));var pe=F(ie,2),me=F(P(pe),2);Na(me,16,()=>ee,e=>e,(e,t)=>{var n=Xh(),r=P(n),i=F(r,2),a=P(i,!0);E(i),E(n),I(e=>{W(r,1,e),V(a,t)},[()=>U(Q(`w-3 h-3 rounded-sm`,jh(t)))]),B(e,n)});var he=F(me,2);Um(P(he),{size:11}),Ke(),E(he),E(pe),E(te),I(e=>W(he,1,e),[()=>U(Q(`ml-auto flex items-center gap-1 px-1.5 py-0.5 rounded border transition-colors`,L(s)?`bg-warning-bg text-warning border-warning-border`:`text-fg-subtle border-line hover:bg-hover`))]),ea(`scroll`,ie,e=>N(d,e.currentTarget.scrollTop,!0)),R(`click`,he,()=>N(s,!L(s))),B(e,te),at()}ta([`click`]);function $h(e,t){let n=new Map,r=[],i=t.duration||1,a=t.startTime;for(let t of e){let e=(t.startTime-a)/i*100,r=t.duration/i*100;n.set(t.spanId,{span:t,children:[],depth:0,x:Math.max(0,e),width:Math.max(.5,Math.min(100-e,r))})}for(let t of e){let e=n.get(t.spanId);if(t.parentSpanId){let i=n.get(t.parentSpanId);i?(i.children.push(e),e.depth=i.depth+1):r.push(e)}else r.push(e)}let o=e=>{e.sort((e,t)=>e.span.startTime-t.span.startTime);for(let t of e)o(t.children)};return o(r),r}function eg(e){let t=[],n=e=>{t.push(e),e.children.forEach(n)};return e.forEach(n),t}function tg(e){let t=0,n=e=>{t=Math.max(t,e.depth),e.children.forEach(n)};return e.forEach(n),t}function ng(e,t,n){let r=n.find(e=>e.spanId===t);if(!r)return e;let i=r.startTime,a=r.duration||1,o=(e,t)=>{let r=n.find(t=>t.spanId===e);return r?r.parentSpanId===t?!0:r.parentSpanId?o(r.parentSpanId,t):!1:!1},s=e=>{if(!(e.span.spanId===t||o(e.span.spanId,t)))return{...e,x:-100,width:0,children:e.children.map(s)};let n=(e.span.startTime-i)/a*100,r=e.span.duration/a*100;return{...e,x:Math.max(0,n),width:Math.max(.5,Math.min(100-Math.max(0,n),r)),children:e.children.map(s)}};return e.map(s)}function rg(e){if(e.status.code===`ERROR`)return`bg-red-500 hover:bg-red-400`;switch(e.kind){case`SERVER`:return`bg-blue-500 hover:bg-blue-400`;case`CLIENT`:return`bg-green-500 hover:bg-green-400`;case`PRODUCER`:return`bg-purple-500 hover:bg-purple-400`;case`CONSUMER`:return`bg-orange-500 hover:bg-orange-400`;default:return`bg-gray-500 hover:bg-gray-400`}}function ig(e){return e.status.code===`ERROR`?`ring-2 ring-danger`:`ring-2 ring-accent`}var ag=z(`<div class="absolute inset-0 flex items-center px-1.5 overflow-hidden"><span class="text-[10px] text-white font-medium truncate"> </span></div>`),og=z(`<div role="button" tabindex="-1"><!></div>`),sg=z(`<span class="flex items-center gap-2"><span class="font-medium">Zoomed:</span> <span class="truncate max-w-[200px]"> </span></span>`),cg=z(`<span>Click a span to zoom in, double-click to select</span>`),lg=z(`<button class="p-1.5 hover:bg-hover rounded transition-colors flex items-center gap-1 text-xs text-fg-muted" title="Reset zoom"><!> Reset</button>`),ug=z(`<div class="absolute left-0 right-0"></div>`),dg=z(`<div class="flex items-center gap-1 mt-1 text-danger"><!> <span>Error</span></div>`),fg=z(`<div class="absolute z-50 pointer-events-none"><div class="bg-surface text-fg text-xs rounded-md shadow-lg p-2 max-w-[200px]"><div class="font-medium truncate mb-1"> </div> <div class="flex items-center gap-2 text-fg-muted"><span> </span> <span>|</span> <span> </span></div> <!></div></div>`),pg=z(`<div class="flex items-center gap-1"><div></div> <span class="text-fg-muted"> </span></div>`),mg=z(`<div class="flex flex-col h-full"><div class="flex items-center justify-between px-3 py-2 border-b border-line bg-subtle"><div class="text-xs text-fg-muted"><!></div> <div class="flex items-center gap-1"><!></div></div> <div class="flex-1 overflow-auto p-4 relative" role="presentation"><div class="relative w-full"></div> <!></div> <div class="flex items-center gap-4 px-3 py-2 border-t border-line bg-subtle text-xs"><span class="text-fg-subtle font-medium">Kind:</span> <!> <div class="flex items-center gap-1 ml-2"><div class="w-3 h-3 rounded-sm bg-red-500"></div> <span class="text-fg-muted">ERROR</span></div></div></div>`);function hg(e,t){it(t,!0);let n=(e,n=p,r=p,i=p)=>{let a=j(()=>{let{span:e,x:t,width:r}=n();return{span:e,x:t,width:r}});var o=ua(),s=Or(o),c=e=>{var n=og(),i=j(()=>ih(()=>f(L(a).span.spanId))),o=P(n),s=e=>{var t=ag(),n=P(t),r=P(n,!0);E(n),E(t),I(()=>V(r,L(a).span.name)),B(e,t)};H(o,e=>{L(a).width>5&&e(s)}),E(n),I((e,t)=>{W(n,1,e),co(n,`left: ${L(a).x??``}%; width: ${L(a).width??``}%; height: 24px; min-width: 4px;`),G(n,`title`,t)},[()=>U(Q(`absolute cursor-pointer transition-all`,rg(L(a).span),r()&&ig(L(a).span),`rounded-sm`)),()=>`${L(a).span.name}: ${rd(L(a).span.duration)}`]),R(`click`,n,()=>f(L(a).span.spanId)),R(`keydown`,n,function(...e){L(i)?.apply(this,e)}),R(`dblclick`,n,()=>t.onSpanSelect?.(L(a).span)),R(`mousemove`,n,e=>h(e,L(a).span)),ea(`mouseleave`,n,_),B(e,n)};H(s,e=>{L(a).width<=0||L(a).x<0||e(c)}),B(e,o)},r=M(_r({focusedSpanId:null})),i=M(null),a=M(_r({x:0,y:0})),o=M(void 0),s=j(()=>$h(t.trace.spans,t.trace)),c=j(()=>L(r).focusedSpanId?ng(L(s),L(r).focusedSpanId,t.trace.spans):L(s)),l=j(()=>eg(L(c))),u=j(()=>tg(L(c))),d=j(()=>{let e=new Map;for(let t of L(l))if(t.width>0){let n=e.get(t.depth)||[];n.push(t),e.set(t.depth,n)}return e}),f=e=>{N(r,{focusedSpanId:e},!0)},m=()=>{N(r,{focusedSpanId:null},!0)},h=(e,t)=>{if(L(o)){let t=L(o).getBoundingClientRect();N(a,{x:e.clientX-t.left,y:e.clientY-t.top},!0)}N(i,t,!0)},_=()=>{N(i,null)},v=j(()=>(L(u)+1)*26+20);var y=mg(),b=P(y),x=P(b),S=P(x),C=e=>{var n=sg(),i=F(P(n),2),a=P(i,!0);E(i),E(n),I(e=>V(a,e),[()=>t.trace.spans.find(e=>e.spanId===L(r).focusedSpanId)?.name]),B(e,n)},w=e=>{B(e,cg())};H(S,e=>{L(r).focusedSpanId?e(C):e(w,-1)}),E(x);var ee=F(x,2),te=P(ee),ne=e=>{var t=lg();_m(P(t),{size:14}),Ke(),E(t),R(`click`,t,m),B(e,t)};H(te,e=>{L(r).focusedSpanId&&e(ne)}),E(ee),E(b);var re=F(b,2),ie=P(re);Na(ie,21,()=>[...L(d).entries()],([e,t])=>e,(e,r)=>{var a=j(()=>g(L(r),2));let o=()=>L(a)[0],s=()=>L(a)[1];var c=ug();Na(c,21,s,e=>e.span.spanId,(e,r)=>{n(e,()=>L(r),()=>t.selectedSpanId===L(r).span.spanId,()=>L(i)?.spanId===L(r).span.spanId)}),E(c),I(()=>co(c,`top: ${o()*26}px;`)),B(e,c)}),E(ie);var ae=F(ie,2),oe=e=>{var t=fg(),n=P(t),r=P(n),s=P(r,!0);E(r);var c=F(r,2),l=P(c),u=P(l,!0);E(l);var d=F(l,4),f=P(d,!0);E(d),E(c);var p=F(c,2),m=e=>{var t=dg();pp(P(t),{size:10}),Ke(2),E(t),B(e,t)};H(p,e=>{L(i).status.code===`ERROR`&&e(m)}),E(n),E(t),I((e,n)=>{co(t,`left: ${e??``}px; top: ${L(a).y+10}px;`),V(s,L(i).name),V(u,n),V(f,L(i).kind)},[()=>Math.min(L(a).x+10,(L(o)?.clientWidth||300)-220),()=>rd(L(i).duration)]),B(e,t)};H(ae,e=>{L(i)&&e(oe)}),E(re),Ho(re,e=>N(o,e),()=>L(o));var se=F(re,2);Na(F(P(se),2),16,()=>[`SERVER`,`CLIENT`,`INTERNAL`,`PRODUCER`,`CONSUMER`],e=>e,(e,t)=>{var n=pg(),r=P(n),i=F(r,2),a=P(i,!0);E(i),E(n),I(e=>{W(r,1,e),V(a,t)},[()=>U(Q(`w-3 h-3 rounded-sm`,t===`SERVER`&&`bg-blue-500`,t===`CLIENT`&&`bg-green-500`,t===`PRODUCER`&&`bg-purple-500`,t===`CONSUMER`&&`bg-orange-500`,t===`INTERNAL`&&`bg-gray-500`))]),B(e,n)}),Ke(2),E(se),E(y),I(()=>co(ie,`height: ${L(v)??``}px; min-width: 100%;`)),ea(`mouseleave`,re,_),B(e,y),at()}ta([`click`,`keydown`,`dblclick`,`mousemove`]);function gg(e){if(typeof e==`object`&&e)return e;if(typeof e!=`string`)return null;let t=e.trim();if(t.length<2)return null;let n=t[0];if(n!==`{`&&n!==`[`)return null;try{let e=JSON.parse(t);return typeof e==`object`&&e?e:null}catch{return null}}var _g=z(`<div class="relative group"><!> <button title="Copy"><!></button></div>`);function vg(e,t){it(t,!0);let n=M(!1);async function r(){try{await navigator.clipboard.writeText(t.content),N(n,!0),setTimeout(()=>N(n,!1),2e3)}catch(e){console.error(`Failed to copy:`,e)}}var i=_g(),a=P(i);za(a,()=>t.children);var o=F(a,2),s=P(o),c=e=>{ap(e,{size:14,class:`text-success`})},l=e=>{xp(e,{size:14,class:`text-fg-muted`})};H(s,e=>{L(n)?e(c):e(l,-1)}),E(o),E(i),I(e=>W(o,1,e),[()=>U(Q(`absolute top-2 right-2 p-1.5 rounded-md`,`bg-surface border border-line shadow-sm`,`opacity-0 group-hover:opacity-100 transition-opacity`,`hover:bg-subtle`))]),R(`click`,o,r),B(e,i),at()}ta([`click`]);var yg=z(`<button type="button" class="absolute right-1 top-1/2 -translate-y-1/2 p-0.5 text-fg-subtle hover:text-fg-muted"><!></button>`),bg=z(`<div><!> <input/> <!></div>`);function xg(e,t){it(t,!0);let n=J(t,`value`,15),r=J(t,`clearTitle`,3,`Clear filter`),i=J(t,`class`,3,`flex-1`),a=J(t,`inputClass`,3,`border-line focus:border-line`),o=J(t,`ref`,15,null);function s(e){n(e),t.onValue?.(e)}var c=bg(),l=P(c);xm(l,{size:12,class:`absolute left-2 top-1/2 -translate-y-1/2 text-fg-subtle`});var u=F(l,2);So(u),Ho(u,e=>o(e),()=>o());var d=F(u,2),f=e=>{var t=yg();Vm(P(t),{size:12}),E(t),I(()=>G(t,`title`,r())),R(`click`,t,()=>s(``)),B(e,t)};H(d,e=>{n()&&e(f)}),E(c),I((e,r)=>{W(c,1,e),Co(u,n()),G(u,`placeholder`,t.placeholder),G(u,`aria-label`,t.ariaLabel),W(u,1,r)},[()=>U(Q(`relative`,i())),()=>U(Q(`w-full pl-7 pr-7 py-1 text-xs rounded border focus:outline-none`,a()))]),R(`input`,u,e=>s(e.currentTarget.value)),B(e,c),at()}ta([`input`,`click`]);function Sg(e,t){return!e||t.some(t=>t!=null&&String(t).toLowerCase().includes(e))}var Cg=z(`<span class="text-fg-subtle"> </span>`),wg=z(`<div class="flex gap-1 leading-5"><!> <span> </span></div>`),Tg=z(`<span class="text-fg-subtle opacity-70"> </span>`),Eg=z(`<div class="pl-3 ml-1 border-l border-line-subtle"><!> <div class="text-fg-subtle"> </div></div>`),Dg=z(`<div class="leading-5"><button class="inline-flex items-center gap-1 hover:bg-hover rounded px-0.5"><!> <!> <span class="text-fg-subtle"> </span> <!></button> <!></div>`);function Og(e,t){it(t,!0);function n(e){if(e===null)return`text-fg-subtle`;switch(typeof e){case`string`:return`text-green-600`;case`number`:return`text-blue-600`;case`boolean`:return`text-purple-600`;default:return`text-fg`}}function r(e){return e===null?`null`:typeof e==`string`?`"${e}"`:String(e)}let i=j(()=>t.value!==null&&typeof t.value==`object`),a=M(t.depth<2),o=j(()=>Array.isArray(t.value)),s=j(()=>L(o)?t.value.map((e,t)=>[String(t),e]):Object.entries(t.value)),c=j(()=>L(o)?`[`:`{`),l=j(()=>L(o)?`]`:`}`),u=j(()=>`${L(s).length} ${L(o)?`items`:`keys`}`);var d=ua(),f=Or(d),p=e=>{var i=wg(),a=P(i),o=e=>{var n=Cg(),r=P(n);E(n),I(()=>V(r,`${t.label??``}:`)),B(e,n)};H(a,e=>{t.label!==void 0&&e(o)});var s=F(a,2),c=P(s,!0);E(s),E(i),I((e,t)=>{W(s,1,e),V(c,t)},[()=>U(Q(`break-all`,n(t.value))),()=>r(t.value)]),B(e,i)},m=e=>{var n=Dg(),r=P(n),i=P(r),o=e=>{sp(e,{size:10})},d=e=>{dp(e,{size:10})};H(i,e=>{L(a)?e(o):e(d,-1)});var f=F(i,2),p=e=>{var n=Cg(),r=P(n);E(n),I(()=>V(r,`${t.label??``}:`)),B(e,n)};H(f,e=>{t.label!==void 0&&e(p)});var m=F(f,2),h=P(m,!0);E(m);var _=F(m,2),v=e=>{var t=Tg(),n=P(t,!0);E(t),I(()=>V(n,L(u))),B(e,t)};H(_,e=>{L(a)||e(v)}),E(r);var y=F(r,2),b=e=>{var n=Eg(),r=P(n);Na(r,17,()=>L(s),([e,t])=>e,(e,n)=>{var r=j(()=>g(L(n),2));let i=()=>L(r)[0],a=()=>L(r)[1];{let n=j(()=>t.depth+1);Og(e,{get label(){return i()},get value(){return a()},get depth(){return L(n)}})}});var i=F(r,2),a=P(i,!0);E(i),E(n),I(()=>V(a,L(l))),B(e,n)};H(y,e=>{L(a)&&e(b)}),E(n),I(()=>V(h,L(a)?L(c):`${L(c)}…${L(l)}`)),R(`click`,r,()=>N(a,!L(a))),B(e,n)};H(f,e=>{L(i)?e(m,-1):e(p)}),B(e,d),at()}ta([`click`]);var kg=z(`<div class="font-mono text-xs text-fg"><!></div>`);function Ag(e,t){var n=kg();Og(P(n),{get value(){return t.data},depth:0}),E(n),B(e,n)}var jg=z(`<button type="button" class="font-mono text-accent hover:underline truncate flex-1 text-left cursor-pointer"> </button>`),Mg=z(`<code class="font-mono text-fg-muted truncate flex-1"> </code>`),Ng=z(`<div class="flex items-center gap-2"><span class="text-fg-subtle w-24 flex-shrink-0"> </span> <!> <button class="p-1 hover:bg-hover rounded transition-colors flex-shrink-0" title="Copy to clipboard"><!></button></div>`);function Pg(e,t){let n=M(!1),r=async()=>{await navigator.clipboard.writeText(t.value),N(n,!0),setTimeout(()=>N(n,!1),2e3)};var i=Ng(),a=P(i),o=P(a);E(a);var s=F(a,2),c=e=>{var n=jg(),r=P(n,!0);E(n),I(()=>{G(n,`title`,t.activateTitle??`Open`),V(r,t.value)}),R(`click`,n,function(...e){t.onActivate?.apply(this,e)}),B(e,n)},l=e=>{var n=Mg(),r=P(n,!0);E(n),I(()=>V(r,t.value)),B(e,n)};H(s,e=>{t.onActivate?e(c):e(l,-1)});var u=F(s,2),d=P(u),f=e=>{ap(e,{size:12,class:`text-success`})},p=e=>{xp(e,{size:12,class:`text-fg-subtle`})};H(d,e=>{L(n)?e(f):e(p,-1)}),E(u),E(i),I(()=>V(o,`${t.label??``}:`)),R(`click`,u,r),B(e,i)}ta([`click`]);var Fg=z(`<button type="button"><!></button>`);function Ig(e,t){it(t,!0);let n=J(t,`label`,3,`Copy`),r=J(t,`size`,3,12),i=J(t,`class`,3,``),a=J(t,`stop`,3,!0),o=M(!1);async function s(e){a()&&(e.stopPropagation(),e.preventDefault());try{await navigator.clipboard.writeText(t.value),N(o,!0),setTimeout(()=>N(o,!1),1500)}catch(e){console.error(`[autotel-devtools] copy failed:`,e)}}var c=Fg(),l=P(c),u=e=>{ap(e,{get size(){return r()},class:`text-success`})},d=e=>{xp(e,{get size(){return r()}})};H(l,e=>{L(o)?e(u):e(d,-1)}),E(c),I(e=>{G(c,`title`,L(o)?`Copied!`:n()),G(c,`aria-label`,n()),W(c,1,e)},[()=>U(Q(`inline-flex items-center justify-center p-1 rounded flex-shrink-0`,`text-fg-subtle hover:text-fg hover:bg-hover transition-colors`,i()))]),R(`click`,c,s),B(e,c),at()}ta([`click`]);function Lg(e){return`'${e.replaceAll(`'`,`'\\''`)}'`}function Rg(e){if(typeof e==`string`&&e.length>0)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e)}function zg(e){let t=Rg(e[`url.full`])??Rg(e[`http.url`]);if(t)return t;let n=Rg(e[`server.address`])??Rg(e[`net.peer.name`]),r=Rg(e[`url.path`])??Rg(e[`http.target`]);if(!n||!r)return;let i=Rg(e[`url.scheme`])??`https`,a=Rg(e[`server.port`]),o=Rg(e[`url.query`]);return`${i}://${a&&a!==`80`&&a!==`443`?`${n}:${a}`:n}${r}${o?`?${o}`:``}`}function Bg(e){let t=e.attributes??{},n=Rg(t[`http.request.method`])??Rg(t[`http.method`]),r=zg(t);if(!n||!r)return null;let i=[`curl -X ${n.toUpperCase()}`,Lg(r)],a=Object.entries(t).filter(([e])=>e.startsWith(`http.request.header.`)).sort(([e],[t])=>e.localeCompare(t));for(let[e,t]of a){let n=e.slice(20),r=Array.isArray(t)?t.map(String).join(`, `):Rg(t);r&&i.push(`-H ${Lg(`${n}: ${r}`)}`)}return i.join(` `)}var Vg={count:`autotel.schema.violations`,severity:`autotel.schema.violation.severity`,codes:`autotel.schema.violation.codes`};function Hg(e){let t=e.attributes??{},n=t[Vg.count],r=typeof n==`number`?n:Number(n);if(!Number.isFinite(r)||r<=0)return null;let i=t[Vg.codes];return{count:r,severity:t[Vg.severity]===`error`?`error`:`warning`,codes:Array.isArray(i)?i.map(String):[]}}var Ug=[`code.filepath`,`code.file.path`],Wg=[`code.lineno`,`code.line.number`],Gg=[`code.column`,`code.column.number`],Kg=[`code.function`,`code.function.name`];function qg(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.length>0)return t}}function Jg(e,t){for(let n of t){let t=e[n];if(typeof t==`number`&&Number.isFinite(t))return t;if(typeof t==`string`&&t.trim()!==``&&Number.isFinite(Number(t)))return Number(t)}}function Yg(e,t,n,r){if(e===`webstorm`){let e=`jetbrains://web-storm/navigate/reference?path=${encodeURIComponent(t)}`;return n!==void 0&&(e+=`&line=${n}`),e}let i=`${e}://file/${t.replace(/^\//,``)}`;return n!==void 0&&(i+=`:${n}`,r!==void 0&&(i+=`:${r}`)),i}function Xg(e,t){let n=qg(e,Ug);if(!n)return null;let r=Jg(e,Wg),i=Jg(e,Gg),a=qg(e,Kg),o=qg(e,[`code.namespace`]),s=n.split(/[/\\]/).pop()||n;return{filepath:n,line:r,column:i,functionName:a,namespace:o,display:r===void 0?s:`${s}:${r}`,href:Yg(t,n,r,i)}}function Zg(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.length>0)return t}}function Qg(e,t){for(let n of t){let t=e[n];if(typeof t==`number`&&Number.isFinite(t))return t;if(typeof t==`string`&&t.trim()!==``&&Number.isFinite(Number(t)))return Number(t)}}function $g(e){let t=Zg(e,[`db.system`,`db.system.name`]),n=Zg(e,[`db.statement`,`db.query.text`]);return!t&&!n?null:{system:t,statement:n,operation:Zg(e,[`db.operation`,`db.operation.name`]),table:Zg(e,[`db.sql.table`,`db.collection.name`]),dbName:Zg(e,[`db.name`,`db.namespace`]),rowCount:Qg(e,[`db.response.returned_rows`,`db.rows_affected`])}}var e_=new Set(`select.from.where.insert.into.values.update.set.delete.join.left.right.inner.outer.full.cross.on.and.or.not.in.is.null.as.order.by.group.having.limit.offset.distinct.union.all.returning.with.using.between.like.asc.desc.count.case.when.then.else.end.exists.create.table.alter.drop.index`.split(`.`)),t_=/('(?:[^']|'')*'|[A-Za-z_][A-Za-z0-9_]*|[^A-Za-z_']+)/g;function n_(e){let t=[];for(let[n]of e.matchAll(t_))n.startsWith(`'`)?t.push({text:n,kind:`string`}):/^[A-Za-z_]/.test(n)&&e_.has(n.toLowerCase())?t.push({text:n,kind:`keyword`}):t.push({text:n,kind:`text`});return t}var r_=(e,t=p,n=p,r=p)=>{let i=j(()=>o_.test(t())),a=j(()=>s_.some(e=>t().startsWith(e))),o=j(()=>L(i)?null:gg(n()));var s=ua(),c=Or(s),l=e=>{var n=f_(),r=P(n),i=P(r),s=P(i,!0);E(i);var c=F(i,2),l=F(c,2),u=e=>{var t=d_();W(t,1,U(u_)),B(e,t)};H(l,e=>{L(a)&&e(u)}),E(r);var d=F(r,2);Ag(P(d),{get data(){return L(o)}}),E(d),E(n),I(e=>{V(s,t()),W(c,1,e)},[()=>U(Q(l_,`bg-amber-500/15 text-amber-600 border-amber-500/30`))]),B(e,n)},u=e=>{let o=j(()=>c_(n())),s=j(()=>String(n()));var c=m_(),l=P(c),u=P(l),d=P(u,!0);E(u);var f=F(u,2),p=P(f,!0);E(f);var m=F(f,2),h=e=>{var t=d_();W(t,1,U(u_)),B(e,t)};H(m,e=>{L(a)&&!L(i)&&e(h)});var g=F(m,2),_=e=>{var n=p_();Yp(P(n),{size:10,class:`text-fg-subtle`}),E(n),R(`click`,n,()=>r()({key:t(),value:L(s)})),B(e,n)};H(g,e=>{!L(i)&&L(s).length>60&&e(_)}),E(l);var v=F(l,2),y=P(v,!0);E(v),E(c),I(e=>{G(u,`title`,t()),V(d,t()),W(f,1,e),V(p,L(i)?`sensitive`:L(o).label),V(y,L(i)?`[redacted]`:L(s))},[()=>U(Q(l_,L(o).cls))]),B(e,c)};H(c,e=>{L(o)===null?e(u,-1):e(l)}),B(e,s)},i_=(e,t=p,n=p,r=p,i=p,a=p)=>{var o=g_(),s=P(o),c=P(s);za(P(c),n),E(c);var l=F(c,2),u=P(l,!0);E(l);var d=F(l,2);{let e=j(()=>Q(`text-fg-subtle transition-transform`,r()&&`rotate-180`));sp(d,{size:14,get class(){return L(e)}})}E(s);var f=F(s,2),m=e=>{var t=h_();za(P(t),a),E(t),B(e,t)};H(f,e=>{r()&&e(m)}),E(o),I(()=>V(u,t())),R(`click`,s,function(...e){i()?.apply(this,e)}),B(e,o)},a_=(e,t=p,n=p,r=p)=>{var i=__(),a=P(i),o=P(a,!0);E(a);var s=F(a,2),c=P(s,!0);E(s),E(i),I(()=>{G(i,`title`,r()),V(o,t()),V(c,n())}),B(e,i)},o_=/(password|secret|token|authorization|api[-_.]?key)/i,s_=[`service.`,`deployment.`,`host.`,`container.`,`process.`];function c_(e){return e==null?{label:`null`,cls:`bg-hover text-fg-subtle border-line`}:Array.isArray(e)?{label:`array`,cls:`bg-amber-500/15 text-amber-600 border-amber-500/30`}:typeof e==`string`?{label:`string`,cls:`bg-green-500/15 text-green-600 border-green-500/30`}:typeof e==`number`?{label:`number`,cls:`bg-blue-500/15 text-blue-600 border-blue-500/30`}:typeof e==`boolean`?{label:`boolean`,cls:`bg-purple-500/15 text-purple-600 border-purple-500/30`}:{label:`object`,cls:`bg-stone-500/15 text-stone-600 border-stone-500/30`}}var l_=`text-[9px] px-1.5 py-px rounded border font-mono flex-shrink-0`,u_=`${l_} bg-hover text-fg-subtle border-line`,d_=z(`<span>resource</span>`),f_=z(`<div class="py-1 border-b border-line-subtle last:border-b-0"><div class="flex items-center gap-2"><span class="text-fg-subtle font-medium"> </span> <span>json</span> <!></div> <div class="mt-1"><!></div></div>`),p_=z(`<button class="ml-auto p-0.5 hover:bg-hover rounded flex-shrink-0 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity" title="View full value"><!></button>`),m_=z(`<div class="group py-1 border-b border-line-subtle last:border-b-0"><div class="flex items-center gap-2 min-w-0"><span class="text-fg-subtle font-medium truncate"> </span> <span> </span> <!> <!></div> <div class="mt-0.5 text-fg leading-snug at-wrap-anywhere"> </div></div>`),h_=z(`<div class="px-4 pb-3"><!></div>`),g_=z(`<div class="border-b border-line-subtle"><button class="w-full flex items-center gap-2 px-4 py-3 hover:bg-subtle transition-colors"><span class="text-fg-subtle"><!></span> <span class="text-xs font-medium text-fg-muted flex-1 text-left"> </span> <!></button> <!></div>`),__=z(`<div><div class="text-fg-subtle mb-0.5"> </div> <div class="font-mono font-medium text-fg"> </div></div>`),v_=z(`<span class="px-2 py-0.5 rounded bg-hover text-fg-subtle text-xs font-mono" title="Instrumentation scope"> </span>`),y_=z(`<div class="grid grid-cols-2 gap-3 text-xs"><!> <!> <!> <!> <!></div>`),b_=z(`<div class="mx-4 mt-4 p-3 bg-danger-bg border border-danger-border rounded-md"><div class="flex items-start gap-2"><!> <div class="text-xs text-danger"><span class="font-medium">Error:</span> </div></div></div>`),x_=z(`<li class="font-mono text-[11px] text-fg-muted"> </li>`),S_=z(`<p class="mt-1 text-[11px] text-fg-subtle"> </p>`),C_=z(`<div><div class="mb-1 flex items-center gap-1.5"><!> <span class="text-xs font-medium text-fg"> </span></div> <ul class="space-y-0.5"></ul> <!></div>`),w_=z(`<div class="px-4 py-3 border-b border-line-subtle"><div class="mb-1 flex items-center justify-between gap-2"><span class="text-[11px] uppercase tracking-wide text-fg-muted">Reproduce</span> <!></div> <code class="block overflow-x-auto whitespace-pre rounded bg-subtle px-2 py-1 text-[11px] text-fg-muted"> </code> <p class="mt-1 text-[11px] text-fg-subtle">Rebuilt from span attributes. Headers appear only if captured; the
3
- body is never recorded.</p></div>`),T_=z(`<option> </option>`),E_=z(`<div class="mt-1 text-[11px] text-fg-subtle font-mono"> </div>`),D_=z(`<div class="px-4 py-3 border-b border-line-subtle"><div class="flex items-center gap-2 mb-2"><!> <span class="text-xs font-medium text-fg-muted flex-1">Code Location</span> <select class="text-[10px] bg-subtle border border-line rounded px-1 py-0.5 text-fg-muted" title="Editor to open source files in"></select></div> <a class="group flex items-center gap-2 text-xs font-mono text-accent hover:underline break-all"><!> <span class="break-all"> </span></a> <!> <div class="mt-1 text-[10px] text-fg-subtle break-all"> </div></div>`),O_=z(`<span class="text-[10px] px-1.5 py-px rounded border font-mono bg-indigo-500/15 text-indigo-600 border-indigo-500/30"> </span>`),k_=z(`<div class="grid grid-cols-2 gap-2 text-xs mb-2"><!> <!> <!> <!></div>`),A_=z(`<span> </span>`),j_=z(`<pre class="bg-subtle rounded p-2.5 border border-line font-mono text-[11px] text-fg whitespace-pre-wrap break-all overflow-auto max-h-[240px]"></pre>`),M_=z(`<div class="px-4 py-3 border-b border-line-subtle"><div class="flex items-center gap-2 mb-2"><!> <span class="text-xs font-medium text-fg-muted flex-1">Database</span> <!></div> <!> <!></div>`),N_=z(`<div class="flex items-center gap-2"><span class="text-fg-subtle">Parent:</span> <span class="font-medium text-fg"> </span></div>`),P_=z(`<div class="text-fg-muted truncate"> </div>`),F_=z(`<div class="text-fg-subtle"> </div>`),I_=z(`<div><span class="text-fg-subtle"> </span> <div class="mt-1 space-y-1 pl-2"><!> <!></div></div>`),L_=z(`<div class="px-4 py-3 border-b border-line-subtle"><div class="flex items-center gap-2 mb-2"><!> <span class="text-xs font-medium text-fg-muted">Relationships</span></div> <div class="space-y-2 text-xs"><!> <!></div></div>`),R_=z(`<div class="text-fg-subtle py-2 text-center">No matches</div>`),z_=z(`<div class="bg-subtle rounded p-3 border border-line font-mono text-xs h-[300px] min-h-[120px] overflow-auto resize-y" title="Drag bottom edge to resize"><!></div>`),B_=z(`<!> <!>`,1),V_=z(`<div class="font-mono text-[11px] text-fg-muted mt-1"><pre class="whitespace-pre-wrap break-words"> </pre></div>`),H_=z(`<div class="bg-subtle rounded p-2.5 border border-line"><div class="flex items-center justify-between mb-1"><span class="font-medium text-xs text-fg"> </span> <span class="text-[10px] text-fg-subtle"> </span></div> <!></div>`),U_=z(`<div class="space-y-2"></div>`),W_=z(`<span></span>`),G_=z(`<div class="mt-1.5 pt-1.5 border-t border-line"><div class="font-mono text-[10px] text-fg-subtle"> </div></div>`),K_=z(`<div class="bg-subtle rounded p-2.5 border border-line"><div class="flex items-center gap-2 text-xs mb-1"><span class="text-fg-subtle">Trace:</span> <button type="button" title="Open linked span in the Traces waterfall" class="font-mono text-accent hover:underline text-[11px] truncate text-left cursor-pointer"> </button> <!></div> <div class="flex items-center gap-2 text-xs"><span class="text-fg-subtle">Span:</span> <button type="button" title="Open linked span in the Traces waterfall" class="font-mono text-accent hover:underline text-[11px] truncate text-left cursor-pointer"> </button> <!></div> <!></div>`),q_=z(`<div class="space-y-1.5"></div>`),J_=z(`<span class="text-[10px] text-accent font-medium">this span</span>`),Y_=z(`<div><div class="flex items-center gap-2 mb-0.5"><span> </span> <!> <span class="text-fg-subtle text-[10px] ml-auto"> </span></div> <div class="text-fg-muted break-all line-clamp-2"> </div></div>`),X_=z(`<div class="border-b border-line-subtle"><div class="flex items-center gap-2 px-4 py-3"><!> <span class="text-xs font-medium text-fg-muted"> </span></div> <div class="px-4 pb-3"><div class="space-y-1.5 max-h-[200px] overflow-auto"></div></div></div>`),Z_=z(`<div class="fixed inset-0 z-[1200] flex items-center justify-center" role="dialog" aria-modal="true"><div class="absolute inset-0 bg-black/60 backdrop-blur-[2px] at-backdrop-in"></div> <div class="at-modal-in relative z-[1] w-[min(700px,92vw)] max-h-[85vh] flex flex-col bg-surface rounded-lg shadow-xl border border-line overflow-hidden"><div class="flex items-center justify-between px-4 py-2.5 border-b border-line bg-subtle flex-shrink-0"><span class="text-sm font-mono font-semibold text-fg-muted truncate"> </span> <button class="p-1 hover:bg-hover rounded transition-colors" title="Close (Esc)"><!></button></div> <div class="overflow-auto p-4"><pre class="font-mono text-xs text-fg whitespace-pre-wrap break-all"> </pre></div></div></div>`),Q_=z(`<div class="flex flex-col h-full bg-surface border-l border-line"><div class="flex items-start justify-between gap-3 px-4 py-3 border-b border-line bg-subtle"><div class="flex-1 min-w-0"><h3 class="font-semibold text-sm text-fg truncate mb-1"> </h3> <div class="flex items-center gap-2 flex-wrap"><span> </span> <span class="px-2 py-0.5 rounded bg-hover text-fg-muted text-xs font-medium"> </span> <!></div></div> <button class="p-1.5 hover:bg-hover rounded-md transition-colors flex-shrink-0" title="Close"><!></button></div> <div class="flex-1 overflow-auto"><!> <!> <!> <!> <div class="px-4 py-3 border-b border-line-subtle"><div class="space-y-2 text-xs"><!> <!> <!></div></div> <div class="px-4 py-3 border-b border-line-subtle"><div class="flex items-center gap-2 mb-2"><!> <span class="text-xs font-medium text-fg-muted">Resource</span></div> <div class="grid grid-cols-2 gap-3 text-xs"><!> <!> <!> <!></div></div> <!> <!> <!> <!> <!> <!> <!></div> <!></div>`);function $_(e,t){it(t,!0);let n=[{value:`vscode`,label:`VS Code`},{value:`cursor`,label:`Cursor`},{value:`webstorm`,label:`WebStorm`}],r=j(()=>Bg(t.span)),i=j(()=>Hg(t.span)),a=M(_r({timing:!0,attributes:!0,events:!1,links:!1})),o=M(null),s=e=>{N(a,{...L(a),[e]:!L(a)[e]},!0)},c=j(()=>t.span.status.code===`ERROR`),l=j(()=>Object.keys(t.span.attributes||{}).length>0),u=j(()=>t.span.events&&t.span.events.length>0),d=j(()=>t.span.links&&t.span.links.length>0),f=j(()=>hs(t.span,t.trace.service)),p=j(()=>gs(t.span.attributes,L(f))),m=j(()=>Object.entries(t.span.attributes||{}).filter(([e])=>e.startsWith(`service.`)||e.startsWith(`deployment.`)||e.startsWith(`host.`)||e.startsWith(`container.`)||e.startsWith(`process.`))),h=j(()=>Object.entries(t.span.attributes||{}).sort(([e],[t])=>e.localeCompare(t))),_=M(``),v=j(()=>{let e=L(_).trim().toLowerCase();return e?L(h).filter(([t,n])=>Sg(e,[t,n])):L(h)}),y=j(()=>L(_).trim().length>0),b=j(()=>Xg(t.span.attributes||{},Qc.value)),x=j(()=>$g(t.span.attributes||{})),S=j(()=>L(x)?.statement?n_(L(x).statement):[]),C=j(()=>ph(t.span,t.trace.spans.filter(e=>e.parentSpanId===t.span.spanId))),w=j(()=>t.span.startTime-t.trace.startTime),ee=j(()=>t.span.endTime-t.trace.startTime),te=j(()=>t.trace.spans.find(e=>e.spanId===t.span.parentSpanId)),ne=j(()=>t.trace.spans.filter(e=>e.parentSpanId===t.span.spanId)),re=j(()=>t.trace.spans.find(e=>!e.parentSpanId)),ie=e=>ju(t.trace.traceId,e),ae=j(()=>fl.value),oe=j(()=>L(ae).filter(e=>e.traceId===t.trace.traceId));var se=Q_(),ce=P(se),le=P(ce),ue=P(le),T=P(ue,!0);E(ue);var de=F(ue,2),fe=P(de),pe=P(fe,!0);E(fe);var me=F(fe,2),he=P(me,!0);E(me);var ge=F(me,2),_e=e=>{var n=v_(),r=P(n);E(n),I(()=>V(r,`${t.span.scope.name??``}
4
- ${t.span.scope.version?`@${t.span.scope.version}`:``}`)),B(e,n)};H(ge,e=>{t.span.scope?.name&&e(_e)}),E(de),E(le);var ve=F(le,2);Vm(P(ve),{size:16,class:`text-fg-subtle`}),E(ve),E(ce);var ye=F(ce,2);{let e=e=>{_p(e,{size:14})},c=e=>{var n=y_(),r=P(n);{let e=j(()=>rd(t.span.duration));a_(r,()=>`Duration`,()=>L(e))}var i=F(r,2);{let e=j(()=>rd(L(C)));a_(i,()=>`Self time`,()=>L(e),()=>`Time in this span excluding its children`)}var a=F(i,2);{let e=j(()=>rd(L(w)));a_(a,()=>`Start (relative)`,()=>L(e))}var o=F(a,2);{let e=j(()=>rd(L(ee)));a_(o,()=>`End (relative)`,()=>L(e))}var s=F(o,2);{let e=j(()=>vh(t.span.startTime,Bu.value));a_(s,()=>`Start Time`,()=>L(e))}E(n),B(e,n)};var be=P(ye),xe=e=>{var n=b_(),r=P(n),i=P(r);pp(i,{size:14,class:`text-danger flex-shrink-0 mt-0.5`});var a=F(i,2),o=F(P(a));E(a),E(r),E(n),I(()=>V(o,` ${t.span.status.message??``}`)),B(e,n)};H(be,e=>{t.span.status.message&&e(xe)});var Se=F(be,2);i_(Se,()=>`Timing`,()=>e,()=>L(a).timing,()=>()=>s(`timing`),()=>c);var Ce=F(Se,2),we=e=>{var t=C_(),n=P(t),r=P(n);{let e=j(()=>L(i).severity===`error`?`text-danger`:`text-warning`);Nm(r,{size:13,get class(){return L(e)}})}var a=F(r,2),o=P(a);E(a),E(n);var s=F(n,2);Na(s,20,()=>L(i).codes,e=>e,(e,t)=>{var n=x_(),r=P(n,!0);E(n),I(()=>V(r,t)),B(e,n)}),E(s);var c=F(s,2),l=e=>{var t=S_(),n=P(t);E(t),I(()=>V(n,`${L(i).count-L(i).codes.length} more not listed on the span.`)),B(e,t)};H(c,e=>{L(i).count>L(i).codes.length&&e(l)}),E(t),I(()=>{W(t,1,U(L(i).severity===`error`?`border-b border-line-subtle bg-danger/5 px-4 py-3`:`border-b border-line-subtle bg-warning/5 px-4 py-3`)),V(o,`${L(i).count??``}
5
- ${L(i).count===1?`contract violation`:`contract violations`}`)}),B(e,t)};H(Ce,e=>{L(i)&&e(we)});var Te=F(Ce,2),Ee=e=>{var t=w_(),n=P(t);Ig(F(P(n),2),{get value(){return L(r)},label:`Copy as curl`}),E(n);var i=F(n,2),a=P(i,!0);E(i),Ke(2),E(t),I(()=>V(a,L(r))),B(e,t)};H(Te,e=>{L(r)&&e(Ee)});var De=F(Te,2),Oe=P(De),ke=P(Oe);Pg(ke,{label:`Span ID`,get value(){return t.span.spanId}});var Ae=F(ke,2);{let e=j(()=>L(re)&&L(re).spanId!==t.span.spanId?()=>ie(L(re).spanId):void 0);Pg(Ae,{label:`Trace ID`,get value(){return t.span.traceId},get onActivate(){return L(e)},activateTitle:`Go to root span`})}var je=F(Ae,2),Me=e=>{{let n=j(()=>L(te)?()=>ie(t.span.parentSpanId):void 0),r=j(()=>L(te)?`Go to parent span`:`Parent span not captured in this trace`);Pg(e,{label:`Parent Span ID`,get value(){return t.span.parentSpanId},get onActivate(){return L(n)},get activateTitle(){return L(r)}})}};H(je,e=>{t.span.parentSpanId&&e(Me)}),E(Oe),E(De);var Ne=F(De,2),Pe=P(Ne);km(P(Pe),{size:14,class:`text-fg-subtle`}),Ke(2),E(Pe);var Fe=F(Pe,2),Ie=P(Fe);a_(Ie,()=>`Trace Service`,()=>t.trace.service);var Le=F(Ie,2);a_(Le,()=>`Derived Resource`,()=>L(f));var Re=F(Le,2);a_(Re,()=>`Resource Type`,()=>L(p));var ze=F(Re,2);{let e=j(()=>String(L(m).length));a_(ze,()=>`Resource Attrs`,()=>L(e))}E(Fe),E(Ne);var Be=F(Ne,2),Ve=e=>{var t=D_(),r=P(t),i=P(r);yp(i,{size:14,class:`text-fg-subtle`});var a=F(i,4);Na(a,21,()=>n,e=>e.value,(e,t)=>{var n=T_(),r=P(n,!0);E(n);var i={};I(()=>{V(r,L(t).label),i!==(i=L(t).value)&&(n.value=(n.__value=L(t).value)??``)}),B(e,n)}),E(a);var o;uo(a),E(r);var s=F(r,2),c=P(s);Dp(c,{size:12,class:`flex-shrink-0`});var l=F(c,2),u=P(l,!0);E(l),E(s);var d=F(s,2),f=e=>{var t=E_(),n=P(t);E(t),I(()=>V(n,`${L(b).namespace?`${L(b).namespace}.`:``}${L(b).functionName??``}()`)),B(e,t)};H(d,e=>{L(b).functionName&&e(f)});var p=F(d,2),m=P(p,!0);E(p),E(t),I(()=>{o!==(o=Qc.value)&&(a.value=(a.__value=Qc.value)??``,lo(a,Qc.value)),G(s,`href`,L(b).href),G(s,`title`,`Open ${L(b).filepath}${L(b).line?`:${L(b).line}`:``}`),V(u,L(b).display),V(m,L(b).filepath)}),R(`change`,a,e=>$c(e.currentTarget.value)),B(e,t)};H(Be,e=>{L(b)&&e(Ve)});var He=F(Be,2),Ue=e=>{var t=M_(),n=P(t),r=P(n);Cp(r,{size:14,class:`text-fg-subtle`});var i=F(r,4),a=e=>{var t=O_(),n=P(t,!0);E(t),I(()=>V(n,L(x).system)),B(e,t)};H(i,e=>{L(x).system&&e(a)}),E(n);var o=F(n,2),s=e=>{var t=k_(),n=P(t),r=e=>{a_(e,()=>`Operation`,()=>L(x).operation)};H(n,e=>{L(x).operation&&e(r)});var i=F(n,2),a=e=>{a_(e,()=>`Table`,()=>L(x).table)};H(i,e=>{L(x).table&&e(a)});var o=F(i,2),s=e=>{a_(e,()=>`Database`,()=>L(x).dbName)};H(o,e=>{L(x).dbName&&e(s)});var c=F(o,2),l=e=>{{let t=j(()=>String(L(x).rowCount));a_(e,()=>`Rows`,()=>L(t))}};H(c,e=>{L(x).rowCount!==void 0&&e(l)}),E(t),B(e,t)};H(o,e=>{(L(x).operation||L(x).table||L(x).dbName||L(x).rowCount!==void 0)&&e(s)});var c=F(o,2),l=e=>{vg(e,{get content(){return L(x).statement},children:(e,t)=>{var n=j_();Na(n,21,()=>L(S),ka,(e,t)=>{var n=A_(),r=P(n,!0);E(n),I(()=>{W(n,1,U(L(t).kind===`keyword`?`text-indigo-500 font-semibold`:L(t).kind===`string`?`text-green-500`:``)),V(r,L(t).text)}),B(e,n)}),E(n),B(e,n)},$$slots:{default:!0}})};H(c,e=>{L(x).statement&&e(l)}),E(t),B(e,t)};H(He,e=>{L(x)&&e(Ue)});var We=F(He,2),Ge=e=>{var t=L_(),n=P(t);Up(P(n),{size:14,class:`text-fg-subtle`}),Ke(2),E(n);var r=F(n,2),i=P(r),a=e=>{var t=N_(),n=F(P(t),2),r=P(n,!0);E(n),E(t),I(()=>V(r,L(te).name)),B(e,t)};H(i,e=>{L(te)&&e(a)});var o=F(i,2),s=e=>{var t=I_(),n=P(t),r=P(n);E(n);var i=F(n,2),a=P(i);Na(a,17,()=>L(ne).slice(0,5),e=>e.spanId,(e,t)=>{var n=P_(),r=P(n,!0);E(n),I(()=>V(r,L(t).name)),B(e,n)});var o=F(a,2),s=e=>{var t=F_(),n=P(t);E(t),I(()=>V(n,`+${L(ne).length-5} more`)),B(e,t)};H(o,e=>{L(ne).length>5&&e(s)}),E(i),E(t),I(()=>V(r,`Children (${L(ne).length??``}):`)),B(e,t)};H(o,e=>{L(ne).length>0&&e(s)}),E(r),E(t),B(e,t)};H(We,e=>{(L(te)||L(ne).length>0)&&e(Ge)});var qe=F(We,2),Je=e=>{let n=e=>{km(e,{size:14})},r=e=>{var n=B_(),r=Or(n);xg(r,{class:`mb-2`,inputClass:`border-line bg-subtle text-fg focus:border-line focus-visible:ring-1 focus-visible:ring-accent`,placeholder:`Filter attributes by key or value…`,ariaLabel:`Filter attributes by key or value`,get value(){return L(_)},set value(e){N(_,e,!0)}});var i=F(r,2);{let e=j(()=>JSON.stringify(t.span.attributes,null,2));vg(i,{get content(){return L(e)},children:(e,t)=>{var n=z_(),r=P(n),i=e=>{B(e,R_())},a=e=>{var t=ua();Na(Or(t),17,()=>L(v),([e,t])=>e,(e,t)=>{var n=j(()=>g(L(t),2));r_(e,()=>L(n)[0],()=>L(n)[1],()=>e=>N(o,e,!0))}),B(e,t)};H(r,e=>{L(v).length===0?e(i):e(a,-1)}),E(n),B(e,n)},$$slots:{default:!0}})}B(e,n)};{let i=j(()=>L(y)?`Attributes (${L(v).length} of ${Object.keys(t.span.attributes).length})`:`Attributes (${Object.keys(t.span.attributes).length})`);i_(e,()=>L(i),()=>n,()=>L(a).attributes,()=>()=>s(`attributes`),()=>r)}};H(qe,e=>{L(l)&&e(Je)});var Ye=F(qe,2),Xe=e=>{let n=e=>{Vp(e,{size:14})},r=e=>{var n=U_();Na(n,21,()=>t.span.events,ka,(e,n)=>{var r=H_(),i=P(r),a=P(i),o=P(a,!0);E(a);var s=F(a,2),c=P(s);E(s),E(i);var l=F(i,2),u=e=>{{let t=j(()=>JSON.stringify(L(n).attributes,null,2));vg(e,{get content(){return L(t)},children:(e,t)=>{var r=V_(),i=P(r),a=P(i,!0);E(i),E(r),I(e=>V(a,e),[()=>JSON.stringify(L(n).attributes,null,2)]),B(e,r)},$$slots:{default:!0}})}},d=j(()=>L(n).attributes&&Object.keys(L(n).attributes).length>0);H(l,e=>{L(d)&&e(u)}),E(r),I(e=>{V(o,L(n).name),V(c,`+${e??``}`)},[()=>rd(L(n).timestamp-t.span.startTime)]),B(e,r)}),E(n),B(e,n)};i_(e,()=>`Events (${t.span.events.length})`,()=>n,()=>L(a).events,()=>()=>s(`events`),()=>r)};H(Ye,e=>{L(u)&&e(Xe)});var Ze=F(Ye,2),Qe=e=>{let n=e=>{qp(e,{size:14})},r=e=>{var n=q_();Na(n,21,()=>t.span.links,ka,(e,t)=>{var n=K_(),r=P(n),i=F(P(r),2),a=P(i,!0);E(i),vg(F(i,2),{get content(){return L(t).traceId},children:(e,t)=>{B(e,W_())},$$slots:{default:!0}}),E(r);var o=F(r,2),s=F(P(o),2),c=P(s,!0);E(s),vg(F(s,2),{get content(){return L(t).spanId},children:(e,t)=>{B(e,W_())},$$slots:{default:!0}}),E(o);var l=F(o,2),u=e=>{var n=G_(),r=P(n),i=P(r,!0);E(r),E(n),I(e=>V(i,e),[()=>Object.entries(L(t).attributes).map(([e,t])=>`${e}: ${typeof t==`object`?JSON.stringify(t):t}`).join(`, `)]),B(e,n)},d=j(()=>L(t).attributes&&Object.keys(L(t).attributes).length>0);H(l,e=>{L(d)&&e(u)}),E(n),I(()=>{V(a,L(t).traceId),V(c,L(t).spanId)}),R(`click`,i,()=>Mu(L(t).traceId,L(t).spanId)),R(`click`,s,()=>Mu(L(t).traceId,L(t).spanId)),B(e,n)}),E(n),B(e,n)};i_(e,()=>`Links (${t.span.links.length})`,()=>n,()=>L(a).links,()=>()=>s(`links`),()=>r)};H(Ze,e=>{L(d)&&e(Qe)});var $e=F(Ze,2),et=e=>{var n=X_(),r=P(n),i=P(r);kp(i,{size:14,class:`text-fg-subtle`});var a=F(i,2),o=P(a);E(a),E(r);var s=F(r,2),c=P(s);Na(c,23,()=>L(oe).slice(0,50),(e,t)=>e.id||t,(e,n)=>{let r=j(()=>L(n).spanId===t.span.spanId),i=j(()=>L(n).severityText||`INFO`),a=j(()=>L(i)===`ERROR`?`text-danger`:L(i)===`WARN`?`text-warning`:`text-fg-subtle`),o=j(()=>typeof L(n).body==`string`?L(n).body:JSON.stringify(L(n).body));var s=Y_(),c=P(s),l=P(c),u=P(l,!0);E(l);var d=F(l,2),f=e=>{B(e,J_())};H(d,e=>{L(r)&&e(f)});var p=F(d,2),m=P(p,!0);E(p),E(c);var h=F(c,2),g=P(h,!0);E(h),E(s),I((e,t,n)=>{W(s,1,e),W(l,1,t),V(u,L(i)),V(m,n),V(g,L(o))},[()=>U(Q(`text-xs p-2 rounded border`,L(r)?`border-accent/30 bg-accent/10`:`border-line-subtle bg-subtle`)),()=>U(Q(`font-mono font-medium`,L(a))),()=>vh(L(n).timestamp,Bu.value)]),B(e,s)}),E(c),E(s),E(n),I(()=>V(o,`Correlated Logs (${L(oe).length??``})`)),B(e,n)};H($e,e=>{L(oe).length>0&&e(et)}),E(ye)}var tt=F(ye,2),nt=e=>{var t=Z_(),n=P(t),r=F(n,2),i=P(r),a=P(i),s=P(a,!0);E(a);var c=F(a,2);Vm(P(c),{size:16,class:`text-fg-subtle`}),E(c),E(i);var l=F(i,2),u=P(l),d=P(u,!0);E(u),E(l),E(r),E(t),I(()=>{G(t,`aria-label`,`Full value for ${L(o).key}`),V(s,L(o).key),V(d,L(o).value)}),R(`click`,n,()=>N(o,null)),R(`click`,c,()=>N(o,null)),B(e,t)};H(tt,e=>{L(o)&&e(nt)}),E(se),I(e=>{V(T,t.span.name||`Unknown Span`),W(fe,1,e),V(pe,t.span.status.code),V(he,t.span.kind)},[()=>U(Q(`px-2 py-0.5 rounded text-xs font-medium`,L(c)?`bg-danger-bg text-danger`:t.span.status.code===`OK`?`bg-success-bg text-success`:`bg-hover text-fg-muted`))]),R(`click`,ve,function(...e){t.onClose?.apply(this,e)}),B(e,se),at()}ta([`click`,`change`]);var ev=z(`<div><div class="absolute inset-y-0 -left-1.5 -right-1.5"></div> <div></div></div>`);function tv(e,t){it(t,!0);var n=ev(),r=F(P(n),2);E(n),I((e,i)=>{G(n,`role`,t.role),G(n,`aria-orientation`,t[`aria-orientation`]),G(n,`aria-valuenow`,t[`aria-valuenow`]),G(n,`aria-valuemin`,t[`aria-valuemin`]),G(n,`tabindex`,t.tabIndex),G(n,`title`,t.title??`Drag to resize · double-click to reset`),W(n,1,e),W(r,1,i)},[()=>U(Q(`group relative z-10 shrink-0 cursor-col-resize self-stretch outline-none`,`w-px bg-hover`)),()=>U(Q(`absolute inset-y-0 -left-px w-0.5 transition-colors`,`group-hover:bg-accent group-focus-visible:bg-accent`,t.dragging&&`bg-accent`))]),R(`pointerdown`,n,function(...e){t.onPointerDown?.apply(this,e)}),R(`keydown`,n,function(...e){t.onKeyDown?.apply(this,e)}),R(`dblclick`,n,function(...e){t.onDblClick?.apply(this,e)}),B(e,n),at()}ta([`pointerdown`,`keydown`,`dblclick`]);function nv(e,t){e.preventDefault();let n=document.body.style.cursor,r=document.body.style.userSelect;document.body.style.cursor=t.cursor,document.body.style.userSelect=`none`,t.onStart?.();let i=e=>t.onMove(e),a=()=>{document.body.style.cursor=n,document.body.style.userSelect=r,window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),t.onEnd?.()};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a)}function rv(e,t){if(!e)return t;try{let t=window.localStorage.getItem(e);if(t!=null){let e=Number(t);if(Number.isFinite(e))return e}}catch{}return t}function iv(e,t){if(e)try{window.localStorage.setItem(e,String(Math.round(t)))}catch{}}function av(e){let{initial:t,min:n,minOther:r,containerRef:i,storageKey:a,invert:o=!1,step:s=24}=e,c=Math.max(n,rv(a,t)),l=M(_r(c)),u=M(!1),d={current:c},f=()=>{let e=i.current?.clientWidth;return e?Math.max(n,e-r):1/0},p=e=>Math.min(f(),Math.max(n,e)),m=e=>{N(l,e,!0),d.current=e},h=e=>{let t=e.clientX,n=d.current;nv(e,{cursor:`col-resize`,onStart:()=>N(u,!0),onMove:e=>{let r=e.clientX-t,i=o?-r:r;m(p(n+i))},onEnd:()=>{N(u,!1),iv(a,d.current)}})},g=e=>{if(e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;e.preventDefault();let t=e.key===`ArrowLeft`?-s:s,n=p(d.current+(o?-t:t));m(n),iv(a,n)},_=()=>{let e=p(t);m(e),iv(a,e)};return{get size(){return L(l)},get dragging(){return L(u)},get separatorProps(){return{role:`separator`,"aria-orientation":`vertical`,"aria-valuenow":Math.round(L(l)),"aria-valuemin":n,tabIndex:0,onPointerDown:h,onKeyDown:g,onDblClick:_}}}}var ov=z(`<div><!></div>`),sv=z(`<div class="flex flex-col gap-2"><button class="flex items-center gap-2 cursor-pointer text-fg-muted hover:text-fg transition-colors w-fit"><!> <span class="text-xs font-medium"> </span></button> <!></div>`);function cv(e,t){it(t,!0);var n=sv(),r=P(n),i=P(r);{let e=j(()=>Q(`text-fg-subtle transition-transform`,t.expanded&&`rotate-180`));sp(i,{size:12,get class(){return L(e)}})}var a=F(i,2),o=P(a,!0);E(a),E(r);var s=F(r,2),c=e=>{var n=ov();za(P(n),()=>t.children),E(n),B(e,n)};H(s,e=>{t.expanded&&e(c)}),E(n),I(()=>V(o,t.label)),R(`click`,r,function(...e){t.onToggle?.apply(this,e)}),B(e,n),at()}ta([`click`]);var lv=z(`<div class="bg-subtle rounded p-3 border border-line font-mono text-xs"><pre class="whitespace-pre-wrap break-words text-fg"> </pre></div>`),uv=z(`<div class="font-mono text-xs text-fg-muted mt-1"> </div>`),dv=z(`<div class="bg-subtle rounded p-2.5 border border-line"><div class="font-medium text-xs text-fg mb-1.5"> </div> <!></div>`),fv=z(`<div class="space-y-2"></div>`),pv=z(`<div class="text-xs text-fg-muted"><span class="font-medium">Status message:</span> </div>`),mv=z(`<div role="presentation" class="mt-3 pt-3 border-t border-line space-y-3"><!> <!> <!></div>`),hv=z(`<div role="button" tabindex="0" data-focus-inset=""><div class="flex items-center justify-between gap-4"><div class="flex-1 min-w-0"><div class="font-medium text-sm mb-1 text-fg"> </div> <div class="flex items-center gap-3 text-xs text-fg-muted"><span> </span> <span> </span> <span class="text-fg-subtle"> </span></div></div> <button class="p-1 hover:bg-hover rounded"><!></button></div> <!></div>`);function gv(e,t){it(t,!0);let n=M(!1),r=M(_r({attributes:!1,events:!1})),i=j(()=>t.span.status.code===`ERROR`);function a(e){N(r,{...L(r),[e]:!L(r)[e]},!0)}function o(){let e=0,n=t.span;for(;n.parentSpanId;){e++;let r=t.trace.spans.find(e=>e.spanId===n.parentSpanId);if(!r)break;n=r}return e}let s=j(o),c=j(()=>Object.keys(t.span.attributes||{}).length>0),l=j(()=>t.span.events&&t.span.events.length>0);var u=hv(),d=j(()=>ih(t.onSelect)),f=P(u),p=P(f),m=P(p),h=P(m,!0);E(m);var g=F(m,2),_=P(g),v=P(_,!0);E(_);var y=F(_,2),b=P(y,!0);E(y);var x=F(y,2),S=P(x,!0);E(x),E(g),E(p);var C=F(p,2),w=P(C);{let e=j(()=>Q(`text-fg-subtle transition-transform flex-shrink-0`,L(n)&&`rotate-180`));sp(w,{size:14,get class(){return L(e)}})}E(C),E(f);var ee=F(f,2),te=e=>{var n=mv(),i=P(n),o=e=>{cv(e,{label:`All attributes`,get expanded(){return L(r).attributes},onToggle:()=>a(`attributes`),children:(e,n)=>{{let n=j(()=>JSON.stringify(t.span.attributes,null,2));vg(e,{get content(){return L(n)},children:(e,n)=>{var r=lv(),i=P(r),a=P(i,!0);E(i),E(r),I(e=>V(a,e),[()=>JSON.stringify(t.span.attributes,null,2)]),B(e,r)},$$slots:{default:!0}})}},$$slots:{default:!0}})};H(i,e=>{L(c)&&e(o)});var s=F(i,2),u=e=>{{let n=j(()=>`Events (${t.span.events.length})`);cv(e,{get label(){return L(n)},get expanded(){return L(r).events},onToggle:()=>a(`events`),children:(e,n)=>{var r=fv();Na(r,21,()=>t.span.events,ka,(e,t)=>{var n=dv(),r=P(n),i=P(r,!0);E(r);var a=F(r,2),o=e=>{{let n=j(()=>JSON.stringify(L(t).attributes,null,2));vg(e,{get content(){return L(n)},children:(e,n)=>{var r=uv(),i=P(r,!0);E(r),I(e=>V(i,e),[()=>JSON.stringify(L(t).attributes,null,2)]),B(e,r)},$$slots:{default:!0}})}},s=j(()=>L(t).attributes&&Object.keys(L(t).attributes).length>0);H(a,e=>{L(s)&&e(o)}),E(n),I(()=>V(i,L(t).name)),B(e,n)}),E(r),B(e,r)},$$slots:{default:!0}})}};H(s,e=>{L(l)&&e(u)});var d=F(s,2),f=e=>{var n=pv(),r=F(P(n));E(n),I(()=>V(r,` ${t.span.status.message??``}`)),B(e,n)};H(d,e=>{t.span.status.message&&e(f)}),E(n),R(`click`,n,e=>e.stopPropagation()),B(e,n)};H(ee,e=>{L(n)&&e(te)}),E(u),I((e,n,r)=>{W(u,1,e),co(u,`padding-left: ${16+L(s)*20}px;`),V(h,t.span.name||`unknown`),W(_,1,n),V(v,t.span.status.code),V(b,r),V(S,t.span.kind)},[()=>U(Q(`px-4 py-3`,`hover:bg-subtle transition-colors cursor-pointer`,L(i)&&`bg-danger-bg`,t.isSelected&&`bg-hover hover:bg-hover`)),()=>U(Q(`font-medium`,ad(t.span.status.code))),()=>rd(t.span.duration)]),R(`click`,u,function(...e){t.onSelect?.apply(this,e)}),R(`keydown`,u,function(...e){L(d)?.apply(this,e)}),R(`click`,C,e=>{e.stopPropagation(),N(n,!L(n))}),B(e,u),at()}ta([`click`,`keydown`]);var _v=`1.0.0`;function vv(e){return{version:_v,exportedAt:new Date().toISOString(),trace:e}}function yv(e){return{version:_v,exportedAt:new Date().toISOString(),traces:e}}function bv(e){return JSON.stringify(e,null,2)}function xv(e,t){let n=bv(vv(e)),r=new Blob([n],{type:`application/json`}),i=URL.createObjectURL(r),a=`trace-${e.traceId.slice(0,8)}-${new Date().toISOString().split(`T`)[0]}.json`,o=document.createElement(`a`);o.href=i,o.download=t||a,document.body.append(o),o.click(),o.remove(),URL.revokeObjectURL(i)}function Sv(e,t){let n=bv(yv(e)),r=new Blob([n],{type:`application/json`}),i=URL.createObjectURL(r),a=`traces-${e.length}-${new Date().toISOString().split(`T`)[0]}.json`,o=document.createElement(`a`);o.href=i,o.download=t||a,document.body.append(o),o.click(),o.remove(),URL.revokeObjectURL(i)}async function Cv(e){let t=bv(vv(e));await navigator.clipboard.writeText(t)}function wv(e,t){if(!e)return[`${t}: Invalid span data`];let n=e;return[...Us(n,t,Rs,[`spanId`,`traceId`,`name`]),...Us(n,t,zs,[`startTime`,`endTime`,`duration`]),...Us(n,t,Bs,[`status`])]}function Tv(e,t){let n=`trace[${t}]`;if(!e)return{errors:[`${n}: Invalid trace data`],warnings:[]};let r=e,i=Rs(r,`correlationId`)?[]:[`${n}: Missing correlationId, will use traceId`],a=Bs(r,`rootSpan`),o=Hs(r,`spans`)?Vs(r,`spans`).flatMap((e,t)=>wv(Ls(e),`${n}.spans[${t}]`)):[`${n}: Missing or invalid spans array`];return{errors:[...Us(r,n,Rs,[`traceId`]),...a?wv(a,`${n}.rootSpan`):[`${n}: Missing or invalid rootSpan`],...o,...Us(r,n,zs,[`startTime`,`endTime`,`duration`])],warnings:i}}function Ev(e){return e}function Dv(e){let t=[],n=[],r=[],i;try{i=JSON.parse(e)}catch(e){return{success:!1,traces:[],errors:[`Invalid JSON: ${e instanceof Error?e.message:String(e)}`],warnings:[]}}let a=Ls(i);if(!a)return{success:!1,traces:[],errors:[`Parsed data is not an object`],warnings:[]};let o=Rs(a,`version`);o&&o!==_v&&n.push(`Version mismatch: expected ${_v}, got ${o}`);let s=Bs(a,`trace`);if(s){let e=Tv(s,0);t.push(...e.errors),n.push(...e.warnings),e.errors.length===0&&r.push(Ov(Ev(s)))}else if(Hs(a,`traces`))for(let[e,i]of Vs(a,`traces`).entries()){let a=Ls(i),o=Tv(a,e);t.push(...o.errors),n.push(...o.warnings),a&&o.errors.length===0&&r.push(Ov(Ev(a)))}else if(a.traceId){let e=Tv(a,0);t.push(...e.errors),n.push(...e.warnings),e.errors.length===0&&r.push(Ov(Ev(a)))}else t.push(`Unrecognized format: expected { trace: ... } or { traces: [...] } or direct trace object`);return{success:t.length===0&&r.length>0,traces:r,errors:t,warnings:n}}function Ov(e){return{...e,correlationId:e.correlationId||e.traceId.slice(0,8),service:e.service||`imported`,status:e.status||(e.spans.some(e=>e.status.code===`ERROR`)?`ERROR`:`OK`),spans:e.spans.map(kv),rootSpan:kv(e.rootSpan)}}function kv(e){return{...e,kind:e.kind||`INTERNAL`,attributes:e.attributes||{},status:{code:e.status?.code||`UNSET`,message:e.status?.message},events:e.events||[]}}function Av(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(Error(`Failed to read file`)),r.readAsText(e)})}function jv(e){return{version:_v,kind:`autotel-devtools-snapshot`,capturedAt:new Date().toISOString(),data:e}}function Mv(e,t){let n=JSON.stringify(jv(e),null,2),r=new Blob([n],{type:`application/json`}),i=URL.createObjectURL(r),a=`autotel-snapshot-${new Date().toISOString().replaceAll(`:`,`-`).split(`.`)[0]}.json`,o=document.createElement(`a`);o.href=i,o.download=t||a,document.body.append(o),o.click(),o.remove(),URL.revokeObjectURL(i)}function Nv(e,t){return Vs(e,t)}function Pv(e){let t;try{t=JSON.parse(e)}catch(e){return{success:!1,errors:[`Invalid JSON: ${e instanceof Error?e.message:String(e)}`],warnings:[]}}let n=Ls(t);if(!n)return{success:!1,errors:[`Snapshot is not an object`],warnings:[]};let r=[];n.kind&&n.kind!==`autotel-devtools-snapshot`&&r.push(`Unexpected snapshot kind: ${String(n.kind)}`);let i=Rs(n,`version`);i&&i!==_v&&r.push(`Version mismatch: expected ${_v}, got ${i}`);let a=Bs(n,`data`)??n,o=Nv(a,`traces`).map(Ov),s=Nv(a,`logs`),c=Nv(a,`errors`);return o.length===0&&s.length===0&&c.length===0?{success:!1,errors:[`Snapshot contains no traces, logs, or errors`],warnings:r}:{success:!0,snapshot:{traces:o,logs:s,errors:c},errors:[],warnings:r}}async function Fv(e){try{return Pv(await Av(e))}catch(e){return{success:!1,errors:[`Failed to read file: ${e instanceof Error?e.message:String(e)}`],warnings:[]}}}var Iv=z(`<div class="text-warning">Partial trace — the root span has not arrived. This is the highest
6
- span received; the duration covers only the spans present.</div>`),Lv=z(`<span class="text-xs text-fg-muted tabular-nums flex-shrink-0"> </span>`),Rv=z(`<div class="px-4 py-2 border-b border-line flex items-center gap-2"><!> <!></div>`),zv=z(`<div class="overflow-auto h-full"><div class="divide-y divide-line-subtle"></div></div>`),Bv=z(`<!> <div class="flex-shrink-0 overflow-hidden"><!></div>`,1),Vv=z(`<div class="flex flex-col h-full"><div class="px-4 py-3 border-b border-line"><div class="flex items-center justify-between mb-3"><button><!> Back to traces</button> <div class="flex items-center gap-2"><div class="flex items-center gap-1"><button class="p-1.5 hover:bg-hover rounded transition-colors" title="Copy trace JSON to clipboard"><!></button> <button class="p-1.5 hover:bg-hover rounded transition-colors" title="Download trace as JSON"><!></button></div> <div class="flex items-center gap-1 bg-hover rounded-md p-0.5"><button title="Waterfall view (w)"><!> Timeline</button> <button title="Flame graph view (f)"><!> Flame</button> <button title="List view (l)"><!> List</button></div> <button class="p-1.5 hover:bg-hover rounded transition-colors" title="Keyboard shortcuts (?)"><!></button></div></div> <div class="flex items-start justify-between gap-4"><div class="flex-1 min-w-0"><h3 class="font-semibold text-base mb-1.5 text-fg"> </h3> <div class="text-xs text-fg-subtle space-y-0.5"><!> <div> </div> <div class="font-mono flex items-center gap-1"><span class="truncate"> </span> <!></div></div></div> <div class="text-right flex-shrink-0"><div> </div> <div class="text-xs text-fg-muted"> </div> <div class="text-xs text-fg-subtle mt-1"> </div></div></div></div> <!> <div class="flex-1 overflow-hidden flex"><div class="flex-1 overflow-hidden min-w-0"><!></div> <!></div></div>`);function Hv(e,t){it(t,!0);let n=M(`waterfall`),r=j(()=>t.trace.spans.find(e=>e.spanId===Uc.value)??null),i=e=>Uc.value=e?.spanId??null,a=M(``),o=M(0),s=M(null);Rr(()=>{let e=e=>{e.key===`/`&&L(n)===`waterfall`&&!rh()&&(e.preventDefault(),L(s)?.focus())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let c=M(!1),l=M(void 0),u=av({initial:320,min:260,minOther:360,containerRef:{get current(){return L(l)??null}},storageKey:`autotel-devtools:span-detail-width`,invert:!0}),d=j(()=>u.size),f=j(()=>u.dragging),p=j(()=>u.separatorProps);function m(e,t,n){let r=e.filter(e=>e.status.code===`ERROR`);return r.length===0?null:r[((t?r.findIndex(e=>e.spanId===t.spanId):-1)+n+r.length)%r.length]}Rr(()=>{let e=e=>{if(!el.value){if(e.key===`Escape`){L(r)?i(null):ju(null);return}if(!rh()){if(e.key===`w`)e.preventDefault(),N(n,`waterfall`);else if(e.key===`f`)e.preventDefault(),N(n,`flame`);else if(e.key===`l`)e.preventDefault(),N(n,`list`);else if(e.key===`e`&&!e.shiftKey){e.preventDefault();let n=m(t.trace.spans,L(r),1);n&&i(n)}else if(e.key===`E`&&e.shiftKey){e.preventDefault();let n=m(t.trace.spans,L(r),-1);n&&i(n)}}}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});function h(e){return new Date(e).toLocaleString(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0})}function g(){xv(t.trace)}async function _(){await Cv(t.trace),N(c,!0),setTimeout(()=>N(c,!1),2e3)}var v=Vv(),y=P(v),b=P(y),x=P(b);lp(P(x),{size:14}),Ke(),E(x);var S=F(x,2),C=P(S),w=P(C),ee=P(w),te=e=>{ap(e,{size:14,class:`text-success`})},ne=e=>{xp(e,{size:14,class:`text-fg-subtle`})};H(ee,e=>{L(c)?e(te):e(ne,-1)}),E(w);var re=F(w,2);Tp(P(re),{size:14,class:`text-fg-subtle`}),E(re),E(C);var ie=F(C,2),ae=P(ie);tp(P(ae),{size:12}),Ke(),E(ae);var oe=F(ae,2);jp(P(oe),{size:12}),Ke(),E(oe);var se=F(oe,2);Gp(P(se),{size:12}),Ke(),E(se),E(ie);var ce=F(ie,2);hp(P(ce),{size:14,class:`text-fg-subtle`}),E(ce),E(S),E(b);var le=F(b,2),ue=P(le),T=P(ue),de=P(T,!0);E(T);var fe=F(T,2),pe=P(fe),me=e=>{B(e,Iv())};H(pe,e=>{t.trace.partial&&e(me)});var he=F(pe,2),ge=P(he,!0);E(he);var _e=F(he,2),ve=P(_e),ye=P(ve);E(ve),Ig(F(ve,2),{get value(){return t.trace.traceId},label:`Copy trace ID`,stop:!1}),E(_e),E(fe),E(ue);var be=F(ue,2),xe=P(be),Se=P(xe,!0);E(xe);var Ce=F(xe,2),we=P(Ce,!0);E(Ce);var Te=F(Ce,2),Ee=P(Te);E(Te),E(be),E(le),E(y);var De=F(y,2),Oe=e=>{var t=Rv(),n=P(t);xg(n,{placeholder:`Search spans… (press /)`,ariaLabel:`Search spans by name or service`,clearTitle:`Clear search`,get value(){return L(a)},set value(e){N(a,e,!0)},get ref(){return L(s)},set ref(e){N(s,e,!0)}});var r=F(n,2),i=e=>{var t=Lv(),n=P(t);E(t),I(()=>V(n,`${L(o)??``}
7
- ${L(o)===1?`match`:`matches`}`)),B(e,t)},c=j(()=>L(a).trim());H(r,e=>{L(c)&&e(i)}),E(t),B(e,t)};H(De,e=>{L(n)===`waterfall`&&e(Oe)});var ke=F(De,2),Ae=P(ke),je=P(Ae),Me=e=>{{let n=j(()=>L(r)?.spanId);Qh(e,{get trace(){return t.trace},onSpanSelect:i,get selectedSpanId(){return L(n)},get query(){return L(a)},onMatchCount:e=>N(o,e,!0)})}},Ne=e=>{{let n=j(()=>L(r)?.spanId);hg(e,{get trace(){return t.trace},onSpanSelect:i,get selectedSpanId(){return L(n)}})}},Pe=e=>{var n=zv(),a=P(n);Na(a,21,()=>t.trace.spans,e=>e.spanId,(e,n)=>{{let a=j(()=>L(r)?.spanId===L(n).spanId);gv(e,{get span(){return L(n)},get trace(){return t.trace},get isSelected(){return L(a)},onSelect:()=>i(L(n))})}}),E(a),E(n),B(e,n)};H(je,e=>{L(n)===`waterfall`?e(Me):L(n)===`flame`?e(Ne,1):e(Pe,-1)}),E(Ae);var Fe=F(Ae,2),Ie=e=>{var n=Bv(),a=Or(n);tv(a,q({get dragging(){return L(f)},title:`Drag to resize the detail panel · double-click to reset`},()=>L(p)));var o=F(a,2);$_(P(o),{get span(){return L(r)},get trace(){return t.trace},onClose:()=>i(null)}),E(o),I(()=>co(o,`width: ${L(d)??``}px;`)),B(e,n)};H(Fe,e=>{L(r)&&e(Ie)}),E(ke),Ho(ke,e=>N(l,e),()=>L(l)),E(v),I((e,n,r,i,a,o,s)=>{W(x,1,e),W(ae,1,n),W(oe,1,r),W(se,1,i),V(de,t.trace.rootSpan.name||`Trace`),V(ge,a),V(ye,`Trace ID: ${t.trace.traceId??``}`),W(xe,1,o),V(Se,t.trace.status),V(we,s),V(Ee,`${t.trace.spans.length??``} spans`)},[()=>U(Q(`text-xs text-fg-muted hover:text-fg`,`flex items-center gap-1 transition-colors`)),()=>U(Q(`px-2 py-1 text-xs rounded transition-colors flex items-center gap-1`,L(n)===`waterfall`?`bg-surface text-fg shadow-sm`:`text-fg-muted hover:text-fg`)),()=>U(Q(`px-2 py-1 text-xs rounded transition-colors flex items-center gap-1`,L(n)===`flame`?`bg-surface text-fg shadow-sm`:`text-fg-muted hover:text-fg`)),()=>U(Q(`px-2 py-1 text-xs rounded transition-colors flex items-center gap-1`,L(n)===`list`?`bg-surface text-fg shadow-sm`:`text-fg-muted hover:text-fg`)),()=>h(t.trace.startTime),()=>U(Q(`font-medium text-sm mb-1`,ad(t.trace.status))),()=>rd(t.trace.duration)]),R(`click`,x,()=>ju(null)),R(`click`,w,_),R(`click`,re,g),R(`click`,ae,()=>N(n,`waterfall`)),R(`click`,oe,()=>N(n,`flame`)),R(`click`,se,()=>N(n,`list`)),R(`click`,ce,()=>tl(nh)),B(e,v),at()}ta([`click`]);var Uv=z(`<span class="ml-0.5 min-w-[16px] px-1 rounded-full bg-accent text-[10px] font-semibold text-white text-center tabular-nums"> </span>`),Wv=z(`<div class="sticky top-0 bg-surface p-2 border-b border-line-subtle"><div class="relative"><!> <input type="text" placeholder="Narrow options…" class="w-full pl-6 pr-2 py-1 text-xs rounded border border-line bg-subtle text-fg focus:outline-none focus:border-accent"/></div></div>`),Gv=z(`<span class="text-accent normal-case"> </span>`),Kv=z(`<div class="px-1 py-1 text-xs text-fg-subtle">No matches</div>`),qv=la(`<svg viewBox="0 0 12 12" class="w-2.5 h-2.5 text-white" fill="none" stroke="currentColor" stroke-width="2"><path d="M2.5 6.5l2.5 2.5 4.5-5" stroke-linecap="round" stroke-linejoin="round"></path></svg>`),Jv=z(`<button type="button" role="menuitemcheckbox"><span><!></span> <span class="flex-1 truncate"> </span> <span class="flex-shrink-0 font-mono tabular-nums text-fg-subtle"> </span></button>`),Yv=z(`<div class="flex flex-col gap-0.5"></div>`),Xv=z(`<div class="p-2 border-b border-line-subtle last:border-b-0"><div class="flex items-center justify-between px-1 pb-1 text-[10px] font-semibold uppercase tracking-wide text-fg-subtle"><span> </span> <!></div> <!></div>`),Zv=z(`<button type="button" class="flex items-center gap-1 w-full px-3 py-2 text-xs text-fg-subtle hover:bg-hover transition-colors border-t border-line"><!> Clear all filters</button>`),Qv=z(`<div class="absolute right-0 z-30 mt-1 w-64 max-h-[60vh] overflow-auto rounded-md border border-line bg-surface shadow-lg" role="menu"><!> <!> <!></div>`),$v=z(`<div class="relative"><button type="button" aria-haspopup="true" title="Filter by facets"><!> <span>Filter</span> <!></button> <!></div>`);function ey(e,t){it(t,!0);let n=J(t,`searchThreshold`,3,8),r=M(!1),i=M(``),a=M(void 0),o=j(()=>t.facets.reduce((e,t)=>e+t.selected.size,0)),s=j(()=>t.facets.some(e=>e.options.length>n()));function c(e){let t=L(i).trim().toLowerCase();return[...t?e.options.filter(e=>e.value.toLowerCase().includes(t)):e.options].sort((t,n)=>{let r=+!!e.selected.has(t.value),i=+!!e.selected.has(n.value);return r===i?t.count===n.count?t.value.localeCompare(n.value):n.count-t.count:i-r})}function l(){N(r,!L(r)),L(r)||N(i,``)}Rr(()=>{if(!L(r))return;let e=e=>{L(a)&&!e.composedPath().includes(L(a))&&(N(r,!1),N(i,``))},t=e=>{e.key===`Escape`&&(N(r,!1),N(i,``))};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}});var u=$v(),d=P(u),f=P(d);Np(f,{size:12});var p=F(f,4),m=e=>{var t=Uv(),n=P(t,!0);E(t),I(()=>V(n,L(o))),B(e,t)};H(p,e=>{L(o)>0&&e(m)}),E(d);var h=F(d,2),g=e=>{var n=Qv(),r=P(n),a=e=>{var t=Wv(),n=P(t),r=P(n);xm(r,{size:12,class:`absolute left-2 top-1/2 -translate-y-1/2 text-fg-subtle`});var a=F(r,2);So(a),E(n),E(t),jo(a,()=>L(i),e=>N(i,e)),B(e,t)};H(r,e=>{L(s)&&e(a)});var l=F(r,2);Na(l,17,()=>t.facets,e=>e.key,(e,t)=>{let n=j(()=>c(L(t)));var r=Xv(),i=P(r),a=P(i),o=P(a,!0);E(a);var s=F(a,2),l=e=>{var n=Gv(),r=P(n,!0);E(n),I(()=>V(r,L(t).selected.size)),B(e,n)};H(s,e=>{L(t).selected.size>0&&e(l)}),E(i);var u=F(i,2),d=e=>{B(e,Kv())},f=e=>{var r=Yv();Na(r,21,()=>L(n),e=>e.value,(e,n)=>{let r=j(()=>L(t).selected.has(L(n).value));var i=Jv(),a=P(i),o=P(a),s=e=>{B(e,qv())};H(o,e=>{L(r)&&e(s)}),E(a);var c=F(a,2),l=P(c,!0);E(c);var u=F(c,2),d=P(u,!0);E(u),E(i),I((e,t)=>{W(i,1,e),G(i,`aria-checked`,L(r)),W(a,1,t),G(c,`title`,L(n).value),V(l,L(n).value),V(d,L(n).count)},[()=>U(Q(`flex items-center gap-2 px-1.5 py-1 rounded text-xs text-left transition-colors`,L(r)?`bg-accent/15 text-accent`:`text-fg-muted hover:bg-hover`)),()=>U(Q(`flex-shrink-0 w-3 h-3 rounded-sm border flex items-center justify-center`,L(r)?`bg-accent border-accent`:`border-line`))]),R(`click`,i,()=>L(t).onToggle(L(n).value)),B(e,i)}),E(r),B(e,r)};H(u,e=>{L(n).length===0?e(d):e(f,-1)}),E(r),I(()=>V(o,L(t).label)),B(e,r)});var u=F(l,2),d=e=>{var n=Zv();Vm(P(n),{size:12}),Ke(),E(n),R(`click`,n,function(...e){t.onClearAll?.apply(this,e)}),B(e,n)};H(u,e=>{L(o)>0&&e(d)}),E(n),B(e,n)};H(h,e=>{L(r)&&e(g)}),E(u),Ho(u,e=>N(a,e),()=>L(a)),I(e=>{W(d,1,e),G(d,`aria-expanded`,L(r))},[()=>U(Q(`flex items-center gap-1 px-2 py-1 text-xs rounded border transition-colors`,L(o)>0||L(r)?`border-accent/40 bg-accent/10 text-accent`:`border-line text-fg-muted hover:bg-hover`))]),R(`click`,d,l),B(e,u),at()}ta([`click`]);var ty={"=~":`REGEXP`,"!~":`NOT REGEXP`},ny=/[^\s()[\],=!<>^$"']/,ry=[`>=`,`<=`,`!=`,`=~`,`!~`,`=`,`>`,`<`,`^`,`$`];function iy(e){let t=[],n=0,r=(e,n,r,i,a=!0)=>t.push({type:e,value:n,from:r,to:i,terminated:a});for(;n<e.length;){let t=e[n];if(/\s/.test(t)){n++;continue}let i={"(":`lparen`,")":`rparen`,"[":`lbracket`,"]":`rbracket`,",":`comma`};if(i[t]){r(i[t],t,n,n+1),n++;continue}if(t===`"`||t===`'`){let i=n,a=t;n++;let o=``,s=!1;for(;n<e.length;){if(e[n]===`\\`&&n+1<e.length){o+=e[n+1],n+=2;continue}if(e[n]===a){n++,s=!0;break}o+=e[n],n++}r(`string`,o,i,n,s);continue}let a=ry.find(t=>e.startsWith(t,n));if(a){r(`sigil`,a,n,n+a.length),n+=a.length;continue}let o=n;for(;n<e.length&&ny.test(e[n]);)n++;n===o&&n++,r(`word`,e.slice(o,n),o,n)}return t}var ay=new Set([`and`,`or`]),oy=new Set([`null`,`nil`]),sy=new Map([[`contains`,`CONTAINS`],[`regexp`,`REGEXP`],[`in`,`IN`]]);function cy(e){let t=iy(e),n=[],r=()=>({from:t.length?t[t.length-1].to:0,to:e.length}),i=0,a=(e=0)=>t[i+e],o=()=>t[i++],s=(e,t)=>n.push({message:e,range:t}),c=(e=0)=>{let t=a(e);return t?.type===`word`?t.value.toLowerCase():void 0},l=(e=0)=>{let t=c(e);return t!==void 0&&ay.has(t)};function u(e,t){return{from:e.from,to:t.to}}function d(){let e=o();if(!e){s(`Expected a value`,r());return}if(e.type===`string`)return e.terminated||s(`Unterminated quoted string`,{from:e.from,to:e.to}),{type:`string`,value:e.value};if(e.type===`lbracket`){let e=[];if(a()?.type===`rbracket`)return o(),{type:`array`,values:e};for(;;){let t=d();if(!t)return{type:`array`,values:e};e.push(t);let n=a();if(n?.type===`comma`){o();continue}return n?.type===`rbracket`?(o(),{type:`array`,values:e}):(s(`Expected "," or "]" in array`,n??r()),{type:`array`,values:e})}}if(e.type===`word`){let t=e.value.toLowerCase();if(oy.has(t))return{type:`null`};if(t===`true`)return{type:`boolean`,value:!0};if(t===`false`)return{type:`boolean`,value:!1};let n=Number(e.value);return Number.isFinite(n)?{type:`number`,value:n}:{type:`string`,value:e.value}}s(`Expected a value, found "${e.value}"`,e)}function f(){let e=a();if(!e)return;if(e.type===`sigil`)return o(),ty[e.value]??e.value;if(e.type!==`word`)return;let t=e.value.toLowerCase();if(t===`not`){let e=c(1),t=e?sy.get(e):void 0;return t?(o(),o(),`NOT ${t}`):void 0}let n=sy.get(t);if(n)return o(),n}function p(){let e=a();if(!e){s(`Expected a condition`,r());return}if(e.type===`lparen`){o();let e=g(),t=a();return t?.type===`rparen`?o():s(`Unclosed parenthesis — expected ")"`,t??r()),e}if(e.type===`word`||e.type===`string`){let n=i;o();let r=f();if(r){let n=d();if(!n)return;let a=t[i-1];return{type:`comparison`,field:e.value,op:r,value:n,range:u(e,a??e)}}return i=n,o(),e.type===`string`&&!e.terminated&&s(`Unterminated quoted string`,{from:e.from,to:e.to}),{type:`freeText`,text:e.value,range:{from:e.from,to:e.to}}}s(`Unexpected "${e.value}"`,e),o()}function m(){let e=a();return!e||e.type===`rparen`||e.type===`rbracket`||e.type===`comma`?!1:!l()}function h(){let e=p();if(e)for(;;){if(c()===`and`){o();let t=p();if(!t)return e;e={type:`and`,left:e,right:t,range:ly(e,t)};continue}if(m()){let t=p();if(!t)return e;e={type:`and`,left:e,right:t,range:ly(e,t)};continue}return e}}function g(){let e=h();if(e){for(;c()===`or`;){o();let t=h();if(!t)return e;e={type:`or`,left:e,right:t,range:ly(e,t)}}return e}}if(t.length===0)return{ok:!0,node:{type:`all`}};let _=g(),v=a();return v&&s(`Unexpected "${v.value}"`,v),n.length>0||!_?{ok:!1,errors:n.length>0?n:[{message:`Invalid query`,range:r()}]}:{ok:!0,node:_}}function ly(e,t){let n=`range`in e?e.range.from:0;return{from:n,to:`range`in t?t.range.to:n}}var uy=z(`<button type="button" title="Clear query" aria-label="Clear query" class="absolute right-1.5 top-[7px] p-0.5 text-fg-subtle hover:text-fg-muted"><!></button>`),dy=z(`<button type="button" role="option" aria-selected="false" class="block w-full px-2 py-1.5 text-left font-mono text-xs text-fg hover:bg-hover"> </button>`),fy=z(`<div role="listbox" aria-label="Query fields" class="absolute left-0 right-0 top-full z-30 mt-1 max-h-48 overflow-auto rounded border border-line bg-surface shadow-lg"></div>`),py=z(`<div id="query-error" role="status" class="mt-1 flex items-start gap-1.5 text-[11px] text-danger"><!> <span> <span class="text-fg-subtle"> </span></span></div>`),my=z(`<div><!> <input spellcheck="false" autocomplete="off" autocapitalize="off" aria-label="Query"/> <!> <!> <!></div>`);function hy(e,t){it(t,!0);let n=J(t,`placeholder`,3,`Filter — e.g. service = api AND duration > 100`),r=J(t,`fields`,19,()=>[]),i=J(t,`ref`,15,null),a=j(()=>cy(t.value)),o=j(()=>L(a).ok?[]:L(a).errors),s=j(()=>L(o).length>0?L(o):t.serverErrors??[]),c=j(()=>L(s).length>0&&t.value.trim().length>0),l=M(!1),u=j(()=>{let e=t.value.match(/(?:^|[\s(])([A-Za-z_][\w.-]*)$/),n=e?.[1]?.toLowerCase()??``;return t.value.trim().length>0&&!e?[]:r().filter(e=>e.toLowerCase().startsWith(n)).filter(e=>e.toLowerCase()!==n).slice(0,8)});function d(e){e.key===`Enter`&&!L(c)&&(e.preventDefault(),t.onSubmit(t.value)),e.key===`Escape`&&t.value&&(e.preventDefault(),t.onInput(``),t.onSubmit(``))}function f(){t.onInput(``),t.onSubmit(``),i()?.focus()}function p(e){let n=t.value.match(/(?:^|[\s(])([A-Za-z_][\w.-]*)$/),r=n?.[1]?t.value.length-n[1].length:t.value.length;t.onInput(`${t.value.slice(0,r)}${e} = `),i()?.focus()}var m=my(),h=P(m);xm(h,{size:12,class:`absolute left-2 top-[9px] text-fg-subtle pointer-events-none`});var g=F(h,2);So(g),Ho(g,e=>i(e),()=>i());var _=F(g,2),v=e=>{var t=uy();Vm(P(t),{size:12}),E(t),R(`click`,t,f),B(e,t)};H(_,e=>{t.value&&e(v)});var y=F(_,2),b=e=>{var t=fy();Na(t,20,()=>L(u),e=>e,(e,t)=>{var n=dy(),r=P(n,!0);E(n),I(()=>V(r,t)),R(`mousedown`,n,e=>e.preventDefault()),R(`click`,n,()=>p(t)),B(e,n)}),E(t),B(e,t)};H(y,e=>{L(l)&&L(u).length>0&&e(b)});var x=F(y,2),S=e=>{var t=py(),n=P(t);pp(n,{size:12,class:`mt-px shrink-0`});var r=F(n,2),i=P(r),a=F(i),o=P(a);E(a),E(r),E(t),I(()=>{V(i,`${L(s)[0].message??``} `),V(o,`(column ${L(s)[0].range.from+1})`)}),B(e,t)};H(x,e=>{L(c)&&e(S)}),E(m),I((e,r)=>{W(m,1,e),Co(g,t.value),G(g,`placeholder`,n()),G(g,`aria-invalid`,L(c)?`true`:void 0),G(g,`aria-describedby`,L(c)?`query-error`:void 0),W(g,1,r)},[()=>U(Q(`relative`,t.class)),()=>U(Q(`w-full pl-7 pr-7 py-1.5 text-xs font-mono rounded border bg-surface text-fg`,`focus:outline-none focus:ring-1`,L(c)?`border-danger-border focus:ring-danger`:`border-line focus:ring-accent`))]),R(`input`,g,e=>t.onInput(e.currentTarget.value)),R(`keydown`,g,d),ea(`focus`,g,()=>N(l,!0)),ea(`blur`,g,()=>N(l,!1)),B(e,m),at()}ta([`input`,`keydown`,`click`,`mousedown`]);function gy(e){return typeof e==`function`}function _y(e){return typeof e==`object`&&!!e}var vy=[`string`,`number`,`bigint`,`boolean`];function yy(e){return e==null||vy.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>yy(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var by=Symbol(`box`),xy=Symbol(`is-writable`);function $(e,t){let n=j(e);return t?{[by]:!0,[xy]:!0,get current(){return L(n)},set current(e){t(e)}}:{[by]:!0,get current(){return e()}}}function Sy(e){return _y(e)&&by in e}function Cy(e){return Sy(e)?e:gy(e)?$(e):wy(e)}function wy(e){let t=M(_r(e));return{[by]:!0,[xy]:!0,get current(){return L(t)},set current(e){N(t,e,!0)}}}function Ty(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Ey=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Dy=/\n/g,Oy=/^\s*/,ky=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ay=/^:\s*/,jy=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,My=/^[;\s]*/,Ny=/^\s+|\s+$/g,Py=`
8
- `,Fy=`/`,Iy=`*`,Ly=``,Ry=`comment`,zy=`declaration`;function By(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(Dy);t&&(n+=t.length);var i=e.lastIndexOf(Py);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Oy)}function u(e){var t;for(e=e||[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(Fy==e.charAt(0)&&Iy==e.charAt(1)){for(var n=2;Ly!=e.charAt(n)&&(Iy!=e.charAt(n)||Fy!=e.charAt(n+1));)++n;if(n+=2,Ly===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Ry,comment:o})}}function f(){var e=a(),t=c(ky);if(t){if(d(),!c(Ay))return s(`property missing ':'`);var n=c(jy),r=e({type:zy,property:Vy(t[0].replace(Ey,Ly)),value:n?Vy(n[0].replace(Ey,Ly)):Ly});return c(My),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function Vy(e){return e?e.replace(Ny,Ly):Ly}function Hy(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=By(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n=n||{},n[r]=a)}),n}var Uy=/\d/,Wy=[`-`,`_`,`/`,`.`];function Gy(e=``){if(!Uy.test(e))return e!==e.toLowerCase()}function Ky(e){let t=[],n=``,r,i;for(let a of e){let e=Wy.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=Gy(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function qy(e){return e?Ky(e).map(e=>Yy(e)).join(``):``}function Jy(e){return Xy(qy(e||``))}function Yy(e){return e?e[0].toUpperCase()+e.slice(1):``}function Xy(e){return e?e[0].toLowerCase()+e.slice(1):``}function Zy(e){if(!e)return{};let t={};function n(e,n){if(e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)){t[qy(e)]=n;return}if(e.startsWith(`--`)){t[e]=n;return}t[Jy(e)]=n}return Hy(e,n),t}function Qy(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function $y(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var eb=$y(/[A-Z]/,e=>`-${e.toLowerCase()}`);function tb(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${eb(t)}: ${e[t]};`).join(`
9
- `)}function nb(e={}){return tb(e).replace(`
10
- `,` `)}var rb=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function ib(e){return rb.has(e)}function ab(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&typeof o&&ib(e))t[e]=Ty(n,i);else if(a&&o)t[e]=Qy(n,i);else if(e===`class`){let r=yy(n),a=yy(i);r&&a?t[e]=to(n,i):r?t[e]=to(n):a&&(t[e]=to(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=Zy(i);t[e]={...n,...r}}else if(o&&a)t[e]={...Zy(n),...i};else if(o&&s){let r=Zy(n),a=Zy(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=nb(t.style).replaceAll(`
11
- `,` `)),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}var ob=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function sb(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var cb,lb=!1,ub=new WeakMap,db=new WeakMap,fb=new WeakMap,pb=new WeakSet;cb=class extends Date{constructor(...e){super(...e),kt(this,pb),D(this,ub,M(super.getTime())),D(this,db,new Map),D(this,fb,ui),lb||O(pb,this,mb).call(this)}};function mb(){lb=!0;var e=cb.prototype,t=Date.prototype,n=Object.getOwnPropertyNames(t);for(let r of n)(r.startsWith(`get`)||r.startsWith(`to`)||r===`valueOf`)&&(e[r]=function(...e){if(e.length>0)return L(A(ub,this)),t[r].apply(this,e);var n=A(db,this).get(r);if(n===void 0){let i=ui;fi(A(fb,this)),n=j(()=>(L(A(ub,this)),t[r].apply(this,e))),A(db,this).set(r,n),fi(i)}return L(n)}),r.startsWith(`set`)&&(e[r]=function(...e){var n=t[r].apply(this,e);return N(A(ub,this),t.getTime.call(this)),n})}var hb,gb,_b=[`forEach`,`isDisjointFrom`,`isSubsetOf`,`isSupersetOf`],vb=[`difference`,`intersection`,`symmetricDifference`,`union`],yb=!1,bb=new WeakMap,xb=new WeakMap,Sb=new WeakMap,Cb=new WeakMap,wb=new WeakSet;gb=Symbol.iterator,hb=class extends Set{constructor(e){if(super(),kt(this,wb),D(this,bb,new Map),D(this,xb,M(0)),D(this,Sb,M(0)),D(this,Cb,Ci||-1),e){for(var t of e)super.add(t);A(Sb,this).v=super.size}yb||O(wb,this,Eb).call(this)}has(e){var t=super.has(e),n=A(bb,this),r=n.get(e);if(r===void 0){if(!t)return L(A(xb,this)),!1;r=O(wb,this,Tb).call(this,!0),n.set(e,r)}return L(r),t}add(e){return super.has(e)||(super.add(e),N(A(Sb,this),super.size),hr(A(xb,this))),this}delete(e){var t=super.delete(e),n=A(bb,this),r=n.get(e);return r!==void 0&&(n.delete(e),N(r,!1)),t&&(N(A(Sb,this),super.size),hr(A(xb,this))),t}clear(){if(super.size!==0){super.clear();var e=A(bb,this);for(var t of e.values())N(t,!1);e.clear(),N(A(Sb,this),0),hr(A(xb,this))}}keys(){return this.values()}values(){return L(A(xb,this)),super.values()}entries(){return L(A(xb,this)),super.entries()}[gb](){return this.keys()}get size(){return L(A(Sb,this))}};function Tb(e){return Ci===A(Cb,this)?M(e):dr(e)}function Eb(){yb=!0;var e=hb.prototype,t=Set.prototype;for(let n of _b)e[n]=function(...e){return L(A(xb,this)),t[n].apply(this,e)};for(let n of vb)e[n]=function(...e){L(A(xb,this));var r=t[n].apply(this,e);return new hb(r)}}function Db(e){return Db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Db(e)}function Ob(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=Db(e))!==null;);return e}function kb(){return kb=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ob(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},kb.apply(null,arguments)}function Ab(e,t,n,r){var i=kb(Db(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var jb,Mb,Nb=new WeakMap,Pb=new WeakMap,Fb=new WeakMap,Ib=new WeakMap,Lb=new WeakSet;Mb=Symbol.iterator;var Rb=class extends Map{constructor(e){if(super(),kt(this,Lb),D(this,Nb,new Map),D(this,Pb,M(0)),D(this,Fb,M(0)),D(this,Ib,Ci||-1),e){for(var[t,n]of e)super.set(t,n);A(Fb,this).v=super.size}}has(e){var t=A(Nb,this),n=t.get(e);if(n===void 0){if(super.has(e))n=O(Lb,this,zb).call(this,0),t.set(e,n);else return L(A(Pb,this)),!1}return L(n),!0}forEach(e,t){O(Lb,this,Bb).call(this),super.forEach(e,t)}get(e){var t=A(Nb,this),n=t.get(e);if(n===void 0){if(super.has(e))n=O(Lb,this,zb).call(this,0),t.set(e,n);else{L(A(Pb,this));return}}return L(n),super.get(e)}set(e,t){var n=A(Nb,this),r=n.get(e),i=super.get(e),a=super.set(e,t),o=A(Pb,this);if(r===void 0)r=O(Lb,this,zb).call(this,0),n.set(e,r),N(A(Fb,this),super.size),hr(o);else if(i!==t){hr(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&hr(o)}return a}delete(e){var t=A(Nb,this),n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(A(Fb,this),super.size),hr(A(Pb,this))),r}clear(){if(super.size!==0){super.clear();var e=A(Nb,this);N(A(Fb,this),0);for(var t of e.values())N(t,-1);hr(A(Pb,this)),e.clear()}}keys(){return L(A(Pb,this)),super.keys()}values(){return O(Lb,this,Bb).call(this),super.values()}entries(){return O(Lb,this,Bb).call(this),super.entries()}[Mb](){return this.entries()}get size(){return L(A(Fb,this)),super.size}};jb=Rb;function zb(e){return Ci===A(Ib,this)?M(e):dr(e)}function Bb(){L(A(Pb,this));var e=A(Nb,this);if(A(Fb,this).v!==e.size){for(var t of Ab(jb.prototype,`keys`,this,2)([]))if(!e.has(t)){var n=O(Lb,this,zb).call(this,0);e.set(t,n)}}for([,n]of A(Nb,this))L(n)}var Vb=new WeakMap,Hb=new WeakMap;new class{constructor(e={}){D(this,Vb,void 0),D(this,Hb,void 0);let{window:t=ob,document:n=t?.document}=e;t!==void 0&&(k(Vb,this,n),k(Hb,this,Dt(e=>{let n=$i(t,`focusin`,e),r=$i(t,`focusout`,e);return()=>{n(),r()}})))}get current(){return A(Hb,this)?.call(this),A(Vb,this)?sb(A(Vb,this)):null}};function Ub(e){return typeof e==`function`}var Wb=new WeakMap,Gb=new WeakMap,Kb=class{constructor(e){D(this,Wb,void 0),D(this,Gb,void 0),k(Wb,this,e),k(Gb,this,Symbol(e))}get key(){return A(Gb,this)}exists(){return nt(A(Gb,this))}get(){let e=et(A(Gb,this));if(e===void 0)throw Error(`Context "${A(Wb,this)}" not found`);return e}getOr(e){let t=et(A(Gb,this));return t===void 0?e:t}set(e){return tt(A(Gb,this),e)}};function qb(e,t){switch(e){case`post`:Rr(t);break;case`pre`:Br(t)}}function Jb(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;qb(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=Fi(()=>n(t,o));return o=t,r})}function Yb(e,t,n){Jb(e,`post`,t,n)}function Xb(e,t,n){Jb(e,`pre`,t,n)}Yb.pre=Xb;function Zb(e){return Ub(e)?e():e}var Qb=new WeakMap,$b=new WeakMap,ex=new WeakMap,tx=new WeakMap,nx=new WeakMap,rx=new WeakMap,ix=new WeakMap,ax=new WeakMap,ox=class{constructor(e,t={box:`border-box`}){D(this,Qb,{width:0,height:0}),D(this,$b,!1),D(this,ex,void 0),D(this,tx,void 0),D(this,nx,void 0),D(this,rx,j(()=>(L(A(ax,this))?.(),this.getSize().width))),D(this,ix,j(()=>(L(A(ax,this))?.(),this.getSize().height))),D(this,ax,j(()=>{let e=Zb(A(tx,this));if(e)return Dt(t=>{if(!A(nx,this))return;let n=new(A(nx,this)).ResizeObserver(e=>{k($b,this,!0);for(let t of e){let e=A(ex,this).box===`content-box`?t.contentBoxSize:t.borderBoxSize,n=Array.isArray(e)?e:[e];A(Qb,this).width=n.reduce((e,t)=>Math.max(e,t.inlineSize),0),A(Qb,this).height=n.reduce((e,t)=>Math.max(e,t.blockSize),0)}t()});return n.observe(e),()=>{k($b,this,!1),n.disconnect()}})})),k(nx,this,t.window??ob),k(ex,this,t),k(tx,this,e),k(Qb,this,{width:0,height:0})}calculateSize(){let e=Zb(A(tx,this));if(!e||!A(nx,this))return;let t=e.offsetWidth,n=e.offsetHeight;if(A(ex,this).box===`border-box`)return{width:t,height:n};let r=A(nx,this).getComputedStyle(e),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),o=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),s=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth);return{width:t-i-o,height:n-a-s}}getSize(){return A($b,this)?A(Qb,this):this.calculateSize()??A(Qb,this)}get current(){return L(A(ax,this))?.(),this.getSize()}get width(){return L(A(rx,this))}get height(){return L(A(ix,this))}};function sx(e){Rr(()=>()=>{e()})}function cx(e,t){return setTimeout(t,e)}function lx(e){Mi().then(e)}var ux=1,dx=9,fx=11;function px(e){return _y(e)&&e.nodeType===ux&&typeof e.nodeName==`string`}function mx(e){return _y(e)&&e.nodeType===dx}function hx(e){return _y(e)&&e.constructor?.name===`VisualViewport`}function gx(e){return _y(e)&&e.nodeType!==void 0}function _x(e){return gx(e)&&e.nodeType===fx&&`host`in e}function vx(e,t){if(!e||!t||!px(e)||!px(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&_x(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function yx(e){return mx(e)?e:hx(e)?e.document:e?.ownerDocument??document}function bx(e){return _x(e)?bx(e.host):mx(e)?e.defaultView??window:px(e)?e.ownerDocument?.defaultView??window:window}function xx(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Sx=new WeakMap,Cx=class{get root(){return L(A(Sx,this))}set root(e){N(A(Sx,this),e)}constructor(e){b(this,`element`,void 0),D(this,Sx,j(()=>this.element.current?this.element.current.getRootNode()??document:document)),b(this,`getDocument`,()=>yx(this.root)),b(this,`getWindow`,()=>this.getDocument().defaultView??window),b(this,`getActiveElement`,()=>xx(this.root)),b(this,`isActiveElement`,e=>e===this.getActiveElement()),b(this,`querySelector`,e=>this.root?this.root.querySelector(e):null),b(this,`querySelectorAll`,e=>this.root?this.root.querySelectorAll(e):[]),b(this,`setTimeout`,(e,t)=>this.getWindow().setTimeout(e,t)),b(this,`clearTimeout`,e=>this.getWindow().clearTimeout(e)),this.element=typeof e==`function`?$(e):e}getElementById(e){return this.root.getElementById(e)}};function wx(e,t){return{[Ri()]:n=>Sy(e)?(e.current=n,Fi(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Fi(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e(null),t?.(null))})}}function Tx(e){return e?`true`:`false`}function Ex(e){return e?`open`:`closed`}function Dx(e){return e===`starting`?{"data-starting-style":``}:e===`ending`?{"data-ending-style":``}:{}}var Ox=new WeakMap,kx=new WeakMap,Ax=class{constructor(e){D(this,Ox,void 0),D(this,kx,void 0),b(this,`attrs`,void 0),k(Ox,this,e.getVariant?e.getVariant():null),k(kx,this,A(Ox,this)?`data-${A(Ox,this)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(e=>[e,this.getAttr(e)]))}getAttr(e,t){return t?`data-${t}-${e}`:`${A(kx,this)}${e}`}selector(e,t){return`[${this.getAttr(e,t)}]`}};function jx(e){let t=new Ax(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}var Mx=typeof document<`u`,Nx=Px();function Px(){return Mx&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Fx(e){return e instanceof HTMLElement}function Ix(e){return e instanceof Element}function Lx(e){return e instanceof Element||e instanceof SVGElement}function Rx(e){return e.pointerType===`touch`}function zx(e){return e!==null}var Bx=new WeakMap,Vx=new WeakMap,Hx=new WeakMap,Ux=new WeakMap,Wx=new WeakSet,Gx=class{constructor(e){kt(this,Wx),D(this,Bx,void 0),D(this,Vx,null),D(this,Hx,null),D(this,Ux,0),k(Bx,this,e),sx(()=>O(Wx,this,Kx).call(this))}run(e){O(Wx,this,Kx).call(this);let t=A(Bx,this).ref.current;if(!t)return;if(typeof t.getAnimations!=`function`){O(Wx,this,qx).call(this,e);return}let n=A(Ux,this),r=()=>{n===A(Ux,this)&&O(Wx,this,qx).call(this,e)},i=()=>{if(n!==A(Ux,this))return;let e=t.getAnimations();if(e.length===0){r();return}Promise.all(e.map(e=>e.finished)).then(()=>{r()}).catch(()=>{if(n===A(Ux,this)){if(t.getAnimations().some(e=>e.pending||e.playState!==`finished`)){i();return}r()}})},a=()=>{k(Vx,this,window.requestAnimationFrame(()=>{k(Vx,this,null),i()}))};if(!A(Bx,this).afterTick.current){a();return}k(Vx,this,window.requestAnimationFrame(()=>{k(Vx,this,null);let e=`data-starting-style`;if(!t.hasAttribute(e)){a();return}k(Hx,this,new MutationObserver(()=>{n===A(Ux,this)&&(t.hasAttribute(e)||(A(Hx,this)?.disconnect(),k(Hx,this,null),a()))})),A(Hx,this).observe(t,{attributes:!0,attributeFilter:[e]})}))}};function Kx(){var e;A(Vx,this)!==null&&(window.cancelAnimationFrame(A(Vx,this)),k(Vx,this,null)),A(Hx,this)?.disconnect(),k(Hx,this,null),k(Ux,this,(e=A(Ux,this),e++,e))}function qx(e){let t=()=>{e()};A(Bx,this).afterTick?lx(t):t()}var Jx=new WeakMap,Yx=new WeakMap,Xx=new WeakMap,Zx=new WeakMap,Qx=new WeakMap,$x=new WeakMap,eS=new WeakMap,tS=new WeakSet,nS=class{constructor(e){kt(this,tS),D(this,Jx,void 0),D(this,Yx,void 0),D(this,Xx,void 0),D(this,Zx,M(!1)),D(this,Qx,M(void 0)),D(this,$x,!1),D(this,eS,null),k(Jx,this,e),N(A(Zx,this),e.open.current,!0),k(Yx,this,e.enabled??!0),k(Xx,this,new Gx({ref:A(Jx,this).ref,afterTick:A(Jx,this).open})),sx(()=>O(tS,this,rS).call(this)),Yb(()=>A(Jx,this).open.current,e=>{if(!A($x,this)){k($x,this,!0);return}if(O(tS,this,rS).call(this),!e&&A(Jx,this).shouldSkipExitAnimation?.()){N(A(Zx,this),!1),N(A(Qx,this),void 0),A(Jx,this).onComplete?.();return}if(e&&N(A(Zx,this),!0),N(A(Qx,this),e?`starting`:`ending`,!0),e&&k(eS,this,window.requestAnimationFrame(()=>{k(eS,this,null),A(Jx,this).open.current&&N(A(Qx,this),void 0)})),!A(Yx,this)){e||N(A(Zx,this),!1),N(A(Qx,this),void 0),A(Jx,this).onComplete?.();return}A(Xx,this).run(()=>{e===A(Jx,this).open.current&&(A(Jx,this).open.current||N(A(Zx,this),!1),N(A(Qx,this),void 0),A(Jx,this).onComplete?.())})})}get shouldRender(){return L(A(Zx,this))}get transitionStatus(){return L(A(Qx,this))}};function rS(){A(eS,this)!==null&&(window.cancelAnimationFrame(A(eS,this)),k(eS,this,null))}function iS(){}function aS(e,t){return t===void 0?`bits-${e}`:`bits-${e}-${t}`}function oS(e,t){var n=ua();Oa(Or(n),()=>t.children,e=>{var n=ua();za(Or(n),()=>t.children??p),B(e,n)}),B(e,n)}var sS=new Kb(`BitsConfig`);function cS(){let e=new uS(null,{});return sS.getOr(e).opts}function lS(e){return sS.set(new uS(sS.getOr(null),e))}var uS=class{constructor(e,t){b(this,`opts`,void 0);let n=dS(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function dS(e,t){return n=>$(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function fS(e,t){return n=>{let r=cS();return $(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var pS=fS(e=>e.defaultPortalTo,`body`);function mS(e,t){it(t,!0);let n=pS(()=>t.to),r=rt(),i=j(a);function a(){if(!Mx||t.disabled)return null;let e=null;return e=typeof n.current==`string`?document.querySelector(n.current):n.current,e}let o;function s(){o&&(va(o),o=null)}Yb([()=>L(i),()=>t.disabled],([e,n])=>{if(!e||n){s();return}return o=ma(oS,{target:e,props:{children:t.children},context:r}),()=>{s()}});var c=ua(),l=Or(c),u=e=>{var n=ua();za(Or(n),()=>t.children??p),B(e,n)};H(l,e=>{t.disabled&&e(u)}),B(e,c),at()}var hS=class{constructor(e,t={bubbles:!0,cancelable:!0}){b(this,`eventName`,void 0),b(this,`options`,void 0),this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return $i(e,this.eventName,e=>{t(e)},n)}};function gS(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function _S(e,t){return e===t||e.contains(t)}function vS(e){return e?.ownerDocument??document}function yS(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var bS=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],xS=bS.join(`,`),SS=typeof Element>`u`,CS=SS?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,wS=!SS&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},TS=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):TS(e.parentNode))},ES=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},DS=function(e,t,n){if(TS(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(xS));return t&&CS.call(e,xS)&&r.unshift(e),r=r.filter(n),r},OS=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!TS(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=OS(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{CS.call(a,xS)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!TS(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=OS(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},kS=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},AS=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ES(e))&&!kS(e)?0:e.tabIndex},jS=function(e,t){var n=AS(e);return n<0&&t&&!kS(e)?0:n},MS=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},NS=function(e){return e.tagName===`INPUT`},PS=function(e){return NS(e)&&e.type===`hidden`},FS=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},IS=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},LS=function(e){if(!e.name)return!0;var t=e.form||wS(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=IS(r,e.form);return!i||i===e},RS=function(e){return NS(e)&&e.type===`radio`},zS=function(e){return RS(e)&&!LS(e)},BS=function(e){var t=e&&wS(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=wS(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},VS=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},HS=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=CS.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(CS.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=wS(e);if(s&&!s.shadowRoot&&r(s)===!0)return VS(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(BS(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return VS(e);return!1},US=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return CS.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},WS=function(e,t){return!(t.disabled||PS(t)||HS(t,e)||FS(t)||US(t))},GS=function(e,t){return!(zS(t)||AS(t)<0||!WS(e,t))},KS=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},qS=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=jS(a,i),s=i?qS(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(MS).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},JS=function(e,t){return t=t||{},qS(t.getShadowRoot?OS([e],t.includeContainer,{filter:GS.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:KS}):DS(e,t.includeContainer,GS.bind(null,t)))},YS=function(e,t){return t=t||{},t.getShadowRoot?OS([e],t.includeContainer,{filter:WS.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):DS(e,t.includeContainer,WS.bind(null,t))},XS=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return CS.call(e,xS)!==!1&&GS(t,e)},ZS=bS.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),QS=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return CS.call(e,ZS)!==!1&&WS(t,e)},$S=`data-context-menu-trigger`,eC=`data-context-menu-content`;new Kb(`Menu.Root`),new Kb(`Menu.Root | Menu.Sub`),new Kb(`Menu.Content`),new Kb(`Menu.Group | Menu.RadioGroup`),new Kb(`Menu.RadioGroup`),new Kb(`Menu.CheckboxGroup`),new hS(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),jx({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]});var tC;(tC=globalThis).bitsDismissableLayers??(tC.bitsDismissableLayers=new Map);var nC=new WeakMap,rC=new WeakMap,iC=new WeakMap,aC=new WeakMap,oC=new WeakMap,sC=new WeakMap,cC=new WeakMap,lC=new WeakMap,uC=new WeakMap,dC=new WeakSet,fC=new WeakMap,pC=new WeakMap,mC=new WeakMap,hC=new WeakMap,gC=new WeakMap,_C=new WeakMap,vC=new WeakMap,yC=new WeakMap,bC=new WeakMap,xC=class e{static create(t){return new e(t)}constructor(e){kt(this,dC),b(this,`opts`,void 0),D(this,nC,void 0),D(this,rC,void 0),D(this,iC,{pointerdown:!1}),D(this,aC,!1),D(this,oC,!1),D(this,sC,void 0),D(this,cC,void 0),D(this,lC,iS),D(this,uC,e=>{e.defaultPrevented||this.opts.ref.current&&lx(()=>{!this.opts.ref.current||A(_C,this).call(this,e.target)||e.target&&!A(oC,this)&&A(cC,this).current?.(e)})}),D(this,fC,e=>{let t=e;t.defaultPrevented&&(t=DC(e)),A(nC,this).current(e)}),D(this,pC,gS(e=>{if(!this.opts.ref.current){A(lC,this).call(this);return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||EC(e,this.opts.ref.current);if(!A(aC,this)||O(dC,this,CC).call(this)||!t){A(lC,this).call(this);return}let n=e;if(n.defaultPrevented&&(n=DC(n)),A(rC,this).current!==`close`&&A(rC,this).current!==`defer-otherwise-close`){A(lC,this).call(this);return}e.pointerType===`touch`?(A(lC,this).call(this),k(lC,this,$i(A(sC,this),`click`,A(fC,this),{once:!0}))):A(nC,this).current(n)},10)),D(this,mC,e=>{A(iC,this)[e.type]=!0}),D(this,hC,e=>{A(iC,this)[e.type]=!1}),D(this,gC,()=>{this.opts.ref.current&&k(aC,this,TC(this.opts.ref.current))}),D(this,_C,e=>this.opts.ref.current?_S(this.opts.ref.current,e):!1),D(this,vC,gS(()=>{for(let e in A(iC,this))A(iC,this)[e]=!1;k(aC,this,!1)},20)),D(this,yC,()=>{k(oC,this,!0)}),D(this,bC,()=>{k(oC,this,!1)}),b(this,`props`,{onfocuscapture:A(yC,this),onblurcapture:A(bC,this)}),this.opts=e,k(rC,this,e.interactOutsideBehavior),k(nC,this,e.onInteractOutside),k(cC,this,e.onFocusOutside),Rr(()=>{k(sC,this,vS(this.opts.ref.current))});let t=iS,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),A(vC,this).call(this),globalThis.bitsDismissableLayers.delete(this),A(pC,this).destroy(),t()};Yb([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return i(),n=cx(1,()=>{n=null,!(r||!this.opts.ref.current)&&(globalThis.bitsDismissableLayers.set(this,A(rC,this)),t(),t=O(dC,this,SC).call(this))}),a}),sx(()=>{r=!0,i(),A(vC,this).destroy(),globalThis.bitsDismissableLayers.delete(this),A(pC,this).destroy(),A(lC,this).call(this),t()})}};function SC(){return Qy($i(A(sC,this),`pointerdown`,Qy(A(mC,this),A(gC,this)),{capture:!0}),$i(A(sC,this),`pointerdown`,Qy(A(hC,this),A(pC,this))),$i(A(sC,this),`focusin`,A(uC,this)))}function CC(){return Object.values(A(iC,this)).some(Boolean)}function wC(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function TC(e){let t=[...globalThis.bitsDismissableLayers],n=wC(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function EC(e,t){let n=e.target;if(!Lx(n))return!1;let r=!!n.closest(`[${$S}]`),i=!!t.closest(`[${eC}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:vS(n).documentElement.contains(n)&&!_S(t,n)&&yS(e,t)}function DC(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function OC(e,t){it(t,!0);let n=J(t,`interactOutsideBehavior`,3,`close`),r=J(t,`onInteractOutside`,3,iS),i=J(t,`onFocusOutside`,3,iS),a=J(t,`isValidEvent`,3,()=>!1),o=xC.create({id:$(()=>t.id),interactOutsideBehavior:$(()=>n()),onInteractOutside:$(()=>r()),enabled:$(()=>t.enabled),onFocusOutside:$(()=>i()),isValidEvent:$(()=>a()),ref:t.ref});var s=ua();za(Or(s),()=>t.children??p,()=>({props:o.props})),B(e,s),at()}var kC;(kC=globalThis).bitsEscapeLayers??(kC.bitsEscapeLayers=new Map);var AC=new WeakMap,jC=new WeakMap,MC=class e{static create(t){return new e(t)}constructor(e){b(this,`opts`,void 0),b(this,`domContext`,void 0),D(this,AC,()=>$i(this.domContext.getDocument(),`keydown`,A(jC,this),{passive:!1})),D(this,jC,e=>{if(e.key!==`Escape`||!NC(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}),this.opts=e,this.domContext=new Cx(this.opts.ref);let t=iS;Yb(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=A(AC,this).call(this)),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}};function NC(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function PC(e,t){it(t,!0);let n=J(t,`escapeKeydownBehavior`,3,`close`),r=J(t,`onEscapeKeydown`,3,iS);MC.create({escapeKeydownBehavior:$(()=>n()),onEscapeKeydown:$(()=>r()),enabled:$(()=>t.enabled),ref:t.ref});var i=ua();za(Or(i),()=>t.children??p),B(e,i),at()}var FC=new WeakMap,IC=new WeakMap,LC=new WeakMap,RC=class e{constructor(){D(this,FC,wy([])),D(this,IC,new WeakMap),D(this,LC,new WeakMap)}static getInstance(){return this.instance||(this.instance=new e),this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&A(LC,this).set(e,n),A(FC,this).current=A(FC,this).current.filter(t=>t!==e),A(FC,this).current.unshift(e)}unregister(e){A(FC,this).current=A(FC,this).current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return A(FC,this).current[0]}setFocusMemory(e,t){A(IC,this).set(e,t)}getFocusMemory(e){return A(IC,this).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){A(LC,this).set(e,t)}getPreFocusMemory(e){return A(LC,this).get(e)}clearPreFocusMemory(e){A(LC,this).delete(e)}};b(RC,`instance`,void 0);var zC=new WeakMap,BC=new WeakMap,VC=new WeakMap,HC=new WeakMap,UC=new WeakMap,WC=new WeakSet,GC=class e{constructor(e){kt(this,WC),D(this,zC,!1),D(this,BC,null),D(this,VC,RC.getInstance()),D(this,HC,[]),D(this,UC,void 0),k(UC,this,e)}get paused(){return A(zC,this)}pause(){k(zC,this,!0)}resume(){k(zC,this,!1)}mount(e){A(BC,this)&&this.unmount(),k(BC,this,e),A(VC,this).register(this),O(WC,this,YC).call(this),O(WC,this,qC).call(this)}unmount(){A(BC,this)&&(O(WC,this,KC).call(this),O(WC,this,JC).call(this),A(VC,this).unregister(this),A(VC,this).clearPreFocusMemory(this),k(BC,this,null))}static use(t){let n=null;return Yb([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||(n=new e(t)),n.mount(r)):n&&(n.unmount(),n=null)}),sx(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function KC(){for(let e of A(HC,this))e();k(HC,this,[])}function qC(){if(!A(BC,this))return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});A(UC,this).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!A(BC,this))return;let e=O(WC,this,ZC).call(this);e?(e.focus(),A(VC,this).setFocusMemory(this,e)):A(BC,this).focus()})}function JC(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(A(UC,this).onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=A(VC,this).getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}function YC(){if(!A(BC,this)||!A(UC,this).trap.current)return;let e=A(BC,this),t=e.ownerDocument;A(HC,this).push($i(t,`focusin`,t=>{if(A(zC,this)||!A(VC,this).isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))A(VC,this).setFocusMemory(this,n);else{let n=A(VC,this).getFocusMemory(this);if(n&&e.contains(n)&&QS(n))t.preventDefault(),n.focus();else{let t=O(WC,this,ZC).call(this),n=O(WC,this,QC).call(this)[0];(t||n||e).focus()}}}},{capture:!0}),$i(e,`keydown`,e=>{if(!A(UC,this).loop||A(zC,this)||e.key!==`Tab`||!A(VC,this).isActiveScope(this))return;let n=O(WC,this,XC).call(this);if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=A(VC,this).getFocusMemory(this);if(t&&!e.contains(t)){let t=O(WC,this,ZC).call(this),n=O(WC,this,QC).call(this)[0],r=t||n;r?(r.focus(),A(VC,this).setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),A(HC,this).push(()=>n.disconnect())}function XC(){return A(BC,this)?JS(A(BC,this),{includeContainer:!1,getShadowRoot:!0}):[]}function ZC(){return O(WC,this,XC).call(this)[0]||null}function QC(){return A(BC,this)?YS(A(BC,this),{includeContainer:!1,getShadowRoot:!0}):[]}function $C(e,t){it(t,!0);let n=J(t,`enabled`,3,!1),r=J(t,`trapFocus`,3,!1),i=J(t,`loop`,3,!1),a=J(t,`onCloseAutoFocus`,3,iS),o=J(t,`onOpenAutoFocus`,3,iS),s=GC.use({enabled:$(()=>n()),trap:$(()=>r()),loop:i(),onCloseAutoFocus:$(()=>a()),onOpenAutoFocus:$(()=>o()),ref:t.ref});var c=ua();za(Or(c),()=>t.focusScope??p,()=>({props:s.props})),B(e,c),at()}var ew,tw=()=>{};(ew=globalThis).bitsTextSelectionLayers??(ew.bitsTextSelectionLayers=new Map);var nw=new WeakMap,rw=new WeakMap,iw=new WeakMap,aw=new WeakMap,ow=new WeakSet,sw=new WeakMap,cw=new WeakMap,lw=new WeakMap,uw=class e{static create(t){return new e(t)}constructor(e){kt(this,ow),b(this,`opts`,void 0),b(this,`domContext`,void 0),D(this,nw,iS),D(this,rw,!1),D(this,iw,tw),D(this,aw,tw),D(this,sw,e=>{A(aw,this).call(this,e)}),D(this,cw,e=>{if(!A(rw,this))return;let t=this.opts.ref.current,n=e.target;!Fx(t)||!Fx(n)||!hw(this)||!vx(t,n)||(A(iw,this).call(this,e),!e.defaultPrevented&&k(nw,this,pw(t,this.domContext.getDocument().body)))}),D(this,lw,()=>{A(nw,this).call(this),k(nw,this,iS)}),this.opts=e,this.domContext=new Cx(e.ref);let t=iS;Yb(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(k(rw,this,e),k(iw,this,n),k(aw,this,r),e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=O(ow,this,dw).call(this)),()=>{k(rw,this,!1),t(),A(lw,this).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}};function dw(){return Qy($i(this.domContext.getDocument(),`pointerdown`,A(cw,this)),$i(this.domContext.getDocument(),`pointerup`,Ty(A(lw,this),A(sw,this))))}var fw=e=>e.style.userSelect||e.style.webkitUserSelect;function pw(e,t){let n=fw(t),r=fw(e);return mw(t,`none`),mw(e,`text`),()=>{mw(t,n),mw(e,r)}}function mw(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function hw(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function gw(e,t){it(t,!0);let n=J(t,`preventOverflowTextSelection`,3,!0),r=J(t,`onPointerDown`,3,iS),i=J(t,`onPointerUp`,3,iS);uw.create({id:$(()=>t.id),onPointerDown:$(()=>r()),onPointerUp:$(()=>i()),enabled:$(()=>t.enabled&&n()),ref:t.ref});var a=ua();za(Or(a),()=>t.children??p),B(e,a),at()}var _w;(_w=globalThis).bitsIdCounter??(_w.bitsIdCounter={current:0});function vw(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var yw=new WeakMap,bw=new WeakMap,xw=new WeakMap,Sw=new WeakMap,Cw=new WeakSet,ww=class{constructor(e){kt(this,Cw),D(this,yw,void 0),D(this,bw,0),D(this,xw,M()),D(this,Sw,void 0),k(yw,this,e)}get(...e){return k(bw,this,A(bw,this)+1),L(A(xw,this))===void 0&&k(Sw,this,Vr(()=>{N(A(xw,this),A(yw,this).call(this,...e),!0)})),Rr(()=>()=>{O(Cw,this,Tw).call(this)}),L(A(xw,this))}};function Tw(){k(bw,this,A(bw,this)-1),A(Sw,this)&&A(bw,this)<=0&&(A(Sw,this).call(this),N(A(xw,this),void 0),k(Sw,this,void 0))}var Ew=new Rb,Dw=M(null),Ow=null,kw=null,Aw=!1,jw=$(()=>{for(let e of Ew.values())if(e)return!0;return!1}),Mw=null,Nw=new ww(()=>{function e(){document.body.setAttribute(`style`,L(Dw)??``),document.body.style.removeProperty(`--scrollbar-width`),Nx&&Ow?.(),N(Dw,null)}function t(){kw!==null&&(window.clearTimeout(kw),kw=null)}function n(e,n){t(),Aw=!0,Mw=Date.now();let r=Mw,i=()=>{kw=null,Mw===r&&(zw(Ew)?Aw=!1:(Aw=!1,n()))},a=e===null?24:e;kw=window.setTimeout(i,a)}function r(){L(Dw)===null&&Ew.size===0&&!Aw&&N(Dw,document.body.getAttribute(`style`),!0)}return Yb(()=>jw.current,()=>{if(!jw.current)return;r(),Aw=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,Nx&&(Ow=$i(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),lx(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),sx(()=>()=>{Ow?.()}),{get lockMap(){return Ew},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),Pw=new WeakMap,Fw=new WeakMap,Iw=new WeakMap,Lw=new WeakMap,Rw=class{constructor(e,t=()=>null){D(this,Pw,vw()),D(this,Fw,void 0),D(this,Iw,()=>null),D(this,Lw,void 0),b(this,`locked`,void 0),k(Fw,this,e),k(Iw,this,t),k(Lw,this,Nw.get()),A(Lw,this)&&(A(Lw,this).cancelPendingCleanup(),A(Lw,this).ensureInitialStyleCaptured(),A(Lw,this).lockMap.set(A(Pw,this),A(Fw,this)??!1),this.locked=$(()=>A(Lw,this).lockMap.get(A(Pw,this))??!1,e=>A(Lw,this).lockMap.set(A(Pw,this),e)),sx(()=>{if(A(Lw,this).lockMap.delete(A(Pw,this)),zw(A(Lw,this).lockMap))return;let e=A(Iw,this).call(this);A(Lw,this).scheduleCleanupIfNoNewLocks(e,()=>{A(Lw,this).resetBodyStyle()})}))}};function zw(e){for(let[t,n]of e)if(n)return!0;return!1}function Bw(e,t){it(t,!0);let n=J(t,`preventScroll`,3,!0),r=J(t,`restoreScrollDelay`,3,null);n()&&new Rw(n(),()=>r()),at()}function Vw(e,t){it(t,!0),lS({defaultPortalTo:$(()=>t.defaultPortalTo),defaultLocale:$(()=>t.defaultLocale)});var n=ua();za(Or(n),()=>t.children??p),B(e,n),at()}var Hw=[`top`,`right`,`bottom`,`left`],Uw=Math.min,Ww=Math.max,Gw=Math.round,Kw=Math.floor,qw=e=>({x:e,y:e}),Jw={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Yw(e,t,n){return Ww(e,Uw(t,n))}function Xw(e,t){return typeof e==`function`?e(t):e}function Zw(e){return e.split(`-`)[0]}function Qw(e){return e.split(`-`)[1]}function $w(e){return e===`x`?`y`:`x`}function eT(e){return e===`y`?`height`:`width`}function tT(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function nT(e){return $w(tT(e))}function rT(e,t,n){n===void 0&&(n=!1);let r=Qw(e),i=nT(e),a=eT(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=fT(o)),[o,fT(o)]}function iT(e){let t=fT(e);return[aT(e),t,aT(t)]}function aT(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var oT=[`left`,`right`],sT=[`right`,`left`],cT=[`top`,`bottom`],lT=[`bottom`,`top`];function uT(e,t,n){switch(e){case`top`:case`bottom`:return n?t?sT:oT:t?oT:sT;case`left`:case`right`:return t?cT:lT;default:return[]}}function dT(e,t,n,r){let i=Qw(e),a=uT(Zw(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(aT)))),a}function fT(e){let t=Zw(e);return Jw[t]+e.slice(t.length)}function pT(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function mT(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:pT(e)}function hT(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function gT(e,t,n){let{reference:r,floating:i}=e,a=tT(t),o=nT(t),s=eT(o),c=Zw(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Qw(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function _T(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Xw(t,e),p=mT(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=hT(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=hT(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var vT=50,yT=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:_T},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=gT(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<vT&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=gT(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},bT=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Xw(e,t)||{};if(l==null)return{};let d=mT(u),f={x:n,y:r},p=nT(i),m=eT(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,ee=C/2-h[m]/2-1,te=Uw(d[_],ee),ne=Uw(d[v],ee),re=C-h[m]-ne,ie=C/2-h[m]/2+w,ae=Yw(te,ie,re),oe=!c.arrow&&Qw(i)!=null&&ie!==ae&&a.reference[m]/2-(ie<te?te:ne)-h[m]/2<0,se=oe?ie<te?ie-te:ie-re:0;return{[p]:f[p]+se,data:{[p]:ae,centerOffset:ie-ae-se,...oe&&{alignmentOffset:se}},reset:oe}}}),xT=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Xw(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Zw(r),_=tT(o),v=Zw(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[fT(o)]:iT(o)),x=p!==`none`;!d&&x&&b.push(...dT(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],ee=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=rT(r,a,y);w.push(C[e[0]],C[e[1]])}if(ee=[...ee,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===tT(t)||ee.every(e=>tT(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:ee},reset:{placement:t}};let n=ee.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=ee.filter(e=>{if(x){let t=tT(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function ST(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function CT(e){return Hw.some(t=>e[t]>=0)}var wT=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Xw(e,t);switch(i){case`referenceHidden`:{let e=ST(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:CT(e)}}}case`escaped`:{let e=ST(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:CT(e)}}}default:return{}}}}},TT=new Set([`left`,`top`]);async function ET(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Zw(n),s=Qw(n),c=tT(n)===`y`,l=TT.has(o)?-1:1,u=a&&c?-1:1,d=Xw(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var DT=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ET(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},OT=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Xw(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=tT(i),p=$w(f),m=u[p],h=u[f],g=(e,t)=>Yw(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},kT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Xw(e,t),u={x:n,y:r},d=tT(i),f=$w(d),p=u[f],m=u[d],h=Xw(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=TT.has(Zw(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},AT=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Xw(e,t),c=await i.detectOverflow(t,s),l=Zw(n),u=Qw(n),d=tT(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Uw(p-c[m],g),y=Uw(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Ww(c.left,c.right):S=p-2*Ww(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function jT(){return typeof window<`u`}function MT(e){return FT(e)?(e.nodeName||``).toLowerCase():`#document`}function NT(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function PT(e){return((FT(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function FT(e){return jT()?e instanceof Node||e instanceof NT(e).Node:!1}function IT(e){return jT()?e instanceof Element||e instanceof NT(e).Element:!1}function LT(e){return jT()?e instanceof HTMLElement||e instanceof NT(e).HTMLElement:!1}function RT(e){return!jT()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof NT(e).ShadowRoot}function zT(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=XT(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function BT(e){return/^(table|td|th)$/.test(MT(e))}function VT(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var HT=/transform|translate|scale|rotate|perspective|filter/,UT=/paint|layout|strict|content/,WT=e=>!!e&&e!==`none`,GT;function KT(e){let t=IT(e)?XT(e):e;return WT(t.transform)||WT(t.translate)||WT(t.scale)||WT(t.rotate)||WT(t.perspective)||!JT()&&(WT(t.backdropFilter)||WT(t.filter))||HT.test(t.willChange||``)||UT.test(t.contain||``)}function qT(e){let t=QT(e);for(;LT(t)&&!YT(t);){if(KT(t))return t;if(VT(t))return null;t=QT(t)}return null}function JT(){return GT??(GT=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`)),GT}function YT(e){return/^(html|body|#document)$/.test(MT(e))}function XT(e){return NT(e).getComputedStyle(e)}function ZT(e){return IT(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function QT(e){if(MT(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||RT(e)&&e.host||PT(e);return RT(t)?t.host:t}function $T(e){let t=QT(e);return YT(t)?(e.ownerDocument||e).body:LT(t)&&zT(t)?t:$T(t)}function eE(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=$T(e),i=r===e.ownerDocument?.body,a=NT(r);if(i){let e=tE(a);return t.concat(a,a.visualViewport||[],zT(r)?r:[],e&&n?eE(e):[])}return t.concat(r,eE(r,[],n))}function tE(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nE(e){let t=XT(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=LT(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Gw(n)!==a||Gw(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function rE(e){return IT(e)?e:e.contextElement}function iE(e){let t=rE(e);if(!LT(t))return qw(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=nE(t),o=(a?Gw(n.width):n.width)/r,s=(a?Gw(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var aE=qw(0);function oE(e){let t=NT(e);return!JT()||!t.visualViewport?aE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sE(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===NT(e)}function cE(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=rE(e),o=qw(1);t&&(r?IT(r)&&(o=iE(r)):o=iE(e));let s=sE(a,n,r)?oE(a):qw(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=NT(a),t=IT(r)?NT(r):r,n=e,i=tE(n);for(;i&&t!==n;){let e=iE(i),t=i.getBoundingClientRect(),r=XT(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=NT(i),i=tE(n)}}return hT({width:u,height:d,x:c,y:l})}function lE(e,t){let n=ZT(e).scrollLeft;return t?t.left+n:cE(PT(e)).left+n}function uE(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-lE(e,n),y:n.top+t.scrollTop}}function dE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=PT(r),s=t?VT(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=qw(1),u=qw(0),d=LT(r);if((d||!a)&&((MT(r)!==`body`||zT(o))&&(c=ZT(r)),d)){let e=cE(r);l=iE(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?uE(o,c):qw(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function fE(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function pE(e){let t=ZT(e),n=e.ownerDocument.body,r=Ww(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ww(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+lE(e),o=-t.scrollTop;return XT(n).direction===`rtl`&&(a+=Ww(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var mE=25;function hE(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=NT(e),a=PT(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!JT()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(lE(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=mE&&(s-=o)}return{width:s,height:c,x:l,y:u}}function gE(e,t){let n=cE(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=iE(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function _E(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=hE(e,n,t);else if(t===`document`)r=pE(PT(e));else if(IT(t))r=gE(t,n);else{let n=oE(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return hT(r)}function vE(e,t){let n=t.get(e);if(n)return n;let r=eE(e,[],!1).filter(e=>IT(e)&&MT(e)!==`body`),i=null,a=XT(e).position===`fixed`,o=a?QT(e):e;for(;IT(o)&&!YT(o);){let e=XT(o),t=KT(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=QT(o)}return t.set(e,r),r}function yE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?VT(t)?[]:vE(t,this._c):[].concat(n),r],o=_E(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=_E(t,a[e],i);s=Ww(n.top,s),c=Uw(n.right,c),l=Uw(n.bottom,l),u=Ww(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function bE(e){let{width:t,height:n}=nE(e);return{width:t,height:n}}function xE(e,t,n){let r=LT(t),i=PT(t),a=n===`fixed`,o=cE(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=qw(0);if((r||!a)&&((MT(t)!==`body`||zT(i))&&(s=ZT(t)),r)){let e=cE(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=lE(i));let l=i&&!r&&!a?uE(i,s):qw(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function SE(e){return XT(e).position===`static`}function CE(e,t){if(!LT(e)||XT(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return PT(e)===n&&(n=n.ownerDocument.body),n}function wE(e,t){let n=NT(e);if(VT(e))return n;if(!LT(e)){let t=QT(e);for(;t&&!YT(t);){if(IT(t)&&!SE(t))return t;t=QT(t)}return n}let r=CE(e,t);for(;r&&BT(r)&&SE(r);)r=CE(r,t);return r&&YT(r)&&SE(r)&&!KT(r)?n:r||qT(e)||n}var TE=async function(e){let t=this.getOffsetParent||wE,n=this.getDimensions,r=await n(e.floating);return{reference:xE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function EE(e){return XT(e).direction===`rtl`}var DE={convertOffsetParentRelativeRectToViewportRelativeRect:dE,getDocumentElement:PT,getClippingRect:yE,getOffsetParent:wE,getElementRects:TE,getClientRects:fE,getDimensions:bE,getScale:iE,isElement:IT,isRTL:EE};function OE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kE(e,t,n){let r=null,i,a=PT(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Kw(d),h=Kw(a.clientWidth-(u+f)),g=Kw(a.clientHeight-(d+p)),_=Kw(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ww(0,Uw(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!OE(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=NT(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function AE(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=rE(e),u=i||a?[...l?eE(l):[],...t?eE(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?kE(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?cE(e):null;c&&g();function g(){let t=cE(e);h&&!OE(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var jE=DT,ME=OT,NE=xT,PE=AT,FE=wT,IE=bT,LE=kT,RE=(e,t,n)=>{let r=new Map,i=n??{},a={...DE,...i.platform,_c:r};return yT(e,t,{...i,platform:a})};function zE(e){return typeof e==`function`?e():e}function BE(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function VE(e,t){let n=BE(e);return Math.round(t*n)/n}function HE(e){return{[`--bits-${e}-content-transform-origin`]:`var(--bits-floating-transform-origin)`,[`--bits-${e}-content-available-width`]:`var(--bits-floating-available-width)`,[`--bits-${e}-content-available-height`]:`var(--bits-floating-available-height)`,[`--bits-${e}-anchor-width`]:`var(--bits-floating-anchor-width)`,[`--bits-${e}-anchor-height`]:`var(--bits-floating-anchor-height)`}}function UE(e){let t=e.whileElementsMounted,n=j(()=>zE(e.open)??!0),r=j(()=>zE(e.middleware)),i=j(()=>zE(e.transform)??!0),a=j(()=>zE(e.placement)??`bottom`),o=j(()=>zE(e.strategy)??`absolute`),s=j(()=>zE(e.sideOffset)??0),c=j(()=>zE(e.alignOffset)??0),l=e.reference,u=M(0),d=M(0),f=wy(null),p=M(_r(L(o))),m=M(_r(L(a))),h=M(_r({})),g=M(!1),_=!1,v=0,y=j(()=>{let e=f.current?VE(f.current,L(u)):L(u),t=f.current?VE(f.current,L(d)):L(d);return L(i)?{position:L(p),left:`0`,top:`0`,transform:`translate(${e}px, ${t}px)`,...f.current&&BE(f.current)>=1.5&&{willChange:`transform`}}:{position:L(p),left:`${e}px`,top:`${t}px`}}),b;function x(){if(l.current===null||f.current===null)return;let e=l.current,t=f.current,i=++v;RE(e,t,{middleware:L(r),placement:L(a),strategy:L(o)}).then(r=>{if(i===v&&l.current===e&&f.current===t){if(WE(e)){N(h,{...L(h),hide:{...L(h).hide,referenceHidden:!0}},!0);return}if(!L(n)&&L(u)!==0&&L(d)!==0){let e=Math.max(Math.abs(L(s)),Math.abs(L(c)),15);if(r.x<=e&&r.y<=e)return}N(u,r.x,!0),N(d,r.y,!0),N(p,r.strategy,!0),N(m,r.placement,!0),N(h,r.middlewareData,!0),N(g,!0)}})}function S(){typeof b==`function`&&(b(),b=void 0),v++}function C(){if(S(),t===void 0){x();return}L(n)&&l.current!==null&&f.current!==null&&(b=t(l.current,f.current,x))}function w(){!L(n)&&f.current===null&&N(g,!1)}function ee(){return[L(r),L(a),L(o),L(s),L(c),L(n)]}return Rr(()=>{t===void 0&&L(n)&&x()}),Rr(C),Rr(()=>{if(t!==void 0){if(ee(),!L(n)){_=!1;return}if(!L(g)){_=!1;return}if(!_){_=!0;return}x()}}),Rr(w),Rr(()=>S),{floating:f,reference:l,get strategy(){return L(p)},get placement(){return L(m)},get middlewareData(){return L(h)},get isPositioned(){return L(g)},get floatingStyles(){return L(y)},get update(){return x}}}function WE(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}var GE={top:`bottom`,right:`left`,bottom:`top`,left:`right`},KE=new Kb(`Floating.Root`),qE=new Kb(`Floating.Content`),JE=new Kb(`Floating.Root`),YE=class e{static create(t=!1){return t?JE.set(new e):KE.set(new e)}constructor(){b(this,`anchorNode`,wy(null)),b(this,`customAnchorNode`,wy(null)),b(this,`triggerNode`,wy(null)),Rr(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current==`string`?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}},XE=new WeakMap,ZE=new WeakMap,QE=new WeakMap,$E=new WeakMap,eD=new WeakMap,tD=new WeakMap,nD=new WeakMap,rD=new WeakMap,iD=new WeakMap,aD=new WeakMap,oD=new WeakMap,sD=new WeakMap,cD=new WeakMap,lD=new WeakMap,uD=new WeakMap,dD=new WeakMap,fD=new WeakMap,pD=new WeakMap,mD=new WeakMap,hD=new WeakMap,gD=new WeakMap,_D=new WeakMap,vD=new WeakMap,yD=new WeakMap,bD=class e{static create(t,n=!1){return n?qE.set(new e(t,JE.get())):qE.set(new e(t,KE.get()))}get hasExplicitBoundaries(){return L(A(rD,this))}set hasExplicitBoundaries(e){N(A(rD,this),e)}get detectOverflowOptions(){return L(A(iD,this))}set detectOverflowOptions(e){N(A(iD,this),e)}get middleware(){return L(A(lD,this))}set middleware(e){N(A(lD,this),e)}get placedSide(){return L(A(uD,this))}set placedSide(e){N(A(uD,this),e)}get placedAlign(){return L(A(dD,this))}set placedAlign(e){N(A(dD,this),e)}get arrowX(){return L(A(fD,this))}set arrowX(e){N(A(fD,this),e)}get arrowY(){return L(A(pD,this))}set arrowY(e){N(A(pD,this),e)}get cannotCenterArrow(){return L(A(mD,this))}set cannotCenterArrow(e){N(A(mD,this),e)}get contentZIndex(){return L(A(hD,this))}set contentZIndex(e){N(A(hD,this),e,!0)}get arrowBaseSide(){return L(A(gD,this))}set arrowBaseSide(e){N(A(gD,this),e)}get wrapperProps(){return L(A(_D,this))}set wrapperProps(e){N(A(_D,this),e)}get props(){return L(A(vD,this))}set props(e){N(A(vD,this),e)}get arrowStyle(){return L(A(yD,this))}set arrowStyle(e){N(A(yD,this),e)}constructor(e,t){b(this,`opts`,void 0),b(this,`root`,void 0),b(this,`contentRef`,wy(null)),b(this,`wrapperRef`,wy(null)),b(this,`arrowRef`,wy(null)),b(this,`contentAttachment`,wx(this.contentRef)),b(this,`wrapperAttachment`,wx(this.wrapperRef)),b(this,`arrowAttachment`,wx(this.arrowRef)),b(this,`arrowId`,wy(vw())),D(this,XE,j(()=>{if(typeof this.opts.style==`string`)return Zy(this.opts.style);if(!this.opts.style)return{}})),D(this,ZE,void 0),D(this,QE,new ox(()=>this.arrowRef.current??void 0)),D(this,$E,j(()=>A(QE,this)?.width??0)),D(this,eD,j(()=>A(QE,this)?.height??0)),D(this,tD,j(()=>this.opts.side?.current+(this.opts.align.current===`center`?``:`-${this.opts.align.current}`))),D(this,nD,j(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current])),D(this,rD,j(()=>L(A(nD,this)).length>0)),D(this,iD,j(()=>({padding:this.opts.collisionPadding.current,boundary:L(A(nD,this)).filter(zx),altBoundary:this.hasExplicitBoundaries}))),D(this,aD,M(void 0)),D(this,oD,M(void 0)),D(this,sD,M(void 0)),D(this,cD,M(void 0)),D(this,lD,j(()=>[jE({mainAxis:this.opts.sideOffset.current+L(A(eD,this)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&ME({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current===`partial`?LE():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&NE({...this.detectOverflowOptions}),PE({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{let{width:r,height:i}=e.reference;N(A(aD,this),t,!0),N(A(oD,this),n,!0),N(A(sD,this),r,!0),N(A(cD,this),i,!0)}}),this.arrowRef.current&&IE({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),SD({arrowWidth:L(A($E,this)),arrowHeight:L(A(eD,this))}),this.opts.hideWhenDetached.current&&FE({strategy:`referenceHidden`,...this.detectOverflowOptions})].filter(Boolean))),b(this,`floating`,void 0),D(this,uD,j(()=>wD(this.floating.placement))),D(this,dD,j(()=>TD(this.floating.placement))),D(this,fD,j(()=>this.floating.middlewareData.arrow?.x??0)),D(this,pD,j(()=>this.floating.middlewareData.arrow?.y??0)),D(this,mD,j(()=>this.floating.middlewareData.arrow?.centerOffset!==0)),D(this,hD,M()),D(this,gD,j(()=>GE[this.placedSide])),D(this,_D,j(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":``,style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${L(A(aD,this))}px`,"--bits-floating-available-height":`${L(A(oD,this))}px`,"--bits-floating-anchor-width":`${L(A(sD,this))}px`,"--bits-floating-anchor-height":`${L(A(cD,this))}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:`hidden`,"pointer-events":`none`},...L(A(XE,this))},dir:this.opts.dir.current,...this.wrapperAttachment}))),D(this,vD,j(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:nb({...L(A(XE,this))}),...this.contentAttachment}))),D(this,yD,j(()=>({position:`absolute`,left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[this.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[this.placedSide],visibility:this.cannotCenterArrow?`hidden`:void 0}))),this.opts=e,this.root=t,k(ZE,this,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),Yb(()=>e.customAnchor.current,e=>{this.root.customAnchorNode.current=e}),this.floating=UE({strategy:()=>this.opts.strategy.current,placement:()=>L(A(tD,this)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...e)=>AE(...e,{animationFrame:A(ZE,this)?.current===`always`}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Rr(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Yb(()=>this.contentRef.current,e=>{if(!e||!this.opts.enabled.current)return;let t=bx(e),n=t.requestAnimationFrame(()=>{if(this.contentRef.current!==e||!this.opts.enabled.current)return;let n=t.getComputedStyle(e).zIndex;n!==this.contentZIndex&&(this.contentZIndex=n)});return()=>{t.cancelAnimationFrame(n)}}),Rr(()=>{this.floating.floating.current=this.wrapperRef.current})}},xD=class e{static create(t,n=!1){return n?new e(t,JE.get()):new e(t,KE.get())}constructor(e,t){b(this,`opts`,void 0),b(this,`root`,void 0),this.opts=e,this.root=t,t.triggerNode=e.virtualEl&&e.virtualEl.current?Cy(e.virtualEl.current):e.ref}};function SD(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=CD(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}}function CD(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function wD(e){return CD(e)[0]}function TD(e){return CD(e)[1]}function ED(e,t){it(t,!0);let n=J(t,`tooltip`,3,!1);YE.create(n());var r=ua();za(Or(r),()=>t.children??p),B(e,r),at()}function DD(e,t){it(t,!0);let n=J(t,`tooltip`,3,!1);xD.create({id:$(()=>t.id),virtualEl:$(()=>t.virtualEl),ref:t.ref},n());var r=ua();za(Or(r),()=>t.children??p),B(e,r),at()}function OD(e,t){it(t,!0);let n=J(t,`side`,3,`bottom`),r=J(t,`sideOffset`,3,0),i=J(t,`align`,3,`center`),a=J(t,`alignOffset`,3,0),o=J(t,`arrowPadding`,3,0),s=J(t,`avoidCollisions`,3,!0),c=J(t,`collisionBoundary`,19,()=>[]),l=J(t,`collisionPadding`,3,0),u=J(t,`hideWhenDetached`,3,!1),d=J(t,`onPlaced`,3,()=>{}),f=J(t,`sticky`,3,`partial`),m=J(t,`updatePositionStrategy`,3,`optimized`),h=J(t,`strategy`,3,`fixed`),g=J(t,`dir`,3,`ltr`),_=J(t,`style`,19,()=>({})),v=J(t,`wrapperId`,19,vw),y=J(t,`customAnchor`,3,null),b=J(t,`tooltip`,3,!1),x=bD.create({side:$(()=>n()),sideOffset:$(()=>r()),align:$(()=>i()),alignOffset:$(()=>a()),id:$(()=>t.id),arrowPadding:$(()=>o()),avoidCollisions:$(()=>s()),collisionBoundary:$(()=>c()),collisionPadding:$(()=>l()),hideWhenDetached:$(()=>u()),onPlaced:$(()=>d()),sticky:$(()=>f()),updatePositionStrategy:$(()=>m()),strategy:$(()=>h()),dir:$(()=>g()),style:$(()=>_()),enabled:$(()=>t.enabled),wrapperId:$(()=>v()),customAnchor:$(()=>y())},b()),S=j(()=>ab(x.wrapperProps,{style:{pointerEvents:`auto`}}));var C=ua();za(Or(C),()=>t.content??p,()=>({props:x.props,wrapperProps:L(S)})),B(e,C),at()}function kD(e,t){it(t,!0),Go(()=>{t.onPlaced?.()});var n=ua();za(Or(n),()=>t.content??p,()=>({props:{},wrapperProps:{}})),B(e,n),at()}var AD=new Set([`$$slots`,`$$events`,`$$legacy`,`content`,`isStatic`,`onPlaced`]);function jD(e,t){let n=J(t,`isStatic`,3,!1),r=K(t,AD);var i=ua(),a=Or(i),o=e=>{kD(e,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},s=e=>{OD(e,q({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};H(a,e=>{n()?e(o):e(s,-1)}),B(e,i)}var MD=new Set(`$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled.ref.tooltip.contentPointerEvents`.split(`.`)),ND=z(`<!> <!>`,1);function PD(e,t){it(t,!0);let n=J(t,`interactOutsideBehavior`,3,`close`),r=J(t,`trapFocus`,3,!0),i=J(t,`isValidEvent`,3,()=>!1),a=J(t,`customAnchor`,3,null),o=J(t,`isStatic`,3,!1),s=J(t,`tooltip`,3,!1),c=J(t,`contentPointerEvents`,3,`auto`),l=K(t,MD),u=j(()=>t.preventScroll??!0),d=j(()=>t.strategy??(L(u)?`fixed`:`absolute`));jD(e,{get isStatic(){return o()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return L(d)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get enabled(){return t.enabled},get tooltip(){return s()},content:(e,a)=>{let o=()=>(a?.()).props,s=()=>(a?.()).wrapperProps;var d=ND(),f=Or(d),m=e=>{Bw(e,{get preventScroll(){return L(u)}})},h=e=>{Bw(e,{get preventScroll(){return L(u)}})};H(f,e=>{t.forceMount&&t.enabled?e(m):t.forceMount||e(h,1)}),$C(F(f,2),{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(e,r)=>{let a=()=>(r?.()).props;PC(e,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,r)=>{OC(e,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,n)=>{let r=()=>(n?.()).props;gw(e,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,n)=>{var i=ua(),u=Or(i);{let e=j(()=>({props:ab(l,o(),r(),a(),{style:{pointerEvents:c()}}),wrapperProps:s()}));za(u,()=>t.popper??p,()=>L(e))}B(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),B(e,d)},$$slots:{content:!0}}),at()}var FD=new Set(`$$slots.$$events.$$legacy.popper.open.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.ref.shouldRender`.split(`.`));function ID(e,t){let n=J(t,`interactOutsideBehavior`,3,`close`),r=J(t,`trapFocus`,3,!0),i=J(t,`isValidEvent`,3,()=>!1),a=J(t,`customAnchor`,3,null),o=J(t,`isStatic`,3,!1),s=K(t,FD);var c=ua(),l=Or(c),u=e=>{PD(e,q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get isStatic(){return o()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>s))};H(l,e=>{t.shouldRender&&e(u)}),B(e,c)}var LD=new Set(`$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled`.split(`.`));function RD(e,t){let n=J(t,`interactOutsideBehavior`,3,`close`),r=J(t,`trapFocus`,3,!0),i=J(t,`isValidEvent`,3,()=>!1),a=J(t,`customAnchor`,3,null),o=J(t,`isStatic`,3,!1),s=K(t,LD);PD(e,q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get isStatic(){return o()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>s,{forceMount:!0}))}function zD(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]??[0,0],[c,l]=t[o]??[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function BD(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function VD(e,t){let n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,a=t.top+t.height/2,o=i-n,s=a-r;return Math.abs(o)>Math.abs(s)?o>0?`right`:`left`:s>0?`bottom`:`top`}var HD=new WeakMap,UD=new WeakMap,WD=new WeakMap,GD=new WeakMap,KD=new WeakMap,qD=new WeakMap,JD=new WeakMap,YD=new WeakMap,XD=new WeakMap,ZD=new WeakSet,QD=class{constructor(e){kt(this,ZD),D(this,HD,void 0),D(this,UD,void 0),D(this,WD,void 0),D(this,GD,null),D(this,KD,null),D(this,qD,[]),D(this,JD,null),D(this,YD,null),D(this,XD,null),k(HD,this,e),k(UD,this,e.buffer??1);let t=e.transitIntentTimeout;k(WD,this,typeof t==`number`&&t>0?t:null),Yb([e.triggerNode,e.contentNode,e.enabled],([e,t,n])=>{if(!e||!t||!n){k(JD,this,null),O(ZD,this,iO).call(this);return}return A(JD,this)&&A(JD,this)!==e&&O(ZD,this,iO).call(this),k(JD,this,e),[$i(yx(e),`pointermove`,n=>{O(ZD,this,rO).call(this,[n.clientX,n.clientY],e,t)}),$i(e,`pointerleave`,e=>{let n=e.relatedTarget;if(Ix(n)&&t.contains(n))return;let r=A(HD,this).ignoredTargets?.()??[];Ix(n)&&r.some(e=>e===n||e.contains(n))||(k(qD,this,Ix(n)&&r.length>0?r.filter(e=>n.contains(e)):[]),k(GD,this,[e.clientX,e.clientY]),k(KD,this,`content`),O(ZD,this,eO).call(this))}),$i(e,`pointerenter`,()=>{O(ZD,this,iO).call(this)}),$i(t,`pointerenter`,()=>{O(ZD,this,iO).call(this)}),$i(t,`pointerleave`,t=>{let n=t.relatedTarget;Ix(n)&&e.contains(n)||(k(GD,this,[t.clientX,t.clientY]),k(KD,this,`trigger`),O(ZD,this,eO).call(this))})].reduce((e,t)=>()=>{e(),t()},()=>{})})}};function $D(){A(YD,this)!==null&&(cancelAnimationFrame(A(YD,this)),k(YD,this,null))}function eO(){O(ZD,this,$D).call(this),k(YD,this,requestAnimationFrame(()=>{k(YD,this,null),!(!A(GD,this)||!A(KD,this))&&(O(ZD,this,iO).call(this),A(HD,this).onPointerExit())}))}function tO(){A(XD,this)!==null&&(clearTimeout(A(XD,this)),k(XD,this,null))}function nO(){A(WD,this)!==null&&(O(ZD,this,tO).call(this),k(XD,this,window.setTimeout(()=>{k(XD,this,null),!(!A(GD,this)||!A(KD,this))&&(O(ZD,this,iO).call(this),A(HD,this).onPointerExit())},A(WD,this))))}function rO(e,t,n){if(!A(GD,this)||!A(KD,this))return;O(ZD,this,$D).call(this),O(ZD,this,nO).call(this);let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();if(A(KD,this)===`content`&&BD(e,i)){O(ZD,this,iO).call(this);return}if(A(KD,this)===`trigger`&&BD(e,r)){O(ZD,this,iO).call(this);return}if(A(KD,this)===`content`&&A(qD,this).length>0)for(let t of A(qD,this)){let n=t.getBoundingClientRect();if(BD(e,n))return;let i=VD(r,n),a=O(ZD,this,aO).call(this,r,n,i);if(a&&zD(e,a))return}let a=VD(r,i),o=O(ZD,this,aO).call(this,r,i,a);if(o&&zD(e,o))return;let s=A(KD,this)===`content`?i:r;zD(e,O(ZD,this,oO).call(this,A(GD,this),s,a,A(KD,this)))||(O(ZD,this,iO).call(this),A(HD,this).onPointerExit())}function iO(){k(GD,this,null),k(KD,this,null),k(qD,this,[]),O(ZD,this,$D).call(this),O(ZD,this,tO).call(this)}function aO(e,t,n){let r=A(UD,this);switch(n){case`top`:return[[Math.min(e.left,t.left)-r,e.top],[Math.min(e.left,t.left)-r,t.bottom],[Math.max(e.right,t.right)+r,t.bottom],[Math.max(e.right,t.right)+r,e.top]];case`bottom`:return[[Math.min(e.left,t.left)-r,e.bottom],[Math.min(e.left,t.left)-r,t.top],[Math.max(e.right,t.right)+r,t.top],[Math.max(e.right,t.right)+r,e.bottom]];case`left`:return[[e.left,Math.min(e.top,t.top)-r],[t.right,Math.min(e.top,t.top)-r],[t.right,Math.max(e.bottom,t.bottom)+r],[e.left,Math.max(e.bottom,t.bottom)+r]];case`right`:return[[e.right,Math.min(e.top,t.top)-r],[t.left,Math.min(e.top,t.top)-r],[t.left,Math.max(e.bottom,t.bottom)+r],[e.right,Math.max(e.bottom,t.bottom)+r]]}}function oO(e,t,n,r){let i=A(UD,this)*4,[a,o]=e;switch(r===`trigger`?O(ZD,this,sO).call(this,n):n){case`top`:return[[a-i,o+i],[a+i,o+i],[t.right+i,t.bottom],[t.right+i,t.top],[t.left-i,t.top],[t.left-i,t.bottom]];case`bottom`:return[[a-i,o-i],[a+i,o-i],[t.right+i,t.top],[t.right+i,t.bottom],[t.left-i,t.bottom],[t.left-i,t.top]];case`left`:return[[a+i,o-i],[a+i,o+i],[t.right,t.bottom+i],[t.left,t.bottom+i],[t.left,t.top-i],[t.right,t.top-i]];case`right`:return[[a-i,o-i],[a-i,o+i],[t.left,t.bottom+i],[t.right,t.bottom+i],[t.right,t.top-i],[t.left,t.top-i]]}}function sO(e){switch(e){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`}}var cO=jx({component:`popover`,parts:[`root`,`trigger`,`content`,`close`,`overlay`]}),lO=new Kb(`Popover.Root`),uO=new WeakMap,dO=new WeakMap,fO=new WeakMap,pO=new WeakMap,mO=new WeakMap,hO=new WeakMap,gO=new WeakMap,_O=new WeakMap,vO=new WeakMap,yO=new WeakSet,bO=class e{static create(t){return lO.set(new e(t))}get contentNode(){return L(A(uO,this))}set contentNode(e){N(A(uO,this),e,!0)}get triggerNode(){return L(A(dO,this))}set triggerNode(e){N(A(dO,this),e,!0)}get overlayNode(){return L(A(fO,this))}set overlayNode(e){N(A(fO,this),e,!0)}get openedViaHover(){return L(A(pO,this))}set openedViaHover(e){N(A(pO,this),e,!0)}get hasInteractedWithContent(){return L(A(mO,this))}set hasInteractedWithContent(e){N(A(mO,this),e,!0)}get hoverCooldown(){return L(A(hO,this))}set hoverCooldown(e){N(A(hO,this),e,!0)}get closeDelay(){return L(A(gO,this))}set closeDelay(e){N(A(gO,this),e,!0)}constructor(e){kt(this,yO),b(this,`opts`,void 0),D(this,uO,M(null)),b(this,`contentPresence`,void 0),D(this,dO,M(null)),D(this,fO,M(null)),b(this,`overlayPresence`,void 0),D(this,pO,M(!1)),D(this,mO,M(!1)),D(this,hO,M(!1)),D(this,gO,M(0)),D(this,_O,null),D(this,vO,null),this.opts=e,this.contentPresence=new nS({ref:$(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new nS({ref:$(()=>this.overlayNode),open:this.opts.open}),Yb(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,O(yO,this,xO).call(this))})}setDomContext(e){k(vO,this,e)}toggleOpen(){O(yO,this,xO).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){O(yO,this,xO).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){O(yO,this,xO).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(O(yO,this,xO).call(this),this.closeDelay<=0?this.opts.open.current=!1:A(vO,this)&&k(_O,this,A(vO,this).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),k(_O,this,null)},this.closeDelay))))}cancelDelayedClose(){O(yO,this,xO).call(this)}markInteraction(){this.hasInteractedWithContent=!0,O(yO,this,xO).call(this)}};function xO(){A(_O,this)!==null&&A(vO,this)&&(A(vO,this).clearTimeout(A(_O,this)),k(_O,this,null))}var SO=new WeakMap,CO=new WeakMap,wO=new WeakMap,TO=new WeakSet,EO=new WeakMap,DO=class e{static create(t){return new e(t,lO.get())}constructor(e,t){kt(this,TO),b(this,`opts`,void 0),b(this,`root`,void 0),b(this,`attachment`,void 0),b(this,`domContext`,void 0),D(this,SO,null),D(this,CO,null),D(this,wO,M(!1)),D(this,EO,j(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":Tx(this.root.opts.open.current),"data-state":Ex(this.root.opts.open.current),"aria-controls":O(TO,this,jO).call(this),[cO.trigger]:``,disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}))),this.opts=e,this.root=t,this.attachment=wx(this.opts.ref,e=>this.root.triggerNode=e),this.domContext=new Cx(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Yb(()=>this.opts.closeDelay.current,e=>{this.root.closeDelay=e})}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Rx(e)||(N(A(wO,this),!0),O(TO,this,kO).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;let t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():k(SO,this,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),k(SO,this,null)},t))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Rx(e)||(N(A(wO,this),!1),O(TO,this,OO).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(O(TO,this,AO).call(this),L(A(wO,this))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}L(A(wO,this))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),O(TO,this,AO).call(this),this.root.toggleOpen())}get props(){return L(A(EO,this))}set props(e){N(A(EO,this),e)}};function OO(){A(SO,this)!==null&&(this.domContext.clearTimeout(A(SO,this)),k(SO,this,null))}function kO(){A(CO,this)!==null&&(this.domContext.clearTimeout(A(CO,this)),k(CO,this,null))}function AO(){O(TO,this,OO).call(this),O(TO,this,kO).call(this)}function jO(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}var MO=new WeakMap,NO=new WeakMap,PO=class e{static create(t){return new e(t,lO.get())}constructor(e,t){b(this,`opts`,void 0),b(this,`root`,void 0),b(this,`attachment`,void 0),b(this,`onInteractOutside`,e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!Ix(e.target))return;let t=e.target.closest(cO.selector(`trigger`));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Ix(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current==`string`){let t=document.querySelector(this.opts.customAnchor.current);if(t&&t.contains(e.target))return}}this.root.handleClose()}}),b(this,`onEscapeKeydown`,e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()}),D(this,MO,j(()=>({open:this.root.opts.open.current}))),D(this,NO,j(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ex(this.root.opts.open.current),...Dx(this.root.contentPresence.transitionStatus),[cO.content]:``,style:{pointerEvents:`auto`,contain:`layout style`},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}))),b(this,`popperProps`,{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}),this.opts=e,this.root=t,this.attachment=wx(this.opts.ref,e=>this.root.contentNode=e),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new QD({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){let t=e.target;Ix(t)&&XS(t)&&this.root.markInteraction()}onpointerenter(e){Rx(e)||this.root.cancelDelayedClose()}onpointerleave(e){Rx(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return L(A(MO,this))}set snippetProps(e){N(A(MO,this),e)}get props(){return L(A(NO,this))}set props(e){N(A(NO,this),e)}},FO=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`ref`,`id`,`forceMount`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`customAnchor`,`style`]),IO=z(`<div><div><!></div></div>`);function LO(e,t){let n=da();it(t,!0);let r=J(t,`ref`,15,null),i=J(t,`id`,19,()=>aS(n)),a=J(t,`forceMount`,3,!1),o=J(t,`onOpenAutoFocus`,3,iS),s=J(t,`onCloseAutoFocus`,3,iS),c=J(t,`onEscapeKeydown`,3,iS),l=J(t,`onInteractOutside`,3,iS),u=J(t,`trapFocus`,3,!0),d=J(t,`preventScroll`,3,!1),f=J(t,`customAnchor`,3,null),m=K(t,FO),h=PO.create({id:$(()=>i()),ref:$(()=>r(),e=>r(e)),onInteractOutside:$(()=>l()),onEscapeKeydown:$(()=>c()),customAnchor:$(()=>f())}),g=j(()=>ab(m,h.props)),_=j(()=>u()&&h.shouldTrapFocus);function v(e){h.shouldTrapFocus||e.preventDefault(),o()(e)}var y=ua(),b=Or(y),x=e=>{RD(e,q(()=>L(g),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},get id(){return i()},get trapFocus(){return L(_)},get preventScroll(){return d()},loop:!0,forceMount:!0,get customAnchor(){return f()},onOpenAutoFocus:v,get onCloseAutoFocus(){return s()},get shouldRender(){return h.shouldRender},popper:(e,n)=>{let r=()=>(n?.()).props,i=()=>(n?.()).wrapperProps,a=j(()=>ab(r(),{style:HE(`popover`)},{style:t.style}));var o=ua(),s=Or(o),c=e=>{var n=ua(),r=Or(n);{let e=j(()=>({props:L(a),wrapperProps:i(),...h.snippetProps}));za(r,()=>t.child,()=>L(e))}B(e,n)},l=e=>{var n=IO();Do(n,()=>({...i()}));var r=P(n);Do(r,()=>({...L(a)})),za(P(r),()=>t.children??p),E(r),E(n),B(e,n)};H(s,e=>{t.child?e(c):e(l,-1)}),B(e,o)},$$slots:{popper:!0}}))},S=e=>{ID(e,q(()=>L(g),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.root.opts.open.current},get id(){return i()},get trapFocus(){return L(_)},get preventScroll(){return d()},loop:!0,forceMount:!1,get customAnchor(){return f()},onOpenAutoFocus:v,get onCloseAutoFocus(){return s()},get shouldRender(){return h.shouldRender},popper:(e,n)=>{let r=()=>(n?.()).props,i=()=>(n?.()).wrapperProps,a=j(()=>ab(r(),{style:HE(`popover`)},{style:t.style}));var o=ua(),s=Or(o),c=e=>{var n=ua(),r=Or(n);{let e=j(()=>({props:L(a),wrapperProps:i(),...h.snippetProps}));za(r,()=>t.child,()=>L(e))}B(e,n)},l=e=>{var n=IO();Do(n,()=>({...i()}));var r=P(n);Do(r,()=>({...L(a)})),za(P(r),()=>t.children??p),E(r),E(n),B(e,n)};H(s,e=>{t.child?e(c):e(l,-1)}),B(e,o)},$$slots:{popper:!0}}))};H(b,e=>{a()?e(x):a()||e(S,1)}),B(e,y),at()}var RO=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`type`,`disabled`,`openOnHover`,`openDelay`,`closeDelay`]),zO=z(`<button><!></button>`);function BO(e,t){let n=da();it(t,!0);let r=J(t,`id`,19,()=>aS(n)),i=J(t,`ref`,15,null),a=J(t,`type`,3,`button`),o=J(t,`disabled`,3,!1),s=J(t,`openOnHover`,3,!1),c=J(t,`openDelay`,3,700),l=J(t,`closeDelay`,3,300),u=K(t,RO),d=DO.create({id:$(()=>r()),ref:$(()=>i(),e=>i(e)),disabled:$(()=>!!o()),openOnHover:$(()=>s()),openDelay:$(()=>c()),closeDelay:$(()=>l())}),f=j(()=>ab(u,d.props,{type:a()}));DD(e,{get id(){return r()},get ref(){return d.opts.ref},children:(e,n)=>{var r=ua(),i=Or(r),a=e=>{var n=ua();za(Or(n),()=>t.child,()=>({props:L(f)})),B(e,n)},o=e=>{var n=zO();Do(n,()=>({...L(f)})),za(P(n),()=>t.children??p),E(n),B(e,n)};H(i,e=>{t.child?e(a):e(o,-1)}),B(e,r)},$$slots:{default:!0}}),at()}function VO(e,t){it(t,!0);let n=J(t,`open`,15,!1),r=J(t,`onOpenChange`,3,iS),i=J(t,`onOpenChangeComplete`,3,iS);bO.create({open:$(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:$(()=>i())}),ED(e,{children:(e,n)=>{var r=ua();za(Or(r),()=>t.children??p),B(e,r)},$$slots:{default:!0}}),at()}var HO=z(`<!> `,1),UO=z(`<button type="button"> <!></button>`),WO=z(`<button type="button"> </button>`),GO=z(`<div role="group" aria-label="Presets"></div> <div class="mt-1 border-t border-line pt-2 px-2 pb-1"><div class="text-[11px] uppercase tracking-wide text-fg-subtle mb-1.5">Custom range</div> <label class="block text-[11px] text-fg-muted mb-1">From <input type="datetime-local" class="mt-0.5 w-full rounded border border-line bg-subtle px-1.5 py-1 text-xs text-fg focus:outline-none focus:border-accent"/></label> <label class="block text-[11px] text-fg-muted mb-2">To <input type="datetime-local" class="mt-0.5 w-full rounded border border-line bg-subtle px-1.5 py-1 text-xs text-fg focus:outline-none focus:border-accent"/></label> <div class="mb-2 border-t border-line pt-2"><div class="mb-1 text-[11px] text-fg-muted">Show times in</div> <div class="flex gap-1"></div> <div class="mt-1 text-[11px] text-fg-subtle"> </div></div> <button type="button">Apply</button></div>`,1),KO=z(`<!> <!>`,1);function qO(e,t){it(t,!0);let n=M(!1),r=j(()=>t.selection.type===`custom`?{start:t.selection.start,end:t.selection.end}:{start:Date.now()-9e5,end:Date.now()}),i=M(``),a=M(``);function o(e){N(n,e,!0),e&&(N(i,u(L(r).start),!0),N(a,u(L(r).end),!0))}function s(e){t.onChange({type:`preset`,preset:e}),N(n,!1)}function c(){let e=d(L(i)),r=d(L(a));e!==null&&r!==null&&(t.onChange({type:`custom`,start:e,end:r}),N(n,!1))}let l=j(()=>d(L(i))!==null&&d(L(a))!==null);function u(e){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}function d(e){if(!e)return null;let t=new Date(e).getTime();return Number.isFinite(t)?t:null}var f=ua();Ba(Or(f),()=>VO,(e,r)=>{r(e,{onOpenChange:o,get open(){return L(n)},set open(e){N(n,e,!0)},children:(e,n)=>{var r=KO(),o=Or(r);{let e=j(()=>Q(`inline-flex items-center gap-1.5 px-2 py-1 text-xs rounded border`,`border-line bg-surface text-fg-muted hover:text-fg hover:bg-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,t.class));Ba(o,()=>BO,(n,r)=>{r(n,{"aria-label":`Time window`,title:`Change the time window`,get class(){return L(e)},children:(e,n)=>{var r=HO(),i=Or(r);_p(i,{size:12});var a=F(i);I(e=>V(a,` ${e??``}`),[()=>Es(t.selection)]),B(e,r)},$$slots:{default:!0}})})}Ba(F(o,2),()=>mS,(e,n)=>{n(e,{children:(e,n)=>{var r=ua();Ba(Or(r),()=>LO,(e,n)=>{n(e,{sideOffset:6,align:`start`,class:`z-50 w-64 rounded-md border border-line bg-surface p-1 shadow-lg`,children:(e,n)=>{var r=GO(),o=Or(r);Na(o,21,()=>bs,e=>e.id,(e,n)=>{let r=j(()=>t.selection.type===`preset`&&t.selection.preset===L(n).id);var i=UO(),a=P(i),o=F(a),c=e=>{ap(e,{size:12,class:`text-accent`})};H(o,e=>{L(r)&&e(c)}),E(i),I(e=>{G(i,`aria-current`,L(r)?`true`:void 0),W(i,1,e),V(a,`${L(n).label??``} `)},[()=>U(Q(`flex w-full items-center justify-between rounded px-2 py-1.5 text-xs`,`text-fg hover:bg-hover focus-visible:outline-none focus-visible:bg-hover`,L(r)&&`bg-selected font-medium`))]),R(`click`,i,()=>s(L(n).id)),B(e,i)}),E(o);var u=F(o,2),d=F(P(u),2),f=F(P(d));So(f),E(d);var p=F(d,2),m=F(P(p));So(m),E(p);var h=F(p,2),g=F(P(h),2);Na(g,20,()=>[{id:`local`,label:`Local`},{id:`utc`,label:`UTC`}],e=>e.id,(e,t)=>{var n=WO(),r=P(n,!0);E(n),I(e=>{G(n,`aria-pressed`,Bu.value===t.id),W(n,1,e),V(r,t.label)},[()=>U(Q(`flex-1 rounded px-2 py-1 text-xs`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,Bu.value===t.id?`bg-accent text-white`:`border border-line text-fg-muted hover:text-fg`))]),R(`click`,n,()=>Bu.value=t.id),B(e,n)}),E(g);var _=F(g,2),v=P(_);E(_),E(h);var y=F(h,2);E(u),I((e,t)=>{V(v,`Currently ${e??``}`),y.disabled=!L(l),W(y,1,t)},[()=>yh(Bu.value),()=>U(Q(`w-full rounded px-2 py-1 text-xs font-medium`,`bg-accent text-white hover:opacity-90`,`disabled:opacity-40 disabled:cursor-not-allowed`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`))]),jo(f,()=>L(i),e=>N(i,e)),jo(m,()=>L(a),e=>N(a,e)),R(`click`,y,c),B(e,r)},$$slots:{default:!0}})}),B(e,r)},$$slots:{default:!0}})}),B(e,r)},$$slots:{default:!0}})}),B(e,f),at()}ta([`click`]);var JO=z(`<button type="button" aria-live="polite" title="Show the newest matches and follow new data again"><!> </button>`);function YO(e,t){it(t,!0);let n=j(()=>!t.live&&t.count>0),r=j(()=>t.count>999?`999+`:String(t.count));var i=ua(),a=Or(i),o=e=>{var n=JO(),i=P(n);qf(i,{size:12});var a=F(i);E(n),I(e=>{W(n,1,e),V(a,` ${L(r)??``} new`)},[()=>U(Q(`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium`,`bg-accent text-white shadow-sm hover:opacity-90 focus-visible:outline-none`,`focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1`,`transition-opacity`,t.class))]),R(`click`,n,function(...e){t.onResume?.apply(this,e)}),B(e,n)};H(a,e=>{L(n)&&e(o)}),B(e,i),at()}ta([`click`]);async function XO(e,t){try{let n=await t.fetch(`${t.baseUrl}/api/query/${e}/fields`,{signal:t.signal});if(!n.ok)return[];let r=await n.json();return Array.isArray(r.fields)?r.fields:[]}catch{return[]}}async function ZO(e,t,n){let r={query:t.query};t.window&&(r.window=t.window),t.limit!==void 0&&(r.limit=t.limit),t.cursor&&(r.cursor=t.cursor);let i;try{i=await n.fetch(e,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(r),signal:n.signal})}catch(e){return $O(e)?{status:`aborted`}:{status:`error`,message:e instanceof Error?`Network error: ${e.message}`:`Network error`}}let a;try{a=await i.json()}catch{return{status:`error`,message:`Unexpected response from ${n.baseUrl} (not JSON)`}}if(i.status===400){let e=a.errors;return e?.length?{status:`invalid`,errors:e}:{status:`error`,message:`Invalid query request`}}return i.status===403?{status:`error`,message:`Forbidden: the devtools server rejected this origin. Open the viewer from the same machine.`}:i.ok?{status:`ok`,payload:a}:{status:`error`,message:`Server error: ${a.error??i.statusText}`}}async function QO(e,t){let n=await ZO(`${t.baseUrl}/api/query/traces`,e,t);if(n.status!==`ok`)return n;let r=n.payload;return{status:`ok`,traces:r.traces??[],nextCursor:r.nextCursor??null}}function $O(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`}async function ek(e,t){let n=await ZO(`${t.baseUrl}/api/query/logs`,e,t);if(n.status!==`ok`)return n;let r=n.payload;return{status:`ok`,logs:r.logs??[],nextCursor:r.nextCursor??null}}async function tk(e,t){let n=await ZO(`${t.baseUrl}/api/query/errors`,e,t);return n.status===`ok`?{status:`ok`,errors:n.payload.errors??[]}:n}function nk(){return{reasons:{query:!1,scrolled:!1,selected:!1,window:!1},pending:0}}function rk(e){return!Object.values(e.reasons).some(Boolean)}function ik(e){return rk(e)?0:e.pending}function ak(e,t){switch(t.type){case`query-changed`:return ok(e,`query`,t.query.trim().length>0);case`scrolled`:return ok(e,`scrolled`,!t.atTop);case`row-selected`:return ok(e,`selected`,!0);case`row-deselected`:return ok(e,`selected`,!1);case`window-changed`:return ok(e,`window`,t.bounded);case`arrived`:return rk(e)?e:{...e,pending:Math.max(0,e.pending+t.count)};case`resumed`:return nk()}}function ok(e,t,n){if(e.reasons[t]===n)return e;let r={reasons:{...e.reasons,[t]:n},pending:e.pending};return rk(r)&&(r.pending=0),r}var sk={run:async(e,t)=>{let n=await QO(e,t);return n.status===`ok`?{status:`ok`,rows:n.traces,nextCursor:n.nextCursor}:n}},ck={run:async(e,t)=>{let n=await ek(e,t);return n.status===`ok`?{status:`ok`,rows:n.logs,nextCursor:n.nextCursor}:n}},lk=200,uk=100;function dk(e,t){let n=e.now??(()=>Date.now()),r=e.debounceMs??lk,i=e.pageSize??uk,a=new is(``),o=hl,s=new is([]),c=new is([]),l=new is(null),u=new is(!1),d=new is(!1),f=new is(null),p=new is(nk()),m=0,h=null,g=null;function _(e){p.value=ak(p.value,e)}async function v(r={}){let p=++m;h?.abort();let g=new AbortController;h=g,u.value=!0;let _=ws(o.value,n()),v=await t.run({query:a.value,window:As(_),limit:i,cursor:r.append?f.value??void 0:void 0},{fetch:e.client.fetch,baseUrl:typeof e.client.baseUrl==`function`?e.client.baseUrl():e.client.baseUrl,signal:g.signal});if(p===m)switch(u.value=!1,v.status){case`ok`:s.value=r.append?[...s.value,...v.rows]:v.rows,f.value=v.nextCursor,c.value=[],l.value=null,d.value=!0;return;case`invalid`:c.value=v.errors,l.value=null;return;case`error`:c.value=[],l.value=v.message;return;case`aborted`:return}}function y(){if(g&&clearTimeout(g),r<=0){v();return}g=setTimeout(()=>{g=null,v()},r)}return{text:a,window:o,results:s,errors:c,failure:l,loading:u,ready:d,nextCursor:f,tail:p,get live(){return rk(p.value)},get pending(){return ik(p.value)},setText(e){a.value=e,_({type:`query-changed`,query:e}),y()},submit(){g&&(clearTimeout(g),g=null),v()},refresh(){return g&&(clearTimeout(g),g=null),v()},setWindow(e){o.value=e,_({type:`window-changed`,bounded:!Ts(ws(e,n()))}),v()},setScrolledToTop(e){_({type:`scrolled`,atTop:e})},setSelected(e){_(e?{type:`row-selected`}:{type:`row-deselected`})},arrived(e){_({type:`arrived`,count:e}),rk(p.value)&&v()},resume(){_({type:`resumed`}),a.value=``,v()},loadMore(){!f.value||u.value||v({append:!0})},removeRows(e){s.value=s.value.filter(t=>!e(t))},dispose(){g&&clearTimeout(g),h?.abort()}}}function fk(e){return dk(e,sk)}function pk(e){return dk(e,ck)}function mk(e,t){let n=t,r=!0;if(typeof IntersectionObserver>`u`)return{update:e=>{n=e}};let i=new IntersectionObserver(e=>{let t=e[e.length-1];if(t){if(!t.isIntersecting){r=!0;return}!r||n.disabled||(r=!1,n.onReach())}},{root:n.root??null,rootMargin:n.rootMargin??`200px`});return i.observe(e),{update(e){let t=n.disabled;n=e,t&&!e.disabled&&(r=!0)},destroy(){i.disconnect()}}}function hk(e){let t=e.target;return/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)||t.isContentEditable}function gk(e,t){return e>t-1?t-1:e}function _k(e,t,n,r){return n===0?e:e<0?t>0?0:r===`last`?n-1:0:Math.min(Math.max(e+t,0),n-1)}function vk(e){let{count:t,onActivate:n,scrollToIndex:r,fromUnsetUp:i=`first`}=e,a=M(-1),o=j(()=>gk(L(a),t())),s=e=>{t()!==0&&(N(a,_k(L(o),e,t(),i),!0),r?.(L(a)))};return{get cursor(){return L(o)},set cursor(e){N(a,e,!0)},onKeyDown:e=>{hk(e)||(e.key===`ArrowDown`||e.key===`j`?(e.preventDefault(),s(1)):e.key===`ArrowUp`||e.key===`k`?(e.preventDefault(),s(-1)):e.key===`Enter`&&L(o)>=0&&L(o)<t()&&(e.preventDefault(),n(L(o))))}}}var yk=z(`<button><span class="truncate"> </span> <!></button>`),bk=z(`<span class="flex-shrink-0 px-1.5 py-0.5 rounded bg-warning-bg text-warning text-[10px] font-medium uppercase tracking-wide" title="Partial trace: the root span has not arrived, so this row shows the highest span received and a duration covering only that part.">partial</span>`),xk=z(`<div role="option" tabindex="-1" data-focus-inset=""><label class="cursor-pointer flex items-center"><input type="checkbox" class="w-3.5 h-3.5 rounded border-line text-accent"/></label> <button type="button"> </button> <div class="flex items-center gap-1.5 min-w-0"><!> <span class="truncate text-sm text-fg"> </span> <!> <!></div> <span class="font-mono text-xs text-fg-muted text-right tabular-nums"> </span> <span class="trace-col-spans font-mono text-xs text-fg-subtle text-right tabular-nums"> </span> <span class="trace-col-time font-mono text-[11px] text-fg-subtle truncate"> </span> <span> </span> <!></div>`),Sk=z(`<span class="text-xs font-normal text-accent"> </span>`),Ck=z(`<div class="flex items-center gap-1 mr-2 px-2 border-r border-line"><button class="flex items-center gap-1 px-2 py-1 text-xs rounded bg-accent/10 text-accent hover:bg-accent/20 transition-colors" title="Export selected traces"><!> </button> <button class="flex items-center gap-1 px-2 py-1 text-xs rounded bg-danger-bg text-danger hover:bg-danger-bg/80 transition-colors" title="Delete selected traces"><!> Delete</button></div>`),wk=z(`<button class="px-2 py-1 text-xs rounded text-fg-subtle hover:bg-hover transition-colors" title="Drop buffered traces received while paused">Drop buffer</button>`),Tk=z(`<button class="p-1.5 hover:bg-hover rounded transition-colors" title="Export all traces as JSON"><!></button>`),Ek=z(`<div class="text-center text-fg-subtle text-sm py-12">Loading traces…</div>`),Dk=z(`<div class="mx-auto flex max-w-2xl flex-col items-center gap-3 px-6 py-12 text-center text-sm text-fg-subtle"><p class="font-medium text-fg">No traces yet — send telemetry to get started</p> <p class="max-w-lg text-xs text-fg-muted">Both standard OTLP transports are ready. Existing SDK defaults
12
- usually work unchanged.</p> <div class="grid w-full gap-2 text-left md:grid-cols-2"><div class="rounded-md border border-line bg-subtle p-3"><div class="mb-1 text-[11px] font-semibold uppercase tracking-wide">OTLP/gRPC</div> <code class="break-all text-xs text-fg">OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317</code></div> <div class="rounded-md border border-line bg-subtle p-3"><div class="mb-1 text-[11px] font-semibold uppercase tracking-wide">OTLP/HTTP</div> <code class="break-all text-xs text-fg">OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318</code></div></div></div>`),Ok=z(`<div class="text-center text-fg-subtle text-sm py-12">No traces match the current filter.</div>`),kk=z(`<div class="px-4 py-3 text-center text-xs text-fg-subtle"> </div>`),Ak=z(`<div><div class="trace-grid sticky top-0 z-10 px-4 py-2 border-b border-line bg-subtle text-[11px] font-semibold uppercase tracking-wide text-fg-subtle"><label class="cursor-pointer flex items-center"><input type="checkbox" class="w-3.5 h-3.5 rounded border-line text-accent"/></label> <!> <!> <!> <!> <!> <!> <span></span></div> <!> <!></div>`),jk=z(`<div class="flex flex-col h-full"><div class="px-4 py-3 border-b border-line flex items-center justify-between gap-2"><h3 class="text-sm font-semibold flex items-center gap-2 text-fg"><!> <!></h3> <div class="flex items-center gap-1"><!> <button><!> </button> <!> <button class="p-1.5 hover:bg-hover rounded transition-colors" title="Import traces from file"><!></button> <!> <button class="p-1.5 hover:bg-hover rounded transition-colors" title="Keyboard shortcuts (?)"><!></button></div></div> <div class="px-4 py-2 border-b border-line flex items-center gap-2"><!> <!> <!> <select class="text-xs border border-line rounded px-1.5 py-1 bg-surface text-fg-muted"><option>All</option><option>Errors</option><option>OK</option></select> <!> <div class="flex items-center text-xs text-fg-subtle flex-shrink-0" title="Only show traces at least this slow"><span class="mr-1">≥</span> <input type="number" placeholder="0" class="w-14 px-1 py-1 rounded border border-line bg-surface text-fg-muted focus:outline-none"/> <span class="ml-1">ms</span></div></div> <div class="trace-list-container flex-1 overflow-auto focus:outline-none" role="listbox" aria-label="Traces" tabindex="0"><!></div> <!></div>`);function Mk(e,t){it(t,!0);let n=(e,t=p,n=p,r=p,i=p)=>{let a=j(()=>L(s).key===n());var o=yk(),c=P(o),l=P(c,!0);E(c);var u=F(c,2),d=e=>{var t=ua(),n=Or(t),r=e=>{qf(e,{size:11,class:`flex-shrink-0`})},i=e=>{Gf(e,{size:11,class:`flex-shrink-0`})};H(n,e=>{L(s).dir===`asc`?e(r):e(i,-1)}),B(e,t)};H(u,e=>{L(a)&&e(d)}),E(o),I((e,n)=>{W(o,1,e),G(o,`title`,n),V(l,t())},[()=>U(Q(`flex items-center gap-1 min-w-0 transition-colors hover:text-fg-muted`,L(a)?`text-fg-muted`:`text-fg-subtle`,r()===`end`&&`justify-end`,i())),()=>`Sort by ${t().toLowerCase()}`]),R(`click`,o,()=>Hl(n())),B(e,o)},r=(e,t=p,n=p,r=p)=>{let i=j(()=>t().status===`ERROR`),a=j(()=>$m(t().service||`unknown`)),o=j(()=>se.cursor===r());var s=xk(),c=j(()=>ih(()=>ju(t().traceId))),l=P(s),u=P(l);So(u),E(l);var d=F(l,2),f=P(d,!0);E(d);var m=F(d,2),h=P(m),g=e=>{pp(e,{size:13,class:`text-danger flex-shrink-0`})};H(h,e=>{L(i)&&e(g)});var v=F(h,2),y=P(v,!0);E(v);var b=F(v,2),x=e=>{B(e,bk())};H(b,e=>{t().partial&&e(x)}),Ig(F(b,2),{get value(){return t().traceId},label:`Copy trace ID`,class:`opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity`}),E(m);var S=F(m,2),C=P(S,!0);E(S);var w=F(S,2),ee=P(w,!0);E(w);var te=F(w,2),ne=P(te,!0);E(te);var re=F(te,2),ie=P(re,!0);E(re),dp(F(re,2),{size:15,class:`text-fg-subtle justify-self-end`}),E(s),I((e,i,c,l,p)=>{W(s,1,e),G(s,`aria-selected`,L(o)),G(s,`data-row-index`,r()),wo(u,n()),W(d,1,i),co(d,`background-color: ${L(a).fill??``}; color: ${L(a).stroke??``};`),G(d,`title`,`Filter by ${t().service||`unknown`}`),V(f,t().service||`unknown`),G(v,`title`,t().rootSpan.name),V(y,t().rootSpan.name||`unknown`),V(C,c),V(ee,t().spans.length),V(ne,l),W(re,1,p),V(ie,t().status)},[()=>U(Q(`group trace-grid px-4 py-2 border-b border-line-subtle cursor-pointer transition-colors`,`row-virtual`,n()?`bg-accent/10`:L(i)?`bg-danger-bg/40 hover:bg-danger-bg/70`:`hover:bg-hover`,L(o)&&`ring-1 ring-inset ring-accent bg-accent/10`)),()=>U(Q(`text-[11px] font-medium px-2 py-0.5 rounded truncate text-left transition-shadow`,L(_).has(t().service||`unknown`)&&`ring-1 ring-inset ring-accent`)),()=>rd(t().duration),()=>id(t().startTime),()=>U(Q(`text-[10px] font-semibold px-1.5 py-0.5 rounded justify-self-start`,L(i)?`bg-danger-bg text-danger`:t().status===`OK`?`bg-success-bg text-success`:`bg-hover text-fg-muted`))]),R(`click`,s,()=>{se.cursor=r(),ju(t().traceId)}),R(`keydown`,s,function(...e){L(c)?.apply(this,e)}),R(`click`,u,e=>e.stopPropagation()),R(`change`,u,()=>lu(t().traceId)),R(`click`,d,e=>{e.stopPropagation(),Rl(t().service||`unknown`)}),B(e,s)};function i(e,t,n,r,i){return n===`error`&&e.status!==`ERROR`||n===`ok`&&e.status===`ERROR`||r>0&&e.duration<r||i.size>0&&!i.has(e.service||`unknown`)?!1:Sg(t.toLowerCase(),[e.service,e.rootSpan?.name,e.traceId,e.correlationId,...e.spans.map(e=>e.name)])}let a=j(()=>ql.value),o=j(()=>yl.value),s=j(()=>Nl.value),c=j(()=>su.value),l=j(()=>Tl.value),u=j(()=>Ol.value),d=j(()=>cu.value),f=j(()=>pu.value),m=j(()=>Pl.value),h=j(()=>Fl.value),g=j(()=>Il.value),_=j(()=>Ll.value),v=j(()=>{let e=new Map;for(let t of L(a)){let n=t.service||`unknown`;e.set(n,(e.get(n)??0)+1)}return{key:`service`,label:`Service`,options:[...e.entries()].map(([e,t])=>({value:e,count:t})),selected:L(_),onToggle:Rl}}),y=j(()=>L(v).options.length>1),b=M(null),x=M(!1),S=j(()=>L(f)>0);Rr(()=>{if(L(c))return;let e=e=>{if(!(el.value||L(x))){if(e.key===`/`&&!rh()){e.preventDefault(),L(b)?.focus();return}e.key===`Escape`&&(L(S)?du():document.activeElement===L(b)&&(Pl.value=``,C.setText(``))),e.key===`a`&&(e.metaKey||e.ctrlKey)&&!rh()&&(e.preventDefault(),uu())}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let C=fk({client:{fetch:globalThis.fetch.bind(globalThis),baseUrl:w}});function w(){let e=ml.value;return(e?Qo(e):null)??globalThis.location.origin}Rr(()=>()=>C.dispose());let ee=M(null),te=M(_r([]));Rr(()=>{let e=w();e!==L(ee)&&(N(ee,e,!0),XO(`traces`,{fetch:globalThis.fetch.bind(globalThis),baseUrl:e}).then(e=>N(te,e,!0)),!C.ready.value&&Pl.value?C.setText(Pl.value):C.refresh())});let ne=M(0);Rr(()=>{let e=L(a).length;e>L(ne)&&C.arrived(e-L(ne)),N(ne,e,!0)}),Rr(()=>{C.setSelected(L(c)!=null)});let re=j(()=>C.results.value),ie=j(()=>{let e=C.ready.value&&C.failure.value===null,t=L(o);return e&&(t=L(m).length>0?L(re):ae(L(re),L(o))),t.filter(t=>i(t,e?``:L(m),L(h),L(g),L(_)))});function ae(e,t){let n=new Set(e.map(e=>e.traceId));return[...e,...t.filter(e=>!n.has(e.traceId))]}let oe=M(void 0),se=vk({count:()=>L(ie).length,onActivate:e=>{let t=L(ie)[e];t&&ju(t.traceId)},scrollToIndex:e=>queueMicrotask(()=>{L(oe)?.querySelector(`[data-row-index="${e}"]`)?.scrollIntoView({block:`nearest`})})});function ce(){let e=L(ie).filter(e=>L(d).has(e.traceId));e.length>0&&Sv(e)}async function le(){let e=[...L(d)];if(!(e.length===0||!globalThis.confirm(`Delete ${e.length} stored trace${e.length===1?``:`s`}?`)))try{await fetch(`${w()}/api/traces`,{method:`DELETE`,headers:{"content-type":`application/json`},body:JSON.stringify({traceIds:e})})}catch{}finally{let t=new Set(e);C.removeRows(e=>t.has(e.traceId)),fu()}}let ue=j(()=>L(m).length>0||L(h)!==`all`||L(g)>0||L(_).size>0),T=j(()=>L(ie).length>0&&L(ie).every(e=>L(d).has(e.traceId)));var de=ua(),fe=Or(de),pe=e=>{Hv(e,{get trace(){return L(c)}})},me=e=>{var t=jk(),i=P(t),o=P(i),s=P(o);Cp(s,{size:16});var c=F(s),p=F(c),m=e=>{var t=Sk(),n=P(t);E(t),I(()=>V(n,`(${L(f)??``} selected)`)),B(e,t)};H(p,e=>{L(S)&&e(m)}),E(o);var _=F(o,2),w=P(_),ee=e=>{var t=Ck(),n=P(t),r=P(n);Tp(r,{size:12});var i=F(r);E(n);var a=F(n,2);jm(P(a),{size:12}),Ke(),E(a),E(t),I(()=>V(i,` Export (${L(f)??``})`)),R(`click`,n,ce),R(`click`,a,le),B(e,t)};H(w,e=>{L(S)&&e(ee)});var ne=F(w,2),re=P(ne),ae=e=>{hm(e,{size:12})},de=e=>{dm(e,{size:12})};H(re,e=>{L(l)?e(ae):e(de,-1)});var fe=F(re);E(ne);var pe=F(ne,2),me=e=>{var t=wk();R(`click`,t,function(...e){Eu?.apply(this,e)}),B(e,t)};H(pe,e=>{L(l)&&L(u)>0&&e(me)});var he=F(pe,2);Fm(P(he),{size:14,class:`text-fg-subtle`}),E(he);var ge=F(he,2),_e=e=>{var t=Tk();Tp(P(t),{size:14,class:`text-fg-subtle`}),E(t),R(`click`,t,()=>Sv(L(ie))),B(e,t)};H(ge,e=>{L(ie).length>0&&e(_e)});var ve=F(ge,2);hp(P(ve),{size:14,class:`text-fg-subtle`}),E(ve),E(_),E(i);var ye=F(i,2),be=P(ye);hy(be,{get value(){return C.text.value},onInput:e=>{C.setText(e),Pl.value=e},onSubmit:()=>C.submit(),get serverErrors(){return C.errors.value},get fields(){return L(te)},class:`flex-1`,get ref(){return L(b)},set ref(e){N(b,e,!0)}});var xe=F(be,2);qO(xe,{get selection(){return C.window.value},onChange:e=>C.setWindow(e)});var Se=F(xe,2);YO(Se,{get count(){return C.pending},get live(){return C.live},onResume:()=>{Pl.value=``,C.resume()}});var Ce=F(Se,2),we=P(Ce);we.value=we.__value=`all`;var Te=F(we);Te.value=Te.__value=`error`;var Ee=F(Te);Ee.value=Ee.__value=`ok`,E(Ce);var De;uo(Ce);var Oe=F(Ce,2),ke=e=>{{let t=j(()=>[L(v)]);ey(e,{get facets(){return L(t)},get onClearAll(){return zl}})}};H(Oe,e=>{L(y)&&e(ke)});var Ae=F(Oe,2),je=F(P(Ae),2);So(je),G(je,`min`,0),G(je,`step`,50),Ke(2),E(Ae),E(ye);var Me=F(ye,2),Ne=P(Me),Pe=e=>{B(e,Ek())},Fe=e=>{B(e,Dk())},Ie=e=>{B(e,Ok())},Le=e=>{var t=Ak(),i=P(t),a=P(i),o=P(a);So(o),E(a);var s=F(a,2);n(s,()=>`Service`,()=>`service`);var c=F(s,2);n(c,()=>`Operation`,()=>`name`);var l=F(c,2);n(l,()=>`Duration`,()=>`duration`,()=>`end`);var u=F(l,2);n(u,()=>`Spans`,()=>`spans`,()=>`end`,()=>`trace-col-spans`);var f=F(u,2);n(f,()=>`Time`,()=>`time`,()=>void 0,()=>`trace-col-time`);var p=F(f,2);n(p,()=>`Status`,()=>`status`),Ke(2),E(i);var m=F(i,2);Na(m,19,()=>L(ie),e=>e.traceId,(e,t,n)=>{{let i=j(()=>L(d).has(L(t).traceId));r(e,()=>L(t),()=>L(i),()=>L(n))}});var h=F(m,2),g=e=>{var t=kk(),n=P(t,!0);E(t),Qa(t,(e,t)=>mk?.(e,t),()=>({onReach:()=>C.loadMore(),disabled:C.loading.value})),I(()=>V(n,C.loading.value?`Loading…`:`Scroll for more`)),B(e,t)};H(h,e=>{C.nextCursor.value&&e(g)}),E(t),I(()=>{G(a,`title`,L(T)?`Clear selection`:`Select all`),wo(o,L(T))}),R(`click`,o,e=>e.stopPropagation()),R(`change`,o,()=>L(T)?du():uu()),B(e,t)};H(Ne,e=>{C.loading.value&&!C.ready.value&&L(a).length===0?e(Pe):L(ie).length===0&&!L(ue)?e(Fe,1):L(ie).length===0?e(Ie,2):e(Le,-1)}),E(Me),Ho(Me,e=>N(oe,e),()=>L(oe));var Re=F(Me,2),ze=e=>{fh(e,{onclose:()=>N(x,!1),onimport:async e=>{try{let t=Dv(await Av(e));return t.success&&t.traces.length>0?(zu(t.traces),{imported:t.traces.length,errors:[],warnings:t.warnings}):{imported:0,errors:t.errors,warnings:t.warnings}}catch(e){return{imported:0,errors:[String(e)],warnings:[]}}}})};H(Re,e=>{L(x)&&e(ze)}),E(t),I(e=>{V(c,` Traces (${(L(ue)?`${L(ie).length} of ${L(a).length}`:L(a).length)??``}) `),W(ne,1,e),G(ne,`title`,L(l)?`Resume live tail`:`Pause live tail`),V(fe,` ${L(l)?`Resume${L(u)>0?` (+${L(u)})`:``}`:`Pause`}`),De!==(De=L(h))&&(Ce.value=(Ce.__value=L(h))??``,lo(Ce,L(h))),Co(je,L(g)||``)},[()=>U(Q(`flex items-center gap-1 px-2 py-1 text-xs rounded transition-colors`,L(l)?`bg-warning-bg text-warning hover:bg-warning-bg/80`:`hover:bg-hover text-fg-muted`))]),R(`click`,ne,function(...e){Tu?.apply(this,e)}),R(`click`,he,()=>N(x,!0)),R(`click`,ve,()=>tl(th)),R(`change`,Ce,e=>Fl.value=e.currentTarget.value),R(`input`,je,e=>Il.value=Number(e.currentTarget.value)||0),R(`keydown`,Me,function(...e){se.onKeyDown?.apply(this,e)}),B(e,t)};H(fe,e=>{L(c)?e(pe):e(me,-1)}),B(e,de),at()}ta([`click`,`keydown`,`change`,`input`]);var Nk=(e,t=p,n=p)=>{var r=Fk(),i=P(r),a=P(i,!0);E(i);var o=F(i,2),s=P(o,!0);E(o),E(r),I(()=>{V(a,t()),V(s,n())}),B(e,r)},Pk=(e,t=p,n=p,r=p)=>{var i=ua(),a=Or(i),o=e=>{var i=Ik(),a=P(i),o=P(a,!0);E(a);var s=F(a,2),c=P(s,!0);E(s),E(i),I(e=>{G(i,`title`,e),V(o,t()),V(c,n())},[()=>`View ${t().toLowerCase()} in the ${r()} tab`]),R(`click`,i,()=>Au(r())),B(e,i)},s=e=>{Nk(e,t,n)};H(a,e=>{n()>0?e(o):e(s,-1)}),B(e,i)},Fk=z(`<div><div class="text-[11px] uppercase tracking-wide text-fg-subtle"> </div> <div class="text-sm text-fg"> </div></div>`),Ik=z(`<button type="button" class="group/stat text-left rounded -m-1 p-1 hover:bg-hover transition-colors"><div class="text-[11px] uppercase tracking-wide text-fg-subtle"> </div> <div class="text-sm text-accent group-hover/stat:underline"> </div></button>`),Lk=z(`<div class="border border-line rounded-md p-3 bg-surface"><div class="flex items-start justify-between gap-2 mb-2"><div><div class="text-sm font-medium text-fg"> </div> <div class="text-xs text-fg-subtle uppercase tracking-wide"> </div></div> <span> </span></div> <div class="grid grid-cols-2 gap-2 text-xs text-fg-muted sm:grid-cols-5"><!> <!> <!> <!> <!></div></div>`),Rk=z(`<option> </option>`),zk=z(`<div class="text-center text-fg-subtle text-sm py-12">No resources derived yet. Send traces or logs with resource metadata.</div>`),Bk=z(`<div class="space-y-2"></div>`),Vk=z(`<div class="flex flex-col h-full p-4"><div class="flex flex-col gap-3 mb-4 pb-3 border-b border-line"><div class="flex items-center justify-between gap-2"><h3 class="text-sm font-semibold flex items-center gap-2 text-fg"><!> </h3></div> <div class="flex flex-wrap gap-2"><input type="search" placeholder="Filter resources" class="px-3 py-2 text-xs border border-line rounded-md min-w-[180px]"/> <select class="px-3 py-2 text-xs border border-line rounded-md bg-surface"><option>All types</option><!></select></div></div> <div class="flex-1 overflow-auto"><!></div></div>`);function Hk(e,t){it(t,!0);let n=(e,t=p)=>{var n=Lk(),r=P(n),a=P(r),o=P(a),s=P(o,!0);E(o);var c=F(o,2),l=P(c,!0);E(c),E(a);var u=F(a,2),d=P(u,!0);E(u),E(r);var f=F(r,2),m=P(f);Nk(m,()=>`Requests`,()=>t().requestCount);var h=F(m,2);Pk(h,()=>`Errors`,()=>t().errorCount,()=>`errors`);var g=F(h,2);Pk(g,()=>`Traces`,()=>t().traceCount,()=>`traces`);var _=F(g,2);Pk(_,()=>`Logs`,()=>t().logCount,()=>`logs`);var v=F(_,2);{let e=j(()=>t().lastSeen?id(t().lastSeen):`n/a`);Nk(v,()=>`Last Seen`,()=>L(e))}E(f),E(n),I(e=>{V(s,t().name),V(l,t().type),W(u,1,e),V(d,t().health)},[()=>U(Q(`px-2 py-1 rounded border text-[11px] font-medium capitalize`,i(t().health)))]),B(e,n)},r=[`service`,`database`,`cache`,`messaging`,`external`,`unknown`];function i(e){switch(e){case`healthy`:return`bg-success-bg text-success border-success-border`;case`degraded`:return`bg-warning-bg text-warning border-warning-border`;case`unhealthy`:return`bg-danger-bg text-danger border-danger-border`;default:return`bg-subtle text-fg-muted border-line`}}let a=j(()=>Ql.value),o=M(``),s=M(`all`),c=j(()=>{let e=L(o).trim().toLowerCase();return L(a).filter(t=>(L(s)===`all`||t.type===L(s))&&Sg(e,[t.name]))});var l=Vk(),u=P(l),d=P(u),f=P(d),m=P(f);Zf(m,{size:16});var h=F(m);E(f),E(d);var g=F(d,2),_=P(g);So(_);var v=F(_,2),y=P(v);y.value=y.__value=`all`,Na(F(y),16,()=>r,e=>e,(e,t)=>{var n=Rk(),r=P(n,!0);E(n);var i={};I(()=>{V(r,t),i!==(i=t)&&(n.value=(n.__value=t)??``)}),B(e,n)}),E(v);var b;uo(v),E(g),E(u);var x=F(u,2),S=P(x),C=e=>{B(e,zk())},w=e=>{var t=Bk();Na(t,21,()=>L(c),e=>e.name,(e,t)=>{n(e,()=>L(t))}),E(t),B(e,t)};H(S,e=>{L(c).length===0?e(C):e(w,-1)}),E(x),E(l),I(()=>{V(h,` Resources (${L(a).length??``})`),Co(_,L(o)),b!==(b=L(s))&&(v.value=(v.__value=L(s))??``,lo(v,L(s)))}),R(`input`,_,e=>N(o,e.currentTarget.value,!0)),R(`change`,v,e=>N(s,e.currentTarget.value,!0)),B(e,l),at()}ta([`click`,`input`,`change`]);function Uk(e){let t=e.severityNumber,n=(e.severityText??``).toUpperCase();return n===`ERROR`||t!==void 0&&t>=17?`error`:n===`WARN`||n===`WARNING`||t!==void 0&&t>=13?`warn`:`info`}function Wk(e){if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Gk(e){try{return JSON.stringify({body:e.body,severity:e.severityText??null,severityNumber:e.severityNumber??null,timestamp:e.timestamp,traceId:e.traceId??null,attributes:e.attributes??{}},null,2)}catch{return Wk(e.body)}}function Kk(e,t,n){if(n!==`all`){let t=Uk(e);if(n===`error`&&t!==`error`||n===`warn`&&t!==`warn`&&t!==`error`||n===`info`&&t!==`info`)return!1}return Sg(t.toLowerCase(),[Wk(e.body),e.severityText,e.resourceName,e.traceId])}function qk(e){let t=Uk(e);return t===`error`?`text-danger`:t===`warn`?`text-warning`:`text-fg-subtle`}function Jk(e){let t=Uk(e);return t===`error`?`bg-danger`:t===`warn`?`bg-warning`:`bg-line`}function Yk(e){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Xk(e){try{return JSON.stringify(e.attributes??{},null,2)}catch{return`{}`}}var Zk=z(`<span class="flex-shrink-0 text-fg-subtle truncate max-w-[10rem]"> </span>`),Qk=z(`<button type="button" title="Go to trace" aria-label="Go to trace" class="flex-shrink-0 inline-flex items-center justify-center p-1 rounded text-fg-subtle hover:text-fg hover:bg-hover opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity"><!></button>`),$k=z(`<div class="font-mono text-xs break-words whitespace-pre-wrap pr-6"> </div>`),eA=z(`<pre class="font-mono text-[11px] text-fg-muted whitespace-pre-wrap break-words pr-6"> </pre>`),tA=z(`<div class="flex items-center gap-1"><button type="button" class="inline-flex items-center gap-1 text-xs text-fg-muted hover:underline"><!> Go to trace</button> <!></div>`),nA=z(`<div class="pl-3 pr-2 pb-2 space-y-2"><!> <!> <!></div>`),rA=z(`<div class="group relative flex flex-col border-b border-line-subtle hover:bg-hover"><span aria-hidden="true"></span> <div class="flex items-center gap-2 pl-3 pr-2 py-1 text-xs"><button type="button" class="flex flex-1 items-center gap-2 min-w-0 text-left"><span class="font-mono tabular-nums text-fg-subtle flex-shrink-0"> </span> <span> </span> <span class="font-mono text-fg truncate min-w-0 flex-1"> </span> <!></button> <!> <!></div> <!></div>`),iA=z(`<button class="px-2 py-1 text-xs rounded text-fg-subtle hover:bg-hover transition-colors" title="Drop buffered logs received while paused">Drop buffer</button>`),aA=z(`<div class="text-center text-fg-subtle text-sm py-12">Loading logs…</div>`),oA=z(`<div class="text-center text-fg-subtle text-sm py-12">No logs yet. Send logs via AutotelLogExporter or POST /ingest/logs.</div>`),sA=z(`<div class="text-center text-fg-subtle text-sm py-12">No logs match the current filter.</div>`),cA=z(`<div class="px-4 py-3 text-center text-xs text-fg-subtle"> </div>`),lA=z(`<!> <!>`,1),uA=z(`<div class="flex flex-col h-full"><div class="px-4 py-3 border-b border-line flex items-center justify-between gap-2"><h3 class="text-sm font-semibold flex items-center gap-2 text-fg"><!> </h3> <div class="flex items-center gap-1"><button><!> </button> <!></div></div> <div class="px-4 py-2 border-b border-line flex items-center gap-2"><!> <!> <!> <select class="text-xs border border-line rounded px-1.5 py-1 bg-surface text-fg-muted"><option>All</option><option>Errors</option><option>Warn+</option><option>Info</option></select></div> <div class="flex-1 overflow-auto space-y-0"><!></div></div>`);function dA(e,t){it(t,!0);let n=(e,t=p)=>{let n=j(()=>Wk(t().body)),r=j(()=>qk(t())),i=j(()=>Jk(t())),a=j(()=>L(c).has(t().id));var o=rA(),s=P(o),u=F(s,2),d=P(u),f=P(d),m=P(f,!0);E(f);var h=F(f,2),g=P(h,!0);E(h);var _=F(h,2),v=P(_,!0);E(_);var b=F(_,2),x=e=>{var n=Zk(),r=P(n,!0);E(n),I(()=>V(r,t().resourceName)),B(e,n)};H(b,e=>{t().resourceName&&e(x)}),E(d);var S=F(d,2),C=e=>{var n=Qk();qp(P(n),{size:12}),E(n),R(`click`,n,()=>y(t())),B(e,n)};H(S,e=>{t().traceId&&e(C)});var w=F(S,2);{let e=j(()=>Gk(t()));Ig(w,{get value(){return L(e)},label:`Copy log as JSON`,class:`flex-shrink-0 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity`})}E(u);var ee=F(u,2),te=e=>{var r=nA(),i=P(r);vg(i,{get content(){return L(n)},children:(e,t)=>{var r=$k(),i=P(r,!0);E(r),I(()=>V(i,L(n))),B(e,r)},$$slots:{default:!0}});var a=F(i,2),o=e=>{{let n=j(()=>Xk(t()));vg(e,{get content(){return L(n)},children:(e,n)=>{var r=eA(),i=P(r,!0);E(r),I(e=>V(i,e),[()=>Xk(t())]),B(e,r)},$$slots:{default:!0}})}},s=j(()=>t().attributes&&Object.keys(t().attributes).length>0);H(a,e=>{L(s)&&e(o)});var c=F(a,2),l=e=>{var n=tA(),r=P(n);qp(P(r),{size:12}),Ke(),E(r),Ig(F(r,2),{get value(){return t().traceId},label:`Copy trace ID`}),E(n),R(`click`,r,()=>y(t())),B(e,n)};H(c,e=>{t().traceId&&e(l)}),E(r),B(e,r)};H(ee,e=>{L(a)&&e(te)}),E(o),I((e,r,i)=>{W(s,1,e),G(d,`aria-expanded`,L(a)),G(d,`title`,L(a)?`Collapse log`:`Expand log`),V(m,r),W(h,1,i),V(g,t().severityText??`LOG`),V(v,L(n))},[()=>U(Q(`absolute inset-y-0 left-0 w-0.5`,L(i))),()=>Yk(t().timestamp),()=>U(Q(`flex-shrink-0 font-medium uppercase tracking-wide text-[10px]`,L(r)))]),R(`click`,d,()=>l(t().id)),B(e,o)},r=j(()=>Jl.value),i=j(()=>Tl.value),a=j(()=>kl.value),o=M(``),s=M(`all`),c=M(_r(new Set));function l(e){let t=new Set(L(c));t.has(e)?t.delete(e):t.add(e),N(c,t,!0)}let u=pk({client:{fetch:globalThis.fetch.bind(globalThis),baseUrl:()=>(ml.value?Qo(ml.value):null)??globalThis.location.origin}});Rr(()=>()=>u.dispose());let d=M(null),f=M(_r([]));Rr(()=>{let e=(ml.value?Qo(ml.value):null)??globalThis.location.origin;e!==L(d)&&(N(d,e,!0),XO(`logs`,{fetch:globalThis.fetch.bind(globalThis),baseUrl:e}).then(e=>N(f,e,!0)),u.refresh())});let m=M(0);Rr(()=>{let e=L(r).length;e>L(m)&&u.arrived(e-L(m)),N(m,e,!0)});let h=j(()=>u.results.value),g=j(()=>{let e=u.ready.value&&u.failure.value===null,t=L(r);return e&&(t=L(o).length>0?L(h):_(L(h),L(r))),t.filter(t=>Kk(t,e?``:L(o),L(s)))});function _(e,t){let n=new Set(e.map(e=>e.id));return[...e,...t.filter(e=>!n.has(e.id))]}let v=j(()=>L(o).length>0||L(s)!==`all`);function y(e){e.traceId&&(ju(e.traceId),Au(`traces`))}var b=uA(),x=P(b),S=P(x),C=P(S);kp(C,{size:16});var w=F(C);E(S);var ee=F(S,2),te=P(ee),ne=P(te),re=e=>{hm(e,{size:12})},ie=e=>{dm(e,{size:12})};H(ne,e=>{L(i)?e(re):e(ie,-1)});var ae=F(ne);E(te);var oe=F(te,2),se=e=>{var t=iA();R(`click`,t,function(...e){Eu?.apply(this,e)}),B(e,t)};H(oe,e=>{L(i)&&L(a)>0&&e(se)}),E(ee),E(x);var ce=F(x,2),le=P(ce);hy(le,{get value(){return u.text.value},onInput:e=>{u.setText(e),N(o,e,!0)},onSubmit:()=>u.submit(),get serverErrors(){return u.errors.value},get fields(){return L(f)},placeholder:`Filter — e.g. severity_number >= 17 AND service = api`,class:`flex-1`});var ue=F(le,2);qO(ue,{get selection(){return u.window.value},onChange:e=>u.setWindow(e)});var T=F(ue,2);YO(T,{get count(){return u.pending},get live(){return u.live},onResume:()=>{N(o,``),u.resume()}});var de=F(T,2),fe=P(de);fe.value=fe.__value=`all`;var pe=F(fe);pe.value=pe.__value=`error`;var me=F(pe);me.value=me.__value=`warn`;var he=F(me);he.value=he.__value=`info`,E(de);var ge;uo(de),E(ce);var _e=F(ce,2),ve=P(_e),ye=e=>{B(e,aA())},be=e=>{B(e,oA())},xe=e=>{B(e,sA())},Se=e=>{var t=lA(),r=Or(t);Na(r,17,()=>L(g),e=>e.id,(e,t)=>{n(e,()=>L(t))});var i=F(r,2),a=e=>{var t=cA(),n=P(t,!0);E(t),Qa(t,(e,t)=>mk?.(e,t),()=>({onReach:()=>u.loadMore(),disabled:u.loading.value})),I(()=>V(n,u.loading.value?`Loading…`:`Scroll for more`)),B(e,t)};H(i,e=>{u.nextCursor.value&&e(a)}),B(e,t)};H(ve,e=>{u.loading.value&&!u.ready.value&&L(r).length===0?e(ye):L(g).length===0&&!L(v)?e(be,1):L(g).length===0?e(xe,2):e(Se,-1)}),E(_e),E(b),I(e=>{V(w,` Logs (${L(g).length??``})`),W(te,1,e),G(te,`title`,L(i)?`Resume live tail`:`Pause live tail`),V(ae,` ${L(i)?`Resume${L(a)>0?` (+${L(a)})`:``}`:`Pause`}`),ge!==(ge=L(s))&&(de.value=(de.__value=L(s))??``,lo(de,L(s)))},[()=>U(Q(`flex items-center gap-1 px-2 py-1 text-xs rounded transition-colors`,L(i)?`bg-warning-bg text-warning hover:bg-warning-bg`:`hover:bg-hover text-fg-muted`))]),R(`click`,te,function(...e){Tu?.apply(this,e)}),R(`change`,de,e=>N(s,e.currentTarget.value,!0)),B(e,b),at()}ta([`click`,`change`]);var fA=z(`<p class="p-3 text-xs text-fg-muted">No stack frames on this error.</p>`),pA=z(`<button type="button"><span class="font-mono text-xs text-fg"> </span> <span class="font-mono text-[11px] text-fg-subtle"> </span></button>`),mA=z(`<div class="flex flex-col items-start gap-0.5 px-3 py-2"><span class="flex items-center gap-2"><span class="font-mono text-xs text-fg-muted"> </span> <span class="rounded bg-subtle px-1.5 py-0.5 text-[10px] text-fg-subtle"> </span></span> <span class="font-mono text-[11px] text-fg-muted"> </span></div>`),hA=z(`<li><!></li>`),gA=z(`<ol class="divide-y divide-line-subtle"></ol>`);function _A(e,t){it(t,!0);let n=J(t,`selected`,3,null),r={dependency:`node_modules`,native:`runtime`};function i(e){return`${e.file}:${e.line}:${e.column}`}function a(e){return n()!==null&&n().file===e.file&&n().line===e.line&&n().column===e.column}var o=ua(),s=Or(o),c=e=>{B(e,fA())},l=e=>{var n=gA();Na(n,21,()=>t.frames,ka,(e,n)=>{let o=j(()=>L(n).kind===`app`?null:r[L(n).kind]);var s=hA(),c=P(s),l=e=>{var r=pA(),o=P(r),s=P(o,!0);E(o);var c=F(o,2),l=P(c,!0);E(c),E(r),I((e,t)=>{W(r,1,e),V(s,L(n).function??`(anonymous)`),V(l,t)},[()=>U(Q(`flex w-full flex-col items-start gap-0.5 px-3 py-2 text-left transition-colors hover:bg-hover`,a(L(n))&&`bg-subtle border-l-2 border-accent`)),()=>i(L(n))]),R(`click`,r,()=>t.onselect?.(L(n))),B(e,r)},u=e=>{var t=mA(),r=P(t),a=P(r),s=P(a,!0);E(a);var c=F(a,2),l=P(c,!0);E(c),E(r);var u=F(r,2),d=P(u,!0);E(u),E(t),I(e=>{V(s,L(n).function??`(anonymous)`),V(l,L(o)),V(d,e)},[()=>i(L(n))]),B(e,t)};H(c,e=>{L(n).kind===`app`?e(l):e(u,-1)}),E(s),B(e,s)}),E(n),B(e,n)};H(s,e=>{t.frames.length===0?e(c):e(l,-1)}),B(e,o),at()}ta([`click`]);var vA=z(`<p class="p-3 text-xs text-fg-muted">This file could not be read. It may be outside the project, or generated
13
- rather than written.</p>`),yA=z(`<button type="button" class="rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-hover">Open in editor</button>`),bA=z(`<li><span class="w-8 shrink-0 select-none text-right text-fg-subtle"> </span> <span class="whitespace-pre"> </span></li>`),xA=z(`<div class="flex flex-col"><div class="flex items-center justify-between border-b border-line px-3 py-1.5"><span class="font-mono text-[11px] text-fg-subtle"> </span> <!></div> <ol class="overflow-x-auto py-1"></ol></div>`);function SA(e,t){it(t,!0);var n=ua(),r=Or(n),i=e=>{B(e,vA())},a=e=>{var n=xA(),r=P(n),i=P(r),a=P(i);E(i);var o=F(i,2),s=e=>{var n=yA();R(`click`,n,()=>t.onopen?.(t.window)),B(e,n)};H(o,e=>{t.onopen&&e(s)}),E(r);var c=F(r,2);Na(c,21,()=>t.window.lines,ka,(e,n,r)=>{let i=j(()=>t.window.startLine+r),a=j(()=>L(i)===t.window.line);var o=bA(),s=P(o),c=P(s,!0);E(s);var l=F(s,2),u=P(l,!0);E(l),E(o),I(e=>{G(o,`aria-current`,L(a)?`true`:void 0),W(o,1,e),V(c,L(i)),V(u,L(n))},[()=>U(Q(`flex gap-3 px-3 font-mono text-[11px] leading-5`,L(a)?`bg-danger-bg text-fg`:`text-fg-muted`))]),B(e,o)}),E(c),E(n),I(()=>V(a,`${t.window.file??``}:${t.window.line??``}`)),B(e,n)};H(r,e=>{t.window===null?e(i):e(a,-1)}),B(e,n),at()}ta([`click`]);function CA(e){return e.startsWith(`node:`)||e.startsWith(`[`)||e.startsWith(`<`)?`native`:/(^|[/\\])node_modules([/\\]|$)/.test(e)?`dependency`:`app`}var wA=/^\s*at\s+(?:async\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,TA=/^\s*at\s+(?:async\s+)?(.+?):(\d+):(\d+)$/;function EA(e){if(!e.startsWith(`file://`))return e;try{let t=decodeURIComponent(new URL(e).pathname);return/^\/[A-Za-z]:/.test(t)?t.slice(1):t}catch{return e}}function DA(e){let t=[];for(let n of e.split(`
14
- `)){let e=wA.exec(n);if(e){let n=EA(e[2]);t.push({function:e[1],file:n,line:Number(e[3]),column:Number(e[4]),kind:CA(n)});continue}let r=TA.exec(n);if(r){let e=EA(r[1]);t.push({file:e,line:Number(r[2]),column:Number(r[3]),kind:CA(e)})}}return t}var OA=z(`<div class="overflow-hidden rounded border border-line"><!></div>`),kA=z(`<div class="flex flex-col gap-2"><div class="overflow-hidden rounded border border-line"><!></div> <!></div>`);function AA(e,t){it(t,!0);let n=J(t,`context`,3,4),r=j(()=>DA(t.stackTrace)),i=M(null),a=M(null),o=M(!1),s=0;async function c(e){N(i,e,!0),N(o,!1);let r=++s,c=await t.loadSource(e,n());r===s&&(N(a,c,!0),N(o,!0))}var l=ua(),u=Or(l),d=e=>{var t=kA(),n=P(t);_A(P(n),{get frames(){return L(r)},get selected(){return L(i)},onselect:c}),E(n);var s=F(n,2),l=e=>{var t=OA();SA(P(t),{get window(){return L(a)}}),E(t),B(e,t)};H(s,e=>{L(o)&&e(l)}),E(t),B(e,t)};H(u,e=>{L(r).length>0&&e(d)}),B(e,l),at()}function jA(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s ago`;let n=Math.floor(t/60);if(n<60)return`${n}m ago`;let r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}var MA=z(`<span class="px-1.5 py-0.5 text-xs font-medium bg-hover text-fg-muted rounded"> </span>`),NA=z(`<pre class="text-xs font-mono bg-code text-fg p-2 rounded overflow-x-auto whitespace-pre-wrap"> </pre>`),PA=z(`<div><h5 class="text-xs font-semibold text-fg-muted mb-1.5">Stack Trace</h5> <!> <details class="mt-2"><summary class="cursor-pointer text-[11px] text-fg-subtle hover:text-fg">Raw stack</summary> <!></details></div>`),FA=z(`<span class="px-2 py-0.5 text-xs font-mono bg-hover text-fg-muted rounded"> </span>`),IA=z(`<div><h5 class="text-xs font-semibold text-fg-muted mb-1.5">Affected Operations</h5> <div class="flex flex-wrap gap-1"></div></div>`),LA=z(`<div class="group flex items-center gap-1"><button class="flex items-center gap-1 text-xs text-fg-muted hover:text-fg font-mono"><!> <!></button> <!></div>`),RA=z(`<div><h5 class="text-xs font-semibold text-fg-muted mb-1.5">Recent Traces</h5> <div class="space-y-1"></div></div>`),zA=z(`<div class="flex gap-2"><span class="text-fg-subtle"> </span> <span class="font-mono text-fg-muted"> </span></div>`),BA=z(`<div><h5 class="text-xs font-semibold text-fg-muted mb-1.5">Context</h5> <div class="text-xs space-y-0.5"></div></div>`),VA=z(`<div class="border-t border-line p-3 bg-subtle space-y-3"><!> <!> <!> <!> <div class="text-xs text-fg-subtle pt-2 border-t border-line"><div class="flex gap-4"><span> </span> <span> </span></div></div></div>`),HA=z(`<div role="option"><button class="w-full p-3 flex items-start gap-3 hover:bg-subtle transition-colors text-left"><div class="mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="flex items-center gap-2 mb-1"><span class="text-sm font-semibold text-danger"> </span> <span class="px-1.5 py-0.5 text-xs font-medium bg-danger-bg text-danger rounded"> </span> <!></div> <div class="group flex items-start gap-1 mb-2"><p class="text-sm text-fg-muted truncate"> </p> <!></div> <div class="flex items-center gap-4 text-xs text-fg-subtle"><span class="flex items-center gap-1"><!> </span> <span class="flex items-center gap-1"><!> </span></div></div></button> <!></div>`),UA=z(`<span class="text-xs font-normal text-fg-muted"> </span>`),WA=z(`<span class="ml-1 px-2 py-0.5 text-xs font-medium bg-danger-bg text-danger rounded-full"> </span>`),GA=z(`<div class="flex gap-4 mb-4 p-3 bg-subtle rounded-md border border-line"><div class="text-sm"><span class="text-fg-muted">Groups:</span> <span class="font-semibold text-fg"> </span></div> <div class="text-sm"><span class="text-fg-muted">Total:</span> <span class="font-semibold text-fg"> </span></div> <div class="text-sm"><span class="text-fg-muted">Last hour:</span> <span class="font-semibold text-danger"> </span></div></div>`),KA=z(`<div class="flex flex-col items-center justify-center h-full text-fg-subtle py-12"><!> <p class="text-sm">No errors captured</p> <p class="text-xs text-fg-subtle mt-1">Errors from failed traces will appear here</p></div>`),qA=z(`<div class="flex flex-col items-center justify-center h-full text-fg-subtle py-12"><!> <p class="text-sm">No matching errors</p> <p class="text-xs text-fg-subtle mt-1">No error groups match the current filter</p></div>`),JA=z(`<div class="flex flex-col h-full p-4"><div class="flex items-center justify-between mb-4 pb-3 border-b border-line"><h3 class="text-sm font-semibold flex items-center gap-2 text-fg"><!> Errors <!> <!></h3> <div class="flex items-center gap-2"><select class="text-xs border border-line rounded px-2 py-1 bg-surface text-fg-muted"><option>Most Recent</option><option>Most Frequent</option></select></div></div> <!> <!> <div role="listbox" tabindex="0" aria-label="Error groups" class="flex-1 overflow-auto space-y-2 focus:outline-none"><!></div></div>`);function YA(e,t){it(t,!0);let n=(e,t=p,n=p,r=p,i=p)=>{let a=j(()=>Date.now()-t().firstSeen),o=j(()=>Date.now()-t().lastSeen);var s=HA(),c=P(s),l=P(c),u=P(l),d=e=>{sp(e,{size:16,class:`text-fg-subtle`})},f=e=>{dp(e,{size:16,class:`text-fg-subtle`})};H(u,e=>{n()?e(d):e(f,-1)}),E(l);var v=F(l,2),y=P(v),b=P(y),x=P(b,!0);E(b);var S=F(b,2),C=P(S);E(S);var w=F(S,2),ee=e=>{var n=MA(),r=P(n,!0);E(n),I(()=>V(r,t().service)),B(e,n)};H(w,e=>{t().service&&e(ee)}),E(y);var te=F(y,2),ne=P(te),re=P(ne,!0);E(ne);var ie=F(ne,2);{let e=j(()=>`${t().type}: ${t().message}`);Ig(ie,{get value(){return L(e)},label:`Copy error message`,class:`opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity`})}E(te);var ae=F(te,2),oe=P(ae),se=P(oe);_p(se,{size:12});var ce=F(se);E(oe);var le=F(oe,2),ue=P(le);_p(ue,{size:12});var T=F(ue);E(le),E(ae),E(v),E(c);var de=F(c,2),fe=e=>{var n=VA(),r=P(n),i=e=>{var n=PA(),r=F(P(n),2);AA(r,{get stackTrace(){return t().stackTrace},get loadSource(){return ns}});var i=F(r,2);vg(F(P(i),2),{get content(){return t().stackTrace},children:(e,n)=>{var r=NA(),i=P(r,!0);E(r),I(()=>V(i,t().stackTrace)),B(e,r)},$$slots:{default:!0}}),E(i),E(n),B(e,n)};H(r,e=>{t().stackTrace&&e(i)});var a=F(r,2),o=e=>{var n=IA(),r=F(P(n),2);Na(r,21,()=>t().affectedSpans,ka,(e,t)=>{var n=FA(),r=P(n,!0);E(n),I(()=>V(r,L(t))),B(e,n)}),E(r),E(n),B(e,n)};H(a,e=>{t().affectedSpans.length>0&&e(o)});var s=F(a,2),c=e=>{var n=RA(),r=F(P(n),2);Na(r,20,()=>t().affectedTraces.slice(0,5),e=>e,(e,t)=>{var n=LA(),r=P(n),i=P(r);zp(i,{size:10});var a=F(i);Dp(F(a),{size:10}),E(r),Ig(F(r,2),{get value(){return t},label:`Copy trace ID`,size:10,class:`opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity`}),E(n),I(e=>V(a,` ${e??``}... `),[()=>t.slice(0,16)]),R(`click`,r,()=>_(t)),B(e,n)}),E(r),E(n),B(e,n)};H(s,e=>{t().affectedTraces.length>0&&e(c)});var l=F(s,2),u=e=>{var n=BA(),r=F(P(n),2);Na(r,21,()=>Object.entries(t().attributes),([e,t])=>e,(e,t)=>{var n=j(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=zA(),o=P(a),s=P(o);E(o);var c=F(o,2),l=P(c,!0);E(c),E(a),I(e=>{V(s,`${r()??``}:`),V(l,e)},[()=>String(i())]),B(e,a)}),E(r),E(n),B(e,n)},d=j(()=>t().attributes&&Object.keys(t().attributes).length>0);H(l,e=>{L(d)&&e(u)});var f=F(l,2),p=P(f),m=P(p),h=P(m);E(m);var v=F(m,2),y=P(v);E(v),E(p),E(f),E(n),I((e,t)=>{V(h,`First seen: ${e??``}`),V(y,`Last seen: ${t??``}`)},[()=>id(t().firstSeen),()=>id(t().lastSeen)]),B(e,n)};H(de,e=>{n()&&e(fe)}),E(s),I((e,n)=>{G(s,`aria-selected`,i()),G(s,`data-row-index`,r()),W(s,1,`border border-line rounded-md bg-surface overflow-hidden${i()?` ring-1 ring-inset ring-accent bg-accent/10`:``}`),V(x,t().type),V(C,`${t().count??``}x`),V(re,t().message),V(ce,` First: ${e??``}`),V(T,` Last: ${n??``}`)},[()=>jA(L(a)),()=>jA(L(o))]),R(`click`,c,()=>{m.cursor=r(),h(t().fingerprint)}),B(e,s)};function r(e,t){return Sg(t.toLowerCase(),[e.type,e.message,...e.affectedTraces])}let i=M(`recent`),a=M(null),o=M(``),s=M(void 0),c=j(()=>L(i)===`recent`?ru.value:iu.value),l=j(()=>L(c).filter(e=>r(e,L(o)))),u=j(()=>L(o).length>0),d=j(()=>au.value),f=j(()=>ou.value),m=vk({count:()=>L(l).length,onActivate:e=>{let t=L(l)[e];t&&h(t.fingerprint)},scrollToIndex:e=>L(s)?.querySelector(`[data-row-index="${e}"]`)?.scrollIntoView({block:`nearest`})});function h(e){N(a,L(a)===e?null:e,!0)}function _(e){ju(e),Au(`traces`)}var v=JA(),y=P(v),b=P(y),x=P(b);Nm(x,{size:16,class:`text-danger`});var S=F(x,2),C=e=>{var t=UA(),n=P(t);E(t),I(()=>V(n,`(${L(l).length??``} of ${L(c).length??``})`)),B(e,t)};H(S,e=>{L(u)&&e(C)});var w=F(S,2),ee=e=>{var t=WA(),n=P(t,!0);E(t),I(()=>V(n,L(d))),B(e,t)};H(w,e=>{L(d)>0&&e(ee)}),E(b);var te=F(b,2),ne=P(te),re=P(ne);re.value=re.__value=`recent`;var ie=F(re);ie.value=ie.__value=`frequent`,E(ne);var ae;uo(ne),E(te),E(y);var oe=F(y,2),se=e=>{xg(e,{class:`mb-4`,inputClass:`border-line bg-subtle text-fg focus:border-line focus:ring-1 focus:ring-accent`,placeholder:`Filter by type, message, trace id…`,ariaLabel:`Filter errors`,get value(){return L(o)},set value(e){N(o,e,!0)}})};H(oe,e=>{L(c).length>0&&e(se)});var ce=F(oe,2),le=e=>{var t=GA(),n=P(t),r=F(P(n),2),i=P(r,!0);E(r),E(n);var a=F(n,2),o=F(P(a),2),s=P(o,!0);E(o),E(a);var p=F(a,2),m=F(P(p),2),h=P(m,!0);E(m),E(p),E(t),I(()=>{V(i,L(u)?`${L(l).length} of ${L(c).length}`:L(c).length),V(s,L(d)),V(h,L(f))}),B(e,t)};H(ce,e=>{L(d)>0&&e(le)});var ue=F(ce,2),T=P(ue),de=e=>{var t=KA();Nm(P(t),{size:32,class:`mb-2 text-fg-subtle`}),Ke(4),E(t),B(e,t)},fe=e=>{var t=qA();xm(P(t),{size:32,class:`mb-2 text-fg-subtle`}),Ke(4),E(t),B(e,t)},pe=e=>{var t=ua();Na(Or(t),19,()=>L(l),e=>e.fingerprint,(e,t,r)=>{n(e,()=>L(t),()=>L(a)===L(t).fingerprint,()=>L(r),()=>m.cursor===L(r))}),B(e,t)};H(T,e=>{L(c).length===0?e(de):L(l).length===0?e(fe,1):e(pe,-1)}),E(ue),Ho(ue,e=>N(s,e),()=>L(s)),E(v),I(()=>{ae!==(ae=L(i))&&(ne.value=(ne.__value=L(i))??``,lo(ne,L(i)))}),R(`change`,ne,e=>N(i,e.target.value,!0)),R(`keydown`,ue,function(...e){m.onKeyDown?.apply(this,e)}),B(e,v),at()}ta([`click`,`change`,`keydown`]);var XA={traces:Mk,resources:Hk,logs:dA,errors:YA},ZA=[{id:`traces`,label:`Traces`,icon:Cp},{id:`agents`,label:`Agents`,icon:Yf},{id:`genai`,label:`GenAI`,icon:Tm},{id:`flow`,label:`Flow`,icon:Lm},{id:`resources`,label:`Resources`,icon:Zf},{id:`service-map`,label:`Service Map`,icon:rm},{id:`metrics`,label:`Metrics`,icon:rp},{id:`logs`,label:`Logs`,icon:kp},{id:`errors`,label:`Errors`,icon:Nm},{id:`security`,label:`Security`,icon:Cm},{id:`compare`,label:`Compare`,icon:Fp},{id:`coverage`,label:`Coverage`,icon:ym},{id:`webmcp`,label:`WebMCP`,icon:zm}].filter(e=>XA[e.id]!==void 0),QA=ZA.map(e=>e.id),$A=16,ej=48;function tj(e){let{isVertical:t,dock:n,axisSize:r,setSize:i,resetSize:a}=e,o=M(!1);return{get resizing(){return L(o)},onPointerDown:e=>{e.stopPropagation();let a=t(),s=a?`vertical`:`horizontal`,c=a?e.clientY:e.clientX,l=r(),u=n()===`bottom`||n()===`right`?-1:1;nv(e,{cursor:a?`ns-resize`:`ew-resize`,onStart:()=>N(o,!0),onMove:e=>{let t=a?e.clientY:e.clientX;i(s,l+(t-c)*u)},onEnd:()=>N(o,!1)})},onKeyDown:e=>{let a=t()?`vertical`:`horizontal`,o=e.shiftKey?ej:$A,s=t()?{ArrowUp:n()===`bottom`?o:-o,ArrowDown:n()===`bottom`?-o:o}:{ArrowLeft:n()===`right`?o:-o,ArrowRight:n()===`right`?-o:o};e.key in s&&(e.preventDefault(),i(a,r()+s[e.key]))},onDblClick:()=>a(t()?`vertical`:`horizontal`)}}function nj(e,t,n,r){let i={left:e,right:n-e,top:t,bottom:r-t};return Object.keys(i).reduce((e,t)=>i[t]<i[e]?t:e)}function rj(e){let{dock:t,pipActive:n,onDock:r}=e,i=M(!1),a=M(null);return{get dragging(){return L(i)},get dropTarget(){return L(a)},onHeaderPointerDown:e=>{e.button===0&&(e.target.closest(`button`)||n()||nv(e,{cursor:`grabbing`,onStart:()=>{N(i,!0),N(a,t(),!0)},onMove:e=>{N(a,nj(e.clientX,e.clientY,window.innerWidth,window.innerHeight),!0)},onEnd:()=>{N(i,!1),L(a)&&L(a)!==t()&&r(L(a)),N(a,null)}}))}}}function ij(e,t){it(t,!0);let n=j(()=>Vc.value),r=j(()=>XA[L(n)]??XA.traces);var i=ua(),a=Or(i),o=e=>{var t=ua();Ba(Or(t),()=>L(r),(e,t)=>{t(e,{})}),B(e,t)};H(a,e=>{L(r)&&e(o)}),B(e,i),at()}var aj=z(`<span class="absolute inset-0 rounded-full bg-success opacity-75 animate-ping" aria-hidden="true"></span>`),oj=z(`<span class="text-xs font-mono tabular-nums text-fg-subtle" title="Telemetry ingest rate"> </span>`),sj=z(`<span class="text-xs font-mono tabular-nums text-fg-subtle" title="Telemetry store usage and retention cap"> </span>`),cj=z(`<span> </span> <!> <!>`,1),lj=z(`<div role="status"><span class="relative inline-flex w-2 h-2 shrink-0"><!> <span aria-hidden="true"></span></span> <!></div>`);function uj(e,t){it(t,!0);let n=J(t,`compact`,3,!1),r=j(()=>pl.value),i=j(()=>L(r)===`connected`?{dot:`bg-success`,label:`Connected`,text:`text-success`}:L(r)===`connecting`?{dot:`bg-warning animate-pulse`,label:`Connecting…`,text:`text-warning`}:{dot:`bg-danger`,label:`Disconnected`,text:`text-fg-subtle`}),a=j(()=>bl.value),o=M(!1);Rr(()=>{if(L(a),L(a)===0)return;N(o,!0);let e=setTimeout(()=>N(o,!1),900);return()=>clearTimeout(e)});let s=M(0);Rr(()=>{if(n())return;let e=()=>{N(s,Math.round(wl(5e3).total),!0)};e();let t=setInterval(e,1e3);return()=>clearInterval(t)});let c=j(()=>!n()&&L(r)===`connected`&&L(s)>0),l=M(null);Rr(()=>{if(n()||L(r)!==`connected`)return;let e=!0,t=async()=>{let t=ml.value,n=(t?Qo(t):null)??globalThis.location?.origin;if(n)try{let t=await fetch(`${n}/api/stats`);t.ok&&e&&N(l,await t.json(),!0)}catch{}};t();let i=setInterval(t,3e4);return()=>{e=!1,clearInterval(i)}});function u(e){return e<1024**2?`${Math.round(e/1024)} KB`:e<1024**3?`${(e/1024**2).toFixed(1)} MB`:`${(e/1024**3).toFixed(1)} GB`}var d=lj(),f=P(d),p=P(f),m=e=>{B(e,aj())};H(p,e=>{L(o)&&L(r)===`connected`&&e(m)});var h=F(p,2);E(f);var g=F(f,2),_=e=>{var t=cj(),n=Or(t),r=P(n,!0);E(n);var a=F(n,2),o=e=>{var t=oj(),n=P(t);E(t),I(()=>V(n,`· ${L(s)??``}/s`)),B(e,t)};H(a,e=>{L(c)&&e(o)});var d=F(a,2),f=e=>{var t=sj(),n=P(t);E(t),I((e,t)=>V(n,`· ${e??``} / ${t??``}`),[()=>u(L(l).bytesUsed),()=>u(L(l).maxBytes)]),B(e,t)};H(d,e=>{L(l)&&e(f)}),I(e=>{W(n,1,e),V(r,L(i).label)},[()=>U(Q(`text-xs font-medium`,L(i).text))]),B(e,t)};H(g,e=>{n()||e(_)}),E(d),I((e,t)=>{W(d,1,e),G(d,`aria-label`,`OTLP receiver: ${L(i).label}`),G(d,`title`,`OTLP receiver: ${L(i).label}${L(s)>0?` · ${L(s)}/s`:``}`),W(h,1,t)},[()=>U(Q(`flex items-center gap-1.5`,!n()&&`px-3 py-2`)),()=>U(Q(`relative inline-block w-2 h-2 rounded-full`,L(i).dot))]),B(e,d),at()}var dj=z(`<kbd class="inline-block px-1.5 py-0.5 font-mono text-xs font-semibold bg-hover border border-line rounded text-fg mr-1 last:mr-0 shadow-[0_1px_0_#d4d4d8]"> </kbd>`),fj=z(`<tr class="border-b border-line-subtle last:border-b-0"><td class="py-2.5 px-4 whitespace-nowrap align-middle w-[1%]"></td><td class="py-2.5 pr-4 pl-1 text-sm text-fg-muted align-middle"> </td></tr>`),pj=z(`<div class="fixed inset-0 z-[1000] flex items-center justify-center" role="dialog" aria-modal="true" aria-label="Keyboard shortcuts"><button type="button" aria-label="Close" class="absolute inset-0 bg-black/55 backdrop-blur-[2px] at-backdrop-in"></button> <div tabindex="-1" class="at-modal-in relative z-[1] bg-surface border border-line rounded-lg shadow-xl w-[480px] max-w-[90vw] max-h-[80vh] flex flex-col overflow-hidden outline-none"><div class="flex items-center justify-between px-4 py-3 border-b border-line bg-subtle flex-shrink-0"><span class="text-sm font-semibold text-fg">Keyboard Shortcuts</span> <button class="inline-flex items-center justify-center w-7 h-7 p-0 bg-transparent border border-line rounded cursor-pointer text-sm text-fg-subtle hover:bg-danger-bg hover:border-danger-border hover:text-danger transition-colors" title="Close (Esc)"><!></button></div> <div class="overflow-y-auto py-2"><table class="w-full border-collapse"><tbody></tbody></table></div></div></div>`);function mj(e,t){it(t,!0);let n=M(void 0);Rr(()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),t.onClose())},r=L(n);return r&&(r.addEventListener(`keydown`,e),r.focus()),window.addEventListener(`keydown`,e),()=>{r&&r.removeEventListener(`keydown`,e),window.removeEventListener(`keydown`,e)}});var r=pj(),i=P(r),a=F(i,2),o=P(a),s=F(P(o),2);Vm(P(s),{size:14}),E(s),E(o);var c=F(o,2),l=P(c),u=P(l);Na(u,21,()=>t.shortcuts,ka,(e,t)=>{var n=fj(),r=P(n);Na(r,21,()=>L(t).keys,ka,(e,t)=>{var n=dj(),r=P(n,!0);E(n),I(()=>V(r,L(t)===`CmdOrCtrl`?ah?`⌘`:`Ctrl`:L(t)===`AltOrOpt`?ah?`⌥`:`Alt`:L(t))),B(e,n)}),E(r);var i=F(r),a=P(i,!0);E(i),E(n),I(()=>V(a,L(t).description)),B(e,n)}),E(u),E(l),E(c),E(a),Ho(a,e=>N(n,e),()=>L(n)),E(r),R(`click`,i,function(...e){t.onClose?.apply(this,e)}),R(`click`,s,function(...e){t.onClose?.apply(this,e)}),B(e,r),at()}ta([`click`]);var hj=z(`<div role="separator" aria-label="Resize panel" tabindex="0" title="Drag to resize · double-click to reset"><div></div> <div></div></div>`),gj=z(`<span class="text-fg-subtle/60 flex-shrink-0 pl-0.5" aria-hidden="true"><!></span>`),_j=z(`<span> </span>`),vj=z(`<button><!> <span> </span> <!></button>`),yj=z(`<button class="p-1.5 rounded-md text-fg-subtle hover:text-fg hover:bg-subtle transition-colors" title="Dock position (click to cycle: bottom → right → left) — or drag the header to an edge" aria-label="Change dock position"><!></button>`),bj=z(`<button class="p-1.5 rounded-md text-fg-subtle hover:text-fg hover:bg-subtle transition-colors"><!></button>`),xj=z(`<button class="p-1.5 rounded-md text-fg-subtle hover:text-fg hover:bg-subtle transition-colors" title="Close (Esc)" aria-label="Close devtools"><!></button>`),Sj=z(`<span class="px-2.5 py-1 rounded-md bg-accent text-white text-xs font-semibold shadow-lg"> </span>`),Cj=z(`<div><!></div>`),wj=z(`<div class="fixed inset-0 z-[1001] pointer-events-none" aria-hidden="true"></div>`),Tj=z(`<section aria-label="Autotel devtools"><!> <header><!> <div class="flex items-center gap-2 flex-shrink-0 pr-1 mr-0.5"><!> <span class="text-xs font-semibold tracking-tight text-fg hidden sm:inline">autotel</span></div> <nav class="flex items-center gap-0.5 overflow-x-auto min-w-0 flex-1 at-no-scrollbar" aria-label="Devtools sections"></nav> <div class="flex items-center gap-1 flex-shrink-0 pl-1"><!> <button class="p-1.5 rounded-md text-fg-subtle hover:text-fg hover:bg-subtle transition-colors" title="Keyboard shortcuts (?)" aria-label="Keyboard shortcuts"><!></button> <!> <!> <!></div></header> <div class="flex-1 min-h-0 overflow-hidden"><!></div> <!></section> <!>`,1);function Ej(e,t){it(t,!0);let n=M(void 0),r=j(()=>Ic.value),i=j(()=>Vc.value),a=j(()=>zc.value??`bottom`),o=j(()=>al.value),s=j(()=>Bc.value),c=Km(),l=j(()=>L(a)===`bottom`||L(a)===`top`),u=j(()=>L(l)?L(o).vertical:L(o).horizontal),d=j(()=>ol(L(l)?`vertical`:`horizontal`)),f=j(()=>au.value),p=j(()=>eu.value),m=j(()=>tu.value),h=j(()=>({genai:L(p)>0?L(p):void 0,flow:L(m)>0?L(m):void 0,errors:L(f)>0?L(f):void 0})),g=j(()=>ZA.map(e=>({...e,badge:L(h)[e.id]}))),_=tj({isVertical:()=>L(l),dock:()=>L(a),axisSize:()=>L(u),setSize:sl,resetSize:cl}),v=rj({dock:()=>L(a),pipActive:()=>L(s),onDock:Fu});async function y(){if(L(s)){Xm(()=>Bc.value=!1);return}let e=L(n)?.getRootNode(),t=e instanceof ShadowRoot?e.host:null;t&&await Ym(t,()=>Bc.value=!1,{width:760,height:600})&&(Bc.value=!0)}let b=globalThis.window!==void 0&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;function x(e,{dock:t}){if(b||L(s))return{duration:0};let n=t===`left`||t===`right`?`X`:`Y`,r=t===`bottom`||t===`right`?1:-1;return{duration:240,easing:Wm,css:(e,t)=>`transform: translate${n}(${t*r*100}%)`}}let S=[`traces`,`genai`,`flow`,`service-map`,`metrics`,`logs`,`errors`],C=j(()=>el.value);function w(){return Hc.value?nh:Vc.value===`traces`?th:eh}Rr(()=>{let e=L(n)?.getRootNode(),t=e instanceof ShadowRoot||e instanceof Document?e:window,r=e=>{let t=e;if(t.key===`Escape`){if(el.value){nl();return}if(rh())return;if(Bc.value){Xm(()=>Bc.value=!1);return}ku();return}if(t.key===`?`&&!rh()){t.preventDefault(),rl(w());return}if(!el.value&&!rh()&&t.key>=`1`&&t.key<=`7`){let e=Number.parseInt(t.key,10)-1;e<S.length&&Au(S[e])}};return t.addEventListener(`keydown`,r),()=>t.removeEventListener(`keydown`,r)});let ee=j(()=>L(s)?`inset-0`:{bottom:`left-0 right-0 bottom-0`,top:`left-0 right-0 top-0`,right:`top-0 bottom-0 right-0`,left:`top-0 bottom-0 left-0`}[L(a)]),te=j(()=>L(s)?``:{bottom:`border-t`,top:`border-b`,right:`border-l`,left:`border-r`}[L(a)]),ne=j(()=>({bottom:`-top-1 left-0 right-0 h-2 cursor-ns-resize`,top:`-bottom-1 left-0 right-0 h-2 cursor-ns-resize`,right:`-left-1 top-0 bottom-0 w-2 cursor-ew-resize`,left:`-right-1 top-0 bottom-0 w-2 cursor-ew-resize`})[L(a)]),re=j(()=>({bottom:`inset-x-0 top-1 h-px`,top:`inset-x-0 bottom-1 h-px`,right:`inset-y-0 left-1 w-px`,left:`inset-y-0 right-1 w-px`})[L(a)]),ie=j(()=>L(s)?``:L(l)?`height: ${L(u)}px;`:`width: ${L(u)}px;`),ae=j(()=>L(s)?``:{bottom:`box-shadow: 0 -12px 32px -14px var(--at-shadow), 0 -2px 6px -4px var(--at-shadow);`,top:`box-shadow: 0 12px 32px -14px var(--at-shadow), 0 2px 6px -4px var(--at-shadow);`,right:`box-shadow: -12px 0 32px -14px var(--at-shadow), -2px 0 6px -4px var(--at-shadow);`,left:`box-shadow: 12px 0 32px -14px var(--at-shadow), 2px 0 6px -4px var(--at-shadow);`}[L(a)]),oe=j(()=>L(a)===`right`?lm:L(a)===`left`?sm:am),se=[{edge:`bottom`,pos:`left-0 right-0 bottom-0 h-24`,label:`Dock bottom`},{edge:`top`,pos:`left-0 right-0 top-0 h-24`,label:`Dock top`},{edge:`left`,pos:`top-0 bottom-0 left-0 w-44`,label:`Dock left`},{edge:`right`,pos:`top-0 bottom-0 right-0 w-44`,label:`Dock right`}];var ce=ua(),le=Or(ce),ue=e=>{var t=Tj(),r=Or(t),o=P(r),f=e=>{var t=hj(),n=P(t),r=F(n,2);E(t),I((e,i,a,o)=>{G(t,`aria-orientation`,L(l)?`horizontal`:`vertical`),G(t,`aria-valuenow`,e),G(t,`aria-valuemin`,L(d).min),G(t,`aria-valuemax`,L(d).max),W(t,1,i),W(n,1,a),W(r,1,o)},[()=>Math.round(L(u)),()=>U(Q(`absolute z-20 group touch-none select-none outline-none`,L(ne))),()=>U(Q(`absolute bg-line-subtle transition-colors duration-150`,`group-hover:bg-accent group-focus-visible:bg-accent`,_.resizing&&`!bg-accent`,L(re))),()=>U(Q(`absolute rounded-full bg-line transition-colors duration-150`,`group-hover:bg-accent group-focus-visible:bg-accent`,_.resizing&&`!bg-accent`,L(l)?`left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2 w-9 h-1`:`top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2 h-9 w-1`))]),R(`pointerdown`,t,function(...e){_.onPointerDown?.apply(this,e)}),R(`keydown`,t,function(...e){_.onKeyDown?.apply(this,e)}),R(`dblclick`,t,function(...e){_.onDblClick?.apply(this,e)}),B(e,t)};H(o,e=>{L(s)||e(f)});var p=F(o,2),m=P(p),h=e=>{var t=gj();Lp(P(t),{size:14}),E(t),B(e,t)};H(m,e=>{L(s)||e(h)});var b=F(m,2);nd(P(b),{width:18,height:18}),Ke(2),E(b);var S=F(b,2);Na(S,21,()=>L(g),e=>e.id,(e,t)=>{let n=j(()=>L(t).icon),r=j(()=>L(i)===L(t).id);var a=vj(),o=P(a);{let e=j(()=>L(t).id===`errors`&&L(t).badge?`text-danger`:void 0);Ba(o,()=>L(n),(t,n)=>{n(t,{size:14,get class(){return L(e)}})})}var s=F(o,2),c=P(s,!0);E(s);var l=F(s,2),u=e=>{var n=_j(),r=P(n,!0);E(n),I(e=>{W(n,1,e),V(r,L(t).badge>99?`99+`:L(t).badge)},[()=>U(Q(`px-1.5 py-px text-[10px] font-semibold rounded-full`,L(t).id===`errors`?`bg-danger-bg text-danger`:`bg-accent/15 text-fg-muted`))]),B(e,n)};H(l,e=>{L(t).badge&&e(u)}),E(a),I(e=>{G(a,`aria-current`,L(r)?`page`:void 0),W(a,1,e),V(c,L(t).label)},[()=>U(Q(`flex items-center gap-1.5 px-2.5 h-8 rounded-md flex-shrink-0`,`text-xs transition-colors cursor-pointer`,L(r)?`bg-accent/12 text-fg font-semibold ring-1 ring-inset ring-accent/20`:`text-fg-subtle font-medium hover:text-fg hover:bg-subtle`))]),R(`click`,a,()=>Au(L(t).id)),B(e,a)}),E(S);var ce=F(S,2);{let e=e=>{let t=j(()=>L(oe));var n=ua();Ba(Or(n),()=>L(t),(e,t)=>{t(e,{size:15})}),B(e,n)};var le=P(ce);uj(le,{compact:!0});var ue=F(le,2);hp(P(ue),{size:15}),E(ue);var T=F(ue,2),de=t=>{var n=yj(),r=P(n);e(r),E(n),R(`click`,n,function(...e){Iu?.apply(this,e)}),B(t,n)};H(T,e=>{L(s)||e(de)});var fe=F(T,2),pe=e=>{var t=bj(),n=P(t),r=e=>{Zp(e,{size:15})},i=e=>{pm(e,{size:15})};H(n,e=>{L(s)?e(r):e(i,-1)}),E(t),I(()=>{G(t,`title`,L(s)?`Return to docked panel`:`Pop out to a separate window`),G(t,`aria-label`,L(s)?`Return to docked panel`:`Pop out to window`)}),R(`click`,t,y),B(e,t)};H(fe,e=>{c&&e(pe)});var me=F(fe,2),he=e=>{var t=xj();Vm(P(t),{size:16}),E(t),R(`click`,t,function(...e){ku?.apply(this,e)}),B(e,t)};H(me,e=>{L(s)||e(he)}),E(ce),R(`click`,ue,()=>rl(w()))}E(p);var ge=F(p,2);ij(P(ge),{}),E(ge);var _e=F(ge,2),ve=e=>{mj(e,{get shortcuts(){return L(C)},get onClose(){return nl}})};H(_e,e=>{L(C)&&e(ve)}),E(r),Ho(r,e=>N(n,e),()=>L(n));var ye=F(r,2),be=e=>{var t=wj();Na(t,21,()=>se,e=>e.edge,(e,t)=>{let n=j(()=>v.dropTarget===L(t).edge);var r=Cj(),i=P(r),a=e=>{var n=Sj(),r=P(n,!0);E(n),I(()=>V(r,L(t).label)),B(e,n)};H(i,e=>{L(n)&&e(a)}),E(r),I(e=>W(r,1,e),[()=>U(Q(`absolute flex items-center justify-center transition-colors duration-100`,L(t).pos,L(n)?`bg-accent/15 ring-2 ring-inset ring-accent`:`bg-accent/5`))]),B(e,r)}),E(t),B(e,t)};H(ye,e=>{v.dragging&&e(be)}),I((e,t)=>{W(r,1,e),co(r,`${L(ie)} ${L(ae)}`),W(p,1,t)},[()=>U(Q(`fixed z-[1000] flex flex-col`,`bg-surface text-fg`,L(ee),L(te),`border-line`)),()=>U(Q(`flex items-center gap-1 pl-2 pr-2 h-11 flex-shrink-0`,`border-b border-line bg-surface`,L(s)?``:`cursor-grab active:cursor-grabbing`))]),R(`pointerdown`,p,function(...e){v.onHeaderPointerDown?.apply(this,e)}),Ya(3,r,()=>x,()=>({dock:L(a)})),B(e,t)};H(le,e=>{L(r)&&e(ue)}),B(e,ce),at()}ta([`pointerdown`,`keydown`,`dblclick`,`click`]);var Dj=z(`<button><!> </button>`),Oj=z(`<nav></nav>`);function kj(e,t){it(t,!0);let n=J(t,`orientation`,3,`horizontal`),r=j(()=>Vc.value);var i=Oj();Na(i,21,()=>ZA,({id:e,label:t,icon:n})=>e,(e,t)=>{let n=()=>L(t).id,i=()=>L(t).label,a=()=>L(t).icon;var o=Dj(),s=P(o);Ba(s,a,(e,t)=>{t(e,{size:14})});var c=F(s);E(o),I(e=>{W(o,1,e),V(c,` ${i()??``}`)},[()=>U(Q(`flex items-center gap-2 px-3 py-2 text-xs font-medium rounded transition-colors whitespace-nowrap`,L(r)===n()?`bg-accent text-white`:`text-fg-subtle hover:bg-hover hover:text-fg`))]),R(`click`,o,()=>Au(n())),B(e,o)}),E(i),I(e=>W(i,1,e),[()=>U(Q(`flex gap-1 p-1`,n()===`vertical`?`flex-col w-48 border-r border-line`:`border-b border-line overflow-x-auto`))]),B(e,i),at()}ta([`click`]);var Aj=z(`<!> <span class="font-medium">Snapshot mode</span> <span class="text-warning">— live updates paused.</span> <button class="ml-auto inline-flex items-center gap-1 px-2 py-0.5 rounded hover:bg-warning-bg transition-colors" title="Exit snapshot and clear data"><!> Exit</button>`,1),jj=z(`<span class="text-fg-subtle"> </span> <button class="ml-auto inline-flex items-center gap-1 px-2 py-0.5 rounded hover:bg-hover transition-colors disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent"><!> Download snapshot</button> <button class="inline-flex items-center gap-1 px-2 py-0.5 rounded hover:bg-hover transition-colors" title="Load a snapshot file"><!> Load snapshot</button> <button class="inline-flex items-center gap-1 px-2 py-0.5 rounded hover:bg-hover hover:text-danger transition-colors" title="Clear all captured data — traces, logs, metrics and errors"><!> Clear</button>`,1),Mj=z(`<span class="text-danger truncate"> </span>`),Nj=z(`<span class="text-warning truncate"> </span>`),Pj=z(`<div><!> <input type="file" accept="application/json,.json" class="hidden"/> <!> <!></div>`);function Fj(e,t){it(t,!0);let n=M(void 0),r=M(null),i=M(null),a=j(()=>Al.value),o=j(()=>[{n:ll.value.length,one:`trace`,many:`traces`},{n:fl.value.length,one:`log`,many:`logs`},{n:dl.value.length,one:`error`,many:`errors`}].filter(e=>e.n>0).map(e=>`${e.n} ${e.n===1?e.one:e.many}`)),s=j(()=>L(o).length===0),c=()=>{N(r,null),N(i,null),Mv({traces:ll.value,logs:fl.value,errors:dl.value})},l=()=>{L(n)?.click()},u=()=>{N(r,null),N(i,null),Ru()},d=async e=>{N(r,null),N(i,null);let t=e.currentTarget,n=t.files?.[0];if(t.value=``,!n)return;let a=await Fv(n);if(!a.success||!a.snapshot){N(r,a.errors.join(`; `)||`Failed to load snapshot`,!0);return}a.warnings.length>0&&N(i,a.warnings.join(`; `),!0),Du(a.snapshot)};var f=Pj(),p=P(f),m=e=>{var t=Aj(),n=Or(t);$f(n,{size:12});var r=F(n,6);Vm(P(r),{size:12}),Ke(),E(r),R(`click`,r,function(...e){Ou?.apply(this,e)}),B(e,t)},h=e=>{var t=jj(),n=Or(t),r=P(n,!0);E(n);var i=F(n,2);$f(P(i),{size:12}),Ke(),E(i);var a=F(i,2);Fm(P(a),{size:12}),Ke(),E(a);var d=F(a,2);jm(P(d),{size:12}),Ke(),E(d),I(e=>{V(r,e),i.disabled=L(s),G(i,`title`,L(s)?`Nothing captured yet`:`Download a snapshot of traces, logs, errors and metrics`)},[()=>L(s)?`No data captured`:L(o).join(` · `)]),R(`click`,i,c),R(`click`,a,l),R(`click`,d,u),B(e,t)};H(p,e=>{L(a)?e(m):e(h,-1)});var g=F(p,2);Ho(g,e=>N(n,e),()=>L(n));var _=F(g,2),v=e=>{var t=Mj(),n=P(t,!0);E(t),I(()=>{G(t,`title`,L(r)),V(n,L(r))}),B(e,t)};H(_,e=>{L(r)&&e(v)});var y=F(_,2),b=e=>{var t=Nj(),n=P(t,!0);E(t),I(()=>{G(t,`title`,L(i)),V(n,L(i))}),B(e,t)};H(y,e=>{L(i)&&!L(r)&&e(b)}),E(f),I(e=>W(f,1,e),[()=>U(Q(`border-b border-line px-3 py-1.5 text-xs flex items-center gap-2`,L(a)?`bg-warning-bg text-warning`:`bg-subtle text-fg-muted`))]),R(`change`,g,d),B(e,f),at()}ta([`click`,`change`]);var Ij=z(`<div class="flex h-screen w-screen bg-surface text-fg"><div class="hidden md:flex flex-col border-r border-line"><!> <div class="mt-auto p-2 border-t border-line flex flex-col gap-1"><!> <button class="flex items-center gap-2 px-3 py-2 text-xs text-fg-subtle hover:bg-hover hover:text-fg rounded transition-colors"><!> </button> <button class="flex items-center gap-2 px-3 py-2 text-xs text-fg-subtle hover:bg-hover hover:text-fg rounded transition-colors" title="Keyboard shortcuts (?)"><!> Shortcuts</button></div></div> <div class="flex-1 flex flex-col min-w-0"><!> <div class="md:hidden"><!></div> <div class="flex-1 overflow-hidden"><!></div></div> <!></div>`);function Lj(e,t){it(t,!0);function n(){return Hc.value?nh:Vc.value===`traces`?th:eh}let r=j(()=>Kc.value),i=j(()=>el.value);Rr(()=>{Kc.value=qc()});let a=M(void 0);Rr(()=>{let e=null,t=L(a)?.getRootNode();t instanceof ShadowRoot?e=t.host:globalThis.document!==void 0&&(e=document.documentElement),e&&e.setAttribute(`data-theme`,L(r))}),Rr(()=>{let e=e=>{if(e.key===`?`&&!rh()){e.preventDefault(),rl(n());return}if(!el.value&&!rh()&&e.key>=`1`&&e.key<=`9`){let t=parseInt(e.key,10)-1;t<QA.length&&Au(QA[t])}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let o=j(()=>L(r)===`dark`?`Dark`:L(r)===`light`?`Light`:`System`);var s=Ij(),c=P(s),l=P(c);kj(l,{orientation:`vertical`});var u=F(l,2),d=P(u);uj(d,{});var f=F(d,2),p=P(f),m=e=>{tm(e,{size:14})},h=e=>{Dm(e,{size:14})},g=e=>{$p(e,{size:14})};H(p,e=>{L(r)===`dark`?e(m):L(r)===`light`?e(h,1):e(g,-1)});var _=F(p);E(f);var v=F(f,2);hp(P(v),{size:14}),Ke(),E(v),E(u),E(c);var y=F(c,2),b=P(y);Fj(b,{});var x=F(b,2);kj(P(x),{orientation:`horizontal`}),E(x);var S=F(x,2);ij(P(S),{}),E(S),E(y);var C=F(y,2),w=e=>{mj(e,{get shortcuts(){return L(i)},get onClose(){return nl}})};H(C,e=>{L(i)&&e(w)}),E(s),Ho(s,e=>N(a,e),()=>L(a)),I(()=>{G(f,`title`,`Theme: ${L(o)} (click to cycle)`),V(_,` ${L(o)??``}`)}),R(`click`,f,function(...e){Yc?.apply(this,e)}),R(`click`,v,()=>tl(n())),B(e,s),at()}ta([`click`]);var Rj=250,zj=5e3;function Bj(e={}){let t=e.now??(()=>Date.now()),n=e.debounceMs??Rj,r=e.limit??zj,i=0,a=null,o=null,s=!1;function c(){let t=ml.value,n=e.baseUrl??(t?Qo(t):null)??globalThis.location?.origin??``;return{fetch:e.fetch??globalThis.fetch.bind(globalThis),baseUrl:n}}async function l(){if(s)return;let e=++i;a?.abort();let n=new AbortController;a=n;let o={query:``,window:As(ws(hl.value,t())),limit:r},l={...c(),signal:n.signal},[u,d]=await Promise.all([Vj(o,l),tk(o,l)]);e!==i||s||(u.status===`ok`?(gl.value=u.traces,vl.value=`ready`):u.status===`error`&&(vl.value=`unavailable`),d.status===`ok`&&(_l.value=d.errors))}function u(){if(!s){if(o&&clearTimeout(o),n<=0){l();return}o=setTimeout(()=>{o=null,l()},n)}}return{refresh:l,invalidate:u,dispose(){s=!0,o&&clearTimeout(o),a?.abort()}}}async function Vj(e,t){let n=[],r=new Set,i;do{let a=await QO({...e,cursor:i},t);if(a.status!==`ok`)return a;if(n.push(...a.traces),i=a.nextCursor??void 0,i&&r.has(i))return{status:`error`,message:`The trace query returned a repeated pagination cursor.`};i&&r.add(i)}while(i);return{status:`ok`,traces:n,nextCursor:null}}var Hj=`data-autotel-portal`;function Uj(e){let t=e.querySelector(`[${Hj}]`);if(t)return t;let n=document.createElement(`div`);return n.setAttribute(Hj,``),n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.zIndex=`2147483000`,e.appendChild(n),n}var Wj=()=>({mount:async()=>{},unmount:()=>{}}),Gj=z(`<!> <!>`,1),Kj=z(`<div class="contents"><!></div>`);function qj(e,t){it(t,!0);function n(e){Au(e.tab??`traces`),Pl.value=e.q??``,Fl.value=e.status??`all`,Il.value=e.minDuration??0,hl.value=e.window??xs,Nl.value=e.sort??Yu,Bl.value=e.genaiQuery??``,e.traceId&&Gc(e.traceId,e.spanId)}Rr(()=>{ml.value=t.wsUrl});let r=Bj();Rr(()=>(r.refresh(),()=>r.dispose())),Rr(()=>{hl.value,ll.value.length,r.invalidate()});let i=M(void 0),a=M(void 0);Rr(()=>{if(!L(i))return;let e=L(i).getRootNode();N(a,Uj(e instanceof ShadowRoot?e:document.body),!0)}),Rr(()=>{t.deepLink&&n(t.deepLink)}),Rr(()=>{let e=Wc.value;e&&ll.value.some(t=>t.traceId===e.traceId)&&(ju(e.traceId,e.spanId??null),Au(`traces`),Wc.value=null)});let o=null;Rr(()=>{if(t.mode!==`fullpage`)return;let e={tab:Vc.value,traceId:Hc.value??void 0,spanId:Uc.value??void 0,q:Pl.value||void 0,status:Fl.value,minDuration:Il.value,window:hl.value,sort:Nl.value,genaiQuery:Bl.value||void 0};if(Wc.value)return;let n=Qu(e);if(n===location.hash)return;let r=$u(o,e);o=e;let i=`${location.pathname}${location.search}${n}`;r===`push`?history.pushState(history.state,``,i):history.replaceState(history.state,``,i)}),Rr(()=>{if(t.mode!==`fullpage`)return;let e=()=>{let e=Zu(location.hash);o=e,n(e)};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}),Rr(()=>{Hu(),ts(Qo(t.wsUrl));let e=new Zo(t.wsUrl);pl.value=`connecting`;let n=e.onStatusChange(e=>{pl.value=e}),r=e.onMessage(Cu);return e.connect(),()=>{r(),n(),e.disconnect()}}),Rr(()=>{if(t.mode!==`fullpage`)return;let e=Qo(t.wsUrl);if(!e)return;let n=Wj({fetch:globalThis.fetch.bind(globalThis),baseUrl:e});return n.mount(),()=>n.unmount()});var s=Kj();Vw(P(s),{get defaultPortalTo(){return L(a)},children:(e,n)=>{var r=ua(),i=Or(r),a=e=>{Lj(e,{})},o=e=>{var t=Gj(),n=Or(t);If(n,{}),Ej(F(n,2),{}),B(e,t)};H(i,e=>{t.mode===`fullpage`?e(a):e(o,-1)}),B(e,r)},$$slots:{default:!0}}),E(s),Ho(s,e=>N(i,e),()=>L(i)),B(e,s),at()}function Jj(e,t){let n=ma(qj,{target:e,props:t});return()=>{va(n)}}var Yj=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
15
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-outline-style:solid}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:"Hanken Grotesk", system-ui, -apple-system, sans-serif;--font-mono:"JetBrains Mono", ui-monospace, "SF Mono", monospace;--color-red-100:#ffe2e2;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-red-700:#bf000f;--color-orange-100:#ffedd5;--color-orange-400:#ff8b1a;--color-orange-500:#fe6e00;--color-orange-600:#f05100;--color-orange-700:#c53c00;--color-amber-100:#fef3c6;--color-amber-500:#f99c00;--color-amber-600:#dd7400;--color-amber-700:#b75000;--color-yellow-100:#fef9c2;--color-yellow-500:#edb200;--color-yellow-600:#cd8900;--color-green-100:#dcfce7;--color-green-400:#05df72;--color-green-500:#00c758;--color-green-600:#00a544;--color-emerald-500:#00bb7f;--color-emerald-600:#009767;--color-teal-500:#00baa7;--color-teal-600:#009588;--color-cyan-100:#cefafe;--color-cyan-500:#00b7d7;--color-cyan-600:#0092b5;--color-sky-500:#00a5ef;--color-sky-600:#0084cc;--color-blue-100:#dbeafe;--color-blue-400:#54a2ff;--color-blue-500:#3080ff;--color-blue-600:#155dfc;--color-indigo-500:#625fff;--color-indigo-600:#4f39f6;--color-violet-100:#ede9fe;--color-violet-500:#8d54ff;--color-violet-600:#7f22fe;--color-violet-700:#7008e7;--color-purple-100:#f3e8ff;--color-purple-400:#c07eff;--color-purple-500:#ac4bff;--color-purple-600:#9810fa;--color-fuchsia-500:#e12afb;--color-fuchsia-600:#c600db;--color-rose-500:#ff2357;--color-rose-600:#e70044;--color-gray-50:#f9fafb;--color-gray-100:#f3f4f6;--color-gray-400:#99a1af;--color-gray-500:#6a7282;--color-gray-900:#101828;--color-stone-500:#79716b;--color-stone-600:#57534d;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-surface:var(--at-surface);--color-subtle:var(--at-muted);--color-hover:var(--at-surface-hover);--color-code:var(--at-code);--color-fg:var(--at-text-primary);--color-fg-muted:var(--at-text-secondary);--color-fg-subtle:var(--at-text-muted);--color-line:var(--at-border);--color-line-subtle:var(--at-border-light);--color-accent:var(--at-accent);--color-danger:var(--at-error-text);--color-danger-bg:var(--at-error-bg);--color-danger-border:var(--at-error-border);--color-success:var(--at-ok-text);--color-success-bg:var(--at-ok-bg);--color-success-border:var(--at-ok-border);--color-warning:var(--at-warn-text);--color-warning-bg:var(--at-warn-bg);--color-warning-border:var(--at-warn-border);--color-selected:var(--at-selected-bg)}@supports (color:color(display-p3 0 0 0)){:root,:host{--color-red-100:color(display-p3 .980386 .889727 .887779);--color-red-400:color(display-p3 .933534 .431676 .423491);--color-red-500:color(display-p3 .903738 .262579 .253307);--color-red-600:color(display-p3 .830323 .140383 .133196);--color-red-700:color(display-p3 .692737 .116232 .104679);--color-orange-100:color(display-p3 .988762 .931393 .843273);--color-orange-400:color(display-p3 .950192 .561807 .211017);--color-orange-500:color(display-p3 .946589 .449788 .0757345);--color-orange-600:color(display-p3 .887467 .341665 .0219962);--color-orange-700:color(display-p3 .729844 .257256 .0511062);--color-amber-100:color(display-p3 .989391 .954583 .796328);--color-amber-500:color(display-p3 .93994 .620584 .0585367);--color-amber-600:color(display-p3 .827144 .467166 .0336006);--color-amber-700:color(display-p3 .67989 .32771 .0520514);--color-yellow-100:color(display-p3 .993436 .977463 .782913);--color-yellow-500:color(display-p3 .903651 .703062 .0745389);--color-yellow-600:color(display-p3 .776342 .542492 .041709);--color-green-100:color(display-p3 .885269 .984329 .910368);--color-green-400:color(display-p3 .399536 .862346 .49324);--color-green-500:color(display-p3 .308734 .774754 .374307);--color-green-600:color(display-p3 .243882 .640824 .294808);--color-emerald-500:color(display-p3 .267113 .726847 .508397);--color-emerald-600:color(display-p3 .206557 .589057 .413962);--color-teal-500:color(display-p3 .266569 .721518 .655462);--color-teal-600:color(display-p3 .207114 .579584 .53668);--color-cyan-100:color(display-p3 .843085 .97553 .992573);--color-cyan-500:color(display-p3 .246703 .710032 .841444);--color-cyan-600:color(display-p3 .193249 .564651 .707197);--color-sky-500:color(display-p3 .219113 .639027 .931479);--color-sky-600:color(display-p3 .162505 .509376 .796082);--color-blue-100:color(display-p3 .869214 .915931 .989622);--color-blue-400:color(display-p3 .397443 .62813 .992116);--color-blue-500:color(display-p3 .266422 .491219 .988624);--color-blue-600:color(display-p3 .174493 .358974 .950247);--color-indigo-500:color(display-p3 .380374 .372235 .971707);--color-indigo-600:color(display-p3 .297656 .227891 .929242);--color-violet-100:color(display-p3 .926222 .913546 .990178);--color-violet-500:color(display-p3 .523372 .329605 .990884);--color-violet-600:color(display-p3 .459951 .162666 .957985);--color-violet-700:color(display-p3 .40161 .0841901 .871151);--color-purple-100:color(display-p3 .945034 .910569 .992972);--color-purple-400:color(display-p3 .719919 .492497 .995173);--color-purple-500:color(display-p3 .629519 .30089 .990817);--color-purple-600:color(display-p3 .546729 .130167 .94439);--color-fuchsia-500:color(display-p3 .81268 .241966 .951571);--color-fuchsia-600:color(display-p3 .716587 .083681 .841036);--color-rose-500:color(display-p3 .921824 .240748 .355666);--color-rose-600:color(display-p3 .848792 .102011 .269259);--color-gray-50:color(display-p3 .977213 .98084 .985102);--color-gray-100:color(display-p3 .953567 .956796 .964321);--color-gray-400:color(display-p3 .605734 .630385 .680158);--color-gray-500:color(display-p3 .421287 .446085 .504784);--color-gray-900:color(display-p3 .070423 .0928982 .151928);--color-stone-500:color(display-p3 .467445 .443064 .42264);--color-stone-600:color(display-p3 .339543 .325291 .304619)}}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-red-700:lab(40.4273% 67.2623 53.7441);--color-orange-100:lab(94.7127% 3.58394 14.3151);--color-orange-400:lab(70.0429% 42.5156 75.8207);--color-orange-500:lab(64.272% 57.1788 90.3583);--color-orange-600:lab(57.1026% 64.2584 89.8886);--color-orange-700:lab(46.4615% 57.7275 70.8507);--color-amber-100:lab(95.916% -1.21653 23.111);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-amber-600:lab(60.3514% 40.5624 87.1228);--color-amber-700:lab(47.2709% 42.9082 69.2966);--color-yellow-100:lab(97.3564% -4.51407 27.344);--color-yellow-500:lab(76.3898% 14.5258 98.4589);--color-yellow-600:lab(62.7799% 22.4197 86.1544);--color-green-100:lab(96.1861% -13.8464 6.52365);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-600:lab(55.0481% -49.9246 15.93);--color-teal-500:lab(67.3859% -49.0983 -2.63511);--color-teal-600:lab(55.0223% -41.0774 -3.90277);--color-cyan-100:lab(95.3146% -13.8285 -6.84732);--color-cyan-500:lab(67.805% -35.3952 -30.2018);--color-cyan-600:lab(55.1767% -26.7496 -30.5139);--color-sky-500:lab(63.3038% -18.433 -51.0407);--color-sky-600:lab(51.7754% -11.4712 -49.8349);--color-blue-100:lab(92.0301% -2.24757 -11.6453);--color-blue-400:lab(65.0361% -1.42065 -56.9802);--color-blue-500:lab(54.1736% 13.3369 -74.6839);--color-blue-600:lab(44.0605% 29.0279 -86.0352);--color-indigo-500:lab(48.295% 38.3129 -81.9673);--color-indigo-600:lab(38.4009% 52.6132 -92.3857);--color-violet-100:lab(93.0838% 4.35197 -9.88284);--color-violet-500:lab(49.9355% 55.1776 -81.8963);--color-violet-600:lab(41.088% 68.9966 -91.995);--color-violet-700:lab(35.2783% 67.9912 -88.793);--color-purple-100:lab(93.3333% 6.97437 -9.83434);--color-purple-400:lab(63.6946% 47.6127 -59.2066);--color-purple-500:lab(52.0183% 66.11 -78.2316);--color-purple-600:lab(43.0295% 75.21 -86.5669);--color-fuchsia-500:lab(56.4256% 83.132 -64.639);--color-fuchsia-600:lab(47.5131% 83.4271 -63.0363);--color-rose-500:lab(56.101% 79.4328 31.4532);--color-rose-600:lab(49.1882% 81.577 36.0311);--color-gray-50:lab(98.2596% -.247031 -.706708);--color-gray-100:lab(96.1596% -.0823438 -1.13575);--color-gray-400:lab(65.9269% -.832707 -8.17473);--color-gray-500:lab(47.7841% -.393182 -10.0268);--color-gray-900:lab(8.11897% .811279 -12.254);--color-stone-500:lab(48.1164% 2.35701 4.26852);--color-stone-600:lab(35.5168% 1.08604 4.07829)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;bottom:0;left:0;right:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-top-1{top:calc(var(--spacing) * -1)}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-10{top:calc(var(--spacing) * 10)}.top-\\[7px\\]{top:7px}.top-\\[9px\\]{top:9px}.top-\\[calc\\(100\\%-2px\\)\\]{top:calc(100% - 2px)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-1\\.5{right:calc(var(--spacing) * -1.5)}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\\.5{right:calc(var(--spacing) * 1.5)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-1{bottom:calc(var(--spacing) * -1)}.bottom-0{bottom:0}.bottom-0\\.5{bottom:calc(var(--spacing) * .5)}.bottom-1{bottom:var(--spacing)}.bottom-3{bottom:calc(var(--spacing) * 3)}.-left-1{left:calc(var(--spacing) * -1)}.-left-1\\.5{left:calc(var(--spacing) * -1.5)}.-left-px{left:-1px}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.z-\\[1000\\]{z-index:1000}.z-\\[1001\\]{z-index:1001}.z-\\[1100\\]{z-index:1100}.z-\\[1200\\]{z-index:1200}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-m-1{margin:calc(var(--spacing) * -1)}.m-3{margin:calc(var(--spacing) * 3)}.m-4{margin:calc(var(--spacing) * 4)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline-start:auto;margin-inline-end:auto}.my-1{margin-block:var(--spacing)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-auto{margin-top:auto}.mt-px{margin-top:1px}.mr-0\\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-0\\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-1\\/2{height:50%}.h-2{height:calc(var(--spacing) * 2)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.h-24{height:calc(var(--spacing) * 24)}.h-\\[300px\\]{height:300px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[85vh\\]{max-height:85vh}.max-h-\\[160px\\]{max-height:160px}.max-h-\\[200px\\]{max-height:200px}.max-h-\\[240px\\]{max-height:240px}.min-h-0{min-height:0}.min-h-\\[120px\\]{min-height:120px}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1{width:var(--spacing)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-14{width:calc(var(--spacing) * 14)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-\\[1\\%\\]{width:1%}.w-\\[80px\\]{width:80px}.w-\\[200px\\]{width:200px}.w-\\[480px\\]{width:480px}.w-\\[min\\(560px\\,92vw\\)\\]{width:min(560px,92vw)}.w-\\[min\\(700px\\,92vw\\)\\]{width:min(700px,92vw)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[10rem\\]{max-width:10rem}.max-w-\\[14rem\\]{max-width:14rem}.max-w-\\[16rem\\]{max-width:16rem}.max-w-\\[90vw\\]{max-width:90vw}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[420px\\]{max-width:420px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:0}.min-w-\\[8px\\]{min-width:8px}.min-w-\\[16px\\]{min-width:16px}.min-w-\\[180px\\]{min-width:180px}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-125{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-ns-resize{cursor:ns-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\\[80px_1fr\\]{grid-template-columns:80px 1fr}.grid-cols-\\[100px_1fr\\]{grid-template-columns:100px 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-px{gap:1px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:0;margin-block-end:0}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}.gap-y-2{row-gap:calc(var(--spacing) * 2)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-line>:not(:last-child)){border-color:var(--color-line)}:where(.divide-line-subtle>:not(:last-child)){border-color:var(--color-line-subtle)}.self-stretch{align-self:stretch}.justify-self-end{justify-self:flex-end}.justify-self-start{justify-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-accent,.border-accent\\/30{border-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.border-accent\\/30{border-color:color-mix(in oklab, var(--color-accent) 30%, transparent)}}.border-accent\\/40{border-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.border-accent\\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-amber-500\\/20{border-color:#f99c0033}@supports (color:color-mix(in lab, red, red)){.border-amber-500\\/20{border-color:color-mix(in oklab, var(--color-amber-500) 20%, transparent)}}.border-amber-500\\/30{border-color:#f99c004d}@supports (color:color-mix(in lab, red, red)){.border-amber-500\\/30{border-color:color-mix(in oklab, var(--color-amber-500) 30%, transparent)}}.border-blue-500\\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.border-blue-500\\/30{border-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.border-cyan-500\\/30{border-color:#00b7d74d}@supports (color:color-mix(in lab, red, red)){.border-cyan-500\\/30{border-color:color-mix(in oklab, var(--color-cyan-500) 30%, transparent)}}.border-danger-border{border-color:var(--color-danger-border)}.border-danger\\/30{border-color:var(--color-danger)}@supports (color:color-mix(in lab, red, red)){.border-danger\\/30{border-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.border-emerald-500\\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab, red, red)){.border-emerald-500\\/30{border-color:color-mix(in oklab, var(--color-emerald-500) 30%, transparent)}}.border-fuchsia-500\\/30{border-color:#e12afb4d}@supports (color:color-mix(in lab, red, red)){.border-fuchsia-500\\/30{border-color:color-mix(in oklab, var(--color-fuchsia-500) 30%, transparent)}}.border-green-500\\/30{border-color:#00c7584d}@supports (color:color-mix(in lab, red, red)){.border-green-500\\/30{border-color:color-mix(in oklab, var(--color-green-500) 30%, transparent)}}.border-indigo-500\\/30{border-color:#625fff4d}@supports (color:color-mix(in lab, red, red)){.border-indigo-500\\/30{border-color:color-mix(in oklab, var(--color-indigo-500) 30%, transparent)}}.border-line{border-color:var(--color-line)}.border-line-subtle{border-color:var(--color-line-subtle)}.border-line\\/50{border-color:var(--color-line)}@supports (color:color-mix(in lab, red, red)){.border-line\\/50{border-color:color-mix(in oklab, var(--color-line) 50%, transparent)}}.border-line\\/60{border-color:var(--color-line)}@supports (color:color-mix(in lab, red, red)){.border-line\\/60{border-color:color-mix(in oklab, var(--color-line) 60%, transparent)}}.border-orange-500\\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab, red, red)){.border-orange-500\\/30{border-color:color-mix(in oklab, var(--color-orange-500) 30%, transparent)}}.border-purple-500\\/30{border-color:#ac4bff4d}@supports (color:color-mix(in lab, red, red)){.border-purple-500\\/30{border-color:color-mix(in oklab, var(--color-purple-500) 30%, transparent)}}.border-red-500\\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab, red, red)){.border-red-500\\/30{border-color:color-mix(in oklab, var(--color-red-500) 30%, transparent)}}.border-stone-500\\/30{border-color:#79716b4d}@supports (color:color-mix(in lab, red, red)){.border-stone-500\\/30{border-color:color-mix(in oklab, var(--color-stone-500) 30%, transparent)}}.border-success-border{border-color:var(--color-success-border)}.border-violet-500\\/30{border-color:#8d54ff4d}@supports (color:color-mix(in lab, red, red)){.border-violet-500\\/30{border-color:color-mix(in oklab, var(--color-violet-500) 30%, transparent)}}.border-warning-border{border-color:var(--color-warning-border)}.border-white{border-color:var(--color-white)}.border-l-warning{border-left-color:var(--color-warning)}.\\!bg-accent{background-color:var(--color-accent)!important}.bg-accent,.bg-accent\\/5{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/5{background-color:color-mix(in oklab, var(--color-accent) 5%, transparent)}}.bg-accent\\/10{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/10{background-color:color-mix(in oklab, var(--color-accent) 10%, transparent)}}.bg-accent\\/12{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/12{background-color:color-mix(in oklab, var(--color-accent) 12%, transparent)}}.bg-accent\\/15{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/15{background-color:color-mix(in oklab, var(--color-accent) 15%, transparent)}}.bg-accent\\/70{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/70{background-color:color-mix(in oklab, var(--color-accent) 70%, transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\\/10{background-color:color-mix(in oklab, var(--color-amber-500) 10%, transparent)}}.bg-amber-500\\/15{background-color:#f99c0026}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\\/15{background-color:color-mix(in oklab, var(--color-amber-500) 15%, transparent)}}.bg-black\\/55{background-color:#0000008c}@supports (color:color-mix(in lab, red, red)){.bg-black\\/55{background-color:color-mix(in oklab, var(--color-black) 55%, transparent)}}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\\/60{background-color:color-mix(in oklab, var(--color-black) 60%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\\/10{background-color:color-mix(in oklab, var(--color-blue-500) 10%, transparent)}}.bg-blue-500\\/15{background-color:#3080ff26}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\\/15{background-color:color-mix(in oklab, var(--color-blue-500) 15%, transparent)}}.bg-code{background-color:var(--color-code)}.bg-cyan-100{background-color:var(--color-cyan-100)}.bg-cyan-500\\/15{background-color:#00b7d726}@supports (color:color-mix(in lab, red, red)){.bg-cyan-500\\/15{background-color:color-mix(in oklab, var(--color-cyan-500) 15%, transparent)}}.bg-danger{background-color:var(--color-danger)}.bg-danger-bg,.bg-danger-bg\\/40{background-color:var(--color-danger-bg)}@supports (color:color-mix(in lab, red, red)){.bg-danger-bg\\/40{background-color:color-mix(in oklab, var(--color-danger-bg) 40%, transparent)}}.bg-danger\\/5{background-color:var(--color-danger)}@supports (color:color-mix(in lab, red, red)){.bg-danger\\/5{background-color:color-mix(in oklab, var(--color-danger) 5%, transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\\/10{background-color:color-mix(in oklab, var(--color-emerald-500) 10%, transparent)}}.bg-emerald-500\\/15{background-color:#00bb7f26}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\\/15{background-color:color-mix(in oklab, var(--color-emerald-500) 15%, transparent)}}.bg-fg-subtle{background-color:var(--color-fg-subtle)}.bg-fuchsia-500\\/15{background-color:#e12afb26}@supports (color:color-mix(in lab, red, red)){.bg-fuchsia-500\\/15{background-color:color-mix(in oklab, var(--color-fuchsia-500) 15%, transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\\/15{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.bg-green-500\\/15{background-color:color-mix(in oklab, var(--color-green-500) 15%, transparent)}}.bg-hover{background-color:var(--color-hover)}.bg-indigo-500\\/15{background-color:#625fff26}@supports (color:color-mix(in lab, red, red)){.bg-indigo-500\\/15{background-color:color-mix(in oklab, var(--color-indigo-500) 15%, transparent)}}.bg-line{background-color:var(--color-line)}.bg-line-subtle{background-color:var(--color-line-subtle)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\\/15{background-color:#fe6e0026}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\\/15{background-color:color-mix(in oklab, var(--color-orange-500) 15%, transparent)}}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\\/15{background-color:#ac4bff26}@supports (color:color-mix(in lab, red, red)){.bg-purple-500\\/15{background-color:color-mix(in oklab, var(--color-purple-500) 15%, transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.bg-red-500\\/15{background-color:color-mix(in oklab, var(--color-red-500) 15%, transparent)}}.bg-rose-500{background-color:var(--color-rose-500)}.bg-selected{background-color:var(--color-selected)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-stone-500\\/15{background-color:#79716b26}@supports (color:color-mix(in lab, red, red)){.bg-stone-500\\/15{background-color:color-mix(in oklab, var(--color-stone-500) 15%, transparent)}}.bg-subtle,.bg-subtle\\/40{background-color:var(--color-subtle)}@supports (color:color-mix(in lab, red, red)){.bg-subtle\\/40{background-color:color-mix(in oklab, var(--color-subtle) 40%, transparent)}}.bg-subtle\\/50{background-color:var(--color-subtle)}@supports (color:color-mix(in lab, red, red)){.bg-subtle\\/50{background-color:color-mix(in oklab, var(--color-subtle) 50%, transparent)}}.bg-subtle\\/60{background-color:var(--color-subtle)}@supports (color:color-mix(in lab, red, red)){.bg-subtle\\/60{background-color:color-mix(in oklab, var(--color-subtle) 60%, transparent)}}.bg-success{background-color:var(--color-success)}.bg-success-bg{background-color:var(--color-success-bg)}.bg-surface{background-color:var(--color-surface)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-transparent{background-color:#0000}.bg-violet-100{background-color:var(--color-violet-100)}.bg-violet-500{background-color:var(--color-violet-500)}.bg-violet-500\\/10{background-color:#8d54ff1a}@supports (color:color-mix(in lab, red, red)){.bg-violet-500\\/10{background-color:color-mix(in oklab, var(--color-violet-500) 10%, transparent)}}.bg-violet-500\\/15{background-color:#8d54ff26}@supports (color:color-mix(in lab, red, red)){.bg-violet-500\\/15{background-color:color-mix(in oklab, var(--color-violet-500) 15%, transparent)}}.bg-warning{background-color:var(--color-warning)}.bg-warning-bg{background-color:var(--color-warning-bg)}.bg-warning\\/5{background-color:var(--color-warning)}@supports (color:color-mix(in lab, red, red)){.bg-warning\\/5{background-color:color-mix(in oklab, var(--color-warning) 5%, transparent)}}.bg-yellow-100{background-color:var(--color-yellow-100)}.fill-\\[var\\(--color-fg-subtle\\)\\]{fill:var(--color-fg-subtle)}.fill-amber-500\\/15{fill:#f99c0026}@supports (color:color-mix(in lab, red, red)){.fill-amber-500\\/15{fill:color-mix(in oklab, var(--color-amber-500) 15%, transparent)}}.fill-amber-600{fill:var(--color-amber-600)}.fill-blue-500\\/15{fill:#3080ff26}@supports (color:color-mix(in lab, red, red)){.fill-blue-500\\/15{fill:color-mix(in oklab, var(--color-blue-500) 15%, transparent)}}.fill-blue-600{fill:var(--color-blue-600)}.fill-danger{fill:var(--color-danger)}.fill-emerald-500\\/15{fill:#00bb7f26}@supports (color:color-mix(in lab, red, red)){.fill-emerald-500\\/15{fill:color-mix(in oklab, var(--color-emerald-500) 15%, transparent)}}.fill-emerald-600{fill:var(--color-emerald-600)}.fill-fg-muted{fill:var(--color-fg-muted)}.fill-fg-subtle{fill:var(--color-fg-subtle)}.fill-red-500{fill:var(--color-red-500)}.fill-rose-500\\/15{fill:#ff235726}@supports (color:color-mix(in lab, red, red)){.fill-rose-500\\/15{fill:color-mix(in oklab, var(--color-rose-500) 15%, transparent)}}.fill-rose-600{fill:var(--color-rose-600)}.fill-sky-500\\/15{fill:#00a5ef26}@supports (color:color-mix(in lab, red, red)){.fill-sky-500\\/15{fill:color-mix(in oklab, var(--color-sky-500) 15%, transparent)}}.fill-sky-600{fill:var(--color-sky-600)}.fill-teal-500\\/15{fill:#00baa726}@supports (color:color-mix(in lab, red, red)){.fill-teal-500\\/15{fill:color-mix(in oklab, var(--color-teal-500) 15%, transparent)}}.fill-teal-600{fill:var(--color-teal-600)}.fill-violet-500\\/15{fill:#8d54ff26}@supports (color:color-mix(in lab, red, red)){.fill-violet-500\\/15{fill:color-mix(in oklab, var(--color-violet-500) 15%, transparent)}}.fill-violet-600{fill:var(--color-violet-600)}.fill-warning{fill:var(--color-warning)}.fill-white{fill:var(--color-white)}.stroke-accent{stroke:var(--color-accent)}.stroke-amber-500\\/60{stroke:#f99c0099}@supports (color:color-mix(in lab, red, red)){.stroke-amber-500\\/60{stroke:color-mix(in oklab, var(--color-amber-500) 60%, transparent)}}.stroke-blue-500\\/60{stroke:#3080ff99}@supports (color:color-mix(in lab, red, red)){.stroke-blue-500\\/60{stroke:color-mix(in oklab, var(--color-blue-500) 60%, transparent)}}.stroke-emerald-500\\/60{stroke:#00bb7f99}@supports (color:color-mix(in lab, red, red)){.stroke-emerald-500\\/60{stroke:color-mix(in oklab, var(--color-emerald-500) 60%, transparent)}}.stroke-fg-subtle{stroke:var(--color-fg-subtle)}.stroke-red-500{stroke:var(--color-red-500)}.stroke-rose-500\\/60{stroke:#ff235799}@supports (color:color-mix(in lab, red, red)){.stroke-rose-500\\/60{stroke:color-mix(in oklab, var(--color-rose-500) 60%, transparent)}}.stroke-sky-500\\/60{stroke:#00a5ef99}@supports (color:color-mix(in lab, red, red)){.stroke-sky-500\\/60{stroke:color-mix(in oklab, var(--color-sky-500) 60%, transparent)}}.stroke-teal-500\\/60{stroke:#00baa799}@supports (color:color-mix(in lab, red, red)){.stroke-teal-500\\/60{stroke:color-mix(in oklab, var(--color-teal-500) 60%, transparent)}}.stroke-violet-500\\/60{stroke:#8d54ff99}@supports (color:color-mix(in lab, red, red)){.stroke-violet-500\\/60{stroke:color-mix(in oklab, var(--color-violet-500) 60%, transparent)}}.stroke-\\[2\\.5px\\]{stroke-width:2.5px}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-px{padding-block-start:1px;padding-block-end:1px}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:var(--spacing)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-7{padding-right:calc(var(--spacing) * 7)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-7{padding-left:calc(var(--spacing) * 7)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent,.text-accent\\/80{color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.text-accent\\/80{color:color-mix(in oklab, var(--color-accent) 80%, transparent)}}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-cyan-500{color:var(--color-cyan-500)}.text-cyan-600{color:var(--color-cyan-600)}.text-danger{color:var(--color-danger)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-fg{color:var(--color-fg)}.text-fg-muted,.text-fg-muted\\/70{color:var(--color-fg-muted)}@supports (color:color-mix(in lab, red, red)){.text-fg-muted\\/70{color:color-mix(in oklab, var(--color-fg-muted) 70%, transparent)}}.text-fg-muted\\/80{color:var(--color-fg-muted)}@supports (color:color-mix(in lab, red, red)){.text-fg-muted\\/80{color:color-mix(in oklab, var(--color-fg-muted) 80%, transparent)}}.text-fg-subtle,.text-fg-subtle\\/60{color:var(--color-fg-subtle)}@supports (color:color-mix(in lab, red, red)){.text-fg-subtle\\/60{color:color-mix(in oklab, var(--color-fg-subtle) 60%, transparent)}}.text-fuchsia-500{color:var(--color-fuchsia-500)}.text-fuchsia-600{color:var(--color-fuchsia-600)}.text-gray-50{color:var(--color-gray-50)}.text-gray-100{color:var(--color-gray-100)}.text-gray-500{color:var(--color-gray-500)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-indigo-500{color:var(--color-indigo-500)}.text-indigo-600{color:var(--color-indigo-600)}.text-line{color:var(--color-line)}.text-line-subtle{color:var(--color-line-subtle)}.text-orange-600{color:var(--color-orange-600)}.text-orange-700{color:var(--color-orange-700)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-sky-500{color:var(--color-sky-500)}.text-sky-600{color:var(--color-sky-600)}.text-stone-600{color:var(--color-stone-600)}.text-success{color:var(--color-success)}.text-surface{color:var(--color-surface)}.text-violet-500{color:var(--color-violet-500)}.text-violet-600{color:var(--color-violet-600)}.text-violet-600\\/70{color:#7f22feb3}@supports (color:color-mix(in lab, red, red)){.text-violet-600\\/70{color:color-mix(in oklab, var(--color-violet-600) 70%, transparent)}}.text-violet-700{color:var(--color-violet-700)}.text-warning{color:var(--color-warning)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_0_\\#d4d4d8\\]{--tw-shadow:0 1px 0 var(--tw-shadow-color,#d4d4d8);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-accent,.ring-accent\\/20{--tw-ring-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.ring-accent\\/20{--tw-ring-color:color-mix(in oklab, var(--color-accent) 20%, transparent)}}.ring-danger{--tw-ring-color:var(--color-danger)}.ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.row-virtual{content-visibility:auto;contain-intrinsic-size:auto 32px}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:bg-accent:is(:where(.group):hover *){background-color:var(--color-accent)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\\/stat\\:underline:is(:where(.group\\/stat):hover *){text-decoration-line:underline}}.group-focus-visible\\:bg-accent:is(:where(.group):focus-visible *){background-color:var(--color-accent)}.last\\:mr-0:last-child{margin-right:0}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-danger-border:hover{border-color:var(--color-danger-border)}.hover\\:bg-accent:hover,.hover\\:bg-accent\\/5:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/5:hover{background-color:color-mix(in oklab, var(--color-accent) 5%, transparent)}}.hover\\:bg-accent\\/10:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/10:hover{background-color:color-mix(in oklab, var(--color-accent) 10%, transparent)}}.hover\\:bg-accent\\/15:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/15:hover{background-color:color-mix(in oklab, var(--color-accent) 15%, transparent)}}.hover\\:bg-accent\\/20:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/20:hover{background-color:color-mix(in oklab, var(--color-accent) 20%, transparent)}}.hover\\:bg-accent\\/90:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/90:hover{background-color:color-mix(in oklab, var(--color-accent) 90%, transparent)}}.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}.hover\\:bg-danger-bg:hover,.hover\\:bg-danger-bg\\/60:hover{background-color:var(--color-danger-bg)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger-bg\\/60:hover{background-color:color-mix(in oklab, var(--color-danger-bg) 60%, transparent)}}.hover\\:bg-danger-bg\\/70:hover{background-color:var(--color-danger-bg)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger-bg\\/70:hover{background-color:color-mix(in oklab, var(--color-danger-bg) 70%, transparent)}}.hover\\:bg-danger-bg\\/80:hover{background-color:var(--color-danger-bg)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger-bg\\/80:hover{background-color:color-mix(in oklab, var(--color-danger-bg) 80%, transparent)}}.hover\\:bg-emerald-500\\/25:hover{background-color:#00bb7f40}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-emerald-500\\/25:hover{background-color:color-mix(in oklab, var(--color-emerald-500) 25%, transparent)}}.hover\\:bg-gray-400:hover{background-color:var(--color-gray-400)}.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}.hover\\:bg-hover:hover,.hover\\:bg-hover\\/50:hover{background-color:var(--color-hover)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-hover\\/50:hover{background-color:color-mix(in oklab, var(--color-hover) 50%, transparent)}}.hover\\:bg-orange-400:hover{background-color:var(--color-orange-400)}.hover\\:bg-purple-400:hover{background-color:var(--color-purple-400)}.hover\\:bg-red-400:hover{background-color:var(--color-red-400)}.hover\\:bg-red-500\\/25:hover{background-color:#fb2c3640}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-500\\/25:hover{background-color:color-mix(in oklab, var(--color-red-500) 25%, transparent)}}.hover\\:bg-subtle:hover{background-color:var(--color-subtle)}.hover\\:bg-violet-500\\/25:hover{background-color:#8d54ff40}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-violet-500\\/25:hover{background-color:color-mix(in oklab, var(--color-violet-500) 25%, transparent)}}.hover\\:bg-warning-bg:hover,.hover\\:bg-warning-bg\\/80:hover{background-color:var(--color-warning-bg)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-warning-bg\\/80:hover{background-color:color-mix(in oklab, var(--color-warning-bg) 80%, transparent)}}.hover\\:text-accent:hover{color:var(--color-accent)}.hover\\:text-danger:hover{color:var(--color-danger)}.hover\\:text-fg:hover{color:var(--color-fg)}.hover\\:text-fg-muted:hover{color:var(--color-fg-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:border-accent:focus{border-color:var(--color-accent)}.focus\\:border-line:focus{border-color:var(--color-line)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-accent:focus{--tw-ring-color:var(--color-accent)}.focus\\:ring-danger:focus{--tw-ring-color:var(--color-danger)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:bg-hover:focus-visible{background-color:var(--color-hover)}.focus-visible\\:opacity-100:focus-visible{opacity:1}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-accent:focus-visible{--tw-ring-color:var(--color-accent)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-accent:focus-visible{outline-color:var(--color-accent)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}@media (hover:hover){.disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}@media (min-width:40rem){.sm\\:inline{display:inline}.sm\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width:48rem){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width>=28rem){.\\@md\\:block{display:block}.\\@md\\:flex{display:flex}.\\@md\\:hidden{display:none}.\\@md\\:w-72{width:calc(var(--spacing) * 72)}.\\@md\\:shrink-0{flex-shrink:0}.\\@md\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}}}*{box-sizing:border-box}:host,:root{--at-surface:#fcfdfe;--at-surface-hover:#f5f6f9;--at-muted:#f2f5f8;--at-code:#f3f6fa;--at-text-primary:#1a1f29;--at-text-secondary:#515864;--at-text-muted:#868d97;--at-border:#dfe1e5;--at-border-light:#eef0f3;--at-shadow:#171f2e1a;--at-accent:#3177dc;--at-error-bg:#ffecea;--at-error-text:#cc2827;--at-error-border:#f8a49d;--at-ok-bg:#e0fae4;--at-ok-text:#0e8c41;--at-ok-border:#89da9b;--at-warn-bg:#fff0d1;--at-warn-text:#a16500;--at-warn-border:#e5c379;--at-highlight-bg:#fff6d1;--at-selected-bg:#e9f3ff;--at-scrollbar-thumb:#ced1d6;--at-scrollbar-thumb-hover:#999fa8}@supports (color:color(display-p3 0 0 0)){:host,:root{--at-surface:color(display-p3 .989609 .992382 .997175);--at-surface-hover:color(display-p3 .960878 .966392 .975929);--at-muted:color(display-p3 .951795 .958673 .970576);--at-code:color(display-p3 .955784 .964045 .978342);--at-text-primary:color(display-p3 .106201 .12247 .157281);--at-text-secondary:color(display-p3 .323937 .346032 .388256);--at-text-muted:color(display-p3 .528711 .550898 .589512);--at-border:color(display-p3 .875378 .883503 .897566);--at-border-light:color(display-p3 .934839 .941694 .953557);--at-shadow:color(display-p3 .0979137 .121845 .174352/.1);--at-accent:color(display-p3 .266557 .461859 .837181);--at-error-bg:color(display-p3 1.00853 .923821 .911661);--at-error-text:color(display-p3 .7372 .221951 .191652);--at-error-border:color(display-p3 .924106 .659231 .626897);--at-ok-bg:color(display-p3 .896905 .977035 .900254);--at-ok-text:color(display-p3 .247857 .539374 .286752);--at-ok-border:color(display-p3 .609805 .847347 .627399);--at-warn-bg:color(display-p3 .997819 .943515 .816698);--at-warn-text:color(display-p3 .607081 .403503 .0845266);--at-warn-border:color(display-p3 .876737 .768181 .515098);--at-highlight-bg:color(display-p3 .994932 .96424 .830533);--at-selected-bg:color(display-p3 .910207 .951093 1.02232);--at-scrollbar-thumb:color(display-p3 .80912 .819793 .838278);--at-scrollbar-thumb-hover:color(display-p3 .60332 .622263 .655172)}}@supports (color:lab(0% 0 0)){:host,:root{--at-surface:lab(99.2988% -.132054 -.745118);--at-surface-hover:lab(96.9735% -.261605 -1.48877);--at-muted:lab(96.2747% -.325292 -1.86008);--at-code:lab(96.736% -.388592 -2.23104);--at-text-primary:lab(11.741% -.349499 -7.30943);--at-text-secondary:lab(37.2801% -.862852 -7.73156);--at-text-muted:lab(58.1854% -1.04666 -6.62941);--at-border:lab(89.5439% -.387847 -2.23061);--at-border-light:lab(94.7667% -.325233 -1.86);--at-shadow:lab(11.6682% -.113927 -10.842/.1);--at-accent:lab(49.8997% 5.63273 -59.1615);--at-error-bg:lab(95.0829% 9.19622 4.96011);--at-error-text:lab(45.8049% 62.9533 44.1);--at-error-border:lab(75.8489% 31.0226 17.1029);--at-ok-bg:lab(95.8936% -11.84 7.56052);--at-ok-text:lab(50.824% -45.5785 30.3918);--at-ok-border:lab(80.6679% -35.8792 23.2774);--at-warn-bg:lab(95.5261% 2.02972 19.535);--at-warn-text:lab(48.6413% 21.7782 63.415);--at-warn-border:lab(80.5062% 5.88706 41.41);--at-highlight-bg:lab(96.7959% -.972748 19.4827);--at-selected-bg:lab(95.2674% -1.71572 -11.035);--at-scrollbar-thumb:lab(83.7382% -.510752 -2.97043);--at-scrollbar-thumb-hover:lab(65.1562% -.902712 -5.53997)}}:host([data-theme=dark]),:root[data-theme=dark]{--at-surface:#151b25;--at-surface-hover:#1d2431;--at-muted:#191f2b;--at-code:#1b222d;--at-text-primary:#dfe5ed;--at-text-secondary:#9ca5b3;--at-text-muted:#727b88;--at-border:#2e3643;--at-border-light:#232934;--at-shadow:#00000073;--at-accent:#63a6ff;--at-error-bg:#742e2940;--at-error-text:#ff7f73;--at-error-border:#cf413a;--at-ok-bg:#39794933;--at-ok-text:#6ed889;--at-ok-border:#2e9e52;--at-warn-bg:#7e5d1d38;--at-warn-text:#f1bf5b;--at-warn-border:#b07b00;--at-highlight-bg:#b8a4571f;--at-selected-bg:#6087c22e;--at-scrollbar-thumb:#3d434d;--at-scrollbar-thumb-hover:#565e6c}@supports (color:color(display-p3 0 0 0)){:host([data-theme=dark]),:root[data-theme=dark]{--at-surface:color(display-p3 .0866362 .104012 .141551);--at-surface-hover:color(display-p3 .119527 .140938 .187194);--at-muted:color(display-p3 .10291 .122282 .164135);--at-code:color(display-p3 .112011 .131618 .173879);--at-text-primary:color(display-p3 .880198 .897517 .925177);--at-text-secondary:color(display-p3 .618009 .647763 .695453);--at-text-muted:color(display-p3 .454817 .481202 .527256);--at-border:color(display-p3 .187231 .209329 .256415);--at-border-light:color(display-p3 .14159 .16023 .200008);--at-shadow:color(display-p3 0 0 0/.45);--at-accent:color(display-p3 .445537 .644287 .978823);--at-error-bg:color(display-p3 .422373 .197971 .171651/.25);--at-error-text:color(display-p3 .938127 .52257 .468553);--at-error-border:color(display-p3 .751519 .297873 .256966);--at-ok-bg:color(display-p3 .287508 .467968 .304198/.2);--at-ok-text:color(display-p3 .538207 .838899 .565385);--at-ok-border:color(display-p3 .319936 .612208 .354223);--at-warn-bg:color(display-p3 .474062 .369044 .161788/.22);--at-warn-text:color(display-p3 .915105 .755059 .421563);--at-warn-border:color(display-p3 .660566 .489104 .15495);--at-highlight-bg:color(display-p3 .708898 .646062 .385093/.12);--at-selected-bg:color(display-p3 .407909 .526271 .742584/.18);--at-scrollbar-thumb:color(display-p3 .241934 .260441 .299404);--at-scrollbar-thumb-hover:color(display-p3 .342885 .367416 .419047)}}@supports (color:lab(0% 0 0)){:host([data-theme=dark]),:root[data-theme=dark]{--at-surface:lab(9.40435% -.26536 -8.00193);--at-surface-hover:lab(14.0233% -.313595 -9.45683);--at-muted:lab(11.7138% -.289485 -8.72938);--at-code:lab(12.8756% -.320837 -8.73908);--at-text-primary:lab(90.6923% -.891328 -4.41389);--at-text-secondary:lab(67.4629% -1.51783 -8.03232);--at-text-muted:lab(51.2096% -1.21292 -8.07107);--at-border:lab(22.1597% -.497714 -9.15806);--at-border-light:lab(16.373% -.418156 -8.05204);--at-shadow:lab(0% 0 0/.45);--at-accent:lab(66.6499% -1.4444 -52.3046);--at-error-bg:lab(29.4384% 31.1218 19.7271/.25);--at-error-text:lab(68.3188% 49.5998 30.86);--at-error-border:lab(49.5145% 56.3761 37.3383);--at-ok-bg:lab(45.5916% -30.0637 19.6786/.2);--at-ok-text:lab(78.7102% -45.0683 29.4705);--at-ok-border:lab(57.7987% -45.4011 30.0617);--at-warn-bg:lab(42.0282% 9.23485 40.2236/.22);--at-warn-text:lab(80.4197% 11.1201 56.0991);--at-warn-border:lab(55.853% 15.6735 62.0226);--at-highlight-bg:lab(67.9375% .259876 42.1122/.12);--at-selected-bg:lab(55.3782% -1.45972 -35.4324/.18);--at-scrollbar-thumb:lab(27.992% -.544697 -7.38333);--at-scrollbar-thumb-hover:lab(39.5702% -.685155 -9.23098)}}@media (prefers-color-scheme:dark){:host([data-theme=system]),:root[data-theme=system]{--at-surface:#151b25;--at-surface-hover:#1d2431;--at-muted:#191f2b;--at-code:#1b222d;--at-text-primary:#dfe5ed;--at-text-secondary:#9ca5b3;--at-text-muted:#727b88;--at-border:#2e3643;--at-border-light:#232934;--at-shadow:#00000073;--at-accent:#63a6ff;--at-error-bg:#742e2940;--at-error-text:#ff7f73;--at-error-border:#cf413a;--at-ok-bg:#39794933;--at-ok-text:#6ed889;--at-ok-border:#2e9e52;--at-highlight-bg:#b8a4571f;--at-selected-bg:#6087c22e;--at-scrollbar-thumb:#3d434d;--at-scrollbar-thumb-hover:#565e6c}@supports (color:color(display-p3 0 0 0)){:host([data-theme=system]),:root[data-theme=system]{--at-surface:color(display-p3 .0866362 .104012 .141551);--at-surface-hover:color(display-p3 .119527 .140938 .187194);--at-muted:color(display-p3 .10291 .122282 .164135);--at-code:color(display-p3 .112011 .131618 .173879);--at-text-primary:color(display-p3 .880198 .897517 .925177);--at-text-secondary:color(display-p3 .618009 .647763 .695453);--at-text-muted:color(display-p3 .454817 .481202 .527256);--at-border:color(display-p3 .187231 .209329 .256415);--at-border-light:color(display-p3 .14159 .16023 .200008);--at-shadow:color(display-p3 0 0 0/.45);--at-accent:color(display-p3 .445537 .644287 .978823);--at-error-bg:color(display-p3 .422373 .197971 .171651/.25);--at-error-text:color(display-p3 .938127 .52257 .468553);--at-error-border:color(display-p3 .751519 .297873 .256966);--at-ok-bg:color(display-p3 .287508 .467968 .304198/.2);--at-ok-text:color(display-p3 .538207 .838899 .565385);--at-ok-border:color(display-p3 .319936 .612208 .354223);--at-highlight-bg:color(display-p3 .708898 .646062 .385093/.12);--at-selected-bg:color(display-p3 .407909 .526271 .742584/.18);--at-scrollbar-thumb:color(display-p3 .241934 .260441 .299404);--at-scrollbar-thumb-hover:color(display-p3 .342885 .367416 .419047)}}@supports (color:lab(0% 0 0)){:host([data-theme=system]),:root[data-theme=system]{--at-surface:lab(9.40435% -.26536 -8.00193);--at-surface-hover:lab(14.0233% -.313595 -9.45683);--at-muted:lab(11.7138% -.289485 -8.72938);--at-code:lab(12.8756% -.320837 -8.73908);--at-text-primary:lab(90.6923% -.891328 -4.41389);--at-text-secondary:lab(67.4629% -1.51783 -8.03232);--at-text-muted:lab(51.2096% -1.21292 -8.07107);--at-border:lab(22.1597% -.497714 -9.15806);--at-border-light:lab(16.373% -.418156 -8.05204);--at-shadow:lab(0% 0 0/.45);--at-accent:lab(66.6499% -1.4444 -52.3046);--at-error-bg:lab(29.4384% 31.1218 19.7271/.25);--at-error-text:lab(68.3188% 49.5998 30.86);--at-error-border:lab(49.5145% 56.3761 37.3383);--at-ok-bg:lab(45.5916% -30.0637 19.6786/.2);--at-ok-text:lab(78.7102% -45.0683 29.4705);--at-ok-border:lab(57.7987% -45.4011 30.0617);--at-highlight-bg:lab(67.9375% .259876 42.1122/.12);--at-selected-bg:lab(55.3782% -1.45972 -35.4324/.18);--at-scrollbar-thumb:lab(27.992% -.544697 -7.38333);--at-scrollbar-thumb-hover:lab(39.5702% -.685155 -9.23098)}}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--at-scrollbar-thumb,#d4d4d8);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--at-scrollbar-thumb-hover,#a1a1aa)}.waterfall-row:hover .waterfall-bar{filter:brightness(1.1)}.waterfall-bar{transition:all .15s ease-out}.trace-list-container{container-type:inline-size}.trace-grid{grid-template-columns:20px 104px minmax(0,1fr) 84px 52px 88px 60px 16px;align-items:center;gap:.75rem;display:grid}@container (width<=640px){.trace-grid{grid-template-columns:20px 92px minmax(0,1fr) 80px 58px 16px}.trace-col-spans,.trace-col-time{display:none}}@keyframes at-modal-in{0%{opacity:0;transform:translateY(6px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes at-fade-in{0%{opacity:0}to{opacity:1}}.at-modal-in{animation:.17s cubic-bezier(.22,1,.36,1) at-modal-in}.at-backdrop-in{animation:.17s ease-out at-fade-in}.at-wrap-anywhere{overflow-wrap:anywhere;word-break:normal}.at-no-scrollbar{scrollbar-width:none}.at-no-scrollbar::-webkit-scrollbar{display:none}@media (prefers-reduced-motion:reduce){.at-modal-in,.at-backdrop-in{animation:none}}.at-edge-label{paint-order:stroke;stroke:var(--color-surface);stroke-width:3px;stroke-linejoin:round}:where(a,button,[role=button],input,select,textarea,summary,[tabindex]:not([tabindex="-1"])):focus-visible{outline:2px solid var(--at-accent);outline-offset:2px}:where([data-focus-inset]):focus-visible{outline-offset:-2px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}`,Xj=class extends HTMLElement{constructor(...e){super(...e),b(this,`cleanup`,null)}connectedCallback(){let e=this.attachShadow({mode:`open`}),t=document.createElement(`link`);t.rel=`stylesheet`,t.href=`https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap`,e.appendChild(t);let n=document.createElement(`style`);n.textContent=Yj,e.appendChild(n);let r=this.getAttribute(`mode`)||`widget`,i=this.getAttribute(`ws-url`)||this.deriveWsUrl();this.cleanup=Jj(e,{mode:r,wsUrl:i})}disconnectedCallback(){this.cleanup?.(),this.cleanup=null}deriveWsUrl(){return`ws://${location.host}/ws`}};b(Xj,`observedAttributes`,[`mode`,`ws-url`]);function Zj(){customElements.get(`autotel-devtools`)||customElements.define(`autotel-devtools`,Xj)}var Qj=document.currentScript;function $j(){let e=Zu(location.hash);return Object.keys(e).length>0?e:void 0}function eM(){let e=$j();if(!Qj?.src)return{mode:`widget`,wsUrl:`ws://${location.host}/ws`,deepLink:e};let t=new URL(Qj.src),n=t.searchParams;return{mode:n.get(`mode`)||`widget`,wsUrl:n.get(`ws`)||`ws://${t.host}/ws`,deepLink:e}}function tM(){if(Zj(),document.querySelector(`autotel-devtools`))return;let{mode:e,wsUrl:t,deepLink:n}=eM(),r=document.createElement(`div`);r.id=`autotel-devtools-root`,document.body.appendChild(r);let i=r.attachShadow({mode:`open`}),a=document.createElement(`style`);a.textContent=Yj,i.appendChild(a),Jj(i,{mode:e,wsUrl:t,deepLink:n})}return document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,tM):tM(),e.mountWidget=Jj,e.registerElement=Zj,e})({});
1
+ var AutotelDevtools=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,l=Array.prototype,u=Object.getPrototypeOf,d=Object.isExtensible;function f(e){return typeof e==`function`}var p=()=>{};function m(e){for(var t=0;t<e.length;t++)e[t]()}function h(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function g(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}function _(e){"@babel/helpers - typeof";return _=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_(e)}function v(e,t){if(_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function y(e){var t=v(e,`string`);return _(t)==`symbol`?t:t+``}function b(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=1<<24,S=1024,C=2048,w=4096,ee=8192,te=16384,ne=32768,re=1<<25,ie=65536,ae=1<<19,oe=1<<20,se=1<<25,ce=65536,le=1<<21,ue=1<<22,T=1<<23,de=Symbol(`$state`),fe=Symbol(`legacy props`),pe=Symbol(``),me=Symbol(`attributes`),he=Symbol(`class`),ge=Symbol(`style`),_e=Symbol(`text`),ve=Symbol(`form reset`),ye=new class extends Error{constructor(...e){super(...e),b(this,`name`,`StaleReactionError`),b(this,`message`,"The reaction that called `getAbortSignal()` was re-run or destroyed")}},be=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function xe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Se(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ce(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function we(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Te(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ee(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function De(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Oe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ke(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ae(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function je(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Me(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ne={},Pe=Symbol(`uninitialized`),Fe=`http://www.w3.org/2000/svg`,Ie=`@attach`;function Le(){console.warn(`https://svelte.dev/e/derived_inert`)}function Re(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ze(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Be(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var Ve=!1;function He(e){Ve=e}var Ue;function We(e){if(e===null)throw Re(),Ne;return Ue=e}function Ge(){return We(Dr(Ue))}function E(e){if(Ve){if(Dr(Ue)!==null)throw Re(),Ne;Ue=e}}function Ke(e=1){if(Ve){for(var t=e,n=Ue;t--;)n=Dr(n);Ue=n}}function qe(e=!0){for(var t=0,n=Ue;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Dr(n);e&&n.remove(),n=i}}function Je(e){if(!e||e.nodeType!==8)throw Re(),Ne;return e.data}function Ye(e){return e===this.v}function Xe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ze(e){return!Xe(e,this.v)}var Qe=null;function $e(e){Qe=e}function et(e){return st(`getContext`).get(e)}function tt(e,t){return st(`setContext`).set(e,t),t}function nt(e){return st(`hasContext`).has(e)}function rt(){return st(`getAllContexts`)}function it(e,t=!1,n){Qe={p:Qe,i:!1,c:null,e:null,s:e,x:null,r:pi,l:null}}function at(e){var t=Qe,n=t.e;if(n!==null){t.e=null;for(var r of n)zr(r)}return e!==void 0&&(t.x=e),t.i=!0,Qe=t.p,e??{}}function ot(){return!0}function st(e){var t;return Qe===null&&xe(e),(t=Qe).c??(t.c=new Map(ct(Qe)||void 0))}function ct(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var lt=[];function ut(){var e=lt;lt=[],m(e)}function dt(e){if(lt.length===0&&!Tn){var t=lt;queueMicrotask(()=>{t===lt&&ut()})}lt.push(e)}function ft(){for(;lt.length>0;)ut()}function pt(e){var t=pi;if(t===null)return ui.f|=T,e;if(!(t.f&32768)&&!(t.f&4))throw e;mt(e,t)}function mt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var ht=~(C|w|S);function gt(e,t){e.f=e.f&ht|t}function _t(e){e.f&512||e.deps===null?gt(e,S):gt(e,w)}function vt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,vt(t.deps))}function yt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),vt(e.deps),gt(e,S)}var bt=!1;function xt(e){var t=bt;try{return bt=!1,[e(),bt]}finally{bt=t}}function St(e,t){if(t){let t=document.body;e.autofocus=!0,dt(()=>{document.activeElement===t&&e.focus()})}}var Ct=!1;function wt(){Ct||(Ct=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[ve]?.()})},{capture:!0}))}function Tt(e){var t=ui,n=pi;fi(null),mi(null);try{return e()}finally{fi(t),mi(n)}}function Et(e,t,n,r=n){e.addEventListener(t,()=>Tt(n));let i=e[ve];e[ve]=i?()=>{i(),r(!0)}:()=>r(!0),wt()}function Dt(e){let t=0,n=dr(0),r;return()=>{Ir()&&(L(n),Gr(()=>(t===0&&(r=Fi(()=>e(()=>hr(n)))),t+=1,()=>{dt(()=>{--t,t===0&&(r?.(),r=void 0,hr(n))})})))}}function Ot(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function kt(e,t){Ot(e,t),t.add(e)}function D(e,t,n){Ot(e,t),t.set(e,n)}function O(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function k(e,t,n){return e.set(O(e,t),n),n}function A(e,t){return e.get(O(e,t))}var At=ie|ae;function jt(e,t,n,r){new Yt(e,t,n,r)}var Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap,Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,qt=new WeakMap,Jt=new WeakSet,Yt=class{constructor(e,t,n,r){kt(this,Jt),b(this,`parent`,void 0),b(this,`is_pending`,!1),b(this,`transform_error`,void 0),D(this,Mt,void 0),D(this,Nt,Ve?Ue:null),D(this,Pt,void 0),D(this,Ft,void 0),D(this,It,void 0),D(this,Lt,null),D(this,Rt,null),D(this,zt,null),D(this,Bt,null),D(this,Vt,0),D(this,Ht,0),D(this,Ut,!1),D(this,Wt,new Set),D(this,Gt,new Set),D(this,Kt,null),D(this,qt,Dt(()=>(k(Kt,this,dr(A(Vt,this))),()=>{k(Kt,this,null)}))),k(Mt,this,e),k(Pt,this,t),k(Ft,this,e=>{var t=pi;t.b=this,t.f|=128,n(e)}),this.parent=pi.b,this.transform_error=r??this.parent?.transform_error??(e=>e),k(It,this,Kr(()=>{if(Ve){let e=A(Nt,this);Ge();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));O(Jt,this,Zt).call(this,t)}else t?O(Jt,this,$t).call(this):O(Jt,this,Xt).call(this)}else O(Jt,this,en).call(this)},At)),Ve&&k(Mt,this,Ue)}defer_effect(e){yt(e,A(Wt,this),A(Gt,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!A(Pt,this).pending}update_pending_count(e,t){O(Jt,this,rn).call(this,e,t),k(Vt,this,A(Vt,this)+e),!(!A(Kt,this)||A(Ut,this))&&(k(Ut,this,!0),dt(()=>{k(Ut,this,!1),A(Kt,this)&&pr(A(Kt,this),A(Vt,this))}))}get_effect_pending(){return A(qt,this).call(this),L(A(Kt,this))}error(e){if(!A(Pt,this).onerror&&!A(Pt,this).failed)throw e;xn?.is_fork?(A(Lt,this)&&xn.skip_effect(A(Lt,this)),A(Rt,this)&&xn.skip_effect(A(Rt,this)),A(zt,this)&&xn.skip_effect(A(zt,this)),xn.oncommit(()=>{O(Jt,this,an).call(this,e)})):O(Jt,this,an).call(this,e)}};function Xt(){try{k(Lt,this,Jr(()=>A(Ft,this).call(this,A(Mt,this))))}catch(e){this.error(e)}}function Zt(e){let t=A(Pt,this).failed,{reset:n,invoke_onerror:r}=O(Jt,this,Qt).call(this,e);dt(r),t&&k(zt,this,Jr(()=>{t(A(Mt,this),()=>e,()=>n)}))}function Qt(e){var t=!1,n=!1;let r=()=>{if(t){Be();return}t=!0,n&&Me(),A(zt,this)!==null&&ti(A(zt,this),()=>{k(zt,this,null)}),O(Jt,this,nn).call(this,()=>{O(Jt,this,en).call(this)})};return{reset:r,invoke_onerror:()=>{try{n=!0,A(Pt,this).onerror?.(e,r),n=!1}catch(e){mt(e,A(It,this)&&A(It,this).parent)}}}}function $t(){let e=A(Pt,this).pending;e&&(this.is_pending=!0,k(Rt,this,Jr(()=>e(A(Mt,this)))),dt(()=>{var e=k(Bt,this,document.createDocumentFragment()),t=Tr();e.append(t),k(Lt,this,O(Jt,this,nn).call(this,()=>Jr(()=>A(Ft,this).call(this,t)))),A(Ht,this)===0&&(A(Mt,this).before(e),k(Bt,this,null),ti(A(Rt,this),()=>{k(Rt,this,null)}),O(Jt,this,tn).call(this,xn))}))}function en(){try{if(this.is_pending=this.has_pending_snippet(),k(Ht,this,0),k(Vt,this,0),k(Lt,this,Jr(()=>{A(Ft,this).call(this,A(Mt,this))})),A(Ht,this)>0){var e=k(Bt,this,document.createDocumentFragment());ai(A(Lt,this),e);let t=A(Pt,this).pending;k(Rt,this,Jr(()=>t(A(Mt,this))))}else O(Jt,this,tn).call(this,xn)}catch(e){this.error(e)}}function tn(e){this.is_pending=!1,e.transfer_effects(A(Wt,this),A(Gt,this))}function nn(e){var t=pi,n=ui,r=Qe;mi(A(It,this)),fi(A(It,this)),$e(A(It,this).ctx);try{return qn.ensure(),e()}catch(e){return pt(e),null}finally{mi(t),fi(n),$e(r)}}function rn(e,t){if(!this.has_pending_snippet()){if(this.parent){var n;O(Jt,n=this.parent,rn).call(n,e,t)}return}k(Ht,this,A(Ht,this)+e),A(Ht,this)===0&&(O(Jt,this,tn).call(this,t),A(Rt,this)&&ti(A(Rt,this),()=>{k(Rt,this,null)}),A(Bt,this)&&(A(Mt,this).before(A(Bt,this)),k(Bt,this,null)))}function an(e){A(Lt,this)&&(Qr(A(Lt,this)),k(Lt,this,null)),A(Rt,this)&&(Qr(A(Rt,this)),k(Rt,this,null)),A(zt,this)&&(Qr(A(zt,this)),k(zt,this,null)),Ve&&(We(A(Nt,this)),Ke(),We(qe()));let t=A(Pt,this).failed,n=e=>{let{reset:n,invoke_onerror:r}=O(Jt,this,Qt).call(this,e);r(),t&&k(zt,this,O(Jt,this,nn).call(this,()=>{try{return Jr(()=>{var r=pi;r.b=this,r.f|=128,t(A(Mt,this),()=>e,()=>n)})}catch(e){return mt(e,A(It,this).parent),null}}))};dt(()=>{var t;try{t=this.transform_error(e)}catch(e){mt(e,A(It,this)&&A(It,this).parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>mt(e,A(It,this)&&A(It,this).parent)):n(t)})}function on(e,t,n,r){let i=ot()?un:pn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=pi,c=sn(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){mt(e,s)}cn()}}var d=ln();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>fn(e))).then(u).catch(e=>mt(e,s)).finally(d)}l?l.then(()=>{c(),f(),cn()}):f()}function sn(){var e=pi,t=ui,n=Qe,r=xn;return function(i=!0){mi(e),fi(t),$e(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function cn(e=!0){mi(null),fi(null),$e(null),e&&xn?.deactivate()}function ln(){var e=pi,t=e.b,n=xn,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function un(e){var t=2|C;return pi!==null&&(pi.f|=ae),{ctx:Qe,deps:null,effects:null,equals:Ye,f:t,fn:e,reactions:null,rv:0,v:Pe,wv:0,parent:pi,ac:null}}var dn=Symbol(`obsolete`);function fn(e,t,n){let r=pi;r===null&&Se();var i=void 0,a=dr(Pe),o=!ui,s=new Set;return Wr(()=>{var t=pi,n=h();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==ye&&n.reject(e)}).finally(cn)}catch(e){n.reject(e),cn()}var c=xn;if(o){if(t.f&32768)var l=ln();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(dn);else for(let e of s.values())e.reject(dn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==dn&&(c.activate(),t?(a.f|=T,pr(a,t)):(a.f&8388608&&(a.f^=T),pr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Lr(()=>{for(let e of s)e.reject(dn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=un(e);return gi(t),t}function pn(e){let t=un(e);return t.equals=Ze,t}function mn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Qr(t[n])}}function hn(e){var t,n=pi,r=e.parent;if(!ci&&r!==null&&e.v!==Pe&&r.f&24576)return Le(),e.v;mi(r);try{e.f&=~ce,mn(e),t=Oi(e)}finally{mi(n)}return t}function gn(e){var t=hn(e);if(!e.equals(t)&&(e.wv=Ti(),(!xn?.is_fork||e.deps===null)&&(xn===null?e.v=t:(xn.capture(e,t,!0),Sn?.capture(e,t,!0)),e.deps===null))){gt(e,S);return}ci||(Cn===null?_t(e):(Ir()||xn?.is_fork)&&Cn.set(e,t))}function _n(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Tt(()=>{t.ac.abort(ye),t.ac=null}),t.fn!==null&&(t.teardown=p),Ai(t,0),Xr(t))}function vn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&ji(t)}var yn,bn=null,xn=null,Sn=null,Cn=null,wn=null,Tn=!1,En=!1,Dn=null,On=null,kn=0,An=1,jn=new WeakMap,Mn=new WeakMap,Nn=new WeakMap,Pn=new WeakMap,Fn=new WeakMap,In=new WeakMap,Ln=new WeakMap,Rn=new WeakMap,zn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Hn=new WeakMap,Un=new WeakMap,Wn=new WeakMap,Gn=new WeakMap,Kn=new WeakSet,qn=class e{constructor(){kt(this,Kn),b(this,`id`,An++),D(this,jn,!1),b(this,`linked`,!0),D(this,Mn,null),D(this,Nn,null),b(this,`async_deriveds`,new Map),b(this,`current`,new Map),b(this,`previous`,new Map),D(this,Pn,new Set),D(this,Fn,new Set),D(this,In,0),D(this,Ln,new Map),D(this,Rn,null),D(this,zn,[]),D(this,Bn,[]),D(this,Vn,new Set),D(this,Hn,new Set),D(this,Un,new Map),D(this,Wn,new Set),b(this,`is_fork`,!1),D(this,Gn,!1),bn===null?bn=this:(k(Nn,bn,this),k(Mn,this,bn)),bn=this}skip_effect(e){A(Un,this).has(e)||A(Un,this).set(e,{d:[],m:[]}),A(Wn,this).delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=A(Un,this).get(e);if(n){A(Un,this).delete(e);for(var r of n.d)gt(r,C),t(r);for(r of n.m)gt(r,w),t(r)}A(Wn,this).add(e)}capture(e,t,n=!1){e.v!==Pe&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),Cn?.set(e,t)),this.is_fork||(e.v=t)}activate(){xn=this}deactivate(){xn=null,Cn=null}flush(){try{En=!0,xn=this,O(Kn,this,Yn).call(this)}finally{kn=0,wn=null,Dn=null,On=null,En=!1,xn=null,Cn=null,lr.clear()}}discard(){for(let e of A(Fn,this))e(this);A(Fn,this).clear();for(let e of this.async_deriveds.values())e.reject(dn);O(Kn,this,er).call(this),A(Rn,this)?.resolve()}register_created_effect(e){A(Bn,this).push(e)}increment(e,t){if(k(In,this,A(In,this)+1),e){let e=A(Ln,this).get(t)??0;A(Ln,this).set(t,e+1)}}decrement(e,t){if(k(In,this,A(In,this)-1),e){let e=A(Ln,this).get(t)??0;e===1?A(Ln,this).delete(t):A(Ln,this).set(t,e-1)}A(Gn,this)||(k(Gn,this,!0),dt(()=>{k(Gn,this,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)A(Vn,this).add(t);for(let e of t)A(Hn,this).add(e);e.clear(),t.clear()}oncommit(e){A(Pn,this).add(e)}ondiscard(e){A(Fn,this).add(e)}settled(){return(A(Rn,this)??k(Rn,this,h())).promise}static ensure(){if(xn===null){let t=xn=new e;!En&&!Tn&&dt(()=>{A(jn,t)||t.flush()})}return xn}apply(){Cn=null}schedule(e){if(wn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Dn!==null&&t===pi&&(ui===null||!(ui.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=S}}A(zn,this).push(t)}};yn=qn;function Jn(){if(this.is_fork)return!0;for(let n of A(Ln,this).keys()){for(var e=n,t=!1;e.parent!==null;){if(A(Un,this).has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}function Yn(){k(jn,this,!0),kn++>1e3&&(O(Kn,this,er).call(this),nr());for(let e of A(Vn,this))A(Hn,this).delete(e),gt(e,C),this.schedule(e);for(let e of A(Hn,this))gt(e,w),this.schedule(e);let e=A(zn,this);k(zn,this,[]),this.apply();var t=Dn=[],n=[],r=On=[];for(let r of e)try{O(Kn,this,Xn).call(this,r,t,n)}catch(e){throw sr(r),O(Kn,this,Jn).call(this)||this.discard(),e}if(xn=null,r.length>0){var i=yn.ensure();for(let e of r)i.schedule(e)}if(Dn=null,On=null,O(Kn,this,Jn).call(this)){O(Kn,this,$n).call(this,n),O(Kn,this,$n).call(this,t);for(let[e,t]of A(Un,this))or(e,t);r.length>0&&O(Kn,xn,Yn).call(xn);return}let a=O(Kn,this,Zn).call(this);if(a){O(Kn,this,$n).call(this,n),O(Kn,this,$n).call(this,t),O(Kn,a,Qn).call(a,this);return}A(Vn,this).clear(),A(Hn,this).clear();for(let e of A(Pn,this))e(this);A(Pn,this).clear(),Sn=this,ir(n),ir(t),Sn=null,A(Rn,this)?.resolve();var o=xn;if(A(In,this)===0&&(A(zn,this).length===0||o!==null)&&O(Kn,this,er).call(this),A(zn,this).length>0){if(o!==null){let e=o;A(zn,e).push(...A(zn,this).filter(t=>!A(zn,e).includes(t)))}else o=this}o!==null&&O(Kn,o,Yn).call(o)}function Xn(e,t,n){e.f^=S;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||A(Un,this).has(r))&&r.fn!==null){a?r.f^=S:i&4?t.push(r):Ei(r)&&(i&16&&A(Hn,this).add(r),ji(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}function Zn(){for(var e=A(Mn,this);e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=A(Mn,e)}return null}function Qn(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(A(Vn,e),A(Hn,e));let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(A(Hn,this).delete(i),gt(i,C),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),O(Kn,e,er).call(e),xn=this,O(Kn,this,Yn).call(this)}function $n(e){for(var t=0;t<e.length;t+=1)yt(e[t],A(Vn,this),A(Hn,this))}function er(){if(this.linked){var e=A(Mn,this),t=A(Nn,this);e===null||k(Nn,e,t),t===null?bn=e:k(Mn,t,e),this.linked=!1}}function tr(e){var t=Tn;Tn=!0;try{var n;for(e&&(xn!==null&&!xn.is_fork&&xn.flush(),n=e());;){if(ft(),xn===null)return n;xn.flush()}}finally{Tn=t}}function nr(){try{De()}catch(e){mt(e,wn)}}var rr=null;function ir(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ei(r)&&(rr=new Set,ji(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&ei(r),rr?.size>0)){lr.clear();for(let e of rr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)rr.has(n)&&(rr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ji(n)}}rr.clear()}}rr=null}}function ar(e){xn.schedule(e)}function or(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),gt(e,S);for(var n=e.first;n!==null;)or(n,t),n=n.next}}function sr(e){gt(e,S);for(var t=e.first;t!==null;)sr(t),t=t.next}var cr=new Set,lr=new Map,ur=!1;function dr(e,t){return{f:0,v:e,reactions:null,equals:Ye,rv:0,wv:0}}function M(e,t){let n=dr(e,t);return gi(n),n}function fr(e,t=!1,n=!0){let r=dr(e);return t||(r.equals=Ze),r}function N(e,t,n=!1){return ui!==null&&(!di||ui.f&131072)&&ot()&&ui.f&4325394&&(hi===null||!hi.has(e))&&je(),pr(e,n?_r(t):t,On)}function pr(e,t,n=null){if(!e.equals(t)){lr.set(e,ci?t:e.v);var r=qn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&hn(t),Cn===null&&_t(t)}e.wv=Ti(),gr(e,C,n),ot()&&pi!==null&&pi.f&1024&&!(pi.f&96)&&(yi===null?bi([e]):yi.push(e)),!r.is_fork&&cr.size>0&&!ur&&mr()}return t}function mr(){ur=!1;for(let e of cr){e.f&1024&&gt(e,w);let t;try{t=Ei(e)}catch{t=!0}t&&ji(e)}cr.clear()}function hr(e){N(e,e.v+1)}function gr(e,t,n){var r=e.reactions;if(r!==null)for(var i=ot(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===pi)){var l=(c&C)===0;if(l&&gt(s,t),c&131072)cr.add(s);else if(c&2){var u=s;Cn?.delete(u),c&65536||(c&512&&(pi===null||!(pi.f&2097152))&&(s.f|=ce),gr(u,w,n))}else if(l){var d=s;c&16&&rr!==null&&rr.add(d),n===null?ar(d):n.push(d)}}}}function _r(e){if(typeof e!=`object`||!e||de in e)return e;let n=u(e);if(n!==c&&n!==l)return e;var r=new Map,i=t(e),a=M(0),s=null,d=Ci,f=e=>{if(Ci===d)return e();var t=ui,n=Ci;fi(null),wi(d);var r=e();return fi(t),wi(n),r};return i&&r.set(`length`,M(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&ke();var i=r.get(t);return i===void 0?f(()=>{var e=M(n.value,s);return r.set(t,e),e}):N(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>M(Pe,s));r.set(t,e),hr(a)}}else N(n,Pe),hr(a);return!0},get(t,n,i){if(n===de)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>M(_r(c?t[n]:Pe),s)),r.set(n,a)),a!==void 0){var l=L(a);return l===Pe?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=L(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==Pe)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===de)return!0;var n=r.get(t),i=n!==void 0&&n.v!==Pe||Reflect.has(e,t);return(n!==void 0||pi!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>M(i?_r(e[t]):Pe,s)),r.set(t,n)),L(n)===Pe)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>M(Pe,s)),r.set(d+``,p)):N(p,Pe)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>M(void 0,s)),N(l,_r(n)),r.set(t,l));else{u=l.v!==Pe;var m=f(()=>_r(n));N(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&N(g,_+1)}hr(a)}return!0},ownKeys(e){L(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==Pe});for(var[n,i]of r)i.v!==Pe&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Ae()}})}function vr(e){try{if(typeof e==`object`&&e&&de in e)return e[de]}catch{}return e}function yr(e,t){return Object.is(vr(e),vr(t))}var br,xr,Sr,Cr;function wr(){if(br===void 0){br=window,xr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Sr=o(t,`firstChild`).get,Cr=o(t,`nextSibling`).get,d(e)&&(e[he]=void 0,e[me]=null,e[ge]=void 0,e.__e=void 0),d(n)&&(n[_e]=void 0)}}function Tr(e=``){return document.createTextNode(e)}function Er(e){return Sr.call(e)}function Dr(e){return Cr.call(e)}function P(e,t){if(!Ve)return Er(e);var n=Er(Ue);if(n===null)n=Ue.appendChild(Tr());else if(t&&n.nodeType!==3){var r=Tr();return n?.before(r),We(r),r}return t&&Mr(n),We(n),n}function Or(e,t=!1){if(!Ve){var n=Er(e);return n instanceof Comment&&n.data===``?Dr(n):n}if(t){if(Ue?.nodeType!==3){var r=Tr();return Ue?.before(r),We(r),r}Mr(Ue)}return Ue}function F(e,t=1,n=!1){let r=Ve?Ue:e;for(var i;t--;)i=r,r=Dr(r);if(!Ve)return r;if(n){if(r?.nodeType!==3){var a=Tr();return r===null?i?.after(a):r.before(a),We(a),a}Mr(r)}return We(r),r}function kr(e){e.textContent=``}function Ar(){return!1}function jr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Mr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Nr(e){pi===null&&(ui===null&&Ee(e),Te()),ci&&we(e)}function Pr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Fr(e,t){var n=pi;n!==null&&n.f&8192&&(e|=ee);var r={ctx:Qe,deps:null,nodes:null,f:e|C|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};xn?.register_created_effect(r);var i=r;if(e&4)Dn===null?qn.ensure().schedule(r):Dn.push(r);else if(t!==null){try{ji(r)}catch(e){throw Qr(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ie))}if(i!==null&&(i.parent=n,n!==null&&Pr(i,n),ui!==null&&ui.f&2&&!(e&64))){var a=ui;(a.effects??(a.effects=[])).push(i)}return r}function Ir(){return ui!==null&&!di}function Lr(e){let t=Fr(8,null);return gt(t,S),t.teardown=e,t}function Rr(e){Nr(`$effect`);var t=pi.f;if(!ui&&t&32&&Qe!==null&&!Qe.i){var n=Qe;(n.e??(n.e=[])).push(e)}else return zr(e)}function zr(e){return Fr(4|oe,e)}function Br(e){return Nr(`$effect.pre`),Fr(8|oe,e)}function Vr(e){qn.ensure();let t=Fr(64|ae,e);return()=>{Qr(t)}}function Hr(e){qn.ensure();let t=Fr(64|ae,e);return(e={})=>new Promise(n=>{e.outro?ti(t,()=>{Qr(t),n(void 0)}):(Qr(t),n(void 0))})}function Ur(e){return Fr(4,e)}function Wr(e){return Fr(ue|ae,e)}function Gr(e,t=0){return Fr(8|t,e)}function I(e,t=[],n=[],r=[]){on(r,t,n,t=>{Fr(8,()=>{e(...t.map(L))})})}function Kr(e,t=0){return Fr(16|t,e)}function qr(e,t=0){return Fr(x|t,e)}function Jr(e){return Fr(32|ae,e)}function Yr(e){var t=e.teardown;if(t!==null){let e=ci,n=ui;li(!0),fi(null);try{t.call(null)}finally{li(e),fi(n)}}}function Xr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Tt(()=>{e.abort(ye)});var r=n.next;n.f&64?n.parent=null:Qr(n,t),n=r}}function Zr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Qr(t),t=n}}function Qr(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&($r(e.nodes.start,e.nodes.end),n=!0),e.f|=re,Xr(e,t&&!n),Ai(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Yr(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&ei(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function $r(e,t){for(;e!==null;){var n=e===t?null:Dr(e);e.remove(),e=n}}function ei(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ti(e,t,n=!0){var r=[];ni(e,r,!0);var i=()=>{n&&Qr(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function ni(e,t,n){if(!(e.f&8192)){e.f^=ee;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);ni(i,t,o?n:!1)}i=a}}}function ri(e){ii(e,!0)}function ii(e,t){if(e.f&8192){e.f^=ee,e.f&1024||(gt(e,C),qn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);ii(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function ai(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Dr(n);t.append(n),n=i}}var oi=null,si=!1,ci=!1;function li(e){ci=e}var ui=null,di=!1;function fi(e){ui=e}var pi=null;function mi(e){pi=e}var hi=null;function gi(e){ui!==null&&(hi??(hi=new Set)).add(e)}var _i=null,vi=0,yi=null;function bi(e){yi=e}var xi=1,Si=0,Ci=Si;function wi(e){Ci=e}function Ti(){return++xi}function Ei(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ei(a)&&gn(a),a.wv>e.wv)return!0}t&512&&Cn===null&&gt(e,S)}return!1}function Di(e,t,n=!0){var r=e.reactions;if(r!==null&&!(hi!==null&&hi.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Di(a,t,!1):t===a&&(n?gt(a,C):a.f&1024&&gt(a,w),ar(a))}}function Oi(e){var t=_i,n=vi,r=yi,i=ui,a=hi,o=Qe,s=di,c=Ci,l=e.f;_i=null,vi=0,yi=null,ui=l&96?null:e,hi=null,$e(e.ctx),di=!1,Ci=++Si,e.ac!==null&&(Tt(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=xn?.is_fork;if(_i!==null){var m;if(p||Ai(e,vi),f!==null&&vi>0)for(f.length=vi+_i.length,m=0;m<_i.length;m++)f[vi+m]=_i[m];else e.deps=f=_i;if(Ir()&&e.f&512)for(m=vi;m<f.length;m++){var h;((h=f[m]).reactions??(h.reactions=[])).push(e)}}else!p&&f!==null&&vi<f.length&&(Ai(e,vi),f.length=vi);if(ot()&&yi!==null&&!di&&f!==null&&!(e.f&6146))for(m=0;m<yi.length;m++)Di(yi[m],e);if(i!==null&&i!==e){if(Si++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Si;if(t!==null)for(let e of t)e.rv=Si;yi!==null&&(r===null?r=yi:r.push(...yi))}return e.f&8388608&&(e.f^=T),d}catch(e){return pt(e)}finally{e.f^=le,_i=t,vi=n,yi=r,ui=i,hi=a,$e(o),di=s,Ci=c}}function ki(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(_i===null||!r.call(_i,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),s.v!==Pe&&_t(s),s.ac!==null&&Tt(()=>{s.ac.abort(ye),s.ac=null,gt(s,C)}),_n(s),Ai(s,0)}}function Ai(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ki(e,n[r])}function ji(e){var t=e.f;if(!(t&16384)){gt(e,S);var n=pi,r=si;pi=e,si=!(t&96);try{t&16777232?Zr(e):Xr(e),Yr(e);var i=Oi(e);e.teardown=typeof i==`function`?i:null,e.wv=xi}finally{si=r,pi=n}}}async function Mi(){await Promise.resolve(),tr()}function L(e){var t=!!(e.f&2);if(oi?.add(e),ui!==null&&!di&&!(pi!==null&&pi.f&16384)&&(hi===null||!hi.has(e))){var n=ui.deps;if(ui.f&2097152)e.rv<Si&&(e.rv=Si,_i===null&&n!==null&&n[vi]===e?vi++:_i===null?_i=[e]:_i.push(e));else{var i;(i=ui).deps??(i.deps=[]),r.call(ui.deps,e)||ui.deps.push(e);var a=e.reactions;a===null?e.reactions=[ui]:r.call(a,ui)||a.push(ui)}}if(ci&&lr.has(e))return lr.get(e);if(t){var o=e;if(ci){var s=o.v;return(!(o.f&1024)&&o.reactions!==null||Pi(o))&&(s=hn(o)),lr.set(o,s),s}var c=!(o.f&512)&&!di&&ui!==null&&(si||!!(ui.f&512)),l=(o.f&ne)===0;Ei(o)&&(c&&(o.f|=512),gn(o)),c&&!l&&(vn(o),Ni(o))}if(Cn?.has(e))return Cn.get(e);if(e.f&8388608)throw e.v;return e.v}function Ni(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&2&&!(t.f&512)&&(vn(t),Ni(t))}function Pi(e){if(e.v===Pe)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(lr.has(t)||t.f&2&&Pi(t))return!0;return!1}function Fi(e){var t=di;try{return di=!0,e()}finally{di=t}}function Ii(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(de in e)Li(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&de in n&&Li(n)}}}function Li(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Li(e[n],t)}catch{}let n=u(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=s(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function Ri(){return Symbol(Ie)}function zi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Bi=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Vi(e){return Bi.includes(e)}var Hi=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),Ui={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function Wi(e){return e=e.toLowerCase(),Ui[e]??e}[...Hi];var Gi=[`touchstart`,`touchmove`];function Ki(e){return Gi.includes(e)}var qi=[`textarea`,`script`,`style`,`title`];function Ji(e){return qi.includes(e)}var Yi=Symbol(`events`),Xi=new Set,Zi=new Set;function Qi(e,t,n,r={}){function i(e){if(r.capture||ra.call(t,e),!e.cancelBubble)return Tt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?dt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function $i(e,t,n,r={}){var i=Qi(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ea(e,t,n,r,i){var a={capture:r,passive:i},o=Qi(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Lr(()=>{t.removeEventListener(e,o,a)})}function R(e,t,n){(t[Yi]??(t[Yi]={}))[e]=n}function ta(e){for(var t=0;t<e.length;t++)Xi.add(e[t]);for(var n of Zi)n(e)}var na=null;function ra(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;na=e;var s=0,c=na===e&&e[Yi];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[Yi]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){a(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=ui,f=pi;fi(null),mi(null);try{for(var p,m=[];o!==null&&o!==t;){try{var h=o[Yi]?.[r];h!=null&&(!o.disabled||e.target===o)&&h.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,o=s<i.length?i[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Yi]=t,delete e.currentTarget,fi(d),mi(f)}}}var ia=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function aa(e){return ia?.createHTML(e)??e}function oa(e){var t=jr(`template`);return t.innerHTML=aa(e.replaceAll(`<!>`,`<!---->`)),t.content}function sa(e,t){var n=pi;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function z(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(Ve)return sa(Ue,null),Ue;i===void 0&&(i=oa(a?e:`<!>`+e),n||(i=Er(i)));var t=r||xr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Er(t),s=t.lastChild;sa(o,s)}else sa(t,t);return t}}function ca(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(Ve)return sa(Ue,null),Ue;if(!o){var e=Er(oa(a));if(i)for(o=document.createDocumentFragment();Er(e);)o.appendChild(Er(e));else o=Er(e)}var t=o.cloneNode(!0);if(i){var n=Er(t),r=t.lastChild;sa(n,r)}else sa(t,t);return t}}function la(e,t){return ca(e,t,`svg`)}function ua(e=``){if(!Ve){var t=Tr(e+``);return sa(t,t),t}var n=Ue;return n.nodeType===3?Mr(n):(n.before(n=Tr()),We(n)),sa(n,n),n}function da(){if(Ve)return sa(Ue,null),Ue;var e=document.createDocumentFragment(),t=document.createComment(``),n=Tr();return e.append(t,n),sa(t,n),e}function B(e,t){if(Ve){var n=pi;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=Ue),Ge();return}e!==null&&e.before(t)}function fa(){var e,t;if(Ve&&Ue&&Ue.nodeType===8&&Ue.textContent?.startsWith(`$`)){let e=Ue.textContent.substring(1);return Ge(),e}return(e=(t=window).__svelte??(t.__svelte={})).uid??(e.uid=1),`c${window.__svelte.uid++}`}var pa=!0;function ma(e){pa=e}function V(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[_e]??(e[_e]=e.nodeValue))&&(e[_e]=n,e.nodeValue=`${n}`)}function ha(e,t){return _a(e,t)}var ga=new Map;function _a(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){wr();var l=void 0,u=Hr(()=>{var u=n??t.appendChild(Tr());jt(u,{pending:()=>{}},t=>{it({});var n=Qe;if(o&&(n.c=o),a&&(r.$$events=a),Ve&&sa(t,null),pa=s,l=e(t,r)||{},pa=!0,Ve&&(pi.nodes.end=Ue,Ue===null||Ue.nodeType!==8||Ue.data!==`]`))throw Re(),Ne;at()},c);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=Ki(r);for(let e of[t,document]){var a=ga.get(e);a===void 0&&(a=new Map,ga.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ra,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(i(Xi)),Zi.add(f),()=>{for(var e of d)for(let n of[t,document]){var r=ga.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ra),r.delete(e),r.size===0&&ga.delete(n)):r.set(e,i)}Zi.delete(f),u!==n&&u.parentNode?.removeChild(u)}});return va.set(l,u),l}var va=new WeakMap;function ya(e,t){let n=va.get(e);return n?(va.delete(e),n(t)):Promise.resolve()}var ba=new WeakMap,xa=new WeakMap,Sa=new WeakMap,Ca=new WeakMap,wa=new WeakMap,Ta=new WeakMap,Ea=new WeakMap,Da=class{constructor(e,t=!0){b(this,`anchor`,void 0),D(this,ba,new Map),D(this,xa,new Map),D(this,Sa,new Map),D(this,Ca,new Set),D(this,wa,!0),D(this,Ta,e=>{if(A(ba,this).has(e)){var t=A(ba,this).get(e),n=A(xa,this).get(t);if(n)ri(n),A(Ca,this).delete(t);else{var r=A(Sa,this).get(t);r&&(ri(r.effect),A(xa,this).set(t,r.effect),A(Sa,this).delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of A(ba,this)){if(A(ba,this).delete(t),t===e)break;let r=A(Sa,this).get(n);r&&(Qr(r.effect),A(Sa,this).delete(n))}for(let[e,r]of A(xa,this)){if(e===t||A(Ca,this).has(e))continue;let i=()=>{if(Array.from(A(ba,this).values()).includes(e)){var t=document.createDocumentFragment();ai(r,t),t.append(Tr()),A(Sa,this).set(e,{effect:r,fragment:t})}else Qr(r);A(Ca,this).delete(e),A(xa,this).delete(e)};A(wa,this)||!n?(A(Ca,this).add(e),ti(r,i,!1)):i()}}}),D(this,Ea,e=>{A(ba,this).delete(e);let t=Array.from(A(ba,this).values());for(let[e,n]of A(Sa,this))t.includes(e)||(Qr(n.effect),A(Sa,this).delete(e))}),this.anchor=e,k(wa,this,t)}ensure(e,t){var n=xn,r=Ar();if(t&&!A(xa,this).has(e)&&!A(Sa,this).has(e)){if(r){var i=document.createDocumentFragment(),a=Tr();i.append(a),A(Sa,this).set(e,{effect:Jr(()=>t(a)),fragment:i})}else A(xa,this).set(e,Jr(()=>t(this.anchor)))}if(A(ba,this).set(n,e),r){for(let[t,r]of A(xa,this))t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of A(Sa,this))t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(A(Ta,this)),n.ondiscard(A(Ea,this))}else Ve&&(this.anchor=Ue),A(Ta,this).call(this,n)}};function H(e,t,n=!1){var r;Ve&&(r=Ue,Ge());var i=new Da(e),a=n?ie:0;function o(e,t){if(Ve){var n=Je(r);if(e!==parseInt(n.substring(1))){var a=qe();We(a),i.anchor=a,He(!1),i.ensure(e,t),He(!0);return}}i.ensure(e,t)}Kr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Oa=Symbol(`NaN`);function ka(e,t,n){Ve&&Ge();var r=new Da(e),i=!ot();Kr(()=>{var e=t();e!==e&&(e=Oa),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Aa(e,t){return t}function ja(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];ti(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Ma(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;kr(d),d.append(u),e.items.clear()}Ma(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function Ma(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=se,ai(a,document.createDocumentFragment())):Qr(t[i],n)}}var Na;function Pa(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=Ve?We(Er(u)):u.appendChild(Tr())}Ve&&Ge();var d=null,f=pn(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Ia(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=se,Ra(d,null,c)):ri(d):ti(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Kr(()=>{p=L(f);var e=p.length;let t=!1;Ve&&Je(c)===`[!`!=(e===0)&&(c=qe(),We(c),He(!1),t=!0);for(var i=new Set,u=xn,v=Ar(),y=0;y<e;y+=1){Ve&&Ue.nodeType===8&&Ue.data===`]`&&(c=Ue,t=!0,He(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&pr(S.v,b),S.i&&pr(S.i,y),v&&u.unskip_effect(S.e)):(S=La(l,h?c:Na??(Na=Tr()),b,x,y,o,n,r),h||(S.e.f|=se),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=Jr(()=>s(c)):(d=Jr(()=>s(Na??(Na=Tr()))),d.f|=se)),e>i.size&&Ce(``,``,``),Ve&&e>0&&We(qe()),!h){if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u)}t&&He(!0),L(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,Ve&&(c=Ue)}function Fa(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ia(e,t,n,r,a){var o=!!(r&8),s=t.length,c=e.items,l=Fa(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??(f=new Set)).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(ri(_),o&&(_.nodes?.a?.unfix(),(f??(f=new Set)).delete(_))),_.f&33554432){if(_.f^=se,_===l)Ra(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),za(e,d,_),za(e,_,y),Ra(_,y,n),d=_,p=[],m=[],l=Fa(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],C=p[p.length-1];for(x=0;x<p.length;x+=1)Ra(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);za(e,S.prev,C.next),za(e,d,S),za(e,C,b),l=b,d=C,--v,p=[],m=[]}else u.delete(_),Ra(_,l,n),za(e,_.prev,_.next),za(e,_,d===null?e.effect.first:d.next),za(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??(u=new Set)).add(l),m.push(l),l=Fa(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Fa(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Ma(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var w=[];if(u!==void 0)for(_ of u)_.f&8192||w.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&w.push(l),l=Fa(l.next);var ee=w.length;if(ee>0){var te=r&4&&s===0?n:null;if(o){for(v=0;v<ee;v+=1)w[v].nodes?.a?.measure();for(v=0;v<ee;v+=1)w[v].nodes?.a?.fix()}ja(e,w,te)}}o&&dt(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function La(e,t,n,r,i,a,o,s){var c=o&1?o&16?dr(n):fr(n,!1,!1):null,l=o&2?dr(i):null;return{v:c,i:l,e:Jr(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ra(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=Dr(r);if(a.before(r),r===i)return;r=o}}function za(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ba(e,t,...n){var r=new Da(e);Kr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ie)}function Va(e,t,n){var r;Ve&&(r=Ue,Ge());var i=new Da(e);Kr(()=>{var e=t()??null;if(Ve&&Je(r)===`[`!=(e!==null)){var a=qe();We(a),i.anchor=a,He(!1),i.ensure(e,e&&(t=>n(t,e))),He(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ie)}var Ha=()=>performance.now(),Ua={tick:e=>requestAnimationFrame(e),now:()=>Ha(),tasks:new Set};function Wa(){let e=Ua.now();Ua.tasks.forEach(t=>{t.c(e)||(Ua.tasks.delete(t),t.f())}),Ua.tasks.size!==0&&Ua.tick(Wa)}function Ga(e){let t;return Ua.tasks.size===0&&Ua.tick(Wa),{promise:new Promise(n=>{Ua.tasks.add(t={c:e,f:n})}),abort(){Ua.tasks.delete(t)}}}function Ka(e,t){Tt(()=>{e.dispatchEvent(new CustomEvent(t))})}function qa(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Ja(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=qa(n.trim());t[i]=r.trim()}return t}var Ya=e=>e;function Xa(e,t,n,r){var i,a=!!(e&1),o=!!(e&2),s=a&&o,c=!!(e&4),l=s?`both`:a?`in`:`out`,u,d=t.inert,f=t.style.overflow,p,m;function h(){return Tt(()=>u??(u=n()(t,r?.()??{},{direction:l})))}var g={is_global:c,in(){if(t.inert=d,!a){m?.abort(),m?.reset?.();return}o||p?.abort(),p=Za(t,h(),m,1,()=>{Ka(t,`introstart`)},()=>{Ka(t,`introend`),p?.abort(),p=u=void 0,t.style.overflow=f})},out(e){if(!o){e?.(),u=void 0;return}t.inert=!0,m=Za(t,h(),p,0,()=>{Ka(t,`outrostart`)},()=>{Ka(t,`outroend`),e?.()})},stop:()=>{p?.abort(),m?.abort()}},_=pi;if(((i=_.nodes).t??(i.t=[])).push(g),a&&pa){var v=c;if(!v){for(var y=_.parent;y&&y.f&65536;)for(;(y=y.parent)&&!(y.f&16););v=!y||!!(y.f&32768)}v&&Ur(()=>{Fi(()=>g.in())})}}function Za(e,t,n,r,i,a){var o=r===1;if(f(t)){var s,c=!1;return dt(()=>{c||(s=Za(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:p,deactivate:p,reset:p,t:()=>r};let{delay:l=0,css:u,tick:d,easing:m=Ya}=t;var h=[];if(o&&n===void 0&&(d&&d(0,1),u)){var g=Ja(u(0,1));h.push(g,g)}var _=()=>1-r,v=e.animate(h,{duration:l,fill:`forwards`});return v.onfinish=()=>{v.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var f=!1;if(u)for(var p=Math.ceil(c/(1e3/60)),h=0;h<=p;h+=1){var g=o+s*m(h/p),y=Ja(u(g,1-g));l.push(y),f||(f=y.overflow===`hidden`)}f&&(e.style.overflow=`hidden`),_=()=>{var e=v.currentTime;return o+s*m(e/c)},d&&Ga(()=>{if(v.playState!==`running`)return!1;var e=_();return d(e,1-e),!0})}v=e.animate(l,{duration:c,fill:`forwards`}),v.onfinish=()=>{_=()=>r,d?.(r,1-r),a()}},{abort:()=>{v&&(v.cancel(),v.effect=null,v.onfinish=p)},deactivate:()=>{a=p},reset:()=>{r===0&&d?.(1,0)},t:()=>_()}}function Qa(e,t,n,r,i,a){let o=Ve;Ve&&Ge();var s=null;Ve&&Ue.nodeType===1&&(s=Ue,Ge());var c=Ve?Ue:e,l=new Da(c,!1);Kr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Fe:void 0;if(e===null){l.ensure(null,null),ma(!0);return}return l.ensure(e,t=>{if(e){if(s=Ve?s:jr(e,a),sa(s,s),r){var n=null;Ve&&Ji(e)&&s.append(n=document.createComment(``));var i=Ve?Er(s):s.appendChild(Tr());Ve&&(i===null?He(!1):We(i)),r(s,i),n?.remove()}pi.nodes.end=s,t.before(s)}Ve&&We(t)}),ma(!0),()=>{e&&ma(!1)}},ie),Lr(()=>{ma(!0)}),o&&(He(!0),We(c))}function $a(e,t,n){Ur(()=>{var r=Fi(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};Gr(()=>{var e=n();Ii(e),i&&Xe(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function eo(e,t){var n=void 0,r;qr(()=>{n!==(n=t())&&(r&&(Qr(r),r=null),n&&(r=Jr(()=>{Ur(()=>n(e))})))})}function to(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=to(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function no(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=to(e))&&(r&&(r+=` `),r+=t);return r}function U(e){return typeof e==`object`?no(e):e??``}var ro=[...`
2
+ \r\f\xA0\v`];function io(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ro.includes(r[o-1]))&&(s===r.length||ro.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ao(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function oo(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function so(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(oo)),i&&c.push(...Object.keys(i).map(oo));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=oo(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=ao(r)),i&&(n+=ao(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function W(e,t,n,r,i,a){var o=e[he];if(Ve||o!==n||o===void 0){var s=io(n,r,a);(!Ve||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[he]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function co(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function lo(e,t,n,r){var i=e[ge];if(Ve||i!==t){var a=so(t,r);(!Ve||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[ge]=t}else r&&(Array.isArray(r)?(co(e,n?.[0],r[0]),co(e,n?.[1],r[1],`important`)):co(e,n,r));return r}function uo(e,n,r=!1){if(e.multiple){if(n==null)return;if(!t(n))return ze();for(var i of e.options)i.selected=n.includes(po(i));return}for(i of e.options)if(yr(po(i),n)){i.selected=!0;return}(!r||n!==void 0)&&(e.selectedIndex=-1)}function fo(e){var t=new MutationObserver(()=>{`__value`in e&&uo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Lr(()=>{t.disconnect()})}function po(e){return`__value`in e?e.__value:e.value}var mo=Symbol(`class`),ho=Symbol(`style`),go=Symbol(`is custom element`),_o=Symbol(`is html`),vo=be?`link`:`LINK`,yo=be?`input`:`INPUT`,bo=be?`option`:`OPTION`,xo=be?`select`:`SELECT`,So=be?`progress`:`PROGRESS`;function Co(e){if(Ve){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;G(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;G(e,`checked`,null),e.checked=r}}};e[ve]=n,dt(n),wt()}}function wo(e,t){var n=ko(e);n.value!==(n.value=t??void 0)&&(e.value!==t||t===0&&e.nodeName===So)&&(e.value=t??``)}function To(e,t){var n=ko(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Eo(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function G(e,t,n,r){var i=ko(e);Ve&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===vo)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&jo(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Do(e,t,n,r,i=!1,a=!1){if(Ve&&i&&e.nodeName===yo){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Co(o)}var s=ko(e),c=s[go],l=!s[_o];let u=Ve&&c;u&&He(!1);var d=t||{},f=e.nodeName===bo;for(var p in t)p in n||(n[p]=null);n.class?n.class=U(n.class):(r||n[mo])&&(n.class=null),n[ho]&&(n.style??(n.style=null));var m=jo(e);if(e.nodeName===yo&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,G(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){W(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[mo],n[mo]),d[i]=o,d[mo]=n[mo];continue}if(i===`style`){lo(e,o,t?.[ho],n[ho]),d[i]=o,d[ho]=n[ho];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Vi(r);if(zi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)R(r,e,o),ta([r]);else if(o!=null){function y(e){d[i].call(this,e)}d[n]=Qi(r,e,y,t)}}else if(i===`style`)G(e,i,o);else if(i===`autofocus`)St(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Eo(e,o);else{var b=i;l||(b=Wi(b));var x=b===`defaultValue`||b===`defaultChecked`;if(o==null&&!c&&!x){if(s[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||m.includes(b)&&(c||typeof o!=`string`)?(e[b]=o,b in s&&(s[b]=Pe)):typeof o!=`function`&&G(e,b,o,a)}}}}return u&&He(!0),d}function Oo(e,t,n=[],r=[],i=[],a,o=!1,s=!1){on(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===xo,l=!1;if(qr(()=>{var u=t(...n.map(L)),d=Do(e,r,u,a,o,s);l&&c&&`value`in u&&uo(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||Qr(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&Qr(i[t]),i[t]=Jr(()=>eo(e,()=>f))),d[t]=f}r=d}),c){var u=e;Ur(()=>{uo(u,r.value,!0),fo(u)})}l=!0})}function ko(e){return e[me]??(e[me]={[go]:e.nodeName.includes(`-`),[_o]:e.namespaceURI===`http://www.w3.org/1999/xhtml`})}var Ao=new Map;function jo(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ao.get(t);if(n)return n;Ao.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=u(i)}return n}function Mo(e,t,n=t){var r=new WeakSet;Et(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=No(e)?Po(a):a,n(a),xn!==null&&r.add(xn),await Mi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(Ve&&e.defaultValue!==e.value||Fi(t)==null&&e.value)&&(n(No(e)?Po(e.value):e.value),xn!==null&&r.add(xn)),Gr(()=>{var n=t();if(e===document.activeElement){var i=xn;if(r.has(i))return}No(e)&&n===Po(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function No(e){var t=e.type;return t===`number`||t===`range`}function Po(e){return e===``?null:+e}var Fo,Io=new WeakMap,Lo=new WeakMap,Ro=new WeakMap,zo=new WeakSet,Bo=class{constructor(e){kt(this,zo),D(this,Io,new WeakMap),D(this,Lo,void 0),D(this,Ro,void 0),k(Ro,this,e)}observe(e,t){var n=A(Io,this).get(e)||new Set;return n.add(t),A(Io,this).set(e,n),O(zo,this,Vo).call(this).observe(e,A(Ro,this)),()=>{var n=A(Io,this).get(e);n.delete(t),n.size===0&&(A(Io,this).delete(e),A(Lo,this).unobserve(e))}}};Fo=Bo;function Vo(){return A(Lo,this)??k(Lo,this,new ResizeObserver(e=>{for(var t of e){Fo.entries.set(t.target,t);for(var n of A(Io,this).get(t.target)||[])n(t)}}))}b(Bo,`entries`,new WeakMap);function Ho(e,t){return e===t||e?.[de]===t}function Uo(e={},t,n,r){var i=Qe.r,a=pi;return Ur(()=>{var o,s;return Gr(()=>{o=s,s=r?.()||[],Fi(()=>{Ho(n(...s),e)||(t(e,...s),o&&Ho(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Ho(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var Wo={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function K(e,t,n){return new Proxy({props:e,exclude:t},Wo)}var Go={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(f(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];f(i)&&(i=i());let a=o(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(f(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=o(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===de||t===fe)return!1;for(let n of e.props)if(f(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(f(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function q(...e){return new Proxy({props:e},Go)}function J(e,t,n,r){var i=!0,a=!!(n&8),s=!!(n&16),c=r,l=!0,u=void 0,d=()=>s&&i?(u??(u=un(r)),L(u)):(l&&(l=!1,c=s?Fi(r):r),c);let f;if(a){var p=de in e||fe in e;f=o(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=xt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Oe(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?un:pn)(()=>(v=!1,g()));a&&L(y);var b=pi;return(function(e,t){if(arguments.length>0){let n=t?L(y):i&&a?_r(e):e;return N(y,n),v=!0,c!==void 0&&(c=n),e}return ci&&v||b.f&16384?y.v:L(y)})}function Ko(e){Qe===null&&xe(`onMount`),Rr(()=>{let t=Fi(e);if(typeof t==`function`)return t})}if(typeof window<`u`){var qo,Jo;((qo=(Jo=window).__svelte??(Jo.__svelte={})).v??(qo.v=new Set)).add(`5`)}function Yo(e){return{...e,endTime:e.endTime??(e.startTime??0)+(e.duration??0)}}function Xo(e){let t=Array.isArray(e.spans)?e.spans.map(Yo):[];return{...Yo(e),rootSpan:e.rootSpan?Yo(e.rootSpan):t[0],spans:t}}var Zo=e=>e.map(Xo),Qo=class{constructor(e){b(this,`url`,void 0),b(this,`ws`,null),b(this,`reconnectTimer`,null),b(this,`messageHandlers`,new Set),b(this,`statusHandlers`,new Set),b(this,`reconnectAttempts`,0),b(this,`closed`,!1),b(this,`reconnectDelay`,1e3),b(this,`maxReconnectDelay`,15e3),this.url=e}connect(){this.closed=!1;try{this.ws=new WebSocket(this.url),this.ws.addEventListener(`open`,()=>{this.reconnectAttempts=0,this.emitStatus(`connected`)}),this.ws.addEventListener(`message`,e=>{try{let t=JSON.parse(e.data),n=Array.isArray(t?.traces)?{...t,traces:Zo(t.traces)}:t;for(let e of this.messageHandlers)e(n)}catch{}}),this.ws.addEventListener(`close`,()=>{this.emitStatus(`disconnected`),this.scheduleReconnect()})}catch{this.emitStatus(`disconnected`),this.scheduleReconnect()}}emitStatus(e){if(!this.closed)for(let t of this.statusHandlers)t(e)}scheduleReconnect(){if(this.closed||this.reconnectTimer)return;this.reconnectAttempts++;let e=Math.min(this.reconnectDelay*2**(this.reconnectAttempts-1),this.maxReconnectDelay);this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},e)}onMessage(e){return this.messageHandlers.add(e),()=>this.messageHandlers.delete(e)}onStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}disconnect(){this.closed=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null),this.messageHandlers.clear(),this.statusHandlers.clear()}isConnected(){return this.ws?.readyState===WebSocket.OPEN}};function $o(e){try{let t=new URL(e);return t.protocol===`ws:`?`http://${t.host}`:t.protocol===`wss:`?`https://${t.host}`:null}catch{return null}}function es(e,t=fetch){return async(n,r)=>{if(n.kind!==`app`)return null;let i=new URL(`/source`,e);i.searchParams.set(`file`,n.file),i.searchParams.set(`line`,String(n.line)),i.searchParams.set(`context`,String(r));try{let e=await t(i.toString());return e.ok?await e.json():null}catch{return null}}}var ts=null;function ns(e){ts=e===null?null:es(e)}var rs=(e,t)=>ts===null?Promise.resolve(null):ts(e,t),is=new WeakMap,as=class{constructor(e){D(this,is,M(void 0)),N(A(is,this),e,!0)}get value(){return L(A(is,this))}set value(e){N(A(is,this),e,!0)}},os=new WeakMap,ss=new WeakMap,cs=class{constructor(e){D(this,os,void 0),D(this,ss,j(()=>A(os,this).call(this))),k(os,this,e)}get value(){return L(A(ss,this))}};function ls(e){return new as(e)}function us(e){return new cs(e)}function ds(e){return Vr(()=>{Rr(e)})}function fs(e,...t){for(let n of t){let t=e?.[n];if(typeof t==`string`&&t.length>0)return t}}function Y(e){return typeof e==`string`?e:void 0}function ps(e){if(typeof e==`number`)return e;if(typeof e==`string`&&e!==``){let t=Number(e);return Number.isFinite(t)?t:void 0}}function ms(e){if(typeof e==`boolean`)return e;if(e===`true`)return!0;if(e===`false`)return!1}function hs(e){if(Array.isArray(e)){let t=e.filter(e=>typeof e==`string`);return t.length===e.length?t:void 0}return typeof e==`string`?[e]:void 0}function gs(e,t){let n=e.attributes||{},r=[n[`service.name`],n[`service.peer.name`],n[`peer.service`],n[`http.host`],n[`db.system.name`],n[`db.system`],n[`messaging.system`],n[`rpc.service`],t];for(let e of r){let t=Y(e)?.trim();if(t)return t}return`unknown`}function _s(e,t){return Y(e[`db.system.name`])!==void 0||Y(e[`db.system`])!==void 0?`database`:Y(e[`cache.system`])===void 0?Y(e[`messaging.system`])===void 0?Y(e[`service.peer.name`])!==void 0||Y(e[`peer.service`])!==void 0||Y(e[`net.peer.name`])!==void 0||Y(e[`http.host`])!==void 0?t===e[`service.name`]?`service`:`external`:Y(e[`service.name`])===void 0?`unknown`:`service`:`messaging`:`cache`}function vs(e){if(e.resourceName)return e.resourceName;let t=e.resource||{},n=[t[`service.name`],t[`service.namespace`],t[`host.name`],t[`container.name`]];for(let e of n){let t=Y(e)?.trim();if(t)return t}return`unknown`}function ys(e,t){if(e===0&&t===0)return`unknown`;let n=e===0?1:t/e;return n>=.2?`unhealthy`:n>=.05?`degraded`:`healthy`}function bs(e){let t=new Map,n=(e,n=`unknown`)=>{let r=t.get(e);if(r)return r.type===`unknown`&&n!==`unknown`&&(r.type=n),r;let i={name:e,type:n,health:`unknown`,requestCount:0,errorCount:0,traceCount:0,logCount:0};return t.set(e,i),i};for(let t of e.traces){let e=new Set;for(let r of t.spans){let i=gs(r,t.service),a=n(i,_s(r.attributes,i));a.requestCount+=1,a.lastSeen=Math.max(a.lastSeen??0,r.endTime),r.status.code===`ERROR`&&(a.errorCount+=1),e.has(i)||(a.traceCount+=1,e.add(i))}}for(let t of e.logs){let e=n(vs(t),`service`);e.logCount+=1,e.lastSeen=Math.max(e.lastSeen??0,t.timestamp)}for(let t of e.errors){if(!t.service)continue;let e=n(t.service,`service`);e.errorCount+=t.count,e.lastSeen=Math.max(e.lastSeen??0,t.lastSeen)}return[...t.values()].map(e=>({...e,health:ys(e.requestCount,e.errorCount)})).sort((e,t)=>{let n=(t.lastSeen??0)-(e.lastSeen??0);return n===0?e.name.localeCompare(t.name):n})}var xs=[{id:`all`,label:`All time`,durationMs:null},{id:`5m`,label:`Last 5m`,durationMs:3e5},{id:`15m`,label:`Last 15m`,durationMs:9e5},{id:`30m`,label:`Last 30m`,durationMs:18e5},{id:`1h`,label:`Last 1h`,durationMs:36e5},{id:`3h`,label:`Last 3h`,durationMs:108e5},{id:`6h`,label:`Last 6h`,durationMs:216e5},{id:`24h`,label:`Last 24h`,durationMs:864e5},{id:`7d`,label:`Last 7d`,durationMs:6048e5}],Ss={type:`preset`,preset:`all`},Cs=new Map(xs.map(e=>[e.id,e]));function ws(e,t){let n=Cs.get(e);return!n||n.durationMs===null?{start:null,end:null}:{start:t-n.durationMs,end:t}}function Ts(e,t){return e.type===`preset`?ws(e.preset,t):{start:Math.min(e.start,e.end),end:Math.max(e.start,e.end)}}function Es(e){return e.start===null||e.end===null}function Ds(e){return e.type===`preset`?Cs.get(e.preset)?.label??`All time`:`${Os(e.start)} → ${Os(e.end)}`}function Os(e){let t=new Date(e),n=new Date,r=t.toDateString()===n.toDateString(),i=t.toLocaleTimeString(void 0,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`});return r?i:`${t.toLocaleDateString(void 0,{month:`short`,day:`numeric`})} ${i}`}function ks(e){return e.type===`preset`?e.preset===Ss.preset?null:e.preset:`custom:${e.start}:${e.end}`}function As(e){if(!e)return Ss;if(e.startsWith(`custom:`)){let[,t,n]=e.split(`:`),r=Number(t),i=Number(n);return!Number.isFinite(r)||!Number.isFinite(i)?Ss:{type:`custom`,start:r,end:i}}return Cs.has(e)?{type:`preset`,preset:e}:Ss}function js(e){if(!Es(e))return{start:e.start,end:e.end}}var Ms=[`gen_ai.system`,`gen_ai.provider.name`,`gen_ai.operation.name`,`ai.model.provider`];function Ns(e){let t=e.attributes??{};for(let e of Ms)if(t[e]!=null)return!0;return!1}function Ps(e){let t=e.toLowerCase();return t===`az.ai.openai`||t===`azure_openai`?`openai`:t===`vertex_ai`||t===`gcp.vertex_ai`||t===`gcp.gemini`?`google`:t}function Fs(e){let t=Object.keys(e).sort((e,t)=>{let n=e.split(`/`)[1]??``;return(t.split(`/`)[1]??``).length-n.length});return(n,r)=>{let i=Ps(n),a=r.toLowerCase();for(let n of t){let[t,r]=n.split(`/`);if(t===i&&a.startsWith(r))return e[n]}}}var Is=Fs({"openai/gpt-4o":{inputPerMTok:2.5,outputPerMTok:10},"openai/gpt-4o-mini":{inputPerMTok:.15,outputPerMTok:.6},"openai/gpt-4-turbo":{inputPerMTok:10,outputPerMTok:30},"openai/gpt-3.5-turbo":{inputPerMTok:.5,outputPerMTok:1.5},"anthropic/claude-fable-5-1":{inputPerMTok:10,outputPerMTok:50,cacheReadPerMTok:.25},"anthropic/claude-fable-5":{inputPerMTok:10,outputPerMTok:50},"anthropic/claude-opus-5":{inputPerMTok:5,outputPerMTok:25},"anthropic/claude-opus-4-8":{inputPerMTok:5,outputPerMTok:25},"anthropic/claude-opus-4-7":{inputPerMTok:5,outputPerMTok:25},"anthropic/claude-opus-4-6":{inputPerMTok:5,outputPerMTok:25},"anthropic/claude-sonnet-5":{inputPerMTok:2,outputPerMTok:10},"anthropic/claude-sonnet-4-6":{inputPerMTok:3,outputPerMTok:15},"anthropic/claude-haiku-4-5":{inputPerMTok:1,outputPerMTok:5},"anthropic/claude-opus-4":{inputPerMTok:15,outputPerMTok:75},"anthropic/claude-sonnet-4":{inputPerMTok:3,outputPerMTok:15},"anthropic/claude-3-5-sonnet":{inputPerMTok:3,outputPerMTok:15},"anthropic/claude-3-5-haiku":{inputPerMTok:.8,outputPerMTok:4},"anthropic/claude-3-opus":{inputPerMTok:15,outputPerMTok:75},"anthropic/claude-3-haiku":{inputPerMTok:.25,outputPerMTok:1.25},"google/gemini-2.5-flash":{inputPerMTok:.3,outputPerMTok:2.5},"google/gemini-2.0-flash":{inputPerMTok:.1,outputPerMTok:.4},"google/gemini-1.5-pro":{inputPerMTok:1.25,outputPerMTok:5},"google/gemini-1.5-flash":{inputPerMTok:.075,outputPerMTok:.3},"mistral/mistral-large":{inputPerMTok:2,outputPerMTok:6},"mistral/mistral-small":{inputPerMTok:.2,outputPerMTok:.6},"groq/llama-3.1-70b":{inputPerMTok:.59,outputPerMTok:.79},"deepseek/deepseek-chat":{inputPerMTok:.27,outputPerMTok:1.1}});function Ls(e){let t=Is(e.provider,e.model);if(!t)return{currency:`USD`,input:0,output:0,cacheRead:0,cacheWrite:0,total:0,source:`unknown`};let n=t.cacheReadPerMTok??t.inputPerMTok*.1,r=t.cacheWritePerMTok??t.inputPerMTok*1.25,i=(e.cacheReadInputTokens??0)/1e6*n,a=(e.cacheCreationInputTokens??0)/1e6*r,o=Math.max(0,(e.inputTokens??0)-(e.cacheReadInputTokens??0)-(e.cacheCreationInputTokens??0))/1e6*t.inputPerMTok,s=(e.outputTokens??0)/1e6*t.outputPerMTok;return{currency:`USD`,input:o,output:s,cacheRead:i,cacheWrite:a,total:o+s+i+a,source:`table`}}function Rs(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function zs(e,t){let n=e[t];return typeof n==`string`?n:void 0}function Bs(e,t){let n=e[t];return typeof n==`number`?n:void 0}function Vs(e,t){return Rs(e[t])}function Hs(e,t){let n=e[t];return Array.isArray(n)?n:[]}function Us(e,t){return Array.isArray(e[t])}function Ws(e,t,n,r){return r.filter(t=>n(e,t)===void 0).map(e=>`${t}: Missing or invalid ${e}`)}function Gs(e){if(e!=null){if(typeof e==`object`)return e;if(typeof e==`string`)try{return JSON.parse(e)}catch{return}}}function Ks(e){if(Array.isArray(e.parts))return e.parts.map(e=>{let t=e.type??`text`;return t===`text`?{kind:`text`,text:String(e.content??``)}:t===`image`?{kind:`image`,mediaType:`image/*`,dataRef:String(e.content??``)}:t===`audio`?{kind:`audio`,mediaType:`audio/*`,dataRef:String(e.content??``)}:{kind:`json`,value:e.content}});if(Array.isArray(e.content))return e.content.map(e=>e.type===`text`||e.text!==void 0?{kind:`text`,text:String(e.text??``)}:e.type===`image`?{kind:`image`,mediaType:e.mimeType??`image/*`,dataRef:String(e.image??e.data??``)}:e.type===`audio`?{kind:`audio`,mediaType:e.mimeType??`audio/*`,dataRef:String(e.data??``)}:{kind:`json`,value:e});let t=Y(e.content);return t===void 0?e.content==null?[]:[{kind:`json`,value:e.content}]:[{kind:`text`,text:t}]}function qs(e){let t=Rs(e);return t&&`value`in t?t.value:e}function Js(e){return e.type===`tool-call`?{kind:`call`,call:{id:e.toolCallId,name:e.toolName??``,arguments:Gs(e.input)??e.input??{}}}:e.type===`tool-result`?{kind:`result`,result:{id:e.toolCallId,value:qs(e.output)}}:e.type===`text`||e.text!==void 0?{kind:`text`,text:String(e.text??``)}:null}function Ys(e){return e.type===`tool_call`?{kind:`call`,call:{id:e.id,name:e.name??``,arguments:Gs(e.arguments)??e.arguments??{}}}:e.type===`tool_call_response`?{kind:`result`,result:{id:e.id,value:qs(e.response)}}:e.type===`text`||e.type==null?{kind:`text`,text:String(e.content??``)}:null}function Xs(e,t,n){let r=[],i=[],a=[];for(let e of t)e.kind===`call`?r.push(e.call):e.kind===`result`?a.push(e.result):i.push({kind:`text`,text:e.text});if(a.length>1){let t={role:e,parts:[]};return t._toolResults=a,t}let o={role:e,parts:i};return r.length>0&&(o.toolCalls=r),a.length===1&&(o.toolCallId=a[0].id,o.parts=[{kind:`json`,value:a[0].value}]),n&&(o.finishReason=n),o}function Zs(e){let t=e.role??`user`;if(Array.isArray(e.content)){let n=e.content;if(n.some(e=>e.type===`tool-call`||e.type===`tool-result`))return Xs(t,n.map(Js).filter(e=>e!==null),e.finish_reason)}if(Array.isArray(e.parts)){let n=e.parts;if(n.some(e=>e.type===`tool_call`||e.type===`tool_call_response`))return Xs(t,n.map(Ys).filter(e=>e!==null),e.finish_reason)}let n={role:t,parts:Ks(e)};return Array.isArray(e.tool_calls)&&e.tool_calls.length>0&&(n.toolCalls=e.tool_calls.map(e=>({id:e.id,name:e.function?.name??``,arguments:Gs(e.function?.arguments)??e.function?.arguments??{},type:e.type}))),e.tool_call_id&&(n.toolCallId=e.tool_call_id),e.finish_reason&&(n.finishReason=e.finish_reason),n}function Qs(e,t){let n=Gs(e[t]);if(Array.isArray(n))return n.map(Zs)}function $s(e){if(!e||e.length===0)return[];let t=[];for(let n of e){let e=n.attributes??{};if(n.name===`gen_ai.choice`){let n=e.message,r=Gs(e.message)??n,i=Y(e.finish_reason);if(r){let e=Zs(r);i&&(e.finishReason=i),t.push(e)}continue}let r=n.name.match(/^gen_ai\.(system|user|assistant|tool)\.message$/);if(!r)continue;let i=r[1],a=e.content,o=Y(a),s=o===void 0?a:Gs(o)??o;t.push(Zs({role:i,content:s,tool_calls:Gs(e.tool_calls),tool_call_id:Y(e.id)??Y(e.tool_call_id)}))}return t}function ec(e){let t=Gs(e[`gen_ai.tool.definitions`]??e[`gen_ai.orchestrator.agent.definitions`]);if(Array.isArray(t))return t.filter(e=>Y(e.name)!==void 0).map(e=>({name:e.name,description:e.description,type:e.type,schema:e.schema??e.parameters}))}function tc(e){let t=ps(e[`gen_ai.usage.input_tokens`])??ps(e[`gen_ai.usage.prompt_tokens`])??ps(e[`llm.usage.prompt_tokens`])??ps(e[`ai.usage.inputTokens`]),n=ps(e[`gen_ai.usage.output_tokens`])??ps(e[`gen_ai.usage.completion_tokens`])??ps(e[`llm.usage.completion_tokens`])??ps(e[`ai.usage.outputTokens`]),r=ps(e[`gen_ai.usage.cache_read.input_tokens`])??ps(e.cache_read_tokens),i=ps(e[`gen_ai.usage.cache_write.input_tokens`])??ps(e[`gen_ai.usage.cache_creation.input_tokens`])??ps(e.cache_creation_tokens),a=ps(e.input_tokens);return{inputTokens:t??(a===void 0?void 0:a+(r??0)+(i??0)),outputTokens:n??ps(e.output_tokens),reasoningOutputTokens:ps(e[`gen_ai.usage.reasoning.output_tokens`]),cacheReadInputTokens:r,cacheCreationInputTokens:i}}function nc(e){let t=ps(e.ttft_ms),n=ps(e[`gen_ai.response.time_to_first_chunk`])??(t===void 0?void 0:t/1e3),r=ps(e[`gen_ai.response.time_to_finish`]),i=ps(e[`gen_ai.response.output_tokens_per_second`]),a=ps(e[`gen_ai.response.time_per_output_chunk`]);if(n!==void 0||r!==void 0||i!==void 0||a!==void 0)return{timeToFirstChunkS:n,timeToFinishS:r,outputTokensPerSecond:i,timePerOutputChunkS:a}}function rc(e){let t=ps(e[`gen_ai.session.cost.usd`]),n=ps(e[`gen_ai.session.input_tokens`]),r=ps(e[`gen_ai.session.output_tokens`]),i=ps(e[`gen_ai.session.step.count`]),a=ps(e[`gen_ai.session.tool_call.count`]),o=ps(e[`gen_ai.session.error.count`]);if(t!==void 0||n!==void 0||r!==void 0||i!==void 0||a!==void 0||o!==void 0)return{costUsd:t,inputTokens:n,outputTokens:r,stepCount:i,toolCallCount:a,errorCount:o}}function ic(e,t){let n=Y(e[`gen_ai.guard.rule`]);if(n)return{rule:n,action:Y(e[`gen_ai.guard.action`])??t,message:Y(e[`gen_ai.guard.message`]),observed:ps(e[`gen_ai.guard.observed`]),limit:ps(e[`gen_ai.guard.limit`])}}function ac(e,t){let n=ms(e[`gen_ai.guard.stopped`]),r=[],i=ic(e),a=e=>{e&&(!i||e.action===`stop`)&&(i=e)};for(let e of t??[]){let t=e.attributes??{};if(e.name===`gen_ai.guard.stop`)a(ic(t,`stop`));else if(e.name===`gen_ai.guard.warning`)a(ic(t,`warn`));else if(e.name===`gen_ai.client.warnings`){let e=Gs(t[`gen_ai.warnings`]);Array.isArray(e)&&r.push(...e)}}return(n!==void 0||i)&&(i={...i,stopped:n??i?.action===`stop`}),{guard:i,warnings:r.length>0?r:void 0}}function oc(e){let t=e.toLowerCase();return t===`az.ai.openai`||t===`azure_openai`?`openai`:t===`gcp.vertex_ai`||t===`vertex_ai`||t===`gcp.gemini`||t===`google-gla`||t===`google_genai`||t===`gemini`?`google`:t}var sc=new Set(`gen_ai.system,gen_ai.provider.name,gen_ai.operation.name,gen_ai.request.model,gen_ai.response.model,gen_ai.response.id,gen_ai.response.finish_reasons,gen_ai.request.temperature,gen_ai.request.top_p,gen_ai.request.top_k,gen_ai.request.max_tokens,gen_ai.request.stop_sequences,gen_ai.request.seed,gen_ai.request.frequency_penalty,gen_ai.request.presence_penalty,gen_ai.request.choice.count,gen_ai.usage.input_tokens,gen_ai.usage.output_tokens,gen_ai.usage.prompt_tokens,gen_ai.usage.completion_tokens,gen_ai.usage.reasoning.output_tokens,gen_ai.usage.cache_read.input_tokens,gen_ai.usage.cache_write.input_tokens,gen_ai.usage.cache_creation.input_tokens,gen_ai.usage.cost.usd,gen_ai.response.time_to_first_chunk,gen_ai.response.time_to_finish,gen_ai.response.output_tokens_per_second,gen_ai.response.time_per_output_chunk,gen_ai.guard.stopped,gen_ai.guard.rule,gen_ai.guard.action,gen_ai.guard.message,gen_ai.guard.observed,gen_ai.guard.limit,gen_ai.session.cost.usd,gen_ai.session.input_tokens,gen_ai.session.output_tokens,gen_ai.session.step.count,gen_ai.session.tool_call.count,gen_ai.session.error.count,gen_ai.input.messages,gen_ai.output.messages,gen_ai.input.messages.ref,gen_ai.output.messages.ref,gen_ai.system_instructions,gen_ai.tool.definitions,gen_ai.orchestrator.agent.definitions,gen_ai.agent.id,gen_ai.agent.name,gen_ai.agent.description,gen_ai.tool.name,gen_ai.tool.call.id,gen_ai.handoff.from_agent,gen_ai.handoff.to_agent,gen_ai.guardrail.name,gen_ai.guardrail.triggered,gen_ai.conversation.id,gen_ai.evaluation.name,gen_ai.evaluation.score.value,gen_ai.evaluation.score.label,gen_ai.evaluation.explanation,gen_ai.audio.input.format,gen_ai.audio.output.format,gen_ai.speech.voice,gen_ai.speech.input_text,gen_ai.transcription.text,gen_ai.embeddings.dimension.count,gen_ai.openai.request.service_tier,gen_ai.openai.response.service_tier,gen_ai.openai.response.system_fingerprint,gen_ai.openai.request.response_format,openai.request.service_tier,openai.response.service_tier,openai.response.system_fingerprint,openai.request.response_format`.split(`,`));function cc(e){let t=e.attributes??{},n=oc(Y(t[`gen_ai.provider.name`])??Y(t[`gen_ai.system`])??Y(t[`ai.model.provider`])??`unknown`),r=Y(t[`gen_ai.operation.name`])??`chat`,i=Y(t[`gen_ai.request.model`])??Y(t[`llm.request.model`])??Y(t.model_name)??Y(t[`ai.model.id`])??`unknown`,a=Y(t[`gen_ai.response.model`])??Y(t[`llm.response.model`])??Y(t[`ai.response.model`]),o=Qs(t,`gen_ai.input.messages`)??[],s=Qs(t,`gen_ai.output.messages`)??[],c=[],l=Gs(t[`gen_ai.system_instructions`]);if(Array.isArray(l)&&l.length>0){let e=Rs(l[0]);c=e&&`role`in e?l.map(e=>Zs(e)):[{role:`system`,parts:l.map(e=>e.type===`text`||e.content!==void 0?{kind:`text`,text:String(e.content??``)}:{kind:`json`,value:e})}]}let u=o.length||s.length||c.length?[...c,...o,...s]:$s(e.events),d=Y(t[`gen_ai.input.messages.ref`]),f=Y(t[`gen_ai.output.messages.ref`]),p=u.some(e=>e.role===`system`||e.role===`user`),m=u.some(e=>e.role===`assistant`);if(d&&!p&&u.push({role:`user`,parts:[{kind:`ref`,ref:d,direction:`input`}]}),f&&!m&&u.push({role:`assistant`,parts:[{kind:`ref`,ref:f,direction:`output`}]}),u.length===0){let e=Gs(t[`ai.prompt.messages`]);if(Array.isArray(e))u.push(...e.map(Zs));else{let e=Gs(t[`ai.prompt`]);e&&(Array.isArray(e.messages)?u.push(...e.messages.map(Zs)):(e.system&&u.push({role:`system`,parts:[{kind:`text`,text:e.system}]}),e.prompt&&u.push({role:`user`,parts:[{kind:`text`,text:e.prompt}]})))}let n=Gs(t[`ai.response.toolCalls`]),r=Array.isArray(n)?n.filter(e=>Y(e.toolName)!==void 0).map(e=>({id:e.toolCallId,name:e.toolName,arguments:Gs(e.input??e.args)??e.input??e.args??{}})):void 0,i=Y(t[`ai.response.text`]);if(i||r&&r.length>0){let e=hs(t[`gen_ai.response.finish_reasons`])?.[0]??Y(t[`ai.response.finishReason`]),n=Zs({role:`assistant`,content:i??``});e&&(n.finishReason=e),r&&r.length>0&&(n.toolCalls=r),u.push(n)}}if(u.length===0){let e=Gs(t[`pydantic_ai.all_messages`]);Array.isArray(e)&&u.push(...e.map(Zs))}if(u.length===0){let e=[];for(let n=0;n<32;n++){let r=Y(t[`gen_ai.prompt.${n}.role`])??Y(t[`llm.prompts.${n}.role`]),i=t[`gen_ai.prompt.${n}.content`]??t[`llm.prompts.${n}.content`];if(!r)break;e.push(Zs({role:r,content:i}))}for(let n=0;n<32;n++){let r=Y(t[`gen_ai.completion.${n}.role`])??Y(t[`llm.completions.${n}.role`]),i=t[`gen_ai.completion.${n}.content`]??t[`llm.completions.${n}.content`],a=Y(t[`gen_ai.completion.${n}.finish_reason`]);if(!r)break;let o=Zs({role:r,content:i});a&&(o.finishReason=a),e.push(o)}e.length>0&&(u=e)}u=u.flatMap(e=>{let t=e._toolResults;return t?t.map(e=>({role:`tool`,parts:[{kind:`json`,value:e.value}],toolCallId:e.id})):[e]});let h=[];for(let e of u)e.toolCalls&&h.push(...e.toolCalls);if(h.length>0){let e=new Map;for(let t of h)t.id&&e.set(t.id,t);for(let t of u){if(t.role!==`tool`||!t.toolCallId)continue;let n=e.get(t.toolCallId);if(!n||n.result!==void 0)continue;let r=t.parts.find(e=>e.kind===`text`),i=t.parts.find(e=>e.kind===`json`);r&&r.kind===`text`?n.result=Gs(r.text)??r.text:i&&i.kind===`json`&&(n.result=i.value)}}let g=tc(t),_=Ls({provider:n,model:a??i,inputTokens:g.inputTokens,outputTokens:g.outputTokens,cacheReadInputTokens:g.cacheReadInputTokens,cacheCreationInputTokens:g.cacheCreationInputTokens}),v=ps(t[`gen_ai.usage.cost.usd`]),y=v===void 0?_:{currency:`USD`,input:_?.input??0,output:_?.output??0,cacheRead:_?.cacheRead??0,cacheWrite:_?.cacheWrite??0,total:v,source:`reported`},b=nc(t),x=rc(t),{guard:S,warnings:C}=ac(t,e.events),w=hs(t[`gen_ai.response.finish_reasons`]),ee=Y(t[`gen_ai.agent.name`]),te=Y(t[`gen_ai.agent.id`]),ne=Y(t[`gen_ai.agent.description`]),re=Y(t[`gen_ai.tool.name`]),ie=Y(t[`gen_ai.tool.call.id`]),ae=Y(t[`gen_ai.handoff.from_agent`]),oe=Y(t[`gen_ai.handoff.to_agent`]),se=Y(t[`gen_ai.guardrail.name`]),ce=ms(t[`gen_ai.guardrail.triggered`]),le=Y(t[`gen_ai.evaluation.name`]),ue=ps(t[`gen_ai.evaluation.score.value`]),T=Y(t[`gen_ai.evaluation.score.label`]),de=Y(t[`gen_ai.evaluation.explanation`]),fe=Y(t[`gen_ai.audio.input.format`]),pe=Y(t[`gen_ai.audio.output.format`]),me=Y(t[`gen_ai.speech.voice`]),he=Y(t[`gen_ai.speech.input_text`]),ge=Y(t[`gen_ai.transcription.text`]),_e=ps(t[`gen_ai.embeddings.dimension.count`]),ve=Y(t[`agent.consent.outcome`]),ye=Y(t[`policy.decision`]),be=Y(t[`mcp.security.injection.verdict`]),xe=Y(t[`agent.action.risk_class`]),Se=Y(t[`agent.input.provenance`]),Ce=ps(t[`agent.plan.step_index`]),we=Y(t[`security.event`]),Te=ms(t[`gen_ai.guard.stopped`]),Ee=ve||ye||be||xe||Se||Ce!==void 0||we||Te!==void 0||S?.stopped?{...ve&&{consentOutcome:ve},...ye&&{policyDecision:ye},...be&&{injectionVerdict:be},...xe&&{actionRiskClass:xe},...Se&&{inputProvenance:Se},...Ce!==void 0&&{planStepIndex:Ce},...we&&{securityEvent:we},guardStopped:S?.stopped??Te}:void 0,De={};for(let[e,n]of Object.entries(t))sc.has(e)||e.startsWith(`gen_ai.prompt.`)||e.startsWith(`gen_ai.completion.`)||e.startsWith(`llm.prompts.`)||e.startsWith(`llm.completions.`)||(De[e]=n);return{traceId:e.traceId,spanId:e.spanId,parentSpanId:e.parentSpanId,name:e.name,startMs:e.startTime,endMs:e.endTime,status:e.status?.code===`OK`?`ok`:e.status?.code===`ERROR`?`error`:`unset`,errorMessage:e.status?.message,provider:n,operation:r,requestModel:i,responseModel:a,params:{temperature:ps(t[`gen_ai.request.temperature`]),topP:ps(t[`gen_ai.request.top_p`]),topK:ps(t[`gen_ai.request.top_k`]),maxTokens:ps(t[`gen_ai.request.max_tokens`]),stopSequences:hs(t[`gen_ai.request.stop_sequences`]),seed:ps(t[`gen_ai.request.seed`]),frequencyPenalty:ps(t[`gen_ai.request.frequency_penalty`]),presencePenalty:ps(t[`gen_ai.request.presence_penalty`]),choiceCount:ps(t[`gen_ai.request.choice.count`])},messages:u,toolDefinitions:ec(t),toolCalls:h,usage:g,cost:y,streaming:b,guard:S,session:x,warnings:C,finishReasons:w,responseId:Y(t[`gen_ai.response.id`]),agent:te||ee||ne?{id:te,name:ee,description:ne}:void 0,tool:re||ie?{name:re,callId:ie}:void 0,handoff:ae||oe?{fromAgent:ae,toAgent:oe}:void 0,guardrail:se||ce!==void 0?{name:se,triggered:ce}:void 0,conversationId:Y(t[`gen_ai.conversation.id`]),agentSecurity:Ee,evaluation:le||ue!==void 0||T||de?{name:le,scoreValue:ue,scoreLabel:T,explanation:de}:void 0,modality:fe||pe||me||he||ge||_e?{audioInputFormat:fe,audioOutputFormat:pe,speechVoice:me,speechInputText:he,transcriptionText:ge,embeddingDimensions:_e}:void 0,extras:{openaiServiceTier:Y(t[`gen_ai.openai.request.service_tier`])||Y(t[`gen_ai.openai.response.service_tier`])||Y(t[`openai.request.service_tier`])||Y(t[`openai.response.service_tier`])?{request:Y(t[`gen_ai.openai.request.service_tier`])??Y(t[`openai.request.service_tier`]),response:Y(t[`gen_ai.openai.response.service_tier`])??Y(t[`openai.response.service_tier`])}:void 0,openaiSystemFingerprint:Y(t[`gen_ai.openai.response.system_fingerprint`])??Y(t[`openai.response.system_fingerprint`]),openaiResponseFormat:Y(t[`gen_ai.openai.request.response_format`])??Y(t[`openai.request.response_format`]),raw:De}}}function lc(e){let t=new Map;for(let n of e){let e=n.attributes??{},r=e[`ai.toolCall.id`];if(typeof r!=`string`)continue;let i=e[`ai.toolCall.result`];if(i!=null){if(typeof i==`string`)try{t.set(r,JSON.parse(i))}catch{t.set(r,i)}else t.set(r,i)}}return t}function uc(e,t){if(t.size!==0){for(let n of e.toolCalls){if(n.result!==void 0||!n.id)continue;let e=t.get(n.id);e!==void 0&&(n.result=e)}for(let n of e.messages)if(n.toolCalls)for(let e of n.toolCalls){if(e.result!==void 0||!e.id)continue;let n=t.get(e.id);n!==void 0&&(e.result=n)}}}function dc(e,...t){for(let n of t){let t=e[n];if(t==null||t instanceof Object)continue;let r=String(t);if(r.length>0)return r}}function fc(e,...t){for(let n of t){let t=e[n];if(t==null||t instanceof Object||t===!0||t===!1)continue;let r=Number(t);if(Number.isFinite(r)&&String(t).trim()!==``)return r}}function pc(e,...t){for(let n of t){let t=e[n];if(t===!0||t===`true`)return!0;if(t===!1||t===`false`)return!1}}var mc=[[`claude-opus-4`,15,75],[`claude-sonnet-4`,3,15],[`claude-haiku-4`,.8,4],[`claude-3-5-sonnet`,3,15],[`claude-3-5-haiku`,.8,4],[`claude-3-opus`,15,75],[`claude-3-haiku`,.25,1.25],[`opus`,15,75],[`sonnet`,3,15],[`haiku`,.8,4]];function hc(e,t,n){if(!e)return;let r=e.toLowerCase(),i=mc.find(([e])=>r.includes(e));if(!i)return;let[,a,o]=i;return(t??0)/1e6*a+(n??0)/1e6*o}function gc(...e){return Object.assign({},...e)}function _c(e){return{user:dc(e,`user.id`,`user.account_uuid`,`user.email`),organization:dc(e,`organization.id`),terminal:dc(e,`terminal.type`),appVersion:dc(e,`app.version`),model:dc(e,`model`)}}var vc=`mcp__`;function yc(e){if(!e.startsWith(vc))return{name:e,isMcp:!1};let t=e.slice(5),n=t.indexOf(`__`);if(n===-1)return{name:e,isMcp:!0,mcpServer:t||void 0};let r=t.slice(0,n),i=t.slice(n+2);return{name:e,isMcp:!0,mcpServer:r||void 0,mcpTool:i||void 0}}function bc(e){return e.startsWith(vc)}var xc=[`file`,`shell`,`search`,`web`,`todo`,`subagent`,`skill`,`mcp`,`other`],Sc=new Map([[`read`,`file`],[`edit`,`file`],[`write`,`file`],[`multiedit`,`file`],[`notebookedit`,`file`],[`bash`,`shell`],[`bashoutput`,`shell`],[`killshell`,`shell`],[`killbash`,`shell`],[`grep`,`search`],[`glob`,`search`],[`ls`,`search`],[`webfetch`,`web`],[`websearch`,`web`],[`todowrite`,`todo`],[`task`,`subagent`],[`agent`,`subagent`],[`skill`,`skill`]]);function Cc(e){return bc(e)?`mcp`:Sc.get(e.toLowerCase())??`other`}function wc(e){return dc(e,`subagent_type`,`agent_type`,`subagent.type`)}function Tc(e){return dc(e,`skill`,`skill_name`,`skill.name`)}var Ec=new Map([[`user_prompt`,`user_prompt`],[`api_request`,`api_request`],[`api_error`,`api_error`],[`api_refusal`,`api_refusal`],[`tool_result`,`tool_result`],[`tool_decision`,`tool_decision`],[`mcp_server_connection`,`mcp_connection`],[`plugin_loaded`,`plugin_loaded`],[`hook_execution_complete`,`hook_execution`]]),Dc=[...Ec.keys()];function Oc(e,t){let n=Cc(e),r={...yc(e),category:n};if(n===`subagent`){let e=wc(t);e&&(r.subAgentType=e)}else if(n===`skill`){let e=Tc(t);e&&(r.skillName=e)}return r}var kc=new Map([[`lines_of_code.count`,`lines_of_code`],[`commit.count`,`commit`],[`pull_request.count`,`pull_request`],[`active_time.total`,`active_time`]]);function Ac(e){let{kind:t,prefix:n,scopeHint:r,serviceHint:i}=e,a=e=>e!==void 0&&e.includes(r),o=e=>{let t=dc(e,`service.name`);return t!==void 0&&t.includes(i)},s=e=>e.startsWith(n)?e.slice(n.length):e;return{kind:t,matchesMetric(e){return e.name.startsWith(n)||a(e.scope?.name)||o(e.resource)},matchesEvent(e){return e.eventName.startsWith(n)||a(e.scope?.name)||o(e.resource)},normalizeEvent(e){let n=gc(e.resource,e.attributes),r=s(e.eventName)||dc(n,`event.name`)||e.eventName,i=Ec.get(r)??`other`,a=dc(n,`session.id`);if(!a)return null;let o={id:`${a}:0`,sessionId:a,agent:t,type:i,rawEventName:r,timestamp:e.timestamp,model:dc(n,`model`),promptId:dc(n,`prompt.id`),attributes:e.attributes};switch((i===`api_request`||i===`api_error`||i===`api_refusal`)&&(o.effort=dc(n,`effort`),o.speed=dc(n,`speed`),o.agentName=dc(n,`agent.name`),o.skillName=dc(n,`skill.name`)),i){case`api_request`:{o.inputTokens=fc(n,`input_tokens`),o.outputTokens=fc(n,`output_tokens`),o.cacheReadTokens=fc(n,`cache_read_tokens`),o.contextLineageId=dc(n,`query_source`),o.tokenSource=dc(n,`token_source`)===`estimated`?`estimated`:void 0,o.cacheCreationTokens=fc(n,`cache_creation_tokens`),o.durationMs=fc(n,`duration_ms`);let e=fc(n,`cost_usd`,`cost`);if(e===void 0){let e=hc(o.model,o.inputTokens,o.outputTokens);e!==void 0&&(o.costUsd=e,o.costSource=`estimated`)}else o.costUsd=e,o.costSource=`reported`;break}case`api_refusal`:o.durationMs=fc(n,`duration_ms`);break;case`api_error`:o.errorMessage=dc(n,`error`,`error.message`,`message`),o.statusCode=fc(n,`status_code`,`http.response.status_code`,`http.status_code`),o.durationMs=fc(n,`duration_ms`);break;case`tool_result`:{let e=dc(n,`tool_name`,`name`,`tool`);e&&(o.tool=Oc(e,n)),o.success=pc(n,`success`),o.durationMs=fc(n,`duration_ms`),o.resultBytes=fc(n,`tool_result_size_bytes`);let t=dc(n,`decision`);(t===`accept`||t===`reject`)&&(o.decision=t);break}case`tool_decision`:{let e=dc(n,`tool_name`,`name`,`tool`);e&&(o.tool=Oc(e,n));let t=dc(n,`decision`);(t===`accept`||t===`reject`)&&(o.decision=t);break}case`user_prompt`:{o.promptLength=fc(n,`prompt_length`,`prompt.length`);let e=dc(n,`prompt`);e&&(o.promptText=e);break}case`mcp_connection`:o.mcpServerName=dc(n,`server_name`,`name`),o.mcpTransport=dc(n,`transport_type`,`transport`),o.mcpStatus=dc(n,`status`),o.durationMs=fc(n,`duration_ms`);break;case`plugin_loaded`:o.pluginName=dc(n,`plugin.name`,`plugin_name`,`name`),o.pluginVersion=dc(n,`plugin.version`,`plugin_version`);break;case`hook_execution`:o.hookName=dc(n,`hook_event`,`hook_name`,`name`),o.hookSuccess=fc(n,`num_success`),o.hookBlocked=fc(n,`num_blocking`),o.hookErrored=fc(n,`num_non_blocking_error`),o.hookCancelled=fc(n,`num_cancelled`)}return o},normalizeMetric(e){let n=kc.get(s(e.name))??`other`;return e.dataPoints.map(r=>{let i=gc(e.resource,r.attributes);return{agent:t,sessionId:dc(i,`session.id`),identity:_c(i),kind:n,value:r.value,temporality:e.temporality,timestamp:r.timestamp,attributes:r.attributes}})}}}Ac({kind:`claude-code`,prefix:`claude_code.`,scopeHint:`claude_code`,serviceHint:`claude-code`});var jc={handled:Dc,ignored:[`api_request_body`,`api_response_body`,`assistant_response`,`hook_registered`,`hook_execution_start`,`permission_mode_changed`,`auth`]};[...jc.handled,...jc.ignored],Ac({kind:`opencode`,prefix:`opencode.`,scopeHint:`opencode`,serviceHint:`opencode`});function Mc(){return Object.fromEntries(xc.map(e=>[e,0]))}function Nc(){return Object.create(null)}function Pc(){return{requests:0,costUsd:0,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0}}function Fc(e,t){for(let[n,r]of Object.entries(t)){let t=e[n]??(e[n]=Pc());t.requests+=r.requests,t.costUsd+=r.costUsd,t.inputTokens+=r.inputTokens,t.outputTokens+=r.outputTokens,t.cacheReadTokens+=r.cacheReadTokens,t.cacheCreationTokens+=r.cacheCreationTokens}}function Ic(e){let t={sessions:0,costUsd:0,inputTokens:0,outputTokens:0,apiRequests:0,apiErrors:0,accepted:0,rejected:0,byModel:Nc(),byEffort:Nc(),bySkill:Nc(),byAgent:Nc(),tools:Nc(),toolCategories:Mc(),mcpServers:Nc(),subAgents:Nc(),skills:Nc(),mcpConnections:Nc(),plugins:Nc(),hooks:{runs:0,blocked:0,errored:0,cancelled:0}};for(let n of e){t.sessions+=1;let{rollup:e}=n;t.costUsd+=e.costUsd,t.inputTokens+=e.inputTokens,t.outputTokens+=e.outputTokens,t.apiRequests+=e.apiRequests,t.apiErrors+=e.apiErrors,t.accepted+=e.accepted,t.rejected+=e.rejected,Fc(t.byModel,e.byModel),Fc(t.byEffort,e.byEffort),Fc(t.bySkill,e.bySkill),Fc(t.byAgent,e.byAgent);for(let n of Object.values(e.tools))t.tools[n.name]=(t.tools[n.name]??0)+n.count,n.isMcp&&n.mcpServer&&(t.mcpServers[n.mcpServer]=(t.mcpServers[n.mcpServer]??0)+n.count);for(let n of xc)t.toolCategories[n]+=e.toolCategories[n];for(let[n,r]of Object.entries(e.subAgents))t.subAgents[n]=(t.subAgents[n]??0)+r;for(let[n,r]of Object.entries(e.skills))t.skills[n]=(t.skills[n]??0)+r;for(let n of Object.values(e.mcpConnections)){let e=t.mcpConnections[n.name]??{name:n.name,transport:n.transport,connected:!1,connects:0,disconnects:0};e.connects+=n.connects,e.disconnects+=n.disconnects,e.connected=e.connected||n.connected,n.transport&&(e.transport=n.transport),t.mcpConnections[n.name]=e}for(let n of Object.values(e.plugins))t.plugins[n.name]=n;t.hooks.runs+=e.hooks.runs,t.hooks.blocked+=e.hooks.blocked,t.hooks.errored+=e.hooks.errored,t.hooks.cancelled+=e.hooks.cancelled}return t}var Lc=ls(!1),Rc=ls({x:20,y:20}),zc=ls(`bottom-right`),Bc=ls(`bottom`),Vc=ls(!1),Hc=ls(`traces`),Uc=ls(null),Wc=ls(null),Gc=ls(null);function Kc(e,t){Gc.value={traceId:e,spanId:t}}var qc=ls(`system`);function Jc(){try{let e=localStorage.getItem(`autotel-devtools-theme`);if(e===`light`||e===`dark`||e===`system`)return e}catch{}return`system`}var Yc=[`system`,`light`,`dark`];function Xc(){let e=Yc[(Yc.indexOf(qc.value)+1)%Yc.length];qc.value=e;try{localStorage.setItem(`autotel-devtools-theme`,e)}catch{}}var Zc=`autotel-devtools-editor`;function Qc(){try{let e=localStorage.getItem(Zc);if(e===`vscode`||e===`cursor`||e===`webstorm`)return e}catch{}return`vscode`}var $c=ls(Qc());function el(e){$c.value=e;try{localStorage.setItem(Zc,e)}catch{}}var tl=ls(null);function nl(e){tl.value=e}function rl(){tl.value=null}function il(e){tl.value=tl.value?null:e}var al={vertical:440,horizontal:560},ol=ls({...al});function sl(e){return globalThis.window===void 0?e===`vertical`?{min:200,max:900}:{min:360,max:1200}:e===`vertical`?{min:200,max:Math.round(window.innerHeight*.92)}:{min:360,max:Math.round(window.innerWidth*.92)}}function cl(e,t){let{min:n,max:r}=sl(e),i=Math.min(r,Math.max(n,Math.round(t)));ol.value={...ol.value,[e]:i}}function ll(e){cl(e,al[e])}var ul=ls([]),dl=ls({connectionStatus:`disconnected`}),fl=ls([]),pl=ls([]),ml=ls(`disconnected`),hl=ls(null),gl=ls(Ss),_l=ls([]),vl=ls([]),yl=ls(`pending`),bl=us(()=>{if(yl.value===`ready`)return _l.value;let e=Ts(gl.value,Date.now());if(Es(e))return ul.value;let{start:t,end:n}=e;return ul.value.filter(e=>e.startTime>=t&&e.startTime<=n)}),xl=ls(0),Sl=15e3,Cl=[];function wl(e,t,n){if(e+t+n===0)return;let r=Date.now();Cl.push({t:r,traces:e,logs:t,metrics:n});let i=r-Sl;(Cl.length>1024||Cl[0].t<i)&&(Cl=Cl.filter(e=>e.t>=i)),xl.value+=1}function Tl(e=5e3,t=Date.now()){let n=t-e,r=0,i=0,a=0;for(let e of Cl)e.t>=n&&(r+=e.traces,i+=e.logs,a+=e.metrics);let o=e/1e3;return{traces:r/o,logs:i/o,metrics:a/o,total:(r+i+a)/o}}var El=ls(!1),Dl=ls([]),Ol=ls([]),kl=us(()=>Dl.value.length),Al=us(()=>Ol.value.length),jl=ls(!1),Ml=us(()=>ul.value.filter(e=>e.status===`ERROR`)),Nl=us(()=>{let e=Ml.value;return Lc.value?0:e.length}),Pl=ls({key:`time`,dir:`desc`}),Fl=ls(``),Il=ls(`all`),Ll=ls(0),Rl=ls(new Set);function zl(e){let t=new Set(Rl.value);t.has(e)?t.delete(e):t.add(e),Rl.value=t}function Bl(){Rl.value.size>0&&(Rl.value=new Set)}var Vl=ls(``),Hl=new Map([[`time`,`desc`],[`duration`,`desc`],[`spans`,`desc`],[`service`,`asc`],[`name`,`asc`],[`status`,`desc`]]);function Ul(e){let t=Pl.value;Pl.value=t.key===e?{key:e,dir:t.dir===`asc`?`desc`:`asc`}:{key:e,dir:Hl.get(e)??`desc`}}var Wl=new Set([`service`,`name`]);function Gl(e,t){return(t===`service`?e.service:e.rootSpan?.name)??``}function Kl(e,t){switch(t){case`duration`:return e.duration;case`spans`:return e.spans.length;case`status`:return+(e.status===`ERROR`);default:return e.startTime}}function ql(e,t,n){return Wl.has(n)?Gl(e,n).localeCompare(Gl(t,n)):Kl(e,n)-Kl(t,n)}var Jl=us(()=>{let{key:e,dir:t}=Pl.value,n=t===`asc`?1:-1;return[...ul.value].sort((t,r)=>{let i=ql(t,r,e);return i===0?r.startTime-t.startTime:i*n})}),Yl=us(()=>[...pl.value].sort((e,t)=>t.timestamp-e.timestamp)),Xl=ls([]),Zl=ls(null),Ql=us(()=>[...Xl.value].sort((e,t)=>t.lastSeen-e.lastSeen));us(()=>Ic(Xl.value)),us(()=>{let e=Ql.value;if(e.length===0)return null;let t=Zl.value;return e.find(e=>e.id===t)??e[0]});var $l=us(()=>bs({traces:bl.value,logs:pl.value,errors:fl.value})),eu=us(()=>{let e=[];for(let t of bl.value){let n=lc(t.spans);for(let r of t.spans){if(!Ns(r))continue;let i=cc(r);uc(i,n),e.push({raw:r,normalized:i,service:t.service,traceId:t.traceId})}}return e.sort((e,t)=>t.normalized.startMs-e.normalized.startMs),e}),tu=us(()=>eu.value.length),nu=us(()=>bl.value.filter(e=>e.spans.length>1).length),ru=us(()=>{if(yl.value===`ready`)return vl.value;let e=Ts(gl.value,Date.now());if(Es(e))return fl.value;let{start:t,end:n}=e;return fl.value.filter(e=>e.lastSeen>=t&&e.firstSeen<=n)}),iu=us(()=>[...ru.value].sort((e,t)=>t.lastSeen-e.lastSeen)),au=us(()=>[...ru.value].sort((e,t)=>t.count-e.count)),ou=us(()=>ru.value.reduce((e,t)=>e+t.count,0)),su=us(()=>{let e=Date.now()-36e5;return fl.value.filter(t=>t.lastSeen>e).reduce((e,t)=>e+t.count,0)}),cu=us(()=>{let e=Uc.value;return e&&bl.value.find(t=>t.traceId===e)||null}),lu=ls(new Set);function uu(e){let t=new Set(lu.value);t.has(e)?t.delete(e):t.add(e),lu.value=t}function du(){lu.value=new Set(bl.value.map(e=>e.traceId))}function fu(){lu.value=new Set}function pu(){let e=lu.value;ul.value=ul.value.filter(t=>!e.has(t.traceId)),_l.value=_l.value.filter(t=>!e.has(t.traceId)),fu(),Uc.value&&e.has(Uc.value)&&(Uc.value=null)}var mu=us(()=>lu.value.size);function hu(e,t){let n=[...t].sort((e,t)=>e.startTime-t.startTime),r=n.find(e=>!e.parentSpanId),i=r??e.rootSpan??n[0],a=Math.min(...n.map(e=>e.startTime)),o=Math.max(...n.map(e=>e.endTime)),s=n.some(e=>e.status.code===`ERROR`)?`ERROR`:`OK`,c=fs(i?.attributes,`service.name`);return{...e,rootSpan:i,spans:n,startTime:a,endTime:o,duration:o-a,status:s,service:c??e.service,partial:r===void 0}}function gu(e,t){let n=new Map;for(let t of e.spans)n.set(t.spanId,t);for(let e of t.spans)n.has(e.spanId)||n.set(e.spanId,e);return hu(e,[...n.values()])}function _u(e,t){if(t.length===0)return e;let n=new Map;for(let e of t){let t=n.get(e.traceId);n.set(e.traceId,t?gu(t,e):e)}let r=new Set(e.map(e=>e.traceId)),i=e.map(e=>{let t=n.get(e.traceId);return t?gu(e,t):e});for(let[e,t]of n)r.has(e)||i.push(t);return i}function vu(e,t,n){let r=_u(e,t);return r.length>n?r.slice(-n):r}function yu(e,t){if(t.length===0)return e;let n=[...t,...e];return n.length>Ru?n.slice(0,Ru):n}function bu(e,t,n,r=n){return{ingest(i,a){i.length!==0&&(a?t.value=r(t.value,i):e.value=n(e.value,i))},flushToLive(){t.value.length!==0&&(e.value=n(e.value,t.value),t.value=[])},clearPending(){t.value=[]}}}var xu=bu(ul,Dl,_u,(e,t)=>vu(e,t,Ru)),Su=bu(pl,Ol,yu),Cu=[xu,Su];function wu(e){if(jl.value){e.health&&(dl.value=e.health,ml.value=e.health.connectionStatus);return}let t=El.value;xu.ingest(e.traces??[],t),Su.ingest(e.logs??[],t),wl(e.traces?.length??0,e.logs?.length??0,0),e.health&&(dl.value=e.health,ml.value=e.health.connectionStatus),e.errors&&(fl.value=e.errors),e.agents&&(Xl.value=e.agents)}function Tu(e){if(El.value!==e&&(El.value=e,!e))for(let e of Cu)e.flushToLive()}function Eu(){Tu(!El.value)}function Du(){for(let e of Cu)e.clearPending()}function Ou(e){ul.value=e.traces??[],pl.value=(e.logs??[]).slice(0,Ru),fl.value=e.errors??[],Dl.value=[],Ol.value=[],El.value=!1,jl.value=!0}function ku(){jl.value=!1,ul.value=[],pl.value=[],fl.value=[]}function Au(){Lc.value=!Lc.value}function ju(e){Hc.value=e}function Mu(e,t=null){Uc.value=e,Wc.value=e?t:null}function Nu(e,t){Mu(e,t??null),ju(`traces`)}function Pu(e,t){Rc.value={x:e,y:t}}function Fu(e){zc.value=e}function Iu(e){Bc.value=e}function Lu(){let e=[`bottom`,`right`,`left`],t=Bc.value??`bottom`;Bc.value=e[(e.indexOf(t)+1)%e.length]}var Ru=100;function zu(){ul.value=[],_l.value=[],fl.value=[],vl.value=[],pl.value=[],Xl.value=[],Zl.value=null,Dl.value=[],Ol.value=[],lu.value=new Set,Uc.value=null,Wc.value=null,yl.value=`pending`,jl.value=!1}function Bu(e){if(e.length===0)return;let t=new Set(ul.value.map(e=>e.traceId)),n=e.filter(e=>!t.has(e.traceId));n.length>0?(console.log(`[Autotel Devtools] Importing ${n.length} trace(s)`),ul.value=[...ul.value,...n]):console.log(`[Autotel Devtools] No new traces to import (all duplicates)`)}var Vu=ls(`local`),Hu=`autotel-devtools-widget-state`;function Uu(){try{let e=localStorage.getItem(Hu);if(e){let t=JSON.parse(e);t.position&&(Rc.value=t.position),t.corner&&(zc.value=t.corner),t.docked&&(Bc.value=t.docked),t.panelSize&&(ol.value={vertical:Number(t.panelSize.vertical)||440,horizontal:Number(t.panelSize.horizontal)||560}),typeof t.timeZone==`string`&&(Vu.value=t.timeZone)}}catch(e){console.error(`[Autotel Devtools] Failed to load persisted state:`,e)}}function Wu(){try{let e={position:Rc.value,corner:zc.value,docked:Bc.value,panelSize:ol.value,timeZone:Vu.value};localStorage.setItem(Hu,JSON.stringify(e))}catch(e){console.error(`[Autotel Devtools] Failed to persist state:`,e)}}ds(()=>{Rc.value,zc.value,Bc.value,Vu.value,ol.value,Wu()});var Gu=Object.keys({traces:!0,compare:!0,coverage:!0,agents:!0,resources:!0,"service-map":!0,metrics:!0,logs:!0,errors:!0,genai:!0,flow:!0,security:!0,webmcp:!0});function Ku(e,t){return e.find(e=>e===t)}function qu(e){return Ku(Gu,e)!==void 0}var Ju=[`time`,`duration`,`spans`,`service`,`name`,`status`],Yu=[`error`,`ok`],Xu={key:`time`,dir:`desc`};function Zu(e){if(!e)return;let[t,n]=e.split(`:`),r=Ku(Ju,t);return r&&{key:r,dir:n===`asc`?`asc`:`desc`}}function Qu(e){let t=e.startsWith(`#`)?e.slice(1):e;if(!t)return{};let n=new URLSearchParams(t),r={},i=n.get(`tab`);qu(i)&&(r.tab=i);let a=n.get(`trace`)||void 0;a&&(r.traceId=a);let o=n.get(`span`)||void 0;a&&o&&(r.spanId=o);let s=n.get(`q`)||void 0;s&&(r.q=s);let c=Ku(Yu,n.get(`status`));c&&(r.status=c);let l=n.get(`min`),u=l==null?NaN:Number(l);Number.isFinite(u)&&u>0&&(r.minDuration=u);let d=n.get(`window`);d&&(r.window=As(d));let f=Zu(n.get(`sort`));f&&(r.sort=f);let p=n.get(`gq`)||void 0;return p&&(r.genaiQuery=p),r}function $u(e){let t=new URLSearchParams;if(e.tab&&t.set(`tab`,e.tab),e.traceId&&t.set(`trace`,e.traceId),e.traceId&&e.spanId&&t.set(`span`,e.spanId),e.q&&t.set(`q`,e.q),e.status&&e.status!==`all`&&t.set(`status`,e.status),e.minDuration&&e.minDuration>0&&t.set(`min`,String(e.minDuration)),e.window){let n=ks(e.window);n&&t.set(`window`,n)}e.sort&&(e.sort.key!==Xu.key||e.sort.dir!==Xu.dir)&&t.set(`sort`,`${e.sort.key}:${e.sort.dir}`),e.genaiQuery&&t.set(`gq`,e.genaiQuery);let n=t.toString();return n?`#${n}`:``}function ed(e,t){return e&&(e.tab!==t.tab||e.traceId!==t.traceId||e.spanId!==t.spanId)?`push`:`replace`}var td=new Set([`$$slots`,`$$events`,`$$legacy`,`fill`,`width`,`height`]),nd=la(`<svg><circle cx="17" cy="20" r="3" fill="#9AAAB4"></circle><path fill="#DA2F47" d="M19.235 17.059a1.003 1.003 0 0 1-1.353.412L5.529 10.883a1.004 1.004 0 0 1-.412-1.353L7.94 4.235c.259-.485.868-.67 1.353-.412l12.353 6.588c.485.259.671.868.412 1.353z"></path><path fill="#DA2F47" d="M31.177 22.293a1.004 1.004 0 0 1-1.354.412l-9.705-5.176a1.004 1.004 0 0 1-.412-1.354l1.882-3.529c.259-.485.868-.67 1.354-.412l9.705 5.176c.485.259.671.868.412 1.354z"></path><path fill="#BB1A34" d="m19.235 17.058 2.824-5.293 1.765.941L20.999 18z"></path><path fill="#9D0522" d="m28.942 22.235 2.823-5.294 3.53 1.882-2.824 5.294z"></path><path fill="#292F33" d="m8.294 7.824 1.882-3.53-.881-.47v-.001L4.882 1.471a1.003 1.003 0 0 0-1.353.411L.706 7.177a1 1 0 0 0 .412 1.353l3.529 1.882 1.766.941.47-.882zM23 25a2 2 0 0 1-2 2h-8a2 2 0 0 1 0-4h8a2 2 0 0 1 2 2"></path><path fill="#9AAAB4" d="m9.467 36 3.344-7.152c.468-1 .036-2.191-.965-2.658a1.997 1.997 0 0 0-2.658.965L5.052 36zm15.065 0h4.416l-4.137-8.846a1.997 1.997 0 0 0-2.658-.965 2 2 0 0 0-.965 2.658zM19 36v-8a2 2 0 0 0-4 0v8z"></path></svg>`);function rd(e,t){let n=J(t,`width`,3,40),r=J(t,`height`,3,40),i=K(t,td);var a=nd();Oo(a,()=>({width:n(),height:r(),viewBox:`0 0 36 36`,xmlns:`http://www.w3.org/2000/svg`,...i})),B(e,a)}function id(e){let t=e<0,n=Math.abs(e),r;if(n===0)r=`0`;else if(n<.001)r=`${(n*1e6).toFixed(0)}ns`;else if(n<1)r=`${(n*1e3).toFixed(2).replace(/\.?0+$/,``)}µs`;else if(n<1e3)r=`${n.toFixed(2).replace(/\.?0+$/,``)}ms`;else if(n<6e4)r=`${(n/1e3).toFixed(2).replace(/\.?0+$/,``)}s`;else{let e=Math.floor(n/6e4),t=Math.floor(n%6e4/1e3);r=t>0?`${e}m ${t}s`:`${e}m`}return t?`⚠ ${r}`:r}function ad(e){let t=new Date(e),n=new Date().getTime()-t.getTime();if(n<6e4){let e=Math.floor(n/1e3);return e<=1?`just now`:`${e}s ago`}return n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:t.toLocaleTimeString()}function od(e){switch(e){case`OK`:return`text-green-600`;case`ERROR`:return`text-red-600`;default:return`text-gray-500`}}function sd(e,t,n,r){let i=n/2,a=r/2;return e<i&&t<a?{corner:`top-left`,x:20,y:20}:e>=i&&t<a?{corner:`top-right`,x:n-100,y:20}:e<i&&t>=a?{corner:`bottom-left`,x:20,y:r-100}:{corner:`bottom-right`,x:n-100,y:r-100}}function cd(e,t,n){return Math.min(Math.max(e,t),n)}var ld=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ud=(e,t)=>({classGroupId:e,validator:t}),dd=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),fd=`-`,pd=[],md=`arbitrary..`,hd=e=>{let t=vd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return _d(e);let n=e.split(fd);return gd(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ld(i,t):t:i||pd}return n[e]||pd}}},gd=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=gd(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(fd):e.slice(t).join(fd),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},_d=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?md+r:void 0})(),vd=e=>{let{theme:t,classGroups:n}=e;return yd(n,t)},yd=(e,t)=>{let n=dd();for(let r in e){let i=e[r];bd(i,n,r,t)}return n},bd=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];xd(i,t,n,r)}},xd=(e,t,n,r)=>{if(typeof e==`string`){Sd(e,t,n);return}if(typeof e==`function`){Cd(e,t,n,r);return}wd(e,t,n,r)},Sd=(e,t,n)=>{let r=e===``?t:Td(t,e);r.classGroupId=n},Cd=(e,t,n,r)=>{if(Ed(e)){bd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ud(n,e))},wd=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];bd(o,Td(t,a),n,r)}},Td=(e,t)=>{let n=e,r=t.split(fd),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=dd(),n.nextPart.set(t,i)),n=i}return n},Ed=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Dd=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Od=`!`,kd=`:`,Ad=[],jd=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Md=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===kd){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Od)?(c=s.slice(0,-1),l=!0):s.startsWith(Od)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return jd(t,l,c,u)};if(t){let e=t+kd,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):jd(Ad,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Nd=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Pd=e=>({cache:Dd(e.cacheSize),parseClassName:Md(e),sortModifiers:Nd(e),postfixLookupClassGroupIds:Fd(e),...hd(e)}),Fd=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Id=/\s+/,Ld=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Id),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Od:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Rd=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=zd(n))&&(i&&(i+=` `),i+=r);return i},zd=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=zd(e[r]))&&(n&&(n+=` `),n+=t);return n},Bd=(e,...t)=>{let n,r,i,a,o=o=>(n=Pd(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ld(e,n);return i(e,a),a};return a=o,(...e)=>a(Rd(...e))},Vd=[],Hd=e=>{let t=t=>t[e]||Vd;return t.isThemeGetter=!0,t},Ud=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Kd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zd=e=>Gd.test(e),Qd=e=>!!e&&!Number.isNaN(Number(e)),$d=e=>!!e&&Number.isInteger(Number(e)),ef=e=>e.endsWith(`%`)&&Qd(e.slice(0,-1)),tf=e=>Kd.test(e),nf=()=>!0,rf=e=>qd.test(e)&&!Jd.test(e),af=()=>!1,of=e=>Yd.test(e),sf=e=>Xd.test(e),cf=e=>!X(e)&&!Z(e),lf=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),uf=e=>Tf(e,kf,af),X=e=>Ud.test(e),df=e=>Tf(e,Af,rf),ff=e=>Tf(e,jf,Qd),pf=e=>Tf(e,Nf,nf),mf=e=>Tf(e,Mf,af),hf=e=>Tf(e,Df,af),gf=e=>Tf(e,Of,sf),_f=e=>Tf(e,Pf,of),Z=e=>Wd.test(e),vf=e=>Ef(e,Af),yf=e=>Ef(e,Mf),bf=e=>Ef(e,Df),xf=e=>Ef(e,kf),Sf=e=>Ef(e,Of),Cf=e=>Ef(e,Pf,!0),wf=e=>Ef(e,Nf,!0),Tf=(e,t,n)=>{let r=Ud.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ef=(e,t,n=!1)=>{let r=Wd.exec(e);return r?r[1]?t(r[1]):n:!1},Df=e=>e===`position`||e===`percentage`,Of=e=>e===`image`||e===`url`,kf=e=>e===`length`||e===`size`||e===`bg-size`,Af=e=>e===`length`,jf=e=>e===`number`,Mf=e=>e===`family-name`,Nf=e=>e===`number`||e===`weight`,Pf=e=>e===`shadow`,Ff=Bd(()=>{let e=Hd(`color`),t=Hd(`font`),n=Hd(`text`),r=Hd(`font-weight`),i=Hd(`tracking`),a=Hd(`leading`),o=Hd(`breakpoint`),s=Hd(`container`),c=Hd(`spacing`),l=Hd(`radius`),u=Hd(`shadow`),d=Hd(`inset-shadow`),f=Hd(`text-shadow`),p=Hd(`drop-shadow`),m=Hd(`blur`),h=Hd(`perspective`),g=Hd(`aspect`),_=Hd(`ease`),v=Hd(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Z,X],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Z,X,c],ee=()=>[Zd,`full`,`auto`,...w()],te=()=>[$d,`none`,`subgrid`,Z,X],ne=()=>[`auto`,{span:[`full`,$d,Z,X]},$d,Z,X],re=()=>[$d,`auto`,Z,X],ie=()=>[`auto`,`min`,`max`,`fr`,Z,X],ae=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],oe=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...w()],ce=()=>[Zd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],le=()=>[Zd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ue=()=>[Zd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],T=()=>[e,Z,X],de=()=>[...b(),bf,hf,{position:[Z,X]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],pe=()=>[`auto`,`cover`,`contain`,xf,uf,{size:[Z,X]}],me=()=>[ef,vf,df],he=()=>[``,`none`,`full`,l,Z,X],ge=()=>[``,Qd,vf,df],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ye=()=>[Qd,ef,bf,hf],be=()=>[``,`none`,m,Z,X],xe=()=>[`none`,Qd,Z,X],Se=()=>[`none`,Qd,Z,X],Ce=()=>[Qd,Z,X],we=()=>[Zd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[tf],breakpoint:[tf],color:[nf],container:[tf],"drop-shadow":[tf],ease:[`in`,`out`,`in-out`],font:[cf],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[tf],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[tf],shadow:[tf],spacing:[`px`,Qd],text:[tf],"text-shadow":[tf],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Zd,X,Z,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Z,X]}],"container-named":[lf],columns:[{columns:[Qd,X,Z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[$d,`auto`,Z,X]}],basis:[{basis:[Zd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Qd,Zd,`auto`,`initial`,`none`,X]}],grow:[{grow:[``,Qd,Z,X]}],shrink:[{shrink:[``,Qd,Z,X]}],order:[{order:[$d,`first`,`last`,`none`,Z,X]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ae(),`normal`]}],"justify-items":[{"justify-items":[...oe(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...oe()]}],"align-content":[{content:[`normal`,...ae()]}],"align-items":[{items:[...oe(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...oe(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...oe(),`baseline`]}],"place-self":[{"place-self":[`auto`,...oe()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,...ce()]}],"font-size":[{text:[`base`,n,vf,df]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,wf,pf]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ef,X]}],"font-family":[{font:[yf,mf,t]}],"font-features":[{"font-features":[X]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Z,X]}],"line-clamp":[{"line-clamp":[Qd,`none`,Z,ff]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Z,X]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Z,X]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[Qd,`from-font`,`auto`,Z,df]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Qd,`auto`,Z,X]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[$d,Z,X]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Z,X]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Z,X]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},$d,Z,X],radial:[``,Z,X],conic:[$d,Z,X]},Sf,gf]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Qd,Z,X]}],"outline-w":[{outline:[``,Qd,vf,df]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`none`,u,Cf,_f]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,Cf,_f]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ge()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Qd,df]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,Cf,_f]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Qd,Z,X]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Qd]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Qd]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Z,X]}],filter:[{filter:[``,`none`,Z,X]}],blur:[{blur:be()}],brightness:[{brightness:[Qd,Z,X]}],contrast:[{contrast:[Qd,Z,X]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Cf,_f]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,Qd,Z,X]}],"hue-rotate":[{"hue-rotate":[Qd,Z,X]}],invert:[{invert:[``,Qd,Z,X]}],saturate:[{saturate:[Qd,Z,X]}],sepia:[{sepia:[``,Qd,Z,X]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Z,X]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[Qd,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[Qd,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Qd,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qd,Z,X]}],"backdrop-invert":[{"backdrop-invert":[``,Qd,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[Qd,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[Qd,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":[``,Qd,Z,X]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Z,X]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Qd,`initial`,Z,X]}],ease:[{ease:[`linear`,`initial`,_,Z,X]}],delay:[{delay:[Qd,Z,X]}],animate:[{animate:[`none`,v,Z,X]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Z,X]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":[`scale-3d`],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[Z,X,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":[`translate-none`],zoom:[{zoom:[$d,Z,X]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Z,X]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Z,X]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[Qd,vf,df,ff]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),Q=(...e)=>Ff(no(e)),If=z(`<button title="Autolemetry Observability"><!></button>`);function Lf(e,t){it(t,!0);let n=M(void 0),r=!1,i={x:0,y:0},a=j(()=>Rc.value),o=j(()=>Nl.value),s=j(()=>Lc.value),c=j(()=>L(o)>0),l=j(()=>L(c)?`#DA2F47`:`#22c55e`);function u(e){e.button===0&&(r=!0,i={x:e.clientX-L(a).x,y:e.clientY-L(a).y},L(n)?.setPointerCapture(e.pointerId),e.preventDefault())}function d(e){r&&Pu(cd(e.clientX-i.x,0,window.innerWidth-48),cd(e.clientY-i.y,0,window.innerHeight-48))}function f(e){if(!r)return;r=!1,L(n)?.releasePointerCapture(e.pointerId);let t=sd(L(a).x,L(a).y,window.innerWidth,window.innerHeight);Pu(t.x,t.y),Fu(t.corner)}function p(){r||Au()}var m=da(),h=Or(m),g=e=>{var t=If(),r=P(t);{let e=j(()=>L(c)?`#fff`:void 0);rd(r,{get fill(){return L(e)},width:28,height:28})}E(t),Uo(t,e=>N(n,e),()=>L(n)),I(e=>{W(t,1,e),lo(t,`width: 48px; height: 48px; left: ${L(a).x??``}px; top: ${L(a).y??``}px; transform: translate3d(0, 0, 0); border-color: ${L(l)??``};`)},[()=>U(Q(`fixed z-[1000] rounded-full border-2 shadow-md`,`flex items-center justify-center cursor-pointer touch-none`,`transition-all duration-150 select-none`,`hover:shadow-lg`,`bg-surface hover:bg-subtle`))]),R(`click`,t,p),R(`pointerdown`,t,u),R(`pointermove`,t,d),R(`pointerup`,t,f),B(e,t)};H(h,e=>{L(s)||e(g)}),B(e,m),at()}ta([`click`,`pointerdown`,`pointermove`,`pointerup`]);var Rf={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},zf=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Bf=Symbol(`lucide-context`),Vf=()=>et(Bf),Hf=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),Uf=la(`<svg><!><!></svg>`);function Wf(e,t){it(t,!0);let n=Vf()??{},r=J(t,`color`,19,()=>n.color??`currentColor`),i=J(t,`size`,19,()=>n.size??24),a=J(t,`strokeWidth`,19,()=>n.strokeWidth??2),o=J(t,`absoluteStrokeWidth`,19,()=>n.absoluteStrokeWidth??!1),s=J(t,`iconNode`,19,()=>[]),c=K(t,Hf),l=j(()=>o()?Number(a())*24/Number(i()):a());var u=Uf();Oo(u,e=>({...Rf,...e,...c,width:i(),height:i(),stroke:r(),"stroke-width":L(l),class:[`lucide-icon lucide`,n.class,t.name&&`lucide-${t.name}`,t.class]}),[()=>!t.children&&!zf(c)&&{"aria-hidden":`true`}]);var d=P(u);Pa(d,17,s,Aa,(e,t)=>{var n=j(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=da();Qa(Or(a),r,!0,(e,t)=>{Oo(e,()=>({...i()}))}),B(e,a)}),Ba(F(d),()=>t.children??p),E(u),B(e,u),at()}var Gf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Kf(e,t){let n=K(t,Gf),r=[[`path`,{d:`M12 5v14`}],[`path`,{d:`m19 12-7 7-7-7`}]];Wf(e,q({name:`arrow-down`},()=>n,{get iconNode(){return r}}))}var qf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Jf(e,t){let n=K(t,qf),r=[[`path`,{d:`m5 12 7-7 7 7`}],[`path`,{d:`M12 19V5`}]];Wf(e,q({name:`arrow-up`},()=>n,{get iconNode(){return r}}))}var Yf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Xf(e,t){let n=K(t,Yf),r=[[`path`,{d:`M12 8V4H8`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`}],[`path`,{d:`M2 14h2`}],[`path`,{d:`M20 14h2`}],[`path`,{d:`M15 13v2`}],[`path`,{d:`M9 13v2`}]];Wf(e,q({name:`bot`},()=>n,{get iconNode(){return r}}))}var Zf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qf(e,t){let n=K(t,Zf),r=[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`}],[`path`,{d:`m7 16.5-4.74-2.85`}],[`path`,{d:`m7 16.5 5-3`}],[`path`,{d:`M7 16.5v5.17`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`}],[`path`,{d:`m17 16.5-5-3`}],[`path`,{d:`m17 16.5 4.74-2.85`}],[`path`,{d:`M17 16.5v5.17`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`}],[`path`,{d:`M12 8 7.26 5.15`}],[`path`,{d:`m12 8 4.74-2.85`}],[`path`,{d:`M12 13.5V8`}]];Wf(e,q({name:`boxes`},()=>n,{get iconNode(){return r}}))}var $f=new Set([`$$slots`,`$$events`,`$$legacy`]);function ep(e,t){let n=K(t,$f),r=[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`}],[`circle`,{cx:`12`,cy:`13`,r:`3`}]];Wf(e,q({name:`camera`},()=>n,{get iconNode(){return r}}))}var tp=new Set([`$$slots`,`$$events`,`$$legacy`]);function np(e,t){let n=K(t,tp),r=[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`}],[`path`,{d:`M18 17V9`}],[`path`,{d:`M13 17V5`}],[`path`,{d:`M8 17v-3`}]];Wf(e,q({name:`chart-column`},()=>n,{get iconNode(){return r}}))}var rp=new Set([`$$slots`,`$$events`,`$$legacy`]);function ip(e,t){let n=K(t,rp),r=[[`path`,{d:`M5 21v-6`}],[`path`,{d:`M12 21V9`}],[`path`,{d:`M19 21V3`}]];Wf(e,q({name:`chart-no-axes-column-increasing`},()=>n,{get iconNode(){return r}}))}var ap=new Set([`$$slots`,`$$events`,`$$legacy`]);function op(e,t){let n=K(t,ap),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];Wf(e,q({name:`check`},()=>n,{get iconNode(){return r}}))}var sp=new Set([`$$slots`,`$$events`,`$$legacy`]);function cp(e,t){let n=K(t,sp),r=[[`path`,{d:`m6 9 6 6 6-6`}]];Wf(e,q({name:`chevron-down`},()=>n,{get iconNode(){return r}}))}var lp=new Set([`$$slots`,`$$events`,`$$legacy`]);function up(e,t){let n=K(t,lp),r=[[`path`,{d:`m15 18-6-6 6-6`}]];Wf(e,q({name:`chevron-left`},()=>n,{get iconNode(){return r}}))}var dp=new Set([`$$slots`,`$$events`,`$$legacy`]);function fp(e,t){let n=K(t,dp),r=[[`path`,{d:`m9 18 6-6-6-6`}]];Wf(e,q({name:`chevron-right`},()=>n,{get iconNode(){return r}}))}var pp=new Set([`$$slots`,`$$events`,`$$legacy`]);function mp(e,t){let n=K(t,pp),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]];Wf(e,q({name:`circle-alert`},()=>n,{get iconNode(){return r}}))}var hp=new Set([`$$slots`,`$$events`,`$$legacy`]);function gp(e,t){let n=K(t,hp),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}],[`path`,{d:`M12 17h.01`}]];Wf(e,q({name:`circle-question-mark`},()=>n,{get iconNode(){return r}}))}var _p=new Set([`$$slots`,`$$events`,`$$legacy`]);function vp(e,t){let n=K(t,_p),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 6v6l4 2`}]];Wf(e,q({name:`clock`},()=>n,{get iconNode(){return r}}))}var yp=new Set([`$$slots`,`$$events`,`$$legacy`]);function bp(e,t){let n=K(t,yp),r=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]];Wf(e,q({name:`code-xml`},()=>n,{get iconNode(){return r}}))}var xp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sp(e,t){let n=K(t,xp),r=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]];Wf(e,q({name:`copy`},()=>n,{get iconNode(){return r}}))}var Cp=new Set([`$$slots`,`$$events`,`$$legacy`]);function wp(e,t){let n=K(t,Cp),r=[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`}]];Wf(e,q({name:`database`},()=>n,{get iconNode(){return r}}))}var Tp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ep(e,t){let n=K(t,Tp),r=[[`path`,{d:`M12 15V3`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}],[`path`,{d:`m7 10 5 5 5-5`}]];Wf(e,q({name:`download`},()=>n,{get iconNode(){return r}}))}var Dp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Op(e,t){let n=K(t,Dp),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`M10 14 21 3`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}]];Wf(e,q({name:`external-link`},()=>n,{get iconNode(){return r}}))}var kp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ap(e,t){let n=K(t,kp),r=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 9H8`}],[`path`,{d:`M16 13H8`}],[`path`,{d:`M16 17H8`}]];Wf(e,q({name:`file-text`},()=>n,{get iconNode(){return r}}))}var jp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mp(e,t){let n=K(t,jp),r=[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`}]];Wf(e,q({name:`flame`},()=>n,{get iconNode(){return r}}))}var Np=new Set([`$$slots`,`$$events`,`$$legacy`]);function Pp(e,t){let n=K(t,Np),r=[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`}]];Wf(e,q({name:`funnel`},()=>n,{get iconNode(){return r}}))}var Fp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ip(e,t){let n=K(t,Fp),r=[[`circle`,{cx:`18`,cy:`18`,r:`3`}],[`circle`,{cx:`6`,cy:`6`,r:`3`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`}]];Wf(e,q({name:`git-compare`},()=>n,{get iconNode(){return r}}))}var Lp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Rp(e,t){let n=K(t,Lp),r=[[`circle`,{cx:`12`,cy:`9`,r:`1`}],[`circle`,{cx:`19`,cy:`9`,r:`1`}],[`circle`,{cx:`5`,cy:`9`,r:`1`}],[`circle`,{cx:`12`,cy:`15`,r:`1`}],[`circle`,{cx:`19`,cy:`15`,r:`1`}],[`circle`,{cx:`5`,cy:`15`,r:`1`}]];Wf(e,q({name:`grip-horizontal`},()=>n,{get iconNode(){return r}}))}var zp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Bp(e,t){let n=K(t,zp),r=[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`}]];Wf(e,q({name:`hash`},()=>n,{get iconNode(){return r}}))}var Vp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Hp(e,t){let n=K(t,Vp),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 16v-4`}],[`path`,{d:`M12 8h.01`}]];Wf(e,q({name:`info`},()=>n,{get iconNode(){return r}}))}var Up=new Set([`$$slots`,`$$events`,`$$legacy`]);function Wp(e,t){let n=K(t,Up),r=[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`}]];Wf(e,q({name:`layers`},()=>n,{get iconNode(){return r}}))}var Gp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Kp(e,t){let n=K(t,Gp),r=[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`}],[`path`,{d:`M14 4h7`}],[`path`,{d:`M14 9h7`}],[`path`,{d:`M14 15h7`}],[`path`,{d:`M14 20h7`}]];Wf(e,q({name:`layout-list`},()=>n,{get iconNode(){return r}}))}var qp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Jp(e,t){let n=K(t,qp),r=[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`}]];Wf(e,q({name:`link-2`},()=>n,{get iconNode(){return r}}))}var Yp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Xp(e,t){let n=K(t,Yp),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]];Wf(e,q({name:`maximize-2`},()=>n,{get iconNode(){return r}}))}var Zp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qp(e,t){let n=K(t,Zp),r=[[`path`,{d:`m14 10 7-7`}],[`path`,{d:`M20 10h-6V4`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M4 14h6v6`}]];Wf(e,q({name:`minimize-2`},()=>n,{get iconNode(){return r}}))}var $p=new Set([`$$slots`,`$$events`,`$$legacy`]);function em(e,t){let n=K(t,$p),r=[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`}]];Wf(e,q({name:`monitor`},()=>n,{get iconNode(){return r}}))}var tm=new Set([`$$slots`,`$$events`,`$$legacy`]);function nm(e,t){let n=K(t,tm),r=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]];Wf(e,q({name:`moon`},()=>n,{get iconNode(){return r}}))}var rm=new Set([`$$slots`,`$$events`,`$$legacy`]);function im(e,t){let n=K(t,rm),r=[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`}],[`path`,{d:`M12 12V8`}]];Wf(e,q({name:`network`},()=>n,{get iconNode(){return r}}))}var am=new Set([`$$slots`,`$$events`,`$$legacy`]);function om(e,t){let n=K(t,am),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M3 15h18`}]];Wf(e,q({name:`panel-bottom`},()=>n,{get iconNode(){return r}}))}var sm=new Set([`$$slots`,`$$events`,`$$legacy`]);function cm(e,t){let n=K(t,sm),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}]];Wf(e,q({name:`panel-left`},()=>n,{get iconNode(){return r}}))}var lm=new Set([`$$slots`,`$$events`,`$$legacy`]);function um(e,t){let n=K(t,lm),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M15 3v18`}]];Wf(e,q({name:`panel-right`},()=>n,{get iconNode(){return r}}))}var dm=new Set([`$$slots`,`$$events`,`$$legacy`]);function fm(e,t){let n=K(t,dm),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];Wf(e,q({name:`pause`},()=>n,{get iconNode(){return r}}))}var pm=new Set([`$$slots`,`$$events`,`$$legacy`]);function mm(e,t){let n=K(t,pm),r=[[`path`,{d:`M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4`}],[`rect`,{width:`10`,height:`7`,x:`12`,y:`13`,rx:`2`}]];Wf(e,q({name:`picture-in-picture-2`},()=>n,{get iconNode(){return r}}))}var hm=new Set([`$$slots`,`$$events`,`$$legacy`]);function gm(e,t){let n=K(t,hm),r=[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`}]];Wf(e,q({name:`play`},()=>n,{get iconNode(){return r}}))}var _m=new Set([`$$slots`,`$$events`,`$$legacy`]);function vm(e,t){let n=K(t,_m),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]];Wf(e,q({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var ym=new Set([`$$slots`,`$$events`,`$$legacy`]);function bm(e,t){let n=K(t,ym),r=[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}],[`path`,{d:`m16 16-1.9-1.9`}]];Wf(e,q({name:`scan-search`},()=>n,{get iconNode(){return r}}))}var xm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sm(e,t){let n=K(t,xm),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];Wf(e,q({name:`search`},()=>n,{get iconNode(){return r}}))}var Cm=new Set([`$$slots`,`$$events`,`$$legacy`]);function wm(e,t){let n=K(t,Cm),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`M12 8v4`}],[`path`,{d:`M12 16h.01`}]];Wf(e,q({name:`shield-alert`},()=>n,{get iconNode(){return r}}))}var Tm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Em(e,t){let n=K(t,Tm),r=[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`}],[`path`,{d:`M20 2v4`}],[`path`,{d:`M22 4h-4`}],[`circle`,{cx:`4`,cy:`20`,r:`2`}]];Wf(e,q({name:`sparkles`},()=>n,{get iconNode(){return r}}))}var Dm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Om(e,t){let n=K(t,Dm),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]];Wf(e,q({name:`sun`},()=>n,{get iconNode(){return r}}))}var km=new Set([`$$slots`,`$$events`,`$$legacy`]);function Am(e,t){let n=K(t,km),r=[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`}]];Wf(e,q({name:`tag`},()=>n,{get iconNode(){return r}}))}var jm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mm(e,t){let n=K(t,jm),r=[[`path`,{d:`M10 11v6`}],[`path`,{d:`M14 11v6`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}],[`path`,{d:`M3 6h18`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}]];Wf(e,q({name:`trash-2`},()=>n,{get iconNode(){return r}}))}var Nm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Pm(e,t){let n=K(t,Nm),r=[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}],[`path`,{d:`M12 9v4`}],[`path`,{d:`M12 17h.01`}]];Wf(e,q({name:`triangle-alert`},()=>n,{get iconNode(){return r}}))}var Fm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Im(e,t){let n=K(t,Fm),r=[[`path`,{d:`M12 3v12`}],[`path`,{d:`m17 8-5-5-5 5`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}]];Wf(e,q({name:`upload`},()=>n,{get iconNode(){return r}}))}var Lm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Rm(e,t){let n=K(t,Lm),r=[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`}]];Wf(e,q({name:`workflow`},()=>n,{get iconNode(){return r}}))}var zm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Bm(e,t){let n=K(t,zm),r=[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`}]];Wf(e,q({name:`wrench`},()=>n,{get iconNode(){return r}}))}var Vm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Hm(e,t){let n=K(t,Vm),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];Wf(e,q({name:`x`},()=>n,{get iconNode(){return r}}))}var Um=new Set([`$$slots`,`$$events`,`$$legacy`]);function Wm(e,t){let n=K(t,Um),r=[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`}]];Wf(e,q({name:`zap`},()=>n,{get iconNode(){return r}}))}function Gm(e){let t=e-1;return t*t*t+1}function Km(){return globalThis.window===void 0?null:window.documentPictureInPicture??null}function qm(){return Km()!==null}var Jm=null,Ym=null;async function Xm(e,t,{width:n=720,height:r=560}={}){let i=Km();if(!i||Jm)return!1;let a=await i.requestWindow({width:n,height:r});Jm=a,a.document.title=e.ownerDocument.title||`autotel devtools`;let o=a.document.createElement(`style`);return o.textContent=`html,body{margin:0;padding:0;height:100%;width:100%;overflow:hidden;background:transparent}`,a.document.head.appendChild(o),Ym=e.ownerDocument.createComment(`autotel-pip-placeholder`),e.replaceWith(Ym),a.document.body.appendChild(e),a.addEventListener(`pagehide`,()=>Qm(t),{once:!0}),!0}function Zm(e){if(!Jm)return;let t=Jm;Qm(e);try{t.close()}catch{}}function Qm(e){let t=Jm;if(!t)return;Jm=null;let n=t.document.body.firstElementChild;n&&(Ym?.isConnected?Ym.replaceWith(n):document.body.appendChild(n)),Ym=null,e?.()}var $m=[{fill:`#ede9fe`,stroke:`#8b5cf6`},{fill:`#ccfbf1`,stroke:`#14b8a6`},{fill:`#dbeafe`,stroke:`#3b82f6`},{fill:`#fef9c3`,stroke:`#ca8a04`},{fill:`#fce7f3`,stroke:`#db2777`},{fill:`#dcfce7`,stroke:`#16a34a`},{fill:`#ffedd5`,stroke:`#ea580c`},{fill:`#e0e7ff`,stroke:`#6366f1`}];function eh(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return $m[t%$m.length]}var th=[{keys:[`1-6`],description:`Switch between tabs (Traces through Errors)`},{keys:[`?`],description:`Show/hide this shortcuts help`},{keys:[`Esc`],description:`Close shortcuts help / go back from trace detail`},{keys:[`/`],description:`Focus search filter`}],nh=[{keys:[`/`],description:`Focus search filter`},{keys:[`Esc`],description:`Clear selection / clear search`},{keys:[`CmdOrCtrl`,`A`],description:`Select all traces`},{keys:[`?`],description:`Show/hide keyboard shortcuts`}],rh=[{keys:[`Esc`],description:`Go back to trace list / close span detail`},{keys:[`w`],description:`Switch to waterfall view`},{keys:[`f`],description:`Switch to flame graph view`},{keys:[`l`],description:`Switch to list view`},{keys:[`↑`,`↓`,`Enter`],description:`Navigate spans / select in waterfall`},{keys:[`e`,`Shift+E`],description:`Next / previous error span`},{keys:[`/`],description:`Search spans in this trace`},{keys:[`?`],description:`Show/hide keyboard shortcuts`}];function ih(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;if(!e)return!1;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||!!e.isContentEditable}function ah(e){return t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),e())}}var oh=globalThis.navigator!==void 0&&/Mac|iPhone|iPad|iPod/.test(navigator.platform),sh=z(`<div class="border border-line rounded-lg p-3 bg-subtle"><div class="font-semibold text-fg"> </div> <div class="text-xs text-fg-subtle mt-0.5"> </div></div>`),ch=z(`<div class="p-3 bg-danger-bg border border-danger-border rounded-md text-sm text-danger flex items-start gap-2"><!> <span> </span></div>`),lh=z(`<p class="mb-1 last:mb-0"> </p>`),uh=z(`<div class="p-3 bg-accent/10 border border-accent/30 rounded-md text-sm text-accent"></div>`),dh=z(`<div class="p-3 bg-success-bg border border-success-border rounded-md text-sm text-success"> </div>`),fh=z(`<div class="fixed inset-0 z-[1100] flex items-center justify-center" role="dialog" aria-modal="true" aria-label="Import traces"><button type="button" aria-label="Close" class="absolute inset-0 bg-black/55 backdrop-blur-[2px] at-backdrop-in"></button> <div tabindex="-1" class="at-modal-in relative z-[1] w-[min(560px,92vw)] max-h-[85vh] overflow-hidden flex flex-col bg-surface rounded-lg shadow-xl border border-line outline-none"><div class="flex items-center justify-between px-4 py-3 border-b border-line bg-subtle flex-shrink-0"><span class="text-sm font-semibold text-fg">Import Traces</span> <button class="inline-flex items-center justify-center w-7 h-7 bg-transparent border border-line rounded text-sm text-fg-subtle hover:bg-danger-bg hover:border-danger-border hover:text-danger transition-colors" title="Close (Esc)"><!></button></div> <div class="overflow-y-auto p-4 flex flex-col gap-3"><label class="flex flex-col gap-2 text-sm text-fg-muted"><span class="font-semibold text-fg">JSON file</span> <span class="inline-flex items-center px-3 py-1.5 border border-line rounded text-sm text-fg-muted bg-surface hover:bg-subtle cursor-pointer w-fit transition-colors"><!> Choose file</span> <input type="file" accept=".json,application/json" class="hidden"/></label> <!> <!> <!> <!></div> <div class="flex items-center justify-end gap-3 px-4 py-3 border-t border-line bg-subtle flex-shrink-0"><button class="px-3 py-1.5 text-sm border border-line rounded bg-surface text-fg-muted hover:bg-subtle disabled:opacity-50 disabled:cursor-not-allowed transition-colors">Cancel</button> <button class="px-4 py-1.5 text-sm rounded bg-accent text-white hover:bg-accent/90 disabled:opacity-50 disabled:cursor-not-allowed transition-colors"> </button></div></div></div>`);function ph(e,t){it(t,!0);function n(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}let r=M(null),i=M(!1),a=M(null),o=M(null),s=M(void 0);Rr(()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),t.onclose())};return window.addEventListener(`keydown`,e),L(s)?.focus(),()=>window.removeEventListener(`keydown`,e)});let c=e=>{let t=e.target.files?.[0];t&&(N(r,t,!0),N(o,null),N(a,null))},l=async()=>{if(L(r)){N(i,!0),N(o,null);try{let e=await t.onimport(L(r));N(a,e,!0),e.errors.length>0&&N(o,e.errors.join(`; `),!0),e.imported>0&&e.errors.length===0&&setTimeout(t.onclose,1500)}catch(e){N(o,String(e),!0)}finally{N(i,!1)}}};var u=fh(),d=P(u),f=F(d,2),p=P(f),m=F(P(p),2);Hm(P(m),{size:14}),E(m),E(p);var h=F(p,2),g=P(h),_=F(P(g),2);Im(P(_),{size:14,class:`mr-1.5`}),Ke(),E(_);var v=F(_,2);E(g);var y=F(g,2),b=e=>{var t=sh(),i=P(t),a=P(i,!0);E(i);var o=F(i,2),s=P(o,!0);E(o),E(t),I(e=>{V(a,L(r).name),V(s,e)},[()=>n(L(r).size)]),B(e,t)};H(y,e=>{L(r)&&e(b)});var x=F(y,2),S=e=>{var t=ch(),n=P(t);Pm(n,{size:14,class:`flex-shrink-0 mt-0.5`});var r=F(n,2),i=P(r,!0);E(r),E(t),I(()=>V(i,L(o))),B(e,t)};H(x,e=>{L(o)&&e(S)});var C=F(x,2),w=e=>{var t=uh();Pa(t,21,()=>L(a).warnings,Aa,(e,t)=>{var n=lh(),r=P(n,!0);E(n),I(()=>V(r,L(t))),B(e,n)}),E(t),B(e,t)};H(C,e=>{L(a)&&L(a).warnings.length>0&&e(w)});var ee=F(C,2),te=e=>{var t=dh(),n=P(t);E(t),I(()=>V(n,`Successfully imported ${L(a).imported??``} trace${L(a).imported===1?``:`s`}.`)),B(e,t)};H(ee,e=>{L(a)&&L(a).imported>0&&e(te)}),E(h);var ne=F(h,2),re=P(ne),ie=F(re,2),ae=P(ie,!0);E(ie),E(ne),E(f),Uo(f,e=>N(s,e),()=>L(s)),E(u),I(()=>{re.disabled=L(i),ie.disabled=!L(r)||L(i),V(ae,L(i)?`Importing...`:`Confirm Import`)}),R(`click`,d,function(...e){t.onclose?.apply(this,e)}),R(`click`,m,function(...e){t.onclose?.apply(this,e)}),R(`change`,v,c),R(`click`,re,function(...e){t.onclose?.apply(this,e)}),R(`click`,ie,l),B(e,u),at()}ta([`click`,`change`]);function mh(e,t){if(t.length===0)return e.duration;let n=t.map(t=>[Math.max(t.startTime,e.startTime),Math.min(t.endTime,e.endTime)]).filter(([e,t])=>t>e).sort((e,t)=>e[0]-t[0]),r=0,i=-1/0,a=-1/0;for(let[e,t]of n)e>a?(a>i&&(r+=a-i),i=e,a=t):t>a&&(a=t);return a>i&&(r+=a-i),Math.max(0,e.duration-r)}function hh(e){let t=new Set;if(e.length===0)return t;let n=new Map;for(let t of e)n.set(t.spanId,t);let r=new Map;for(let t of e){let e=t.parentSpanId&&n.has(t.parentSpanId)?t.parentSpanId:``,i=r.get(e);i?i.push(t):r.set(e,[t])}let i=r.get(``)??[];if(i.length===0)return t;let a=e=>e.reduce((e,t)=>t.endTime>e.endTime?t:e),o=a(i);for(;o&&!t.has(o.spanId);){t.add(o.spanId);let e=r.get(o.spanId);o=e&&e.length?a(e):void 0}return t}function gh(e,t=()=>!1){let n=[],r=(e,i,a)=>{e.forEach((o,s)=>{let c=s===e.length-1;n.push({node:o,connectors:{ancestorLines:[...i],isLast:c,depth:a}}),!(t(o)||o.children.length===0)&&r(o.children,[...i,!c],a+1)})};return r(e,[],0),n}function _h(e){if(e!==`local`)return e===`utc`?`UTC`:e}function vh(e,t){try{return new Intl.DateTimeFormat(void 0,{...t,timeZone:_h(e)})}catch{return new Intl.DateTimeFormat(void 0,t)}}function yh(e,t=`local`){return vh(t,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(new Date(e))}function bh(e=`local`){return e===`utc`?`UTC`:vh(e,{timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??`Local`}var xh=2;function Sh(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=n>0?(e[i].timestamp-t)/n*100:0,o=Math.min(Math.max(a,0),100),s=r.find(e=>e.every(e=>Math.abs(o-e.posPercent)>xh));s?s.push({index:i,posPercent:o}):r.push([{index:i,posPercent:o}])}return r}var Ch=new Set([`error`,`fatal`,`critical`]);function wh(e){if(e.name===`exception`)return`exception`;let t=e.attributes?.level??e.attributes?.severity;return typeof t==`string`&&Ch.has(t.toLowerCase())?`exception`:`event`}var Th=z(`<span class="absolute inset-y-0 border-l border-line"></span>`),Eh=z(`<span class="relative shrink-0"><!></span>`),Dh=z(`<span class="relative shrink-0"><span></span> <span class="absolute top-1/2 border-t border-line"></span></span>`),Oh=z(`<span aria-hidden="true" data-testid="tree-gutter"><!> <!></span>`);function kh(e,t){it(t,!0);let n=J(t,`indent`,3,16);var r=Oh(),i=P(r);Pa(i,17,()=>t.ancestorLines,Aa,(e,t)=>{var r=Eh(),i=P(r),a=e=>{var t=Th();I(()=>lo(t,`left:${n()/2}px`)),B(e,t)};H(i,e=>{L(t)&&e(a)}),E(r),I(()=>{lo(r,`width:${n()??``}px`),G(r,`data-testid`,L(t)?`gutter-line`:`gutter-blank`)}),B(e,r)});var a=F(i,2),o=e=>{var r=Dh(),i=P(r),a=F(i,2);E(r),I(e=>{lo(r,`width:${n()??``}px`),G(r,`data-testid`,t.isLast?`gutter-elbow`:`gutter-tee`),W(i,1,e),lo(i,`left:${n()/2}px`),lo(a,`left:${n()/2}px; width:${n()/2}px`)},[()=>U(Q(`absolute top-0 border-l border-line`,t.isLast?`h-1/2`:`inset-y-0`))]),B(e,r)};H(a,e=>{(t.ancestorLines.length>0||!t.isLast)&&e(o)}),E(r),I(e=>W(r,1,e),[()=>U(Q(`flex shrink-0 self-stretch`,t.class))]),B(e,r),at()}function Ah(e){let t=e.children.length;for(let n of e.children)t+=Ah(n);return t}function jh(e,t){let n=t.startTime,r=t.duration||1,i=e.startTime-n,a=i/r*100,o=e.duration/r*100;return{offsetMs:i,offsetPercent:Math.max(0,Math.min(100,a)),widthPercent:Math.max(.5,Math.min(100-a,o))}}function Mh(e){switch(e){case`SERVER`:return`bg-blue-500`;case`CLIENT`:return`bg-green-500`;case`PRODUCER`:return`bg-purple-500`;case`CONSUMER`:return`bg-orange-500`;default:return`bg-gray-500`}}function Nh(e){switch(e){case`SERVER`:return`bg-blue-400`;case`CLIENT`:return`bg-green-400`;case`PRODUCER`:return`bg-purple-400`;case`CONSUMER`:return`bg-orange-400`;default:return`bg-gray-400`}}var Ph=z(`<button class="p-0.5 hover:bg-hover rounded flex-shrink-0"><!></button>`),Fh=z(`<div class="w-4"></div>`),Ih=z(`<span class="text-xs text-fg-subtle ml-1"> </span>`),Lh=z(`<span class="absolute inset-0 flex items-center justify-center text-[10px] text-white font-medium"> </span>`),Rh=z(`<button type="button"></button>`),zh=z(`<div class="flex gap-2 py-0.5"><span class="text-fg-subtle flex-shrink-0"> </span> <span class="text-fg break-all"> </span></div>`),Bh=z(`<div class="font-mono text-[11px] text-fg-muted bg-subtle rounded p-2 border border-line-subtle max-h-[160px] overflow-auto"></div>`),Vh=z(`<div class="text-[11px] text-fg-subtle italic">No attributes</div>`),Hh=z(`<div class="absolute z-30 top-[calc(100%-2px)] left-2 right-2 max-w-[420px] bg-surface border border-line rounded-md shadow-lg p-2.5 text-left at-modal-in"><div class="flex items-center gap-2 mb-1.5"><span></span> <span> </span> <span class="text-[10px] text-fg-subtle font-mono"> </span> <button type="button" class="p-0.5 hover:bg-hover rounded flex-shrink-0" aria-label="Close event detail"><!></button></div> <div class="text-[10px] text-fg-subtle font-mono mb-1.5"> </div> <!></div>`),Uh=z(`<div><div class="shrink-0 pr-2 py-2 flex items-center gap-1 min-w-0"><!> <!> <!> <!> <!> <span> </span> <!></div> <div class="flex-1 relative"><div><!></div> <!> <!></div> <div class="shrink-0 px-2 py-2 text-right"><span> </span></div></div>`);function Wh(e,t){it(t,!0);let n=J(t,`nameWidth`,3,200),r=J(t,`durationWidth`,3,80),i=j(()=>t.node.span),a=j(()=>jh(L(i),t.trace)),o=j(()=>L(i).status.code===`ERROR`),s=j(()=>L(i).events&&L(i).events.length>0),c=j(()=>Sh(L(i).events??[],t.trace.startTime,t.trace.duration)),l=M(null),u=e=>{N(l,L(l)===e?null:e,!0)};Rr(()=>{if(L(l)===null)return;let e=()=>{N(l,null)},t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`click`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`keydown`,t)}});var d=Uh(),f=P(d),p=P(f),m=e=>{kh(e,{get ancestorLines(){return t.connectors.ancestorLines},get isLast(){return t.connectors.isLast}})};H(p,e=>{t.connectors&&e(m)});var h=F(p,2),_=e=>{var n=Ph(),r=P(n),i=e=>{fp(e,{size:12,class:`text-fg-subtle`})},a=e=>{cp(e,{size:12,class:`text-fg-subtle`})};H(r,e=>{t.isCollapsed?e(i):e(a,-1)}),E(n),R(`click`,n,e=>{e.stopPropagation(),t.onToggleCollapse?.()}),B(e,n)},v=e=>{B(e,Fh())};H(h,e=>{t.hasChildren?e(_):e(v,-1)});var y=F(h,2),b=e=>{mp(e,{size:12,class:`text-danger flex-shrink-0`})};H(y,e=>{L(o)&&e(b)});var x=F(y,2),S=e=>{Hp(e,{size:10,class:`text-accent flex-shrink-0`})};H(x,e=>{L(s)&&e(S)});var C=F(x,2),w=e=>{Wm(e,{size:10,class:`text-warning fill-warning flex-shrink-0`})};H(C,e=>{t.isCritical&&e(w)});var ee=F(C,2),te=P(ee,!0);E(ee);var ne=F(ee,2),re=e=>{var n=Ih(),r=P(n);E(n),I(e=>V(r,`(+${e??``})`),[()=>Ah(t.node)]),B(e,n)};H(ne,e=>{t.isCollapsed&&t.node.children.length>0&&e(re)}),E(f);var ie=F(f,2),ae=P(ie),oe=P(ae),se=e=>{var t=Lh(),n=P(t,!0);E(t),I(e=>V(n,e),[()=>id(L(i).duration)]),B(e,t)};H(oe,e=>{L(a).widthPercent>10&&e(se)}),E(ae);var ce=F(ae,2);Pa(ce,17,()=>L(c),Aa,(e,n,r)=>{var a=da();Pa(Or(a),17,()=>L(n),e=>e.index,(e,n)=>{let a=j(()=>L(i).events[L(n).index]),o=j(()=>28+r*8),s=j(()=>wh(L(a))===`exception`);var c=Rh();I((e,t)=>{W(c,1,e),lo(c,`left: ${L(n).posPercent}%; top: ${L(o)}px; transform: translateX(-50%);`),G(c,`title`,t),G(c,`aria-label`,`Event ${L(a).name}`)},[()=>U(Q(`absolute w-2.5 h-2.5 rounded-full border border-white z-10 cursor-pointer hover:scale-125 transition-transform`,L(s)?`bg-danger`:`bg-warning`,L(l)===L(n).index&&`ring-2 ring-accent scale-125`)),()=>`${L(a).name} at ${id(L(a).timestamp-t.trace.startTime)} — click for detail`]),R(`click`,c,e=>{e.stopPropagation(),u(L(n).index)}),B(e,c)}),B(e,a)});var le=F(ce,2),ue=e=>{let n=j(()=>L(i).events[L(l)]),r=j(()=>wh(L(n))===`exception`);var a=Hh(),o=P(a),s=P(o),c=F(s,2),u=P(c,!0);E(c);var d=F(c,2),f=P(d);E(d);var p=F(d,2);Hm(P(p),{size:12,class:`text-fg-subtle`}),E(p),E(o);var m=F(o,2),h=P(m,!0);E(m);var _=F(m,2),v=e=>{var t=Bh();Pa(t,21,()=>Object.entries(L(n).attributes),([e,t])=>e,(e,t)=>{var n=j(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=zh(),o=P(a),s=P(o,!0);E(o);var c=F(o,2),l=P(c,!0);E(c),E(a),I(e=>{V(s,r()),V(l,e)},[()=>typeof i()==`object`?JSON.stringify(i()):String(i())]),B(e,a)}),E(t),B(e,t)},y=j(()=>L(n).attributes&&Object.keys(L(n).attributes).length>0),b=e=>{B(e,Vh())};H(_,e=>{L(y)?e(v):e(b,-1)}),E(a),I((e,t,r,i)=>{W(s,1,e),W(c,1,t),V(u,L(n).name),V(f,`+${r??``}`),V(h,i)},[()=>U(Q(`w-2 h-2 rounded-full flex-shrink-0`,L(r)?`bg-danger`:`bg-warning`)),()=>U(Q(`text-xs font-medium flex-1 truncate`,L(r)?`text-danger`:`text-fg`)),()=>id(L(n).timestamp-t.trace.startTime),()=>yh(L(n).timestamp,Vu.value)]),R(`click`,a,e=>e.stopPropagation()),R(`click`,p,e=>{e.stopPropagation(),N(l,null)}),B(e,a)};H(le,e=>{L(l)!==null&&L(i).events?.[L(l)]&&e(ue)}),E(ie);var T=F(ie,2),de=P(T),fe=P(de,!0);E(de),E(T),E(d),I((e,o,s,c,l,u,p)=>{G(d,`id`,`waterfall-row-${L(i).spanId}`),W(d,1,e),lo(f,`width: ${n()}px; padding-left: ${t.connectors?8:8+t.node.depth*16}px;`),W(ee,1,o),V(te,L(i).name||`unknown`),lo(ie,s),W(ae,1,c),lo(ae,`left: ${L(a).offsetPercent}%; width: ${L(a).widthPercent}%; top: 6px; min-width: 4px;`),G(ae,`title`,l),lo(T,`width: ${r()}px;`),W(de,1,u),V(fe,p)},[()=>U(Q(`flex items-center border-b border-line-subtle hover:bg-accent/5 cursor-pointer transition-colors`,t.isSelected&&`bg-accent/10 hover:bg-accent/15`,L(o)&&`bg-danger-bg/40 hover:bg-danger-bg/60`,t.isCritical&&`border-l-2 border-l-warning`)),()=>U(Q(`text-xs truncate`,L(o)?`text-danger`:`text-fg`)),()=>`height: ${Math.max(32,30+L(c).length*8)}px;`,()=>U(Q(`absolute h-5 rounded-sm transition-colors group`,L(o)?`bg-danger`:Mh(L(i).kind),t.isSelected&&(L(o)?`bg-danger`:Nh(L(i).kind)))),()=>`${L(i).name}: ${id(L(i).duration)}`,()=>U(Q(`text-xs font-mono`,L(o)?`text-danger`:`text-fg-muted`)),()=>id(L(i).duration)]),R(`click`,d,()=>t.onSelect?.()),ea(`pointerenter`,f,e=>t.onHover?.(e.currentTarget)),ea(`pointerleave`,f,()=>t.onHover?.(null)),B(e,d),at()}ta([`click`]);var Gh=`http.request.method,http.method,http.route,url.path,http.response.status_code,http.status_code,db.system.name,db.system,db.operation.name,db.query.text,db.statement,rpc.service,rpc.method,messaging.system,messaging.destination.name,gen_ai.operation.name,gen_ai.request.model,gen_ai.tool.name,gen_ai.usage.input_tokens,gen_ai.usage.output_tokens,model,tool_name,hook_event,hook_name,plugin.name,server_name,decision,status,success,input_tokens,output_tokens,duration_ms,cost_usd,prompt_length,error.type,exception.type,exception.message,peer.service,server.address`.split(`,`);function Kh(e,t=1/0){let n=[];for(let r of Gh){if(n.length>=t)break;let i=e[r];if(i==null)continue;let a=typeof i==`object`?JSON.stringify(i):String(i);n.push([r,a.length>120?`${a.slice(0,120)}…`:a])}return n}var qh=z(`<div class="text-fg-subtle mt-0.5"><!> <!> <!></div>`),Jh=z(`<div class="flex items-start gap-1 mt-1.5 text-danger"><!> <span class="break-all"> </span></div>`),Yh=z(`<span class="text-fg-subtle"> </span> <span class="text-fg break-all"> </span>`,1),Xh=z(`<div class="mt-1.5 pt-1.5 border-t border-line-subtle font-mono text-[11px] grid grid-cols-[auto_1fr] gap-x-2 gap-y-0.5"></div>`),Zh=z(`<div role="tooltip" class="w-max max-w-[420px] bg-surface border border-line rounded-md shadow-lg p-2.5 text-left text-xs at-modal-in"><div class="font-medium text-fg break-all mb-1.5"> </div> <div class="flex flex-wrap gap-x-3 gap-y-0.5 text-fg-muted font-mono tabular-nums"><span> </span> <span> </span> <span> </span> <span> </span></div> <!> <!> <!></div>`);function Qh(e,t){it(t,!0);let n=j(()=>t.node.span),r=j(()=>t.trace.duration>0?L(n).duration/t.trace.duration*100:0),i=j(()=>Ah(t.node)),a=j(()=>Kh(L(n).attributes??{}));var o=Zh(),s=P(o),c=P(s,!0);E(s);var l=F(s,2),u=P(l),d=P(u,!0);E(u);var f=F(u,2),p=P(f);E(f);var m=F(f,2),h=P(m);E(m);var _=F(m,2),v=P(_,!0);E(_),E(l);var y=F(l,2),b=e=>{var t=qh(),r=P(t),a=e=>{var t=ua();I(()=>V(t,`${L(i)??``} child${L(i)===1?``:`ren`}`)),B(e,t)};H(r,e=>{L(i)>0&&e(a)});var o=F(r,2),s=e=>{B(e,ua(`·`))};H(o,e=>{L(i)>0&&(L(n).events?.length??0)>0&&e(s)});var c=F(o,2),l=e=>{var t=ua();I(()=>V(t,`${L(n).events.length??``} event${L(n).events.length===1?``:`s`}`)),B(e,t)};H(c,e=>{(L(n).events?.length??0)>0&&e(l)}),E(t),B(e,t)};H(y,e=>{(L(i)>0||(L(n).events?.length??0)>0)&&e(b)});var x=F(y,2),S=e=>{var t=Jh(),r=P(t);mp(r,{size:12,class:`shrink-0 mt-px`});var i=F(r,2),a=P(i,!0);E(i),E(t),I(()=>V(a,L(n).status.message||`Error`)),B(e,t)};H(x,e=>{L(n).status.code===`ERROR`&&e(S)});var C=F(x,2),w=e=>{var t=Xh();Pa(t,21,()=>L(a),([e,t])=>e,(e,t)=>{var n=j(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=Yh(),o=Or(a),s=P(o,!0);E(o);var c=F(o,2),l=P(c,!0);E(c),I(()=>{V(s,r()),V(l,i())}),B(e,a)}),E(t),B(e,t)};H(C,e=>{L(a).length>0&&e(w)}),E(o),I((e,t,r)=>{V(c,L(n).name||`unknown`),V(d,e),V(p,`${t??``}% of trace`),V(h,`+${r??``}`),V(v,L(n).kind)},[()=>id(L(n).duration),()=>L(r).toFixed(+(L(r)<10)),()=>id(L(n).startTime-t.trace.startTime)]),B(e,o),at()}var $h=z(`<div><div class="absolute inset-y-0 -left-1.5 -right-1.5"></div> <div></div></div>`);function eg(e,t){it(t,!0);var n=$h(),r=F(P(n),2);E(n),I((e,i)=>{G(n,`role`,t.role),G(n,`aria-orientation`,t[`aria-orientation`]),G(n,`aria-valuenow`,t[`aria-valuenow`]),G(n,`aria-valuemin`,t[`aria-valuemin`]),G(n,`tabindex`,t.tabIndex),G(n,`title`,t.title??`Drag to resize · double-click to reset`),W(n,1,e),W(r,1,i)},[()=>U(Q(`group relative z-10 shrink-0 cursor-col-resize self-stretch outline-none`,`w-px bg-hover`)),()=>U(Q(`absolute inset-y-0 -left-px w-0.5 transition-colors`,`group-hover:bg-accent group-focus-visible:bg-accent`,t.dragging&&`bg-accent`))]),R(`pointerdown`,n,function(...e){t.onPointerDown?.apply(this,e)}),R(`keydown`,n,function(...e){t.onKeyDown?.apply(this,e)}),R(`dblclick`,n,function(...e){t.onDblClick?.apply(this,e)}),B(e,n),at()}ta([`pointerdown`,`keydown`,`dblclick`]);function tg(e,t){e.preventDefault();let n=document.body.style.cursor,r=document.body.style.userSelect;document.body.style.cursor=t.cursor,document.body.style.userSelect=`none`,t.onStart?.();let i=e=>t.onMove(e),a=()=>{document.body.style.cursor=n,document.body.style.userSelect=r,window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),t.onEnd?.()};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a)}function ng(e,t){if(!e)return t;try{let t=window.localStorage.getItem(e);if(t!=null){let e=Number(t);if(Number.isFinite(e))return e}}catch{}return t}function rg(e,t){if(e)try{window.localStorage.setItem(e,String(Math.round(t)))}catch{}}function ig(e){let{initial:t,min:n,minOther:r,containerRef:i,storageKey:a,invert:o=!1,step:s=24}=e,c=Math.max(n,ng(a,t)),l=M(_r(c)),u=M(!1),d={current:c},f=()=>{let e=i.current?.clientWidth;return e?Math.max(n,e-r):1/0},p=e=>Math.min(f(),Math.max(n,e)),m=e=>{N(l,e,!0),d.current=e},h=e=>{let t=e.clientX,n=d.current;tg(e,{cursor:`col-resize`,onStart:()=>N(u,!0),onMove:e=>{let r=e.clientX-t,i=o?-r:r;m(p(n+i))},onEnd:()=>{N(u,!1),rg(a,d.current)}})},g=e=>{if(e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;e.preventDefault();let t=e.key===`ArrowLeft`?-s:s,n=p(d.current+(o?-t:t));m(n),rg(a,n)},_=()=>{let e=p(t);m(e),rg(a,e)};return{fit:()=>{let e=p(d.current);e!==d.current&&m(e)},get size(){return L(l)},get dragging(){return L(u)},get separatorProps(){return{role:`separator`,"aria-orientation":`vertical`,"aria-valuenow":Math.round(L(l)),"aria-valuemin":n,tabIndex:0,onPointerDown:h,onKeyDown:g,onDblClick:_}}}}function ag(e){let t=new Map,n=[],r=new Map;for(let n of e)t.set(n.spanId,{span:n,children:[],depth:0});for(let i of e){let e=t.get(i.spanId);if(i.parentSpanId){let n=t.get(i.parentSpanId);if(n)n.children.push(e);else{let t=r.get(i.parentSpanId)||[];t.push(e),r.set(i.parentSpanId,t)}}else n.push(e)}let i=(e,t,n=new Set)=>{if(!n.has(e.span.spanId)){n.add(e.span.spanId),e.depth=t;for(let r of e.children)i(r,t+1,new Set(n))}};for(let[t,i]of r){i.sort((e,t)=>e.span.startTime-t.span.startTime);let r=Math.min(...i.map(e=>e.span.startTime)),a=Math.max(...i.map(e=>e.span.endTime)),o=e.find(e=>e.spanId===t),s={span:{spanId:t,traceId:i[0].span.traceId,parentSpanId:o?.parentSpanId||void 0,name:`(missing)`,kind:`INTERNAL`,startTime:r,endTime:a,duration:a-r,attributes:{},status:{code:`UNSET`},events:[]},children:i,depth:0};n.push(s)}for(let e of n)i(e,0);let a=e=>{e.sort((e,t)=>e.span.startTime-t.span.startTime);for(let t of e)a(t.children)};return a(n),n}var og=z(`<div class="absolute text-[10px] whitespace-nowrap tabular-nums"> </div>`),sg=z(`<div class="absolute top-0 bottom-0 border-l border-line-subtle"></div>`),cg=z(`<div></div>`),lg=z(`<div><!></div>`),ug=z(`<div class="px-3 py-6 text-center text-xs text-fg-subtle"> </div>`),dg=z(`<div class="absolute z-40 pointer-events-none"><!></div>`),fg=z(`<div class="flex items-center gap-1"><div></div> <span class="text-fg-muted"> </span></div>`),pg=z(`<div class="flex flex-col h-full relative"><div class="flex border-b border-line bg-subtle text-xs text-fg-subtle"><div class="shrink-0 px-3 py-2 font-medium text-fg-muted truncate">Span Name</div> <div class="relative w-0 flex self-stretch"><!></div> <div class="flex-1 relative py-2"></div> <div class="relative w-0 flex self-stretch"><!></div> <div class="shrink-0 px-2 py-2 text-right font-medium text-fg-muted">Duration</div></div> <div class="flex-1 overflow-auto relative"><div class="absolute inset-0 pointer-events-none"></div> <div class="relative"><!> <!> <!> <!></div></div> <!> <div class="flex items-center gap-4 px-3 py-2 border-t border-line bg-subtle text-xs"><span class="text-fg-subtle font-medium">Kind:</span> <!> <button title="Highlight the spans that determine total trace latency"><!> Critical path</button></div></div>`);function mg(e,t){it(t,!0);let n=J(t,`selectedSpanId`,3,null),r=J(t,`query`,3,``),i=j(()=>{let e=r().trim().toLowerCase();if(!e)return new Set;let n=new Set,i=(t.trace.service?.toLowerCase()??``).includes(e);for(let r of t.trace.spans)(i||r.name?.toLowerCase().includes(e))&&n.add(r.spanId);return n}),a=j(()=>r().trim().length>0);Rr(()=>{t.onMatchCount?.(L(i).size)});let o=M(void 0),s=e=>({get current(){return L(o)?{clientWidth:L(o).clientWidth-e()}:null}}),c=ig({initial:200,min:120,minOther:200,containerRef:s(()=>l.size),storageKey:`autotel-devtools:waterfall-name-width`}),l=ig({initial:80,min:56,minOther:200,containerRef:s(()=>c.size),storageKey:`autotel-devtools:waterfall-duration-width`,invert:!0});Rr(()=>{let e=L(o);if(!e||typeof ResizeObserver>`u`)return;let t=()=>{c.fit(),l.fit()};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()});let u=j(()=>c.size),d=j(()=>l.size),f=j(()=>`left: ${L(u)}px; right: ${L(d)}px;`),p=M(null),m;function h(e,t){if(clearTimeout(m),!t||!L(o)){N(p,null);return}let n=L(o).getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.top-n.top>n.height/2,a={node:e,above:i,top:(i?r.top:r.bottom)-n.top,left:Math.min(r.left-n.left+8,Math.max(0,n.width-428))};m=setTimeout(()=>N(p,a,!0),L(p)?0:250)}let g=M(_r(new Set)),_=M(!0),v=M(void 0),y=M(0),b=M(void 0),x=M(0),S=M(0),C=j(()=>hh(t.trace.spans));Rr(()=>{let e=L(v);if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e=>{N(y,e[0].contentRect.width,!0)});return t.observe(e),()=>t.disconnect()});let w=j(()=>ag(t.trace.spans)),ee=j(()=>gh(L(w),e=>L(g).has(e.span.spanId))),te=j(()=>L(ee).map(e=>e.node)),ne=j(()=>L(ee).length<300||L(S)===0?{start:0,end:L(ee).length}:{start:Math.max(0,Math.floor(L(x)/34)-12),end:Math.min(L(ee).length,Math.ceil((L(x)+L(S))/34)+12)}),re=j(()=>L(ee).slice(L(ne).start,L(ne).end));Rr(()=>{let e=L(b);if(!e||typeof ResizeObserver>`u`)return;N(S,e.clientHeight,!0);let t=new ResizeObserver(()=>{N(S,e.clientHeight,!0)});return t.observe(e),()=>t.disconnect()});function ie(e){return L(b)?.querySelector(`#waterfall-row-${e}`)}function ae(e){if(!L(b)||L(ee).length<300)return;let t=e*34,n=t+34;t<L(b).scrollTop?L(b).scrollTop=t:n>L(b).scrollTop+L(b).clientHeight&&(L(b).scrollTop=n-L(b).clientHeight),N(x,L(b).scrollTop,!0)}let oe=e=>{if(tl.value||ih()||e.key!==`ArrowUp`&&e.key!==`ArrowDown`&&e.key!==`Enter`)return;e.preventDefault();let r=L(te).findIndex(e=>e.span.spanId===n()),i;if(e.key===`ArrowUp`)i=r>0?r-1:L(te).length-1;else if(e.key===`ArrowDown`)i=r<L(te).length-1?r+1:0;else{if(r>=0){t.onSpanSelect?.(L(te)[r].span);return}i=0}let a=L(te)[i];a&&(t.onSpanSelect?.(a.span),ae(i),ie(a.span.spanId)?.scrollIntoView({block:`nearest`}))};Rr(()=>(L(te),n(),window.addEventListener(`keydown`,oe),()=>window.removeEventListener(`keydown`,oe))),Rr(()=>{let e=n();e&&Fi(()=>{let n=new Map(t.trace.spans.map(e=>[e.spanId,e])),r=new Set(L(g)),i=!1,a=n.get(e)?.parentSpanId;for(;a;)r.delete(a)&&(i=!0),a=n.get(a)?.parentSpanId;i&&N(g,r,!0);let o=L(ee).findIndex(t=>t.node.span.spanId===e);o>=0&&ae(o),requestAnimationFrame(()=>ie(e)?.scrollIntoView({block:`center`}))})});let se=e=>{let t=new Set(L(g));t.has(e)?t.delete(e):t.add(e),N(g,t,!0)},ce=e=>t.trace.spans.some(t=>t.parentSpanId===e),le=j(()=>{let e=t.trace.duration||1,n=L(y)>0?Math.min(8,Math.max(2,Math.floor(L(y)/90))):5,r=[];for(let t=0;t<=n;t++)r.push({percent:t/n*100,label:id(t/n*e),align:t===0?`start`:t===n?`end`:`mid`});return r}),ue=[`SERVER`,`CLIENT`,`INTERNAL`,`PRODUCER`,`CONSUMER`];var T=pg(),de=P(T),fe=P(de),pe=F(fe,2);eg(P(pe),q({get dragging(){return c.dragging},title:`Drag to resize the name column · double-click to reset`},()=>c.separatorProps)),E(pe);var me=F(pe,2);Pa(me,21,()=>L(le),Aa,(e,t)=>{var n=og(),r=P(n,!0);E(n),I(()=>{lo(n,`left: ${L(t).percent}%; transform: ${L(t).align===`start`?`translateX(0)`:L(t).align===`end`?`translateX(-100%)`:`translateX(-50%)`};`),V(r,L(t).label)}),B(e,n)}),E(me),Uo(me,e=>N(v,e),()=>L(v));var he=F(me,2);eg(P(he),q({get dragging(){return l.dragging},title:`Drag to resize the duration column · double-click to reset`},()=>l.separatorProps)),E(he);var ge=F(he,2);E(de);var _e=F(de,2),ve=P(_e);Pa(ve,21,()=>L(le),Aa,(e,t)=>{var n=sg();I(()=>lo(n,`left: ${L(t).percent}%;`)),B(e,n)}),E(ve);var ye=F(ve,2),be=P(ye),xe=e=>{var t=cg();I(()=>lo(t,`height: ${L(ne).start*34}px`)),B(e,t)};H(be,e=>{L(ne).start>0&&e(xe)});var Se=F(be,2);Pa(Se,17,()=>L(re),({node:e,connectors:t})=>e.span.spanId,(e,r)=>{let o=()=>L(r).node,s=()=>L(r).connectors,c=j(()=>L(i).has(o().span.spanId));var l=lg(),f=P(l);{let e=j(()=>n()===o().span.spanId),r=j(()=>L(g).has(o().span.spanId)),i=j(()=>ce(o().span.spanId)),a=j(()=>L(_)&&L(C).has(o().span.spanId));Wh(f,{get node(){return o()},get trace(){return t.trace},get isSelected(){return L(e)},get isCollapsed(){return L(r)},get hasChildren(){return L(i)},get isCritical(){return L(a)},get connectors(){return s()},get nameWidth(){return L(u)},get durationWidth(){return L(d)},onSelect:()=>t.onSpanSelect?.(o().span),onToggleCollapse:()=>se(o().span.spanId),onHover:e=>h(o(),e)})}E(l),I(e=>W(l,1,e),[()=>U(Q(`transition-opacity`,L(a)&&!L(c)&&`opacity-40`,L(a)&&L(c)&&`ring-1 ring-inset ring-accent rounded-sm`))]),B(e,l)});var Ce=F(Se,2),we=e=>{var t=cg();I(()=>lo(t,`height: ${(L(ee).length-L(ne).end)*34}px`)),B(e,t)};H(Ce,e=>{L(ne).end<L(ee).length&&e(we)});var Te=F(Ce,2),Ee=e=>{var t=ug(),n=P(t);E(t),I(e=>V(n,`No spans match “${e??``}”.`),[()=>r().trim()]),B(e,t)};H(Te,e=>{L(a)&&L(i).size===0&&e(Ee)}),E(ye),E(_e),Uo(_e,e=>N(b,e),()=>L(b));var De=F(_e,2),Oe=e=>{var n=dg();Qh(P(n),{get node(){return L(p).node},get trace(){return t.trace}}),E(n),I(()=>lo(n,`top: ${L(p).top}px; left: ${L(p).left}px;${L(p).above?` transform: translateY(-100%);`:``}`)),B(e,n)};H(De,e=>{L(p)&&e(Oe)});var ke=F(De,2),Ae=F(P(ke),2);Pa(Ae,16,()=>ue,e=>e,(e,t)=>{var n=fg(),r=P(n),i=F(r,2),a=P(i,!0);E(i),E(n),I(e=>{W(r,1,e),V(a,t)},[()=>U(Q(`w-3 h-3 rounded-sm`,Mh(t)))]),B(e,n)});var je=F(Ae,2);Wm(P(je),{size:11}),Ke(),E(je),E(ke),E(T),Uo(T,e=>N(o,e),()=>L(o)),I(e=>{lo(fe,`width: ${L(u)}px;`),lo(ge,`width: ${L(d)}px;`),lo(ve,L(f)),W(je,1,e)},[()=>U(Q(`ml-auto flex items-center gap-1 px-1.5 py-0.5 rounded border transition-colors`,L(_)?`bg-warning-bg text-warning border-warning-border`:`text-fg-subtle border-line hover:bg-hover`))]),ea(`scroll`,_e,e=>{N(x,e.currentTarget.scrollTop,!0),N(p,null)}),R(`click`,je,()=>N(_,!L(_))),B(e,T),at()}ta([`click`]);function hg(e,t){let n=new Map,r=[],i=t.duration||1,a=t.startTime;for(let t of e){let e=(t.startTime-a)/i*100,r=t.duration/i*100;n.set(t.spanId,{span:t,children:[],depth:0,x:Math.max(0,e),width:Math.max(.5,Math.min(100-e,r))})}for(let t of e){let e=n.get(t.spanId);if(t.parentSpanId){let i=n.get(t.parentSpanId);i?(i.children.push(e),e.depth=i.depth+1):r.push(e)}else r.push(e)}let o=e=>{e.sort((e,t)=>e.span.startTime-t.span.startTime);for(let t of e)o(t.children)};return o(r),r}function gg(e){let t=[],n=e=>{t.push(e),e.children.forEach(n)};return e.forEach(n),t}function _g(e){let t=0,n=e=>{t=Math.max(t,e.depth),e.children.forEach(n)};return e.forEach(n),t}function vg(e,t,n){let r=n.find(e=>e.spanId===t);if(!r)return e;let i=r.startTime,a=r.duration||1,o=(e,t)=>{let r=n.find(t=>t.spanId===e);return r?r.parentSpanId===t?!0:r.parentSpanId?o(r.parentSpanId,t):!1:!1},s=e=>{if(!(e.span.spanId===t||o(e.span.spanId,t)))return{...e,x:-100,width:0,children:e.children.map(s)};let n=(e.span.startTime-i)/a*100,r=e.span.duration/a*100;return{...e,x:Math.max(0,n),width:Math.max(.5,Math.min(100-Math.max(0,n),r)),children:e.children.map(s)}};return e.map(s)}function yg(e){if(e.status.code===`ERROR`)return`bg-red-500 hover:bg-red-400`;switch(e.kind){case`SERVER`:return`bg-blue-500 hover:bg-blue-400`;case`CLIENT`:return`bg-green-500 hover:bg-green-400`;case`PRODUCER`:return`bg-purple-500 hover:bg-purple-400`;case`CONSUMER`:return`bg-orange-500 hover:bg-orange-400`;default:return`bg-gray-500 hover:bg-gray-400`}}function bg(e){return e.status.code===`ERROR`?`ring-2 ring-danger`:`ring-2 ring-accent`}var xg=z(`<div class="absolute inset-0 flex items-center px-1.5 overflow-hidden"><span class="text-[10px] text-white font-medium truncate"> </span></div>`),Sg=z(`<div role="button" tabindex="-1"><!></div>`),Cg=z(`<span class="flex items-center gap-2"><span class="font-medium">Zoomed:</span> <span class="truncate max-w-[200px]"> </span></span>`),wg=z(`<span>Click a span to zoom in, double-click to select</span>`),Tg=z(`<button class="p-1.5 hover:bg-hover rounded transition-colors flex items-center gap-1 text-xs text-fg-muted" title="Reset zoom"><!> Reset</button>`),Eg=z(`<div class="absolute left-0 right-0"></div>`),Dg=z(`<div class="flex items-center gap-1 mt-1 text-danger"><!> <span>Error</span></div>`),Og=z(`<div class="absolute z-50 pointer-events-none"><div class="bg-surface text-fg text-xs rounded-md shadow-lg p-2 max-w-[200px]"><div class="font-medium truncate mb-1"> </div> <div class="flex items-center gap-2 text-fg-muted"><span> </span> <span>|</span> <span> </span></div> <!></div></div>`),kg=z(`<div class="flex items-center gap-1"><div></div> <span class="text-fg-muted"> </span></div>`),Ag=z(`<div class="flex flex-col h-full"><div class="flex items-center justify-between px-3 py-2 border-b border-line bg-subtle"><div class="text-xs text-fg-muted"><!></div> <div class="flex items-center gap-1"><!></div></div> <div class="flex-1 overflow-auto p-4 relative" role="presentation"><div class="relative w-full"></div> <!></div> <div class="flex items-center gap-4 px-3 py-2 border-t border-line bg-subtle text-xs"><span class="text-fg-subtle font-medium">Kind:</span> <!> <div class="flex items-center gap-1 ml-2"><div class="w-3 h-3 rounded-sm bg-red-500"></div> <span class="text-fg-muted">ERROR</span></div></div></div>`);function jg(e,t){it(t,!0);let n=(e,n=p,r=p,i=p)=>{let a=j(()=>{let{span:e,x:t,width:r}=n();return{span:e,x:t,width:r}});var o=da(),s=Or(o),c=e=>{var n=Sg(),i=j(()=>ah(()=>f(L(a).span.spanId))),o=P(n),s=e=>{var t=xg(),n=P(t),r=P(n,!0);E(n),E(t),I(()=>V(r,L(a).span.name)),B(e,t)};H(o,e=>{L(a).width>5&&e(s)}),E(n),I((e,t)=>{W(n,1,e),lo(n,`left: ${L(a).x??``}%; width: ${L(a).width??``}%; height: 24px; min-width: 4px;`),G(n,`title`,t)},[()=>U(Q(`absolute cursor-pointer transition-all`,yg(L(a).span),r()&&bg(L(a).span),`rounded-sm`)),()=>`${L(a).span.name}: ${id(L(a).span.duration)}`]),R(`click`,n,()=>f(L(a).span.spanId)),R(`keydown`,n,function(...e){L(i)?.apply(this,e)}),R(`dblclick`,n,()=>t.onSpanSelect?.(L(a).span)),R(`mousemove`,n,e=>h(e,L(a).span)),ea(`mouseleave`,n,_),B(e,n)};H(s,e=>{L(a).width<=0||L(a).x<0||e(c)}),B(e,o)},r=M(_r({focusedSpanId:null})),i=M(null),a=M(_r({x:0,y:0})),o=M(void 0),s=j(()=>hg(t.trace.spans,t.trace)),c=j(()=>L(r).focusedSpanId?vg(L(s),L(r).focusedSpanId,t.trace.spans):L(s)),l=j(()=>gg(L(c))),u=j(()=>_g(L(c))),d=j(()=>{let e=new Map;for(let t of L(l))if(t.width>0){let n=e.get(t.depth)||[];n.push(t),e.set(t.depth,n)}return e}),f=e=>{N(r,{focusedSpanId:e},!0)},m=()=>{N(r,{focusedSpanId:null},!0)},h=(e,t)=>{if(L(o)){let t=L(o).getBoundingClientRect();N(a,{x:e.clientX-t.left,y:e.clientY-t.top},!0)}N(i,t,!0)},_=()=>{N(i,null)},v=j(()=>(L(u)+1)*26+20);var y=Ag(),b=P(y),x=P(b),S=P(x),C=e=>{var n=Cg(),i=F(P(n),2),a=P(i,!0);E(i),E(n),I(e=>V(a,e),[()=>t.trace.spans.find(e=>e.spanId===L(r).focusedSpanId)?.name]),B(e,n)},w=e=>{B(e,wg())};H(S,e=>{L(r).focusedSpanId?e(C):e(w,-1)}),E(x);var ee=F(x,2),te=P(ee),ne=e=>{var t=Tg();vm(P(t),{size:14}),Ke(),E(t),R(`click`,t,m),B(e,t)};H(te,e=>{L(r).focusedSpanId&&e(ne)}),E(ee),E(b);var re=F(b,2),ie=P(re);Pa(ie,21,()=>[...L(d).entries()],([e,t])=>e,(e,r)=>{var a=j(()=>g(L(r),2));let o=()=>L(a)[0],s=()=>L(a)[1];var c=Eg();Pa(c,21,s,e=>e.span.spanId,(e,r)=>{n(e,()=>L(r),()=>t.selectedSpanId===L(r).span.spanId,()=>L(i)?.spanId===L(r).span.spanId)}),E(c),I(()=>lo(c,`top: ${o()*26}px;`)),B(e,c)}),E(ie);var ae=F(ie,2),oe=e=>{var t=Og(),n=P(t),r=P(n),s=P(r,!0);E(r);var c=F(r,2),l=P(c),u=P(l,!0);E(l);var d=F(l,4),f=P(d,!0);E(d),E(c);var p=F(c,2),m=e=>{var t=Dg();mp(P(t),{size:10}),Ke(2),E(t),B(e,t)};H(p,e=>{L(i).status.code===`ERROR`&&e(m)}),E(n),E(t),I((e,n)=>{lo(t,`left: ${e??``}px; top: ${L(a).y+10}px;`),V(s,L(i).name),V(u,n),V(f,L(i).kind)},[()=>Math.min(L(a).x+10,(L(o)?.clientWidth||300)-220),()=>id(L(i).duration)]),B(e,t)};H(ae,e=>{L(i)&&e(oe)}),E(re),Uo(re,e=>N(o,e),()=>L(o));var se=F(re,2);Pa(F(P(se),2),16,()=>[`SERVER`,`CLIENT`,`INTERNAL`,`PRODUCER`,`CONSUMER`],e=>e,(e,t)=>{var n=kg(),r=P(n),i=F(r,2),a=P(i,!0);E(i),E(n),I(e=>{W(r,1,e),V(a,t)},[()=>U(Q(`w-3 h-3 rounded-sm`,t===`SERVER`&&`bg-blue-500`,t===`CLIENT`&&`bg-green-500`,t===`PRODUCER`&&`bg-purple-500`,t===`CONSUMER`&&`bg-orange-500`,t===`INTERNAL`&&`bg-gray-500`))]),B(e,n)}),Ke(2),E(se),E(y),I(()=>lo(ie,`height: ${L(v)??``}px; min-width: 100%;`)),ea(`mouseleave`,re,_),B(e,y),at()}ta([`click`,`keydown`,`dblclick`,`mousemove`]);function Mg(e){if(typeof e==`object`&&e)return e;if(typeof e!=`string`)return null;let t=e.trim();if(t.length<2)return null;let n=t[0];if(n!==`{`&&n!==`[`)return null;try{let e=JSON.parse(t);return typeof e==`object`&&e?e:null}catch{return null}}var Ng=z(`<div class="relative group"><!> <button title="Copy"><!></button></div>`);function Pg(e,t){it(t,!0);let n=M(!1);async function r(){try{await navigator.clipboard.writeText(t.content),N(n,!0),setTimeout(()=>N(n,!1),2e3)}catch(e){console.error(`Failed to copy:`,e)}}var i=Ng(),a=P(i);Ba(a,()=>t.children);var o=F(a,2),s=P(o),c=e=>{op(e,{size:14,class:`text-success`})},l=e=>{Sp(e,{size:14,class:`text-fg-muted`})};H(s,e=>{L(n)?e(c):e(l,-1)}),E(o),E(i),I(e=>W(o,1,e),[()=>U(Q(`absolute top-2 right-2 p-1.5 rounded-md`,`bg-surface border border-line shadow-sm`,`opacity-0 group-hover:opacity-100 transition-opacity`,`hover:bg-subtle`))]),R(`click`,o,r),B(e,i),at()}ta([`click`]);var Fg=z(`<button type="button" class="absolute right-1 top-1/2 -translate-y-1/2 p-0.5 text-fg-subtle hover:text-fg-muted"><!></button>`),Ig=z(`<div><!> <input/> <!></div>`);function Lg(e,t){it(t,!0);let n=J(t,`value`,15),r=J(t,`clearTitle`,3,`Clear filter`),i=J(t,`class`,3,`flex-1`),a=J(t,`inputClass`,3,`border-line focus:border-line`),o=J(t,`ref`,15,null);function s(e){n(e),t.onValue?.(e)}var c=Ig(),l=P(c);Sm(l,{size:12,class:`absolute left-2 top-1/2 -translate-y-1/2 text-fg-subtle`});var u=F(l,2);Co(u),Uo(u,e=>o(e),()=>o());var d=F(u,2),f=e=>{var t=Fg();Hm(P(t),{size:12}),E(t),I(()=>G(t,`title`,r())),R(`click`,t,()=>s(``)),B(e,t)};H(d,e=>{n()&&e(f)}),E(c),I((e,r)=>{W(c,1,e),wo(u,n()),G(u,`placeholder`,t.placeholder),G(u,`aria-label`,t.ariaLabel),W(u,1,r)},[()=>U(Q(`relative`,i())),()=>U(Q(`w-full pl-7 pr-7 py-1 text-xs rounded border focus:outline-none`,a()))]),R(`input`,u,e=>s(e.currentTarget.value)),B(e,c),at()}ta([`input`,`click`]);function Rg(e,t){return!e||t.some(t=>t!=null&&String(t).toLowerCase().includes(e))}var zg=z(`<span class="text-fg-subtle"> </span>`),Bg=z(`<div class="flex gap-1 leading-5"><!> <span> </span></div>`),Vg=z(`<span class="text-fg-subtle opacity-70"> </span>`),Hg=z(`<div class="pl-3 ml-1 border-l border-line-subtle"><!> <div class="text-fg-subtle"> </div></div>`),Ug=z(`<div class="leading-5"><button class="inline-flex items-center gap-1 hover:bg-hover rounded px-0.5"><!> <!> <span class="text-fg-subtle"> </span> <!></button> <!></div>`);function Wg(e,t){it(t,!0);function n(e){if(e===null)return`text-fg-subtle`;switch(typeof e){case`string`:return`text-green-600`;case`number`:return`text-blue-600`;case`boolean`:return`text-purple-600`;default:return`text-fg`}}function r(e){return e===null?`null`:typeof e==`string`?`"${e}"`:String(e)}let i=j(()=>t.value!==null&&typeof t.value==`object`),a=M(t.depth<2),o=j(()=>Array.isArray(t.value)),s=j(()=>L(o)?t.value.map((e,t)=>[String(t),e]):Object.entries(t.value)),c=j(()=>L(o)?`[`:`{`),l=j(()=>L(o)?`]`:`}`),u=j(()=>`${L(s).length} ${L(o)?`items`:`keys`}`);var d=da(),f=Or(d),p=e=>{var i=Bg(),a=P(i),o=e=>{var n=zg(),r=P(n);E(n),I(()=>V(r,`${t.label??``}:`)),B(e,n)};H(a,e=>{t.label!==void 0&&e(o)});var s=F(a,2),c=P(s,!0);E(s),E(i),I((e,t)=>{W(s,1,e),V(c,t)},[()=>U(Q(`break-all`,n(t.value))),()=>r(t.value)]),B(e,i)},m=e=>{var n=Ug(),r=P(n),i=P(r),o=e=>{cp(e,{size:10})},d=e=>{fp(e,{size:10})};H(i,e=>{L(a)?e(o):e(d,-1)});var f=F(i,2),p=e=>{var n=zg(),r=P(n);E(n),I(()=>V(r,`${t.label??``}:`)),B(e,n)};H(f,e=>{t.label!==void 0&&e(p)});var m=F(f,2),h=P(m,!0);E(m);var _=F(m,2),v=e=>{var t=Vg(),n=P(t,!0);E(t),I(()=>V(n,L(u))),B(e,t)};H(_,e=>{L(a)||e(v)}),E(r);var y=F(r,2),b=e=>{var n=Hg(),r=P(n);Pa(r,17,()=>L(s),([e,t])=>e,(e,n)=>{var r=j(()=>g(L(n),2));let i=()=>L(r)[0],a=()=>L(r)[1];{let n=j(()=>t.depth+1);Wg(e,{get label(){return i()},get value(){return a()},get depth(){return L(n)}})}});var i=F(r,2),a=P(i,!0);E(i),E(n),I(()=>V(a,L(l))),B(e,n)};H(y,e=>{L(a)&&e(b)}),E(n),I(()=>V(h,L(a)?L(c):`${L(c)}…${L(l)}`)),R(`click`,r,()=>N(a,!L(a))),B(e,n)};H(f,e=>{L(i)?e(m,-1):e(p)}),B(e,d),at()}ta([`click`]);var Gg=z(`<div class="font-mono text-xs text-fg"><!></div>`);function Kg(e,t){var n=Gg();Wg(P(n),{get value(){return t.data},depth:0}),E(n),B(e,n)}var qg=z(`<button type="button" class="font-mono text-accent hover:underline truncate flex-1 text-left cursor-pointer"> </button>`),Jg=z(`<code class="font-mono text-fg-muted truncate flex-1"> </code>`),Yg=z(`<div class="flex items-center gap-2"><span class="text-fg-subtle w-24 flex-shrink-0"> </span> <!> <button class="p-1 hover:bg-hover rounded transition-colors flex-shrink-0" title="Copy to clipboard"><!></button></div>`);function Xg(e,t){let n=M(!1),r=async()=>{await navigator.clipboard.writeText(t.value),N(n,!0),setTimeout(()=>N(n,!1),2e3)};var i=Yg(),a=P(i),o=P(a);E(a);var s=F(a,2),c=e=>{var n=qg(),r=P(n,!0);E(n),I(()=>{G(n,`title`,t.activateTitle??`Open`),V(r,t.value)}),R(`click`,n,function(...e){t.onActivate?.apply(this,e)}),B(e,n)},l=e=>{var n=Jg(),r=P(n,!0);E(n),I(()=>V(r,t.value)),B(e,n)};H(s,e=>{t.onActivate?e(c):e(l,-1)});var u=F(s,2),d=P(u),f=e=>{op(e,{size:12,class:`text-success`})},p=e=>{Sp(e,{size:12,class:`text-fg-subtle`})};H(d,e=>{L(n)?e(f):e(p,-1)}),E(u),E(i),I(()=>V(o,`${t.label??``}:`)),R(`click`,u,r),B(e,i)}ta([`click`]);var Zg=z(`<button type="button"><!></button>`);function Qg(e,t){it(t,!0);let n=J(t,`label`,3,`Copy`),r=J(t,`size`,3,12),i=J(t,`class`,3,``),a=J(t,`stop`,3,!0),o=M(!1);async function s(e){a()&&(e.stopPropagation(),e.preventDefault());try{await navigator.clipboard.writeText(t.value),N(o,!0),setTimeout(()=>N(o,!1),1500)}catch(e){console.error(`[autotel-devtools] copy failed:`,e)}}var c=Zg(),l=P(c),u=e=>{op(e,{get size(){return r()},class:`text-success`})},d=e=>{Sp(e,{get size(){return r()}})};H(l,e=>{L(o)?e(u):e(d,-1)}),E(c),I(e=>{G(c,`title`,L(o)?`Copied!`:n()),G(c,`aria-label`,n()),W(c,1,e)},[()=>U(Q(`inline-flex items-center justify-center p-1 rounded flex-shrink-0`,`text-fg-subtle hover:text-fg hover:bg-hover transition-colors`,i()))]),R(`click`,c,s),B(e,c),at()}ta([`click`]);function $g(e){return`'${e.replaceAll(`'`,`'\\''`)}'`}function e_(e){if(typeof e==`string`&&e.length>0)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e)}function t_(e){let t=e_(e[`url.full`])??e_(e[`http.url`]);if(t)return t;let n=e_(e[`server.address`])??e_(e[`net.peer.name`]),r=e_(e[`url.path`])??e_(e[`http.target`]);if(!n||!r)return;let i=e_(e[`url.scheme`])??`https`,a=e_(e[`server.port`]),o=e_(e[`url.query`]);return`${i}://${a&&a!==`80`&&a!==`443`?`${n}:${a}`:n}${r}${o?`?${o}`:``}`}function n_(e){let t=e.attributes??{},n=e_(t[`http.request.method`])??e_(t[`http.method`]),r=t_(t);if(!n||!r)return null;let i=[`curl -X ${n.toUpperCase()}`,$g(r)],a=Object.entries(t).filter(([e])=>e.startsWith(`http.request.header.`)).sort(([e],[t])=>e.localeCompare(t));for(let[e,t]of a){let n=e.slice(20),r=Array.isArray(t)?t.map(String).join(`, `):e_(t);r&&i.push(`-H ${$g(`${n}: ${r}`)}`)}return i.join(` `)}var r_={count:`autotel.schema.violations`,severity:`autotel.schema.violation.severity`,codes:`autotel.schema.violation.codes`};function i_(e){let t=e.attributes??{},n=t[r_.count],r=typeof n==`number`?n:Number(n);if(!Number.isFinite(r)||r<=0)return null;let i=t[r_.codes];return{count:r,severity:t[r_.severity]===`error`?`error`:`warning`,codes:Array.isArray(i)?i.map(String):[]}}var a_=[`code.filepath`,`code.file.path`],o_=[`code.lineno`,`code.line.number`],s_=[`code.column`,`code.column.number`],c_=[`code.function`,`code.function.name`];function l_(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.length>0)return t}}function u_(e,t){for(let n of t){let t=e[n];if(typeof t==`number`&&Number.isFinite(t))return t;if(typeof t==`string`&&t.trim()!==``&&Number.isFinite(Number(t)))return Number(t)}}function d_(e,t,n,r){if(e===`webstorm`){let e=`jetbrains://web-storm/navigate/reference?path=${encodeURIComponent(t)}`;return n!==void 0&&(e+=`&line=${n}`),e}let i=`${e}://file/${t.replace(/^\//,``)}`;return n!==void 0&&(i+=`:${n}`,r!==void 0&&(i+=`:${r}`)),i}function f_(e,t){let n=l_(e,a_);if(!n)return null;let r=u_(e,o_),i=u_(e,s_),a=l_(e,c_),o=l_(e,[`code.namespace`]),s=n.split(/[/\\]/).pop()||n;return{filepath:n,line:r,column:i,functionName:a,namespace:o,display:r===void 0?s:`${s}:${r}`,href:d_(t,n,r,i)}}function p_(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.length>0)return t}}function m_(e,t){for(let n of t){let t=e[n];if(typeof t==`number`&&Number.isFinite(t))return t;if(typeof t==`string`&&t.trim()!==``&&Number.isFinite(Number(t)))return Number(t)}}function h_(e){let t=p_(e,[`db.system`,`db.system.name`]),n=p_(e,[`db.statement`,`db.query.text`]);return!t&&!n?null:{system:t,statement:n,operation:p_(e,[`db.operation`,`db.operation.name`]),table:p_(e,[`db.sql.table`,`db.collection.name`]),dbName:p_(e,[`db.name`,`db.namespace`]),rowCount:m_(e,[`db.response.returned_rows`,`db.rows_affected`])}}var g_=new Set(`select.from.where.insert.into.values.update.set.delete.join.left.right.inner.outer.full.cross.on.and.or.not.in.is.null.as.order.by.group.having.limit.offset.distinct.union.all.returning.with.using.between.like.asc.desc.count.case.when.then.else.end.exists.create.table.alter.drop.index`.split(`.`)),__=/('(?:[^']|'')*'|[A-Za-z_][A-Za-z0-9_]*|[^A-Za-z_']+)/g;function v_(e){let t=[];for(let[n]of e.matchAll(__))n.startsWith(`'`)?t.push({text:n,kind:`string`}):/^[A-Za-z_]/.test(n)&&g_.has(n.toLowerCase())?t.push({text:n,kind:`keyword`}):t.push({text:n,kind:`text`});return t}var y_=(e,t=p,n=p,r=p,i=p,a=p)=>{var o=N_(),s=P(o),c=P(s);Ba(P(c),n),E(c);var l=F(c,2),u=P(l,!0);E(l);var d=F(l,2);{let e=j(()=>Q(`text-fg-subtle transition-transform`,r()&&`rotate-180`));cp(d,{size:14,get class(){return L(e)}})}E(s);var f=F(s,2),m=e=>{var t=M_();Ba(P(t),a),E(t),B(e,t)};H(f,e=>{r()&&e(m)}),E(o),I(()=>V(u,t())),R(`click`,s,function(...e){i()?.apply(this,e)}),B(e,o)},b_=(e,t=p,n=p,r=p)=>{var i=P_(),a=P(i),o=P(a,!0);E(a);var s=F(a,2),c=P(s,!0);E(s),E(i),I(()=>{G(i,`title`,r()),V(o,t()),V(c,n())}),B(e,i)},x_=/(password|secret|token|authorization|api[-_.]?key)/i;function S_(e,t){return typeof t!=`number`&&typeof t!=`boolean`&&x_.test(e)}var C_=[`service.`,`deployment.`,`host.`,`container.`,`process.`];function w_(e){return e==null?{label:`null`,cls:`bg-hover text-fg-subtle border-line`}:Array.isArray(e)?{label:`array`,cls:`bg-amber-500/15 text-amber-600 border-amber-500/30`}:typeof e==`string`?{label:`string`,cls:`bg-green-500/15 text-green-600 border-green-500/30`}:typeof e==`number`?{label:`number`,cls:`bg-blue-500/15 text-blue-600 border-blue-500/30`}:typeof e==`boolean`?{label:`boolean`,cls:`bg-purple-500/15 text-purple-600 border-purple-500/30`}:{label:`object`,cls:`bg-stone-500/15 text-stone-600 border-stone-500/30`}}var T_=`text-[9px] px-1.5 py-px rounded border font-mono flex-shrink-0`,E_=`${T_} bg-hover text-fg-subtle border-line`,D_=z(`<span>resource</span>`),O_=z(`<div class="py-1 border-b border-line-subtle last:border-b-0"><div class="flex items-center gap-2"><span class="text-fg-subtle font-medium"> </span> <span>json</span> <!></div> <div class="mt-1"><!></div></div>`),k_=z(`<button class="ml-auto p-0.5 hover:bg-hover rounded flex-shrink-0 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity" title="View full value"><!></button>`),A_=z(`<button type="button" class="text-fg-subtle hover:text-fg underline decoration-dotted" title="Click to reveal">[redacted]</button>`),j_=z(`<div class="group py-1 border-b border-line-subtle last:border-b-0"><div class="flex items-center gap-2 min-w-0"><span class="text-fg-subtle font-medium truncate"> </span> <span> </span> <!> <!></div> <div class="mt-0.5 text-fg leading-snug at-wrap-anywhere"><!></div></div>`),M_=z(`<div class="px-4 pb-3"><!></div>`),N_=z(`<div class="border-b border-line-subtle"><button class="w-full flex items-center gap-2 px-4 py-3 hover:bg-subtle transition-colors"><span class="text-fg-subtle"><!></span> <span class="text-xs font-medium text-fg-muted flex-1 text-left"> </span> <!></button> <!></div>`),P_=z(`<div><div class="text-fg-subtle mb-0.5"> </div> <div class="font-mono font-medium text-fg"> </div></div>`),F_=z(`<span class="px-2 py-0.5 rounded bg-hover text-fg-subtle text-xs font-mono" title="Instrumentation scope"> </span>`),I_=z(`<div class="grid grid-cols-2 gap-3 text-xs"><!> <!> <!> <!> <!></div>`),L_=z(`<div class="mx-4 mt-4 p-3 bg-danger-bg border border-danger-border rounded-md"><div class="flex items-start gap-2"><!> <div class="text-xs text-danger"><span class="font-medium">Error:</span> </div></div></div>`),R_=z(`<li class="font-mono text-[11px] text-fg-muted"> </li>`),z_=z(`<p class="mt-1 text-[11px] text-fg-subtle"> </p>`),B_=z(`<div><div class="mb-1 flex items-center gap-1.5"><!> <span class="text-xs font-medium text-fg"> </span></div> <ul class="space-y-0.5"></ul> <!></div>`),V_=z(`<div class="px-4 py-3 border-b border-line-subtle"><div class="mb-1 flex items-center justify-between gap-2"><span class="text-[11px] uppercase tracking-wide text-fg-muted">Reproduce</span> <!></div> <code class="block overflow-x-auto whitespace-pre rounded bg-subtle px-2 py-1 text-[11px] text-fg-muted"> </code> <p class="mt-1 text-[11px] text-fg-subtle">Rebuilt from span attributes. Headers appear only if captured; the
3
+ body is never recorded.</p></div>`),H_=z(`<option> </option>`),U_=z(`<div class="mt-1 text-[11px] text-fg-subtle font-mono"> </div>`),W_=z(`<div class="px-4 py-3 border-b border-line-subtle"><div class="flex items-center gap-2 mb-2"><!> <span class="text-xs font-medium text-fg-muted flex-1">Code Location</span> <select class="text-[10px] bg-subtle border border-line rounded px-1 py-0.5 text-fg-muted" title="Editor to open source files in"></select></div> <a class="group flex items-center gap-2 text-xs font-mono text-accent hover:underline break-all"><!> <span class="break-all"> </span></a> <!> <div class="mt-1 text-[10px] text-fg-subtle break-all"> </div></div>`),G_=z(`<span class="text-[10px] px-1.5 py-px rounded border font-mono bg-indigo-500/15 text-indigo-600 border-indigo-500/30"> </span>`),K_=z(`<div class="grid grid-cols-2 gap-2 text-xs mb-2"><!> <!> <!> <!></div>`),q_=z(`<span> </span>`),J_=z(`<pre class="bg-subtle rounded p-2.5 border border-line font-mono text-[11px] text-fg whitespace-pre-wrap break-all overflow-auto max-h-[240px]"></pre>`),Y_=z(`<div class="px-4 py-3 border-b border-line-subtle"><div class="flex items-center gap-2 mb-2"><!> <span class="text-xs font-medium text-fg-muted flex-1">Database</span> <!></div> <!> <!></div>`),X_=z(`<div class="flex items-center gap-2"><span class="text-fg-subtle">Parent:</span> <span class="font-medium text-fg"> </span></div>`),Z_=z(`<div class="text-fg-muted truncate"> </div>`),Q_=z(`<div class="text-fg-subtle"> </div>`),$_=z(`<div><span class="text-fg-subtle"> </span> <div class="mt-1 space-y-1 pl-2"><!> <!></div></div>`),ev=z(`<div class="px-4 py-3 border-b border-line-subtle"><div class="flex items-center gap-2 mb-2"><!> <span class="text-xs font-medium text-fg-muted">Relationships</span></div> <div class="space-y-2 text-xs"><!> <!></div></div>`),tv=z(`<div class="text-fg-subtle py-2 text-center">No matches</div>`),nv=z(`<div class="bg-subtle rounded p-3 border border-line font-mono text-xs h-[300px] min-h-[120px] overflow-auto resize-y" title="Drag bottom edge to resize"><!></div>`),rv=z(`<!> <!>`,1),iv=z(`<div class="font-mono text-[11px] text-fg-muted mt-1"><pre class="whitespace-pre-wrap break-words"> </pre></div>`),av=z(`<div class="bg-subtle rounded p-2.5 border border-line"><div class="flex items-center justify-between mb-1"><span class="font-medium text-xs text-fg"> </span> <span class="text-[10px] text-fg-subtle"> </span></div> <!></div>`),ov=z(`<div class="space-y-2"></div>`),sv=z(`<span></span>`),cv=z(`<div class="mt-1.5 pt-1.5 border-t border-line"><div class="font-mono text-[10px] text-fg-subtle"> </div></div>`),lv=z(`<div class="bg-subtle rounded p-2.5 border border-line"><div class="flex items-center gap-2 text-xs mb-1"><span class="text-fg-subtle">Trace:</span> <button type="button" title="Open linked span in the Traces waterfall" class="font-mono text-accent hover:underline text-[11px] truncate text-left cursor-pointer"> </button> <!></div> <div class="flex items-center gap-2 text-xs"><span class="text-fg-subtle">Span:</span> <button type="button" title="Open linked span in the Traces waterfall" class="font-mono text-accent hover:underline text-[11px] truncate text-left cursor-pointer"> </button> <!></div> <!></div>`),uv=z(`<div class="space-y-1.5"></div>`),dv=z(`<span class="text-[10px] text-accent font-medium">this span</span>`),fv=z(`<div><div class="flex items-center gap-2 mb-0.5"><span> </span> <!> <span class="text-fg-subtle text-[10px] ml-auto"> </span></div> <div class="text-fg-muted break-all line-clamp-2"> </div></div>`),pv=z(`<div class="border-b border-line-subtle"><div class="flex items-center gap-2 px-4 py-3"><!> <span class="text-xs font-medium text-fg-muted"> </span></div> <div class="px-4 pb-3"><div class="space-y-1.5 max-h-[200px] overflow-auto"></div></div></div>`),mv=z(`<div class="fixed inset-0 z-[1200] flex items-center justify-center" role="dialog" aria-modal="true"><div class="absolute inset-0 bg-black/60 backdrop-blur-[2px] at-backdrop-in"></div> <div class="at-modal-in relative z-[1] w-[min(700px,92vw)] max-h-[85vh] flex flex-col bg-surface rounded-lg shadow-xl border border-line overflow-hidden"><div class="flex items-center justify-between px-4 py-2.5 border-b border-line bg-subtle flex-shrink-0"><span class="text-sm font-mono font-semibold text-fg-muted truncate"> </span> <button class="p-1 hover:bg-hover rounded transition-colors" title="Close (Esc)"><!></button></div> <div class="overflow-auto p-4"><pre class="font-mono text-xs text-fg whitespace-pre-wrap break-all"> </pre></div></div></div>`),hv=z(`<div class="flex flex-col h-full bg-surface border-l border-line"><div class="flex items-start justify-between gap-3 px-4 py-3 border-b border-line bg-subtle"><div class="flex-1 min-w-0"><h3 class="font-semibold text-sm text-fg truncate mb-1"> </h3> <div class="flex items-center gap-2 flex-wrap"><span> </span> <span class="px-2 py-0.5 rounded bg-hover text-fg-muted text-xs font-medium"> </span> <!></div></div> <button class="p-1.5 hover:bg-hover rounded-md transition-colors flex-shrink-0" title="Close"><!></button></div> <div class="flex-1 overflow-auto"><!> <!> <!> <!> <div class="px-4 py-3 border-b border-line-subtle"><div class="space-y-2 text-xs"><!> <!> <!></div></div> <div class="px-4 py-3 border-b border-line-subtle"><div class="flex items-center gap-2 mb-2"><!> <span class="text-xs font-medium text-fg-muted">Resource</span></div> <div class="grid grid-cols-2 gap-3 text-xs"><!> <!> <!> <!></div></div> <!> <!> <!> <!> <!> <!> <!></div> <!></div>`);function gv(e,t){it(t,!0);let n=(e,t=p,n=p,r=p)=>{let i=j(()=>S_(t(),n())&&!L(c).has(t())),a=j(()=>C_.some(e=>t().startsWith(e))),o=j(()=>L(i)?null:Mg(n()));var s=da(),l=Or(s),u=e=>{var n=O_(),r=P(n),i=P(r),s=P(i,!0);E(i);var c=F(i,2),l=F(c,2),u=e=>{var t=D_();W(t,1,U(E_)),B(e,t)};H(l,e=>{L(a)&&e(u)}),E(r);var d=F(r,2);Kg(P(d),{get data(){return L(o)}}),E(d),E(n),I(e=>{V(s,t()),W(c,1,e)},[()=>U(Q(T_,`bg-amber-500/15 text-amber-600 border-amber-500/30`))]),B(e,n)},d=e=>{let o=j(()=>w_(n())),s=j(()=>String(n()));var l=j_(),u=P(l),d=P(u),f=P(d,!0);E(d);var p=F(d,2),m=P(p,!0);E(p);var h=F(p,2),g=e=>{var t=D_();W(t,1,U(E_)),B(e,t)};H(h,e=>{L(a)&&!L(i)&&e(g)});var _=F(h,2),v=e=>{var n=k_();Xp(P(n),{size:10,class:`text-fg-subtle`}),E(n),R(`click`,n,()=>r()({key:t(),value:L(s)})),B(e,n)};H(_,e=>{!L(i)&&L(s).length>60&&e(v)}),E(u);var y=F(u,2),b=P(y),x=e=>{var n=A_();R(`click`,n,()=>N(c,new Set(L(c)).add(t()),!0)),B(e,n)},S=e=>{var t=ua();I(()=>V(t,L(s))),B(e,t)};H(b,e=>{L(i)?e(x):e(S,-1)}),E(y),E(l),I(e=>{G(d,`title`,t()),V(f,t()),W(p,1,e),V(m,L(i)?`sensitive`:L(o).label)},[()=>U(Q(T_,L(o).cls))]),B(e,l)};H(l,e=>{L(o)===null?e(d,-1):e(u)}),B(e,s)},r=[{value:`vscode`,label:`VS Code`},{value:`cursor`,label:`Cursor`},{value:`webstorm`,label:`WebStorm`}],i=j(()=>n_(t.span)),a=j(()=>i_(t.span)),o=M(_r({timing:!0,attributes:!0,events:!1,links:!1})),s=M(null),c=M(_r(new Set));Rr(()=>{t.span.spanId,N(c,new Set,!0)});let l=e=>{N(o,{...L(o),[e]:!L(o)[e]},!0)},u=j(()=>t.span.status.code===`ERROR`),d=j(()=>Object.keys(t.span.attributes||{}).length>0),f=j(()=>t.span.events&&t.span.events.length>0),m=j(()=>t.span.links&&t.span.links.length>0),h=j(()=>gs(t.span,t.trace.service)),_=j(()=>_s(t.span.attributes,L(h))),v=j(()=>Object.entries(t.span.attributes||{}).filter(([e])=>e.startsWith(`service.`)||e.startsWith(`deployment.`)||e.startsWith(`host.`)||e.startsWith(`container.`)||e.startsWith(`process.`))),y=j(()=>Object.entries(t.span.attributes||{}).sort(([e],[t])=>e.localeCompare(t))),b=M(``),x=j(()=>{let e=L(b).trim().toLowerCase();return e?L(y).filter(([t,n])=>Rg(e,[t,n])):L(y)}),S=j(()=>L(b).trim().length>0),C=j(()=>f_(t.span.attributes||{},$c.value)),w=j(()=>h_(t.span.attributes||{})),ee=j(()=>L(w)?.statement?v_(L(w).statement):[]),te=j(()=>mh(t.span,t.trace.spans.filter(e=>e.parentSpanId===t.span.spanId))),ne=j(()=>t.span.startTime-t.trace.startTime),re=j(()=>t.span.endTime-t.trace.startTime),ie=j(()=>t.trace.spans.find(e=>e.spanId===t.span.parentSpanId)),ae=j(()=>t.trace.spans.filter(e=>e.parentSpanId===t.span.spanId)),oe=j(()=>t.trace.spans.find(e=>!e.parentSpanId)),se=e=>Mu(t.trace.traceId,e),ce=j(()=>pl.value),le=j(()=>L(ce).filter(e=>e.traceId===t.trace.traceId));var ue=hv(),T=P(ue),de=P(T),fe=P(de),pe=P(fe,!0);E(fe);var me=F(fe,2),he=P(me),ge=P(he,!0);E(he);var _e=F(he,2),ve=P(_e,!0);E(_e);var ye=F(_e,2),be=e=>{var n=F_(),r=P(n);E(n),I(()=>V(r,`${t.span.scope.name??``}
4
+ ${t.span.scope.version?`@${t.span.scope.version}`:``}`)),B(e,n)};H(ye,e=>{t.span.scope?.name&&e(be)}),E(me),E(de);var xe=F(de,2);Hm(P(xe),{size:16,class:`text-fg-subtle`}),E(xe),E(T);var Se=F(T,2);{let e=e=>{vp(e,{size:14})},c=e=>{var n=I_(),r=P(n);{let e=j(()=>id(t.span.duration));b_(r,()=>`Duration`,()=>L(e))}var i=F(r,2);{let e=j(()=>id(L(te)));b_(i,()=>`Self time`,()=>L(e),()=>`Time in this span excluding its children`)}var a=F(i,2);{let e=j(()=>id(L(ne)));b_(a,()=>`Start (relative)`,()=>L(e))}var o=F(a,2);{let e=j(()=>id(L(re)));b_(o,()=>`End (relative)`,()=>L(e))}var s=F(o,2);{let e=j(()=>yh(t.span.startTime,Vu.value));b_(s,()=>`Start Time`,()=>L(e))}E(n),B(e,n)};var Ce=P(Se),we=e=>{var n=L_(),r=P(n),i=P(r);mp(i,{size:14,class:`text-danger flex-shrink-0 mt-0.5`});var a=F(i,2),o=F(P(a));E(a),E(r),E(n),I(()=>V(o,` ${t.span.status.message??``}`)),B(e,n)};H(Ce,e=>{t.span.status.message&&e(we)});var Te=F(Ce,2);y_(Te,()=>`Timing`,()=>e,()=>L(o).timing,()=>()=>l(`timing`),()=>c);var Ee=F(Te,2),De=e=>{var t=B_(),n=P(t),r=P(n);{let e=j(()=>L(a).severity===`error`?`text-danger`:`text-warning`);Pm(r,{size:13,get class(){return L(e)}})}var i=F(r,2),o=P(i);E(i),E(n);var s=F(n,2);Pa(s,20,()=>L(a).codes,e=>e,(e,t)=>{var n=R_(),r=P(n,!0);E(n),I(()=>V(r,t)),B(e,n)}),E(s);var c=F(s,2),l=e=>{var t=z_(),n=P(t);E(t),I(()=>V(n,`${L(a).count-L(a).codes.length} more not listed on the span.`)),B(e,t)};H(c,e=>{L(a).count>L(a).codes.length&&e(l)}),E(t),I(()=>{W(t,1,U(L(a).severity===`error`?`border-b border-line-subtle bg-danger/5 px-4 py-3`:`border-b border-line-subtle bg-warning/5 px-4 py-3`)),V(o,`${L(a).count??``}
5
+ ${L(a).count===1?`contract violation`:`contract violations`}`)}),B(e,t)};H(Ee,e=>{L(a)&&e(De)});var Oe=F(Ee,2),ke=e=>{var t=V_(),n=P(t);Qg(F(P(n),2),{get value(){return L(i)},label:`Copy as curl`}),E(n);var r=F(n,2),a=P(r,!0);E(r),Ke(2),E(t),I(()=>V(a,L(i))),B(e,t)};H(Oe,e=>{L(i)&&e(ke)});var Ae=F(Oe,2),je=P(Ae),Me=P(je);Xg(Me,{label:`Span ID`,get value(){return t.span.spanId}});var Ne=F(Me,2);{let e=j(()=>L(oe)&&L(oe).spanId!==t.span.spanId?()=>se(L(oe).spanId):void 0);Xg(Ne,{label:`Trace ID`,get value(){return t.span.traceId},get onActivate(){return L(e)},activateTitle:`Go to root span`})}var Pe=F(Ne,2),Fe=e=>{{let n=j(()=>L(ie)?()=>se(t.span.parentSpanId):void 0),r=j(()=>L(ie)?`Go to parent span`:`Parent span not captured in this trace`);Xg(e,{label:`Parent Span ID`,get value(){return t.span.parentSpanId},get onActivate(){return L(n)},get activateTitle(){return L(r)}})}};H(Pe,e=>{t.span.parentSpanId&&e(Fe)}),E(je),E(Ae);var Ie=F(Ae,2),Le=P(Ie);Am(P(Le),{size:14,class:`text-fg-subtle`}),Ke(2),E(Le);var Re=F(Le,2),ze=P(Re);b_(ze,()=>`Trace Service`,()=>t.trace.service);var Be=F(ze,2);b_(Be,()=>`Derived Resource`,()=>L(h));var Ve=F(Be,2);b_(Ve,()=>`Resource Type`,()=>L(_));var He=F(Ve,2);{let e=j(()=>String(L(v).length));b_(He,()=>`Resource Attrs`,()=>L(e))}E(Re),E(Ie);var Ue=F(Ie,2),We=e=>{var t=W_(),n=P(t),i=P(n);bp(i,{size:14,class:`text-fg-subtle`});var a=F(i,4);Pa(a,21,()=>r,e=>e.value,(e,t)=>{var n=H_(),r=P(n,!0);E(n);var i={};I(()=>{V(r,L(t).label),i!==(i=L(t).value)&&(n.value=(n.__value=L(t).value)??``)}),B(e,n)}),E(a);var o;fo(a),E(n);var s=F(n,2),c=P(s);Op(c,{size:12,class:`flex-shrink-0`});var l=F(c,2),u=P(l,!0);E(l),E(s);var d=F(s,2),f=e=>{var t=U_(),n=P(t);E(t),I(()=>V(n,`${L(C).namespace?`${L(C).namespace}.`:``}${L(C).functionName??``}()`)),B(e,t)};H(d,e=>{L(C).functionName&&e(f)});var p=F(d,2),m=P(p,!0);E(p),E(t),I(()=>{o!==(o=$c.value)&&(a.value=(a.__value=$c.value)??``,uo(a,$c.value)),G(s,`href`,L(C).href),G(s,`title`,`Open ${L(C).filepath}${L(C).line?`:${L(C).line}`:``}`),V(u,L(C).display),V(m,L(C).filepath)}),R(`change`,a,e=>el(e.currentTarget.value)),B(e,t)};H(Ue,e=>{L(C)&&e(We)});var Ge=F(Ue,2),qe=e=>{var t=Y_(),n=P(t),r=P(n);wp(r,{size:14,class:`text-fg-subtle`});var i=F(r,4),a=e=>{var t=G_(),n=P(t,!0);E(t),I(()=>V(n,L(w).system)),B(e,t)};H(i,e=>{L(w).system&&e(a)}),E(n);var o=F(n,2),s=e=>{var t=K_(),n=P(t),r=e=>{b_(e,()=>`Operation`,()=>L(w).operation)};H(n,e=>{L(w).operation&&e(r)});var i=F(n,2),a=e=>{b_(e,()=>`Table`,()=>L(w).table)};H(i,e=>{L(w).table&&e(a)});var o=F(i,2),s=e=>{b_(e,()=>`Database`,()=>L(w).dbName)};H(o,e=>{L(w).dbName&&e(s)});var c=F(o,2),l=e=>{{let t=j(()=>String(L(w).rowCount));b_(e,()=>`Rows`,()=>L(t))}};H(c,e=>{L(w).rowCount!==void 0&&e(l)}),E(t),B(e,t)};H(o,e=>{(L(w).operation||L(w).table||L(w).dbName||L(w).rowCount!==void 0)&&e(s)});var c=F(o,2),l=e=>{Pg(e,{get content(){return L(w).statement},children:(e,t)=>{var n=J_();Pa(n,21,()=>L(ee),Aa,(e,t)=>{var n=q_(),r=P(n,!0);E(n),I(()=>{W(n,1,U(L(t).kind===`keyword`?`text-indigo-500 font-semibold`:L(t).kind===`string`?`text-green-500`:``)),V(r,L(t).text)}),B(e,n)}),E(n),B(e,n)},$$slots:{default:!0}})};H(c,e=>{L(w).statement&&e(l)}),E(t),B(e,t)};H(Ge,e=>{L(w)&&e(qe)});var Je=F(Ge,2),Ye=e=>{var t=ev(),n=P(t);Wp(P(n),{size:14,class:`text-fg-subtle`}),Ke(2),E(n);var r=F(n,2),i=P(r),a=e=>{var t=X_(),n=F(P(t),2),r=P(n,!0);E(n),E(t),I(()=>V(r,L(ie).name)),B(e,t)};H(i,e=>{L(ie)&&e(a)});var o=F(i,2),s=e=>{var t=$_(),n=P(t),r=P(n);E(n);var i=F(n,2),a=P(i);Pa(a,17,()=>L(ae).slice(0,5),e=>e.spanId,(e,t)=>{var n=Z_(),r=P(n,!0);E(n),I(()=>V(r,L(t).name)),B(e,n)});var o=F(a,2),s=e=>{var t=Q_(),n=P(t);E(t),I(()=>V(n,`+${L(ae).length-5} more`)),B(e,t)};H(o,e=>{L(ae).length>5&&e(s)}),E(i),E(t),I(()=>V(r,`Children (${L(ae).length??``}):`)),B(e,t)};H(o,e=>{L(ae).length>0&&e(s)}),E(r),E(t),B(e,t)};H(Je,e=>{(L(ie)||L(ae).length>0)&&e(Ye)});var Xe=F(Je,2),Ze=e=>{let r=e=>{Am(e,{size:14})},i=e=>{var r=rv(),i=Or(r);Lg(i,{class:`mb-2`,inputClass:`border-line bg-subtle text-fg focus:border-line focus-visible:ring-1 focus-visible:ring-accent`,placeholder:`Filter attributes by key or value…`,ariaLabel:`Filter attributes by key or value`,get value(){return L(b)},set value(e){N(b,e,!0)}});var a=F(i,2);{let e=j(()=>JSON.stringify(t.span.attributes,null,2));Pg(a,{get content(){return L(e)},children:(e,t)=>{var r=nv(),i=P(r),a=e=>{B(e,tv())},o=e=>{var t=da();Pa(Or(t),17,()=>L(x),([e,t])=>e,(e,t)=>{var r=j(()=>g(L(t),2));n(e,()=>L(r)[0],()=>L(r)[1],()=>e=>N(s,e,!0))}),B(e,t)};H(i,e=>{L(x).length===0?e(a):e(o,-1)}),E(r),B(e,r)},$$slots:{default:!0}})}B(e,r)};{let n=j(()=>L(S)?`Attributes (${L(x).length} of ${Object.keys(t.span.attributes).length})`:`Attributes (${Object.keys(t.span.attributes).length})`);y_(e,()=>L(n),()=>r,()=>L(o).attributes,()=>()=>l(`attributes`),()=>i)}};H(Xe,e=>{L(d)&&e(Ze)});var Qe=F(Xe,2),$e=e=>{let n=e=>{Hp(e,{size:14})},r=e=>{var n=ov();Pa(n,21,()=>t.span.events,Aa,(e,n)=>{var r=av(),i=P(r),a=P(i),o=P(a,!0);E(a);var s=F(a,2),c=P(s);E(s),E(i);var l=F(i,2),u=e=>{{let t=j(()=>JSON.stringify(L(n).attributes,null,2));Pg(e,{get content(){return L(t)},children:(e,t)=>{var r=iv(),i=P(r),a=P(i,!0);E(i),E(r),I(e=>V(a,e),[()=>JSON.stringify(L(n).attributes,null,2)]),B(e,r)},$$slots:{default:!0}})}},d=j(()=>L(n).attributes&&Object.keys(L(n).attributes).length>0);H(l,e=>{L(d)&&e(u)}),E(r),I(e=>{V(o,L(n).name),V(c,`+${e??``}`)},[()=>id(L(n).timestamp-t.span.startTime)]),B(e,r)}),E(n),B(e,n)};y_(e,()=>`Events (${t.span.events.length})`,()=>n,()=>L(o).events,()=>()=>l(`events`),()=>r)};H(Qe,e=>{L(f)&&e($e)});var et=F(Qe,2),tt=e=>{let n=e=>{Jp(e,{size:14})},r=e=>{var n=uv();Pa(n,21,()=>t.span.links,Aa,(e,t)=>{var n=lv(),r=P(n),i=F(P(r),2),a=P(i,!0);E(i),Pg(F(i,2),{get content(){return L(t).traceId},children:(e,t)=>{B(e,sv())},$$slots:{default:!0}}),E(r);var o=F(r,2),s=F(P(o),2),c=P(s,!0);E(s),Pg(F(s,2),{get content(){return L(t).spanId},children:(e,t)=>{B(e,sv())},$$slots:{default:!0}}),E(o);var l=F(o,2),u=e=>{var n=cv(),r=P(n),i=P(r,!0);E(r),E(n),I(e=>V(i,e),[()=>Object.entries(L(t).attributes).map(([e,t])=>`${e}: ${typeof t==`object`?JSON.stringify(t):t}`).join(`, `)]),B(e,n)},d=j(()=>L(t).attributes&&Object.keys(L(t).attributes).length>0);H(l,e=>{L(d)&&e(u)}),E(n),I(()=>{V(a,L(t).traceId),V(c,L(t).spanId)}),R(`click`,i,()=>Nu(L(t).traceId,L(t).spanId)),R(`click`,s,()=>Nu(L(t).traceId,L(t).spanId)),B(e,n)}),E(n),B(e,n)};y_(e,()=>`Links (${t.span.links.length})`,()=>n,()=>L(o).links,()=>()=>l(`links`),()=>r)};H(et,e=>{L(m)&&e(tt)});var nt=F(et,2),rt=e=>{var n=pv(),r=P(n),i=P(r);Ap(i,{size:14,class:`text-fg-subtle`});var a=F(i,2),o=P(a);E(a),E(r);var s=F(r,2),c=P(s);Pa(c,23,()=>L(le).slice(0,50),(e,t)=>e.id||t,(e,n)=>{let r=j(()=>L(n).spanId===t.span.spanId),i=j(()=>L(n).severityText||`INFO`),a=j(()=>L(i)===`ERROR`?`text-danger`:L(i)===`WARN`?`text-warning`:`text-fg-subtle`),o=j(()=>typeof L(n).body==`string`?L(n).body:JSON.stringify(L(n).body));var s=fv(),c=P(s),l=P(c),u=P(l,!0);E(l);var d=F(l,2),f=e=>{B(e,dv())};H(d,e=>{L(r)&&e(f)});var p=F(d,2),m=P(p,!0);E(p),E(c);var h=F(c,2),g=P(h,!0);E(h),E(s),I((e,t,n)=>{W(s,1,e),W(l,1,t),V(u,L(i)),V(m,n),V(g,L(o))},[()=>U(Q(`text-xs p-2 rounded border`,L(r)?`border-accent/30 bg-accent/10`:`border-line-subtle bg-subtle`)),()=>U(Q(`font-mono font-medium`,L(a))),()=>yh(L(n).timestamp,Vu.value)]),B(e,s)}),E(c),E(s),E(n),I(()=>V(o,`Correlated Logs (${L(le).length??``})`)),B(e,n)};H(nt,e=>{L(le).length>0&&e(rt)}),E(Se)}var ot=F(Se,2),st=e=>{var t=mv(),n=P(t),r=F(n,2),i=P(r),a=P(i),o=P(a,!0);E(a);var c=F(a,2);Hm(P(c),{size:16,class:`text-fg-subtle`}),E(c),E(i);var l=F(i,2),u=P(l),d=P(u,!0);E(u),E(l),E(r),E(t),I(()=>{G(t,`aria-label`,`Full value for ${L(s).key}`),V(o,L(s).key),V(d,L(s).value)}),R(`click`,n,()=>N(s,null)),R(`click`,c,()=>N(s,null)),B(e,t)};H(ot,e=>{L(s)&&e(st)}),E(ue),I(e=>{V(pe,t.span.name||`Unknown Span`),W(he,1,e),V(ge,t.span.status.code),V(ve,t.span.kind)},[()=>U(Q(`px-2 py-0.5 rounded text-xs font-medium`,L(u)?`bg-danger-bg text-danger`:t.span.status.code===`OK`?`bg-success-bg text-success`:`bg-hover text-fg-muted`))]),R(`click`,xe,function(...e){t.onClose?.apply(this,e)}),B(e,ue),at()}ta([`click`,`change`]);var _v=z(`<div><!></div>`),vv=z(`<div class="flex flex-col gap-2"><button class="flex items-center gap-2 cursor-pointer text-fg-muted hover:text-fg transition-colors w-fit"><!> <span class="text-xs font-medium"> </span></button> <!></div>`);function yv(e,t){it(t,!0);var n=vv(),r=P(n),i=P(r);{let e=j(()=>Q(`text-fg-subtle transition-transform`,t.expanded&&`rotate-180`));cp(i,{size:12,get class(){return L(e)}})}var a=F(i,2),o=P(a,!0);E(a),E(r);var s=F(r,2),c=e=>{var n=_v();Ba(P(n),()=>t.children),E(n),B(e,n)};H(s,e=>{t.expanded&&e(c)}),E(n),I(()=>V(o,t.label)),R(`click`,r,function(...e){t.onToggle?.apply(this,e)}),B(e,n),at()}ta([`click`]);var bv=z(`<div class="bg-subtle rounded p-3 border border-line font-mono text-xs"><pre class="whitespace-pre-wrap break-words text-fg"> </pre></div>`),xv=z(`<div class="font-mono text-xs text-fg-muted mt-1"> </div>`),Sv=z(`<div class="bg-subtle rounded p-2.5 border border-line"><div class="font-medium text-xs text-fg mb-1.5"> </div> <!></div>`),Cv=z(`<div class="space-y-2"></div>`),wv=z(`<div class="text-xs text-fg-muted"><span class="font-medium">Status message:</span> </div>`),Tv=z(`<div role="presentation" class="mt-3 pt-3 border-t border-line space-y-3"><!> <!> <!></div>`),Ev=z(`<div role="button" tabindex="0" data-focus-inset=""><div class="flex items-center justify-between gap-4"><div class="flex-1 min-w-0"><div class="font-medium text-sm mb-1 text-fg"> </div> <div class="flex items-center gap-3 text-xs text-fg-muted"><span> </span> <span> </span> <span class="text-fg-subtle"> </span></div></div> <button class="p-1 hover:bg-hover rounded"><!></button></div> <!></div>`);function Dv(e,t){it(t,!0);let n=M(!1),r=M(_r({attributes:!1,events:!1})),i=j(()=>t.span.status.code===`ERROR`);function a(e){N(r,{...L(r),[e]:!L(r)[e]},!0)}function o(){let e=0,n=t.span;for(;n.parentSpanId;){e++;let r=t.trace.spans.find(e=>e.spanId===n.parentSpanId);if(!r)break;n=r}return e}let s=j(o),c=j(()=>Object.keys(t.span.attributes||{}).length>0),l=j(()=>t.span.events&&t.span.events.length>0);var u=Ev(),d=j(()=>ah(t.onSelect)),f=P(u),p=P(f),m=P(p),h=P(m,!0);E(m);var g=F(m,2),_=P(g),v=P(_,!0);E(_);var y=F(_,2),b=P(y,!0);E(y);var x=F(y,2),S=P(x,!0);E(x),E(g),E(p);var C=F(p,2),w=P(C);{let e=j(()=>Q(`text-fg-subtle transition-transform flex-shrink-0`,L(n)&&`rotate-180`));cp(w,{size:14,get class(){return L(e)}})}E(C),E(f);var ee=F(f,2),te=e=>{var n=Tv(),i=P(n),o=e=>{yv(e,{label:`All attributes`,get expanded(){return L(r).attributes},onToggle:()=>a(`attributes`),children:(e,n)=>{{let n=j(()=>JSON.stringify(t.span.attributes,null,2));Pg(e,{get content(){return L(n)},children:(e,n)=>{var r=bv(),i=P(r),a=P(i,!0);E(i),E(r),I(e=>V(a,e),[()=>JSON.stringify(t.span.attributes,null,2)]),B(e,r)},$$slots:{default:!0}})}},$$slots:{default:!0}})};H(i,e=>{L(c)&&e(o)});var s=F(i,2),u=e=>{{let n=j(()=>`Events (${t.span.events.length})`);yv(e,{get label(){return L(n)},get expanded(){return L(r).events},onToggle:()=>a(`events`),children:(e,n)=>{var r=Cv();Pa(r,21,()=>t.span.events,Aa,(e,t)=>{var n=Sv(),r=P(n),i=P(r,!0);E(r);var a=F(r,2),o=e=>{{let n=j(()=>JSON.stringify(L(t).attributes,null,2));Pg(e,{get content(){return L(n)},children:(e,n)=>{var r=xv(),i=P(r,!0);E(r),I(e=>V(i,e),[()=>JSON.stringify(L(t).attributes,null,2)]),B(e,r)},$$slots:{default:!0}})}},s=j(()=>L(t).attributes&&Object.keys(L(t).attributes).length>0);H(a,e=>{L(s)&&e(o)}),E(n),I(()=>V(i,L(t).name)),B(e,n)}),E(r),B(e,r)},$$slots:{default:!0}})}};H(s,e=>{L(l)&&e(u)});var d=F(s,2),f=e=>{var n=wv(),r=F(P(n));E(n),I(()=>V(r,` ${t.span.status.message??``}`)),B(e,n)};H(d,e=>{t.span.status.message&&e(f)}),E(n),R(`click`,n,e=>e.stopPropagation()),B(e,n)};H(ee,e=>{L(n)&&e(te)}),E(u),I((e,n,r)=>{W(u,1,e),lo(u,`padding-left: ${16+L(s)*20}px;`),V(h,t.span.name||`unknown`),W(_,1,n),V(v,t.span.status.code),V(b,r),V(S,t.span.kind)},[()=>U(Q(`px-4 py-3`,`hover:bg-subtle transition-colors cursor-pointer`,L(i)&&`bg-danger-bg`,t.isSelected&&`bg-hover hover:bg-hover`)),()=>U(Q(`font-medium`,od(t.span.status.code))),()=>id(t.span.duration)]),R(`click`,u,function(...e){t.onSelect?.apply(this,e)}),R(`keydown`,u,function(...e){L(d)?.apply(this,e)}),R(`click`,C,e=>{e.stopPropagation(),N(n,!L(n))}),B(e,u),at()}ta([`click`,`keydown`]);var Ov=`1.0.0`;function kv(e){return{version:Ov,exportedAt:new Date().toISOString(),trace:e}}function Av(e){return{version:Ov,exportedAt:new Date().toISOString(),traces:e}}function jv(e){return JSON.stringify(e,null,2)}function Mv(e,t){let n=jv(kv(e)),r=new Blob([n],{type:`application/json`}),i=URL.createObjectURL(r),a=`trace-${e.traceId.slice(0,8)}-${new Date().toISOString().split(`T`)[0]}.json`,o=document.createElement(`a`);o.href=i,o.download=t||a,document.body.append(o),o.click(),o.remove(),URL.revokeObjectURL(i)}function Nv(e,t){let n=jv(Av(e)),r=new Blob([n],{type:`application/json`}),i=URL.createObjectURL(r),a=`traces-${e.length}-${new Date().toISOString().split(`T`)[0]}.json`,o=document.createElement(`a`);o.href=i,o.download=t||a,document.body.append(o),o.click(),o.remove(),URL.revokeObjectURL(i)}async function Pv(e){let t=jv(kv(e));await navigator.clipboard.writeText(t)}function Fv(e,t){if(!e)return[`${t}: Invalid span data`];let n=e;return[...Ws(n,t,zs,[`spanId`,`traceId`,`name`]),...Ws(n,t,Bs,[`startTime`,`endTime`,`duration`]),...Ws(n,t,Vs,[`status`])]}function Iv(e,t){let n=`trace[${t}]`;if(!e)return{errors:[`${n}: Invalid trace data`],warnings:[]};let r=e,i=zs(r,`correlationId`)?[]:[`${n}: Missing correlationId, will use traceId`],a=Vs(r,`rootSpan`),o=Us(r,`spans`)?Hs(r,`spans`).flatMap((e,t)=>Fv(Rs(e),`${n}.spans[${t}]`)):[`${n}: Missing or invalid spans array`];return{errors:[...Ws(r,n,zs,[`traceId`]),...a?Fv(a,`${n}.rootSpan`):[`${n}: Missing or invalid rootSpan`],...o,...Ws(r,n,Bs,[`startTime`,`endTime`,`duration`])],warnings:i}}function Lv(e){return e}function Rv(e){let t=[],n=[],r=[],i;try{i=JSON.parse(e)}catch(e){return{success:!1,traces:[],errors:[`Invalid JSON: ${e instanceof Error?e.message:String(e)}`],warnings:[]}}let a=Rs(i);if(!a)return{success:!1,traces:[],errors:[`Parsed data is not an object`],warnings:[]};let o=zs(a,`version`);o&&o!==Ov&&n.push(`Version mismatch: expected ${Ov}, got ${o}`);let s=Vs(a,`trace`);if(s){let e=Iv(s,0);t.push(...e.errors),n.push(...e.warnings),e.errors.length===0&&r.push(zv(Lv(s)))}else if(Us(a,`traces`))for(let[e,i]of Hs(a,`traces`).entries()){let a=Rs(i),o=Iv(a,e);t.push(...o.errors),n.push(...o.warnings),a&&o.errors.length===0&&r.push(zv(Lv(a)))}else if(a.traceId){let e=Iv(a,0);t.push(...e.errors),n.push(...e.warnings),e.errors.length===0&&r.push(zv(Lv(a)))}else t.push(`Unrecognized format: expected { trace: ... } or { traces: [...] } or direct trace object`);return{success:t.length===0&&r.length>0,traces:r,errors:t,warnings:n}}function zv(e){return{...e,correlationId:e.correlationId||e.traceId.slice(0,8),service:e.service||`imported`,status:e.status||(e.spans.some(e=>e.status.code===`ERROR`)?`ERROR`:`OK`),spans:e.spans.map(Bv),rootSpan:Bv(e.rootSpan)}}function Bv(e){return{...e,kind:e.kind||`INTERNAL`,attributes:e.attributes||{},status:{code:e.status?.code||`UNSET`,message:e.status?.message},events:e.events||[]}}function Vv(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(Error(`Failed to read file`)),r.readAsText(e)})}function Hv(e){return{version:Ov,kind:`autotel-devtools-snapshot`,capturedAt:new Date().toISOString(),data:e}}function Uv(e,t){let n=JSON.stringify(Hv(e),null,2),r=new Blob([n],{type:`application/json`}),i=URL.createObjectURL(r),a=`autotel-snapshot-${new Date().toISOString().replaceAll(`:`,`-`).split(`.`)[0]}.json`,o=document.createElement(`a`);o.href=i,o.download=t||a,document.body.append(o),o.click(),o.remove(),URL.revokeObjectURL(i)}function Wv(e,t){return Hs(e,t)}function Gv(e){let t;try{t=JSON.parse(e)}catch(e){return{success:!1,errors:[`Invalid JSON: ${e instanceof Error?e.message:String(e)}`],warnings:[]}}let n=Rs(t);if(!n)return{success:!1,errors:[`Snapshot is not an object`],warnings:[]};let r=[];n.kind&&n.kind!==`autotel-devtools-snapshot`&&r.push(`Unexpected snapshot kind: ${String(n.kind)}`);let i=zs(n,`version`);i&&i!==Ov&&r.push(`Version mismatch: expected ${Ov}, got ${i}`);let a=Vs(n,`data`)??n,o=Wv(a,`traces`).map(zv),s=Wv(a,`logs`),c=Wv(a,`errors`);return o.length===0&&s.length===0&&c.length===0?{success:!1,errors:[`Snapshot contains no traces, logs, or errors`],warnings:r}:{success:!0,snapshot:{traces:o,logs:s,errors:c},errors:[],warnings:r}}async function Kv(e){try{return Gv(await Vv(e))}catch(e){return{success:!1,errors:[`Failed to read file: ${e instanceof Error?e.message:String(e)}`],warnings:[]}}}var qv=z(`<div class="text-warning">Partial trace — the root span has not arrived. This is the highest
6
+ span received; the duration covers only the spans present.</div>`),Jv=z(`<span class="text-xs text-fg-muted tabular-nums flex-shrink-0"> </span>`),Yv=z(`<div class="px-4 py-2 border-b border-line flex items-center gap-2"><!> <!></div>`),Xv=z(`<div class="overflow-auto h-full"><div class="divide-y divide-line-subtle"></div></div>`),Zv=z(`<!> <div class="flex-shrink-0 overflow-hidden"><!></div>`,1),Qv=z(`<div class="flex flex-col h-full"><div class="px-4 py-3 border-b border-line"><div class="flex items-center justify-between mb-3"><button><!> Back to traces</button> <div class="flex items-center gap-2"><div class="flex items-center gap-1"><button class="p-1.5 hover:bg-hover rounded transition-colors" title="Copy trace JSON to clipboard"><!></button> <button class="p-1.5 hover:bg-hover rounded transition-colors" title="Download trace as JSON"><!></button></div> <div class="flex items-center gap-1 bg-hover rounded-md p-0.5"><button title="Waterfall view (w)"><!> Timeline</button> <button title="Flame graph view (f)"><!> Flame</button> <button title="List view (l)"><!> List</button></div> <button class="p-1.5 hover:bg-hover rounded transition-colors" title="Keyboard shortcuts (?)"><!></button></div></div> <div class="flex items-start justify-between gap-4"><div class="flex-1 min-w-0"><h3 class="font-semibold text-base mb-1.5 text-fg"> </h3> <div class="text-xs text-fg-subtle space-y-0.5"><!> <div> </div> <div class="font-mono flex items-center gap-1"><span class="truncate"> </span> <!></div></div></div> <div class="text-right flex-shrink-0"><div> </div> <div class="text-xs text-fg-muted"> </div> <div class="text-xs text-fg-subtle mt-1"> </div></div></div></div> <!> <div class="flex-1 overflow-hidden flex"><div class="flex-1 overflow-hidden min-w-0"><!></div> <!></div></div>`);function $v(e,t){it(t,!0);let n=M(`waterfall`),r=j(()=>t.trace.spans.find(e=>e.spanId===Wc.value)??null),i=e=>Wc.value=e?.spanId??null,a=M(``),o=M(0),s=M(null);Rr(()=>{let e=e=>{e.key===`/`&&L(n)===`waterfall`&&!ih()&&(e.preventDefault(),L(s)?.focus())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let c=M(!1),l=M(void 0),u=ig({initial:320,min:260,minOther:360,containerRef:{get current(){return L(l)??null}},storageKey:`autotel-devtools:span-detail-width`,invert:!0}),d=j(()=>u.size),f=j(()=>u.dragging),p=j(()=>u.separatorProps);function m(e,t,n){let r=e.filter(e=>e.status.code===`ERROR`);return r.length===0?null:r[((t?r.findIndex(e=>e.spanId===t.spanId):-1)+n+r.length)%r.length]}Rr(()=>{let e=e=>{if(!tl.value){if(e.key===`Escape`){L(r)?i(null):Mu(null);return}if(!ih()){if(e.key===`w`)e.preventDefault(),N(n,`waterfall`);else if(e.key===`f`)e.preventDefault(),N(n,`flame`);else if(e.key===`l`)e.preventDefault(),N(n,`list`);else if(e.key===`e`&&!e.shiftKey){e.preventDefault();let n=m(t.trace.spans,L(r),1);n&&i(n)}else if(e.key===`E`&&e.shiftKey){e.preventDefault();let n=m(t.trace.spans,L(r),-1);n&&i(n)}}}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});function h(e){return new Date(e).toLocaleString(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0})}function g(){Mv(t.trace)}async function _(){await Pv(t.trace),N(c,!0),setTimeout(()=>N(c,!1),2e3)}var v=Qv(),y=P(v),b=P(y),x=P(b);up(P(x),{size:14}),Ke(),E(x);var S=F(x,2),C=P(S),w=P(C),ee=P(w),te=e=>{op(e,{size:14,class:`text-success`})},ne=e=>{Sp(e,{size:14,class:`text-fg-subtle`})};H(ee,e=>{L(c)?e(te):e(ne,-1)}),E(w);var re=F(w,2);Ep(P(re),{size:14,class:`text-fg-subtle`}),E(re),E(C);var ie=F(C,2),ae=P(ie);np(P(ae),{size:12}),Ke(),E(ae);var oe=F(ae,2);Mp(P(oe),{size:12}),Ke(),E(oe);var se=F(oe,2);Kp(P(se),{size:12}),Ke(),E(se),E(ie);var ce=F(ie,2);gp(P(ce),{size:14,class:`text-fg-subtle`}),E(ce),E(S),E(b);var le=F(b,2),ue=P(le),T=P(ue),de=P(T,!0);E(T);var fe=F(T,2),pe=P(fe),me=e=>{B(e,qv())};H(pe,e=>{t.trace.partial&&e(me)});var he=F(pe,2),ge=P(he,!0);E(he);var _e=F(he,2),ve=P(_e),ye=P(ve);E(ve),Qg(F(ve,2),{get value(){return t.trace.traceId},label:`Copy trace ID`,stop:!1}),E(_e),E(fe),E(ue);var be=F(ue,2),xe=P(be),Se=P(xe,!0);E(xe);var Ce=F(xe,2),we=P(Ce,!0);E(Ce);var Te=F(Ce,2),Ee=P(Te);E(Te),E(be),E(le),E(y);var De=F(y,2),Oe=e=>{var t=Yv(),n=P(t);Lg(n,{placeholder:`Search spans… (press /)`,ariaLabel:`Search spans by name or service`,clearTitle:`Clear search`,get value(){return L(a)},set value(e){N(a,e,!0)},get ref(){return L(s)},set ref(e){N(s,e,!0)}});var r=F(n,2),i=e=>{var t=Jv(),n=P(t);E(t),I(()=>V(n,`${L(o)??``}
7
+ ${L(o)===1?`match`:`matches`}`)),B(e,t)},c=j(()=>L(a).trim());H(r,e=>{L(c)&&e(i)}),E(t),B(e,t)};H(De,e=>{L(n)===`waterfall`&&e(Oe)});var ke=F(De,2),Ae=P(ke),je=P(Ae),Me=e=>{{let n=j(()=>L(r)?.spanId);mg(e,{get trace(){return t.trace},onSpanSelect:i,get selectedSpanId(){return L(n)},get query(){return L(a)},onMatchCount:e=>N(o,e,!0)})}},Ne=e=>{{let n=j(()=>L(r)?.spanId);jg(e,{get trace(){return t.trace},onSpanSelect:i,get selectedSpanId(){return L(n)}})}},Pe=e=>{var n=Xv(),a=P(n);Pa(a,21,()=>t.trace.spans,e=>e.spanId,(e,n)=>{{let a=j(()=>L(r)?.spanId===L(n).spanId);Dv(e,{get span(){return L(n)},get trace(){return t.trace},get isSelected(){return L(a)},onSelect:()=>i(L(n))})}}),E(a),E(n),B(e,n)};H(je,e=>{L(n)===`waterfall`?e(Me):L(n)===`flame`?e(Ne,1):e(Pe,-1)}),E(Ae);var Fe=F(Ae,2),Ie=e=>{var n=Zv(),a=Or(n);eg(a,q({get dragging(){return L(f)},title:`Drag to resize the detail panel · double-click to reset`},()=>L(p)));var o=F(a,2);gv(P(o),{get span(){return L(r)},get trace(){return t.trace},onClose:()=>i(null)}),E(o),I(()=>lo(o,`width: ${L(d)??``}px;`)),B(e,n)};H(Fe,e=>{L(r)&&e(Ie)}),E(ke),Uo(ke,e=>N(l,e),()=>L(l)),E(v),I((e,n,r,i,a,o,s)=>{W(x,1,e),W(ae,1,n),W(oe,1,r),W(se,1,i),V(de,t.trace.rootSpan.name||`Trace`),V(ge,a),V(ye,`Trace ID: ${t.trace.traceId??``}`),W(xe,1,o),V(Se,t.trace.status),V(we,s),V(Ee,`${t.trace.spans.length??``} spans`)},[()=>U(Q(`text-xs text-fg-muted hover:text-fg`,`flex items-center gap-1 transition-colors`)),()=>U(Q(`px-2 py-1 text-xs rounded transition-colors flex items-center gap-1`,L(n)===`waterfall`?`bg-surface text-fg shadow-sm`:`text-fg-muted hover:text-fg`)),()=>U(Q(`px-2 py-1 text-xs rounded transition-colors flex items-center gap-1`,L(n)===`flame`?`bg-surface text-fg shadow-sm`:`text-fg-muted hover:text-fg`)),()=>U(Q(`px-2 py-1 text-xs rounded transition-colors flex items-center gap-1`,L(n)===`list`?`bg-surface text-fg shadow-sm`:`text-fg-muted hover:text-fg`)),()=>h(t.trace.startTime),()=>U(Q(`font-medium text-sm mb-1`,od(t.trace.status))),()=>id(t.trace.duration)]),R(`click`,x,()=>Mu(null)),R(`click`,w,_),R(`click`,re,g),R(`click`,ae,()=>N(n,`waterfall`)),R(`click`,oe,()=>N(n,`flame`)),R(`click`,se,()=>N(n,`list`)),R(`click`,ce,()=>nl(rh)),B(e,v),at()}ta([`click`]);var ey=z(`<span class="ml-0.5 min-w-[16px] px-1 rounded-full bg-accent text-[10px] font-semibold text-white text-center tabular-nums"> </span>`),ty=z(`<div class="sticky top-0 bg-surface p-2 border-b border-line-subtle"><div class="relative"><!> <input type="text" placeholder="Narrow options…" class="w-full pl-6 pr-2 py-1 text-xs rounded border border-line bg-subtle text-fg focus:outline-none focus:border-accent"/></div></div>`),ny=z(`<span class="text-accent normal-case"> </span>`),ry=z(`<div class="px-1 py-1 text-xs text-fg-subtle">No matches</div>`),iy=la(`<svg viewBox="0 0 12 12" class="w-2.5 h-2.5 text-white" fill="none" stroke="currentColor" stroke-width="2"><path d="M2.5 6.5l2.5 2.5 4.5-5" stroke-linecap="round" stroke-linejoin="round"></path></svg>`),ay=z(`<button type="button" role="menuitemcheckbox"><span><!></span> <span class="flex-1 truncate"> </span> <span class="flex-shrink-0 font-mono tabular-nums text-fg-subtle"> </span></button>`),oy=z(`<div class="flex flex-col gap-0.5"></div>`),sy=z(`<div class="p-2 border-b border-line-subtle last:border-b-0"><div class="flex items-center justify-between px-1 pb-1 text-[10px] font-semibold uppercase tracking-wide text-fg-subtle"><span> </span> <!></div> <!></div>`),cy=z(`<button type="button" class="flex items-center gap-1 w-full px-3 py-2 text-xs text-fg-subtle hover:bg-hover transition-colors border-t border-line"><!> Clear all filters</button>`),ly=z(`<div class="absolute right-0 z-30 mt-1 w-64 max-h-[60vh] overflow-auto rounded-md border border-line bg-surface shadow-lg" role="menu"><!> <!> <!></div>`),uy=z(`<div class="relative"><button type="button" aria-haspopup="true" title="Filter by facets"><!> <span>Filter</span> <!></button> <!></div>`);function dy(e,t){it(t,!0);let n=J(t,`searchThreshold`,3,8),r=M(!1),i=M(``),a=M(void 0),o=j(()=>t.facets.reduce((e,t)=>e+t.selected.size,0)),s=j(()=>t.facets.some(e=>e.options.length>n()));function c(e){let t=L(i).trim().toLowerCase();return[...t?e.options.filter(e=>e.value.toLowerCase().includes(t)):e.options].sort((t,n)=>{let r=+!!e.selected.has(t.value),i=+!!e.selected.has(n.value);return r===i?t.count===n.count?t.value.localeCompare(n.value):n.count-t.count:i-r})}function l(){N(r,!L(r)),L(r)||N(i,``)}Rr(()=>{if(!L(r))return;let e=e=>{L(a)&&!e.composedPath().includes(L(a))&&(N(r,!1),N(i,``))},t=e=>{e.key===`Escape`&&(N(r,!1),N(i,``))};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}});var u=uy(),d=P(u),f=P(d);Pp(f,{size:12});var p=F(f,4),m=e=>{var t=ey(),n=P(t,!0);E(t),I(()=>V(n,L(o))),B(e,t)};H(p,e=>{L(o)>0&&e(m)}),E(d);var h=F(d,2),g=e=>{var n=ly(),r=P(n),a=e=>{var t=ty(),n=P(t),r=P(n);Sm(r,{size:12,class:`absolute left-2 top-1/2 -translate-y-1/2 text-fg-subtle`});var a=F(r,2);Co(a),E(n),E(t),Mo(a,()=>L(i),e=>N(i,e)),B(e,t)};H(r,e=>{L(s)&&e(a)});var l=F(r,2);Pa(l,17,()=>t.facets,e=>e.key,(e,t)=>{let n=j(()=>c(L(t)));var r=sy(),i=P(r),a=P(i),o=P(a,!0);E(a);var s=F(a,2),l=e=>{var n=ny(),r=P(n,!0);E(n),I(()=>V(r,L(t).selected.size)),B(e,n)};H(s,e=>{L(t).selected.size>0&&e(l)}),E(i);var u=F(i,2),d=e=>{B(e,ry())},f=e=>{var r=oy();Pa(r,21,()=>L(n),e=>e.value,(e,n)=>{let r=j(()=>L(t).selected.has(L(n).value));var i=ay(),a=P(i),o=P(a),s=e=>{B(e,iy())};H(o,e=>{L(r)&&e(s)}),E(a);var c=F(a,2),l=P(c,!0);E(c);var u=F(c,2),d=P(u,!0);E(u),E(i),I((e,t)=>{W(i,1,e),G(i,`aria-checked`,L(r)),W(a,1,t),G(c,`title`,L(n).value),V(l,L(n).value),V(d,L(n).count)},[()=>U(Q(`flex items-center gap-2 px-1.5 py-1 rounded text-xs text-left transition-colors`,L(r)?`bg-accent/15 text-accent`:`text-fg-muted hover:bg-hover`)),()=>U(Q(`flex-shrink-0 w-3 h-3 rounded-sm border flex items-center justify-center`,L(r)?`bg-accent border-accent`:`border-line`))]),R(`click`,i,()=>L(t).onToggle(L(n).value)),B(e,i)}),E(r),B(e,r)};H(u,e=>{L(n).length===0?e(d):e(f,-1)}),E(r),I(()=>V(o,L(t).label)),B(e,r)});var u=F(l,2),d=e=>{var n=cy();Hm(P(n),{size:12}),Ke(),E(n),R(`click`,n,function(...e){t.onClearAll?.apply(this,e)}),B(e,n)};H(u,e=>{L(o)>0&&e(d)}),E(n),B(e,n)};H(h,e=>{L(r)&&e(g)}),E(u),Uo(u,e=>N(a,e),()=>L(a)),I(e=>{W(d,1,e),G(d,`aria-expanded`,L(r))},[()=>U(Q(`flex items-center gap-1 px-2 py-1 text-xs rounded border transition-colors`,L(o)>0||L(r)?`border-accent/40 bg-accent/10 text-accent`:`border-line text-fg-muted hover:bg-hover`))]),R(`click`,d,l),B(e,u),at()}ta([`click`]);var fy={"=~":`REGEXP`,"!~":`NOT REGEXP`},py=/[^\s()[\],=!<>^$"']/,my=[`>=`,`<=`,`!=`,`=~`,`!~`,`=`,`>`,`<`,`^`,`$`];function hy(e){let t=[],n=0,r=(e,n,r,i,a=!0)=>t.push({type:e,value:n,from:r,to:i,terminated:a});for(;n<e.length;){let t=e[n];if(/\s/.test(t)){n++;continue}let i={"(":`lparen`,")":`rparen`,"[":`lbracket`,"]":`rbracket`,",":`comma`};if(i[t]){r(i[t],t,n,n+1),n++;continue}if(t===`"`||t===`'`){let i=n,a=t;n++;let o=``,s=!1;for(;n<e.length;){if(e[n]===`\\`&&n+1<e.length){o+=e[n+1],n+=2;continue}if(e[n]===a){n++,s=!0;break}o+=e[n],n++}r(`string`,o,i,n,s);continue}let a=my.find(t=>e.startsWith(t,n));if(a){r(`sigil`,a,n,n+a.length),n+=a.length;continue}let o=n;for(;n<e.length&&py.test(e[n]);)n++;n===o&&n++,r(`word`,e.slice(o,n),o,n)}return t}var gy=new Set([`and`,`or`]),_y=new Set([`null`,`nil`]),vy=new Map([[`contains`,`CONTAINS`],[`regexp`,`REGEXP`],[`in`,`IN`]]);function yy(e){let t=hy(e),n=[],r=()=>({from:t.length?t[t.length-1].to:0,to:e.length}),i=0,a=(e=0)=>t[i+e],o=()=>t[i++],s=(e,t)=>n.push({message:e,range:t}),c=(e=0)=>{let t=a(e);return t?.type===`word`?t.value.toLowerCase():void 0},l=(e=0)=>{let t=c(e);return t!==void 0&&gy.has(t)};function u(e,t){return{from:e.from,to:t.to}}function d(){let e=o();if(!e){s(`Expected a value`,r());return}if(e.type===`string`)return e.terminated||s(`Unterminated quoted string`,{from:e.from,to:e.to}),{type:`string`,value:e.value};if(e.type===`lbracket`){let e=[];if(a()?.type===`rbracket`)return o(),{type:`array`,values:e};for(;;){let t=d();if(!t)return{type:`array`,values:e};e.push(t);let n=a();if(n?.type===`comma`){o();continue}return n?.type===`rbracket`?(o(),{type:`array`,values:e}):(s(`Expected "," or "]" in array`,n??r()),{type:`array`,values:e})}}if(e.type===`word`){let t=e.value.toLowerCase();if(_y.has(t))return{type:`null`};if(t===`true`)return{type:`boolean`,value:!0};if(t===`false`)return{type:`boolean`,value:!1};let n=Number(e.value);return Number.isFinite(n)?{type:`number`,value:n}:{type:`string`,value:e.value}}s(`Expected a value, found "${e.value}"`,e)}function f(){let e=a();if(!e)return;if(e.type===`sigil`)return o(),fy[e.value]??e.value;if(e.type!==`word`)return;let t=e.value.toLowerCase();if(t===`not`){let e=c(1),t=e?vy.get(e):void 0;return t?(o(),o(),`NOT ${t}`):void 0}let n=vy.get(t);if(n)return o(),n}function p(){let e=a();if(!e){s(`Expected a condition`,r());return}if(e.type===`lparen`){o();let e=g(),t=a();return t?.type===`rparen`?o():s(`Unclosed parenthesis — expected ")"`,t??r()),e}if(e.type===`word`||e.type===`string`){let n=i;o();let r=f();if(r){let n=d();if(!n)return;let a=t[i-1];return{type:`comparison`,field:e.value,op:r,value:n,range:u(e,a??e)}}return i=n,o(),e.type===`string`&&!e.terminated&&s(`Unterminated quoted string`,{from:e.from,to:e.to}),{type:`freeText`,text:e.value,range:{from:e.from,to:e.to}}}s(`Unexpected "${e.value}"`,e),o()}function m(){let e=a();return!e||e.type===`rparen`||e.type===`rbracket`||e.type===`comma`?!1:!l()}function h(){let e=p();if(e)for(;;){if(c()===`and`){o();let t=p();if(!t)return e;e={type:`and`,left:e,right:t,range:by(e,t)};continue}if(m()){let t=p();if(!t)return e;e={type:`and`,left:e,right:t,range:by(e,t)};continue}return e}}function g(){let e=h();if(e){for(;c()===`or`;){o();let t=h();if(!t)return e;e={type:`or`,left:e,right:t,range:by(e,t)}}return e}}if(t.length===0)return{ok:!0,node:{type:`all`}};let _=g(),v=a();return v&&s(`Unexpected "${v.value}"`,v),n.length>0||!_?{ok:!1,errors:n.length>0?n:[{message:`Invalid query`,range:r()}]}:{ok:!0,node:_}}function by(e,t){let n=`range`in e?e.range.from:0;return{from:n,to:`range`in t?t.range.to:n}}var xy=z(`<button type="button" title="Clear query" aria-label="Clear query" class="absolute right-1.5 top-[7px] p-0.5 text-fg-subtle hover:text-fg-muted"><!></button>`),Sy=z(`<button type="button" role="option" aria-selected="false" class="block w-full px-2 py-1.5 text-left font-mono text-xs text-fg hover:bg-hover"> </button>`),Cy=z(`<div role="listbox" aria-label="Query fields" class="absolute left-0 right-0 top-full z-30 mt-1 max-h-48 overflow-auto rounded border border-line bg-surface shadow-lg"></div>`),wy=z(`<div id="query-error" role="status" class="mt-1 flex items-start gap-1.5 text-[11px] text-danger"><!> <span> <span class="text-fg-subtle"> </span></span></div>`),Ty=z(`<div><!> <input spellcheck="false" autocomplete="off" autocapitalize="off" aria-label="Query"/> <!> <!> <!></div>`);function Ey(e,t){it(t,!0);let n=J(t,`placeholder`,3,`Filter — e.g. service = api AND duration > 100`),r=J(t,`fields`,19,()=>[]),i=J(t,`ref`,15,null),a=j(()=>yy(t.value)),o=j(()=>L(a).ok?[]:L(a).errors),s=j(()=>L(o).length>0?L(o):t.serverErrors??[]),c=j(()=>L(s).length>0&&t.value.trim().length>0),l=M(!1),u=j(()=>{let e=t.value.match(/(?:^|[\s(])([A-Za-z_][\w.-]*)$/),n=e?.[1]?.toLowerCase()??``;return t.value.trim().length>0&&!e?[]:r().filter(e=>e.toLowerCase().startsWith(n)).filter(e=>e.toLowerCase()!==n).slice(0,8)});function d(e){e.key===`Enter`&&!L(c)&&(e.preventDefault(),t.onSubmit(t.value)),e.key===`Escape`&&t.value&&(e.preventDefault(),t.onInput(``),t.onSubmit(``))}function f(){t.onInput(``),t.onSubmit(``),i()?.focus()}function p(e){let n=t.value.match(/(?:^|[\s(])([A-Za-z_][\w.-]*)$/),r=n?.[1]?t.value.length-n[1].length:t.value.length;t.onInput(`${t.value.slice(0,r)}${e} = `),i()?.focus()}var m=Ty(),h=P(m);Sm(h,{size:12,class:`absolute left-2 top-[9px] text-fg-subtle pointer-events-none`});var g=F(h,2);Co(g),Uo(g,e=>i(e),()=>i());var _=F(g,2),v=e=>{var t=xy();Hm(P(t),{size:12}),E(t),R(`click`,t,f),B(e,t)};H(_,e=>{t.value&&e(v)});var y=F(_,2),b=e=>{var t=Cy();Pa(t,20,()=>L(u),e=>e,(e,t)=>{var n=Sy(),r=P(n,!0);E(n),I(()=>V(r,t)),R(`mousedown`,n,e=>e.preventDefault()),R(`click`,n,()=>p(t)),B(e,n)}),E(t),B(e,t)};H(y,e=>{L(l)&&L(u).length>0&&e(b)});var x=F(y,2),S=e=>{var t=wy(),n=P(t);mp(n,{size:12,class:`mt-px shrink-0`});var r=F(n,2),i=P(r),a=F(i),o=P(a);E(a),E(r),E(t),I(()=>{V(i,`${L(s)[0].message??``} `),V(o,`(column ${L(s)[0].range.from+1})`)}),B(e,t)};H(x,e=>{L(c)&&e(S)}),E(m),I((e,r)=>{W(m,1,e),wo(g,t.value),G(g,`placeholder`,n()),G(g,`aria-invalid`,L(c)?`true`:void 0),G(g,`aria-describedby`,L(c)?`query-error`:void 0),W(g,1,r)},[()=>U(Q(`relative`,t.class)),()=>U(Q(`w-full pl-7 pr-7 py-1.5 text-xs font-mono rounded border bg-surface text-fg`,`focus:outline-none focus:ring-1`,L(c)?`border-danger-border focus:ring-danger`:`border-line focus:ring-accent`))]),R(`input`,g,e=>t.onInput(e.currentTarget.value)),R(`keydown`,g,d),ea(`focus`,g,()=>N(l,!0)),ea(`blur`,g,()=>N(l,!1)),B(e,m),at()}ta([`input`,`keydown`,`click`,`mousedown`]);function Dy(e){return typeof e==`function`}function Oy(e){return typeof e==`object`&&!!e}var ky=[`string`,`number`,`bigint`,`boolean`];function Ay(e){return e==null||ky.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>Ay(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var jy=Symbol(`box`),My=Symbol(`is-writable`);function $(e,t){let n=j(e);return t?{[jy]:!0,[My]:!0,get current(){return L(n)},set current(e){t(e)}}:{[jy]:!0,get current(){return e()}}}function Ny(e){return Oy(e)&&jy in e}function Py(e){return Ny(e)?e:Dy(e)?$(e):Fy(e)}function Fy(e){let t=M(_r(e));return{[jy]:!0,[My]:!0,get current(){return L(t)},set current(e){N(t,e,!0)}}}function Iy(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Ly=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ry=/\n/g,zy=/^\s*/,By=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Vy=/^:\s*/,Hy=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Uy=/^[;\s]*/,Wy=/^\s+|\s+$/g,Gy=`
8
+ `,Ky=`/`,qy=`*`,Jy=``,Yy=`comment`,Xy=`declaration`;function Zy(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(Ry);t&&(n+=t.length);var i=e.lastIndexOf(Gy);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(zy)}function u(e){var t;for(e=e||[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(Ky==e.charAt(0)&&qy==e.charAt(1)){for(var n=2;Jy!=e.charAt(n)&&(qy!=e.charAt(n)||Ky!=e.charAt(n+1));)++n;if(n+=2,Jy===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Yy,comment:o})}}function f(){var e=a(),t=c(By);if(t){if(d(),!c(Vy))return s(`property missing ':'`);var n=c(Hy),r=e({type:Xy,property:Qy(t[0].replace(Ly,Jy)),value:n?Qy(n[0].replace(Ly,Jy)):Jy});return c(Uy),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function Qy(e){return e?e.replace(Wy,Jy):Jy}function $y(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=Zy(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n=n||{},n[r]=a)}),n}var eb=/\d/,tb=[`-`,`_`,`/`,`.`];function nb(e=``){if(!eb.test(e))return e!==e.toLowerCase()}function rb(e){let t=[],n=``,r,i;for(let a of e){let e=tb.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=nb(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function ib(e){return e?rb(e).map(e=>ob(e)).join(``):``}function ab(e){return sb(ib(e||``))}function ob(e){return e?e[0].toUpperCase()+e.slice(1):``}function sb(e){return e?e[0].toLowerCase()+e.slice(1):``}function cb(e){if(!e)return{};let t={};function n(e,n){if(e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)){t[ib(e)]=n;return}if(e.startsWith(`--`)){t[e]=n;return}t[ab(e)]=n}return $y(e,n),t}function lb(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function ub(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var db=ub(/[A-Z]/,e=>`-${e.toLowerCase()}`);function fb(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${db(t)}: ${e[t]};`).join(`
9
+ `)}function pb(e={}){return fb(e).replace(`
10
+ `,` `)}var mb=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function hb(e){return mb.has(e)}function gb(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&typeof o&&hb(e))t[e]=Iy(n,i);else if(a&&o)t[e]=lb(n,i);else if(e===`class`){let r=Ay(n),a=Ay(i);r&&a?t[e]=no(n,i):r?t[e]=no(n):a&&(t[e]=no(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=cb(i);t[e]={...n,...r}}else if(o&&a)t[e]={...cb(n),...i};else if(o&&s){let r=cb(n),a=cb(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=pb(t.style).replaceAll(`
11
+ `,` `)),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}var _b=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function vb(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var yb,bb=!1,xb=new WeakMap,Sb=new WeakMap,Cb=new WeakMap,wb=new WeakSet;yb=class extends Date{constructor(...e){super(...e),kt(this,wb),D(this,xb,M(super.getTime())),D(this,Sb,new Map),D(this,Cb,ui),bb||O(wb,this,Tb).call(this)}};function Tb(){bb=!0;var e=yb.prototype,t=Date.prototype,n=Object.getOwnPropertyNames(t);for(let r of n)(r.startsWith(`get`)||r.startsWith(`to`)||r===`valueOf`)&&(e[r]=function(...e){if(e.length>0)return L(A(xb,this)),t[r].apply(this,e);var n=A(Sb,this).get(r);if(n===void 0){let i=ui;fi(A(Cb,this)),n=j(()=>(L(A(xb,this)),t[r].apply(this,e))),A(Sb,this).set(r,n),fi(i)}return L(n)}),r.startsWith(`set`)&&(e[r]=function(...e){var n=t[r].apply(this,e);return N(A(xb,this),t.getTime.call(this)),n})}var Eb,Db,Ob=[`forEach`,`isDisjointFrom`,`isSubsetOf`,`isSupersetOf`],kb=[`difference`,`intersection`,`symmetricDifference`,`union`],Ab=!1,jb=new WeakMap,Mb=new WeakMap,Nb=new WeakMap,Pb=new WeakMap,Fb=new WeakSet;Db=Symbol.iterator,Eb=class extends Set{constructor(e){if(super(),kt(this,Fb),D(this,jb,new Map),D(this,Mb,M(0)),D(this,Nb,M(0)),D(this,Pb,Ci||-1),e){for(var t of e)super.add(t);A(Nb,this).v=super.size}Ab||O(Fb,this,Lb).call(this)}has(e){var t=super.has(e),n=A(jb,this),r=n.get(e);if(r===void 0){if(!t)return L(A(Mb,this)),!1;r=O(Fb,this,Ib).call(this,!0),n.set(e,r)}return L(r),t}add(e){return super.has(e)||(super.add(e),N(A(Nb,this),super.size),hr(A(Mb,this))),this}delete(e){var t=super.delete(e),n=A(jb,this),r=n.get(e);return r!==void 0&&(n.delete(e),N(r,!1)),t&&(N(A(Nb,this),super.size),hr(A(Mb,this))),t}clear(){if(super.size!==0){super.clear();var e=A(jb,this);for(var t of e.values())N(t,!1);e.clear(),N(A(Nb,this),0),hr(A(Mb,this))}}keys(){return this.values()}values(){return L(A(Mb,this)),super.values()}entries(){return L(A(Mb,this)),super.entries()}[Db](){return this.keys()}get size(){return L(A(Nb,this))}};function Ib(e){return Ci===A(Pb,this)?M(e):dr(e)}function Lb(){Ab=!0;var e=Eb.prototype,t=Set.prototype;for(let n of Ob)e[n]=function(...e){return L(A(Mb,this)),t[n].apply(this,e)};for(let n of kb)e[n]=function(...e){L(A(Mb,this));var r=t[n].apply(this,e);return new Eb(r)}}function Rb(e){return Rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rb(e)}function zb(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=Rb(e))!==null;);return e}function Bb(){return Bb=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=zb(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Bb.apply(null,arguments)}function Vb(e,t,n,r){var i=Bb(Rb(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var Hb,Ub,Wb=new WeakMap,Gb=new WeakMap,Kb=new WeakMap,qb=new WeakMap,Jb=new WeakSet;Ub=Symbol.iterator;var Yb=class extends Map{constructor(e){if(super(),kt(this,Jb),D(this,Wb,new Map),D(this,Gb,M(0)),D(this,Kb,M(0)),D(this,qb,Ci||-1),e){for(var[t,n]of e)super.set(t,n);A(Kb,this).v=super.size}}has(e){var t=A(Wb,this),n=t.get(e);if(n===void 0){if(super.has(e))n=O(Jb,this,Xb).call(this,0),t.set(e,n);else return L(A(Gb,this)),!1}return L(n),!0}forEach(e,t){O(Jb,this,Zb).call(this),super.forEach(e,t)}get(e){var t=A(Wb,this),n=t.get(e);if(n===void 0){if(super.has(e))n=O(Jb,this,Xb).call(this,0),t.set(e,n);else{L(A(Gb,this));return}}return L(n),super.get(e)}set(e,t){var n=A(Wb,this),r=n.get(e),i=super.get(e),a=super.set(e,t),o=A(Gb,this);if(r===void 0)r=O(Jb,this,Xb).call(this,0),n.set(e,r),N(A(Kb,this),super.size),hr(o);else if(i!==t){hr(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&hr(o)}return a}delete(e){var t=A(Wb,this),n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(A(Kb,this),super.size),hr(A(Gb,this))),r}clear(){if(super.size!==0){super.clear();var e=A(Wb,this);N(A(Kb,this),0);for(var t of e.values())N(t,-1);hr(A(Gb,this)),e.clear()}}keys(){return L(A(Gb,this)),super.keys()}values(){return O(Jb,this,Zb).call(this),super.values()}entries(){return O(Jb,this,Zb).call(this),super.entries()}[Ub](){return this.entries()}get size(){return L(A(Kb,this)),super.size}};Hb=Yb;function Xb(e){return Ci===A(qb,this)?M(e):dr(e)}function Zb(){L(A(Gb,this));var e=A(Wb,this);if(A(Kb,this).v!==e.size){for(var t of Vb(Hb.prototype,`keys`,this,2)([]))if(!e.has(t)){var n=O(Jb,this,Xb).call(this,0);e.set(t,n)}}for([,n]of A(Wb,this))L(n)}var Qb=new WeakMap,$b=new WeakMap;new class{constructor(e={}){D(this,Qb,void 0),D(this,$b,void 0);let{window:t=_b,document:n=t?.document}=e;t!==void 0&&(k(Qb,this,n),k($b,this,Dt(e=>{let n=$i(t,`focusin`,e),r=$i(t,`focusout`,e);return()=>{n(),r()}})))}get current(){return A($b,this)?.call(this),A(Qb,this)?vb(A(Qb,this)):null}};function ex(e){return typeof e==`function`}var tx=new WeakMap,nx=new WeakMap,rx=class{constructor(e){D(this,tx,void 0),D(this,nx,void 0),k(tx,this,e),k(nx,this,Symbol(e))}get key(){return A(nx,this)}exists(){return nt(A(nx,this))}get(){let e=et(A(nx,this));if(e===void 0)throw Error(`Context "${A(tx,this)}" not found`);return e}getOr(e){let t=et(A(nx,this));return t===void 0?e:t}set(e){return tt(A(nx,this),e)}};function ix(e,t){switch(e){case`post`:Rr(t);break;case`pre`:Br(t)}}function ax(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;ix(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=Fi(()=>n(t,o));return o=t,r})}function ox(e,t,n){ax(e,`post`,t,n)}function sx(e,t,n){ax(e,`pre`,t,n)}ox.pre=sx;function cx(e){return ex(e)?e():e}var lx=new WeakMap,ux=new WeakMap,dx=new WeakMap,fx=new WeakMap,px=new WeakMap,mx=new WeakMap,hx=new WeakMap,gx=new WeakMap,_x=class{constructor(e,t={box:`border-box`}){D(this,lx,{width:0,height:0}),D(this,ux,!1),D(this,dx,void 0),D(this,fx,void 0),D(this,px,void 0),D(this,mx,j(()=>(L(A(gx,this))?.(),this.getSize().width))),D(this,hx,j(()=>(L(A(gx,this))?.(),this.getSize().height))),D(this,gx,j(()=>{let e=cx(A(fx,this));if(e)return Dt(t=>{if(!A(px,this))return;let n=new(A(px,this)).ResizeObserver(e=>{k(ux,this,!0);for(let t of e){let e=A(dx,this).box===`content-box`?t.contentBoxSize:t.borderBoxSize,n=Array.isArray(e)?e:[e];A(lx,this).width=n.reduce((e,t)=>Math.max(e,t.inlineSize),0),A(lx,this).height=n.reduce((e,t)=>Math.max(e,t.blockSize),0)}t()});return n.observe(e),()=>{k(ux,this,!1),n.disconnect()}})})),k(px,this,t.window??_b),k(dx,this,t),k(fx,this,e),k(lx,this,{width:0,height:0})}calculateSize(){let e=cx(A(fx,this));if(!e||!A(px,this))return;let t=e.offsetWidth,n=e.offsetHeight;if(A(dx,this).box===`border-box`)return{width:t,height:n};let r=A(px,this).getComputedStyle(e),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),o=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),s=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth);return{width:t-i-o,height:n-a-s}}getSize(){return A(ux,this)?A(lx,this):this.calculateSize()??A(lx,this)}get current(){return L(A(gx,this))?.(),this.getSize()}get width(){return L(A(mx,this))}get height(){return L(A(hx,this))}};function vx(e){Rr(()=>()=>{e()})}function yx(e,t){return setTimeout(t,e)}function bx(e){Mi().then(e)}var xx=1,Sx=9,Cx=11;function wx(e){return Oy(e)&&e.nodeType===xx&&typeof e.nodeName==`string`}function Tx(e){return Oy(e)&&e.nodeType===Sx}function Ex(e){return Oy(e)&&e.constructor?.name===`VisualViewport`}function Dx(e){return Oy(e)&&e.nodeType!==void 0}function Ox(e){return Dx(e)&&e.nodeType===Cx&&`host`in e}function kx(e,t){if(!e||!t||!wx(e)||!wx(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Ox(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ax(e){return Tx(e)?e:Ex(e)?e.document:e?.ownerDocument??document}function jx(e){return Ox(e)?jx(e.host):Tx(e)?e.defaultView??window:wx(e)?e.ownerDocument?.defaultView??window:window}function Mx(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Nx=new WeakMap,Px=class{get root(){return L(A(Nx,this))}set root(e){N(A(Nx,this),e)}constructor(e){b(this,`element`,void 0),D(this,Nx,j(()=>this.element.current?this.element.current.getRootNode()??document:document)),b(this,`getDocument`,()=>Ax(this.root)),b(this,`getWindow`,()=>this.getDocument().defaultView??window),b(this,`getActiveElement`,()=>Mx(this.root)),b(this,`isActiveElement`,e=>e===this.getActiveElement()),b(this,`querySelector`,e=>this.root?this.root.querySelector(e):null),b(this,`querySelectorAll`,e=>this.root?this.root.querySelectorAll(e):[]),b(this,`setTimeout`,(e,t)=>this.getWindow().setTimeout(e,t)),b(this,`clearTimeout`,e=>this.getWindow().clearTimeout(e)),this.element=typeof e==`function`?$(e):e}getElementById(e){return this.root.getElementById(e)}};function Fx(e,t){return{[Ri()]:n=>Ny(e)?(e.current=n,Fi(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Fi(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e(null),t?.(null))})}}function Ix(e){return e?`true`:`false`}function Lx(e){return e?`open`:`closed`}function Rx(e){return e===`starting`?{"data-starting-style":``}:e===`ending`?{"data-ending-style":``}:{}}var zx=new WeakMap,Bx=new WeakMap,Vx=class{constructor(e){D(this,zx,void 0),D(this,Bx,void 0),b(this,`attrs`,void 0),k(zx,this,e.getVariant?e.getVariant():null),k(Bx,this,A(zx,this)?`data-${A(zx,this)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(e=>[e,this.getAttr(e)]))}getAttr(e,t){return t?`data-${t}-${e}`:`${A(Bx,this)}${e}`}selector(e,t){return`[${this.getAttr(e,t)}]`}};function Hx(e){let t=new Vx(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}var Ux=typeof document<`u`,Wx=Gx();function Gx(){return Ux&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Kx(e){return e instanceof HTMLElement}function qx(e){return e instanceof Element}function Jx(e){return e instanceof Element||e instanceof SVGElement}function Yx(e){return e.pointerType===`touch`}function Xx(e){return e!==null}var Zx=new WeakMap,Qx=new WeakMap,$x=new WeakMap,eS=new WeakMap,tS=new WeakSet,nS=class{constructor(e){kt(this,tS),D(this,Zx,void 0),D(this,Qx,null),D(this,$x,null),D(this,eS,0),k(Zx,this,e),vx(()=>O(tS,this,rS).call(this))}run(e){O(tS,this,rS).call(this);let t=A(Zx,this).ref.current;if(!t)return;if(typeof t.getAnimations!=`function`){O(tS,this,iS).call(this,e);return}let n=A(eS,this),r=()=>{n===A(eS,this)&&O(tS,this,iS).call(this,e)},i=()=>{if(n!==A(eS,this))return;let e=t.getAnimations();if(e.length===0){r();return}Promise.all(e.map(e=>e.finished)).then(()=>{r()}).catch(()=>{if(n===A(eS,this)){if(t.getAnimations().some(e=>e.pending||e.playState!==`finished`)){i();return}r()}})},a=()=>{k(Qx,this,window.requestAnimationFrame(()=>{k(Qx,this,null),i()}))};if(!A(Zx,this).afterTick.current){a();return}k(Qx,this,window.requestAnimationFrame(()=>{k(Qx,this,null);let e=`data-starting-style`;if(!t.hasAttribute(e)){a();return}k($x,this,new MutationObserver(()=>{n===A(eS,this)&&(t.hasAttribute(e)||(A($x,this)?.disconnect(),k($x,this,null),a()))})),A($x,this).observe(t,{attributes:!0,attributeFilter:[e]})}))}};function rS(){var e;A(Qx,this)!==null&&(window.cancelAnimationFrame(A(Qx,this)),k(Qx,this,null)),A($x,this)?.disconnect(),k($x,this,null),k(eS,this,(e=A(eS,this),e++,e))}function iS(e){let t=()=>{e()};A(Zx,this).afterTick?bx(t):t()}var aS=new WeakMap,oS=new WeakMap,sS=new WeakMap,cS=new WeakMap,lS=new WeakMap,uS=new WeakMap,dS=new WeakMap,fS=new WeakSet,pS=class{constructor(e){kt(this,fS),D(this,aS,void 0),D(this,oS,void 0),D(this,sS,void 0),D(this,cS,M(!1)),D(this,lS,M(void 0)),D(this,uS,!1),D(this,dS,null),k(aS,this,e),N(A(cS,this),e.open.current,!0),k(oS,this,e.enabled??!0),k(sS,this,new nS({ref:A(aS,this).ref,afterTick:A(aS,this).open})),vx(()=>O(fS,this,mS).call(this)),ox(()=>A(aS,this).open.current,e=>{if(!A(uS,this)){k(uS,this,!0);return}if(O(fS,this,mS).call(this),!e&&A(aS,this).shouldSkipExitAnimation?.()){N(A(cS,this),!1),N(A(lS,this),void 0),A(aS,this).onComplete?.();return}if(e&&N(A(cS,this),!0),N(A(lS,this),e?`starting`:`ending`,!0),e&&k(dS,this,window.requestAnimationFrame(()=>{k(dS,this,null),A(aS,this).open.current&&N(A(lS,this),void 0)})),!A(oS,this)){e||N(A(cS,this),!1),N(A(lS,this),void 0),A(aS,this).onComplete?.();return}A(sS,this).run(()=>{e===A(aS,this).open.current&&(A(aS,this).open.current||N(A(cS,this),!1),N(A(lS,this),void 0),A(aS,this).onComplete?.())})})}get shouldRender(){return L(A(cS,this))}get transitionStatus(){return L(A(lS,this))}};function mS(){A(dS,this)!==null&&(window.cancelAnimationFrame(A(dS,this)),k(dS,this,null))}function hS(){}function gS(e,t){return t===void 0?`bits-${e}`:`bits-${e}-${t}`}function _S(e,t){var n=da();ka(Or(n),()=>t.children,e=>{var n=da();Ba(Or(n),()=>t.children??p),B(e,n)}),B(e,n)}var vS=new rx(`BitsConfig`);function yS(){let e=new xS(null,{});return vS.getOr(e).opts}function bS(e){return vS.set(new xS(vS.getOr(null),e))}var xS=class{constructor(e,t){b(this,`opts`,void 0);let n=SS(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function SS(e,t){return n=>$(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function CS(e,t){return n=>{let r=yS();return $(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var wS=CS(e=>e.defaultPortalTo,`body`);function TS(e,t){it(t,!0);let n=wS(()=>t.to),r=rt(),i=j(a);function a(){if(!Ux||t.disabled)return null;let e=null;return e=typeof n.current==`string`?document.querySelector(n.current):n.current,e}let o;function s(){o&&(ya(o),o=null)}ox([()=>L(i),()=>t.disabled],([e,n])=>{if(!e||n){s();return}return o=ha(_S,{target:e,props:{children:t.children},context:r}),()=>{s()}});var c=da(),l=Or(c),u=e=>{var n=da();Ba(Or(n),()=>t.children??p),B(e,n)};H(l,e=>{t.disabled&&e(u)}),B(e,c),at()}var ES=class{constructor(e,t={bubbles:!0,cancelable:!0}){b(this,`eventName`,void 0),b(this,`options`,void 0),this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return $i(e,this.eventName,e=>{t(e)},n)}};function DS(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function OS(e,t){return e===t||e.contains(t)}function kS(e){return e?.ownerDocument??document}function AS(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var jS=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],MS=jS.join(`,`),NS=typeof Element>`u`,PS=NS?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,FS=!NS&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},IS=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):IS(e.parentNode))},LS=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},RS=function(e,t,n){if(IS(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(MS));return t&&PS.call(e,MS)&&r.unshift(e),r=r.filter(n),r},zS=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!IS(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=zS(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{PS.call(a,MS)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!IS(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=zS(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},BS=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},VS=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||LS(e))&&!BS(e)?0:e.tabIndex},HS=function(e,t){var n=VS(e);return n<0&&t&&!BS(e)?0:n},US=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},WS=function(e){return e.tagName===`INPUT`},GS=function(e){return WS(e)&&e.type===`hidden`},KS=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},qS=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},JS=function(e){if(!e.name)return!0;var t=e.form||FS(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=qS(r,e.form);return!i||i===e},YS=function(e){return WS(e)&&e.type===`radio`},XS=function(e){return YS(e)&&!JS(e)},ZS=function(e){var t=e&&FS(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=FS(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},QS=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},$S=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=PS.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(PS.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=FS(e);if(s&&!s.shadowRoot&&r(s)===!0)return QS(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(ZS(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return QS(e);return!1},eC=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return PS.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},tC=function(e,t){return!(t.disabled||GS(t)||$S(t,e)||KS(t)||eC(t))},nC=function(e,t){return!(XS(t)||VS(t)<0||!tC(e,t))},rC=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},iC=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=HS(a,i),s=i?iC(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(US).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},aC=function(e,t){return t=t||{},iC(t.getShadowRoot?zS([e],t.includeContainer,{filter:nC.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:rC}):RS(e,t.includeContainer,nC.bind(null,t)))},oC=function(e,t){return t=t||{},t.getShadowRoot?zS([e],t.includeContainer,{filter:tC.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):RS(e,t.includeContainer,tC.bind(null,t))},sC=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return PS.call(e,MS)!==!1&&nC(t,e)},cC=jS.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),lC=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return PS.call(e,cC)!==!1&&tC(t,e)},uC=`data-context-menu-trigger`,dC=`data-context-menu-content`;new rx(`Menu.Root`),new rx(`Menu.Root | Menu.Sub`),new rx(`Menu.Content`),new rx(`Menu.Group | Menu.RadioGroup`),new rx(`Menu.RadioGroup`),new rx(`Menu.CheckboxGroup`),new ES(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),Hx({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]});var fC;(fC=globalThis).bitsDismissableLayers??(fC.bitsDismissableLayers=new Map);var pC=new WeakMap,mC=new WeakMap,hC=new WeakMap,gC=new WeakMap,_C=new WeakMap,vC=new WeakMap,yC=new WeakMap,bC=new WeakMap,xC=new WeakMap,SC=new WeakSet,CC=new WeakMap,wC=new WeakMap,TC=new WeakMap,EC=new WeakMap,DC=new WeakMap,OC=new WeakMap,kC=new WeakMap,AC=new WeakMap,jC=new WeakMap,MC=class e{static create(t){return new e(t)}constructor(e){kt(this,SC),b(this,`opts`,void 0),D(this,pC,void 0),D(this,mC,void 0),D(this,hC,{pointerdown:!1}),D(this,gC,!1),D(this,_C,!1),D(this,vC,void 0),D(this,yC,void 0),D(this,bC,hS),D(this,xC,e=>{e.defaultPrevented||this.opts.ref.current&&bx(()=>{!this.opts.ref.current||A(OC,this).call(this,e.target)||e.target&&!A(_C,this)&&A(yC,this).current?.(e)})}),D(this,CC,e=>{let t=e;t.defaultPrevented&&(t=RC(e)),A(pC,this).current(e)}),D(this,wC,DS(e=>{if(!this.opts.ref.current){A(bC,this).call(this);return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||LC(e,this.opts.ref.current);if(!A(gC,this)||O(SC,this,PC).call(this)||!t){A(bC,this).call(this);return}let n=e;if(n.defaultPrevented&&(n=RC(n)),A(mC,this).current!==`close`&&A(mC,this).current!==`defer-otherwise-close`){A(bC,this).call(this);return}e.pointerType===`touch`?(A(bC,this).call(this),k(bC,this,$i(A(vC,this),`click`,A(CC,this),{once:!0}))):A(pC,this).current(n)},10)),D(this,TC,e=>{A(hC,this)[e.type]=!0}),D(this,EC,e=>{A(hC,this)[e.type]=!1}),D(this,DC,()=>{this.opts.ref.current&&k(gC,this,IC(this.opts.ref.current))}),D(this,OC,e=>this.opts.ref.current?OS(this.opts.ref.current,e):!1),D(this,kC,DS(()=>{for(let e in A(hC,this))A(hC,this)[e]=!1;k(gC,this,!1)},20)),D(this,AC,()=>{k(_C,this,!0)}),D(this,jC,()=>{k(_C,this,!1)}),b(this,`props`,{onfocuscapture:A(AC,this),onblurcapture:A(jC,this)}),this.opts=e,k(mC,this,e.interactOutsideBehavior),k(pC,this,e.onInteractOutside),k(yC,this,e.onFocusOutside),Rr(()=>{k(vC,this,kS(this.opts.ref.current))});let t=hS,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),A(kC,this).call(this),globalThis.bitsDismissableLayers.delete(this),A(wC,this).destroy(),t()};ox([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return i(),n=yx(1,()=>{n=null,!(r||!this.opts.ref.current)&&(globalThis.bitsDismissableLayers.set(this,A(mC,this)),t(),t=O(SC,this,NC).call(this))}),a}),vx(()=>{r=!0,i(),A(kC,this).destroy(),globalThis.bitsDismissableLayers.delete(this),A(wC,this).destroy(),A(bC,this).call(this),t()})}};function NC(){return lb($i(A(vC,this),`pointerdown`,lb(A(TC,this),A(DC,this)),{capture:!0}),$i(A(vC,this),`pointerdown`,lb(A(EC,this),A(wC,this))),$i(A(vC,this),`focusin`,A(xC,this)))}function PC(){return Object.values(A(hC,this)).some(Boolean)}function FC(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function IC(e){let t=[...globalThis.bitsDismissableLayers],n=FC(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function LC(e,t){let n=e.target;if(!Jx(n))return!1;let r=!!n.closest(`[${uC}]`),i=!!t.closest(`[${dC}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:kS(n).documentElement.contains(n)&&!OS(t,n)&&AS(e,t)}function RC(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function zC(e,t){it(t,!0);let n=J(t,`interactOutsideBehavior`,3,`close`),r=J(t,`onInteractOutside`,3,hS),i=J(t,`onFocusOutside`,3,hS),a=J(t,`isValidEvent`,3,()=>!1),o=MC.create({id:$(()=>t.id),interactOutsideBehavior:$(()=>n()),onInteractOutside:$(()=>r()),enabled:$(()=>t.enabled),onFocusOutside:$(()=>i()),isValidEvent:$(()=>a()),ref:t.ref});var s=da();Ba(Or(s),()=>t.children??p,()=>({props:o.props})),B(e,s),at()}var BC;(BC=globalThis).bitsEscapeLayers??(BC.bitsEscapeLayers=new Map);var VC=new WeakMap,HC=new WeakMap,UC=class e{static create(t){return new e(t)}constructor(e){b(this,`opts`,void 0),b(this,`domContext`,void 0),D(this,VC,()=>$i(this.domContext.getDocument(),`keydown`,A(HC,this),{passive:!1})),D(this,HC,e=>{if(e.key!==`Escape`||!WC(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}),this.opts=e,this.domContext=new Px(this.opts.ref);let t=hS;ox(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=A(VC,this).call(this)),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}};function WC(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function GC(e,t){it(t,!0);let n=J(t,`escapeKeydownBehavior`,3,`close`),r=J(t,`onEscapeKeydown`,3,hS);UC.create({escapeKeydownBehavior:$(()=>n()),onEscapeKeydown:$(()=>r()),enabled:$(()=>t.enabled),ref:t.ref});var i=da();Ba(Or(i),()=>t.children??p),B(e,i),at()}var KC=new WeakMap,qC=new WeakMap,JC=new WeakMap,YC=class e{constructor(){D(this,KC,Fy([])),D(this,qC,new WeakMap),D(this,JC,new WeakMap)}static getInstance(){return this.instance||(this.instance=new e),this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&A(JC,this).set(e,n),A(KC,this).current=A(KC,this).current.filter(t=>t!==e),A(KC,this).current.unshift(e)}unregister(e){A(KC,this).current=A(KC,this).current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return A(KC,this).current[0]}setFocusMemory(e,t){A(qC,this).set(e,t)}getFocusMemory(e){return A(qC,this).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){A(JC,this).set(e,t)}getPreFocusMemory(e){return A(JC,this).get(e)}clearPreFocusMemory(e){A(JC,this).delete(e)}};b(YC,`instance`,void 0);var XC=new WeakMap,ZC=new WeakMap,QC=new WeakMap,$C=new WeakMap,ew=new WeakMap,tw=new WeakSet,nw=class e{constructor(e){kt(this,tw),D(this,XC,!1),D(this,ZC,null),D(this,QC,YC.getInstance()),D(this,$C,[]),D(this,ew,void 0),k(ew,this,e)}get paused(){return A(XC,this)}pause(){k(XC,this,!0)}resume(){k(XC,this,!1)}mount(e){A(ZC,this)&&this.unmount(),k(ZC,this,e),A(QC,this).register(this),O(tw,this,ow).call(this),O(tw,this,iw).call(this)}unmount(){A(ZC,this)&&(O(tw,this,rw).call(this),O(tw,this,aw).call(this),A(QC,this).unregister(this),A(QC,this).clearPreFocusMemory(this),k(ZC,this,null))}static use(t){let n=null;return ox([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||(n=new e(t)),n.mount(r)):n&&(n.unmount(),n=null)}),vx(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function rw(){for(let e of A($C,this))e();k($C,this,[])}function iw(){if(!A(ZC,this))return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});A(ew,this).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!A(ZC,this))return;let e=O(tw,this,cw).call(this);e?(e.focus(),A(QC,this).setFocusMemory(this,e)):A(ZC,this).focus()})}function aw(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(A(ew,this).onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=A(QC,this).getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}function ow(){if(!A(ZC,this)||!A(ew,this).trap.current)return;let e=A(ZC,this),t=e.ownerDocument;A($C,this).push($i(t,`focusin`,t=>{if(A(XC,this)||!A(QC,this).isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))A(QC,this).setFocusMemory(this,n);else{let n=A(QC,this).getFocusMemory(this);if(n&&e.contains(n)&&lC(n))t.preventDefault(),n.focus();else{let t=O(tw,this,cw).call(this),n=O(tw,this,lw).call(this)[0];(t||n||e).focus()}}}},{capture:!0}),$i(e,`keydown`,e=>{if(!A(ew,this).loop||A(XC,this)||e.key!==`Tab`||!A(QC,this).isActiveScope(this))return;let n=O(tw,this,sw).call(this);if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=A(QC,this).getFocusMemory(this);if(t&&!e.contains(t)){let t=O(tw,this,cw).call(this),n=O(tw,this,lw).call(this)[0],r=t||n;r?(r.focus(),A(QC,this).setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),A($C,this).push(()=>n.disconnect())}function sw(){return A(ZC,this)?aC(A(ZC,this),{includeContainer:!1,getShadowRoot:!0}):[]}function cw(){return O(tw,this,sw).call(this)[0]||null}function lw(){return A(ZC,this)?oC(A(ZC,this),{includeContainer:!1,getShadowRoot:!0}):[]}function uw(e,t){it(t,!0);let n=J(t,`enabled`,3,!1),r=J(t,`trapFocus`,3,!1),i=J(t,`loop`,3,!1),a=J(t,`onCloseAutoFocus`,3,hS),o=J(t,`onOpenAutoFocus`,3,hS),s=nw.use({enabled:$(()=>n()),trap:$(()=>r()),loop:i(),onCloseAutoFocus:$(()=>a()),onOpenAutoFocus:$(()=>o()),ref:t.ref});var c=da();Ba(Or(c),()=>t.focusScope??p,()=>({props:s.props})),B(e,c),at()}var dw,fw=()=>{};(dw=globalThis).bitsTextSelectionLayers??(dw.bitsTextSelectionLayers=new Map);var pw=new WeakMap,mw=new WeakMap,hw=new WeakMap,gw=new WeakMap,_w=new WeakSet,vw=new WeakMap,yw=new WeakMap,bw=new WeakMap,xw=class e{static create(t){return new e(t)}constructor(e){kt(this,_w),b(this,`opts`,void 0),b(this,`domContext`,void 0),D(this,pw,hS),D(this,mw,!1),D(this,hw,fw),D(this,gw,fw),D(this,vw,e=>{A(gw,this).call(this,e)}),D(this,yw,e=>{if(!A(mw,this))return;let t=this.opts.ref.current,n=e.target;!Kx(t)||!Kx(n)||!Ew(this)||!kx(t,n)||(A(hw,this).call(this,e),!e.defaultPrevented&&k(pw,this,ww(t,this.domContext.getDocument().body)))}),D(this,bw,()=>{A(pw,this).call(this),k(pw,this,hS)}),this.opts=e,this.domContext=new Px(e.ref);let t=hS;ox(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(k(mw,this,e),k(hw,this,n),k(gw,this,r),e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=O(_w,this,Sw).call(this)),()=>{k(mw,this,!1),t(),A(bw,this).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}};function Sw(){return lb($i(this.domContext.getDocument(),`pointerdown`,A(yw,this)),$i(this.domContext.getDocument(),`pointerup`,Iy(A(bw,this),A(vw,this))))}var Cw=e=>e.style.userSelect||e.style.webkitUserSelect;function ww(e,t){let n=Cw(t),r=Cw(e);return Tw(t,`none`),Tw(e,`text`),()=>{Tw(t,n),Tw(e,r)}}function Tw(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Ew(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function Dw(e,t){it(t,!0);let n=J(t,`preventOverflowTextSelection`,3,!0),r=J(t,`onPointerDown`,3,hS),i=J(t,`onPointerUp`,3,hS);xw.create({id:$(()=>t.id),onPointerDown:$(()=>r()),onPointerUp:$(()=>i()),enabled:$(()=>t.enabled&&n()),ref:t.ref});var a=da();Ba(Or(a),()=>t.children??p),B(e,a),at()}var Ow;(Ow=globalThis).bitsIdCounter??(Ow.bitsIdCounter={current:0});function kw(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var Aw=new WeakMap,jw=new WeakMap,Mw=new WeakMap,Nw=new WeakMap,Pw=new WeakSet,Fw=class{constructor(e){kt(this,Pw),D(this,Aw,void 0),D(this,jw,0),D(this,Mw,M()),D(this,Nw,void 0),k(Aw,this,e)}get(...e){return k(jw,this,A(jw,this)+1),L(A(Mw,this))===void 0&&k(Nw,this,Vr(()=>{N(A(Mw,this),A(Aw,this).call(this,...e),!0)})),Rr(()=>()=>{O(Pw,this,Iw).call(this)}),L(A(Mw,this))}};function Iw(){k(jw,this,A(jw,this)-1),A(Nw,this)&&A(jw,this)<=0&&(A(Nw,this).call(this),N(A(Mw,this),void 0),k(Nw,this,void 0))}var Lw=new Yb,Rw=M(null),zw=null,Bw=null,Vw=!1,Hw=$(()=>{for(let e of Lw.values())if(e)return!0;return!1}),Uw=null,Ww=new Fw(()=>{function e(){document.body.setAttribute(`style`,L(Rw)??``),document.body.style.removeProperty(`--scrollbar-width`),Wx&&zw?.(),N(Rw,null)}function t(){Bw!==null&&(window.clearTimeout(Bw),Bw=null)}function n(e,n){t(),Vw=!0,Uw=Date.now();let r=Uw,i=()=>{Bw=null,Uw===r&&(Xw(Lw)?Vw=!1:(Vw=!1,n()))},a=e===null?24:e;Bw=window.setTimeout(i,a)}function r(){L(Rw)===null&&Lw.size===0&&!Vw&&N(Rw,document.body.getAttribute(`style`),!0)}return ox(()=>Hw.current,()=>{if(!Hw.current)return;r(),Vw=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,Wx&&(zw=$i(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),bx(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),vx(()=>()=>{zw?.()}),{get lockMap(){return Lw},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),Gw=new WeakMap,Kw=new WeakMap,qw=new WeakMap,Jw=new WeakMap,Yw=class{constructor(e,t=()=>null){D(this,Gw,kw()),D(this,Kw,void 0),D(this,qw,()=>null),D(this,Jw,void 0),b(this,`locked`,void 0),k(Kw,this,e),k(qw,this,t),k(Jw,this,Ww.get()),A(Jw,this)&&(A(Jw,this).cancelPendingCleanup(),A(Jw,this).ensureInitialStyleCaptured(),A(Jw,this).lockMap.set(A(Gw,this),A(Kw,this)??!1),this.locked=$(()=>A(Jw,this).lockMap.get(A(Gw,this))??!1,e=>A(Jw,this).lockMap.set(A(Gw,this),e)),vx(()=>{if(A(Jw,this).lockMap.delete(A(Gw,this)),Xw(A(Jw,this).lockMap))return;let e=A(qw,this).call(this);A(Jw,this).scheduleCleanupIfNoNewLocks(e,()=>{A(Jw,this).resetBodyStyle()})}))}};function Xw(e){for(let[t,n]of e)if(n)return!0;return!1}function Zw(e,t){it(t,!0);let n=J(t,`preventScroll`,3,!0),r=J(t,`restoreScrollDelay`,3,null);n()&&new Yw(n(),()=>r()),at()}function Qw(e,t){it(t,!0),bS({defaultPortalTo:$(()=>t.defaultPortalTo),defaultLocale:$(()=>t.defaultLocale)});var n=da();Ba(Or(n),()=>t.children??p),B(e,n),at()}var $w=[`top`,`right`,`bottom`,`left`],eT=Math.min,tT=Math.max,nT=Math.round,rT=Math.floor,iT=e=>({x:e,y:e}),aT={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function oT(e,t,n){return tT(e,eT(t,n))}function sT(e,t){return typeof e==`function`?e(t):e}function cT(e){return e.split(`-`)[0]}function lT(e){return e.split(`-`)[1]}function uT(e){return e===`x`?`y`:`x`}function dT(e){return e===`y`?`height`:`width`}function fT(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function pT(e){return uT(fT(e))}function mT(e,t,n){n===void 0&&(n=!1);let r=lT(e),i=pT(e),a=dT(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=CT(o)),[o,CT(o)]}function hT(e){let t=CT(e);return[gT(e),t,gT(t)]}function gT(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var _T=[`left`,`right`],vT=[`right`,`left`],yT=[`top`,`bottom`],bT=[`bottom`,`top`];function xT(e,t,n){switch(e){case`top`:case`bottom`:return n?t?vT:_T:t?_T:vT;case`left`:case`right`:return t?yT:bT;default:return[]}}function ST(e,t,n,r){let i=lT(e),a=xT(cT(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(gT)))),a}function CT(e){let t=cT(e);return aT[t]+e.slice(t.length)}function wT(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function TT(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:wT(e)}function ET(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function DT(e,t,n){let{reference:r,floating:i}=e,a=fT(t),o=pT(t),s=dT(o),c=cT(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=lT(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function OT(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=sT(t,e),p=TT(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ET(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ET(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var kT=50,AT=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:OT},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=DT(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<kT&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=DT(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},jT=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=sT(e,t)||{};if(l==null)return{};let d=TT(u),f={x:n,y:r},p=pT(i),m=dT(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,ee=C/2-h[m]/2-1,te=eT(d[_],ee),ne=eT(d[v],ee),re=C-h[m]-ne,ie=C/2-h[m]/2+w,ae=oT(te,ie,re),oe=!c.arrow&&lT(i)!=null&&ie!==ae&&a.reference[m]/2-(ie<te?te:ne)-h[m]/2<0,se=oe?ie<te?ie-te:ie-re:0;return{[p]:f[p]+se,data:{[p]:ae,centerOffset:ie-ae-se,...oe&&{alignmentOffset:se}},reset:oe}}}),MT=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=sT(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=cT(r),_=fT(o),v=cT(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[CT(o)]:hT(o)),x=p!==`none`;!d&&x&&b.push(...ST(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],ee=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=mT(r,a,y);w.push(C[e[0]],C[e[1]])}if(ee=[...ee,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===fT(t)||ee.every(e=>fT(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:ee},reset:{placement:t}};let n=ee.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=ee.filter(e=>{if(x){let t=fT(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function NT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function PT(e){return $w.some(t=>e[t]>=0)}var FT=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=sT(e,t);switch(i){case`referenceHidden`:{let e=NT(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:PT(e)}}}case`escaped`:{let e=NT(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:PT(e)}}}default:return{}}}}},IT=new Set([`left`,`top`]);async function LT(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=cT(n),s=lT(n),c=fT(n)===`y`,l=IT.has(o)?-1:1,u=a&&c?-1:1,d=sT(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var RT=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await LT(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},zT=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=sT(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=fT(i),p=uT(f),m=u[p],h=u[f],g=(e,t)=>oT(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},BT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=sT(e,t),u={x:n,y:r},d=fT(i),f=uT(d),p=u[f],m=u[d],h=sT(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=IT.has(cT(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},VT=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=sT(e,t),c=await i.detectOverflow(t,s),l=cT(n),u=lT(n),d=fT(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=eT(p-c[m],g),y=eT(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*tT(c.left,c.right):S=p-2*tT(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function HT(){return typeof window<`u`}function UT(e){return KT(e)?(e.nodeName||``).toLowerCase():`#document`}function WT(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function GT(e){return((KT(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function KT(e){return HT()?e instanceof Node||e instanceof WT(e).Node:!1}function qT(e){return HT()?e instanceof Element||e instanceof WT(e).Element:!1}function JT(e){return HT()?e instanceof HTMLElement||e instanceof WT(e).HTMLElement:!1}function YT(e){return!HT()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof WT(e).ShadowRoot}function XT(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=sE(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ZT(e){return/^(table|td|th)$/.test(UT(e))}function QT(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var $T=/transform|translate|scale|rotate|perspective|filter/,eE=/paint|layout|strict|content/,tE=e=>!!e&&e!==`none`,nE;function rE(e){let t=qT(e)?sE(e):e;return tE(t.transform)||tE(t.translate)||tE(t.scale)||tE(t.rotate)||tE(t.perspective)||!aE()&&(tE(t.backdropFilter)||tE(t.filter))||$T.test(t.willChange||``)||eE.test(t.contain||``)}function iE(e){let t=lE(e);for(;JT(t)&&!oE(t);){if(rE(t))return t;if(QT(t))return null;t=lE(t)}return null}function aE(){return nE??(nE=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`)),nE}function oE(e){return/^(html|body|#document)$/.test(UT(e))}function sE(e){return WT(e).getComputedStyle(e)}function cE(e){return qT(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lE(e){if(UT(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||YT(e)&&e.host||GT(e);return YT(t)?t.host:t}function uE(e){let t=lE(e);return oE(t)?(e.ownerDocument||e).body:JT(t)&&XT(t)?t:uE(t)}function dE(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=uE(e),i=r===e.ownerDocument?.body,a=WT(r);if(i){let e=fE(a);return t.concat(a,a.visualViewport||[],XT(r)?r:[],e&&n?dE(e):[])}return t.concat(r,dE(r,[],n))}function fE(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pE(e){let t=sE(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=JT(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=nT(n)!==a||nT(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function mE(e){return qT(e)?e:e.contextElement}function hE(e){let t=mE(e);if(!JT(t))return iT(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=pE(t),o=(a?nT(n.width):n.width)/r,s=(a?nT(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var gE=iT(0);function _E(e){let t=WT(e);return!aE()||!t.visualViewport?gE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vE(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===WT(e)}function yE(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=mE(e),o=iT(1);t&&(r?qT(r)&&(o=hE(r)):o=hE(e));let s=vE(a,n,r)?_E(a):iT(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=WT(a),t=qT(r)?WT(r):r,n=e,i=fE(n);for(;i&&t!==n;){let e=hE(i),t=i.getBoundingClientRect(),r=sE(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=WT(i),i=fE(n)}}return ET({width:u,height:d,x:c,y:l})}function bE(e,t){let n=cE(e).scrollLeft;return t?t.left+n:yE(GT(e)).left+n}function xE(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-bE(e,n),y:n.top+t.scrollTop}}function SE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=GT(r),s=t?QT(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=iT(1),u=iT(0),d=JT(r);if((d||!a)&&((UT(r)!==`body`||XT(o))&&(c=cE(r)),d)){let e=yE(r);l=hE(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?xE(o,c):iT(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function CE(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function wE(e){let t=cE(e),n=e.ownerDocument.body,r=tT(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=tT(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+bE(e),o=-t.scrollTop;return sE(n).direction===`rtl`&&(a+=tT(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var TE=25;function EE(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=WT(e),a=GT(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!aE()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(bE(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=TE&&(s-=o)}return{width:s,height:c,x:l,y:u}}function DE(e,t){let n=yE(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=hE(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function OE(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=EE(e,n,t);else if(t===`document`)r=wE(GT(e));else if(qT(t))r=DE(t,n);else{let n=_E(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ET(r)}function kE(e,t){let n=t.get(e);if(n)return n;let r=dE(e,[],!1).filter(e=>qT(e)&&UT(e)!==`body`),i=null,a=sE(e).position===`fixed`,o=a?lE(e):e;for(;qT(o)&&!oE(o);){let e=sE(o),t=rE(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=lE(o)}return t.set(e,r),r}function AE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?QT(t)?[]:kE(t,this._c):[].concat(n),r],o=OE(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=OE(t,a[e],i);s=tT(n.top,s),c=eT(n.right,c),l=eT(n.bottom,l),u=tT(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function jE(e){let{width:t,height:n}=pE(e);return{width:t,height:n}}function ME(e,t,n){let r=JT(t),i=GT(t),a=n===`fixed`,o=yE(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=iT(0);if((r||!a)&&((UT(t)!==`body`||XT(i))&&(s=cE(t)),r)){let e=yE(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=bE(i));let l=i&&!r&&!a?xE(i,s):iT(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function NE(e){return sE(e).position===`static`}function PE(e,t){if(!JT(e)||sE(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return GT(e)===n&&(n=n.ownerDocument.body),n}function FE(e,t){let n=WT(e);if(QT(e))return n;if(!JT(e)){let t=lE(e);for(;t&&!oE(t);){if(qT(t)&&!NE(t))return t;t=lE(t)}return n}let r=PE(e,t);for(;r&&ZT(r)&&NE(r);)r=PE(r,t);return r&&oE(r)&&NE(r)&&!rE(r)?n:r||iE(e)||n}var IE=async function(e){let t=this.getOffsetParent||FE,n=this.getDimensions,r=await n(e.floating);return{reference:ME(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function LE(e){return sE(e).direction===`rtl`}var RE={convertOffsetParentRelativeRectToViewportRelativeRect:SE,getDocumentElement:GT,getClippingRect:AE,getOffsetParent:FE,getElementRects:IE,getClientRects:CE,getDimensions:jE,getScale:hE,isElement:qT,isRTL:LE};function zE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function BE(e,t,n){let r=null,i,a=GT(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=rT(d),h=rT(a.clientWidth-(u+f)),g=rT(a.clientHeight-(d+p)),_=rT(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:tT(0,eT(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!zE(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=WT(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function VE(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=mE(e),u=i||a?[...l?dE(l):[],...t?dE(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?BE(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?yE(e):null;c&&g();function g(){let t=yE(e);h&&!zE(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var HE=RT,UE=zT,WE=MT,GE=VT,KE=FT,qE=jT,JE=BT,YE=(e,t,n)=>{let r=new Map,i=n??{},a={...RE,...i.platform,_c:r};return AT(e,t,{...i,platform:a})};function XE(e){return typeof e==`function`?e():e}function ZE(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function QE(e,t){let n=ZE(e);return Math.round(t*n)/n}function $E(e){return{[`--bits-${e}-content-transform-origin`]:`var(--bits-floating-transform-origin)`,[`--bits-${e}-content-available-width`]:`var(--bits-floating-available-width)`,[`--bits-${e}-content-available-height`]:`var(--bits-floating-available-height)`,[`--bits-${e}-anchor-width`]:`var(--bits-floating-anchor-width)`,[`--bits-${e}-anchor-height`]:`var(--bits-floating-anchor-height)`}}function eD(e){let t=e.whileElementsMounted,n=j(()=>XE(e.open)??!0),r=j(()=>XE(e.middleware)),i=j(()=>XE(e.transform)??!0),a=j(()=>XE(e.placement)??`bottom`),o=j(()=>XE(e.strategy)??`absolute`),s=j(()=>XE(e.sideOffset)??0),c=j(()=>XE(e.alignOffset)??0),l=e.reference,u=M(0),d=M(0),f=Fy(null),p=M(_r(L(o))),m=M(_r(L(a))),h=M(_r({})),g=M(!1),_=!1,v=0,y=j(()=>{let e=f.current?QE(f.current,L(u)):L(u),t=f.current?QE(f.current,L(d)):L(d);return L(i)?{position:L(p),left:`0`,top:`0`,transform:`translate(${e}px, ${t}px)`,...f.current&&ZE(f.current)>=1.5&&{willChange:`transform`}}:{position:L(p),left:`${e}px`,top:`${t}px`}}),b;function x(){if(l.current===null||f.current===null)return;let e=l.current,t=f.current,i=++v;YE(e,t,{middleware:L(r),placement:L(a),strategy:L(o)}).then(r=>{if(i===v&&l.current===e&&f.current===t){if(tD(e)){N(h,{...L(h),hide:{...L(h).hide,referenceHidden:!0}},!0);return}if(!L(n)&&L(u)!==0&&L(d)!==0){let e=Math.max(Math.abs(L(s)),Math.abs(L(c)),15);if(r.x<=e&&r.y<=e)return}N(u,r.x,!0),N(d,r.y,!0),N(p,r.strategy,!0),N(m,r.placement,!0),N(h,r.middlewareData,!0),N(g,!0)}})}function S(){typeof b==`function`&&(b(),b=void 0),v++}function C(){if(S(),t===void 0){x();return}L(n)&&l.current!==null&&f.current!==null&&(b=t(l.current,f.current,x))}function w(){!L(n)&&f.current===null&&N(g,!1)}function ee(){return[L(r),L(a),L(o),L(s),L(c),L(n)]}return Rr(()=>{t===void 0&&L(n)&&x()}),Rr(C),Rr(()=>{if(t!==void 0){if(ee(),!L(n)){_=!1;return}if(!L(g)){_=!1;return}if(!_){_=!0;return}x()}}),Rr(w),Rr(()=>S),{floating:f,reference:l,get strategy(){return L(p)},get placement(){return L(m)},get middlewareData(){return L(h)},get isPositioned(){return L(g)},get floatingStyles(){return L(y)},get update(){return x}}}function tD(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}var nD={top:`bottom`,right:`left`,bottom:`top`,left:`right`},rD=new rx(`Floating.Root`),iD=new rx(`Floating.Content`),aD=new rx(`Floating.Root`),oD=class e{static create(t=!1){return t?aD.set(new e):rD.set(new e)}constructor(){b(this,`anchorNode`,Fy(null)),b(this,`customAnchorNode`,Fy(null)),b(this,`triggerNode`,Fy(null)),Rr(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current==`string`?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}},sD=new WeakMap,cD=new WeakMap,lD=new WeakMap,uD=new WeakMap,dD=new WeakMap,fD=new WeakMap,pD=new WeakMap,mD=new WeakMap,hD=new WeakMap,gD=new WeakMap,_D=new WeakMap,vD=new WeakMap,yD=new WeakMap,bD=new WeakMap,xD=new WeakMap,SD=new WeakMap,CD=new WeakMap,wD=new WeakMap,TD=new WeakMap,ED=new WeakMap,DD=new WeakMap,OD=new WeakMap,kD=new WeakMap,AD=new WeakMap,jD=class e{static create(t,n=!1){return n?iD.set(new e(t,aD.get())):iD.set(new e(t,rD.get()))}get hasExplicitBoundaries(){return L(A(mD,this))}set hasExplicitBoundaries(e){N(A(mD,this),e)}get detectOverflowOptions(){return L(A(hD,this))}set detectOverflowOptions(e){N(A(hD,this),e)}get middleware(){return L(A(bD,this))}set middleware(e){N(A(bD,this),e)}get placedSide(){return L(A(xD,this))}set placedSide(e){N(A(xD,this),e)}get placedAlign(){return L(A(SD,this))}set placedAlign(e){N(A(SD,this),e)}get arrowX(){return L(A(CD,this))}set arrowX(e){N(A(CD,this),e)}get arrowY(){return L(A(wD,this))}set arrowY(e){N(A(wD,this),e)}get cannotCenterArrow(){return L(A(TD,this))}set cannotCenterArrow(e){N(A(TD,this),e)}get contentZIndex(){return L(A(ED,this))}set contentZIndex(e){N(A(ED,this),e,!0)}get arrowBaseSide(){return L(A(DD,this))}set arrowBaseSide(e){N(A(DD,this),e)}get wrapperProps(){return L(A(OD,this))}set wrapperProps(e){N(A(OD,this),e)}get props(){return L(A(kD,this))}set props(e){N(A(kD,this),e)}get arrowStyle(){return L(A(AD,this))}set arrowStyle(e){N(A(AD,this),e)}constructor(e,t){b(this,`opts`,void 0),b(this,`root`,void 0),b(this,`contentRef`,Fy(null)),b(this,`wrapperRef`,Fy(null)),b(this,`arrowRef`,Fy(null)),b(this,`contentAttachment`,Fx(this.contentRef)),b(this,`wrapperAttachment`,Fx(this.wrapperRef)),b(this,`arrowAttachment`,Fx(this.arrowRef)),b(this,`arrowId`,Fy(kw())),D(this,sD,j(()=>{if(typeof this.opts.style==`string`)return cb(this.opts.style);if(!this.opts.style)return{}})),D(this,cD,void 0),D(this,lD,new _x(()=>this.arrowRef.current??void 0)),D(this,uD,j(()=>A(lD,this)?.width??0)),D(this,dD,j(()=>A(lD,this)?.height??0)),D(this,fD,j(()=>this.opts.side?.current+(this.opts.align.current===`center`?``:`-${this.opts.align.current}`))),D(this,pD,j(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current])),D(this,mD,j(()=>L(A(pD,this)).length>0)),D(this,hD,j(()=>({padding:this.opts.collisionPadding.current,boundary:L(A(pD,this)).filter(Xx),altBoundary:this.hasExplicitBoundaries}))),D(this,gD,M(void 0)),D(this,_D,M(void 0)),D(this,vD,M(void 0)),D(this,yD,M(void 0)),D(this,bD,j(()=>[HE({mainAxis:this.opts.sideOffset.current+L(A(dD,this)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&UE({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current===`partial`?JE():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&WE({...this.detectOverflowOptions}),GE({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{let{width:r,height:i}=e.reference;N(A(gD,this),t,!0),N(A(_D,this),n,!0),N(A(vD,this),r,!0),N(A(yD,this),i,!0)}}),this.arrowRef.current&&qE({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ND({arrowWidth:L(A(uD,this)),arrowHeight:L(A(dD,this))}),this.opts.hideWhenDetached.current&&KE({strategy:`referenceHidden`,...this.detectOverflowOptions})].filter(Boolean))),b(this,`floating`,void 0),D(this,xD,j(()=>FD(this.floating.placement))),D(this,SD,j(()=>ID(this.floating.placement))),D(this,CD,j(()=>this.floating.middlewareData.arrow?.x??0)),D(this,wD,j(()=>this.floating.middlewareData.arrow?.y??0)),D(this,TD,j(()=>this.floating.middlewareData.arrow?.centerOffset!==0)),D(this,ED,M()),D(this,DD,j(()=>nD[this.placedSide])),D(this,OD,j(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":``,style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${L(A(gD,this))}px`,"--bits-floating-available-height":`${L(A(_D,this))}px`,"--bits-floating-anchor-width":`${L(A(vD,this))}px`,"--bits-floating-anchor-height":`${L(A(yD,this))}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:`hidden`,"pointer-events":`none`},...L(A(sD,this))},dir:this.opts.dir.current,...this.wrapperAttachment}))),D(this,kD,j(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:pb({...L(A(sD,this))}),...this.contentAttachment}))),D(this,AD,j(()=>({position:`absolute`,left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[this.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[this.placedSide],visibility:this.cannotCenterArrow?`hidden`:void 0}))),this.opts=e,this.root=t,k(cD,this,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ox(()=>e.customAnchor.current,e=>{this.root.customAnchorNode.current=e}),this.floating=eD({strategy:()=>this.opts.strategy.current,placement:()=>L(A(fD,this)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...e)=>VE(...e,{animationFrame:A(cD,this)?.current===`always`}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Rr(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),ox(()=>this.contentRef.current,e=>{if(!e||!this.opts.enabled.current)return;let t=jx(e),n=t.requestAnimationFrame(()=>{if(this.contentRef.current!==e||!this.opts.enabled.current)return;let n=t.getComputedStyle(e).zIndex;n!==this.contentZIndex&&(this.contentZIndex=n)});return()=>{t.cancelAnimationFrame(n)}}),Rr(()=>{this.floating.floating.current=this.wrapperRef.current})}},MD=class e{static create(t,n=!1){return n?new e(t,aD.get()):new e(t,rD.get())}constructor(e,t){b(this,`opts`,void 0),b(this,`root`,void 0),this.opts=e,this.root=t,t.triggerNode=e.virtualEl&&e.virtualEl.current?Py(e.virtualEl.current):e.ref}};function ND(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=PD(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}}function PD(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function FD(e){return PD(e)[0]}function ID(e){return PD(e)[1]}function LD(e,t){it(t,!0);let n=J(t,`tooltip`,3,!1);oD.create(n());var r=da();Ba(Or(r),()=>t.children??p),B(e,r),at()}function RD(e,t){it(t,!0);let n=J(t,`tooltip`,3,!1);MD.create({id:$(()=>t.id),virtualEl:$(()=>t.virtualEl),ref:t.ref},n());var r=da();Ba(Or(r),()=>t.children??p),B(e,r),at()}function zD(e,t){it(t,!0);let n=J(t,`side`,3,`bottom`),r=J(t,`sideOffset`,3,0),i=J(t,`align`,3,`center`),a=J(t,`alignOffset`,3,0),o=J(t,`arrowPadding`,3,0),s=J(t,`avoidCollisions`,3,!0),c=J(t,`collisionBoundary`,19,()=>[]),l=J(t,`collisionPadding`,3,0),u=J(t,`hideWhenDetached`,3,!1),d=J(t,`onPlaced`,3,()=>{}),f=J(t,`sticky`,3,`partial`),m=J(t,`updatePositionStrategy`,3,`optimized`),h=J(t,`strategy`,3,`fixed`),g=J(t,`dir`,3,`ltr`),_=J(t,`style`,19,()=>({})),v=J(t,`wrapperId`,19,kw),y=J(t,`customAnchor`,3,null),b=J(t,`tooltip`,3,!1),x=jD.create({side:$(()=>n()),sideOffset:$(()=>r()),align:$(()=>i()),alignOffset:$(()=>a()),id:$(()=>t.id),arrowPadding:$(()=>o()),avoidCollisions:$(()=>s()),collisionBoundary:$(()=>c()),collisionPadding:$(()=>l()),hideWhenDetached:$(()=>u()),onPlaced:$(()=>d()),sticky:$(()=>f()),updatePositionStrategy:$(()=>m()),strategy:$(()=>h()),dir:$(()=>g()),style:$(()=>_()),enabled:$(()=>t.enabled),wrapperId:$(()=>v()),customAnchor:$(()=>y())},b()),S=j(()=>gb(x.wrapperProps,{style:{pointerEvents:`auto`}}));var C=da();Ba(Or(C),()=>t.content??p,()=>({props:x.props,wrapperProps:L(S)})),B(e,C),at()}function BD(e,t){it(t,!0),Ko(()=>{t.onPlaced?.()});var n=da();Ba(Or(n),()=>t.content??p,()=>({props:{},wrapperProps:{}})),B(e,n),at()}var VD=new Set([`$$slots`,`$$events`,`$$legacy`,`content`,`isStatic`,`onPlaced`]);function HD(e,t){let n=J(t,`isStatic`,3,!1),r=K(t,VD);var i=da(),a=Or(i),o=e=>{BD(e,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},s=e=>{zD(e,q({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};H(a,e=>{n()?e(o):e(s,-1)}),B(e,i)}var UD=new Set(`$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled.ref.tooltip.contentPointerEvents`.split(`.`)),WD=z(`<!> <!>`,1);function GD(e,t){it(t,!0);let n=J(t,`interactOutsideBehavior`,3,`close`),r=J(t,`trapFocus`,3,!0),i=J(t,`isValidEvent`,3,()=>!1),a=J(t,`customAnchor`,3,null),o=J(t,`isStatic`,3,!1),s=J(t,`tooltip`,3,!1),c=J(t,`contentPointerEvents`,3,`auto`),l=K(t,UD),u=j(()=>t.preventScroll??!0),d=j(()=>t.strategy??(L(u)?`fixed`:`absolute`));HD(e,{get isStatic(){return o()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return L(d)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get enabled(){return t.enabled},get tooltip(){return s()},content:(e,a)=>{let o=()=>(a?.()).props,s=()=>(a?.()).wrapperProps;var d=WD(),f=Or(d),m=e=>{Zw(e,{get preventScroll(){return L(u)}})},h=e=>{Zw(e,{get preventScroll(){return L(u)}})};H(f,e=>{t.forceMount&&t.enabled?e(m):t.forceMount||e(h,1)}),uw(F(f,2),{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(e,r)=>{let a=()=>(r?.()).props;GC(e,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,r)=>{zC(e,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,n)=>{let r=()=>(n?.()).props;Dw(e,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,n)=>{var i=da(),u=Or(i);{let e=j(()=>({props:gb(l,o(),r(),a(),{style:{pointerEvents:c()}}),wrapperProps:s()}));Ba(u,()=>t.popper??p,()=>L(e))}B(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),B(e,d)},$$slots:{content:!0}}),at()}var KD=new Set(`$$slots.$$events.$$legacy.popper.open.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.ref.shouldRender`.split(`.`));function qD(e,t){let n=J(t,`interactOutsideBehavior`,3,`close`),r=J(t,`trapFocus`,3,!0),i=J(t,`isValidEvent`,3,()=>!1),a=J(t,`customAnchor`,3,null),o=J(t,`isStatic`,3,!1),s=K(t,KD);var c=da(),l=Or(c),u=e=>{GD(e,q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get isStatic(){return o()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>s))};H(l,e=>{t.shouldRender&&e(u)}),B(e,c)}var JD=new Set(`$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled`.split(`.`));function YD(e,t){let n=J(t,`interactOutsideBehavior`,3,`close`),r=J(t,`trapFocus`,3,!0),i=J(t,`isValidEvent`,3,()=>!1),a=J(t,`customAnchor`,3,null),o=J(t,`isStatic`,3,!1),s=K(t,JD);GD(e,q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get isStatic(){return o()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>s,{forceMount:!0}))}function XD(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]??[0,0],[c,l]=t[o]??[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function ZD(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function QD(e,t){let n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,a=t.top+t.height/2,o=i-n,s=a-r;return Math.abs(o)>Math.abs(s)?o>0?`right`:`left`:s>0?`bottom`:`top`}var $D=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,iO=new WeakMap,aO=new WeakMap,oO=new WeakMap,sO=new WeakMap,cO=new WeakSet,lO=class{constructor(e){kt(this,cO),D(this,$D,void 0),D(this,eO,void 0),D(this,tO,void 0),D(this,nO,null),D(this,rO,null),D(this,iO,[]),D(this,aO,null),D(this,oO,null),D(this,sO,null),k($D,this,e),k(eO,this,e.buffer??1);let t=e.transitIntentTimeout;k(tO,this,typeof t==`number`&&t>0?t:null),ox([e.triggerNode,e.contentNode,e.enabled],([e,t,n])=>{if(!e||!t||!n){k(aO,this,null),O(cO,this,hO).call(this);return}return A(aO,this)&&A(aO,this)!==e&&O(cO,this,hO).call(this),k(aO,this,e),[$i(Ax(e),`pointermove`,n=>{O(cO,this,mO).call(this,[n.clientX,n.clientY],e,t)}),$i(e,`pointerleave`,e=>{let n=e.relatedTarget;if(qx(n)&&t.contains(n))return;let r=A($D,this).ignoredTargets?.()??[];qx(n)&&r.some(e=>e===n||e.contains(n))||(k(iO,this,qx(n)&&r.length>0?r.filter(e=>n.contains(e)):[]),k(nO,this,[e.clientX,e.clientY]),k(rO,this,`content`),O(cO,this,dO).call(this))}),$i(e,`pointerenter`,()=>{O(cO,this,hO).call(this)}),$i(t,`pointerenter`,()=>{O(cO,this,hO).call(this)}),$i(t,`pointerleave`,t=>{let n=t.relatedTarget;qx(n)&&e.contains(n)||(k(nO,this,[t.clientX,t.clientY]),k(rO,this,`trigger`),O(cO,this,dO).call(this))})].reduce((e,t)=>()=>{e(),t()},()=>{})})}};function uO(){A(oO,this)!==null&&(cancelAnimationFrame(A(oO,this)),k(oO,this,null))}function dO(){O(cO,this,uO).call(this),k(oO,this,requestAnimationFrame(()=>{k(oO,this,null),!(!A(nO,this)||!A(rO,this))&&(O(cO,this,hO).call(this),A($D,this).onPointerExit())}))}function fO(){A(sO,this)!==null&&(clearTimeout(A(sO,this)),k(sO,this,null))}function pO(){A(tO,this)!==null&&(O(cO,this,fO).call(this),k(sO,this,window.setTimeout(()=>{k(sO,this,null),!(!A(nO,this)||!A(rO,this))&&(O(cO,this,hO).call(this),A($D,this).onPointerExit())},A(tO,this))))}function mO(e,t,n){if(!A(nO,this)||!A(rO,this))return;O(cO,this,uO).call(this),O(cO,this,pO).call(this);let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();if(A(rO,this)===`content`&&ZD(e,i)){O(cO,this,hO).call(this);return}if(A(rO,this)===`trigger`&&ZD(e,r)){O(cO,this,hO).call(this);return}if(A(rO,this)===`content`&&A(iO,this).length>0)for(let t of A(iO,this)){let n=t.getBoundingClientRect();if(ZD(e,n))return;let i=QD(r,n),a=O(cO,this,gO).call(this,r,n,i);if(a&&XD(e,a))return}let a=QD(r,i),o=O(cO,this,gO).call(this,r,i,a);if(o&&XD(e,o))return;let s=A(rO,this)===`content`?i:r;XD(e,O(cO,this,_O).call(this,A(nO,this),s,a,A(rO,this)))||(O(cO,this,hO).call(this),A($D,this).onPointerExit())}function hO(){k(nO,this,null),k(rO,this,null),k(iO,this,[]),O(cO,this,uO).call(this),O(cO,this,fO).call(this)}function gO(e,t,n){let r=A(eO,this);switch(n){case`top`:return[[Math.min(e.left,t.left)-r,e.top],[Math.min(e.left,t.left)-r,t.bottom],[Math.max(e.right,t.right)+r,t.bottom],[Math.max(e.right,t.right)+r,e.top]];case`bottom`:return[[Math.min(e.left,t.left)-r,e.bottom],[Math.min(e.left,t.left)-r,t.top],[Math.max(e.right,t.right)+r,t.top],[Math.max(e.right,t.right)+r,e.bottom]];case`left`:return[[e.left,Math.min(e.top,t.top)-r],[t.right,Math.min(e.top,t.top)-r],[t.right,Math.max(e.bottom,t.bottom)+r],[e.left,Math.max(e.bottom,t.bottom)+r]];case`right`:return[[e.right,Math.min(e.top,t.top)-r],[t.left,Math.min(e.top,t.top)-r],[t.left,Math.max(e.bottom,t.bottom)+r],[e.right,Math.max(e.bottom,t.bottom)+r]]}}function _O(e,t,n,r){let i=A(eO,this)*4,[a,o]=e;switch(r===`trigger`?O(cO,this,vO).call(this,n):n){case`top`:return[[a-i,o+i],[a+i,o+i],[t.right+i,t.bottom],[t.right+i,t.top],[t.left-i,t.top],[t.left-i,t.bottom]];case`bottom`:return[[a-i,o-i],[a+i,o-i],[t.right+i,t.top],[t.right+i,t.bottom],[t.left-i,t.bottom],[t.left-i,t.top]];case`left`:return[[a+i,o-i],[a+i,o+i],[t.right,t.bottom+i],[t.left,t.bottom+i],[t.left,t.top-i],[t.right,t.top-i]];case`right`:return[[a-i,o-i],[a-i,o+i],[t.left,t.bottom+i],[t.right,t.bottom+i],[t.right,t.top-i],[t.left,t.top-i]]}}function vO(e){switch(e){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`}}var yO=Hx({component:`popover`,parts:[`root`,`trigger`,`content`,`close`,`overlay`]}),bO=new rx(`Popover.Root`),xO=new WeakMap,SO=new WeakMap,CO=new WeakMap,wO=new WeakMap,TO=new WeakMap,EO=new WeakMap,DO=new WeakMap,OO=new WeakMap,kO=new WeakMap,AO=new WeakSet,jO=class e{static create(t){return bO.set(new e(t))}get contentNode(){return L(A(xO,this))}set contentNode(e){N(A(xO,this),e,!0)}get triggerNode(){return L(A(SO,this))}set triggerNode(e){N(A(SO,this),e,!0)}get overlayNode(){return L(A(CO,this))}set overlayNode(e){N(A(CO,this),e,!0)}get openedViaHover(){return L(A(wO,this))}set openedViaHover(e){N(A(wO,this),e,!0)}get hasInteractedWithContent(){return L(A(TO,this))}set hasInteractedWithContent(e){N(A(TO,this),e,!0)}get hoverCooldown(){return L(A(EO,this))}set hoverCooldown(e){N(A(EO,this),e,!0)}get closeDelay(){return L(A(DO,this))}set closeDelay(e){N(A(DO,this),e,!0)}constructor(e){kt(this,AO),b(this,`opts`,void 0),D(this,xO,M(null)),b(this,`contentPresence`,void 0),D(this,SO,M(null)),D(this,CO,M(null)),b(this,`overlayPresence`,void 0),D(this,wO,M(!1)),D(this,TO,M(!1)),D(this,EO,M(!1)),D(this,DO,M(0)),D(this,OO,null),D(this,kO,null),this.opts=e,this.contentPresence=new pS({ref:$(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new pS({ref:$(()=>this.overlayNode),open:this.opts.open}),ox(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,O(AO,this,MO).call(this))})}setDomContext(e){k(kO,this,e)}toggleOpen(){O(AO,this,MO).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){O(AO,this,MO).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){O(AO,this,MO).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(O(AO,this,MO).call(this),this.closeDelay<=0?this.opts.open.current=!1:A(kO,this)&&k(OO,this,A(kO,this).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),k(OO,this,null)},this.closeDelay))))}cancelDelayedClose(){O(AO,this,MO).call(this)}markInteraction(){this.hasInteractedWithContent=!0,O(AO,this,MO).call(this)}};function MO(){A(OO,this)!==null&&A(kO,this)&&(A(kO,this).clearTimeout(A(OO,this)),k(OO,this,null))}var NO=new WeakMap,PO=new WeakMap,FO=new WeakMap,IO=new WeakSet,LO=new WeakMap,RO=class e{static create(t){return new e(t,bO.get())}constructor(e,t){kt(this,IO),b(this,`opts`,void 0),b(this,`root`,void 0),b(this,`attachment`,void 0),b(this,`domContext`,void 0),D(this,NO,null),D(this,PO,null),D(this,FO,M(!1)),D(this,LO,j(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":Ix(this.root.opts.open.current),"data-state":Lx(this.root.opts.open.current),"aria-controls":O(IO,this,HO).call(this),[yO.trigger]:``,disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}))),this.opts=e,this.root=t,this.attachment=Fx(this.opts.ref,e=>this.root.triggerNode=e),this.domContext=new Px(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),ox(()=>this.opts.closeDelay.current,e=>{this.root.closeDelay=e})}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Yx(e)||(N(A(FO,this),!0),O(IO,this,BO).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;let t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():k(NO,this,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),k(NO,this,null)},t))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Yx(e)||(N(A(FO,this),!1),O(IO,this,zO).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(O(IO,this,VO).call(this),L(A(FO,this))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}L(A(FO,this))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),O(IO,this,VO).call(this),this.root.toggleOpen())}get props(){return L(A(LO,this))}set props(e){N(A(LO,this),e)}};function zO(){A(NO,this)!==null&&(this.domContext.clearTimeout(A(NO,this)),k(NO,this,null))}function BO(){A(PO,this)!==null&&(this.domContext.clearTimeout(A(PO,this)),k(PO,this,null))}function VO(){O(IO,this,zO).call(this),O(IO,this,BO).call(this)}function HO(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}var UO=new WeakMap,WO=new WeakMap,GO=class e{static create(t){return new e(t,bO.get())}constructor(e,t){b(this,`opts`,void 0),b(this,`root`,void 0),b(this,`attachment`,void 0),b(this,`onInteractOutside`,e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!qx(e.target))return;let t=e.target.closest(yO.selector(`trigger`));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(qx(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current==`string`){let t=document.querySelector(this.opts.customAnchor.current);if(t&&t.contains(e.target))return}}this.root.handleClose()}}),b(this,`onEscapeKeydown`,e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()}),D(this,UO,j(()=>({open:this.root.opts.open.current}))),D(this,WO,j(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Lx(this.root.opts.open.current),...Rx(this.root.contentPresence.transitionStatus),[yO.content]:``,style:{pointerEvents:`auto`,contain:`layout style`},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}))),b(this,`popperProps`,{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}),this.opts=e,this.root=t,this.attachment=Fx(this.opts.ref,e=>this.root.contentNode=e),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new lO({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){let t=e.target;qx(t)&&sC(t)&&this.root.markInteraction()}onpointerenter(e){Yx(e)||this.root.cancelDelayedClose()}onpointerleave(e){Yx(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return L(A(UO,this))}set snippetProps(e){N(A(UO,this),e)}get props(){return L(A(WO,this))}set props(e){N(A(WO,this),e)}},KO=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`ref`,`id`,`forceMount`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`customAnchor`,`style`]),qO=z(`<div><div><!></div></div>`);function JO(e,t){let n=fa();it(t,!0);let r=J(t,`ref`,15,null),i=J(t,`id`,19,()=>gS(n)),a=J(t,`forceMount`,3,!1),o=J(t,`onOpenAutoFocus`,3,hS),s=J(t,`onCloseAutoFocus`,3,hS),c=J(t,`onEscapeKeydown`,3,hS),l=J(t,`onInteractOutside`,3,hS),u=J(t,`trapFocus`,3,!0),d=J(t,`preventScroll`,3,!1),f=J(t,`customAnchor`,3,null),m=K(t,KO),h=GO.create({id:$(()=>i()),ref:$(()=>r(),e=>r(e)),onInteractOutside:$(()=>l()),onEscapeKeydown:$(()=>c()),customAnchor:$(()=>f())}),g=j(()=>gb(m,h.props)),_=j(()=>u()&&h.shouldTrapFocus);function v(e){h.shouldTrapFocus||e.preventDefault(),o()(e)}var y=da(),b=Or(y),x=e=>{YD(e,q(()=>L(g),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},get id(){return i()},get trapFocus(){return L(_)},get preventScroll(){return d()},loop:!0,forceMount:!0,get customAnchor(){return f()},onOpenAutoFocus:v,get onCloseAutoFocus(){return s()},get shouldRender(){return h.shouldRender},popper:(e,n)=>{let r=()=>(n?.()).props,i=()=>(n?.()).wrapperProps,a=j(()=>gb(r(),{style:$E(`popover`)},{style:t.style}));var o=da(),s=Or(o),c=e=>{var n=da(),r=Or(n);{let e=j(()=>({props:L(a),wrapperProps:i(),...h.snippetProps}));Ba(r,()=>t.child,()=>L(e))}B(e,n)},l=e=>{var n=qO();Oo(n,()=>({...i()}));var r=P(n);Oo(r,()=>({...L(a)})),Ba(P(r),()=>t.children??p),E(r),E(n),B(e,n)};H(s,e=>{t.child?e(c):e(l,-1)}),B(e,o)},$$slots:{popper:!0}}))},S=e=>{qD(e,q(()=>L(g),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.root.opts.open.current},get id(){return i()},get trapFocus(){return L(_)},get preventScroll(){return d()},loop:!0,forceMount:!1,get customAnchor(){return f()},onOpenAutoFocus:v,get onCloseAutoFocus(){return s()},get shouldRender(){return h.shouldRender},popper:(e,n)=>{let r=()=>(n?.()).props,i=()=>(n?.()).wrapperProps,a=j(()=>gb(r(),{style:$E(`popover`)},{style:t.style}));var o=da(),s=Or(o),c=e=>{var n=da(),r=Or(n);{let e=j(()=>({props:L(a),wrapperProps:i(),...h.snippetProps}));Ba(r,()=>t.child,()=>L(e))}B(e,n)},l=e=>{var n=qO();Oo(n,()=>({...i()}));var r=P(n);Oo(r,()=>({...L(a)})),Ba(P(r),()=>t.children??p),E(r),E(n),B(e,n)};H(s,e=>{t.child?e(c):e(l,-1)}),B(e,o)},$$slots:{popper:!0}}))};H(b,e=>{a()?e(x):a()||e(S,1)}),B(e,y),at()}var YO=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`type`,`disabled`,`openOnHover`,`openDelay`,`closeDelay`]),XO=z(`<button><!></button>`);function ZO(e,t){let n=fa();it(t,!0);let r=J(t,`id`,19,()=>gS(n)),i=J(t,`ref`,15,null),a=J(t,`type`,3,`button`),o=J(t,`disabled`,3,!1),s=J(t,`openOnHover`,3,!1),c=J(t,`openDelay`,3,700),l=J(t,`closeDelay`,3,300),u=K(t,YO),d=RO.create({id:$(()=>r()),ref:$(()=>i(),e=>i(e)),disabled:$(()=>!!o()),openOnHover:$(()=>s()),openDelay:$(()=>c()),closeDelay:$(()=>l())}),f=j(()=>gb(u,d.props,{type:a()}));RD(e,{get id(){return r()},get ref(){return d.opts.ref},children:(e,n)=>{var r=da(),i=Or(r),a=e=>{var n=da();Ba(Or(n),()=>t.child,()=>({props:L(f)})),B(e,n)},o=e=>{var n=XO();Oo(n,()=>({...L(f)})),Ba(P(n),()=>t.children??p),E(n),B(e,n)};H(i,e=>{t.child?e(a):e(o,-1)}),B(e,r)},$$slots:{default:!0}}),at()}function QO(e,t){it(t,!0);let n=J(t,`open`,15,!1),r=J(t,`onOpenChange`,3,hS),i=J(t,`onOpenChangeComplete`,3,hS);jO.create({open:$(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:$(()=>i())}),LD(e,{children:(e,n)=>{var r=da();Ba(Or(r),()=>t.children??p),B(e,r)},$$slots:{default:!0}}),at()}var $O=z(`<!> `,1),ek=z(`<button type="button"> <!></button>`),tk=z(`<button type="button"> </button>`),nk=z(`<div role="group" aria-label="Presets"></div> <div class="mt-1 border-t border-line pt-2 px-2 pb-1"><div class="text-[11px] uppercase tracking-wide text-fg-subtle mb-1.5">Custom range</div> <label class="block text-[11px] text-fg-muted mb-1">From <input type="datetime-local" class="mt-0.5 w-full rounded border border-line bg-subtle px-1.5 py-1 text-xs text-fg focus:outline-none focus:border-accent"/></label> <label class="block text-[11px] text-fg-muted mb-2">To <input type="datetime-local" class="mt-0.5 w-full rounded border border-line bg-subtle px-1.5 py-1 text-xs text-fg focus:outline-none focus:border-accent"/></label> <div class="mb-2 border-t border-line pt-2"><div class="mb-1 text-[11px] text-fg-muted">Show times in</div> <div class="flex gap-1"></div> <div class="mt-1 text-[11px] text-fg-subtle"> </div></div> <button type="button">Apply</button></div>`,1),rk=z(`<!> <!>`,1);function ik(e,t){it(t,!0);let n=M(!1),r=j(()=>t.selection.type===`custom`?{start:t.selection.start,end:t.selection.end}:{start:Date.now()-9e5,end:Date.now()}),i=M(``),a=M(``);function o(e){N(n,e,!0),e&&(N(i,u(L(r).start),!0),N(a,u(L(r).end),!0))}function s(e){t.onChange({type:`preset`,preset:e}),N(n,!1)}function c(){let e=d(L(i)),r=d(L(a));e!==null&&r!==null&&(t.onChange({type:`custom`,start:e,end:r}),N(n,!1))}let l=j(()=>d(L(i))!==null&&d(L(a))!==null);function u(e){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}function d(e){if(!e)return null;let t=new Date(e).getTime();return Number.isFinite(t)?t:null}var f=da();Va(Or(f),()=>QO,(e,r)=>{r(e,{onOpenChange:o,get open(){return L(n)},set open(e){N(n,e,!0)},children:(e,n)=>{var r=rk(),o=Or(r);{let e=j(()=>Q(`inline-flex items-center gap-1.5 px-2 py-1 text-xs rounded border`,`border-line bg-surface text-fg-muted hover:text-fg hover:bg-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,t.class));Va(o,()=>ZO,(n,r)=>{r(n,{"aria-label":`Time window`,title:`Change the time window`,get class(){return L(e)},children:(e,n)=>{var r=$O(),i=Or(r);vp(i,{size:12});var a=F(i);I(e=>V(a,` ${e??``}`),[()=>Ds(t.selection)]),B(e,r)},$$slots:{default:!0}})})}Va(F(o,2),()=>TS,(e,n)=>{n(e,{children:(e,n)=>{var r=da();Va(Or(r),()=>JO,(e,n)=>{n(e,{sideOffset:6,align:`start`,class:`z-50 w-64 rounded-md border border-line bg-surface p-1 shadow-lg`,children:(e,n)=>{var r=nk(),o=Or(r);Pa(o,21,()=>xs,e=>e.id,(e,n)=>{let r=j(()=>t.selection.type===`preset`&&t.selection.preset===L(n).id);var i=ek(),a=P(i),o=F(a),c=e=>{op(e,{size:12,class:`text-accent`})};H(o,e=>{L(r)&&e(c)}),E(i),I(e=>{G(i,`aria-current`,L(r)?`true`:void 0),W(i,1,e),V(a,`${L(n).label??``} `)},[()=>U(Q(`flex w-full items-center justify-between rounded px-2 py-1.5 text-xs`,`text-fg hover:bg-hover focus-visible:outline-none focus-visible:bg-hover`,L(r)&&`bg-selected font-medium`))]),R(`click`,i,()=>s(L(n).id)),B(e,i)}),E(o);var u=F(o,2),d=F(P(u),2),f=F(P(d));Co(f),E(d);var p=F(d,2),m=F(P(p));Co(m),E(p);var h=F(p,2),g=F(P(h),2);Pa(g,20,()=>[{id:`local`,label:`Local`},{id:`utc`,label:`UTC`}],e=>e.id,(e,t)=>{var n=tk(),r=P(n,!0);E(n),I(e=>{G(n,`aria-pressed`,Vu.value===t.id),W(n,1,e),V(r,t.label)},[()=>U(Q(`flex-1 rounded px-2 py-1 text-xs`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,Vu.value===t.id?`bg-accent text-white`:`border border-line text-fg-muted hover:text-fg`))]),R(`click`,n,()=>Vu.value=t.id),B(e,n)}),E(g);var _=F(g,2),v=P(_);E(_),E(h);var y=F(h,2);E(u),I((e,t)=>{V(v,`Currently ${e??``}`),y.disabled=!L(l),W(y,1,t)},[()=>bh(Vu.value),()=>U(Q(`w-full rounded px-2 py-1 text-xs font-medium`,`bg-accent text-white hover:opacity-90`,`disabled:opacity-40 disabled:cursor-not-allowed`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`))]),Mo(f,()=>L(i),e=>N(i,e)),Mo(m,()=>L(a),e=>N(a,e)),R(`click`,y,c),B(e,r)},$$slots:{default:!0}})}),B(e,r)},$$slots:{default:!0}})}),B(e,r)},$$slots:{default:!0}})}),B(e,f),at()}ta([`click`]);var ak=z(`<button type="button" aria-live="polite" title="Show the newest matches and follow new data again"><!> </button>`);function ok(e,t){it(t,!0);let n=j(()=>!t.live&&t.count>0),r=j(()=>t.count>999?`999+`:String(t.count));var i=da(),a=Or(i),o=e=>{var n=ak(),i=P(n);Jf(i,{size:12});var a=F(i);E(n),I(e=>{W(n,1,e),V(a,` ${L(r)??``} new`)},[()=>U(Q(`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium`,`bg-accent text-white shadow-sm hover:opacity-90 focus-visible:outline-none`,`focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1`,`transition-opacity`,t.class))]),R(`click`,n,function(...e){t.onResume?.apply(this,e)}),B(e,n)};H(a,e=>{L(n)&&e(o)}),B(e,i),at()}ta([`click`]);async function sk(e,t){try{let n=await t.fetch.call(globalThis,`${t.baseUrl}/api/query/${e}/fields`,{signal:t.signal});if(!n.ok)return[];let r=await n.json();return Array.isArray(r.fields)?r.fields:[]}catch{return[]}}async function ck(e,t,n){let r={query:t.query};t.window&&(r.window=t.window),t.limit!==void 0&&(r.limit=t.limit),t.cursor&&(r.cursor=t.cursor);let i;try{i=await n.fetch.call(globalThis,e,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(r),signal:n.signal})}catch(e){return uk(e)?{status:`aborted`}:{status:`error`,message:e instanceof Error?`Network error: ${e.message}`:`Network error`}}let a;try{a=await i.json()}catch{return{status:`error`,message:`Unexpected response from ${n.baseUrl} (not JSON)`}}if(i.status===400){let e=a.errors;return e?.length?{status:`invalid`,errors:e}:{status:`error`,message:`Invalid query request`}}return i.status===403?{status:`error`,message:`Forbidden: the devtools server rejected this origin. Open the viewer from the same machine.`}:i.ok?{status:`ok`,payload:a}:{status:`error`,message:`Server error: ${a.error??i.statusText}`}}async function lk(e,t){let n=await ck(`${t.baseUrl}/api/query/traces`,e,t);if(n.status!==`ok`)return n;let r=n.payload;return{status:`ok`,traces:r.traces??[],nextCursor:r.nextCursor??null}}function uk(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`}async function dk(e,t){let n=await ck(`${t.baseUrl}/api/query/logs`,e,t);if(n.status!==`ok`)return n;let r=n.payload;return{status:`ok`,logs:r.logs??[],nextCursor:r.nextCursor??null}}async function fk(e,t){let n=await ck(`${t.baseUrl}/api/query/errors`,e,t);return n.status===`ok`?{status:`ok`,errors:n.payload.errors??[]}:n}function pk(){return{reasons:{query:!1,scrolled:!1,selected:!1,window:!1},pending:0}}function mk(e){return!Object.values(e.reasons).some(Boolean)}function hk(e){return mk(e)?0:e.pending}function gk(e,t){switch(t.type){case`query-changed`:return _k(e,`query`,t.query.trim().length>0);case`scrolled`:return _k(e,`scrolled`,!t.atTop);case`row-selected`:return _k(e,`selected`,!0);case`row-deselected`:return _k(e,`selected`,!1);case`window-changed`:return _k(e,`window`,t.bounded);case`arrived`:return mk(e)?e:{...e,pending:Math.max(0,e.pending+t.count)};case`resumed`:return pk()}}function _k(e,t,n){if(e.reasons[t]===n)return e;let r={reasons:{...e.reasons,[t]:n},pending:e.pending};return mk(r)&&(r.pending=0),r}var vk={run:async(e,t)=>{let n=await lk(e,t);return n.status===`ok`?{status:`ok`,rows:n.traces,nextCursor:n.nextCursor}:n}},yk={run:async(e,t)=>{let n=await dk(e,t);return n.status===`ok`?{status:`ok`,rows:n.logs,nextCursor:n.nextCursor}:n}},bk=200,xk=100;function Sk(e,t){let n=e.now??(()=>Date.now()),r=e.debounceMs??bk,i=e.pageSize??xk,a=new as(``),o=gl,s=new as([]),c=new as([]),l=new as(null),u=new as(!1),d=new as(!1),f=new as(null),p=new as(pk()),m=0,h=null,g=null;function _(e){p.value=gk(p.value,e)}async function v(r={}){let p=++m;h?.abort();let g=new AbortController;h=g,u.value=!0;let _=Ts(o.value,n()),v=await t.run({query:a.value,window:js(_),limit:i,cursor:r.append?f.value??void 0:void 0},{fetch:e.client.fetch,baseUrl:typeof e.client.baseUrl==`function`?e.client.baseUrl():e.client.baseUrl,signal:g.signal});if(p===m)switch(u.value=!1,v.status){case`ok`:s.value=r.append?[...s.value,...v.rows]:v.rows,f.value=v.nextCursor,c.value=[],l.value=null,d.value=!0;return;case`invalid`:c.value=v.errors,l.value=null;return;case`error`:c.value=[],l.value=v.message;return;case`aborted`:return}}function y(){if(g&&clearTimeout(g),r<=0){v();return}g=setTimeout(()=>{g=null,v()},r)}return{text:a,window:o,results:s,errors:c,failure:l,loading:u,ready:d,nextCursor:f,tail:p,get live(){return mk(p.value)},get pending(){return hk(p.value)},setText(e){a.value=e,_({type:`query-changed`,query:e}),y()},submit(){g&&(clearTimeout(g),g=null),v()},refresh(){return g&&(clearTimeout(g),g=null),v()},setWindow(e){o.value=e,_({type:`window-changed`,bounded:!Es(Ts(e,n()))}),v()},setScrolledToTop(e){_({type:`scrolled`,atTop:e})},setSelected(e){_(e?{type:`row-selected`}:{type:`row-deselected`})},arrived(e){_({type:`arrived`,count:e}),mk(p.value)&&v()},resume(){_({type:`resumed`}),a.value=``,v()},loadMore(){!f.value||u.value||v({append:!0})},removeRows(e){s.value=s.value.filter(t=>!e(t))},dispose(){g&&clearTimeout(g),h?.abort()}}}function Ck(e){return Sk(e,vk)}function wk(e){return Sk(e,yk)}function Tk(e,t){let n=t,r=!0;if(typeof IntersectionObserver>`u`)return{update:e=>{n=e}};let i=new IntersectionObserver(e=>{let t=e[e.length-1];if(t){if(!t.isIntersecting){r=!0;return}!r||n.disabled||(r=!1,n.onReach())}},{root:n.root??null,rootMargin:n.rootMargin??`200px`});return i.observe(e),{update(e){let t=n.disabled;n=e,t&&!e.disabled&&(r=!0)},destroy(){i.disconnect()}}}function Ek(e){let t=e.target;return/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)||t.isContentEditable}function Dk(e,t){return e>t-1?t-1:e}function Ok(e,t,n,r){return n===0?e:e<0?t>0?0:r===`last`?n-1:0:Math.min(Math.max(e+t,0),n-1)}function kk(e){let{count:t,onActivate:n,scrollToIndex:r,fromUnsetUp:i=`first`}=e,a=M(-1),o=j(()=>Dk(L(a),t())),s=e=>{t()!==0&&(N(a,Ok(L(o),e,t(),i),!0),r?.(L(a)))};return{get cursor(){return L(o)},set cursor(e){N(a,e,!0)},onKeyDown:e=>{Ek(e)||(e.key===`ArrowDown`||e.key===`j`?(e.preventDefault(),s(1)):e.key===`ArrowUp`||e.key===`k`?(e.preventDefault(),s(-1)):e.key===`Enter`&&L(o)>=0&&L(o)<t()&&(e.preventDefault(),n(L(o))))}}}var Ak=z(`<button><span class="truncate"> </span> <!></button>`),jk=z(`<span class="flex-shrink-0 px-1.5 py-0.5 rounded bg-warning-bg text-warning text-[10px] font-medium uppercase tracking-wide" title="Partial trace: the root span has not arrived, so this row shows the highest span received and a duration covering only that part.">partial</span>`),Mk=z(`<div role="option" tabindex="-1" data-focus-inset=""><label class="cursor-pointer flex items-center"><input type="checkbox" class="w-3.5 h-3.5 rounded border-line text-accent"/></label> <button type="button"> </button> <div class="flex items-center gap-1.5 min-w-0"><!> <span class="truncate text-sm text-fg"> </span> <!> <!></div> <span class="font-mono text-xs text-fg-muted text-right tabular-nums"> </span> <span class="trace-col-spans font-mono text-xs text-fg-subtle text-right tabular-nums"> </span> <span class="trace-col-time font-mono text-[11px] text-fg-subtle truncate"> </span> <span> </span> <!></div>`),Nk=z(`<span class="text-xs font-normal text-accent"> </span>`),Pk=z(`<div class="flex items-center gap-1 mr-2 px-2 border-r border-line"><button class="flex items-center gap-1 px-2 py-1 text-xs rounded bg-accent/10 text-accent hover:bg-accent/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-accent/10"><!> </button> <button class="flex items-center gap-1 px-2 py-1 text-xs rounded bg-danger-bg text-danger hover:bg-danger-bg/80 transition-colors disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-danger-bg"><!> </button></div>`),Fk=z(`<button class="px-2 py-1 text-xs rounded text-fg-subtle hover:bg-hover transition-colors" title="Drop buffered traces received while paused">Drop buffer</button>`),Ik=z(`<button class="p-1.5 hover:bg-hover rounded transition-colors" title="Export all traces as JSON"><!></button>`),Lk=z(`<div class="text-center text-fg-subtle text-sm py-12">Loading traces…</div>`),Rk=z(`<div class="mx-auto flex max-w-2xl flex-col items-center gap-3 px-6 py-12 text-center text-sm text-fg-subtle"><p class="font-medium text-fg">No traces yet — send telemetry to get started</p> <p class="max-w-lg text-xs text-fg-muted">Both standard OTLP transports are ready. Existing SDK defaults
12
+ usually work unchanged.</p> <div class="grid w-full gap-2 text-left md:grid-cols-2"><div class="rounded-md border border-line bg-subtle p-3"><div class="mb-1 text-[11px] font-semibold uppercase tracking-wide">OTLP/gRPC</div> <code class="break-all text-xs text-fg">OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317</code></div> <div class="rounded-md border border-line bg-subtle p-3"><div class="mb-1 text-[11px] font-semibold uppercase tracking-wide">OTLP/HTTP</div> <code class="break-all text-xs text-fg">OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318</code></div></div></div>`),zk=z(`<div class="text-center text-fg-subtle text-sm py-12">No traces match the current filter.</div>`),Bk=z(`<div class="px-4 py-3 text-center text-xs text-fg-subtle"> </div>`),Vk=z(`<div><div class="trace-grid sticky top-0 z-10 px-4 py-2 border-b border-line bg-subtle text-[11px] font-semibold uppercase tracking-wide text-fg-subtle"><label class="cursor-pointer flex items-center"><input type="checkbox" class="w-3.5 h-3.5 rounded border-line text-accent"/></label> <!> <!> <!> <!> <!> <!> <span></span></div> <!> <!></div>`),Hk=z(`<div class="flex flex-col h-full"><div class="px-4 py-3 border-b border-line flex items-center justify-between gap-2"><h3 class="text-sm font-semibold flex items-center gap-2 text-fg"><!> <!></h3> <div class="flex items-center gap-1"><!> <button><!> </button> <!> <button class="p-1.5 hover:bg-hover rounded transition-colors" title="Import traces from file"><!></button> <!> <button class="p-1.5 hover:bg-hover rounded transition-colors" title="Keyboard shortcuts (?)"><!></button></div></div> <div class="px-4 py-2 border-b border-line flex items-center gap-2"><!> <!> <!> <select class="text-xs border border-line rounded px-1.5 py-1 bg-surface text-fg-muted"><option>All</option><option>Errors</option><option>OK</option></select> <!> <div class="flex items-center text-xs text-fg-subtle flex-shrink-0" title="Only show traces at least this slow"><span class="mr-1">≥</span> <input type="number" placeholder="0" class="w-14 px-1 py-1 rounded border border-line bg-surface text-fg-muted focus:outline-none"/> <span class="ml-1">ms</span></div></div> <div class="trace-list-container flex-1 overflow-auto focus:outline-none" role="listbox" aria-label="Traces" tabindex="0"><!></div> <!></div>`);function Uk(e,t){it(t,!0);let n=(e,t=p,n=p,r=p,i=p)=>{let a=j(()=>L(s).key===n());var o=Ak(),c=P(o),l=P(c,!0);E(c);var u=F(c,2),d=e=>{var t=da(),n=Or(t),r=e=>{Jf(e,{size:11,class:`flex-shrink-0`})},i=e=>{Kf(e,{size:11,class:`flex-shrink-0`})};H(n,e=>{L(s).dir===`asc`?e(r):e(i,-1)}),B(e,t)};H(u,e=>{L(a)&&e(d)}),E(o),I((e,n)=>{W(o,1,e),G(o,`title`,n),V(l,t())},[()=>U(Q(`flex items-center gap-1 min-w-0 transition-colors hover:text-fg-muted`,L(a)?`text-fg-muted`:`text-fg-subtle`,r()===`end`&&`justify-end`,i())),()=>`Sort by ${t().toLowerCase()}`]),R(`click`,o,()=>Ul(n())),B(e,o)},r=(e,t=p,n=p,r=p)=>{let i=j(()=>t().status===`ERROR`),a=j(()=>eh(t().service||`unknown`)),o=j(()=>se.cursor===r());var s=Mk(),c=j(()=>ah(()=>Mu(t().traceId))),l=P(s),u=P(l);Co(u),E(l);var d=F(l,2),f=P(d,!0);E(d);var m=F(d,2),h=P(m),g=e=>{mp(e,{size:13,class:`text-danger flex-shrink-0`})};H(h,e=>{L(i)&&e(g)});var v=F(h,2),y=P(v,!0);E(v);var b=F(v,2),x=e=>{B(e,jk())};H(b,e=>{t().partial&&e(x)}),Qg(F(b,2),{get value(){return t().traceId},label:`Copy trace ID`,class:`opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity`}),E(m);var S=F(m,2),C=P(S,!0);E(S);var w=F(S,2),ee=P(w,!0);E(w);var te=F(w,2),ne=P(te,!0);E(te);var re=F(te,2),ie=P(re,!0);E(re),fp(F(re,2),{size:15,class:`text-fg-subtle justify-self-end`}),E(s),I((e,i,c,l,p)=>{W(s,1,e),G(s,`aria-selected`,L(o)),G(s,`data-row-index`,r()),To(u,n()),W(d,1,i),lo(d,`background-color: ${L(a).fill??``}; color: ${L(a).stroke??``};`),G(d,`title`,`Filter by ${t().service||`unknown`}`),V(f,t().service||`unknown`),G(v,`title`,t().rootSpan.name),V(y,t().rootSpan.name||`unknown`),V(C,c),V(ee,t().spans.length),V(ne,l),W(re,1,p),V(ie,t().status)},[()=>U(Q(`group trace-grid px-4 py-2 border-b border-line-subtle cursor-pointer transition-colors`,`row-virtual`,n()?`bg-accent/10`:L(i)?`bg-danger-bg/40 hover:bg-danger-bg/70`:`hover:bg-hover`,L(o)&&`ring-1 ring-inset ring-accent bg-accent/10`)),()=>U(Q(`text-[11px] font-medium px-2 py-0.5 rounded truncate text-left transition-shadow`,L(_).has(t().service||`unknown`)&&`ring-1 ring-inset ring-accent`)),()=>id(t().duration),()=>ad(t().startTime),()=>U(Q(`text-[10px] font-semibold px-1.5 py-0.5 rounded justify-self-start`,L(i)?`bg-danger-bg text-danger`:t().status===`OK`?`bg-success-bg text-success`:`bg-hover text-fg-muted`))]),R(`click`,s,()=>{se.cursor=r(),Mu(t().traceId)}),R(`keydown`,s,function(...e){L(c)?.apply(this,e)}),R(`click`,u,e=>e.stopPropagation()),R(`change`,u,()=>uu(t().traceId)),R(`click`,d,e=>{e.stopPropagation(),zl(t().service||`unknown`)}),B(e,s)};function i(e,t,n,r,i){return n===`error`&&e.status!==`ERROR`||n===`ok`&&e.status===`ERROR`||r>0&&e.duration<r||i.size>0&&!i.has(e.service||`unknown`)?!1:Rg(t.toLowerCase(),[e.service,e.rootSpan?.name,e.traceId,e.correlationId,...e.spans.map(e=>e.name)])}let a=j(()=>Jl.value),o=j(()=>bl.value),s=j(()=>Pl.value),c=j(()=>cu.value),l=j(()=>El.value),u=j(()=>kl.value),d=j(()=>lu.value),f=j(()=>mu.value),m=j(()=>Fl.value),h=j(()=>Il.value),g=j(()=>Ll.value),_=j(()=>Rl.value),v=j(()=>{let e=new Map;for(let t of L(a)){let n=t.service||`unknown`;e.set(n,(e.get(n)??0)+1)}return{key:`service`,label:`Service`,options:[...e.entries()].map(([e,t])=>({value:e,count:t})),selected:L(_),onToggle:zl}}),y=j(()=>L(v).options.length>1),b=M(null),x=M(!1),S=j(()=>L(f)>0);Rr(()=>{if(L(c))return;let e=e=>{if(!(tl.value||L(x))){if(e.key===`/`&&!ih()){e.preventDefault(),L(b)?.focus();return}e.key===`Escape`&&(L(S)?fu():document.activeElement===L(b)&&(Fl.value=``,C.setText(``))),e.key===`a`&&(e.metaKey||e.ctrlKey)&&!ih()&&(e.preventDefault(),du())}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let C=Ck({client:{fetch:globalThis.fetch.bind(globalThis),baseUrl:w}});function w(){let e=hl.value;return(e?$o(e):null)??globalThis.location.origin}Rr(()=>()=>C.dispose());let ee=M(null),te=M(_r([]));Rr(()=>{let e=w();e!==L(ee)&&(N(ee,e,!0),sk(`traces`,{fetch:globalThis.fetch.bind(globalThis),baseUrl:e}).then(e=>N(te,e,!0)),!C.ready.value&&Fl.value?C.setText(Fl.value):C.refresh())});let ne=M(0);Rr(()=>{let e=L(a).length;e>L(ne)&&C.arrived(e-L(ne)),N(ne,e,!0)}),Rr(()=>{C.setSelected(L(c)!=null)});let re=j(()=>C.results.value),ie=j(()=>{let e=C.ready.value&&C.failure.value===null,t=L(o);return e&&(t=L(m).length>0?L(re):ae(L(re),L(o))),t.filter(t=>i(t,e?``:L(m),L(h),L(g),L(_)))});function ae(e,t){let n=new Set(e.map(e=>e.traceId));return[...e,...t.filter(e=>!n.has(e.traceId))]}let oe=M(void 0),se=kk({count:()=>L(ie).length,onActivate:e=>{let t=L(ie)[e];t&&Mu(t.traceId)},scrollToIndex:e=>queueMicrotask(()=>{L(oe)?.querySelector(`[data-row-index="${e}"]`)?.scrollIntoView({block:`nearest`})})});function ce(){let e=L(ie).filter(e=>L(d).has(e.traceId));e.length>0&&Nv(e)}async function le(){let e=[...L(d)];if(!(e.length===0||!globalThis.confirm(`Delete ${e.length} stored trace${e.length===1?``:`s`}?`)))try{await fetch(`${w()}/api/traces`,{method:`DELETE`,headers:{"content-type":`application/json`},body:JSON.stringify({traceIds:e})})}catch{}finally{let t=new Set(e);C.removeRows(e=>t.has(e.traceId)),pu()}}let ue=j(()=>L(m).length>0||L(h)!==`all`||L(g)>0||L(_).size>0),T=j(()=>L(ie).length>0&&L(ie).every(e=>L(d).has(e.traceId)));var de=da(),fe=Or(de),pe=e=>{$v(e,{get trace(){return L(c)}})},me=e=>{var t=Hk(),i=P(t),o=P(i),s=P(o);wp(s,{size:16});var c=F(s),p=F(c),m=e=>{var t=Nk(),n=P(t);E(t),I(()=>V(n,`(${L(f)??``} selected)`)),B(e,t)};H(p,e=>{L(S)&&e(m)}),E(o);var _=F(o,2),w=P(_),ee=e=>{var t=Pk(),n=P(t),r=P(n);Ep(r,{size:12});var i=F(r);E(n);var a=F(n,2),o=P(a);Mm(o,{size:12});var s=F(o);E(a),E(t),I(()=>{n.disabled=!L(S),G(n,`title`,L(S)?`Export selected traces`:`Tick traces to export them · Export selected`),V(i,` Export${L(S)?` (${L(f)})`:``}`),a.disabled=!L(S),G(a,`title`,L(S)?`Delete selected traces`:`Tick traces to delete them · Delete selected`),V(s,` Delete${L(S)?` (${L(f)})`:``}`)}),R(`click`,n,ce),R(`click`,a,le),B(e,t)};H(w,e=>{L(ie).length>0&&e(ee)});var ne=F(w,2),re=P(ne),ae=e=>{gm(e,{size:12})},de=e=>{fm(e,{size:12})};H(re,e=>{L(l)?e(ae):e(de,-1)});var fe=F(re);E(ne);var pe=F(ne,2),me=e=>{var t=Fk();R(`click`,t,function(...e){Du?.apply(this,e)}),B(e,t)};H(pe,e=>{L(l)&&L(u)>0&&e(me)});var he=F(pe,2);Im(P(he),{size:14,class:`text-fg-subtle`}),E(he);var ge=F(he,2),_e=e=>{var t=Ik();Ep(P(t),{size:14,class:`text-fg-subtle`}),E(t),R(`click`,t,()=>Nv(L(ie))),B(e,t)};H(ge,e=>{L(ie).length>0&&e(_e)});var ve=F(ge,2);gp(P(ve),{size:14,class:`text-fg-subtle`}),E(ve),E(_),E(i);var ye=F(i,2),be=P(ye);Ey(be,{get value(){return C.text.value},onInput:e=>{C.setText(e),Fl.value=e},onSubmit:()=>C.submit(),get serverErrors(){return C.errors.value},get fields(){return L(te)},class:`flex-1`,get ref(){return L(b)},set ref(e){N(b,e,!0)}});var xe=F(be,2);ik(xe,{get selection(){return C.window.value},onChange:e=>C.setWindow(e)});var Se=F(xe,2);ok(Se,{get count(){return C.pending},get live(){return C.live},onResume:()=>{Fl.value=``,C.resume()}});var Ce=F(Se,2),we=P(Ce);we.value=we.__value=`all`;var Te=F(we);Te.value=Te.__value=`error`;var Ee=F(Te);Ee.value=Ee.__value=`ok`,E(Ce);var De;fo(Ce);var Oe=F(Ce,2),ke=e=>{{let t=j(()=>[L(v)]);dy(e,{get facets(){return L(t)},get onClearAll(){return Bl}})}};H(Oe,e=>{L(y)&&e(ke)});var Ae=F(Oe,2),je=F(P(Ae),2);Co(je),G(je,`min`,0),G(je,`step`,50),Ke(2),E(Ae),E(ye);var Me=F(ye,2),Ne=P(Me),Pe=e=>{B(e,Lk())},Fe=e=>{B(e,Rk())},Ie=e=>{B(e,zk())},Le=e=>{var t=Vk(),i=P(t),a=P(i),o=P(a);Co(o),E(a);var s=F(a,2);n(s,()=>`Service`,()=>`service`);var c=F(s,2);n(c,()=>`Operation`,()=>`name`);var l=F(c,2);n(l,()=>`Duration`,()=>`duration`,()=>`end`);var u=F(l,2);n(u,()=>`Spans`,()=>`spans`,()=>`end`,()=>`trace-col-spans`);var f=F(u,2);n(f,()=>`Time`,()=>`time`,()=>void 0,()=>`trace-col-time`);var p=F(f,2);n(p,()=>`Status`,()=>`status`),Ke(2),E(i);var m=F(i,2);Pa(m,19,()=>L(ie),e=>e.traceId,(e,t,n)=>{{let i=j(()=>L(d).has(L(t).traceId));r(e,()=>L(t),()=>L(i),()=>L(n))}});var h=F(m,2),g=e=>{var t=Bk(),n=P(t,!0);E(t),$a(t,(e,t)=>Tk?.(e,t),()=>({onReach:()=>C.loadMore(),disabled:C.loading.value})),I(()=>V(n,C.loading.value?`Loading…`:`Scroll for more`)),B(e,t)};H(h,e=>{C.nextCursor.value&&e(g)}),E(t),I(()=>{G(a,`title`,L(T)?`Clear selection`:`Select all`),To(o,L(T))}),R(`click`,o,e=>e.stopPropagation()),R(`change`,o,()=>L(T)?fu():du()),B(e,t)};H(Ne,e=>{C.loading.value&&!C.ready.value&&L(a).length===0?e(Pe):L(ie).length===0&&!L(ue)?e(Fe,1):L(ie).length===0?e(Ie,2):e(Le,-1)}),E(Me),Uo(Me,e=>N(oe,e),()=>L(oe));var Re=F(Me,2),ze=e=>{ph(e,{onclose:()=>N(x,!1),onimport:async e=>{try{let t=Rv(await Vv(e));return t.success&&t.traces.length>0?(Bu(t.traces),{imported:t.traces.length,errors:[],warnings:t.warnings}):{imported:0,errors:t.errors,warnings:t.warnings}}catch(e){return{imported:0,errors:[String(e)],warnings:[]}}}})};H(Re,e=>{L(x)&&e(ze)}),E(t),I(e=>{V(c,` Traces (${(L(ue)?`${L(ie).length} of ${L(a).length}`:L(a).length)??``}) `),W(ne,1,e),G(ne,`title`,L(l)?`Resume live tail`:`Pause live tail`),V(fe,` ${L(l)?`Resume${L(u)>0?` (+${L(u)})`:``}`:`Pause`}`),De!==(De=L(h))&&(Ce.value=(Ce.__value=L(h))??``,uo(Ce,L(h))),wo(je,L(g)||``)},[()=>U(Q(`flex items-center gap-1 px-2 py-1 text-xs rounded transition-colors`,L(l)?`bg-warning-bg text-warning hover:bg-warning-bg/80`:`hover:bg-hover text-fg-muted`))]),R(`click`,ne,function(...e){Eu?.apply(this,e)}),R(`click`,he,()=>N(x,!0)),R(`click`,ve,()=>nl(nh)),R(`change`,Ce,e=>Il.value=e.currentTarget.value),R(`input`,je,e=>Ll.value=Number(e.currentTarget.value)||0),R(`keydown`,Me,function(...e){se.onKeyDown?.apply(this,e)}),B(e,t)};H(fe,e=>{L(c)?e(pe):e(me,-1)}),B(e,de),at()}ta([`click`,`keydown`,`change`,`input`]);var Wk=(e,t=p,n=p)=>{var r=Kk(),i=P(r),a=P(i,!0);E(i);var o=F(i,2),s=P(o,!0);E(o),E(r),I(()=>{V(a,t()),V(s,n())}),B(e,r)},Gk=(e,t=p,n=p,r=p)=>{var i=da(),a=Or(i),o=e=>{var i=qk(),a=P(i),o=P(a,!0);E(a);var s=F(a,2),c=P(s,!0);E(s),E(i),I(e=>{G(i,`title`,e),V(o,t()),V(c,n())},[()=>`View ${t().toLowerCase()} in the ${r()} tab`]),R(`click`,i,()=>ju(r())),B(e,i)},s=e=>{Wk(e,t,n)};H(a,e=>{n()>0?e(o):e(s,-1)}),B(e,i)},Kk=z(`<div><div class="text-[11px] uppercase tracking-wide text-fg-subtle"> </div> <div class="text-sm text-fg"> </div></div>`),qk=z(`<button type="button" class="group/stat text-left rounded -m-1 p-1 hover:bg-hover transition-colors"><div class="text-[11px] uppercase tracking-wide text-fg-subtle"> </div> <div class="text-sm text-accent group-hover/stat:underline"> </div></button>`),Jk=z(`<div class="border border-line rounded-md p-3 bg-surface"><div class="flex items-start justify-between gap-2 mb-2"><div><div class="text-sm font-medium text-fg"> </div> <div class="text-xs text-fg-subtle uppercase tracking-wide"> </div></div> <span> </span></div> <div class="grid grid-cols-2 gap-2 text-xs text-fg-muted sm:grid-cols-5"><!> <!> <!> <!> <!></div></div>`),Yk=z(`<option> </option>`),Xk=z(`<div class="text-center text-fg-subtle text-sm py-12">No resources derived yet. Send traces or logs with resource metadata.</div>`),Zk=z(`<div class="space-y-2"></div>`),Qk=z(`<div class="flex flex-col h-full p-4"><div class="flex flex-col gap-3 mb-4 pb-3 border-b border-line"><div class="flex items-center justify-between gap-2"><h3 class="text-sm font-semibold flex items-center gap-2 text-fg"><!> </h3></div> <div class="flex flex-wrap gap-2"><input type="search" placeholder="Filter resources" class="px-3 py-2 text-xs border border-line rounded-md min-w-[180px]"/> <select class="px-3 py-2 text-xs border border-line rounded-md bg-surface"><option>All types</option><!></select></div></div> <div class="flex-1 overflow-auto"><!></div></div>`);function $k(e,t){it(t,!0);let n=(e,t=p)=>{var n=Jk(),r=P(n),a=P(r),o=P(a),s=P(o,!0);E(o);var c=F(o,2),l=P(c,!0);E(c),E(a);var u=F(a,2),d=P(u,!0);E(u),E(r);var f=F(r,2),m=P(f);Wk(m,()=>`Requests`,()=>t().requestCount);var h=F(m,2);Gk(h,()=>`Errors`,()=>t().errorCount,()=>`errors`);var g=F(h,2);Gk(g,()=>`Traces`,()=>t().traceCount,()=>`traces`);var _=F(g,2);Gk(_,()=>`Logs`,()=>t().logCount,()=>`logs`);var v=F(_,2);{let e=j(()=>t().lastSeen?ad(t().lastSeen):`n/a`);Wk(v,()=>`Last Seen`,()=>L(e))}E(f),E(n),I(e=>{V(s,t().name),V(l,t().type),W(u,1,e),V(d,t().health)},[()=>U(Q(`px-2 py-1 rounded border text-[11px] font-medium capitalize`,i(t().health)))]),B(e,n)},r=[`service`,`database`,`cache`,`messaging`,`external`,`unknown`];function i(e){switch(e){case`healthy`:return`bg-success-bg text-success border-success-border`;case`degraded`:return`bg-warning-bg text-warning border-warning-border`;case`unhealthy`:return`bg-danger-bg text-danger border-danger-border`;default:return`bg-subtle text-fg-muted border-line`}}let a=j(()=>$l.value),o=M(``),s=M(`all`),c=j(()=>{let e=L(o).trim().toLowerCase();return L(a).filter(t=>(L(s)===`all`||t.type===L(s))&&Rg(e,[t.name]))});var l=Qk(),u=P(l),d=P(u),f=P(d),m=P(f);Qf(m,{size:16});var h=F(m);E(f),E(d);var g=F(d,2),_=P(g);Co(_);var v=F(_,2),y=P(v);y.value=y.__value=`all`,Pa(F(y),16,()=>r,e=>e,(e,t)=>{var n=Yk(),r=P(n,!0);E(n);var i={};I(()=>{V(r,t),i!==(i=t)&&(n.value=(n.__value=t)??``)}),B(e,n)}),E(v);var b;fo(v),E(g),E(u);var x=F(u,2),S=P(x),C=e=>{B(e,Xk())},w=e=>{var t=Zk();Pa(t,21,()=>L(c),e=>e.name,(e,t)=>{n(e,()=>L(t))}),E(t),B(e,t)};H(S,e=>{L(c).length===0?e(C):e(w,-1)}),E(x),E(l),I(()=>{V(h,` Resources (${L(a).length??``})`),wo(_,L(o)),b!==(b=L(s))&&(v.value=(v.__value=L(s))??``,uo(v,L(s)))}),R(`input`,_,e=>N(o,e.currentTarget.value,!0)),R(`change`,v,e=>N(s,e.currentTarget.value,!0)),B(e,l),at()}ta([`click`,`input`,`change`]);function eA(e){let t=e.severityNumber,n=(e.severityText??``).toUpperCase();return n===`ERROR`||t!==void 0&&t>=17?`error`:n===`WARN`||n===`WARNING`||t!==void 0&&t>=13?`warn`:`info`}function tA(e){if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function nA(e){try{return JSON.stringify({body:e.body,severity:e.severityText??null,severityNumber:e.severityNumber??null,timestamp:e.timestamp,traceId:e.traceId??null,attributes:e.attributes??{}},null,2)}catch{return tA(e.body)}}function rA(e,t,n){if(n!==`all`){let t=eA(e);if(n===`error`&&t!==`error`||n===`warn`&&t!==`warn`&&t!==`error`||n===`info`&&t!==`info`)return!1}return Rg(t.toLowerCase(),[tA(e.body),e.severityText,e.resourceName,e.traceId])}function iA(e){let t=eA(e);return t===`error`?`text-danger`:t===`warn`?`text-warning`:`text-fg-subtle`}function aA(e){let t=eA(e);return t===`error`?`bg-danger`:t===`warn`?`bg-warning`:`bg-line`}function oA(e){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function sA(e){try{return JSON.stringify(e.attributes??{},null,2)}catch{return`{}`}}var cA=z(`<span class="inline-flex items-baseline gap-1 max-w-[16rem] font-mono text-[11px] whitespace-nowrap"><span class="text-fg-subtle"> </span> <span class="text-fg-muted truncate"> </span></span>`),lA=z(`<span class="flex-shrink-0 text-fg-subtle truncate max-w-[10rem]"> </span>`),uA=z(`<button type="button" title="Go to trace" aria-label="Go to trace" class="flex-shrink-0 inline-flex items-center justify-center p-1 rounded text-fg-subtle hover:text-fg hover:bg-hover opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity"><!></button>`),dA=z(`<div class="font-mono text-xs break-words whitespace-pre-wrap pr-6"> </div>`),fA=z(`<pre class="font-mono text-[11px] text-fg-muted whitespace-pre-wrap break-words pr-6"> </pre>`),pA=z(`<div class="flex items-center gap-1"><button type="button" class="inline-flex items-center gap-1 text-xs text-fg-muted hover:underline"><!> Go to trace</button> <!></div>`),mA=z(`<div class="pl-3 pr-2 pb-2 space-y-2"><!> <!> <!></div>`),hA=z(`<div class="group relative flex flex-col border-b border-line-subtle hover:bg-hover"><span aria-hidden="true"></span> <div class="flex items-center gap-2 pl-3 pr-2 py-1 text-xs"><button type="button" class="flex flex-1 items-center gap-2 min-w-0 text-left"><span class="font-mono tabular-nums text-fg-subtle flex-shrink-0"> </span> <span> </span> <span class="font-mono text-fg truncate min-w-0"> </span> <span class="flex items-center gap-1.5 min-w-0 flex-1 overflow-hidden"></span> <!></button> <!> <!></div> <!></div>`),gA=z(`<button class="px-2 py-1 text-xs rounded text-fg-subtle hover:bg-hover transition-colors" title="Drop buffered logs received while paused">Drop buffer</button>`),_A=z(`<div class="text-center text-fg-subtle text-sm py-12">Loading logs…</div>`),vA=z(`<div class="text-center text-fg-subtle text-sm py-12">No logs yet. Send logs via AutotelLogExporter or POST /ingest/logs.</div>`),yA=z(`<div class="text-center text-fg-subtle text-sm py-12">No logs match the current filter.</div>`),bA=z(`<div class="px-4 py-3 text-center text-xs text-fg-subtle"> </div>`),xA=z(`<!> <!>`,1),SA=z(`<div class="flex flex-col h-full"><div class="px-4 py-3 border-b border-line flex items-center justify-between gap-2"><h3 class="text-sm font-semibold flex items-center gap-2 text-fg"><!> </h3> <div class="flex items-center gap-1"><button><!> </button> <!></div></div> <div class="px-4 py-2 border-b border-line flex items-center gap-2"><!> <!> <!> <select class="text-xs border border-line rounded px-1.5 py-1 bg-surface text-fg-muted"><option>All</option><option>Errors</option><option>Warn+</option><option>Info</option></select></div> <div class="flex-1 overflow-auto space-y-0"><!></div></div>`);function CA(e,t){it(t,!0);let n=(e,t=p)=>{let n=j(()=>tA(t().body)),r=j(()=>iA(t())),i=j(()=>aA(t())),a=j(()=>L(c).has(t().id));var o=hA(),s=P(o),u=F(s,2),d=P(u),f=P(d),m=P(f,!0);E(f);var h=F(f,2),_=P(h,!0);E(h);var v=F(h,2),y=P(v,!0);E(v);var x=F(v,2);Pa(x,21,()=>Kh(t().attributes??{},4),([e,t])=>e,(e,t)=>{var n=j(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=cA(),o=P(a),s=P(o,!0);E(o);var c=F(o,2),l=P(c,!0);E(c),E(a),I(()=>{G(a,`title`,`${r()}: ${i()}`),V(s,r()),V(l,i())}),B(e,a)}),E(x);var S=F(x,2),C=e=>{var n=lA(),r=P(n,!0);E(n),I(()=>V(r,t().resourceName)),B(e,n)};H(S,e=>{t().resourceName&&e(C)}),E(d);var w=F(d,2),ee=e=>{var n=uA();Jp(P(n),{size:12}),E(n),R(`click`,n,()=>b(t())),B(e,n)};H(w,e=>{t().traceId&&e(ee)});var te=F(w,2);{let e=j(()=>nA(t()));Qg(te,{get value(){return L(e)},label:`Copy log as JSON`,class:`flex-shrink-0 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity`})}E(u);var ne=F(u,2),re=e=>{var r=mA(),i=P(r);Pg(i,{get content(){return L(n)},children:(e,t)=>{var r=dA(),i=P(r,!0);E(r),I(()=>V(i,L(n))),B(e,r)},$$slots:{default:!0}});var a=F(i,2),o=e=>{{let n=j(()=>sA(t()));Pg(e,{get content(){return L(n)},children:(e,n)=>{var r=fA(),i=P(r,!0);E(r),I(e=>V(i,e),[()=>sA(t())]),B(e,r)},$$slots:{default:!0}})}},s=j(()=>t().attributes&&Object.keys(t().attributes).length>0);H(a,e=>{L(s)&&e(o)});var c=F(a,2),l=e=>{var n=pA(),r=P(n);Jp(P(r),{size:12}),Ke(),E(r),Qg(F(r,2),{get value(){return t().traceId},label:`Copy trace ID`}),E(n),R(`click`,r,()=>b(t())),B(e,n)};H(c,e=>{t().traceId&&e(l)}),E(r),B(e,r)};H(ne,e=>{L(a)&&e(re)}),E(o),I((e,r,i)=>{W(s,1,e),G(d,`aria-expanded`,L(a)),G(d,`title`,L(a)?`Collapse log`:`Expand log`),V(m,r),W(h,1,i),V(_,t().severityText??`LOG`),V(y,L(n))},[()=>U(Q(`absolute inset-y-0 left-0 w-0.5`,L(i))),()=>oA(t().timestamp),()=>U(Q(`flex-shrink-0 font-medium uppercase tracking-wide text-[10px]`,L(r)))]),R(`click`,d,()=>l(t().id)),B(e,o)},r=j(()=>Yl.value),i=j(()=>El.value),a=j(()=>Al.value),o=M(``),s=M(`all`),c=M(_r(new Set));function l(e){let t=new Set(L(c));t.has(e)?t.delete(e):t.add(e),N(c,t,!0)}let u=wk({client:{fetch:globalThis.fetch.bind(globalThis),baseUrl:()=>(hl.value?$o(hl.value):null)??globalThis.location.origin}});Rr(()=>()=>u.dispose());let d=M(null),f=M(_r([]));Rr(()=>{let e=(hl.value?$o(hl.value):null)??globalThis.location.origin;e!==L(d)&&(N(d,e,!0),sk(`logs`,{fetch:globalThis.fetch.bind(globalThis),baseUrl:e}).then(e=>N(f,e,!0)),u.refresh())});let m=M(0);Rr(()=>{let e=L(r).length;e>L(m)&&u.arrived(e-L(m)),N(m,e,!0)});let h=j(()=>u.results.value),_=j(()=>{let e=u.ready.value&&u.failure.value===null,t=L(r);e&&(t=L(o).length>0?L(h):v(L(h),L(r)));let n=new Set;return t.filter(t=>!n.has(t.id)&&n.add(t.id)&&rA(t,e?``:L(o),L(s)))});function v(e,t){let n=new Set(e.map(e=>e.id));return[...e,...t.filter(e=>!n.has(e.id))]}let y=j(()=>L(o).length>0||L(s)!==`all`);function b(e){e.traceId&&(Mu(e.traceId),ju(`traces`))}var x=SA(),S=P(x),C=P(S),w=P(C);Ap(w,{size:16});var ee=F(w);E(C);var te=F(C,2),ne=P(te),re=P(ne),ie=e=>{gm(e,{size:12})},ae=e=>{fm(e,{size:12})};H(re,e=>{L(i)?e(ie):e(ae,-1)});var oe=F(re);E(ne);var se=F(ne,2),ce=e=>{var t=gA();R(`click`,t,function(...e){Du?.apply(this,e)}),B(e,t)};H(se,e=>{L(i)&&L(a)>0&&e(ce)}),E(te),E(S);var le=F(S,2),ue=P(le);Ey(ue,{get value(){return u.text.value},onInput:e=>{u.setText(e),N(o,e,!0)},onSubmit:()=>u.submit(),get serverErrors(){return u.errors.value},get fields(){return L(f)},placeholder:`Filter — e.g. severity_number >= 17 AND service = api`,class:`flex-1`});var T=F(ue,2);ik(T,{get selection(){return u.window.value},onChange:e=>u.setWindow(e)});var de=F(T,2);ok(de,{get count(){return u.pending},get live(){return u.live},onResume:()=>{N(o,``),u.resume()}});var fe=F(de,2),pe=P(fe);pe.value=pe.__value=`all`;var me=F(pe);me.value=me.__value=`error`;var he=F(me);he.value=he.__value=`warn`;var ge=F(he);ge.value=ge.__value=`info`,E(fe);var _e;fo(fe),E(le);var ve=F(le,2),ye=P(ve),be=e=>{B(e,_A())},xe=e=>{B(e,vA())},Se=e=>{B(e,yA())},Ce=e=>{var t=xA(),r=Or(t);Pa(r,17,()=>L(_),e=>e.id,(e,t)=>{n(e,()=>L(t))});var i=F(r,2),a=e=>{var t=bA(),n=P(t,!0);E(t),$a(t,(e,t)=>Tk?.(e,t),()=>({onReach:()=>u.loadMore(),disabled:u.loading.value})),I(()=>V(n,u.loading.value?`Loading…`:`Scroll for more`)),B(e,t)};H(i,e=>{u.nextCursor.value&&e(a)}),B(e,t)};H(ye,e=>{u.loading.value&&!u.ready.value&&L(r).length===0?e(be):L(_).length===0&&!L(y)?e(xe,1):L(_).length===0?e(Se,2):e(Ce,-1)}),E(ve),E(x),I(e=>{V(ee,` Logs (${L(_).length??``})`),W(ne,1,e),G(ne,`title`,L(i)?`Resume live tail`:`Pause live tail`),V(oe,` ${L(i)?`Resume${L(a)>0?` (+${L(a)})`:``}`:`Pause`}`),_e!==(_e=L(s))&&(fe.value=(fe.__value=L(s))??``,uo(fe,L(s)))},[()=>U(Q(`flex items-center gap-1 px-2 py-1 text-xs rounded transition-colors`,L(i)?`bg-warning-bg text-warning hover:bg-warning-bg`:`hover:bg-hover text-fg-muted`))]),R(`click`,ne,function(...e){Eu?.apply(this,e)}),R(`change`,fe,e=>N(s,e.currentTarget.value,!0)),B(e,x),at()}ta([`click`,`change`]);var wA=z(`<p class="p-3 text-xs text-fg-muted">No stack frames on this error.</p>`),TA=z(`<button type="button"><span class="font-mono text-xs text-fg"> </span> <span class="font-mono text-[11px] text-fg-subtle"> </span></button>`),EA=z(`<div class="flex flex-col items-start gap-0.5 px-3 py-2"><span class="flex items-center gap-2"><span class="font-mono text-xs text-fg-muted"> </span> <span class="rounded bg-subtle px-1.5 py-0.5 text-[10px] text-fg-subtle"> </span></span> <span class="font-mono text-[11px] text-fg-muted"> </span></div>`),DA=z(`<li><!></li>`),OA=z(`<ol class="divide-y divide-line-subtle"></ol>`);function kA(e,t){it(t,!0);let n=J(t,`selected`,3,null),r={dependency:`node_modules`,native:`runtime`};function i(e){return`${e.file}:${e.line}:${e.column}`}function a(e){return n()!==null&&n().file===e.file&&n().line===e.line&&n().column===e.column}var o=da(),s=Or(o),c=e=>{B(e,wA())},l=e=>{var n=OA();Pa(n,21,()=>t.frames,Aa,(e,n)=>{let o=j(()=>L(n).kind===`app`?null:r[L(n).kind]);var s=DA(),c=P(s),l=e=>{var r=TA(),o=P(r),s=P(o,!0);E(o);var c=F(o,2),l=P(c,!0);E(c),E(r),I((e,t)=>{W(r,1,e),V(s,L(n).function??`(anonymous)`),V(l,t)},[()=>U(Q(`flex w-full flex-col items-start gap-0.5 px-3 py-2 text-left transition-colors hover:bg-hover`,a(L(n))&&`bg-subtle border-l-2 border-accent`)),()=>i(L(n))]),R(`click`,r,()=>t.onselect?.(L(n))),B(e,r)},u=e=>{var t=EA(),r=P(t),a=P(r),s=P(a,!0);E(a);var c=F(a,2),l=P(c,!0);E(c),E(r);var u=F(r,2),d=P(u,!0);E(u),E(t),I(e=>{V(s,L(n).function??`(anonymous)`),V(l,L(o)),V(d,e)},[()=>i(L(n))]),B(e,t)};H(c,e=>{L(n).kind===`app`?e(l):e(u,-1)}),E(s),B(e,s)}),E(n),B(e,n)};H(s,e=>{t.frames.length===0?e(c):e(l,-1)}),B(e,o),at()}ta([`click`]);var AA=z(`<p class="p-3 text-xs text-fg-muted">This file could not be read. It may be outside the project, or generated
13
+ rather than written.</p>`),jA=z(`<button type="button" class="rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-hover">Open in editor</button>`),MA=z(`<li><span class="w-8 shrink-0 select-none text-right text-fg-subtle"> </span> <span class="whitespace-pre"> </span></li>`),NA=z(`<div class="flex flex-col"><div class="flex items-center justify-between border-b border-line px-3 py-1.5"><span class="font-mono text-[11px] text-fg-subtle"> </span> <!></div> <ol class="overflow-x-auto py-1"></ol></div>`);function PA(e,t){it(t,!0);var n=da(),r=Or(n),i=e=>{B(e,AA())},a=e=>{var n=NA(),r=P(n),i=P(r),a=P(i);E(i);var o=F(i,2),s=e=>{var n=jA();R(`click`,n,()=>t.onopen?.(t.window)),B(e,n)};H(o,e=>{t.onopen&&e(s)}),E(r);var c=F(r,2);Pa(c,21,()=>t.window.lines,Aa,(e,n,r)=>{let i=j(()=>t.window.startLine+r),a=j(()=>L(i)===t.window.line);var o=MA(),s=P(o),c=P(s,!0);E(s);var l=F(s,2),u=P(l,!0);E(l),E(o),I(e=>{G(o,`aria-current`,L(a)?`true`:void 0),W(o,1,e),V(c,L(i)),V(u,L(n))},[()=>U(Q(`flex gap-3 px-3 font-mono text-[11px] leading-5`,L(a)?`bg-danger-bg text-fg`:`text-fg-muted`))]),B(e,o)}),E(c),E(n),I(()=>V(a,`${t.window.file??``}:${t.window.line??``}`)),B(e,n)};H(r,e=>{t.window===null?e(i):e(a,-1)}),B(e,n),at()}ta([`click`]);function FA(e){return e.startsWith(`node:`)||e.startsWith(`[`)||e.startsWith(`<`)?`native`:/(^|[/\\])node_modules([/\\]|$)/.test(e)?`dependency`:`app`}var IA=/^\s*at\s+(?:async\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,LA=/^\s*at\s+(?:async\s+)?(.+?):(\d+):(\d+)$/;function RA(e){if(!e.startsWith(`file://`))return e;try{let t=decodeURIComponent(new URL(e).pathname);return/^\/[A-Za-z]:/.test(t)?t.slice(1):t}catch{return e}}function zA(e){let t=[];for(let n of e.split(`
14
+ `)){let e=IA.exec(n);if(e){let n=RA(e[2]);t.push({function:e[1],file:n,line:Number(e[3]),column:Number(e[4]),kind:FA(n)});continue}let r=LA.exec(n);if(r){let e=RA(r[1]);t.push({file:e,line:Number(r[2]),column:Number(r[3]),kind:FA(e)})}}return t}var BA=z(`<div class="overflow-hidden rounded border border-line"><!></div>`),VA=z(`<div class="flex flex-col gap-2"><div class="overflow-hidden rounded border border-line"><!></div> <!></div>`);function HA(e,t){it(t,!0);let n=J(t,`context`,3,4),r=j(()=>zA(t.stackTrace)),i=M(null),a=M(null),o=M(!1),s=0;async function c(e){N(i,e,!0),N(o,!1);let r=++s,c=await t.loadSource(e,n());r===s&&(N(a,c,!0),N(o,!0))}var l=da(),u=Or(l),d=e=>{var t=VA(),n=P(t);kA(P(n),{get frames(){return L(r)},get selected(){return L(i)},onselect:c}),E(n);var s=F(n,2),l=e=>{var t=BA();PA(P(t),{get window(){return L(a)}}),E(t),B(e,t)};H(s,e=>{L(o)&&e(l)}),E(t),B(e,t)};H(u,e=>{L(r).length>0&&e(d)}),B(e,l),at()}function UA(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s ago`;let n=Math.floor(t/60);if(n<60)return`${n}m ago`;let r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}var WA=z(`<span class="px-1.5 py-0.5 text-xs font-medium bg-hover text-fg-muted rounded"> </span>`),GA=z(`<pre class="text-xs font-mono bg-code text-fg p-2 rounded overflow-x-auto whitespace-pre-wrap"> </pre>`),KA=z(`<div><h5 class="text-xs font-semibold text-fg-muted mb-1.5">Stack Trace</h5> <!> <details class="mt-2"><summary class="cursor-pointer text-[11px] text-fg-subtle hover:text-fg">Raw stack</summary> <!></details></div>`),qA=z(`<span class="px-2 py-0.5 text-xs font-mono bg-hover text-fg-muted rounded"> </span>`),JA=z(`<div><h5 class="text-xs font-semibold text-fg-muted mb-1.5">Affected Operations</h5> <div class="flex flex-wrap gap-1"></div></div>`),YA=z(`<div class="group flex items-center gap-1"><button class="flex items-center gap-1 text-xs text-fg-muted hover:text-fg font-mono"><!> <!></button> <!></div>`),XA=z(`<div><h5 class="text-xs font-semibold text-fg-muted mb-1.5">Recent Traces</h5> <div class="space-y-1"></div></div>`),ZA=z(`<div class="flex gap-2"><span class="text-fg-subtle"> </span> <span class="font-mono text-fg-muted"> </span></div>`),QA=z(`<div><h5 class="text-xs font-semibold text-fg-muted mb-1.5">Context</h5> <div class="text-xs space-y-0.5"></div></div>`),$A=z(`<div class="border-t border-line p-3 bg-subtle space-y-3"><!> <!> <!> <!> <div class="text-xs text-fg-subtle pt-2 border-t border-line"><div class="flex gap-4"><span> </span> <span> </span></div></div></div>`),ej=z(`<div role="option"><button class="w-full p-3 flex items-start gap-3 hover:bg-subtle transition-colors text-left"><div class="mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="flex items-center gap-2 mb-1"><span class="text-sm font-semibold text-danger"> </span> <span class="px-1.5 py-0.5 text-xs font-medium bg-danger-bg text-danger rounded"> </span> <!></div> <div class="group flex items-start gap-1 mb-2"><p class="text-sm text-fg-muted truncate"> </p> <!></div> <div class="flex items-center gap-4 text-xs text-fg-subtle"><span class="flex items-center gap-1"><!> </span> <span class="flex items-center gap-1"><!> </span></div></div></button> <!></div>`),tj=z(`<span class="text-xs font-normal text-fg-muted"> </span>`),nj=z(`<span class="ml-1 px-2 py-0.5 text-xs font-medium bg-danger-bg text-danger rounded-full"> </span>`),rj=z(`<div class="flex gap-4 mb-4 p-3 bg-subtle rounded-md border border-line"><div class="text-sm"><span class="text-fg-muted">Groups:</span> <span class="font-semibold text-fg"> </span></div> <div class="text-sm"><span class="text-fg-muted">Total:</span> <span class="font-semibold text-fg"> </span></div> <div class="text-sm"><span class="text-fg-muted">Last hour:</span> <span class="font-semibold text-danger"> </span></div></div>`),ij=z(`<div class="flex flex-col items-center justify-center h-full text-fg-subtle py-12"><!> <p class="text-sm">No errors captured</p> <p class="text-xs text-fg-subtle mt-1">Errors from failed traces will appear here</p></div>`),aj=z(`<div class="flex flex-col items-center justify-center h-full text-fg-subtle py-12"><!> <p class="text-sm">No matching errors</p> <p class="text-xs text-fg-subtle mt-1">No error groups match the current filter</p></div>`),oj=z(`<div class="flex flex-col h-full p-4"><div class="flex items-center justify-between mb-4 pb-3 border-b border-line"><h3 class="text-sm font-semibold flex items-center gap-2 text-fg"><!> Errors <!> <!></h3> <div class="flex items-center gap-2"><select class="text-xs border border-line rounded px-2 py-1 bg-surface text-fg-muted"><option>Most Recent</option><option>Most Frequent</option></select></div></div> <!> <!> <div role="listbox" tabindex="0" aria-label="Error groups" class="flex-1 overflow-auto space-y-2 focus:outline-none"><!></div></div>`);function sj(e,t){it(t,!0);let n=(e,t=p,n=p,r=p,i=p)=>{let a=j(()=>Date.now()-t().firstSeen),o=j(()=>Date.now()-t().lastSeen);var s=ej(),c=P(s),l=P(c),u=P(l),d=e=>{cp(e,{size:16,class:`text-fg-subtle`})},f=e=>{fp(e,{size:16,class:`text-fg-subtle`})};H(u,e=>{n()?e(d):e(f,-1)}),E(l);var v=F(l,2),y=P(v),b=P(y),x=P(b,!0);E(b);var S=F(b,2),C=P(S);E(S);var w=F(S,2),ee=e=>{var n=WA(),r=P(n,!0);E(n),I(()=>V(r,t().service)),B(e,n)};H(w,e=>{t().service&&e(ee)}),E(y);var te=F(y,2),ne=P(te),re=P(ne,!0);E(ne);var ie=F(ne,2);{let e=j(()=>`${t().type}: ${t().message}`);Qg(ie,{get value(){return L(e)},label:`Copy error message`,class:`opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity`})}E(te);var ae=F(te,2),oe=P(ae),se=P(oe);vp(se,{size:12});var ce=F(se);E(oe);var le=F(oe,2),ue=P(le);vp(ue,{size:12});var T=F(ue);E(le),E(ae),E(v),E(c);var de=F(c,2),fe=e=>{var n=$A(),r=P(n),i=e=>{var n=KA(),r=F(P(n),2);HA(r,{get stackTrace(){return t().stackTrace},get loadSource(){return rs}});var i=F(r,2);Pg(F(P(i),2),{get content(){return t().stackTrace},children:(e,n)=>{var r=GA(),i=P(r,!0);E(r),I(()=>V(i,t().stackTrace)),B(e,r)},$$slots:{default:!0}}),E(i),E(n),B(e,n)};H(r,e=>{t().stackTrace&&e(i)});var a=F(r,2),o=e=>{var n=JA(),r=F(P(n),2);Pa(r,21,()=>t().affectedSpans,Aa,(e,t)=>{var n=qA(),r=P(n,!0);E(n),I(()=>V(r,L(t))),B(e,n)}),E(r),E(n),B(e,n)};H(a,e=>{t().affectedSpans.length>0&&e(o)});var s=F(a,2),c=e=>{var n=XA(),r=F(P(n),2);Pa(r,20,()=>t().affectedTraces.slice(0,5),e=>e,(e,t)=>{var n=YA(),r=P(n),i=P(r);Bp(i,{size:10});var a=F(i);Op(F(a),{size:10}),E(r),Qg(F(r,2),{get value(){return t},label:`Copy trace ID`,size:10,class:`opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity`}),E(n),I(e=>V(a,` ${e??``}... `),[()=>t.slice(0,16)]),R(`click`,r,()=>_(t)),B(e,n)}),E(r),E(n),B(e,n)};H(s,e=>{t().affectedTraces.length>0&&e(c)});var l=F(s,2),u=e=>{var n=QA(),r=F(P(n),2);Pa(r,21,()=>Object.entries(t().attributes),([e,t])=>e,(e,t)=>{var n=j(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=ZA(),o=P(a),s=P(o);E(o);var c=F(o,2),l=P(c,!0);E(c),E(a),I(e=>{V(s,`${r()??``}:`),V(l,e)},[()=>String(i())]),B(e,a)}),E(r),E(n),B(e,n)},d=j(()=>t().attributes&&Object.keys(t().attributes).length>0);H(l,e=>{L(d)&&e(u)});var f=F(l,2),p=P(f),m=P(p),h=P(m);E(m);var v=F(m,2),y=P(v);E(v),E(p),E(f),E(n),I((e,t)=>{V(h,`First seen: ${e??``}`),V(y,`Last seen: ${t??``}`)},[()=>ad(t().firstSeen),()=>ad(t().lastSeen)]),B(e,n)};H(de,e=>{n()&&e(fe)}),E(s),I((e,n)=>{G(s,`aria-selected`,i()),G(s,`data-row-index`,r()),W(s,1,`border border-line rounded-md bg-surface overflow-hidden${i()?` ring-1 ring-inset ring-accent bg-accent/10`:``}`),V(x,t().type),V(C,`${t().count??``}x`),V(re,t().message),V(ce,` First: ${e??``}`),V(T,` Last: ${n??``}`)},[()=>UA(L(a)),()=>UA(L(o))]),R(`click`,c,()=>{m.cursor=r(),h(t().fingerprint)}),B(e,s)};function r(e,t){return Rg(t.toLowerCase(),[e.type,e.message,...e.affectedTraces])}let i=M(`recent`),a=M(null),o=M(``),s=M(void 0),c=j(()=>L(i)===`recent`?iu.value:au.value),l=j(()=>L(c).filter(e=>r(e,L(o)))),u=j(()=>L(o).length>0),d=j(()=>ou.value),f=j(()=>su.value),m=kk({count:()=>L(l).length,onActivate:e=>{let t=L(l)[e];t&&h(t.fingerprint)},scrollToIndex:e=>L(s)?.querySelector(`[data-row-index="${e}"]`)?.scrollIntoView({block:`nearest`})});function h(e){N(a,L(a)===e?null:e,!0)}function _(e){Mu(e),ju(`traces`)}var v=oj(),y=P(v),b=P(y),x=P(b);Pm(x,{size:16,class:`text-danger`});var S=F(x,2),C=e=>{var t=tj(),n=P(t);E(t),I(()=>V(n,`(${L(l).length??``} of ${L(c).length??``})`)),B(e,t)};H(S,e=>{L(u)&&e(C)});var w=F(S,2),ee=e=>{var t=nj(),n=P(t,!0);E(t),I(()=>V(n,L(d))),B(e,t)};H(w,e=>{L(d)>0&&e(ee)}),E(b);var te=F(b,2),ne=P(te),re=P(ne);re.value=re.__value=`recent`;var ie=F(re);ie.value=ie.__value=`frequent`,E(ne);var ae;fo(ne),E(te),E(y);var oe=F(y,2),se=e=>{Lg(e,{class:`mb-4`,inputClass:`border-line bg-subtle text-fg focus:border-line focus:ring-1 focus:ring-accent`,placeholder:`Filter by type, message, trace id…`,ariaLabel:`Filter errors`,get value(){return L(o)},set value(e){N(o,e,!0)}})};H(oe,e=>{L(c).length>0&&e(se)});var ce=F(oe,2),le=e=>{var t=rj(),n=P(t),r=F(P(n),2),i=P(r,!0);E(r),E(n);var a=F(n,2),o=F(P(a),2),s=P(o,!0);E(o),E(a);var p=F(a,2),m=F(P(p),2),h=P(m,!0);E(m),E(p),E(t),I(()=>{V(i,L(u)?`${L(l).length} of ${L(c).length}`:L(c).length),V(s,L(d)),V(h,L(f))}),B(e,t)};H(ce,e=>{L(d)>0&&e(le)});var ue=F(ce,2),T=P(ue),de=e=>{var t=ij();Pm(P(t),{size:32,class:`mb-2 text-fg-subtle`}),Ke(4),E(t),B(e,t)},fe=e=>{var t=aj();Sm(P(t),{size:32,class:`mb-2 text-fg-subtle`}),Ke(4),E(t),B(e,t)},pe=e=>{var t=da();Pa(Or(t),19,()=>L(l),e=>e.fingerprint,(e,t,r)=>{n(e,()=>L(t),()=>L(a)===L(t).fingerprint,()=>L(r),()=>m.cursor===L(r))}),B(e,t)};H(T,e=>{L(c).length===0?e(de):L(l).length===0?e(fe,1):e(pe,-1)}),E(ue),Uo(ue,e=>N(s,e),()=>L(s)),E(v),I(()=>{ae!==(ae=L(i))&&(ne.value=(ne.__value=L(i))??``,uo(ne,L(i)))}),R(`change`,ne,e=>N(i,e.target.value,!0)),R(`keydown`,ue,function(...e){m.onKeyDown?.apply(this,e)}),B(e,v),at()}ta([`click`,`change`,`keydown`]);var cj={traces:Uk,resources:$k,logs:CA,errors:sj},lj=[{id:`traces`,label:`Traces`,icon:wp},{id:`agents`,label:`Agents`,icon:Xf},{id:`genai`,label:`GenAI`,icon:Em},{id:`flow`,label:`Flow`,icon:Rm},{id:`resources`,label:`Resources`,icon:Qf},{id:`service-map`,label:`Service Map`,icon:im},{id:`metrics`,label:`Metrics`,icon:ip},{id:`logs`,label:`Logs`,icon:Ap},{id:`errors`,label:`Errors`,icon:Pm},{id:`security`,label:`Security`,icon:wm},{id:`compare`,label:`Compare`,icon:Ip},{id:`coverage`,label:`Coverage`,icon:bm},{id:`webmcp`,label:`WebMCP`,icon:Bm}].filter(e=>cj[e.id]!==void 0),uj=lj.map(e=>e.id),dj=16,fj=48;function pj(e){let{isVertical:t,dock:n,axisSize:r,setSize:i,resetSize:a}=e,o=M(!1);return{get resizing(){return L(o)},onPointerDown:e=>{e.stopPropagation();let a=t(),s=a?`vertical`:`horizontal`,c=a?e.clientY:e.clientX,l=r(),u=n()===`bottom`||n()===`right`?-1:1;tg(e,{cursor:a?`ns-resize`:`ew-resize`,onStart:()=>N(o,!0),onMove:e=>{let t=a?e.clientY:e.clientX;i(s,l+(t-c)*u)},onEnd:()=>N(o,!1)})},onKeyDown:e=>{let a=t()?`vertical`:`horizontal`,o=e.shiftKey?fj:dj,s=t()?{ArrowUp:n()===`bottom`?o:-o,ArrowDown:n()===`bottom`?-o:o}:{ArrowLeft:n()===`right`?o:-o,ArrowRight:n()===`right`?-o:o};e.key in s&&(e.preventDefault(),i(a,r()+s[e.key]))},onDblClick:()=>a(t()?`vertical`:`horizontal`)}}function mj(e,t,n,r){let i={left:e,right:n-e,top:t,bottom:r-t};return Object.keys(i).reduce((e,t)=>i[t]<i[e]?t:e)}function hj(e){let{dock:t,pipActive:n,onDock:r}=e,i=M(!1),a=M(null);return{get dragging(){return L(i)},get dropTarget(){return L(a)},onHeaderPointerDown:e=>{e.button===0&&(e.target.closest(`button`)||n()||tg(e,{cursor:`grabbing`,onStart:()=>{N(i,!0),N(a,t(),!0)},onMove:e=>{N(a,mj(e.clientX,e.clientY,window.innerWidth,window.innerHeight),!0)},onEnd:()=>{N(i,!1),L(a)&&L(a)!==t()&&r(L(a)),N(a,null)}}))}}}function gj(e,t){it(t,!0);let n=j(()=>Hc.value),r=j(()=>cj[L(n)]??cj.traces);var i=da(),a=Or(i),o=e=>{var t=da();Va(Or(t),()=>L(r),(e,t)=>{t(e,{})}),B(e,t)};H(a,e=>{L(r)&&e(o)}),B(e,i),at()}var _j=z(`<span class="absolute inset-0 rounded-full bg-success opacity-75 animate-ping" aria-hidden="true"></span>`),vj=z(`<span class="text-xs font-mono tabular-nums text-fg-subtle" title="Telemetry ingest rate"> </span>`),yj=z(`<span class="text-xs font-mono tabular-nums text-fg-subtle" title="Telemetry store usage and retention cap"> </span>`),bj=z(`<span> </span> <!> <!>`,1),xj=z(`<div role="status"><span class="relative inline-flex w-2 h-2 shrink-0"><!> <span aria-hidden="true"></span></span> <!></div>`);function Sj(e,t){it(t,!0);let n=J(t,`compact`,3,!1),r=j(()=>ml.value),i=j(()=>L(r)===`connected`?{dot:`bg-success`,label:`Connected`,text:`text-success`}:L(r)===`connecting`?{dot:`bg-warning animate-pulse`,label:`Connecting…`,text:`text-warning`}:{dot:`bg-danger`,label:`Disconnected`,text:`text-fg-subtle`}),a=j(()=>xl.value),o=M(!1);Rr(()=>{if(L(a),L(a)===0)return;N(o,!0);let e=setTimeout(()=>N(o,!1),900);return()=>clearTimeout(e)});let s=M(0);Rr(()=>{if(n())return;let e=()=>{N(s,Math.round(Tl(5e3).total),!0)};e();let t=setInterval(e,1e3);return()=>clearInterval(t)});let c=j(()=>!n()&&L(r)===`connected`&&L(s)>0),l=M(null);Rr(()=>{if(n()||L(r)!==`connected`)return;let e=!0,t=async()=>{let t=hl.value,n=(t?$o(t):null)??globalThis.location?.origin;if(n)try{let t=await fetch(`${n}/api/stats`);t.ok&&e&&N(l,await t.json(),!0)}catch{}};t();let i=setInterval(t,3e4);return()=>{e=!1,clearInterval(i)}});function u(e){return e<1024**2?`${Math.round(e/1024)} KB`:e<1024**3?`${(e/1024**2).toFixed(1)} MB`:`${(e/1024**3).toFixed(1)} GB`}var d=xj(),f=P(d),p=P(f),m=e=>{B(e,_j())};H(p,e=>{L(o)&&L(r)===`connected`&&e(m)});var h=F(p,2);E(f);var g=F(f,2),_=e=>{var t=bj(),n=Or(t),r=P(n,!0);E(n);var a=F(n,2),o=e=>{var t=vj(),n=P(t);E(t),I(()=>V(n,`· ${L(s)??``}/s`)),B(e,t)};H(a,e=>{L(c)&&e(o)});var d=F(a,2),f=e=>{var t=yj(),n=P(t);E(t),I((e,t)=>V(n,`· ${e??``} / ${t??``}`),[()=>u(L(l).bytesUsed),()=>u(L(l).maxBytes)]),B(e,t)};H(d,e=>{L(l)&&e(f)}),I(e=>{W(n,1,e),V(r,L(i).label)},[()=>U(Q(`text-xs font-medium`,L(i).text))]),B(e,t)};H(g,e=>{n()||e(_)}),E(d),I((e,t)=>{W(d,1,e),G(d,`aria-label`,`OTLP receiver: ${L(i).label}`),G(d,`title`,`OTLP receiver: ${L(i).label}${L(s)>0?` · ${L(s)}/s`:``}`),W(h,1,t)},[()=>U(Q(`flex items-center gap-1.5`,!n()&&`px-3 py-2`)),()=>U(Q(`relative inline-block w-2 h-2 rounded-full`,L(i).dot))]),B(e,d),at()}var Cj=z(`<kbd class="inline-block px-1.5 py-0.5 font-mono text-xs font-semibold bg-hover border border-line rounded text-fg mr-1 last:mr-0 shadow-[0_1px_0_#d4d4d8]"> </kbd>`),wj=z(`<tr class="border-b border-line-subtle last:border-b-0"><td class="py-2.5 px-4 whitespace-nowrap align-middle w-[1%]"></td><td class="py-2.5 pr-4 pl-1 text-sm text-fg-muted align-middle"> </td></tr>`),Tj=z(`<div class="fixed inset-0 z-[1000] flex items-center justify-center" role="dialog" aria-modal="true" aria-label="Keyboard shortcuts"><button type="button" aria-label="Close" class="absolute inset-0 bg-black/55 backdrop-blur-[2px] at-backdrop-in"></button> <div tabindex="-1" class="at-modal-in relative z-[1] bg-surface border border-line rounded-lg shadow-xl w-[480px] max-w-[90vw] max-h-[80vh] flex flex-col overflow-hidden outline-none"><div class="flex items-center justify-between px-4 py-3 border-b border-line bg-subtle flex-shrink-0"><span class="text-sm font-semibold text-fg">Keyboard Shortcuts</span> <button class="inline-flex items-center justify-center w-7 h-7 p-0 bg-transparent border border-line rounded cursor-pointer text-sm text-fg-subtle hover:bg-danger-bg hover:border-danger-border hover:text-danger transition-colors" title="Close (Esc)"><!></button></div> <div class="overflow-y-auto py-2"><table class="w-full border-collapse"><tbody></tbody></table></div></div></div>`);function Ej(e,t){it(t,!0);let n=M(void 0);Rr(()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),t.onClose())},r=L(n);return r&&(r.addEventListener(`keydown`,e),r.focus()),window.addEventListener(`keydown`,e),()=>{r&&r.removeEventListener(`keydown`,e),window.removeEventListener(`keydown`,e)}});var r=Tj(),i=P(r),a=F(i,2),o=P(a),s=F(P(o),2);Hm(P(s),{size:14}),E(s),E(o);var c=F(o,2),l=P(c),u=P(l);Pa(u,21,()=>t.shortcuts,Aa,(e,t)=>{var n=wj(),r=P(n);Pa(r,21,()=>L(t).keys,Aa,(e,t)=>{var n=Cj(),r=P(n,!0);E(n),I(()=>V(r,L(t)===`CmdOrCtrl`?oh?`⌘`:`Ctrl`:L(t)===`AltOrOpt`?oh?`⌥`:`Alt`:L(t))),B(e,n)}),E(r);var i=F(r),a=P(i,!0);E(i),E(n),I(()=>V(a,L(t).description)),B(e,n)}),E(u),E(l),E(c),E(a),Uo(a,e=>N(n,e),()=>L(n)),E(r),R(`click`,i,function(...e){t.onClose?.apply(this,e)}),R(`click`,s,function(...e){t.onClose?.apply(this,e)}),B(e,r),at()}ta([`click`]);var Dj=z(`<div role="separator" aria-label="Resize panel" tabindex="0" title="Drag to resize · double-click to reset"><div></div> <div></div></div>`),Oj=z(`<span class="text-fg-subtle/60 flex-shrink-0 pl-0.5" aria-hidden="true"><!></span>`),kj=z(`<span> </span>`),Aj=z(`<button><!> <span> </span> <!></button>`),jj=z(`<button class="p-1.5 rounded-md text-fg-subtle hover:text-fg hover:bg-subtle transition-colors" title="Dock position (click to cycle: bottom → right → left) — or drag the header to an edge" aria-label="Change dock position"><!></button>`),Mj=z(`<button class="p-1.5 rounded-md text-fg-subtle hover:text-fg hover:bg-subtle transition-colors"><!></button>`),Nj=z(`<button class="p-1.5 rounded-md text-fg-subtle hover:text-fg hover:bg-subtle transition-colors" title="Close (Esc)" aria-label="Close devtools"><!></button>`),Pj=z(`<span class="px-2.5 py-1 rounded-md bg-accent text-white text-xs font-semibold shadow-lg"> </span>`),Fj=z(`<div><!></div>`),Ij=z(`<div class="fixed inset-0 z-[1001] pointer-events-none" aria-hidden="true"></div>`),Lj=z(`<section aria-label="Autotel devtools"><!> <header><!> <div class="flex items-center gap-2 flex-shrink-0 pr-1 mr-0.5"><!> <span class="text-xs font-semibold tracking-tight text-fg hidden sm:inline">autotel</span></div> <nav class="flex items-center gap-0.5 overflow-x-auto min-w-0 flex-1 at-no-scrollbar" aria-label="Devtools sections"></nav> <div class="flex items-center gap-1 flex-shrink-0 pl-1"><!> <button class="p-1.5 rounded-md text-fg-subtle hover:text-fg hover:bg-subtle transition-colors" title="Keyboard shortcuts (?)" aria-label="Keyboard shortcuts"><!></button> <!> <!> <!></div></header> <div class="flex-1 min-h-0 overflow-hidden"><!></div> <!></section> <!>`,1);function Rj(e,t){it(t,!0);let n=M(void 0),r=j(()=>Lc.value),i=j(()=>Hc.value),a=j(()=>Bc.value??`bottom`),o=j(()=>ol.value),s=j(()=>Vc.value),c=qm(),l=j(()=>L(a)===`bottom`||L(a)===`top`),u=j(()=>L(l)?L(o).vertical:L(o).horizontal),d=j(()=>sl(L(l)?`vertical`:`horizontal`)),f=j(()=>ou.value),p=j(()=>tu.value),m=j(()=>nu.value),h=j(()=>({genai:L(p)>0?L(p):void 0,flow:L(m)>0?L(m):void 0,errors:L(f)>0?L(f):void 0})),g=j(()=>lj.map(e=>({...e,badge:L(h)[e.id]}))),_=pj({isVertical:()=>L(l),dock:()=>L(a),axisSize:()=>L(u),setSize:cl,resetSize:ll}),v=hj({dock:()=>L(a),pipActive:()=>L(s),onDock:Iu});async function y(){if(L(s)){Zm(()=>Vc.value=!1);return}let e=L(n)?.getRootNode(),t=e instanceof ShadowRoot?e.host:null;t&&await Xm(t,()=>Vc.value=!1,{width:760,height:600})&&(Vc.value=!0)}let b=globalThis.window!==void 0&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;function x(e,{dock:t}){if(b||L(s))return{duration:0};let n=t===`left`||t===`right`?`X`:`Y`,r=t===`bottom`||t===`right`?1:-1;return{duration:240,easing:Gm,css:(e,t)=>`transform: translate${n}(${t*r*100}%)`}}let S=[`traces`,`genai`,`flow`,`service-map`,`metrics`,`logs`,`errors`],C=j(()=>tl.value);function w(){return Uc.value?rh:Hc.value===`traces`?nh:th}Rr(()=>{let e=L(n)?.getRootNode(),t=e instanceof ShadowRoot||e instanceof Document?e:window,r=e=>{let t=e;if(t.key===`Escape`){if(tl.value){rl();return}if(ih())return;if(Vc.value){Zm(()=>Vc.value=!1);return}Au();return}if(t.key===`?`&&!ih()){t.preventDefault(),il(w());return}if(!tl.value&&!ih()&&t.key>=`1`&&t.key<=`7`){let e=Number.parseInt(t.key,10)-1;e<S.length&&ju(S[e])}};return t.addEventListener(`keydown`,r),()=>t.removeEventListener(`keydown`,r)});let ee=j(()=>L(s)?`inset-0`:{bottom:`left-0 right-0 bottom-0`,top:`left-0 right-0 top-0`,right:`top-0 bottom-0 right-0`,left:`top-0 bottom-0 left-0`}[L(a)]),te=j(()=>L(s)?``:{bottom:`border-t`,top:`border-b`,right:`border-l`,left:`border-r`}[L(a)]),ne=j(()=>({bottom:`-top-1 left-0 right-0 h-2 cursor-ns-resize`,top:`-bottom-1 left-0 right-0 h-2 cursor-ns-resize`,right:`-left-1 top-0 bottom-0 w-2 cursor-ew-resize`,left:`-right-1 top-0 bottom-0 w-2 cursor-ew-resize`})[L(a)]),re=j(()=>({bottom:`inset-x-0 top-1 h-px`,top:`inset-x-0 bottom-1 h-px`,right:`inset-y-0 left-1 w-px`,left:`inset-y-0 right-1 w-px`})[L(a)]),ie=j(()=>L(s)?``:L(l)?`height: ${L(u)}px;`:`width: ${L(u)}px;`),ae=j(()=>L(s)?``:{bottom:`box-shadow: 0 -12px 32px -14px var(--at-shadow), 0 -2px 6px -4px var(--at-shadow);`,top:`box-shadow: 0 12px 32px -14px var(--at-shadow), 0 2px 6px -4px var(--at-shadow);`,right:`box-shadow: -12px 0 32px -14px var(--at-shadow), -2px 0 6px -4px var(--at-shadow);`,left:`box-shadow: 12px 0 32px -14px var(--at-shadow), 2px 0 6px -4px var(--at-shadow);`}[L(a)]),oe=j(()=>L(a)===`right`?um:L(a)===`left`?cm:om),se=[{edge:`bottom`,pos:`left-0 right-0 bottom-0 h-24`,label:`Dock bottom`},{edge:`top`,pos:`left-0 right-0 top-0 h-24`,label:`Dock top`},{edge:`left`,pos:`top-0 bottom-0 left-0 w-44`,label:`Dock left`},{edge:`right`,pos:`top-0 bottom-0 right-0 w-44`,label:`Dock right`}];var ce=da(),le=Or(ce),ue=e=>{var t=Lj(),r=Or(t),o=P(r),f=e=>{var t=Dj(),n=P(t),r=F(n,2);E(t),I((e,i,a,o)=>{G(t,`aria-orientation`,L(l)?`horizontal`:`vertical`),G(t,`aria-valuenow`,e),G(t,`aria-valuemin`,L(d).min),G(t,`aria-valuemax`,L(d).max),W(t,1,i),W(n,1,a),W(r,1,o)},[()=>Math.round(L(u)),()=>U(Q(`absolute z-20 group touch-none select-none outline-none`,L(ne))),()=>U(Q(`absolute bg-line-subtle transition-colors duration-150`,`group-hover:bg-accent group-focus-visible:bg-accent`,_.resizing&&`!bg-accent`,L(re))),()=>U(Q(`absolute rounded-full bg-line transition-colors duration-150`,`group-hover:bg-accent group-focus-visible:bg-accent`,_.resizing&&`!bg-accent`,L(l)?`left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2 w-9 h-1`:`top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2 h-9 w-1`))]),R(`pointerdown`,t,function(...e){_.onPointerDown?.apply(this,e)}),R(`keydown`,t,function(...e){_.onKeyDown?.apply(this,e)}),R(`dblclick`,t,function(...e){_.onDblClick?.apply(this,e)}),B(e,t)};H(o,e=>{L(s)||e(f)});var p=F(o,2),m=P(p),h=e=>{var t=Oj();Rp(P(t),{size:14}),E(t),B(e,t)};H(m,e=>{L(s)||e(h)});var b=F(m,2);rd(P(b),{width:18,height:18}),Ke(2),E(b);var S=F(b,2);Pa(S,21,()=>L(g),e=>e.id,(e,t)=>{let n=j(()=>L(t).icon),r=j(()=>L(i)===L(t).id);var a=Aj(),o=P(a);{let e=j(()=>L(t).id===`errors`&&L(t).badge?`text-danger`:void 0);Va(o,()=>L(n),(t,n)=>{n(t,{size:14,get class(){return L(e)}})})}var s=F(o,2),c=P(s,!0);E(s);var l=F(s,2),u=e=>{var n=kj(),r=P(n,!0);E(n),I(e=>{W(n,1,e),V(r,L(t).badge>99?`99+`:L(t).badge)},[()=>U(Q(`px-1.5 py-px text-[10px] font-semibold rounded-full`,L(t).id===`errors`?`bg-danger-bg text-danger`:`bg-accent/15 text-fg-muted`))]),B(e,n)};H(l,e=>{L(t).badge&&e(u)}),E(a),I(e=>{G(a,`aria-current`,L(r)?`page`:void 0),W(a,1,e),V(c,L(t).label)},[()=>U(Q(`flex items-center gap-1.5 px-2.5 h-8 rounded-md flex-shrink-0`,`text-xs transition-colors cursor-pointer`,L(r)?`bg-accent/12 text-fg font-semibold ring-1 ring-inset ring-accent/20`:`text-fg-subtle font-medium hover:text-fg hover:bg-subtle`))]),R(`click`,a,()=>ju(L(t).id)),B(e,a)}),E(S);var ce=F(S,2);{let e=e=>{let t=j(()=>L(oe));var n=da();Va(Or(n),()=>L(t),(e,t)=>{t(e,{size:15})}),B(e,n)};var le=P(ce);Sj(le,{compact:!0});var ue=F(le,2);gp(P(ue),{size:15}),E(ue);var T=F(ue,2),de=t=>{var n=jj(),r=P(n);e(r),E(n),R(`click`,n,function(...e){Lu?.apply(this,e)}),B(t,n)};H(T,e=>{L(s)||e(de)});var fe=F(T,2),pe=e=>{var t=Mj(),n=P(t),r=e=>{Qp(e,{size:15})},i=e=>{mm(e,{size:15})};H(n,e=>{L(s)?e(r):e(i,-1)}),E(t),I(()=>{G(t,`title`,L(s)?`Return to docked panel`:`Pop out to a separate window`),G(t,`aria-label`,L(s)?`Return to docked panel`:`Pop out to window`)}),R(`click`,t,y),B(e,t)};H(fe,e=>{c&&e(pe)});var me=F(fe,2),he=e=>{var t=Nj();Hm(P(t),{size:16}),E(t),R(`click`,t,function(...e){Au?.apply(this,e)}),B(e,t)};H(me,e=>{L(s)||e(he)}),E(ce),R(`click`,ue,()=>il(w()))}E(p);var ge=F(p,2);gj(P(ge),{}),E(ge);var _e=F(ge,2),ve=e=>{Ej(e,{get shortcuts(){return L(C)},get onClose(){return rl}})};H(_e,e=>{L(C)&&e(ve)}),E(r),Uo(r,e=>N(n,e),()=>L(n));var ye=F(r,2),be=e=>{var t=Ij();Pa(t,21,()=>se,e=>e.edge,(e,t)=>{let n=j(()=>v.dropTarget===L(t).edge);var r=Fj(),i=P(r),a=e=>{var n=Pj(),r=P(n,!0);E(n),I(()=>V(r,L(t).label)),B(e,n)};H(i,e=>{L(n)&&e(a)}),E(r),I(e=>W(r,1,e),[()=>U(Q(`absolute flex items-center justify-center transition-colors duration-100`,L(t).pos,L(n)?`bg-accent/15 ring-2 ring-inset ring-accent`:`bg-accent/5`))]),B(e,r)}),E(t),B(e,t)};H(ye,e=>{v.dragging&&e(be)}),I((e,t)=>{W(r,1,e),lo(r,`${L(ie)} ${L(ae)}`),W(p,1,t)},[()=>U(Q(`fixed z-[1000] flex flex-col`,`bg-surface text-fg`,L(ee),L(te),`border-line`)),()=>U(Q(`flex items-center gap-1 pl-2 pr-2 h-11 flex-shrink-0`,`border-b border-line bg-surface`,L(s)?``:`cursor-grab active:cursor-grabbing`))]),R(`pointerdown`,p,function(...e){v.onHeaderPointerDown?.apply(this,e)}),Xa(3,r,()=>x,()=>({dock:L(a)})),B(e,t)};H(le,e=>{L(r)&&e(ue)}),B(e,ce),at()}ta([`pointerdown`,`keydown`,`dblclick`,`click`]);var zj=z(`<button><!> </button>`),Bj=z(`<nav></nav>`);function Vj(e,t){it(t,!0);let n=J(t,`orientation`,3,`horizontal`),r=j(()=>Hc.value);var i=Bj();Pa(i,21,()=>lj,({id:e,label:t,icon:n})=>e,(e,t)=>{let n=()=>L(t).id,i=()=>L(t).label,a=()=>L(t).icon;var o=zj(),s=P(o);Va(s,a,(e,t)=>{t(e,{size:14})});var c=F(s);E(o),I(e=>{W(o,1,e),V(c,` ${i()??``}`)},[()=>U(Q(`flex items-center gap-2 px-3 py-2 text-xs font-medium rounded transition-colors whitespace-nowrap`,L(r)===n()?`bg-accent text-white`:`text-fg-subtle hover:bg-hover hover:text-fg`))]),R(`click`,o,()=>ju(n())),B(e,o)}),E(i),I(e=>W(i,1,e),[()=>U(Q(`flex gap-1 p-1`,n()===`vertical`?`flex-col w-48 border-r border-line`:`border-b border-line overflow-x-auto`))]),B(e,i),at()}ta([`click`]);var Hj=z(`<!> <span class="font-medium">Snapshot mode</span> <span class="text-warning">— live updates paused.</span> <button class="ml-auto inline-flex items-center gap-1 px-2 py-0.5 rounded hover:bg-warning-bg transition-colors" title="Exit snapshot and clear data"><!> Exit</button>`,1),Uj=z(`<span class="text-fg-subtle"> </span> <button class="ml-auto inline-flex items-center gap-1 px-2 py-0.5 rounded hover:bg-hover transition-colors disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent"><!> Download snapshot</button> <button class="inline-flex items-center gap-1 px-2 py-0.5 rounded hover:bg-hover transition-colors" title="Load a snapshot file"><!> Load snapshot</button> <button class="inline-flex items-center gap-1 px-2 py-0.5 rounded hover:bg-hover hover:text-danger transition-colors" title="Clear all captured data — traces, logs, metrics and errors"><!> Clear</button>`,1),Wj=z(`<span class="text-danger truncate"> </span>`),Gj=z(`<span class="text-warning truncate"> </span>`),Kj=z(`<div><!> <input type="file" accept="application/json,.json" class="hidden"/> <!> <!></div>`);function qj(e,t){it(t,!0);let n=M(void 0),r=M(null),i=M(null),a=j(()=>jl.value),o=j(()=>[{n:ul.value.length,one:`trace`,many:`traces`},{n:pl.value.length,one:`log`,many:`logs`},{n:fl.value.length,one:`error`,many:`errors`}].filter(e=>e.n>0).map(e=>`${e.n} ${e.n===1?e.one:e.many}`)),s=j(()=>L(o).length===0),c=()=>{N(r,null),N(i,null),Uv({traces:ul.value,logs:pl.value,errors:fl.value})},l=()=>{L(n)?.click()},u=()=>{N(r,null),N(i,null),zu()},d=async e=>{N(r,null),N(i,null);let t=e.currentTarget,n=t.files?.[0];if(t.value=``,!n)return;let a=await Kv(n);if(!a.success||!a.snapshot){N(r,a.errors.join(`; `)||`Failed to load snapshot`,!0);return}a.warnings.length>0&&N(i,a.warnings.join(`; `),!0),Ou(a.snapshot)};var f=Kj(),p=P(f),m=e=>{var t=Hj(),n=Or(t);ep(n,{size:12});var r=F(n,6);Hm(P(r),{size:12}),Ke(),E(r),R(`click`,r,function(...e){ku?.apply(this,e)}),B(e,t)},h=e=>{var t=Uj(),n=Or(t),r=P(n,!0);E(n);var i=F(n,2);ep(P(i),{size:12}),Ke(),E(i);var a=F(i,2);Im(P(a),{size:12}),Ke(),E(a);var d=F(a,2);Mm(P(d),{size:12}),Ke(),E(d),I(e=>{V(r,e),i.disabled=L(s),G(i,`title`,L(s)?`Nothing captured yet`:`Download a snapshot of traces, logs, errors and metrics`)},[()=>L(s)?`No data captured`:L(o).join(` · `)]),R(`click`,i,c),R(`click`,a,l),R(`click`,d,u),B(e,t)};H(p,e=>{L(a)?e(m):e(h,-1)});var g=F(p,2);Uo(g,e=>N(n,e),()=>L(n));var _=F(g,2),v=e=>{var t=Wj(),n=P(t,!0);E(t),I(()=>{G(t,`title`,L(r)),V(n,L(r))}),B(e,t)};H(_,e=>{L(r)&&e(v)});var y=F(_,2),b=e=>{var t=Gj(),n=P(t,!0);E(t),I(()=>{G(t,`title`,L(i)),V(n,L(i))}),B(e,t)};H(y,e=>{L(i)&&!L(r)&&e(b)}),E(f),I(e=>W(f,1,e),[()=>U(Q(`border-b border-line px-3 py-1.5 text-xs flex items-center gap-2`,L(a)?`bg-warning-bg text-warning`:`bg-subtle text-fg-muted`))]),R(`change`,g,d),B(e,f),at()}ta([`click`,`change`]);var Jj=z(`<div class="flex h-screen w-screen bg-surface text-fg"><div class="hidden md:flex flex-col border-r border-line"><!> <div class="mt-auto p-2 border-t border-line flex flex-col gap-1"><!> <button class="flex items-center gap-2 px-3 py-2 text-xs text-fg-subtle hover:bg-hover hover:text-fg rounded transition-colors"><!> </button> <button class="flex items-center gap-2 px-3 py-2 text-xs text-fg-subtle hover:bg-hover hover:text-fg rounded transition-colors" title="Keyboard shortcuts (?)"><!> Shortcuts</button></div></div> <div class="flex-1 flex flex-col min-w-0"><!> <div class="md:hidden"><!></div> <div class="flex-1 overflow-hidden"><!></div></div> <!></div>`);function Yj(e,t){it(t,!0);function n(){return Uc.value?rh:Hc.value===`traces`?nh:th}let r=j(()=>qc.value),i=j(()=>tl.value);Rr(()=>{qc.value=Jc()});let a=M(void 0);Rr(()=>{let e=null,t=L(a)?.getRootNode();t instanceof ShadowRoot?e=t.host:globalThis.document!==void 0&&(e=document.documentElement),e&&e.setAttribute(`data-theme`,L(r))}),Rr(()=>{let e=e=>{if(e.key===`?`&&!ih()){e.preventDefault(),il(n());return}if(!tl.value&&!ih()&&e.key>=`1`&&e.key<=`9`){let t=parseInt(e.key,10)-1;t<uj.length&&ju(uj[t])}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let o=j(()=>L(r)===`dark`?`Dark`:L(r)===`light`?`Light`:`System`);var s=Jj(),c=P(s),l=P(c);Vj(l,{orientation:`vertical`});var u=F(l,2),d=P(u);Sj(d,{});var f=F(d,2),p=P(f),m=e=>{nm(e,{size:14})},h=e=>{Om(e,{size:14})},g=e=>{em(e,{size:14})};H(p,e=>{L(r)===`dark`?e(m):L(r)===`light`?e(h,1):e(g,-1)});var _=F(p);E(f);var v=F(f,2);gp(P(v),{size:14}),Ke(),E(v),E(u),E(c);var y=F(c,2),b=P(y);qj(b,{});var x=F(b,2);Vj(P(x),{orientation:`horizontal`}),E(x);var S=F(x,2);gj(P(S),{}),E(S),E(y);var C=F(y,2),w=e=>{Ej(e,{get shortcuts(){return L(i)},get onClose(){return rl}})};H(C,e=>{L(i)&&e(w)}),E(s),Uo(s,e=>N(a,e),()=>L(a)),I(()=>{G(f,`title`,`Theme: ${L(o)} (click to cycle)`),V(_,` ${L(o)??``}`)}),R(`click`,f,function(...e){Xc?.apply(this,e)}),R(`click`,v,()=>nl(n())),B(e,s),at()}ta([`click`]);var Xj=250,Zj=5e3;function Qj(e={}){let t=e.now??(()=>Date.now()),n=e.debounceMs??Xj,r=e.limit??Zj,i=0,a=null,o=null,s=!1;function c(){let t=hl.value,n=e.baseUrl??(t?$o(t):null)??globalThis.location?.origin??``;return{fetch:e.fetch??globalThis.fetch.bind(globalThis),baseUrl:n}}async function l(){if(s)return;let e=++i;a?.abort();let n=new AbortController;a=n;let o={query:``,window:js(Ts(gl.value,t())),limit:r},l={...c(),signal:n.signal},[u,d]=await Promise.all([$j(o,l),fk(o,l)]);e!==i||s||(u.status===`ok`?(_l.value=u.traces,yl.value=`ready`):u.status===`error`&&(yl.value=`unavailable`),d.status===`ok`&&(vl.value=d.errors))}function u(){if(!s){if(o&&clearTimeout(o),n<=0){l();return}o=setTimeout(()=>{o=null,l()},n)}}return{refresh:l,invalidate:u,dispose(){s=!0,o&&clearTimeout(o),a?.abort()}}}async function $j(e,t){let n=[],r=new Set,i;do{let a=await lk({...e,cursor:i},t);if(a.status!==`ok`)return a;if(n.push(...a.traces),i=a.nextCursor??void 0,i&&r.has(i))return{status:`error`,message:`The trace query returned a repeated pagination cursor.`};i&&r.add(i)}while(i);return{status:`ok`,traces:n,nextCursor:null}}var eM=`data-autotel-portal`;function tM(e){let t=e.querySelector(`[${eM}]`);if(t)return t;let n=document.createElement(`div`);return n.setAttribute(eM,``),n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.zIndex=`2147483000`,e.appendChild(n),n}var nM=()=>({mount:async()=>{},unmount:()=>{}}),rM=z(`<!> <!>`,1),iM=z(`<div class="contents"><!></div>`);function aM(e,t){it(t,!0);function n(e){ju(e.tab??`traces`),Fl.value=e.q??``,Il.value=e.status??`all`,Ll.value=e.minDuration??0,gl.value=e.window??Ss,Pl.value=e.sort??Xu,Vl.value=e.genaiQuery??``,e.traceId&&Kc(e.traceId,e.spanId)}Rr(()=>{hl.value=t.wsUrl});let r=Qj();Rr(()=>(r.refresh(),()=>r.dispose())),Rr(()=>{gl.value,ul.value.length,r.invalidate()});let i=M(void 0),a=M(void 0);Rr(()=>{if(!L(i))return;let e=L(i).getRootNode();N(a,tM(e instanceof ShadowRoot?e:document.body),!0)}),Rr(()=>{t.deepLink&&n(t.deepLink)}),Rr(()=>{let e=Gc.value;e&&ul.value.some(t=>t.traceId===e.traceId)&&(Mu(e.traceId,e.spanId??null),ju(`traces`),Gc.value=null)});let o=null;Rr(()=>{if(t.mode!==`fullpage`)return;let e={tab:Hc.value,traceId:Uc.value??void 0,spanId:Wc.value??void 0,q:Fl.value||void 0,status:Il.value,minDuration:Ll.value,window:gl.value,sort:Pl.value,genaiQuery:Vl.value||void 0};if(Gc.value)return;let n=$u(e);if(n===location.hash)return;let r=ed(o,e);o=e;let i=`${location.pathname}${location.search}${n}`;r===`push`?history.pushState(history.state,``,i):history.replaceState(history.state,``,i)}),Rr(()=>{if(t.mode!==`fullpage`)return;let e=()=>{let e=Qu(location.hash);o=e,n(e)};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}),Rr(()=>{Uu(),ns($o(t.wsUrl));let e=new Qo(t.wsUrl);ml.value=`connecting`;let n=e.onStatusChange(e=>{ml.value=e}),r=e.onMessage(wu);return e.connect(),()=>{r(),n(),e.disconnect()}}),Rr(()=>{if(t.mode!==`fullpage`)return;let e=$o(t.wsUrl);if(!e)return;let n=nM({fetch:globalThis.fetch.bind(globalThis),baseUrl:e});return n.mount(),()=>n.unmount()});var s=iM();Qw(P(s),{get defaultPortalTo(){return L(a)},children:(e,n)=>{var r=da(),i=Or(r),a=e=>{Yj(e,{})},o=e=>{var t=rM(),n=Or(t);Lf(n,{}),Rj(F(n,2),{}),B(e,t)};H(i,e=>{t.mode===`fullpage`?e(a):e(o,-1)}),B(e,r)},$$slots:{default:!0}}),E(s),Uo(s,e=>N(i,e),()=>L(i)),B(e,s),at()}function oM(e,t){let n=ha(aM,{target:e,props:t});return()=>{ya(n)}}var sM=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
15
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-outline-style:solid}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:"Hanken Grotesk", system-ui, -apple-system, sans-serif;--font-mono:"JetBrains Mono", ui-monospace, "SF Mono", monospace;--color-red-100:#ffe2e2;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-red-700:#bf000f;--color-orange-100:#ffedd5;--color-orange-400:#ff8b1a;--color-orange-500:#fe6e00;--color-orange-600:#f05100;--color-orange-700:#c53c00;--color-amber-100:#fef3c6;--color-amber-500:#f99c00;--color-amber-600:#dd7400;--color-amber-700:#b75000;--color-yellow-100:#fef9c2;--color-yellow-500:#edb200;--color-yellow-600:#cd8900;--color-green-100:#dcfce7;--color-green-400:#05df72;--color-green-500:#00c758;--color-green-600:#00a544;--color-emerald-500:#00bb7f;--color-emerald-600:#009767;--color-teal-500:#00baa7;--color-teal-600:#009588;--color-cyan-100:#cefafe;--color-cyan-500:#00b7d7;--color-cyan-600:#0092b5;--color-sky-500:#00a5ef;--color-sky-600:#0084cc;--color-blue-100:#dbeafe;--color-blue-400:#54a2ff;--color-blue-500:#3080ff;--color-blue-600:#155dfc;--color-indigo-500:#625fff;--color-indigo-600:#4f39f6;--color-violet-100:#ede9fe;--color-violet-500:#8d54ff;--color-violet-600:#7f22fe;--color-violet-700:#7008e7;--color-purple-100:#f3e8ff;--color-purple-400:#c07eff;--color-purple-500:#ac4bff;--color-purple-600:#9810fa;--color-fuchsia-500:#e12afb;--color-fuchsia-600:#c600db;--color-rose-500:#ff2357;--color-rose-600:#e70044;--color-gray-50:#f9fafb;--color-gray-100:#f3f4f6;--color-gray-400:#99a1af;--color-gray-500:#6a7282;--color-gray-900:#101828;--color-stone-500:#79716b;--color-stone-600:#57534d;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-surface:var(--at-surface);--color-subtle:var(--at-muted);--color-hover:var(--at-surface-hover);--color-code:var(--at-code);--color-fg:var(--at-text-primary);--color-fg-muted:var(--at-text-secondary);--color-fg-subtle:var(--at-text-muted);--color-line:var(--at-border);--color-line-subtle:var(--at-border-light);--color-accent:var(--at-accent);--color-danger:var(--at-error-text);--color-danger-bg:var(--at-error-bg);--color-danger-border:var(--at-error-border);--color-success:var(--at-ok-text);--color-success-bg:var(--at-ok-bg);--color-success-border:var(--at-ok-border);--color-warning:var(--at-warn-text);--color-warning-bg:var(--at-warn-bg);--color-warning-border:var(--at-warn-border);--color-selected:var(--at-selected-bg)}@supports (color:color(display-p3 0 0 0)){:root,:host{--color-red-100:color(display-p3 .980386 .889727 .887779);--color-red-400:color(display-p3 .933534 .431676 .423491);--color-red-500:color(display-p3 .903738 .262579 .253307);--color-red-600:color(display-p3 .830323 .140383 .133196);--color-red-700:color(display-p3 .692737 .116232 .104679);--color-orange-100:color(display-p3 .988762 .931393 .843273);--color-orange-400:color(display-p3 .950192 .561807 .211017);--color-orange-500:color(display-p3 .946589 .449788 .0757345);--color-orange-600:color(display-p3 .887467 .341665 .0219962);--color-orange-700:color(display-p3 .729844 .257256 .0511062);--color-amber-100:color(display-p3 .989391 .954583 .796328);--color-amber-500:color(display-p3 .93994 .620584 .0585367);--color-amber-600:color(display-p3 .827144 .467166 .0336006);--color-amber-700:color(display-p3 .67989 .32771 .0520514);--color-yellow-100:color(display-p3 .993436 .977463 .782913);--color-yellow-500:color(display-p3 .903651 .703062 .0745389);--color-yellow-600:color(display-p3 .776342 .542492 .041709);--color-green-100:color(display-p3 .885269 .984329 .910368);--color-green-400:color(display-p3 .399536 .862346 .49324);--color-green-500:color(display-p3 .308734 .774754 .374307);--color-green-600:color(display-p3 .243882 .640824 .294808);--color-emerald-500:color(display-p3 .267113 .726847 .508397);--color-emerald-600:color(display-p3 .206557 .589057 .413962);--color-teal-500:color(display-p3 .266569 .721518 .655462);--color-teal-600:color(display-p3 .207114 .579584 .53668);--color-cyan-100:color(display-p3 .843085 .97553 .992573);--color-cyan-500:color(display-p3 .246703 .710032 .841444);--color-cyan-600:color(display-p3 .193249 .564651 .707197);--color-sky-500:color(display-p3 .219113 .639027 .931479);--color-sky-600:color(display-p3 .162505 .509376 .796082);--color-blue-100:color(display-p3 .869214 .915931 .989622);--color-blue-400:color(display-p3 .397443 .62813 .992116);--color-blue-500:color(display-p3 .266422 .491219 .988624);--color-blue-600:color(display-p3 .174493 .358974 .950247);--color-indigo-500:color(display-p3 .380374 .372235 .971707);--color-indigo-600:color(display-p3 .297656 .227891 .929242);--color-violet-100:color(display-p3 .926222 .913546 .990178);--color-violet-500:color(display-p3 .523372 .329605 .990884);--color-violet-600:color(display-p3 .459951 .162666 .957985);--color-violet-700:color(display-p3 .40161 .0841901 .871151);--color-purple-100:color(display-p3 .945034 .910569 .992972);--color-purple-400:color(display-p3 .719919 .492497 .995173);--color-purple-500:color(display-p3 .629519 .30089 .990817);--color-purple-600:color(display-p3 .546729 .130167 .94439);--color-fuchsia-500:color(display-p3 .81268 .241966 .951571);--color-fuchsia-600:color(display-p3 .716587 .083681 .841036);--color-rose-500:color(display-p3 .921824 .240748 .355666);--color-rose-600:color(display-p3 .848792 .102011 .269259);--color-gray-50:color(display-p3 .977213 .98084 .985102);--color-gray-100:color(display-p3 .953567 .956796 .964321);--color-gray-400:color(display-p3 .605734 .630385 .680158);--color-gray-500:color(display-p3 .421287 .446085 .504784);--color-gray-900:color(display-p3 .070423 .0928982 .151928);--color-stone-500:color(display-p3 .467445 .443064 .42264);--color-stone-600:color(display-p3 .339543 .325291 .304619)}}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-red-700:lab(40.4273% 67.2623 53.7441);--color-orange-100:lab(94.7127% 3.58394 14.3151);--color-orange-400:lab(70.0429% 42.5156 75.8207);--color-orange-500:lab(64.272% 57.1788 90.3583);--color-orange-600:lab(57.1026% 64.2584 89.8886);--color-orange-700:lab(46.4615% 57.7275 70.8507);--color-amber-100:lab(95.916% -1.21653 23.111);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-amber-600:lab(60.3514% 40.5624 87.1228);--color-amber-700:lab(47.2709% 42.9082 69.2966);--color-yellow-100:lab(97.3564% -4.51407 27.344);--color-yellow-500:lab(76.3898% 14.5258 98.4589);--color-yellow-600:lab(62.7799% 22.4197 86.1544);--color-green-100:lab(96.1861% -13.8464 6.52365);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-600:lab(55.0481% -49.9246 15.93);--color-teal-500:lab(67.3859% -49.0983 -2.63511);--color-teal-600:lab(55.0223% -41.0774 -3.90277);--color-cyan-100:lab(95.3146% -13.8285 -6.84732);--color-cyan-500:lab(67.805% -35.3952 -30.2018);--color-cyan-600:lab(55.1767% -26.7496 -30.5139);--color-sky-500:lab(63.3038% -18.433 -51.0407);--color-sky-600:lab(51.7754% -11.4712 -49.8349);--color-blue-100:lab(92.0301% -2.24757 -11.6453);--color-blue-400:lab(65.0361% -1.42065 -56.9802);--color-blue-500:lab(54.1736% 13.3369 -74.6839);--color-blue-600:lab(44.0605% 29.0279 -86.0352);--color-indigo-500:lab(48.295% 38.3129 -81.9673);--color-indigo-600:lab(38.4009% 52.6132 -92.3857);--color-violet-100:lab(93.0838% 4.35197 -9.88284);--color-violet-500:lab(49.9355% 55.1776 -81.8963);--color-violet-600:lab(41.088% 68.9966 -91.995);--color-violet-700:lab(35.2783% 67.9912 -88.793);--color-purple-100:lab(93.3333% 6.97437 -9.83434);--color-purple-400:lab(63.6946% 47.6127 -59.2066);--color-purple-500:lab(52.0183% 66.11 -78.2316);--color-purple-600:lab(43.0295% 75.21 -86.5669);--color-fuchsia-500:lab(56.4256% 83.132 -64.639);--color-fuchsia-600:lab(47.5131% 83.4271 -63.0363);--color-rose-500:lab(56.101% 79.4328 31.4532);--color-rose-600:lab(49.1882% 81.577 36.0311);--color-gray-50:lab(98.2596% -.247031 -.706708);--color-gray-100:lab(96.1596% -.0823438 -1.13575);--color-gray-400:lab(65.9269% -.832707 -8.17473);--color-gray-500:lab(47.7841% -.393182 -10.0268);--color-gray-900:lab(8.11897% .811279 -12.254);--color-stone-500:lab(48.1164% 2.35701 4.26852);--color-stone-600:lab(35.5168% 1.08604 4.07829)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;bottom:0;left:0;right:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-top-1{top:calc(var(--spacing) * -1)}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-10{top:calc(var(--spacing) * 10)}.top-\\[7px\\]{top:7px}.top-\\[9px\\]{top:9px}.top-\\[calc\\(100\\%-2px\\)\\]{top:calc(100% - 2px)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-1\\.5{right:calc(var(--spacing) * -1.5)}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\\.5{right:calc(var(--spacing) * 1.5)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-1{bottom:calc(var(--spacing) * -1)}.bottom-0{bottom:0}.bottom-0\\.5{bottom:calc(var(--spacing) * .5)}.bottom-1{bottom:var(--spacing)}.bottom-3{bottom:calc(var(--spacing) * 3)}.-left-1{left:calc(var(--spacing) * -1)}.-left-1\\.5{left:calc(var(--spacing) * -1.5)}.-left-px{left:-1px}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.z-\\[1000\\]{z-index:1000}.z-\\[1001\\]{z-index:1001}.z-\\[1100\\]{z-index:1100}.z-\\[1200\\]{z-index:1200}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-m-1{margin:calc(var(--spacing) * -1)}.m-3{margin:calc(var(--spacing) * 3)}.m-4{margin:calc(var(--spacing) * 4)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline-start:auto;margin-inline-end:auto}.my-1{margin-block:var(--spacing)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-auto{margin-top:auto}.mt-px{margin-top:1px}.mr-0\\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-0\\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-1\\/2{height:50%}.h-2{height:calc(var(--spacing) * 2)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.h-24{height:calc(var(--spacing) * 24)}.h-\\[300px\\]{height:300px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[85vh\\]{max-height:85vh}.max-h-\\[160px\\]{max-height:160px}.max-h-\\[200px\\]{max-height:200px}.max-h-\\[240px\\]{max-height:240px}.min-h-0{min-height:0}.min-h-\\[120px\\]{min-height:120px}.w-0{width:0}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1{width:var(--spacing)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-14{width:calc(var(--spacing) * 14)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-\\[1\\%\\]{width:1%}.w-\\[480px\\]{width:480px}.w-\\[min\\(560px\\,92vw\\)\\]{width:min(560px,92vw)}.w-\\[min\\(700px\\,92vw\\)\\]{width:min(700px,92vw)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.w-screen{width:100vw}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[10rem\\]{max-width:10rem}.max-w-\\[14rem\\]{max-width:14rem}.max-w-\\[16rem\\]{max-width:16rem}.max-w-\\[90vw\\]{max-width:90vw}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[420px\\]{max-width:420px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:0}.min-w-\\[8px\\]{min-width:8px}.min-w-\\[16px\\]{min-width:16px}.min-w-\\[180px\\]{min-width:180px}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-125{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-ns-resize{cursor:ns-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\\[80px_1fr\\]{grid-template-columns:80px 1fr}.grid-cols-\\[100px_1fr\\]{grid-template-columns:100px 1fr}.grid-cols-\\[auto_1fr\\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-px{gap:1px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:0;margin-block-end:0}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-0\\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-line>:not(:last-child)){border-color:var(--color-line)}:where(.divide-line-subtle>:not(:last-child)){border-color:var(--color-line-subtle)}.self-stretch{align-self:stretch}.justify-self-end{justify-self:flex-end}.justify-self-start{justify-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-accent,.border-accent\\/30{border-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.border-accent\\/30{border-color:color-mix(in oklab, var(--color-accent) 30%, transparent)}}.border-accent\\/40{border-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.border-accent\\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-amber-500\\/20{border-color:#f99c0033}@supports (color:color-mix(in lab, red, red)){.border-amber-500\\/20{border-color:color-mix(in oklab, var(--color-amber-500) 20%, transparent)}}.border-amber-500\\/30{border-color:#f99c004d}@supports (color:color-mix(in lab, red, red)){.border-amber-500\\/30{border-color:color-mix(in oklab, var(--color-amber-500) 30%, transparent)}}.border-blue-500\\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.border-blue-500\\/30{border-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.border-cyan-500\\/30{border-color:#00b7d74d}@supports (color:color-mix(in lab, red, red)){.border-cyan-500\\/30{border-color:color-mix(in oklab, var(--color-cyan-500) 30%, transparent)}}.border-danger-border{border-color:var(--color-danger-border)}.border-danger\\/30{border-color:var(--color-danger)}@supports (color:color-mix(in lab, red, red)){.border-danger\\/30{border-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.border-emerald-500\\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab, red, red)){.border-emerald-500\\/30{border-color:color-mix(in oklab, var(--color-emerald-500) 30%, transparent)}}.border-fuchsia-500\\/30{border-color:#e12afb4d}@supports (color:color-mix(in lab, red, red)){.border-fuchsia-500\\/30{border-color:color-mix(in oklab, var(--color-fuchsia-500) 30%, transparent)}}.border-green-500\\/30{border-color:#00c7584d}@supports (color:color-mix(in lab, red, red)){.border-green-500\\/30{border-color:color-mix(in oklab, var(--color-green-500) 30%, transparent)}}.border-indigo-500\\/30{border-color:#625fff4d}@supports (color:color-mix(in lab, red, red)){.border-indigo-500\\/30{border-color:color-mix(in oklab, var(--color-indigo-500) 30%, transparent)}}.border-line{border-color:var(--color-line)}.border-line-subtle{border-color:var(--color-line-subtle)}.border-line\\/50{border-color:var(--color-line)}@supports (color:color-mix(in lab, red, red)){.border-line\\/50{border-color:color-mix(in oklab, var(--color-line) 50%, transparent)}}.border-line\\/60{border-color:var(--color-line)}@supports (color:color-mix(in lab, red, red)){.border-line\\/60{border-color:color-mix(in oklab, var(--color-line) 60%, transparent)}}.border-orange-500\\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab, red, red)){.border-orange-500\\/30{border-color:color-mix(in oklab, var(--color-orange-500) 30%, transparent)}}.border-purple-500\\/30{border-color:#ac4bff4d}@supports (color:color-mix(in lab, red, red)){.border-purple-500\\/30{border-color:color-mix(in oklab, var(--color-purple-500) 30%, transparent)}}.border-red-500\\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab, red, red)){.border-red-500\\/30{border-color:color-mix(in oklab, var(--color-red-500) 30%, transparent)}}.border-stone-500\\/30{border-color:#79716b4d}@supports (color:color-mix(in lab, red, red)){.border-stone-500\\/30{border-color:color-mix(in oklab, var(--color-stone-500) 30%, transparent)}}.border-success-border{border-color:var(--color-success-border)}.border-transparent{border-color:#0000}.border-violet-500\\/30{border-color:#8d54ff4d}@supports (color:color-mix(in lab, red, red)){.border-violet-500\\/30{border-color:color-mix(in oklab, var(--color-violet-500) 30%, transparent)}}.border-warning-border{border-color:var(--color-warning-border)}.border-white{border-color:var(--color-white)}.border-l-warning{border-left-color:var(--color-warning)}.\\!bg-accent{background-color:var(--color-accent)!important}.bg-accent,.bg-accent\\/5{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/5{background-color:color-mix(in oklab, var(--color-accent) 5%, transparent)}}.bg-accent\\/10{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/10{background-color:color-mix(in oklab, var(--color-accent) 10%, transparent)}}.bg-accent\\/12{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/12{background-color:color-mix(in oklab, var(--color-accent) 12%, transparent)}}.bg-accent\\/15{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/15{background-color:color-mix(in oklab, var(--color-accent) 15%, transparent)}}.bg-accent\\/70{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/70{background-color:color-mix(in oklab, var(--color-accent) 70%, transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\\/10{background-color:color-mix(in oklab, var(--color-amber-500) 10%, transparent)}}.bg-amber-500\\/15{background-color:#f99c0026}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\\/15{background-color:color-mix(in oklab, var(--color-amber-500) 15%, transparent)}}.bg-black\\/55{background-color:#0000008c}@supports (color:color-mix(in lab, red, red)){.bg-black\\/55{background-color:color-mix(in oklab, var(--color-black) 55%, transparent)}}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\\/60{background-color:color-mix(in oklab, var(--color-black) 60%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\\/10{background-color:color-mix(in oklab, var(--color-blue-500) 10%, transparent)}}.bg-blue-500\\/15{background-color:#3080ff26}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\\/15{background-color:color-mix(in oklab, var(--color-blue-500) 15%, transparent)}}.bg-code{background-color:var(--color-code)}.bg-cyan-100{background-color:var(--color-cyan-100)}.bg-cyan-500\\/15{background-color:#00b7d726}@supports (color:color-mix(in lab, red, red)){.bg-cyan-500\\/15{background-color:color-mix(in oklab, var(--color-cyan-500) 15%, transparent)}}.bg-danger{background-color:var(--color-danger)}.bg-danger-bg,.bg-danger-bg\\/40{background-color:var(--color-danger-bg)}@supports (color:color-mix(in lab, red, red)){.bg-danger-bg\\/40{background-color:color-mix(in oklab, var(--color-danger-bg) 40%, transparent)}}.bg-danger\\/5{background-color:var(--color-danger)}@supports (color:color-mix(in lab, red, red)){.bg-danger\\/5{background-color:color-mix(in oklab, var(--color-danger) 5%, transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\\/10{background-color:color-mix(in oklab, var(--color-emerald-500) 10%, transparent)}}.bg-emerald-500\\/15{background-color:#00bb7f26}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\\/15{background-color:color-mix(in oklab, var(--color-emerald-500) 15%, transparent)}}.bg-fg-subtle{background-color:var(--color-fg-subtle)}.bg-fuchsia-500\\/15{background-color:#e12afb26}@supports (color:color-mix(in lab, red, red)){.bg-fuchsia-500\\/15{background-color:color-mix(in oklab, var(--color-fuchsia-500) 15%, transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\\/15{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.bg-green-500\\/15{background-color:color-mix(in oklab, var(--color-green-500) 15%, transparent)}}.bg-hover{background-color:var(--color-hover)}.bg-indigo-500\\/15{background-color:#625fff26}@supports (color:color-mix(in lab, red, red)){.bg-indigo-500\\/15{background-color:color-mix(in oklab, var(--color-indigo-500) 15%, transparent)}}.bg-line{background-color:var(--color-line)}.bg-line-subtle{background-color:var(--color-line-subtle)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\\/15{background-color:#fe6e0026}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\\/15{background-color:color-mix(in oklab, var(--color-orange-500) 15%, transparent)}}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\\/15{background-color:#ac4bff26}@supports (color:color-mix(in lab, red, red)){.bg-purple-500\\/15{background-color:color-mix(in oklab, var(--color-purple-500) 15%, transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.bg-red-500\\/15{background-color:color-mix(in oklab, var(--color-red-500) 15%, transparent)}}.bg-rose-500{background-color:var(--color-rose-500)}.bg-selected{background-color:var(--color-selected)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-stone-500\\/15{background-color:#79716b26}@supports (color:color-mix(in lab, red, red)){.bg-stone-500\\/15{background-color:color-mix(in oklab, var(--color-stone-500) 15%, transparent)}}.bg-subtle,.bg-subtle\\/40{background-color:var(--color-subtle)}@supports (color:color-mix(in lab, red, red)){.bg-subtle\\/40{background-color:color-mix(in oklab, var(--color-subtle) 40%, transparent)}}.bg-subtle\\/50{background-color:var(--color-subtle)}@supports (color:color-mix(in lab, red, red)){.bg-subtle\\/50{background-color:color-mix(in oklab, var(--color-subtle) 50%, transparent)}}.bg-subtle\\/60{background-color:var(--color-subtle)}@supports (color:color-mix(in lab, red, red)){.bg-subtle\\/60{background-color:color-mix(in oklab, var(--color-subtle) 60%, transparent)}}.bg-success{background-color:var(--color-success)}.bg-success-bg{background-color:var(--color-success-bg)}.bg-surface{background-color:var(--color-surface)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-transparent{background-color:#0000}.bg-violet-100{background-color:var(--color-violet-100)}.bg-violet-500{background-color:var(--color-violet-500)}.bg-violet-500\\/10{background-color:#8d54ff1a}@supports (color:color-mix(in lab, red, red)){.bg-violet-500\\/10{background-color:color-mix(in oklab, var(--color-violet-500) 10%, transparent)}}.bg-violet-500\\/15{background-color:#8d54ff26}@supports (color:color-mix(in lab, red, red)){.bg-violet-500\\/15{background-color:color-mix(in oklab, var(--color-violet-500) 15%, transparent)}}.bg-warning{background-color:var(--color-warning)}.bg-warning-bg{background-color:var(--color-warning-bg)}.bg-warning\\/5{background-color:var(--color-warning)}@supports (color:color-mix(in lab, red, red)){.bg-warning\\/5{background-color:color-mix(in oklab, var(--color-warning) 5%, transparent)}}.bg-yellow-100{background-color:var(--color-yellow-100)}.fill-\\[var\\(--color-fg-subtle\\)\\]{fill:var(--color-fg-subtle)}.fill-amber-500\\/15{fill:#f99c0026}@supports (color:color-mix(in lab, red, red)){.fill-amber-500\\/15{fill:color-mix(in oklab, var(--color-amber-500) 15%, transparent)}}.fill-amber-600{fill:var(--color-amber-600)}.fill-blue-500\\/15{fill:#3080ff26}@supports (color:color-mix(in lab, red, red)){.fill-blue-500\\/15{fill:color-mix(in oklab, var(--color-blue-500) 15%, transparent)}}.fill-blue-600{fill:var(--color-blue-600)}.fill-danger{fill:var(--color-danger)}.fill-emerald-500\\/15{fill:#00bb7f26}@supports (color:color-mix(in lab, red, red)){.fill-emerald-500\\/15{fill:color-mix(in oklab, var(--color-emerald-500) 15%, transparent)}}.fill-emerald-600{fill:var(--color-emerald-600)}.fill-fg-muted{fill:var(--color-fg-muted)}.fill-fg-subtle{fill:var(--color-fg-subtle)}.fill-red-500{fill:var(--color-red-500)}.fill-rose-500\\/15{fill:#ff235726}@supports (color:color-mix(in lab, red, red)){.fill-rose-500\\/15{fill:color-mix(in oklab, var(--color-rose-500) 15%, transparent)}}.fill-rose-600{fill:var(--color-rose-600)}.fill-sky-500\\/15{fill:#00a5ef26}@supports (color:color-mix(in lab, red, red)){.fill-sky-500\\/15{fill:color-mix(in oklab, var(--color-sky-500) 15%, transparent)}}.fill-sky-600{fill:var(--color-sky-600)}.fill-teal-500\\/15{fill:#00baa726}@supports (color:color-mix(in lab, red, red)){.fill-teal-500\\/15{fill:color-mix(in oklab, var(--color-teal-500) 15%, transparent)}}.fill-teal-600{fill:var(--color-teal-600)}.fill-violet-500\\/15{fill:#8d54ff26}@supports (color:color-mix(in lab, red, red)){.fill-violet-500\\/15{fill:color-mix(in oklab, var(--color-violet-500) 15%, transparent)}}.fill-violet-600{fill:var(--color-violet-600)}.fill-warning{fill:var(--color-warning)}.fill-white{fill:var(--color-white)}.stroke-accent{stroke:var(--color-accent)}.stroke-amber-500\\/60{stroke:#f99c0099}@supports (color:color-mix(in lab, red, red)){.stroke-amber-500\\/60{stroke:color-mix(in oklab, var(--color-amber-500) 60%, transparent)}}.stroke-blue-500\\/60{stroke:#3080ff99}@supports (color:color-mix(in lab, red, red)){.stroke-blue-500\\/60{stroke:color-mix(in oklab, var(--color-blue-500) 60%, transparent)}}.stroke-emerald-500\\/60{stroke:#00bb7f99}@supports (color:color-mix(in lab, red, red)){.stroke-emerald-500\\/60{stroke:color-mix(in oklab, var(--color-emerald-500) 60%, transparent)}}.stroke-fg-subtle{stroke:var(--color-fg-subtle)}.stroke-red-500{stroke:var(--color-red-500)}.stroke-rose-500\\/60{stroke:#ff235799}@supports (color:color-mix(in lab, red, red)){.stroke-rose-500\\/60{stroke:color-mix(in oklab, var(--color-rose-500) 60%, transparent)}}.stroke-sky-500\\/60{stroke:#00a5ef99}@supports (color:color-mix(in lab, red, red)){.stroke-sky-500\\/60{stroke:color-mix(in oklab, var(--color-sky-500) 60%, transparent)}}.stroke-teal-500\\/60{stroke:#00baa799}@supports (color:color-mix(in lab, red, red)){.stroke-teal-500\\/60{stroke:color-mix(in oklab, var(--color-teal-500) 60%, transparent)}}.stroke-violet-500\\/60{stroke:#8d54ff99}@supports (color:color-mix(in lab, red, red)){.stroke-violet-500\\/60{stroke:color-mix(in oklab, var(--color-violet-500) 60%, transparent)}}.stroke-\\[2\\.5px\\]{stroke-width:2.5px}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-px{padding-block-start:1px;padding-block-end:1px}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:var(--spacing)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-7{padding-right:calc(var(--spacing) * 7)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-7{padding-left:calc(var(--spacing) * 7)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent,.text-accent\\/80{color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.text-accent\\/80{color:color-mix(in oklab, var(--color-accent) 80%, transparent)}}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-cyan-500{color:var(--color-cyan-500)}.text-cyan-600{color:var(--color-cyan-600)}.text-danger{color:var(--color-danger)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-fg{color:var(--color-fg)}.text-fg-muted,.text-fg-muted\\/70{color:var(--color-fg-muted)}@supports (color:color-mix(in lab, red, red)){.text-fg-muted\\/70{color:color-mix(in oklab, var(--color-fg-muted) 70%, transparent)}}.text-fg-muted\\/80{color:var(--color-fg-muted)}@supports (color:color-mix(in lab, red, red)){.text-fg-muted\\/80{color:color-mix(in oklab, var(--color-fg-muted) 80%, transparent)}}.text-fg-subtle,.text-fg-subtle\\/60{color:var(--color-fg-subtle)}@supports (color:color-mix(in lab, red, red)){.text-fg-subtle\\/60{color:color-mix(in oklab, var(--color-fg-subtle) 60%, transparent)}}.text-fuchsia-500{color:var(--color-fuchsia-500)}.text-fuchsia-600{color:var(--color-fuchsia-600)}.text-gray-50{color:var(--color-gray-50)}.text-gray-100{color:var(--color-gray-100)}.text-gray-500{color:var(--color-gray-500)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-indigo-500{color:var(--color-indigo-500)}.text-indigo-600{color:var(--color-indigo-600)}.text-line{color:var(--color-line)}.text-line-subtle{color:var(--color-line-subtle)}.text-orange-600{color:var(--color-orange-600)}.text-orange-700{color:var(--color-orange-700)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-sky-500{color:var(--color-sky-500)}.text-sky-600{color:var(--color-sky-600)}.text-stone-600{color:var(--color-stone-600)}.text-success{color:var(--color-success)}.text-surface{color:var(--color-surface)}.text-violet-500{color:var(--color-violet-500)}.text-violet-600{color:var(--color-violet-600)}.text-violet-600\\/70{color:#7f22feb3}@supports (color:color-mix(in lab, red, red)){.text-violet-600\\/70{color:color-mix(in oklab, var(--color-violet-600) 70%, transparent)}}.text-violet-700{color:var(--color-violet-700)}.text-warning{color:var(--color-warning)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_0_\\#d4d4d8\\]{--tw-shadow:0 1px 0 var(--tw-shadow-color,#d4d4d8);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-accent,.ring-accent\\/20{--tw-ring-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.ring-accent\\/20{--tw-ring-color:color-mix(in oklab, var(--color-accent) 20%, transparent)}}.ring-danger{--tw-ring-color:var(--color-danger)}.ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.row-virtual{content-visibility:auto;contain-intrinsic-size:auto 32px}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:bg-accent:is(:where(.group):hover *){background-color:var(--color-accent)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\\/stat\\:underline:is(:where(.group\\/stat):hover *){text-decoration-line:underline}}.group-focus-visible\\:bg-accent:is(:where(.group):focus-visible *){background-color:var(--color-accent)}.last\\:mr-0:last-child{margin-right:0}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-danger-border:hover{border-color:var(--color-danger-border)}.hover\\:border-line:hover{border-color:var(--color-line)}.hover\\:bg-accent:hover,.hover\\:bg-accent\\/5:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/5:hover{background-color:color-mix(in oklab, var(--color-accent) 5%, transparent)}}.hover\\:bg-accent\\/10:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/10:hover{background-color:color-mix(in oklab, var(--color-accent) 10%, transparent)}}.hover\\:bg-accent\\/15:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/15:hover{background-color:color-mix(in oklab, var(--color-accent) 15%, transparent)}}.hover\\:bg-accent\\/20:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/20:hover{background-color:color-mix(in oklab, var(--color-accent) 20%, transparent)}}.hover\\:bg-accent\\/90:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/90:hover{background-color:color-mix(in oklab, var(--color-accent) 90%, transparent)}}.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}.hover\\:bg-danger-bg:hover,.hover\\:bg-danger-bg\\/60:hover{background-color:var(--color-danger-bg)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger-bg\\/60:hover{background-color:color-mix(in oklab, var(--color-danger-bg) 60%, transparent)}}.hover\\:bg-danger-bg\\/70:hover{background-color:var(--color-danger-bg)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger-bg\\/70:hover{background-color:color-mix(in oklab, var(--color-danger-bg) 70%, transparent)}}.hover\\:bg-danger-bg\\/80:hover{background-color:var(--color-danger-bg)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger-bg\\/80:hover{background-color:color-mix(in oklab, var(--color-danger-bg) 80%, transparent)}}.hover\\:bg-emerald-500\\/25:hover{background-color:#00bb7f40}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-emerald-500\\/25:hover{background-color:color-mix(in oklab, var(--color-emerald-500) 25%, transparent)}}.hover\\:bg-gray-400:hover{background-color:var(--color-gray-400)}.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}.hover\\:bg-hover:hover,.hover\\:bg-hover\\/50:hover{background-color:var(--color-hover)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-hover\\/50:hover{background-color:color-mix(in oklab, var(--color-hover) 50%, transparent)}}.hover\\:bg-orange-400:hover{background-color:var(--color-orange-400)}.hover\\:bg-purple-400:hover{background-color:var(--color-purple-400)}.hover\\:bg-red-400:hover{background-color:var(--color-red-400)}.hover\\:bg-red-500\\/25:hover{background-color:#fb2c3640}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-500\\/25:hover{background-color:color-mix(in oklab, var(--color-red-500) 25%, transparent)}}.hover\\:bg-subtle:hover{background-color:var(--color-subtle)}.hover\\:bg-violet-500\\/25:hover{background-color:#8d54ff40}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-violet-500\\/25:hover{background-color:color-mix(in oklab, var(--color-violet-500) 25%, transparent)}}.hover\\:bg-warning-bg:hover,.hover\\:bg-warning-bg\\/80:hover{background-color:var(--color-warning-bg)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-warning-bg\\/80:hover{background-color:color-mix(in oklab, var(--color-warning-bg) 80%, transparent)}}.hover\\:text-accent:hover{color:var(--color-accent)}.hover\\:text-danger:hover{color:var(--color-danger)}.hover\\:text-fg:hover{color:var(--color-fg)}.hover\\:text-fg-muted:hover{color:var(--color-fg-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:border-accent:focus{border-color:var(--color-accent)}.focus\\:border-line:focus{border-color:var(--color-line)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-accent:focus{--tw-ring-color:var(--color-accent)}.focus\\:ring-danger:focus{--tw-ring-color:var(--color-danger)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:bg-hover:focus-visible{background-color:var(--color-hover)}.focus-visible\\:opacity-100:focus-visible{opacity:1}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-accent:focus-visible{--tw-ring-color:var(--color-accent)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-accent:focus-visible{outline-color:var(--color-accent)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}@media (hover:hover){.disabled\\:hover\\:bg-accent\\/10:disabled:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.disabled\\:hover\\:bg-accent\\/10:disabled:hover{background-color:color-mix(in oklab, var(--color-accent) 10%, transparent)}}.disabled\\:hover\\:bg-danger-bg:disabled:hover{background-color:var(--color-danger-bg)}.disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}@media (min-width:40rem){.sm\\:inline{display:inline}.sm\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width:48rem){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width>=28rem){.\\@md\\:block{display:block}.\\@md\\:flex{display:flex}.\\@md\\:hidden{display:none}.\\@md\\:w-72{width:calc(var(--spacing) * 72)}.\\@md\\:shrink-0{flex-shrink:0}.\\@md\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}}}*{box-sizing:border-box}:host,:root{--at-surface:#fcfdfe;--at-surface-hover:#f5f6f9;--at-muted:#f2f5f8;--at-code:#f3f6fa;--at-text-primary:#1a1f29;--at-text-secondary:#515864;--at-text-muted:#868d97;--at-border:#dfe1e5;--at-border-light:#eef0f3;--at-shadow:#171f2e1a;--at-accent:#3177dc;--at-error-bg:#ffecea;--at-error-text:#cc2827;--at-error-border:#f8a49d;--at-ok-bg:#e0fae4;--at-ok-text:#0e8c41;--at-ok-border:#89da9b;--at-warn-bg:#fff0d1;--at-warn-text:#a16500;--at-warn-border:#e5c379;--at-highlight-bg:#fff6d1;--at-selected-bg:#e9f3ff;--at-scrollbar-thumb:#ced1d6;--at-scrollbar-thumb-hover:#999fa8}@supports (color:color(display-p3 0 0 0)){:host,:root{--at-surface:color(display-p3 .989609 .992382 .997175);--at-surface-hover:color(display-p3 .960878 .966392 .975929);--at-muted:color(display-p3 .951795 .958673 .970576);--at-code:color(display-p3 .955784 .964045 .978342);--at-text-primary:color(display-p3 .106201 .12247 .157281);--at-text-secondary:color(display-p3 .323937 .346032 .388256);--at-text-muted:color(display-p3 .528711 .550898 .589512);--at-border:color(display-p3 .875378 .883503 .897566);--at-border-light:color(display-p3 .934839 .941694 .953557);--at-shadow:color(display-p3 .0979137 .121845 .174352/.1);--at-accent:color(display-p3 .266557 .461859 .837181);--at-error-bg:color(display-p3 1.00853 .923821 .911661);--at-error-text:color(display-p3 .7372 .221951 .191652);--at-error-border:color(display-p3 .924106 .659231 .626897);--at-ok-bg:color(display-p3 .896905 .977035 .900254);--at-ok-text:color(display-p3 .247857 .539374 .286752);--at-ok-border:color(display-p3 .609805 .847347 .627399);--at-warn-bg:color(display-p3 .997819 .943515 .816698);--at-warn-text:color(display-p3 .607081 .403503 .0845266);--at-warn-border:color(display-p3 .876737 .768181 .515098);--at-highlight-bg:color(display-p3 .994932 .96424 .830533);--at-selected-bg:color(display-p3 .910207 .951093 1.02232);--at-scrollbar-thumb:color(display-p3 .80912 .819793 .838278);--at-scrollbar-thumb-hover:color(display-p3 .60332 .622263 .655172)}}@supports (color:lab(0% 0 0)){:host,:root{--at-surface:lab(99.2988% -.132054 -.745118);--at-surface-hover:lab(96.9735% -.261605 -1.48877);--at-muted:lab(96.2747% -.325292 -1.86008);--at-code:lab(96.736% -.388592 -2.23104);--at-text-primary:lab(11.741% -.349499 -7.30943);--at-text-secondary:lab(37.2801% -.862852 -7.73156);--at-text-muted:lab(58.1854% -1.04666 -6.62941);--at-border:lab(89.5439% -.387847 -2.23061);--at-border-light:lab(94.7667% -.325233 -1.86);--at-shadow:lab(11.6682% -.113927 -10.842/.1);--at-accent:lab(49.8997% 5.63273 -59.1615);--at-error-bg:lab(95.0829% 9.19622 4.96011);--at-error-text:lab(45.8049% 62.9533 44.1);--at-error-border:lab(75.8489% 31.0226 17.1029);--at-ok-bg:lab(95.8936% -11.84 7.56052);--at-ok-text:lab(50.824% -45.5785 30.3918);--at-ok-border:lab(80.6679% -35.8792 23.2774);--at-warn-bg:lab(95.5261% 2.02972 19.535);--at-warn-text:lab(48.6413% 21.7782 63.415);--at-warn-border:lab(80.5062% 5.88706 41.41);--at-highlight-bg:lab(96.7959% -.972748 19.4827);--at-selected-bg:lab(95.2674% -1.71572 -11.035);--at-scrollbar-thumb:lab(83.7382% -.510752 -2.97043);--at-scrollbar-thumb-hover:lab(65.1562% -.902712 -5.53997)}}:host([data-theme=dark]),:root[data-theme=dark]{--at-surface:#151b25;--at-surface-hover:#1d2431;--at-muted:#191f2b;--at-code:#1b222d;--at-text-primary:#dfe5ed;--at-text-secondary:#9ca5b3;--at-text-muted:#727b88;--at-border:#2e3643;--at-border-light:#232934;--at-shadow:#00000073;--at-accent:#63a6ff;--at-error-bg:#742e2940;--at-error-text:#ff7f73;--at-error-border:#cf413a;--at-ok-bg:#39794933;--at-ok-text:#6ed889;--at-ok-border:#2e9e52;--at-warn-bg:#7e5d1d38;--at-warn-text:#f1bf5b;--at-warn-border:#b07b00;--at-highlight-bg:#b8a4571f;--at-selected-bg:#6087c22e;--at-scrollbar-thumb:#3d434d;--at-scrollbar-thumb-hover:#565e6c}@supports (color:color(display-p3 0 0 0)){:host([data-theme=dark]),:root[data-theme=dark]{--at-surface:color(display-p3 .0866362 .104012 .141551);--at-surface-hover:color(display-p3 .119527 .140938 .187194);--at-muted:color(display-p3 .10291 .122282 .164135);--at-code:color(display-p3 .112011 .131618 .173879);--at-text-primary:color(display-p3 .880198 .897517 .925177);--at-text-secondary:color(display-p3 .618009 .647763 .695453);--at-text-muted:color(display-p3 .454817 .481202 .527256);--at-border:color(display-p3 .187231 .209329 .256415);--at-border-light:color(display-p3 .14159 .16023 .200008);--at-shadow:color(display-p3 0 0 0/.45);--at-accent:color(display-p3 .445537 .644287 .978823);--at-error-bg:color(display-p3 .422373 .197971 .171651/.25);--at-error-text:color(display-p3 .938127 .52257 .468553);--at-error-border:color(display-p3 .751519 .297873 .256966);--at-ok-bg:color(display-p3 .287508 .467968 .304198/.2);--at-ok-text:color(display-p3 .538207 .838899 .565385);--at-ok-border:color(display-p3 .319936 .612208 .354223);--at-warn-bg:color(display-p3 .474062 .369044 .161788/.22);--at-warn-text:color(display-p3 .915105 .755059 .421563);--at-warn-border:color(display-p3 .660566 .489104 .15495);--at-highlight-bg:color(display-p3 .708898 .646062 .385093/.12);--at-selected-bg:color(display-p3 .407909 .526271 .742584/.18);--at-scrollbar-thumb:color(display-p3 .241934 .260441 .299404);--at-scrollbar-thumb-hover:color(display-p3 .342885 .367416 .419047)}}@supports (color:lab(0% 0 0)){:host([data-theme=dark]),:root[data-theme=dark]{--at-surface:lab(9.40435% -.26536 -8.00193);--at-surface-hover:lab(14.0233% -.313595 -9.45683);--at-muted:lab(11.7138% -.289485 -8.72938);--at-code:lab(12.8756% -.320837 -8.73908);--at-text-primary:lab(90.6923% -.891328 -4.41389);--at-text-secondary:lab(67.4629% -1.51783 -8.03232);--at-text-muted:lab(51.2096% -1.21292 -8.07107);--at-border:lab(22.1597% -.497714 -9.15806);--at-border-light:lab(16.373% -.418156 -8.05204);--at-shadow:lab(0% 0 0/.45);--at-accent:lab(66.6499% -1.4444 -52.3046);--at-error-bg:lab(29.4384% 31.1218 19.7271/.25);--at-error-text:lab(68.3188% 49.5998 30.86);--at-error-border:lab(49.5145% 56.3761 37.3383);--at-ok-bg:lab(45.5916% -30.0637 19.6786/.2);--at-ok-text:lab(78.7102% -45.0683 29.4705);--at-ok-border:lab(57.7987% -45.4011 30.0617);--at-warn-bg:lab(42.0282% 9.23485 40.2236/.22);--at-warn-text:lab(80.4197% 11.1201 56.0991);--at-warn-border:lab(55.853% 15.6735 62.0226);--at-highlight-bg:lab(67.9375% .259876 42.1122/.12);--at-selected-bg:lab(55.3782% -1.45972 -35.4324/.18);--at-scrollbar-thumb:lab(27.992% -.544697 -7.38333);--at-scrollbar-thumb-hover:lab(39.5702% -.685155 -9.23098)}}@media (prefers-color-scheme:dark){:host([data-theme=system]),:root[data-theme=system]{--at-surface:#151b25;--at-surface-hover:#1d2431;--at-muted:#191f2b;--at-code:#1b222d;--at-text-primary:#dfe5ed;--at-text-secondary:#9ca5b3;--at-text-muted:#727b88;--at-border:#2e3643;--at-border-light:#232934;--at-shadow:#00000073;--at-accent:#63a6ff;--at-error-bg:#742e2940;--at-error-text:#ff7f73;--at-error-border:#cf413a;--at-ok-bg:#39794933;--at-ok-text:#6ed889;--at-ok-border:#2e9e52;--at-highlight-bg:#b8a4571f;--at-selected-bg:#6087c22e;--at-scrollbar-thumb:#3d434d;--at-scrollbar-thumb-hover:#565e6c}@supports (color:color(display-p3 0 0 0)){:host([data-theme=system]),:root[data-theme=system]{--at-surface:color(display-p3 .0866362 .104012 .141551);--at-surface-hover:color(display-p3 .119527 .140938 .187194);--at-muted:color(display-p3 .10291 .122282 .164135);--at-code:color(display-p3 .112011 .131618 .173879);--at-text-primary:color(display-p3 .880198 .897517 .925177);--at-text-secondary:color(display-p3 .618009 .647763 .695453);--at-text-muted:color(display-p3 .454817 .481202 .527256);--at-border:color(display-p3 .187231 .209329 .256415);--at-border-light:color(display-p3 .14159 .16023 .200008);--at-shadow:color(display-p3 0 0 0/.45);--at-accent:color(display-p3 .445537 .644287 .978823);--at-error-bg:color(display-p3 .422373 .197971 .171651/.25);--at-error-text:color(display-p3 .938127 .52257 .468553);--at-error-border:color(display-p3 .751519 .297873 .256966);--at-ok-bg:color(display-p3 .287508 .467968 .304198/.2);--at-ok-text:color(display-p3 .538207 .838899 .565385);--at-ok-border:color(display-p3 .319936 .612208 .354223);--at-highlight-bg:color(display-p3 .708898 .646062 .385093/.12);--at-selected-bg:color(display-p3 .407909 .526271 .742584/.18);--at-scrollbar-thumb:color(display-p3 .241934 .260441 .299404);--at-scrollbar-thumb-hover:color(display-p3 .342885 .367416 .419047)}}@supports (color:lab(0% 0 0)){:host([data-theme=system]),:root[data-theme=system]{--at-surface:lab(9.40435% -.26536 -8.00193);--at-surface-hover:lab(14.0233% -.313595 -9.45683);--at-muted:lab(11.7138% -.289485 -8.72938);--at-code:lab(12.8756% -.320837 -8.73908);--at-text-primary:lab(90.6923% -.891328 -4.41389);--at-text-secondary:lab(67.4629% -1.51783 -8.03232);--at-text-muted:lab(51.2096% -1.21292 -8.07107);--at-border:lab(22.1597% -.497714 -9.15806);--at-border-light:lab(16.373% -.418156 -8.05204);--at-shadow:lab(0% 0 0/.45);--at-accent:lab(66.6499% -1.4444 -52.3046);--at-error-bg:lab(29.4384% 31.1218 19.7271/.25);--at-error-text:lab(68.3188% 49.5998 30.86);--at-error-border:lab(49.5145% 56.3761 37.3383);--at-ok-bg:lab(45.5916% -30.0637 19.6786/.2);--at-ok-text:lab(78.7102% -45.0683 29.4705);--at-ok-border:lab(57.7987% -45.4011 30.0617);--at-highlight-bg:lab(67.9375% .259876 42.1122/.12);--at-selected-bg:lab(55.3782% -1.45972 -35.4324/.18);--at-scrollbar-thumb:lab(27.992% -.544697 -7.38333);--at-scrollbar-thumb-hover:lab(39.5702% -.685155 -9.23098)}}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--at-scrollbar-thumb,#d4d4d8);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--at-scrollbar-thumb-hover,#a1a1aa)}.waterfall-row:hover .waterfall-bar{filter:brightness(1.1)}.waterfall-bar{transition:all .15s ease-out}.trace-list-container{container-type:inline-size}.trace-grid{grid-template-columns:20px 104px minmax(0,1fr) 84px 52px 88px 60px 16px;align-items:center;gap:.75rem;display:grid}@container (width<=640px){.trace-grid{grid-template-columns:20px 92px minmax(0,1fr) 80px 58px 16px}.trace-col-spans,.trace-col-time{display:none}}@keyframes at-modal-in{0%{opacity:0;transform:translateY(6px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes at-fade-in{0%{opacity:0}to{opacity:1}}.at-modal-in{animation:.17s cubic-bezier(.22,1,.36,1) at-modal-in}.at-backdrop-in{animation:.17s ease-out at-fade-in}.at-wrap-anywhere{overflow-wrap:anywhere;word-break:normal}.at-no-scrollbar{scrollbar-width:none}.at-no-scrollbar::-webkit-scrollbar{display:none}@media (prefers-reduced-motion:reduce){.at-modal-in,.at-backdrop-in{animation:none}}.at-edge-label{paint-order:stroke;stroke:var(--color-surface);stroke-width:3px;stroke-linejoin:round}:where(a,button,[role=button],input,select,textarea,summary,[tabindex]:not([tabindex="-1"])):focus-visible{outline:2px solid var(--at-accent);outline-offset:2px}:where([data-focus-inset]):focus-visible{outline-offset:-2px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}`,cM=class extends HTMLElement{constructor(...e){super(...e),b(this,`cleanup`,null)}connectedCallback(){let e=this.attachShadow({mode:`open`}),t=document.createElement(`link`);t.rel=`stylesheet`,t.href=`https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap`,e.appendChild(t);let n=document.createElement(`style`);n.textContent=sM,e.appendChild(n);let r=this.getAttribute(`mode`)||`widget`,i=this.getAttribute(`ws-url`)||this.deriveWsUrl();this.cleanup=oM(e,{mode:r,wsUrl:i})}disconnectedCallback(){this.cleanup?.(),this.cleanup=null}deriveWsUrl(){return`ws://${location.host}/ws`}};b(cM,`observedAttributes`,[`mode`,`ws-url`]);function lM(){customElements.get(`autotel-devtools`)||customElements.define(`autotel-devtools`,cM)}var uM=document.currentScript;function dM(){let e=Qu(location.hash);return Object.keys(e).length>0?e:void 0}function fM(){let e=dM();if(!uM?.src)return{mode:`widget`,wsUrl:`ws://${location.host}/ws`,deepLink:e};let t=new URL(uM.src),n=t.searchParams;return{mode:n.get(`mode`)||`widget`,wsUrl:n.get(`ws`)||`ws://${t.host}/ws`,deepLink:e}}function pM(){if(lM(),document.querySelector(`autotel-devtools`))return;let{mode:e,wsUrl:t,deepLink:n}=fM(),r=document.createElement(`div`);r.id=`autotel-devtools-root`,document.body.appendChild(r);let i=r.attachShadow({mode:`open`}),a=document.createElement(`style`);a.textContent=sM,i.appendChild(a),oM(i,{mode:e,wsUrl:t,deepLink:n})}return document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,pM):pM(),e.mountWidget=oM,e.registerElement=lM,e})({});