skill-creator 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cli.js +107 -27
- package/dist/cli.js.map +3 -3
- package/dist/daemon.js +106 -26
- package/dist/daemon.js.map +3 -3
- package/dist/package.json +1 -1
- package/dist/webui/_app/immutable/chunks/{BySEbwqx.js → B0pe_B_o.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{B_YFzSAv.js → BQ8kO0xi.js} +1 -1
- package/dist/webui/_app/immutable/chunks/BZ2Jwl6O.js +1 -0
- package/dist/webui/_app/immutable/chunks/{D25cXQtk.js → Bg2k7op5.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{DWcQbrnv.js → BoMQFGOq.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{DEtYLPO4.js → CGrKeCdk.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{IYkYSIV6.js → COoMyR0G.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{D-ecV3TD.js → CqzSRtkf.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{D0xHg31U.js → CsaIfA9E.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{DJNLWtK-.js → D-Jy42mM.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{B2zyE4XX.js → DPrjly2t.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{BD9g8Udg.js → FuwccWbx.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{BaH4uqzh.js → JcDjicYT.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{BrDKAjtR.js → O2CEZ91h.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{iicbWqXp.js → gkPAnPzC.js} +1 -1
- package/dist/webui/_app/immutable/chunks/{CEpOi93z.js → r1y9r7sj.js} +1 -1
- package/dist/webui/_app/immutable/entry/{app.CbFi8HIH.js → app.BisiObvX.js} +2 -2
- package/dist/webui/_app/immutable/entry/start.uEYh5tXy.js +1 -0
- package/dist/webui/_app/immutable/nodes/{0.C7-AKGsj.js → 0.C8yGM2gr.js} +2 -2
- package/dist/webui/_app/immutable/nodes/{1.raBmjc20.js → 1.BUJKZ337.js} +1 -1
- package/dist/webui/_app/immutable/nodes/{2.ewWz-Ki-.js → 2.Db-aM2Oa.js} +1 -1
- package/dist/webui/_app/version.json +1 -1
- package/dist/webui/index.html +14 -14
- package/package.json +1 -1
- package/dist/webui/_app/immutable/chunks/DLuJKUyD.js +0 -1
- package/dist/webui/_app/immutable/entry/start.C3bV1TCO.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/
|
|
2
|
-
import{$ as e,A as t,At as n,B as r,Ct as i,D as a,Dt as o,E as s,F as c,G as l,H as u,J as d,K as f,M as p,Mt as m,N as h,Nt as g,O as _,Q as v,R as y,S as b,St as x,T as S,U as C,V as w,W as T,X as E,_ as D,_t as O,a as k,at as A,b as j,bt as ee,c as te,ct as M,d as N,f as P,ft as F,gt as I,h as L,ht as ne,it as re,j as ie,jt as R,k as ae,kt as oe,l as se,lt as z,m as B,mt as V,n as ce,nt as H,o as U,ot as W,p as le,q as G,r as ue,rt as de,s as K,st as q,ut as fe,v as pe,w as me,wt as he,x as J,y as ge,z as Y}from"../chunks/CmCJ0SKP.js";import{t as _e}from"../chunks/BaH4uqzh.js";import{t as ve}from"../chunks/HclGiUj8.js";import"../chunks/xihTtKlq.js";import{t as ye}from"../chunks/D0xHg31U.js";import"../chunks/DLuJKUyD.js";import{t as be}from"../chunks/BkEnd9_Z.js";import{A as xe,C as Se,D as Ce,E as X,F as we,M as Te,N as Ee,O as De,P as Oe,S as ke,T as Ae,_ as je,a as Me,c as Ne,d as Pe,f as Fe,g as Ie,h as Le,i as Re,j as ze,k as Be,l as Ve,m as He,n as Ue,o as We,p as Ge,r as Z,s as Ke,t as qe,u as Je,v as Ye,w as Xe,x as Ze,y as Qe}from"../chunks/BrDKAjtR.js";import{c as $e,d as et,l as tt,n as nt,o as rt,s as it,t as at,u as ot}from"../chunks/D-ecV3TD.js";import{A as st,C as ct,D as lt,E as ut,O as dt,S as ft,T as pt,a as mt,b as ht,c as gt,f as _t,g as vt,i as yt,k as bt,n as xt,o as St,p as Ct,r as wt,s as Tt,t as Et,v as Dt,w as Ot,x as kt}from"../chunks/DWcQbrnv.js";import{r as At}from"../chunks/D25cXQtk.js";import{i as jt,n as Mt,o as Nt,t as Pt}from"../chunks/BD9g8Udg.js";import{A as Ft,B as It,C as Lt,D as Rt,E as zt,F as Bt,G as Vt,H as Ht,I as Ut,J as Q,K as Wt,L as Gt,M as Kt,N as qt,O as Jt,P as Yt,R as Xt,S as Zt,T as Qt,U as $t,V as en,W as tn,Y as nn,_ as rn,a as an,b as on,c as sn,d as cn,f as ln,g as un,h as dn,i as fn,j as pn,k as mn,l as hn,m as gn,n as _n,o as vn,p as yn,q as bn,r as xn,s as Sn,t as Cn,u as wn,v as Tn,w as En,x as Dn,y as On,z as kn}from"../chunks/Dl8eQ129.js";import"../chunks/DZ_Kltd5.js";import{a as An,i as jn,n as Mn,o as Nn,r as Pn,s as Fn,t as In}from"../chunks/CNPsST_i.js";import{t as Ln}from"../chunks/BEPs9Z9s.js";import{n as Rn,r as zn,t as Bn}from"../chunks/Ckw1quWt.js";import{n as Vn,t as Hn}from"../chunks/0umLG1IN.js";import{t as Un}from"../chunks/CIFG41pU.js";import{t as Wn}from"../chunks/BIfnT_mK.js";import{t as Gn}from"../chunks/UeEccMjN.js";import{n as Kn,r as qn,t as Jn}from"../chunks/CQD9uzpA.js";var Yn=g({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>Xn}),Xn=`ignore`;it({id:`workspaces`,name:`Workspaces`,icon:we,activities:[$e({pattern:`/workspaces`,entry:!0,root:tt({id:`workspaces.home`,component:()=>ve(()=>import(`../chunks/B_YFzSAv.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)})}),$e({pattern:`/workspaces`,root:ot({id:`workspaces.provider`,pattern:`:wsId/:providerId`,params:ut({wsId:kt,providerId:ht}),search:ut({q:dt().optional(),skill:dt().optional(),view:ft([`list`,`detail`]).optional()}),component:()=>ve(()=>import(`../chunks/BySEbwqx.js`),__vite__mapDeps([16,1,3,5,17,2,18,4,7,19,9,10,8,12,20,21,22,15,23,24]),import.meta.url)})}),$e({pattern:`/workspaces`,root:ot({id:`workspaces.intelligence`,pattern:`intelligence/:wsId/:providerId`,params:ut({wsId:kt,providerId:ht}),search:ut({severity:ft([`all`,`error`,`warning`,`info`]).optional()}),component:()=>ve(()=>import(`../chunks/DEtYLPO4.js`),__vite__mapDeps([25,1,3,5,17,2,18,4,7,19,9,10,8,14,26,13,27,15,23]),import.meta.url)})})]});var Zn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qn(e,t){let n=U(t,Zn),r=[[`path`,{d:`M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z`}],[`path`,{d:`M14.487 7.858A1 1 0 0 1 14 7V2`}],[`path`,{d:`M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516`}],[`path`,{d:`M8 18h1`}]];be(e,K({name:`file-pen-line`},()=>n,{get iconNode(){return r}}))}it({id:`creator`,name:`Creator`,icon:Qn,activities:[$e({pattern:`/creator`,entry:!0,root:tt({id:`creator.home`,component:()=>ve(()=>import(`../chunks/IYkYSIV6.js`),__vite__mapDeps([28,1,2,3,4,5,9,7,10,29,30]),import.meta.url)})}),$e({pattern:`/creator`,root:ot({id:`creator.workspace`,pattern:`:mode/:wsId/:providerId`,params:ut({mode:ft([`edit`,`new`]),wsId:kt,providerId:ht}),search:ut({subview:ft([`file`,`log`,`preview`,`validate`,`test`]).optional(),template:dt().optional()}),component:()=>ve(()=>import(`../chunks/iicbWqXp.js`),__vite__mapDeps([31,1,2,3,18,4,5,17,7,19,9,10,11,8,12,13,20,32,30,22,27]),import.meta.url),children:[ot({id:`creator.workspace.skill`,pattern:`:skillId`,params:ut({skillId:Dt}),component:()=>ve(()=>import(`../chunks/iicbWqXp.js`),__vite__mapDeps([31,1,2,3,18,4,5,17,7,19,9,10,11,8,12,13,20,32,30,22,27]),import.meta.url)})]})})]});var $n=new Set([`$$slots`,`$$events`,`$$legacy`]);function er(e,t){let n=U(t,$n),r=[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`}],[`circle`,{cx:`18`,cy:`6`,r:`3`}],[`circle`,{cx:`6`,cy:`18`,r:`3`}]];be(e,K({name:`git-branch`},()=>n,{get iconNode(){return r}}))}it({id:`repository`,name:`Repository`,icon:er,activities:[$e({pattern:`/repository`,entry:!0,root:ot({id:`repository.home`,pattern:``,search:ut({q:dt().optional()}),component:()=>ve(()=>import(`../chunks/B2zyE4XX.js`),__vite__mapDeps([33,1,2,3,4,5,17,18,7,19,11,8,12,13,34]),import.meta.url),children:[ot({id:`repository.scan`,pattern:`scan/:sourceId`,params:ut({sourceId:dt().min(1).max(128).regex(/^[a-z0-9_-]+$/i)}),search:ut({selected:dt().optional(),targets:dt().optional(),skill:dt().optional()}),component:()=>ve(()=>import(`../chunks/CEpOi93z.js`),__vite__mapDeps([35,1,2,3,18,4,17,7,19,10,34]),import.meta.url)})]})})]});var tr=r(`<div class="drag-strip no-drag shrink-0 svelte-11tvdi8" role="banner" aria-label="window titlebar"><!> <div class="flex-1"></div> <!></div>`);function nr(e,t){i(t,!0);let r=k(t,`variant`,3,`main`),a=k(t,`left`,3,null),o=k(t,`right`,3,null),s=V(8),c=V(8),u=()=>navigator.opentrayWindow??navigator.opentray?.window??void 0;function d(e){let t=u();try{t?.startAppRegionDrag?.({x:e.clientX,y:e.clientY,pointerId:e.pointerId})?.catch?.(()=>{})}catch{}}function f(e){let t=globalThis.innerWidth,n=Math.max(0,Math.round(e.x)),r=Math.max(0,Math.round(t-e.x-e.width));F(s,n+(n>0?4:0)),F(c,r+(r>0?4:0))}ue(()=>{let e=u()?.overlay;if(!e)return;let t=null;return(async()=>{try{if(f(await e.getTitlebarAreaRect()),e.listen)t=await e.listen(`geometrychange`,e=>f(e.titlebarAreaRect));else if(e.addEventListener){let n=e=>f(e.titlebarAreaRect);e.addEventListener(`geometrychange`,n),t=()=>e.removeEventListener?.(`geometrychange`,n)}}catch{}})(),()=>{t?.()}});var p=tr(),m=W(p),g=e=>{var t=Y(),n=q(t);_(n,a),y(e,t)};h(m,e=>{r()===`main`&&a()&&e(g)});var v=z(m,4),b=e=>{var t=Y(),n=q(t);_(n,o),y(e,t)};h(v,e=>{r()===`main`&&o()&&e(b)}),n(p),H(()=>j(p,`padding-left: ${E(s)??``}px; padding-right: ${E(c)??``}px`)),l(`pointerdown`,p,d),y(e,p),x()}T([`pointerdown`]);var rr={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`};Vt(rr);function ir(t){de(()=>e(()=>t()))}var ar=[`top`,`right`,`bottom`,`left`],or=Math.min,sr=Math.max,cr=Math.round,lr=Math.floor,ur=e=>({x:e,y:e}),dr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function fr(e,t,n){return sr(e,or(t,n))}function pr(e,t){return typeof e==`function`?e(t):e}function mr(e){return e.split(`-`)[0]}function hr(e){return e.split(`-`)[1]}function gr(e){return e===`x`?`y`:`x`}function _r(e){return e===`y`?`height`:`width`}function vr(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yr(e){return gr(vr(e))}function br(e,t,n){n===void 0&&(n=!1);let r=hr(e),i=yr(e),a=_r(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=kr(o)),[o,kr(o)]}function xr(e){let t=kr(e);return[Sr(e),t,Sr(t)]}function Sr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Cr=[`left`,`right`],wr=[`right`,`left`],Tr=[`top`,`bottom`],Er=[`bottom`,`top`];function Dr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wr:Cr:t?Cr:wr;case`left`:case`right`:return t?Tr:Er;default:return[]}}function Or(e,t,n,r){let i=hr(e),a=Dr(mr(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Sr)))),a}function kr(e){let t=mr(e);return dr[t]+e.slice(t.length)}function Ar(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function jr(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ar(e)}function Mr(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 Nr(e,t,n){let{reference:r,floating:i}=e,a=vr(t),o=yr(t),s=_r(o),c=mr(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=hr(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Pr(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}=pr(t,e),p=jr(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Mr(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=Mr(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 Fr=50,Ir=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Pr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Nr(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<Fr&&(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}=Nr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Lr=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}=pr(e,t)||{};if(l==null)return{};let d=jr(u),f={x:n,y:r},p=yr(i),m=_r(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,T=C/2-h[m]/2-1,E=or(d[_],T),D=or(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=fr(E,k,O),j=!c.arrow&&hr(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ee=j?k<E?k-E:k-O:0;return{[p]:f[p]+ee,data:{[p]:A,centerOffset:k-A-ee,...j&&{alignmentOffset:ee}},reset:j}}}),Rr=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}=pr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=mr(r),_=vr(o),v=mr(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[kr(o)]:xr(o)),x=p!==`none`;!d&&x&&b.push(...Or(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=br(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===vr(t)||T.every(e=>vr(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.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=T.filter(e=>{if(x){let t=vr(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 zr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Br(e){return ar.some(t=>e[t]>=0)}var Vr=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pr(e,t);switch(i){case`referenceHidden`:{let e=zr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Br(e)}}}case`escaped`:{let e=zr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Br(e)}}}default:return{}}}}},Hr=new Set([`left`,`top`]);async function Ur(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=mr(n),s=hr(n),c=vr(n)===`y`,l=Hr.has(o)?-1:1,u=a&&c?-1:1,d=pr(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 Wr=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 Ur(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}}}}},Gr=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}=pr(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=vr(i),p=gr(f),m=u[p],h=u[f],g=(e,t)=>fr(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}}}}}},Kr=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}=pr(e,t),u={x:n,y:r},d=vr(i),f=gr(d),p=u[f],m=u[d],h=pr(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=Hr.has(mr(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}}}},qr=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}=pr(e,t),c=await i.detectOverflow(t,s),l=mr(n),u=hr(n),d=vr(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=or(p-c[m],g),y=or(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*sr(c.left,c.right):S=p-2*sr(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 Jr(){return typeof window<`u`}function Yr(e){return Qr(e)?(e.nodeName||``).toLowerCase():`#document`}function Xr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zr(e){return((Qr(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qr(e){return Jr()?e instanceof Node||e instanceof Xr(e).Node:!1}function $r(e){return Jr()?e instanceof Element||e instanceof Xr(e).Element:!1}function ei(e){return Jr()?e instanceof HTMLElement||e instanceof Xr(e).HTMLElement:!1}function ti(e){return!Jr()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Xr(e).ShadowRoot}function ni(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=pi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ri(e){return/^(table|td|th)$/.test(Yr(e))}function ii(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ai=/transform|translate|scale|rotate|perspective|filter/,oi=/paint|layout|strict|content/,si=e=>!!e&&e!==`none`,ci;function li(e){let t=$r(e)?pi(e):e;return si(t.transform)||si(t.translate)||si(t.scale)||si(t.rotate)||si(t.perspective)||!di()&&(si(t.backdropFilter)||si(t.filter))||ai.test(t.willChange||``)||oi.test(t.contain||``)}function ui(e){let t=hi(e);for(;ei(t)&&!fi(t);){if(li(t))return t;if(ii(t))return null;t=hi(t)}return null}function di(){return ci??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ci}function fi(e){return/^(html|body|#document)$/.test(Yr(e))}function pi(e){return Xr(e).getComputedStyle(e)}function mi(e){return $r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hi(e){if(Yr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ti(e)&&e.host||Zr(e);return ti(t)?t.host:t}function gi(e){let t=hi(e);return fi(t)?(e.ownerDocument||e).body:ei(t)&&ni(t)?t:gi(t)}function _i(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=gi(e),i=r===e.ownerDocument?.body,a=Xr(r);if(i){let e=vi(a);return t.concat(a,a.visualViewport||[],ni(r)?r:[],e&&n?_i(e):[])}return t.concat(r,_i(r,[],n))}function vi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yi(e){let t=pi(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ei(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=cr(n)!==a||cr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bi(e){return $r(e)?e:e.contextElement}function xi(e){let t=bi(e);if(!ei(t))return ur(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=yi(t),o=(a?cr(n.width):n.width)/r,s=(a?cr(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Si=ur(0);function Ci(e){let t=Xr(e);return!di()||!t.visualViewport?Si:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wi(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Xr(e)}function Ti(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=bi(e),o=ur(1);t&&(r?$r(r)&&(o=xi(r)):o=xi(e));let s=wi(a,n,r)?Ci(a):ur(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=Xr(a),t=$r(r)?Xr(r):r,n=e,i=vi(n);for(;i&&t!==n;){let e=xi(i),t=i.getBoundingClientRect(),r=pi(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=Xr(i),i=vi(n)}}return Mr({width:u,height:d,x:c,y:l})}function Ei(e,t){let n=mi(e).scrollLeft;return t?t.left+n:Ti(Zr(e)).left+n}function Di(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ei(e,n),y:n.top+t.scrollTop}}function Oi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Zr(r),s=t?ii(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ur(1),u=ur(0),d=ei(r);if((d||!a)&&((Yr(r)!==`body`||ni(o))&&(c=mi(r)),d)){let e=Ti(r);l=xi(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Di(o,c):ur(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 ki(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ai(e){let t=mi(e),n=e.ownerDocument.body,r=sr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=sr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ei(e),o=-t.scrollTop;return pi(n).direction===`rtl`&&(a+=sr(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ji=25;function Mi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Xr(e),a=Zr(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!di()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ei(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<=ji&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ni(e,t){let n=Ti(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=xi(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pi(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Mi(e,n,t);else if(t===`document`)r=Ai(Zr(e));else if($r(t))r=Ni(t,n);else{let n=Ci(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mr(r)}function Fi(e,t){let n=t.get(e);if(n)return n;let r=_i(e,[],!1).filter(e=>$r(e)&&Yr(e)!==`body`),i=null,a=pi(e).position===`fixed`,o=a?hi(e):e;for(;$r(o)&&!fi(o);){let e=pi(o),t=li(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=hi(o)}return t.set(e,r),r}function Ii(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ii(t)?[]:Fi(t,this._c):[].concat(n),r],o=Pi(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=Pi(t,a[e],i);s=sr(n.top,s),c=or(n.right,c),l=or(n.bottom,l),u=sr(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Li(e){let{width:t,height:n}=yi(e);return{width:t,height:n}}function Ri(e,t,n){let r=ei(t),i=Zr(t),a=n===`fixed`,o=Ti(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ur(0);if((r||!a)&&((Yr(t)!==`body`||ni(i))&&(s=mi(t)),r)){let e=Ti(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ei(i));let l=i&&!r&&!a?Di(i,s):ur(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 zi(e){return pi(e).position===`static`}function Bi(e,t){if(!ei(e)||pi(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Zr(e)===n&&(n=n.ownerDocument.body),n}function Vi(e,t){let n=Xr(e);if(ii(e))return n;if(!ei(e)){let t=hi(e);for(;t&&!fi(t);){if($r(t)&&!zi(t))return t;t=hi(t)}return n}let r=Bi(e,t);for(;r&&ri(r)&&zi(r);)r=Bi(r,t);return r&&fi(r)&&zi(r)&&!li(r)?n:r||ui(e)||n}var Hi=async function(e){let t=this.getOffsetParent||Vi,n=this.getDimensions,r=await n(e.floating);return{reference:Ri(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ui(e){return pi(e).direction===`rtl`}var Wi={convertOffsetParentRelativeRectToViewportRelativeRect:Oi,getDocumentElement:Zr,getClippingRect:Ii,getOffsetParent:Vi,getElementRects:Hi,getClientRects:ki,getDimensions:Li,getScale:xi,isElement:$r,isRTL:Ui};function Gi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ki(e,t,n){let r=null,i,a=Zr(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=lr(d),h=lr(a.clientWidth-(u+f)),g=lr(a.clientHeight-(d+p)),_=lr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:sr(0,or(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Gi(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=Xr(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function qi(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=bi(e),u=i||a?[...l?_i(l):[],...t?_i(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ki(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?Ti(e):null;c&&g();function g(){let t=Ti(e);h&&!Gi(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 Ji=Wr,Yi=Gr,Xi=Rr,Zi=qr,Qi=Vr,$i=Lr,ea=Kr,ta=(e,t,n)=>{let r=new Map,i=n??{},a={...Wi,...i.platform,_c:r};return Ir(e,t,{...i,platform:a})};function na(e){return typeof e==`function`?e():e}function ra(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ia(e,t){let n=ra(e);return Math.round(t*n)/n}function aa(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 oa(e){let t=e.whileElementsMounted,n=I(()=>na(e.open)??!0),r=I(()=>na(e.middleware)),i=I(()=>na(e.transform)??!0),a=I(()=>na(e.placement)??`bottom`),o=I(()=>na(e.strategy)??`absolute`),s=I(()=>na(e.sideOffset)??0),c=I(()=>na(e.alignOffset)??0),l=e.reference,u=V(0),d=V(0),f=nn(null),p=V(fe(E(o))),m=V(fe(E(a))),h=V(fe({})),g=V(!1),_=!1,v=0,y=I(()=>{let e=f.current?ia(f.current,E(u)):E(u),t=f.current?ia(f.current,E(d)):E(d);return E(i)?{position:E(p),left:`0`,top:`0`,transform:`translate(${e}px, ${t}px)`,...f.current&&ra(f.current)>=1.5&&{willChange:`transform`}}:{position:E(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;ta(e,t,{middleware:E(r),placement:E(a),strategy:E(o)}).then(r=>{if(i===v&&l.current===e&&f.current===t){if(sa(e)){F(h,{...E(h),hide:{...E(h).hide,referenceHidden:!0}},!0);return}if(!E(n)&&E(u)!==0&&E(d)!==0){let e=Math.max(Math.abs(E(s)),Math.abs(E(c)),15);if(r.x<=e&&r.y<=e)return}F(u,r.x,!0),F(d,r.y,!0),F(p,r.strategy,!0),F(m,r.placement,!0),F(h,r.middlewareData,!0),F(g,!0)}})}function S(){typeof b==`function`&&(b(),b=void 0),v++}function C(){if(S(),t===void 0){x();return}E(n)&&l.current!==null&&f.current!==null&&(b=t(l.current,f.current,x))}function w(){!E(n)&&f.current===null&&F(g,!1)}function T(){return[E(r),E(a),E(o),E(s),E(c),E(n)]}return de(()=>{t===void 0&&E(n)&&x()}),de(C),de(()=>{if(t!==void 0){if(T(),!E(n)){_=!1;return}if(!E(g)){_=!1;return}if(!_){_=!0;return}x()}}),de(w),de(()=>S),{floating:f,reference:l,get strategy(){return E(p)},get placement(){return E(m)},get middlewareData(){return E(h)},get isPositioned(){return E(g)},get floatingStyles(){return E(y)},get update(){return x}}}function sa(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}var ca={top:`bottom`,right:`left`,bottom:`top`,left:`right`},la=new $t(`Floating.Root`),ua=new $t(`Floating.Content`),da=new $t(`Floating.Root`),fa=class e{static create(t=!1){return t?da.set(new e):la.set(new e)}anchorNode=nn(null);customAnchorNode=nn(null);triggerNode=nn(null);constructor(){de(()=>{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})}},pa=class e{static create(t,n=!1){return n?ua.set(new e(t,da.get())):ua.set(new e(t,la.get()))}opts;root;contentRef=nn(null);wrapperRef=nn(null);arrowRef=nn(null);contentAttachment=Ut(this.contentRef);wrapperAttachment=Ut(this.wrapperRef);arrowAttachment=Ut(this.arrowRef);arrowId=nn(hn());#e=I(()=>{if(typeof this.opts.style==`string`)return Wt(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new en(()=>this.arrowRef.current??void 0);#r=I(()=>this.#n?.width??0);#i=I(()=>this.#n?.height??0);#a=I(()=>this.opts.side?.current+(this.opts.align.current===`center`?``:`-${this.opts.align.current}`));#o=I(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=I(()=>E(this.#o).length>0);get hasExplicitBoundaries(){return E(this.#s)}set hasExplicitBoundaries(e){F(this.#s,e)}#c=I(()=>({padding:this.opts.collisionPadding.current,boundary:E(this.#o).filter(zt),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return E(this.#c)}set detectOverflowOptions(e){F(this.#c,e)}#l=V(void 0);#u=V(void 0);#d=V(void 0);#f=V(void 0);#p=I(()=>[Ji({mainAxis:this.opts.sideOffset.current+E(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Yi({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current===`partial`?ea():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Xi({...this.detectOverflowOptions}),Zi({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{let{width:r,height:i}=e.reference;F(this.#l,t,!0),F(this.#u,n,!0),F(this.#d,r,!0),F(this.#f,i,!0)}}),this.arrowRef.current&&$i({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ha({arrowWidth:E(this.#r),arrowHeight:E(this.#i)}),this.opts.hideWhenDetached.current&&Qi({strategy:`referenceHidden`,...this.detectOverflowOptions})].filter(Boolean));get middleware(){return E(this.#p)}set middleware(e){F(this.#p,e)}floating;#m=I(()=>_a(this.floating.placement));get placedSide(){return E(this.#m)}set placedSide(e){F(this.#m,e)}#h=I(()=>va(this.floating.placement));get placedAlign(){return E(this.#h)}set placedAlign(e){F(this.#h,e)}#g=I(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return E(this.#g)}set arrowX(e){F(this.#g,e)}#_=I(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return E(this.#_)}set arrowY(e){F(this.#_,e)}#v=I(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return E(this.#v)}set cannotCenterArrow(e){F(this.#v,e)}#y=V();get contentZIndex(){return E(this.#y)}set contentZIndex(e){F(this.#y,e,!0)}#b=I(()=>ca[this.placedSide]);get arrowBaseSide(){return E(this.#b)}set arrowBaseSide(e){F(this.#b,e)}#x=I(()=>({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":`${E(this.#l)}px`,"--bits-floating-available-height":`${E(this.#u)}px`,"--bits-floating-anchor-width":`${E(this.#d)}px`,"--bits-floating-anchor-height":`${E(this.#f)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:`hidden`,"pointer-events":`none`},...E(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return E(this.#x)}set wrapperProps(e){F(this.#x,e)}#S=I(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Vt({...E(this.#e)}),...this.contentAttachment}));get props(){return E(this.#S)}set props(e){F(this.#S,e)}#C=I(()=>({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}));get arrowStyle(){return E(this.#C)}set arrowStyle(e){F(this.#C,e)}constructor(e,t){this.opts=e,this.root=t,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),Ht(()=>e.customAnchor.current,e=>{this.root.customAnchorNode.current=e}),this.floating=oa({strategy:()=>this.opts.strategy.current,placement:()=>E(this.#a),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...e)=>qi(...e,{animationFrame:this.#t?.current===`always`}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),de(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Ht(()=>this.contentRef.current,e=>{if(!e||!this.opts.enabled.current)return;let t=Gt(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)}}),de(()=>{this.floating.floating.current=this.wrapperRef.current})}},ma=class e{static create(t,n=!1){return n?new e(t,da.get()):new e(t,la.get())}opts;root;constructor(e,t){this.opts=e,this.root=t,t.triggerNode=e.virtualEl&&e.virtualEl.current?bn(e.virtualEl.current):e.ref}};function ha(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]=ga(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 ga(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function _a(e){return ga(e)[0]}function va(e){return ga(e)[1]}function ya(e,t){i(t,!0);let n=k(t,`tooltip`,3,!1);fa.create(n());var r=Y(),a=q(r);_(a,()=>t.children??R),y(e,r),x()}function ba(e,t){i(t,!0);let n=k(t,`tooltip`,3,!1);ma.create({id:Q(()=>t.id),virtualEl:Q(()=>t.virtualEl),ref:t.ref},n());var r=Y(),a=q(r);_(a,()=>t.children??R),y(e,r),x()}function xa(e,t){i(t,!0);let n=k(t,`side`,3,`bottom`),r=k(t,`sideOffset`,3,0),a=k(t,`align`,3,`center`),o=k(t,`alignOffset`,3,0),s=k(t,`arrowPadding`,3,0),c=k(t,`avoidCollisions`,3,!0),l=k(t,`collisionBoundary`,19,()=>[]),u=k(t,`collisionPadding`,3,0),d=k(t,`hideWhenDetached`,3,!1),f=k(t,`onPlaced`,3,()=>{}),p=k(t,`sticky`,3,`partial`),m=k(t,`updatePositionStrategy`,3,`optimized`),h=k(t,`strategy`,3,`fixed`),g=k(t,`dir`,3,`ltr`),v=k(t,`style`,19,()=>({})),b=k(t,`wrapperId`,19,hn),S=k(t,`customAnchor`,3,null),C=k(t,`tooltip`,3,!1),w=pa.create({side:Q(()=>n()),sideOffset:Q(()=>r()),align:Q(()=>a()),alignOffset:Q(()=>o()),id:Q(()=>t.id),arrowPadding:Q(()=>s()),avoidCollisions:Q(()=>c()),collisionBoundary:Q(()=>l()),collisionPadding:Q(()=>u()),hideWhenDetached:Q(()=>d()),onPlaced:Q(()=>f()),sticky:Q(()=>p()),updatePositionStrategy:Q(()=>m()),strategy:Q(()=>h()),dir:Q(()=>g()),style:Q(()=>v()),enabled:Q(()=>t.enabled),wrapperId:Q(()=>b()),customAnchor:Q(()=>S())},C()),T=I(()=>tn(w.wrapperProps,{style:{pointerEvents:`auto`}}));var D=Y(),O=q(D);_(O,()=>t.content??R,()=>({props:w.props,wrapperProps:E(T)})),y(e,D),x()}function Sa(e,t){i(t,!0),ue(()=>{t.onPlaced?.()});var n=Y(),r=q(n);_(r,()=>t.content??R,()=>({props:{},wrapperProps:{}})),y(e,n),x()}var Ca=new Set([`$$slots`,`$$events`,`$$legacy`,`content`,`isStatic`,`onPlaced`]);function wa(e,t){let n=k(t,`isStatic`,3,!1),r=U(t,Ca);var i=Y(),a=q(i),o=e=>{Sa(e,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},s=e=>{xa(e,K({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};h(a,e=>{n()?e(o):e(s,-1)}),y(e,i)}var Ta=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(`.`)),Ea=r(`<!> <!>`,1);function Da(e,t){i(t,!0);let n=k(t,`interactOutsideBehavior`,3,`close`),r=k(t,`trapFocus`,3,!0),a=k(t,`isValidEvent`,3,()=>!1),o=k(t,`customAnchor`,3,null),s=k(t,`isStatic`,3,!1),c=k(t,`tooltip`,3,!1),l=k(t,`contentPointerEvents`,3,`auto`),u=U(t,Ta),d=I(()=>t.preventScroll??!0),f=I(()=>t.strategy??(E(d)?`fixed`:`absolute`));wa(e,{get isStatic(){return s()},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 E(f)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},get enabled(){return t.enabled},get tooltip(){return c()},content:(e,i)=>{let o=()=>(i?.()).props,s=()=>(i?.()).wrapperProps;var c=Ea(),f=q(c),p=e=>{sn(e,{get preventScroll(){return E(d)}})},m=e=>{sn(e,{get preventScroll(){return E(d)}})};h(f,e=>{t.forceMount&&t.enabled?e(p):t.forceMount||e(m,1)});var g=z(f,2);cn(g,{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 i=()=>(r?.()).props;ln(e,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,r)=>{yn(e,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return a()},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,n)=>{let r=()=>(n?.()).props;wn(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 a=Y(),c=q(a);{let e=I(()=>({props:tn(u,o(),r(),i(),{style:{pointerEvents:l()}}),wrapperProps:s()}));_(c,()=>t.popper??R,()=>E(e))}y(e,a)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),y(e,c)},$$slots:{content:!0}}),x()}var Oa=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 ka(e,t){let n=k(t,`interactOutsideBehavior`,3,`close`),r=k(t,`trapFocus`,3,!0),i=k(t,`isValidEvent`,3,()=>!1),a=k(t,`customAnchor`,3,null),o=k(t,`isStatic`,3,!1),s=U(t,Oa);var c=Y(),l=q(c),u=e=>{Da(e,K({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)}),y(e,c)}var Aa=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 ja(e,t){let n=k(t,`interactOutsideBehavior`,3,`close`),r=k(t,`trapFocus`,3,!0),i=k(t,`isValidEvent`,3,()=>!1),a=k(t,`customAnchor`,3,null),o=k(t,`isStatic`,3,!1),s=U(t,Aa);Da(e,K({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 Ma(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Na(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Pa(e){if(typeof CSS<`u`&&typeof CSS.escape==`function`)return CSS.escape(e);let t=e.length,n=-1,r,i=``,a=e.charCodeAt(0);if(t===1&&a===45)return`\\`+e;for(;++n<t;){if(r=e.charCodeAt(n),r===0){i+=`�`;continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&a===45){i+=`\\`+r.toString(16)+` `;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=e.charAt(n);continue}i+=`\\`+e.charAt(n)}return i}var Fa=`data-value`,Ia=Bt({component:`command`,parts:[`root`,`list`,`input`,`separator`,`loading`,`empty`,`group`,`group-items`,`group-heading`,`item`,`viewport`,`input-label`]}),La=Ia.selector(`group`),Ra=Ia.selector(`group-items`),za=Ia.selector(`group-heading`),Ba=Ia.selector(`item`),Va=`${Ia.selector(`item`)}:not([aria-disabled="true"])`,Ha=new $t(`Command.Root`),Ua=new $t(`Command.List`),Wa=new $t(`Command.Group`),Ga={search:``,value:``,filtered:{count:0,items:new Map,groups:new Set}},Ka=class e{static create(t){return Ha.set(new e(t))}opts;attachment;#e=!1;#t=!0;sortAfterTick=!1;sortAndFilterAfterTick=!1;allItems=new Set;allGroups=new Map;allIds=new Map;#n=V(0);get key(){return E(this.#n)}set key(e){F(this.#n,e,!0)}#r=V(null);get viewportNode(){return E(this.#r)}set viewportNode(e){F(this.#r,e,!0)}#i=V(null);get inputNode(){return E(this.#i)}set inputNode(e){F(this.#i,e,!0)}#a=V(null);get labelNode(){return E(this.#a)}set labelNode(e){F(this.#a,e,!0)}#o=V(Ga);get commandState(){return E(this.#o)}set commandState(e){F(this.#o,e)}#s=V(fe(Ga));get _commandState(){return E(this.#s)}set _commandState(e){F(this.#s,e,!0)}#c(){return o(this._commandState)}#l(){this.#e||(this.#e=!0,Xt(()=>{this.#e=!1;let e=this.#c();Object.is(this.commandState,e)||(this.commandState=e,this.opts.onStateChange?.current?.(e))}))}setState(e,t,n){Object.is(this._commandState[e],t)||(this._commandState[e]=t,e===`search`?(this.#m(),this.#d()):e===`value`&&(n||this.#g()),this.#l())}constructor(e){this.opts=e,this.attachment=Ut(this.opts.ref);let t={...this._commandState,value:this.opts.value.current??``};this._commandState=t,this.commandState=t,this.onkeydown=this.onkeydown.bind(this)}#u(e,t){let n=this.opts.filter.current??qo;return e?n(e,this._commandState.search,t):0}#d(){if(!this._commandState.search||this.opts.shouldFilter.current===!1){!this._commandState.value||!this.#t?this.#f():this.#t&&this._commandState.value&&this.#p();return}let e=this._commandState.filtered.items,t=[];for(let n of this._commandState.filtered.groups){let r=this.allGroups.get(n),i=0;if(!r){t.push([n,i]);continue}for(let t of r){let n=e.get(t);i=Math.max(n??0,i)}t.push([n,i])}let n=this.viewportNode,r=this.getValidItems().sort((t,n)=>{let r=t.getAttribute(`data-value`),i=n.getAttribute(`data-value`),a=e.get(r)??0;return(e.get(i)??0)-a});for(let e of r){let t=e.closest(Ra);if(t){let n=e.parentElement===t?e:e.closest(`${Ra} > *`);n&&t.appendChild(n)}else{let t=e.parentElement===n?e:e.closest(`${Ra} > *`);t&&n?.appendChild(t)}}let i=t.sort((e,t)=>t[1]-e[1]);for(let e of i){let t=n?.querySelector(`${La}[${Fa}="${Pa(e[0])}"]`);t?.parentElement?.appendChild(t)}this.#f()}setValue(e,t){e!==this.opts.value.current&&e===``&&Xt(()=>{this.key++}),this.setState(`value`,e,t),this.opts.value.current=e}#f(){Xt(()=>{let e=this.getValidItems().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(Fa),t=this.#t&&this.opts.disableInitialScroll.current;this.setValue(e??``,t),this.#t=!1})}#p(){Xt(()=>{this.opts.disableInitialScroll.current||this.#g(),this.#t=!1})}#m(){if(!this._commandState.search||this.opts.shouldFilter.current===!1){this._commandState.filtered.count=this.allItems.size;return}this._commandState.filtered.groups=new Set;let e=0;for(let t of this.allItems){let n=this.allIds.get(t)?.value??``,r=this.allIds.get(t)?.keywords??[],i=this.#u(n,r);this._commandState.filtered.items.set(t,i),i>0&&e++}for(let[e,t]of this.allGroups)for(let n of t){let t=this._commandState.filtered.items.get(n);if(t&&t>0){this._commandState.filtered.groups.add(e);break}}this._commandState.filtered.count=e}getValidItems(){let e=this.opts.ref.current;return e?Array.from(e.querySelectorAll(Va)).filter(e=>!!e):[]}getVisibleItems(){let e=this.opts.ref.current;return e?Array.from(e.querySelectorAll(Ba)).filter(e=>!!e):[]}get itemsGrid(){if(!this.isGrid)return[];let e=this.opts.columns.current??1,t=this.getVisibleItems(),n=[[]],r=t[0]?.getAttribute(`data-group`),i=0,a=0;for(let o=0;o<t.length;o++){let s=t[o],c=s?.getAttribute(`data-group`);r===c?(i++,i>e&&(a++,i=1,n.push([])),n[a]?.push({index:o,firstRowOfGroup:n[a]?.[0]?.firstRowOfGroup??o===0,ref:s})):(r=c,i=1,a++,n.push([{index:o,firstRowOfGroup:!0,ref:s}]))}return n}#h(){let e=this.opts.ref.current;if(!e)return;let t=e.querySelector(`${Va}[data-selected]`);if(t)return t}#g(){Xt(()=>{let e=this.#h();if(!e)return;let t=e.parentElement?.parentElement;if(t){if(this.isGrid){let t=this.#_(e);if(e.scrollIntoView({block:`nearest`}),t){(e?.closest(La)?.querySelector(za))?.scrollIntoView({block:`nearest`});return}}else{let n=Zt(t);if(n&&n.dataset?.value===e.dataset?.value){(e?.closest(La)?.querySelector(za))?.scrollIntoView({block:`nearest`});return}}e.scrollIntoView({block:`nearest`})}})}#_(e){let t=this.itemsGrid;if(t.length===0)return!1;for(let n=0;n<t.length;n++){let r=t[n];if(r!==void 0)for(let t=0;t<r.length;t++){let n=r[t];if(n!==void 0&&n.ref===e)return n.firstRowOfGroup}}return!1}updateSelectedToIndex(e){let t=this.getValidItems()[e];t&&this.setValue(t.getAttribute(Fa)??``)}updateSelectedByItem(e){let t=this.#h(),n=this.getValidItems(),r=n.findIndex(e=>e===t),i=n[r+e];this.opts.loop.current&&(i=r+e<0?n[n.length-1]:r+e===n.length?n[0]:n[r+e]),i&&this.setValue(i.getAttribute(Fa)??``)}updateSelectedByGroup(e){let t=this.#h()?.closest(La),n;for(;t&&!n;)t=e>0?Ma(t,La):Na(t,La),n=t?.querySelector(Va);n?this.setValue(n.getAttribute(Fa)??``):this.updateSelectedByItem(e)}registerValue(e,t){return e&&e===this.allIds.get(e)?.value||this.allIds.set(e,{value:e,keywords:t}),this._commandState.filtered.items.set(e,this.#u(e,t)),this.sortAfterTick||(this.sortAfterTick=!0,Xt(()=>{this.#d(),this.sortAfterTick=!1})),()=>{this.allIds.delete(e)}}registerItem(e,t){return this.allItems.add(e),t&&(this.allGroups.has(t)?this.allGroups.get(t).add(e):this.allGroups.set(t,new Set([e]))),this.sortAndFilterAfterTick||(this.sortAndFilterAfterTick=!0,Xt(()=>{this.#m(),this.#d(),this.sortAndFilterAfterTick=!1})),this.#l(),()=>{let t=this.#h();this.allItems.delete(e),this.commandState.filtered.items.delete(e),this.#m(),t?.getAttribute(`id`)===e&&this.#f(),this.#l()}}registerGroup(e){return this.allGroups.has(e)||this.allGroups.set(e,new Set),()=>{this.allIds.delete(e),this.allGroups.delete(e)}}get isGrid(){return this.opts.columns.current!==null}#v(){return this.updateSelectedToIndex(this.getValidItems().length-1)}#y(e){e.preventDefault(),e.metaKey?this.#v():e.altKey?this.updateSelectedByGroup(1):this.updateSelectedByItem(1)}#b(e){this.opts.columns.current!==null&&(e.preventDefault(),e.metaKey?this.updateSelectedByGroup(1):this.updateSelectedByItem(this.#S(e)))}#x(e,t){if(t.length===0)return null;for(let n=0;n<t.length;n++){let r=t[n];if(r!==void 0)for(let t=0;t<r.length;t++){let i=r[t];if(i!==void 0&&i.ref===e)return{columnIndex:t,rowIndex:n}}}return null}#S(e){let t=this.itemsGrid,n=this.#h();if(!n)return 0;let r=this.#x(n,t);if(!r)return 0;let i=null,a=+!!e.altKey;if(e.altKey&&r.rowIndex===t.length-2&&!this.opts.loop.current)i=this.#C({start:t.length-1,end:t.length,expectedColumnIndex:r.columnIndex,grid:t});else if(r.rowIndex===t.length-1){if(!this.opts.loop.current)return 0;i=this.#C({start:0+a,end:r.rowIndex,expectedColumnIndex:r.columnIndex,grid:t})}else i=this.#C({start:r.rowIndex+1+a,end:t.length,expectedColumnIndex:r.columnIndex,grid:t}),i===null&&this.opts.loop.current&&(i=this.#C({start:0,end:r.rowIndex,expectedColumnIndex:r.columnIndex,grid:t}));return this.#w(n,i)}#C({start:e,end:t,grid:n,expectedColumnIndex:r}){let i=null;for(let a=e;a<t;a++){let e=n[a];if(i=e[r]?.ref??null,i!==null&&qa(i)){i=null;continue}if(i===null)for(let t=e.length-1;t>=0;t--){let t=e[e.length-1];if(!(t===void 0||qa(t.ref))){i=t.ref;break}}break}return i}#w(e,t){if(t===null)return 0;let n=this.getValidItems(),r=n.findIndex(t=>t===e);return n.findIndex(e=>e===t)-r}#T(e){this.opts.columns.current!==null&&(e.preventDefault(),e.metaKey?this.updateSelectedByGroup(-1):this.updateSelectedByItem(this.#E(e)))}#E(e){let t=this.itemsGrid,n=this.#h();if(n===void 0)return 0;let r=this.#x(n,t);if(r===null)return 0;let i=null,a=+!!e.altKey;if(e.altKey&&r.rowIndex===1&&this.opts.loop.current===!1)i=this.#D({start:0,end:0,expectedColumnIndex:r.columnIndex,grid:t});else if(r.rowIndex===0){if(this.opts.loop.current===!1)return 0;i=this.#D({start:t.length-1-a,end:r.rowIndex+1,expectedColumnIndex:r.columnIndex,grid:t})}else i=this.#D({start:r.rowIndex-1-a,end:0,expectedColumnIndex:r.columnIndex,grid:t}),i===null&&this.opts.loop.current&&(i=this.#D({start:t.length-1,end:r.rowIndex+1,expectedColumnIndex:r.columnIndex,grid:t}));return this.#w(n,i)}#D({start:e,end:t,grid:n,expectedColumnIndex:r}){let i=null;for(let a=e;a>=t;a--){let e=n[a];if(e!==void 0){if(i=e[r]?.ref??null,i!==null&&qa(i)){i=null;continue}if(i===null)for(let t=e.length-1;t>=0;t--){let t=e[e.length-1];if(!(t===void 0||qa(t.ref))){i=t.ref;break}}break}}return i}#O(e){e.preventDefault(),e.metaKey?this.updateSelectedToIndex(0):e.altKey?this.updateSelectedByGroup(-1):this.updateSelectedByItem(-1)}onkeydown(e){let t=this.opts.vimBindings.current&&e.ctrlKey;switch(e.key){case`n`:case`j`:t&&(this.isGrid?this.#b(e):this.#y(e));break;case`l`:t&&this.isGrid&&this.#y(e);break;case Rt:this.isGrid?this.#b(e):this.#y(e);break;case mn:if(!this.isGrid)break;this.#y(e);break;case`p`:case`k`:t&&(this.isGrid?this.#T(e):this.#O(e));break;case`h`:t&&this.isGrid&&this.#O(e);break;case Ft:this.isGrid?this.#T(e):this.#O(e);break;case Jt:if(!this.isGrid)break;this.#O(e);break;case Kt:e.preventDefault(),this.updateSelectedToIndex(0);break;case`End`:e.preventDefault(),this.#v();break;case pn:if(!e.isComposing&&e.keyCode!==229){e.preventDefault();let t=this.#h();t&&t?.click()}}}#k=I(()=>({id:this.opts.id.current,role:`application`,[Ia.root]:``,tabindex:-1,onkeydown:this.onkeydown,...this.attachment}));get props(){return E(this.#k)}set props(e){F(this.#k,e)}};function qa(e){return e.getAttribute(`aria-disabled`)===`true`}var Ja=class e{static create(t){return new e(t,Ha.get())}opts;root;attachment;#e=I(()=>this.root._commandState.filtered.count===0&&this.#t===!1||this.opts.forceMount.current);get shouldRender(){return E(this.#e)}set shouldRender(e){F(this.#e,e)}#t=!0;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref),re(()=>{this.#t=!1})}#n=I(()=>({id:this.opts.id.current,role:`presentation`,[Ia.empty]:``,...this.attachment}));get props(){return E(this.#n)}set props(e){F(this.#n,e)}},Ya=class e{static create(t){return Wa.set(new e(t,Ha.get()))}opts;root;attachment;#e=I(()=>this.opts.forceMount.current||this.root.opts.shouldFilter.current===!1||!this.root.commandState.search?!0:this.root._commandState.filtered.groups.has(this.trueValue));get shouldRender(){return E(this.#e)}set shouldRender(e){F(this.#e,e)}#t=V(null);get headingNode(){return E(this.#t)}set headingNode(e){F(this.#t,e,!0)}#n=V(``);get trueValue(){return E(this.#n)}set trueValue(e){F(this.#n,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref),this.trueValue=e.value.current??e.id.current,Ht(()=>this.trueValue,()=>this.root.registerGroup(this.trueValue)),de(()=>this.opts.value.current?(this.trueValue=this.opts.value.current,this.root.registerValue(this.opts.value.current)):this.headingNode&&this.headingNode.textContent?(this.trueValue=this.headingNode.textContent.trim().toLowerCase(),this.root.registerValue(this.trueValue)):(this.trueValue=`-----${this.opts.id.current}`,this.root.registerValue(this.trueValue)))}#r=I(()=>({id:this.opts.id.current,role:`presentation`,hidden:!this.shouldRender||void 0,"data-value":this.trueValue,[Ia.group]:``,...this.attachment}));get props(){return E(this.#r)}set props(e){F(this.#r,e)}},Xa=class e{static create(t){return new e(t,Wa.get())}opts;group;attachment;constructor(e,t){this.opts=e,this.group=t,this.attachment=Ut(this.opts.ref,e=>this.group.headingNode=e)}#e=I(()=>({id:this.opts.id.current,[Ia[`group-heading`]]:``,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},Za=class e{static create(t){return new e(t,Wa.get())}opts;group;attachment;constructor(e,t){this.opts=e,this.group=t,this.attachment=Ut(this.opts.ref)}#e=I(()=>({id:this.opts.id.current,role:`group`,[Ia[`group-items`]]:``,"aria-labelledby":this.group.headingNode?.id??void 0,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},Qa=class e{static create(t){return new e(t,Ha.get())}opts;root;attachment;#e=I(()=>{let e=this.root.viewportNode?.querySelector(`${Ba}[${Fa}="${Pa(this.root.opts.value.current)}"]`);if(e!=null)return e.getAttribute(`id`)??void 0});constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref,e=>this.root.inputNode=e),Ht(()=>this.opts.ref.current,()=>{let e=this.opts.ref.current;e&&this.opts.autofocus.current&&kn(10,()=>e.focus())}),Ht(()=>this.opts.value.current,()=>{this.root.commandState.search!==this.opts.value.current&&this.root.setState(`search`,this.opts.value.current)})}#t=I(()=>({id:this.opts.id.current,type:`text`,[Ia.input]:``,autocomplete:`off`,autocorrect:`off`,spellcheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":Yt(!0),"aria-controls":this.root.viewportNode?.id??void 0,"aria-labelledby":this.root.labelNode?.id??void 0,"aria-activedescendant":E(this.#e),...this.attachment}));get props(){return E(this.#t)}set props(e){F(this.#t,e)}},$a=class e{static create(t){let n=Wa.getOr(null);return new e({...t,group:n},Ha.get())}opts;root;attachment;#e=null;#t=I(()=>this.opts.forceMount.current||this.#e?.opts.forceMount.current===!0);#n=I(()=>{if(this.opts.ref.current,E(this.#t)||this.root.opts.shouldFilter.current===!1||!this.root.commandState.search)return!0;let e=this.root.commandState.filtered.items.get(this.trueValue);return e!==void 0&&e>0});get shouldRender(){return E(this.#n)}set shouldRender(e){F(this.#n,e)}#r=I(()=>this.root.opts.value.current===this.trueValue&&this.trueValue!==``);get isSelected(){return E(this.#r)}set isSelected(e){F(this.#r,e)}#i=V(``);get trueValue(){return E(this.#i)}set trueValue(e){F(this.#i,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.#e=Wa.getOr(null),this.trueValue=e.value.current,this.attachment=Ut(this.opts.ref),Ht([()=>this.trueValue,()=>this.#e?.trueValue,()=>this.opts.forceMount.current],()=>{if(!this.opts.forceMount.current&&this.trueValue)return this.root.registerItem(this.trueValue,this.#e?.trueValue)}),Ht([()=>this.opts.value.current,()=>this.opts.ref.current],()=>{this.opts.value.current?this.trueValue=this.opts.value.current:this.opts.ref.current?.textContent&&(this.trueValue=this.opts.ref.current.textContent.trim()),this.trueValue&&(this.root.registerValue(this.trueValue,e.keywords.current.map(e=>e.trim())),this.opts.ref.current?.setAttribute(Fa,this.trueValue))}),this.onclick=this.onclick.bind(this),this.onpointermove=this.onpointermove.bind(this)}#a(){this.opts.disabled.current||(this.#o(),this.opts.onSelect?.current())}#o(){this.opts.disabled.current||this.root.setValue(this.trueValue,!0)}onpointermove(e){this.opts.disabled.current||this.root.opts.disablePointerSelection.current||this.#o()}onclick(e){this.opts.disabled.current||this.#a()}#s=I(()=>({id:this.opts.id.current,"aria-disabled":Yt(this.opts.disabled.current),"aria-selected":Yt(this.isSelected),"data-disabled":qt(this.opts.disabled.current),"data-selected":qt(this.isSelected),"data-value":this.trueValue,"data-group":this.#e?.trueValue,[Ia.item]:``,role:`option`,onpointermove:this.onpointermove,onclick:this.onclick,...this.attachment}));get props(){return E(this.#s)}set props(e){F(this.#s,e)}},eo=class e{static create(t){return Ua.set(new e(t,Ha.get()))}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref)}#e=I(()=>({id:this.opts.id.current,role:`listbox`,"aria-label":this.opts.ariaLabel.current,[Ia.list]:``,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},to=class e{static create(t){return new e(t,Ha.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref,e=>this.root.labelNode=e)}#e=I(()=>({id:this.opts.id.current,[Ia[`input-label`]]:``,for:this.opts.for?.current,style:rr,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},no=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`]),ro=r(`<label><!></label>`);function io(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,no),c=to.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=I(()=>tn(s,c.props));var d=ro();P(d,()=>({...E(l)}));var f=W(d);_(f,()=>t.children??R),n(d),y(e,d),x()}var ao=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`onStateChange`,`loop`,`shouldFilter`,`filter`,`label`,`vimBindings`,`disablePointerSelection`,`disableInitialScroll`,`columns`,`children`,`child`]),oo=r(`<!> <!>`,1),so=r(`<div><!> <!></div>`);function co(e,t){let r=u();i(t,!0);let a=e=>{io(e,{children:(e,t)=>{oe();var n=C();H(()=>c(n,v())),y(e,n)},$$slots:{default:!0}})},o=k(t,`id`,19,()=>En(r)),s=k(t,`ref`,15,null),l=k(t,`value`,15,``),d=k(t,`onValueChange`,3,Qt),f=k(t,`onStateChange`,3,Qt),p=k(t,`loop`,3,!1),m=k(t,`shouldFilter`,3,!0),g=k(t,`filter`,3,qo),v=k(t,`label`,3,``),b=k(t,`vimBindings`,3,!0),S=k(t,`disablePointerSelection`,3,!1),w=k(t,`disableInitialScroll`,3,!1),T=k(t,`columns`,3,null),D=U(t,ao),O=Ka.create({id:Q(()=>o()),ref:Q(()=>s(),e=>s(e)),filter:Q(()=>g()),shouldFilter:Q(()=>m()),loop:Q(()=>p()),value:Q(()=>l(),e=>{l()!==e&&(l(e),d()(e))}),vimBindings:Q(()=>b()),disablePointerSelection:Q(()=>S()),disableInitialScroll:Q(()=>w()),onStateChange:Q(()=>f()),columns:Q(()=>T())}),A=e=>O.updateSelectedToIndex(e),j=e=>O.updateSelectedByGroup(e),ee=e=>O.updateSelectedByItem(e),te=()=>O.getValidItems(),M=I(()=>tn(D,O.props));var N={updateSelectedToIndex:A,updateSelectedByGroup:j,updateSelectedByItem:ee,getValidItems:te},F=Y(),L=q(F),ne=e=>{var n=oo(),r=q(n);a(r);var i=z(r,2);_(i,()=>t.child,()=>({props:E(M)})),y(e,n)},re=e=>{var r=so();P(r,()=>({...E(M)}));var i=W(r);a(i);var o=z(i,2);_(o,()=>t.children??R),n(r),y(e,r)};return h(L,e=>{t.child?e(ne):e(re,-1)}),y(e,F),x(N)}var lo=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`forceMount`]),uo=r(`<div><!></div>`);function fo(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`forceMount`,3,!1),c=U(t,lo),l=Ja.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),forceMount:Q(()=>s())}),d=I(()=>tn(l.props,c));var f=Y(),p=q(f),m=e=>{var r=Y(),i=q(r),a=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(d)})),y(e,n)},o=e=>{var r=uo();P(r,()=>({...E(d)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(i,e=>{t.child?e(a):e(o,-1)}),y(e,r)};h(p,e=>{l.shouldRender&&e(m)}),y(e,f),x()}var po=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`forceMount`,`children`,`child`]),mo=r(`<div><!></div>`);function ho(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`value`,3,``),c=k(t,`forceMount`,3,!1),l=U(t,po),d=Ya.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),forceMount:Q(()=>c()),value:Q(()=>s())}),f=I(()=>tn(l,d.props));var p=Y(),m=q(p),g=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(f)})),y(e,n)},v=e=>{var r=mo();P(r,()=>({...E(f)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(m,e=>{t.child?e(g):e(v,-1)}),y(e,p),x()}var go=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`]),_o=r(`<div><!></div>`);function vo(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,go),c=Xa.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=_o();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}var yo=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`]),bo=r(`<div><!></div>`),xo=r(`<div style="display: contents;"><!></div>`);function So(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,yo),c=Za.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=I(()=>tn(s,c.props));var d=xo(),f=W(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=bo();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),n(d),y(e,d),x()}var Co=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`autofocus`,`id`,`ref`,`child`]),wo=r(`<input/>`);function To(e,t){let n=u();i(t,!0);let r=k(t,`value`,15,``),a=k(t,`autofocus`,3,!1),o=k(t,`id`,19,()=>En(n)),s=k(t,`ref`,15,null),c=U(t,Co),l=Qa.create({id:Q(()=>o()),ref:Q(()=>s(),e=>s(e)),value:Q(()=>r(),e=>{r(e)}),autofocus:Q(()=>a()??!1)}),d=I(()=>tn(c,l.props));var f=Y(),p=q(f),m=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(d)})),y(e,n)},g=e=>{var t=wo();P(t,()=>({...E(d)}),void 0,void 0,void 0,void 0,!0),N(t,r),y(e,t)};h(p,e=>{t.child?e(m):e(g,-1)}),y(e,f),x()}var Eo=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`disabled`,`children`,`child`,`onSelect`,`forceMount`,`keywords`]),Do=r(`<div><!></div>`),Oo=r(`<div style="display: contents;" data-item-wrapper=""><!></div>`);function ko(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`value`,3,``),c=k(t,`disabled`,3,!1),l=k(t,`onSelect`,3,Qt),d=k(t,`forceMount`,3,!1),f=k(t,`keywords`,19,()=>[]),m=U(t,Eo),g=$a.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),value:Q(()=>s()),disabled:Q(()=>c()),onSelect:Q(()=>l()),forceMount:Q(()=>d()),keywords:Q(()=>f())}),v=I(()=>tn(m,g.props));var b=Y(),S=q(b);p(S,()=>g.root.key,e=>{var r=Oo(),i=W(r),a=e=>{var r=Y(),i=q(r),a=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(v)})),y(e,n)},o=e=>{var r=Do();P(r,()=>({...E(v)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(i,e=>{t.child?e(a):e(o,-1)}),y(e,r)};h(i,e=>{g.shouldRender&&e(a)}),n(r),H(()=>B(r,`data-value`,g.trueValue)),y(e,r)}),y(e,b),x()}var Ao=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`aria-label`]),jo=r(`<div><!></div>`);function Mo(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,Ao),c=eo.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),ariaLabel:Q(()=>t[`aria-label`]??`Suggestions...`)}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d);p(f,()=>c.root._commandState.search===``,e=>{var r=Y(),i=q(r),a=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},o=e=>{var r=jo();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(i,e=>{t.child?e(a):e(o,-1)}),y(e,r)}),y(e,d),x()}var No=1,Po=.9,Fo=.8,Io=.17,Lo=.1,Ro=.999,zo=.9999,Bo=.99,Vo=/[\\/_+.#"@[({&]/,Ho=/[\\/_+.#"@[({&]/g,Uo=/[\s-]/,Wo=/[\s-]/g;function Go(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?No:Bo;let s=`${i},${a}`;if(o[s]!==void 0)return o[s];let c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;for(;l>=0;)d=Go(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=No:Vo.test(e.charAt(l-1))?(d*=Fo,p=e.slice(i,l-1).match(Ho),p&&i>0&&(d*=Ro**p.length)):Uo.test(e.charAt(l-1))?(d*=Po,m=e.slice(i,l-1).match(Wo),m&&i>0&&(d*=Ro**m.length)):(d*=Io,i>0&&(d*=Ro**(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=zo)),(d<Lo&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=Go(e,t,n,r,l+1,a+2,o),f*Lo>d&&(d=f*Lo)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function Ko(e){return e.toLowerCase().replace(Wo,` `)}function qo(e,t,n){return e=n&&n.length>0?`${`${e} ${n?.join(` `)}`}`:e,Go(e,t,Ko(e),Ko(t),0,0,{})}var Jo=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`ref`,`id`,`disabled`,`onSelect`,`closeOnSelect`]),Yo=r(`<div><!></div>`);function Xo(e,t){let r=u();i(t,!0);let a=k(t,`ref`,15,null),o=k(t,`id`,19,()=>En(r)),s=k(t,`disabled`,3,!1),c=k(t,`onSelect`,3,Qt),l=k(t,`closeOnSelect`,3,!0),d=U(t,Jo),f=Tn.create({id:Q(()=>o()),disabled:Q(()=>s()),onSelect:Q(()=>c()),ref:Q(()=>a(),e=>a(e)),closeOnSelect:Q(()=>l())}),p=I(()=>tn(d,f.props));var m=Y(),g=q(m),v=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(p)})),y(e,n)},b=e=>{var r=Yo();P(r,()=>({...E(p)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(g,e=>{t.child?e(v):e(b,-1)}),y(e,m),x()}var Zo=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`id`]),Qo=r(`<div><!></div>`);function $o(e,t){let r=u();i(t,!0);let a=k(t,`ref`,15,null),o=k(t,`id`,19,()=>En(r)),s=U(t,Zo),c=rn.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=Qo();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}var es=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`id`]),ts=r(`<div><!></div>`);function ns(e,t){let r=u();i(t,!0);let a=k(t,`ref`,15,null),o=k(t,`id`,19,()=>En(r)),s=U(t,es),c=un.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=ts();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}var rs=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`id`,`child`,`children`]),is=r(`<div><!></div>`);function as(e,t){let r=u();i(t,!0);let a=k(t,`ref`,15,null),o=k(t,`id`,19,()=>En(r)),s=U(t,rs),c=Dn.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=is();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}function os(e,t){i(t,!0);let n=k(t,`open`,15,!1),r=k(t,`dir`,3,`ltr`),a=k(t,`onOpenChange`,3,Qt),o=k(t,`onOpenChangeComplete`,3,Qt),s=k(t,`_internal_variant`,3,`dropdown-menu`),c=k(t,`_internal_should_skip_exit_animation`,3,void 0),l=on.create({variant:Q(()=>s()),dir:Q(()=>r()),onClose:()=>{n(!1),a()(!1)},shouldSkipExitAnimation:()=>c()?.()??!1});On.create({open:Q(()=>n(),e=>{n(e),a()(e)}),onOpenChangeComplete:Q(()=>o())},l),ya(e,{children:(e,n)=>{var r=Y(),i=q(r);_(i,()=>t.children??R),y(e,r)},$$slots:{default:!0}}),x()}var ss=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`child`,`children`,`ref`,`loop`,`onInteractOutside`,`onEscapeKeydown`,`onCloseAutoFocus`,`forceMount`,`trapFocus`,`style`]),cs=r(`<div><div><!></div></div>`);function ls(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`loop`,3,!0),c=k(t,`onInteractOutside`,3,Qt),l=k(t,`onEscapeKeydown`,3,Qt),d=k(t,`onCloseAutoFocus`,3,Qt),f=k(t,`forceMount`,3,!1),p=k(t,`trapFocus`,3,!1),m=U(t,ss),g=dn.create({id:Q(()=>a()),loop:Q(()=>s()),ref:Q(()=>o(),e=>o(e)),onCloseAutoFocus:Q(()=>d())}),v=I(()=>tn(m,g.props));function b(e){if(g.handleInteractOutside(e),!e.defaultPrevented&&(c()(e),!e.defaultPrevented)){if(e.target&&e.target instanceof Element){let t=`[${g.parentMenu.root.getBitsAttr(`sub-content`)}]`;if(e.target.closest(t))return}g.parentMenu.onClose()}}function S(e){l()(e),!e.defaultPrevented&&g.parentMenu.onClose()}var C=Y(),w=q(C),T=e=>{ja(e,K(()=>E(v),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.parentMenu.opts.open.current},onInteractOutside:b,onEscapeKeydown:S,get trapFocus(){return p()},get loop(){return s()},forceMount:!0,get id(){return a()},get shouldRender(){return g.shouldRender},popper:(e,r)=>{let i=()=>(r?.()).props,a=()=>(r?.()).wrapperProps,o=I(()=>tn(i(),{style:aa(`dropdown-menu`)},{style:t.style}));var s=Y(),c=q(s),l=e=>{var n=Y(),r=q(n);{let e=I(()=>({props:E(o),wrapperProps:a(),...g.snippetProps}));_(r,()=>t.child,()=>E(e))}y(e,n)},u=e=>{var r=cs();P(r,()=>({...a()}));var i=W(r);P(i,()=>({...E(o)}));var s=W(i);_(s,()=>t.children??R),n(i),n(r),y(e,r)};h(c,e=>{t.child?e(l):e(u,-1)}),y(e,s)},$$slots:{popper:!0}}))},D=e=>{ka(e,K(()=>E(v),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.parentMenu.opts.open.current},onInteractOutside:b,onEscapeKeydown:S,get trapFocus(){return p()},get loop(){return s()},forceMount:!1,get id(){return a()},get shouldRender(){return g.shouldRender},popper:(e,r)=>{let i=()=>(r?.()).props,a=()=>(r?.()).wrapperProps,o=I(()=>tn(i(),{style:aa(`dropdown-menu`)},{style:t.style}));var s=Y(),c=q(s),l=e=>{var n=Y(),r=q(n);{let e=I(()=>({props:E(o),wrapperProps:a(),...g.snippetProps}));_(r,()=>t.child,()=>E(e))}y(e,n)},u=e=>{var r=cs();P(r,()=>({...a()}));var i=W(r);P(i,()=>({...E(o)}));var s=W(i);_(s,()=>t.children??R),n(i),n(r),y(e,r)};h(c,e=>{t.child?e(l):e(u,-1)}),y(e,s)},$$slots:{popper:!0}}))};h(w,e=>{f()?e(T):f()||e(D,1)}),y(e,C),x()}var us=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`disabled`,`type`]),ds=r(`<button><!></button>`);function fs(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`disabled`,3,!1),c=k(t,`type`,3,`button`),l=U(t,us),d=gn.create({id:Q(()=>a()),disabled:Q(()=>s()??!1),ref:Q(()=>o(),e=>o(e))}),f=I(()=>tn(l,d.props,{type:c()}));ba(e,{get id(){return a()},get ref(){return d.opts.ref},children:(e,r)=>{var i=Y(),a=q(i),o=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(f)})),y(e,n)},s=e=>{var r=ds();P(r,()=>({...E(f)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(a,e=>{t.child?e(o):e(s,-1)}),y(e,i)},$$slots:{default:!0}}),x()}var ps=Bt({component:`label`,parts:[`root`]}),ms=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=Ut(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=I(()=>({id:this.opts.id.current,[ps.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},hs=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),gs=r(`<label><!></label>`);function _s(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,hs),c=ms.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=I(()=>tn(s,c.props,{for:t.for}));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=gs();P(r,()=>({...E(l),for:t.for}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}var vs=class{#e;#t;#n=null;constructor(e,t){this.#t=e,this.#e=t,this.stop=this.stop.bind(this),this.start=this.start.bind(this),It(this.stop)}#r(){this.#n!==null&&(window.clearTimeout(this.#n),this.#n=null)}stop(){this.#r()}start(...e){this.#r(),this.#n=window.setTimeout(()=>{this.#n=null,this.#t(...e)},this.#e)}};Bt({component:`tooltip`,parts:[`content`,`trigger`]});var ys=new $t(`Tooltip.Provider`);new $t(`Tooltip.Root`);var bs=class e{static create(t){return ys.set(new e(t))}opts;#e=V(!0);get isOpenDelayed(){return E(this.#e)}set isOpenDelayed(e){F(this.#e,e,!0)}isPointerInTransit=nn(!1);#t;#n=V(null);constructor(e){this.opts=e,this.#t=new vs(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),ir(()=>G(window,`scroll`,e=>{let t=E(this.#n);if(!t)return;let n=t.triggerNode;if(!n)return;let r=e.target;(r instanceof Element||r instanceof Document)&&r.contains(n)&&t.handleClose()}))}#r=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}this.#t.start()};#i=()=>{this.#t.stop()};onOpen=e=>{E(this.#n)&&E(this.#n)!==e&&E(this.#n).handleClose(),this.#i(),this.isOpenDelayed=!1,F(this.#n,e,!0)};onClose=e=>{E(this.#n)===e&&(F(this.#n,null),this.#r())};isTooltipOpen=e=>E(this.#n)===e};function xs(e,t){i(t,!0);let n=k(t,`delayDuration`,3,700),r=k(t,`disableCloseOnTriggerClick`,3,!1),a=k(t,`disableHoverableContent`,3,!1),o=k(t,`disabled`,3,!1),s=k(t,`ignoreNonKeyboardFocus`,3,!1),c=k(t,`skipDelayDuration`,3,300);bs.create({delayDuration:Q(()=>n()),disableCloseOnTriggerClick:Q(()=>r()),disableHoverableContent:Q(()=>a()),disabled:Q(()=>o()),ignoreNonKeyboardFocus:Q(()=>s()),skipDelayDuration:Q(()=>c())});var l=Y(),u=q(l);_(u,()=>t.children??R),y(e,l),x()}var Ss=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Cs(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,Ss);var o=Y(),s=q(o);{let e=I(()=>Fn(`gap-2 text-xs/relaxed leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,t.class));a(s,()=>_s,(t,i)=>{i(t,K({"data-slot":`label`,get class(){return E(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}y(e,o),x()}var ws=r(`<!> Import workspace`,1),Ts=r(`<!> <!>`,1),Es=r(`<div class="rounded-md border border-destructive/40 bg-destructive/10 p-2.5 text-xs text-destructive"> </div>`),Ds=r(`Display name <span class="text-muted-foreground">(optional)</span>`,1),Os=r(`<!> Import`,1),ks=r(`<!> <!> <div class="space-y-3"><div class="space-y-1.5"><!> <!> <p class="text-[11px] text-muted-foreground">Absolute path to a directory containing skill folders.</p></div> <div class="space-y-1.5"><!> <!></div> <div class="flex justify-end gap-2 pt-1"><!> <!></div></div>`,1);function As(e,t){i(t,!0);let r=V(!1);de(()=>{Ee.open=E(r)}),de(()=>{Ee.open&&F(r,!0)}),de(()=>{E(r)&&(F(o,``),F(s,``),F(u,null))});let o=V(``),s=V(``),l=V(!1),u=V(null);async function d(){if(!E(o).trim()){F(u,`A directory path is required.`);return}F(l,!0),F(u,null);try{let e=await Pt(E(o).trim(),E(s).trim()||void 0);if(!e)return;F(r,!1),await _e(Nt(e))}catch(e){F(u,e instanceof Error?e.message:String(e),!0)}finally{F(l,!1)}}var f=Y(),p=q(f);a(p,()=>Sn,(e,t)=>{t(e,{get open(){return E(r)},set open(e){F(r,e,!0)},children:(e,t)=>{var i=Y(),f=q(i);a(f,()=>fn,(e,t)=>{t(e,{class:`sm:max-w-[460px]`,children:(e,t)=>{var i=ks(),f=q(i);a(f,()=>an,(e,t)=>{t(e,{children:(e,t)=>{var n=Ts(),r=q(n);a(r,()=>vn,(e,t)=>{t(e,{class:`flex items-center gap-2`,children:(e,t)=>{var n=ws(),r=q(n);Vn(r,{class:`h-4 w-4`}),oe(),y(e,n)},$$slots:{default:!0}})});var i=z(r,2);a(i,()=>xn,(e,t)=>{t(e,{children:(e,t)=>{oe();var n=C(`Import a directory as a skill workspace. Its skills will be discovered and managed here.`);y(e,n)},$$slots:{default:!0}})}),y(e,n)},$$slots:{default:!0}})});var p=z(f,2),m=e=>{var t=Es(),n=M(t,!0);H(()=>c(n,E(u))),y(e,t)};h(p,e=>{E(u)&&e(m)});var g=z(p,2),_=W(g),v=W(_);Cs(v,{for:`ws-path`,children:(e,t)=>{oe();var n=C(`Directory path`);y(e,n)},$$slots:{default:!0}});var b=z(v,2);zn(b,{id:`ws-path`,placeholder:`/Users/me/.claude/skills`,class:`font-mono text-xs`,get value(){return E(o)},set value(e){F(o,e,!0)}}),oe(2),n(_);var x=z(_,2),S=W(x);Cs(S,{for:`ws-label`,children:(e,t)=>{oe();var n=Ds();oe(),y(e,n)},$$slots:{default:!0}});var w=z(S,2);zn(w,{id:`ws-label`,placeholder:`My Skills`,get value(){return E(s)},set value(e){F(s,e,!0)}}),n(x);var T=z(x,2),D=W(T);An(D,{variant:`outline`,size:`sm`,onclick:()=>F(r,!1),children:(e,t)=>{oe();var n=C(`Cancel`);y(e,n)},$$slots:{default:!0}});var O=z(D,2);An(O,{size:`sm`,get disabled(){return E(l)},onclick:d,children:(e,t)=>{var n=Os(),r=q(n),i=e=>{jn(e,{class:`h-3.5 w-3.5 animate-spin`})};h(r,e=>{E(l)&&e(i)}),oe(),y(e,n)},$$slots:{default:!0}}),n(T),n(g),y(e,i)},$$slots:{default:!0}})}),y(e,i)},$$slots:{default:!0}})}),y(e,f),x()}var js=new Set([`$$slots`,`$$events`,`$$legacy`,`api`,`ref`,`value`,`class`]);function Ms(e,t){i(t,!0);let n=k(t,`api`,15,null),r=k(t,`ref`,15,null),o=k(t,`value`,15,``),s=U(t,js);var c=Y(),l=q(c);{let e=I(()=>Fn(`bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden`,t.class));a(l,()=>co,(t,i)=>{se(i(t,K({"data-slot":`command`,get class(){return E(e)}},()=>s,{get value(){return o()},set value(e){o(e)},get ref(){return r()},set ref(e){r(e)}})),e=>n(e),()=>n())})}y(e,c),x()}var Ns=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`ref`,`value`,`title`,`description`,`showCloseButton`,`portalProps`,`children`,`class`]),Ps=r(`<!> <!>`,1);function Fs(e,t){i(t,!0);let n=k(t,`open`,15,!1),r=k(t,`ref`,15,null),o=k(t,`value`,15,``),s=k(t,`title`,3,`Command Palette`),l=k(t,`description`,3,`Search for a command to run...`),u=k(t,`showCloseButton`,3,!1),d=U(t,Ns);var f=Y(),p=q(f);a(p,()=>Sn,(e,i)=>{i(e,K(()=>d,{get open(){return n()},set open(e){n(e)},children:(e,n)=>{var i=Ps(),f=q(i);a(f,()=>an,(e,t)=>{t(e,{class:`sr-only`,children:(e,t)=>{var n=Ps(),r=q(n);a(r,()=>vn,(e,t)=>{t(e,{children:(e,t)=>{oe();var n=C();H(()=>c(n,s())),y(e,n)},$$slots:{default:!0}})});var i=z(r,2);a(i,()=>xn,(e,t)=>{t(e,{children:(e,t)=>{oe();var n=C();H(()=>c(n,l())),y(e,n)},$$slots:{default:!0}})}),y(e,n)},$$slots:{default:!0}})});var p=z(f,2);{let e=I(()=>Fn(`rounded-xl! p-0 top-1/3 translate-y-0 overflow-hidden p-0`,t.class));a(p,()=>fn,(n,i)=>{i(n,{get class(){return E(e)},get showCloseButton(){return u()},get portalProps(){return t.portalProps},children:(e,n)=>{Ms(e,K(()=>d,{get children(){return t.children},get value(){return o()},set value(e){o(e)},get ref(){return r()},set ref(e){r(e)}}))},$$slots:{default:!0}})})}y(e,i)},$$slots:{default:!0}}))}),y(e,f),x()}var Is=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Ls(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,Is);var o=Y(),s=q(o);{let e=I(()=>Fn(`py-6 text-center text-xs/relaxed`,t.class));a(s,()=>fo,(t,i)=>{i(t,K({"data-slot":`command-empty`,get class(){return E(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}y(e,o),x()}var Rs=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`heading`,`value`]),zs=r(`<!> <!>`,1);function Bs(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,Rs);var o=Y(),s=q(o);{let e=I(()=>Fn(`text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2.5 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium`,t.class)),i=I(()=>t.value??t.heading??`----${hn()}`);a(s,()=>ho,(o,s)=>{s(o,K({"data-slot":`command-group`,get class(){return E(e)},get value(){return E(i)}},()=>r,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var r=zs(),i=q(r),o=e=>{var n=Y(),r=q(n);a(r,()=>vo,(e,n)=>{n(e,{class:`text-muted-foreground px-2 py-1.5 text-xs font-medium`,children:(e,n)=>{oe();var r=C();H(()=>c(r,t.heading)),y(e,r)},$$slots:{default:!0}})}),y(e,n)};h(i,e=>{t.heading&&e(o)});var s=z(i,2);a(s,()=>So,(e,n)=>{n(e,{get children(){return t.children}})}),y(e,r)},$$slots:{default:!0}}))})}y(e,o),x()}var Vs=new Set([`$$slots`,`$$events`,`$$legacy`]);function Hs(e,t){let n=U(t,Vs),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];be(e,K({name:`check`},()=>n,{get iconNode(){return r}}))}var Us=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ws=r(`<!> <!>`,1);function Gs(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,Us);var o=Y(),s=q(o);{let e=I(()=>Fn(`group/command-item data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,t.class));a(s,()=>ko,(i,a)=>{a(i,K({"data-slot":`command-item`,get class(){return E(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var r=Ws(),i=q(r);_(i,()=>t.children??R),Hs(z(i,2),{class:`cn-command-item-indicator ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100`}),y(e,r)},$$slots:{default:!0}}))})}y(e,o),x()}var Ks=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qs=r(`<div><!></div>`);function Js(e,t){i(t,!0);let r=k(t,`ref`,15,null),a=U(t,Ks);var o=qs();P(o,e=>({"data-slot":`input-group`,role:`group`,class:e,...a}),[()=>Fn(`group/input-group border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot][aria-invalid=true]]:ring-2 has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto`,t.class)]);var s=W(o);_(s,()=>t.children??R),n(o),se(o,e=>r(e),()=>r()),y(e,o),x()}var Ys=Nn({base:`text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-2 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] [&>svg:not([class*='size-'])]:size-3.5 flex cursor-text items-center justify-center select-none`,variants:{align:{"inline-start":`pl-2 has-[>button]:ml-[-0.275rem] has-[>kbd]:ml-[-0.275rem] order-first`,"inline-end":`pr-2 has-[>button]:mr-[-0.275rem] has-[>kbd]:mr-[-0.275rem] order-last`,"block-start":`px-2 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start`,"block-end":`px-2 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start`}},defaultVariants:{align:`inline-start`}}),Xs=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`align`]),Zs=r(`<div><!></div>`);function Qs(e,t){i(t,!0);let r=k(t,`ref`,15,null),a=k(t,`align`,3,`inline-start`),o=U(t,Xs);var s=Zs(),c=e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()};P(s,e=>({role:`group`,"data-slot":`input-group-addon`,"data-align":a(),class:e,onclick:c,...o}),[()=>Fn(Ys({align:a()}),t.class)]);var l=W(s);_(l,()=>t.children??R),n(s),se(s,e=>r(e),()=>r()),y(e,s),x()}Nn({base:`gap-2 rounded-md text-xs/relaxed flex items-center shadow-none`,variants:{size:{xs:`h-5 gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1 [&>svg:not([class*='size-'])]:size-3`,sm:`gap-1`,"icon-xs":`size-6 p-0 has-[>svg]:p-0`,"icon-sm":`size-7 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});var $s=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ec(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=k(t,`value`,15),a=U(t,$s);{let i=I(()=>Fn(`rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1`,t.class));zn(e,K({"data-slot":`input-group-control`,get class(){return E(i)}},()=>a,{get ref(){return n()},set ref(e){n(e)},get value(){return r()},set value(e){r(e)}}))}x()}var tc=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]),nc=r(`<!> <!>`,1),rc=r(`<div data-slot="command-input-wrapper" class="p-1 pb-0"><!></div>`);function ic(e,t){i(t,!0);let r=k(t,`ref`,15,null),o=k(t,`value`,15,``),s=U(t,tc);var c=rc(),l=W(c);a(l,()=>Js,(e,n)=>{n(e,{class:`bg-input/20 dark:bg-input/30 h-8!`,children:(e,n)=>{var i=nc(),c=q(i);{let e=(e,t)=>{let n=()=>(t?.()).props;var i=Y(),s=q(i);a(s,()=>ec,(e,t)=>{t(e,K(n,{get value(){return o()},set value(e){o(e)},get ref(){return r()},set ref(e){r(e)}}))}),y(e,i)},n=I(()=>Fn(`w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50`,t.class));a(c,()=>To,(t,r)=>{r(t,K({get value(){return o()},"data-slot":`command-input`,get class(){return E(n)}},()=>s,{child:e,$$slots:{child:!0}}))})}var l=z(c,2);a(l,()=>Qs,(e,t)=>{t(e,{children:(e,t)=>{Un(e,{class:`size-3.5 shrink-0 opacity-50`})},$$slots:{default:!0}})}),y(e,i)},$$slots:{default:!0}})}),n(c),y(e,c),x()}var ac=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oc(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,ac);var o=Y(),s=q(o);{let e=I(()=>Fn(`no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto`,t.class));a(s,()=>Mo,(t,i)=>{i(t,K({"data-slot":`command-list`,get class(){return E(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}y(e,o),x()}var sc=new Set([`$$slots`,`$$events`,`$$legacy`]);function cc(e,t){let n=U(t,sc),r=[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M14 19h6`}],[`path`,{d:`M17 16v6`}]];be(e,K({name:`file-plus-corner`},()=>n,{get iconNode(){return r}}))}var lc=new Set([`$$slots`,`$$events`,`$$legacy`]);function uc(e,t){let n=U(t,lc),r=[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`}]];be(e,K({name:`layout-grid`},()=>n,{get iconNode(){return r}}))}var dc=r(`<!> Workspaces`,1),fc=r(`<!> Creator`,1),pc=r(`<!> Repository`,1),mc=r(`<!> <!> <!>`,1),hc=r(`<!> <span class="flex-1 truncate"> </span> <span class="text-[10px] tabular-nums text-muted-foreground"> </span>`,1),gc=r(`<!> <!>`,1);function _c(e,n){i(n,!0);let r=V(!1);de(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),F(r,!E(r)))};return globalThis.addEventListener(`keydown`,e),()=>globalThis.removeEventListener(`keydown`,e)});function o(e){F(r,!1),e()}var s=Y(),l=q(s);a(l,()=>Fs,(e,n)=>{n(e,{get open(){return E(r)},set open(e){F(r,e,!0)},children:(e,n)=>{var r=gc(),i=q(r);a(i,()=>ic,(e,t)=>{t(e,{placeholder:`Search navigation and workspaces…`})});var s=z(i,2);a(s,()=>oc,(e,n)=>{n(e,{children:(e,n)=>{var r=mc(),i=q(r);a(i,()=>Ls,(e,t)=>{t(e,{children:(e,t)=>{oe();var n=C(`No matching destination.`);y(e,n)},$$slots:{default:!0}})});var s=z(i,2);a(s,()=>Bs,(e,t)=>{t(e,{heading:`Navigate`,children:(e,t)=>{var n=mc(),r=q(n);a(r,()=>Gs,(e,t)=>{t(e,{onSelect:()=>o(()=>_e(`/workspaces`)),value:`go workspaces manage locations`,children:(e,t)=>{var n=dc();uc(q(n),{class:`h-4 w-4`}),oe(),y(e,n)},$$slots:{default:!0}})});var i=z(r,2);a(i,()=>Gs,(e,t)=>{t(e,{onSelect:()=>o(()=>_e(`/creator`)),value:`go creator new skill`,children:(e,t)=>{var n=fc();cc(q(n),{class:`h-4 w-4`}),oe(),y(e,n)},$$slots:{default:!0}})});var s=z(i,2);a(s,()=>Gs,(e,t)=>{t(e,{onSelect:()=>o(()=>_e(`/repository`)),value:`go repository browse remote`,children:(e,t)=>{var n=pc(),r=q(n);Te(r,{class:`h-4 w-4`}),oe(),y(e,n)},$$slots:{default:!0}})}),y(e,n)},$$slots:{default:!0}})});var l=z(s,2),u=e=>{var n=Y(),r=q(n);a(r,()=>Bs,(e,n)=>{n(e,{heading:`Workspaces`,children:(e,n)=>{var r=Y(),i=q(r);t(i,17,()=>jt.workspaces,e=>e.id,(e,t)=>{var n=Y(),r=q(n);{let e=I(()=>`workspace ${E(t).label} ${E(t).path}`);a(r,()=>Gs,(n,r)=>{r(n,{get value(){return E(e)},onSelect:()=>o(()=>_e(Nt(E(t)))),children:(e,n)=>{var r=hc(),i=q(r);Vn(i,{class:`h-4 w-4`});var a=z(i,2),o=M(a,!0),s=z(a,2),l=M(s,!0);H(()=>{c(o,E(t).label),c(l,E(t).skillCount??0)}),y(e,r)},$$slots:{default:!0}})})}y(e,n)}),y(e,r)},$$slots:{default:!0}})}),y(e,n)};h(l,e=>{jt.workspaces.length>0&&e(u)}),y(e,r)},$$slots:{default:!0}})}),y(e,r)},$$slots:{default:!0}})}),y(e,s),x()}var vc=r(`<button class="text-xs font-medium text-primary hover:underline"> </button>`),yc=r(`<div class="pointer-events-auto flex items-center gap-3 rounded-md border border-border bg-popover px-4 py-2.5 text-sm"><span class="flex-1 text-foreground"> </span> <!> <button class="text-muted-foreground hover:text-foreground" aria-label="Dismiss notification" title="Dismiss notification"><!></button></div>`),bc=r(`<div class="pointer-events-none fixed bottom-4 right-4 z-50 flex flex-col gap-2" aria-live="polite" aria-relevant="additions text"></div>`);function xc(e,r){i(r,!1),te();var a=bc();t(a,5,()=>Pn,e=>e.id,(e,t)=>{var r=yc(),i=W(r),a=M(i,!0),o=z(i,2),s=e=>{var n=vc(),r=M(n,!0);H(()=>c(r,E(t).action.label)),l(`click`,n,()=>{E(t).action.run(),In(E(t).id)}),y(e,n)};h(o,e=>{E(t).action&&e(s)});var u=z(o,2),d=W(u);Ln(d,{class:`h-3.5 w-3.5`}),n(u),n(r),H(()=>c(a,E(t).message)),l(`click`,u,()=>In(E(t).id)),y(e,r)}),n(a),y(e,a),x()}T([`click`]);var Sc=new Set([`$$slots`,`$$events`,`$$legacy`,`delayDuration`]);function Cc(e,t){let n=k(t,`delayDuration`,3,0),r=U(t,Sc);var i=Y(),o=q(i);a(o,()=>xs,(e,t)=>{t(e,K({get delayDuration(){return n()}},()=>r))}),y(e,i)}var wc=()=>navigator.opentrayWindow??navigator.opentray?.window??void 0,Tc={width:960,height:680},Ec={width:1100,height:760};async function Dc(e){let t=wc();if(t?.resizeTo&&t.getBounds)try{let n=await t.getBounds(),r=Math.max(n.width,e.width),i=Math.max(n.height,e.height);if(r===n.width&&i===n.height)return;await t.resizeTo(r,i)}catch{}}var Oc=new Set([`$$slots`,`$$events`,`$$legacy`]);function kc(e,t){let n=U(t,Oc),r=[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`}]];be(e,K({name:`command`},()=>n,{get iconNode(){return r}}))}var Ac=new Set([`$$slots`,`$$events`,`$$legacy`]);function jc(e,t){let n=U(t,Ac),r=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];be(e,K({name:`settings`},()=>n,{get iconNode(){return r}}))}var Mc=r(`<option>New session…</option>`),Nc=r(`<option>No sessions</option>`),Pc=r(`<option> </option>`),Fc=r(`<button type="button" class="relative flex h-8 w-8 items-center justify-center rounded text-muted-foreground transition-colors after:absolute after:-inset-1.5 after:content-[''] hover:bg-muted hover:text-foreground" title="New session" aria-label="New session"><!></button>`),Ic=r(`<header class="flex h-10 shrink-0 items-center gap-1 border-b border-border px-2"><span class="px-1 text-xs font-medium text-muted-foreground">Agent</span> <select class="h-8 min-w-0 flex-1 rounded-md border border-border bg-transparent px-2 py-0 text-xs" aria-label="Session"><!><!><!></select> <!> <button type="button" class="relative flex h-8 w-8 items-center justify-center rounded text-muted-foreground transition-colors after:absolute after:-inset-1.5 after:content-[''] hover:bg-muted hover:text-foreground" title="Close panel" aria-label="Close panel"><!></button></header>`);function Lc(e,r){i(r,!0);let a=I(()=>{let e=Me.sessions.find(e=>e.sessionId===Re.sessionId);return e?`${e.title||e.sessionId} (${e.status})`:void 0});var o=Ic(),s=z(W(o),2),u=W(s),d=e=>{var t=Mc();t.value=t.__value=``,y(e,t)};h(u,e=>{Re.sessionId===null&&e(d)});var f=z(u),p=e=>{var t=Nc();t.value=t.__value=``,y(e,t)};h(f,e=>{Me.sessions.length===0&&Re.sessionId!==null&&e(p)});var m=z(f);t(m,17,()=>Me.sessions,e=>e.sessionId,(e,t)=>{var n=Pc(),r=M(n),i={};H(e=>{c(r,`${e??``}
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BQ8kO0xi.js","../chunks/CmCJ0SKP.js","../chunks/JcDjicYT.js","../chunks/xihTtKlq.js","../chunks/BZ2Jwl6O.js","../chunks/BkEnd9_Z.js","../chunks/O2CEZ91h.js","../chunks/BoMQFGOq.js","../chunks/CNPsST_i.js","../chunks/Bg2k7op5.js","../chunks/FuwccWbx.js","../chunks/Dl8eQ129.js","../chunks/BEPs9Z9s.js","../chunks/Bs27XW8_.js","../chunks/BIfnT_mK.js","../chunks/D-V0xBeS.js","../chunks/B0pe_B_o.js","../chunks/CqzSRtkf.js","../chunks/CsaIfA9E.js","../assets/shell.U4CQV8re.css","../chunks/Ckw1quWt.js","../chunks/CIFG41pU.js","../chunks/s48N5eaK.js","../chunks/D8Der6oM.js","../assets/ProviderView.DEH95hqa.css","../chunks/CGrKeCdk.js","../chunks/UeEccMjN.js","../chunks/CeR4do8T.js","../chunks/COoMyR0G.js","../chunks/0umLG1IN.js","../chunks/BYNWtKcf.js","../chunks/gkPAnPzC.js","../chunks/CQD9uzpA.js","../chunks/DPrjly2t.js","../chunks/D-Jy42mM.js","../chunks/r1y9r7sj.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,A as t,At as n,B as r,Ct as i,D as a,Dt as o,E as s,F as c,G as l,H as u,J as d,K as f,M as p,Mt as m,N as h,Nt as g,O as _,Q as v,R as y,S as b,St as x,T as S,U as C,V as w,W as T,X as E,_ as D,_t as O,a as k,at as A,b as j,bt as ee,c as te,ct as M,d as N,f as P,ft as F,gt as I,h as L,ht as ne,it as re,j as ie,jt as R,k as ae,kt as oe,l as se,lt as z,m as B,mt as V,n as ce,nt as H,o as U,ot as W,p as le,q as G,r as ue,rt as de,s as K,st as q,ut as fe,v as pe,w as me,wt as he,x as J,y as ge,z as Y}from"../chunks/CmCJ0SKP.js";import{t as _e}from"../chunks/JcDjicYT.js";import{t as ve}from"../chunks/HclGiUj8.js";import"../chunks/xihTtKlq.js";import{t as ye}from"../chunks/CsaIfA9E.js";import"../chunks/BZ2Jwl6O.js";import{t as be}from"../chunks/BkEnd9_Z.js";import{A as xe,C as Se,D as Ce,E as X,F as we,M as Te,N as Ee,O as De,P as Oe,S as ke,T as Ae,_ as je,a as Me,c as Ne,d as Pe,f as Fe,g as Ie,h as Le,i as Re,j as ze,k as Be,l as Ve,m as He,n as Ue,o as We,p as Ge,r as Z,s as Ke,t as qe,u as Je,v as Ye,w as Xe,x as Ze,y as Qe}from"../chunks/O2CEZ91h.js";import{c as $e,d as et,l as tt,n as nt,o as rt,s as it,t as at,u as ot}from"../chunks/CqzSRtkf.js";import{A as st,C as ct,D as lt,E as ut,O as dt,S as ft,T as pt,a as mt,b as ht,c as gt,f as _t,g as vt,i as yt,k as bt,n as xt,o as St,p as Ct,r as wt,s as Tt,t as Et,v as Dt,w as Ot,x as kt}from"../chunks/BoMQFGOq.js";import{r as At}from"../chunks/Bg2k7op5.js";import{i as jt,n as Mt,o as Nt,t as Pt}from"../chunks/FuwccWbx.js";import{A as Ft,B as It,C as Lt,D as Rt,E as zt,F as Bt,G as Vt,H as Ht,I as Ut,J as Q,K as Wt,L as Gt,M as Kt,N as qt,O as Jt,P as Yt,R as Xt,S as Zt,T as Qt,U as $t,V as en,W as tn,Y as nn,_ as rn,a as an,b as on,c as sn,d as cn,f as ln,g as un,h as dn,i as fn,j as pn,k as mn,l as hn,m as gn,n as _n,o as vn,p as yn,q as bn,r as xn,s as Sn,t as Cn,u as wn,v as Tn,w as En,x as Dn,y as On,z as kn}from"../chunks/Dl8eQ129.js";import"../chunks/DZ_Kltd5.js";import{a as An,i as jn,n as Mn,o as Nn,r as Pn,s as Fn,t as In}from"../chunks/CNPsST_i.js";import{t as Ln}from"../chunks/BEPs9Z9s.js";import{n as Rn,r as zn,t as Bn}from"../chunks/Ckw1quWt.js";import{n as Vn,t as Hn}from"../chunks/0umLG1IN.js";import{t as Un}from"../chunks/CIFG41pU.js";import{t as Wn}from"../chunks/BIfnT_mK.js";import{t as Gn}from"../chunks/UeEccMjN.js";import{n as Kn,r as qn,t as Jn}from"../chunks/CQD9uzpA.js";var Yn=g({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>Xn}),Xn=`ignore`;it({id:`workspaces`,name:`Workspaces`,icon:we,activities:[$e({pattern:`/workspaces`,entry:!0,root:tt({id:`workspaces.home`,component:()=>ve(()=>import(`../chunks/BQ8kO0xi.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)})}),$e({pattern:`/workspaces`,root:ot({id:`workspaces.provider`,pattern:`:wsId/:providerId`,params:ut({wsId:kt,providerId:ht}),search:ut({q:dt().optional(),skill:dt().optional(),view:ft([`list`,`detail`]).optional()}),component:()=>ve(()=>import(`../chunks/B0pe_B_o.js`),__vite__mapDeps([16,1,3,5,17,2,18,4,7,19,9,10,8,12,20,21,22,15,23,24]),import.meta.url)})}),$e({pattern:`/workspaces`,root:ot({id:`workspaces.intelligence`,pattern:`intelligence/:wsId/:providerId`,params:ut({wsId:kt,providerId:ht}),search:ut({severity:ft([`all`,`error`,`warning`,`info`]).optional()}),component:()=>ve(()=>import(`../chunks/CGrKeCdk.js`),__vite__mapDeps([25,1,3,5,17,2,18,4,7,19,9,10,8,14,26,13,27,15,23]),import.meta.url)})})]});var Zn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qn(e,t){let n=U(t,Zn),r=[[`path`,{d:`M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z`}],[`path`,{d:`M14.487 7.858A1 1 0 0 1 14 7V2`}],[`path`,{d:`M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516`}],[`path`,{d:`M8 18h1`}]];be(e,K({name:`file-pen-line`},()=>n,{get iconNode(){return r}}))}it({id:`creator`,name:`Creator`,icon:Qn,activities:[$e({pattern:`/creator`,entry:!0,root:tt({id:`creator.home`,component:()=>ve(()=>import(`../chunks/COoMyR0G.js`),__vite__mapDeps([28,1,2,3,4,5,9,7,10,29,30]),import.meta.url)})}),$e({pattern:`/creator`,root:ot({id:`creator.workspace`,pattern:`:mode/:wsId/:providerId`,params:ut({mode:ft([`edit`,`new`]),wsId:kt,providerId:ht}),search:ut({subview:ft([`file`,`log`,`preview`,`validate`,`test`]).optional(),template:dt().optional()}),component:()=>ve(()=>import(`../chunks/gkPAnPzC.js`),__vite__mapDeps([31,1,2,3,18,4,5,17,7,19,9,10,11,8,12,13,20,32,30,22,27]),import.meta.url),children:[ot({id:`creator.workspace.skill`,pattern:`:skillId`,params:ut({skillId:Dt}),component:()=>ve(()=>import(`../chunks/gkPAnPzC.js`),__vite__mapDeps([31,1,2,3,18,4,5,17,7,19,9,10,11,8,12,13,20,32,30,22,27]),import.meta.url)})]})})]});var $n=new Set([`$$slots`,`$$events`,`$$legacy`]);function er(e,t){let n=U(t,$n),r=[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`}],[`circle`,{cx:`18`,cy:`6`,r:`3`}],[`circle`,{cx:`6`,cy:`18`,r:`3`}]];be(e,K({name:`git-branch`},()=>n,{get iconNode(){return r}}))}it({id:`repository`,name:`Repository`,icon:er,activities:[$e({pattern:`/repository`,entry:!0,root:ot({id:`repository.home`,pattern:``,search:ut({q:dt().optional()}),component:()=>ve(()=>import(`../chunks/DPrjly2t.js`),__vite__mapDeps([33,1,2,3,4,5,17,18,7,19,11,8,12,13,34]),import.meta.url),children:[ot({id:`repository.scan`,pattern:`scan/:sourceId`,params:ut({sourceId:dt().min(1).max(128).regex(/^[a-z0-9_-]+$/i)}),search:ut({selected:dt().optional(),targets:dt().optional(),skill:dt().optional()}),component:()=>ve(()=>import(`../chunks/r1y9r7sj.js`),__vite__mapDeps([35,1,2,3,18,4,17,7,19,10,34]),import.meta.url)})]})})]});var tr=r(`<div class="drag-strip no-drag shrink-0 svelte-11tvdi8" role="banner" aria-label="window titlebar"><!> <div class="flex-1"></div> <!></div>`);function nr(e,t){i(t,!0);let r=k(t,`variant`,3,`main`),a=k(t,`left`,3,null),o=k(t,`right`,3,null),s=V(8),c=V(8),u=()=>navigator.opentrayWindow??navigator.opentray?.window??void 0;function d(e){let t=u();try{t?.startAppRegionDrag?.({x:e.clientX,y:e.clientY,pointerId:e.pointerId})?.catch?.(()=>{})}catch{}}function f(e){let t=globalThis.innerWidth,n=Math.max(0,Math.round(e.x)),r=Math.max(0,Math.round(t-e.x-e.width));F(s,n+(n>0?4:0)),F(c,r+(r>0?4:0))}ue(()=>{let e=u()?.overlay;if(!e)return;let t=null;return(async()=>{try{if(f(await e.getTitlebarAreaRect()),e.listen)t=await e.listen(`geometrychange`,e=>f(e.titlebarAreaRect));else if(e.addEventListener){let n=e=>f(e.titlebarAreaRect);e.addEventListener(`geometrychange`,n),t=()=>e.removeEventListener?.(`geometrychange`,n)}}catch{}})(),()=>{t?.()}});var p=tr(),m=W(p),g=e=>{var t=Y(),n=q(t);_(n,a),y(e,t)};h(m,e=>{r()===`main`&&a()&&e(g)});var v=z(m,4),b=e=>{var t=Y(),n=q(t);_(n,o),y(e,t)};h(v,e=>{r()===`main`&&o()&&e(b)}),n(p),H(()=>j(p,`padding-left: ${E(s)??``}px; padding-right: ${E(c)??``}px`)),l(`pointerdown`,p,d),y(e,p),x()}T([`pointerdown`]);var rr={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`};Vt(rr);function ir(t){de(()=>e(()=>t()))}var ar=[`top`,`right`,`bottom`,`left`],or=Math.min,sr=Math.max,cr=Math.round,lr=Math.floor,ur=e=>({x:e,y:e}),dr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function fr(e,t,n){return sr(e,or(t,n))}function pr(e,t){return typeof e==`function`?e(t):e}function mr(e){return e.split(`-`)[0]}function hr(e){return e.split(`-`)[1]}function gr(e){return e===`x`?`y`:`x`}function _r(e){return e===`y`?`height`:`width`}function vr(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yr(e){return gr(vr(e))}function br(e,t,n){n===void 0&&(n=!1);let r=hr(e),i=yr(e),a=_r(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=kr(o)),[o,kr(o)]}function xr(e){let t=kr(e);return[Sr(e),t,Sr(t)]}function Sr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Cr=[`left`,`right`],wr=[`right`,`left`],Tr=[`top`,`bottom`],Er=[`bottom`,`top`];function Dr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wr:Cr:t?Cr:wr;case`left`:case`right`:return t?Tr:Er;default:return[]}}function Or(e,t,n,r){let i=hr(e),a=Dr(mr(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Sr)))),a}function kr(e){let t=mr(e);return dr[t]+e.slice(t.length)}function Ar(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function jr(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ar(e)}function Mr(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 Nr(e,t,n){let{reference:r,floating:i}=e,a=vr(t),o=yr(t),s=_r(o),c=mr(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=hr(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Pr(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}=pr(t,e),p=jr(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Mr(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=Mr(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 Fr=50,Ir=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Pr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Nr(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<Fr&&(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}=Nr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Lr=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}=pr(e,t)||{};if(l==null)return{};let d=jr(u),f={x:n,y:r},p=yr(i),m=_r(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,T=C/2-h[m]/2-1,E=or(d[_],T),D=or(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=fr(E,k,O),j=!c.arrow&&hr(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ee=j?k<E?k-E:k-O:0;return{[p]:f[p]+ee,data:{[p]:A,centerOffset:k-A-ee,...j&&{alignmentOffset:ee}},reset:j}}}),Rr=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}=pr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=mr(r),_=vr(o),v=mr(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[kr(o)]:xr(o)),x=p!==`none`;!d&&x&&b.push(...Or(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=br(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===vr(t)||T.every(e=>vr(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.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=T.filter(e=>{if(x){let t=vr(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 zr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Br(e){return ar.some(t=>e[t]>=0)}var Vr=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pr(e,t);switch(i){case`referenceHidden`:{let e=zr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Br(e)}}}case`escaped`:{let e=zr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Br(e)}}}default:return{}}}}},Hr=new Set([`left`,`top`]);async function Ur(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=mr(n),s=hr(n),c=vr(n)===`y`,l=Hr.has(o)?-1:1,u=a&&c?-1:1,d=pr(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 Wr=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 Ur(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}}}}},Gr=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}=pr(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=vr(i),p=gr(f),m=u[p],h=u[f],g=(e,t)=>fr(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}}}}}},Kr=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}=pr(e,t),u={x:n,y:r},d=vr(i),f=gr(d),p=u[f],m=u[d],h=pr(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=Hr.has(mr(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}}}},qr=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}=pr(e,t),c=await i.detectOverflow(t,s),l=mr(n),u=hr(n),d=vr(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=or(p-c[m],g),y=or(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*sr(c.left,c.right):S=p-2*sr(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 Jr(){return typeof window<`u`}function Yr(e){return Qr(e)?(e.nodeName||``).toLowerCase():`#document`}function Xr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zr(e){return((Qr(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qr(e){return Jr()?e instanceof Node||e instanceof Xr(e).Node:!1}function $r(e){return Jr()?e instanceof Element||e instanceof Xr(e).Element:!1}function ei(e){return Jr()?e instanceof HTMLElement||e instanceof Xr(e).HTMLElement:!1}function ti(e){return!Jr()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Xr(e).ShadowRoot}function ni(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=pi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ri(e){return/^(table|td|th)$/.test(Yr(e))}function ii(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ai=/transform|translate|scale|rotate|perspective|filter/,oi=/paint|layout|strict|content/,si=e=>!!e&&e!==`none`,ci;function li(e){let t=$r(e)?pi(e):e;return si(t.transform)||si(t.translate)||si(t.scale)||si(t.rotate)||si(t.perspective)||!di()&&(si(t.backdropFilter)||si(t.filter))||ai.test(t.willChange||``)||oi.test(t.contain||``)}function ui(e){let t=hi(e);for(;ei(t)&&!fi(t);){if(li(t))return t;if(ii(t))return null;t=hi(t)}return null}function di(){return ci??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ci}function fi(e){return/^(html|body|#document)$/.test(Yr(e))}function pi(e){return Xr(e).getComputedStyle(e)}function mi(e){return $r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hi(e){if(Yr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ti(e)&&e.host||Zr(e);return ti(t)?t.host:t}function gi(e){let t=hi(e);return fi(t)?(e.ownerDocument||e).body:ei(t)&&ni(t)?t:gi(t)}function _i(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=gi(e),i=r===e.ownerDocument?.body,a=Xr(r);if(i){let e=vi(a);return t.concat(a,a.visualViewport||[],ni(r)?r:[],e&&n?_i(e):[])}return t.concat(r,_i(r,[],n))}function vi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yi(e){let t=pi(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ei(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=cr(n)!==a||cr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bi(e){return $r(e)?e:e.contextElement}function xi(e){let t=bi(e);if(!ei(t))return ur(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=yi(t),o=(a?cr(n.width):n.width)/r,s=(a?cr(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Si=ur(0);function Ci(e){let t=Xr(e);return!di()||!t.visualViewport?Si:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wi(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Xr(e)}function Ti(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=bi(e),o=ur(1);t&&(r?$r(r)&&(o=xi(r)):o=xi(e));let s=wi(a,n,r)?Ci(a):ur(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=Xr(a),t=$r(r)?Xr(r):r,n=e,i=vi(n);for(;i&&t!==n;){let e=xi(i),t=i.getBoundingClientRect(),r=pi(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=Xr(i),i=vi(n)}}return Mr({width:u,height:d,x:c,y:l})}function Ei(e,t){let n=mi(e).scrollLeft;return t?t.left+n:Ti(Zr(e)).left+n}function Di(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ei(e,n),y:n.top+t.scrollTop}}function Oi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Zr(r),s=t?ii(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ur(1),u=ur(0),d=ei(r);if((d||!a)&&((Yr(r)!==`body`||ni(o))&&(c=mi(r)),d)){let e=Ti(r);l=xi(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Di(o,c):ur(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 ki(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ai(e){let t=mi(e),n=e.ownerDocument.body,r=sr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=sr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ei(e),o=-t.scrollTop;return pi(n).direction===`rtl`&&(a+=sr(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ji=25;function Mi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Xr(e),a=Zr(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!di()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ei(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<=ji&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ni(e,t){let n=Ti(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=xi(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pi(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Mi(e,n,t);else if(t===`document`)r=Ai(Zr(e));else if($r(t))r=Ni(t,n);else{let n=Ci(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mr(r)}function Fi(e,t){let n=t.get(e);if(n)return n;let r=_i(e,[],!1).filter(e=>$r(e)&&Yr(e)!==`body`),i=null,a=pi(e).position===`fixed`,o=a?hi(e):e;for(;$r(o)&&!fi(o);){let e=pi(o),t=li(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=hi(o)}return t.set(e,r),r}function Ii(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ii(t)?[]:Fi(t,this._c):[].concat(n),r],o=Pi(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=Pi(t,a[e],i);s=sr(n.top,s),c=or(n.right,c),l=or(n.bottom,l),u=sr(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Li(e){let{width:t,height:n}=yi(e);return{width:t,height:n}}function Ri(e,t,n){let r=ei(t),i=Zr(t),a=n===`fixed`,o=Ti(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ur(0);if((r||!a)&&((Yr(t)!==`body`||ni(i))&&(s=mi(t)),r)){let e=Ti(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ei(i));let l=i&&!r&&!a?Di(i,s):ur(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 zi(e){return pi(e).position===`static`}function Bi(e,t){if(!ei(e)||pi(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Zr(e)===n&&(n=n.ownerDocument.body),n}function Vi(e,t){let n=Xr(e);if(ii(e))return n;if(!ei(e)){let t=hi(e);for(;t&&!fi(t);){if($r(t)&&!zi(t))return t;t=hi(t)}return n}let r=Bi(e,t);for(;r&&ri(r)&&zi(r);)r=Bi(r,t);return r&&fi(r)&&zi(r)&&!li(r)?n:r||ui(e)||n}var Hi=async function(e){let t=this.getOffsetParent||Vi,n=this.getDimensions,r=await n(e.floating);return{reference:Ri(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ui(e){return pi(e).direction===`rtl`}var Wi={convertOffsetParentRelativeRectToViewportRelativeRect:Oi,getDocumentElement:Zr,getClippingRect:Ii,getOffsetParent:Vi,getElementRects:Hi,getClientRects:ki,getDimensions:Li,getScale:xi,isElement:$r,isRTL:Ui};function Gi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ki(e,t,n){let r=null,i,a=Zr(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=lr(d),h=lr(a.clientWidth-(u+f)),g=lr(a.clientHeight-(d+p)),_=lr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:sr(0,or(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Gi(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=Xr(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function qi(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=bi(e),u=i||a?[...l?_i(l):[],...t?_i(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ki(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?Ti(e):null;c&&g();function g(){let t=Ti(e);h&&!Gi(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 Ji=Wr,Yi=Gr,Xi=Rr,Zi=qr,Qi=Vr,$i=Lr,ea=Kr,ta=(e,t,n)=>{let r=new Map,i=n??{},a={...Wi,...i.platform,_c:r};return Ir(e,t,{...i,platform:a})};function na(e){return typeof e==`function`?e():e}function ra(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ia(e,t){let n=ra(e);return Math.round(t*n)/n}function aa(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 oa(e){let t=e.whileElementsMounted,n=I(()=>na(e.open)??!0),r=I(()=>na(e.middleware)),i=I(()=>na(e.transform)??!0),a=I(()=>na(e.placement)??`bottom`),o=I(()=>na(e.strategy)??`absolute`),s=I(()=>na(e.sideOffset)??0),c=I(()=>na(e.alignOffset)??0),l=e.reference,u=V(0),d=V(0),f=nn(null),p=V(fe(E(o))),m=V(fe(E(a))),h=V(fe({})),g=V(!1),_=!1,v=0,y=I(()=>{let e=f.current?ia(f.current,E(u)):E(u),t=f.current?ia(f.current,E(d)):E(d);return E(i)?{position:E(p),left:`0`,top:`0`,transform:`translate(${e}px, ${t}px)`,...f.current&&ra(f.current)>=1.5&&{willChange:`transform`}}:{position:E(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;ta(e,t,{middleware:E(r),placement:E(a),strategy:E(o)}).then(r=>{if(i===v&&l.current===e&&f.current===t){if(sa(e)){F(h,{...E(h),hide:{...E(h).hide,referenceHidden:!0}},!0);return}if(!E(n)&&E(u)!==0&&E(d)!==0){let e=Math.max(Math.abs(E(s)),Math.abs(E(c)),15);if(r.x<=e&&r.y<=e)return}F(u,r.x,!0),F(d,r.y,!0),F(p,r.strategy,!0),F(m,r.placement,!0),F(h,r.middlewareData,!0),F(g,!0)}})}function S(){typeof b==`function`&&(b(),b=void 0),v++}function C(){if(S(),t===void 0){x();return}E(n)&&l.current!==null&&f.current!==null&&(b=t(l.current,f.current,x))}function w(){!E(n)&&f.current===null&&F(g,!1)}function T(){return[E(r),E(a),E(o),E(s),E(c),E(n)]}return de(()=>{t===void 0&&E(n)&&x()}),de(C),de(()=>{if(t!==void 0){if(T(),!E(n)){_=!1;return}if(!E(g)){_=!1;return}if(!_){_=!0;return}x()}}),de(w),de(()=>S),{floating:f,reference:l,get strategy(){return E(p)},get placement(){return E(m)},get middlewareData(){return E(h)},get isPositioned(){return E(g)},get floatingStyles(){return E(y)},get update(){return x}}}function sa(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}var ca={top:`bottom`,right:`left`,bottom:`top`,left:`right`},la=new $t(`Floating.Root`),ua=new $t(`Floating.Content`),da=new $t(`Floating.Root`),fa=class e{static create(t=!1){return t?da.set(new e):la.set(new e)}anchorNode=nn(null);customAnchorNode=nn(null);triggerNode=nn(null);constructor(){de(()=>{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})}},pa=class e{static create(t,n=!1){return n?ua.set(new e(t,da.get())):ua.set(new e(t,la.get()))}opts;root;contentRef=nn(null);wrapperRef=nn(null);arrowRef=nn(null);contentAttachment=Ut(this.contentRef);wrapperAttachment=Ut(this.wrapperRef);arrowAttachment=Ut(this.arrowRef);arrowId=nn(hn());#e=I(()=>{if(typeof this.opts.style==`string`)return Wt(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new en(()=>this.arrowRef.current??void 0);#r=I(()=>this.#n?.width??0);#i=I(()=>this.#n?.height??0);#a=I(()=>this.opts.side?.current+(this.opts.align.current===`center`?``:`-${this.opts.align.current}`));#o=I(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=I(()=>E(this.#o).length>0);get hasExplicitBoundaries(){return E(this.#s)}set hasExplicitBoundaries(e){F(this.#s,e)}#c=I(()=>({padding:this.opts.collisionPadding.current,boundary:E(this.#o).filter(zt),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return E(this.#c)}set detectOverflowOptions(e){F(this.#c,e)}#l=V(void 0);#u=V(void 0);#d=V(void 0);#f=V(void 0);#p=I(()=>[Ji({mainAxis:this.opts.sideOffset.current+E(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Yi({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current===`partial`?ea():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Xi({...this.detectOverflowOptions}),Zi({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{let{width:r,height:i}=e.reference;F(this.#l,t,!0),F(this.#u,n,!0),F(this.#d,r,!0),F(this.#f,i,!0)}}),this.arrowRef.current&&$i({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ha({arrowWidth:E(this.#r),arrowHeight:E(this.#i)}),this.opts.hideWhenDetached.current&&Qi({strategy:`referenceHidden`,...this.detectOverflowOptions})].filter(Boolean));get middleware(){return E(this.#p)}set middleware(e){F(this.#p,e)}floating;#m=I(()=>_a(this.floating.placement));get placedSide(){return E(this.#m)}set placedSide(e){F(this.#m,e)}#h=I(()=>va(this.floating.placement));get placedAlign(){return E(this.#h)}set placedAlign(e){F(this.#h,e)}#g=I(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return E(this.#g)}set arrowX(e){F(this.#g,e)}#_=I(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return E(this.#_)}set arrowY(e){F(this.#_,e)}#v=I(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return E(this.#v)}set cannotCenterArrow(e){F(this.#v,e)}#y=V();get contentZIndex(){return E(this.#y)}set contentZIndex(e){F(this.#y,e,!0)}#b=I(()=>ca[this.placedSide]);get arrowBaseSide(){return E(this.#b)}set arrowBaseSide(e){F(this.#b,e)}#x=I(()=>({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":`${E(this.#l)}px`,"--bits-floating-available-height":`${E(this.#u)}px`,"--bits-floating-anchor-width":`${E(this.#d)}px`,"--bits-floating-anchor-height":`${E(this.#f)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:`hidden`,"pointer-events":`none`},...E(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return E(this.#x)}set wrapperProps(e){F(this.#x,e)}#S=I(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Vt({...E(this.#e)}),...this.contentAttachment}));get props(){return E(this.#S)}set props(e){F(this.#S,e)}#C=I(()=>({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}));get arrowStyle(){return E(this.#C)}set arrowStyle(e){F(this.#C,e)}constructor(e,t){this.opts=e,this.root=t,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),Ht(()=>e.customAnchor.current,e=>{this.root.customAnchorNode.current=e}),this.floating=oa({strategy:()=>this.opts.strategy.current,placement:()=>E(this.#a),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...e)=>qi(...e,{animationFrame:this.#t?.current===`always`}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),de(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Ht(()=>this.contentRef.current,e=>{if(!e||!this.opts.enabled.current)return;let t=Gt(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)}}),de(()=>{this.floating.floating.current=this.wrapperRef.current})}},ma=class e{static create(t,n=!1){return n?new e(t,da.get()):new e(t,la.get())}opts;root;constructor(e,t){this.opts=e,this.root=t,t.triggerNode=e.virtualEl&&e.virtualEl.current?bn(e.virtualEl.current):e.ref}};function ha(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]=ga(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 ga(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function _a(e){return ga(e)[0]}function va(e){return ga(e)[1]}function ya(e,t){i(t,!0);let n=k(t,`tooltip`,3,!1);fa.create(n());var r=Y(),a=q(r);_(a,()=>t.children??R),y(e,r),x()}function ba(e,t){i(t,!0);let n=k(t,`tooltip`,3,!1);ma.create({id:Q(()=>t.id),virtualEl:Q(()=>t.virtualEl),ref:t.ref},n());var r=Y(),a=q(r);_(a,()=>t.children??R),y(e,r),x()}function xa(e,t){i(t,!0);let n=k(t,`side`,3,`bottom`),r=k(t,`sideOffset`,3,0),a=k(t,`align`,3,`center`),o=k(t,`alignOffset`,3,0),s=k(t,`arrowPadding`,3,0),c=k(t,`avoidCollisions`,3,!0),l=k(t,`collisionBoundary`,19,()=>[]),u=k(t,`collisionPadding`,3,0),d=k(t,`hideWhenDetached`,3,!1),f=k(t,`onPlaced`,3,()=>{}),p=k(t,`sticky`,3,`partial`),m=k(t,`updatePositionStrategy`,3,`optimized`),h=k(t,`strategy`,3,`fixed`),g=k(t,`dir`,3,`ltr`),v=k(t,`style`,19,()=>({})),b=k(t,`wrapperId`,19,hn),S=k(t,`customAnchor`,3,null),C=k(t,`tooltip`,3,!1),w=pa.create({side:Q(()=>n()),sideOffset:Q(()=>r()),align:Q(()=>a()),alignOffset:Q(()=>o()),id:Q(()=>t.id),arrowPadding:Q(()=>s()),avoidCollisions:Q(()=>c()),collisionBoundary:Q(()=>l()),collisionPadding:Q(()=>u()),hideWhenDetached:Q(()=>d()),onPlaced:Q(()=>f()),sticky:Q(()=>p()),updatePositionStrategy:Q(()=>m()),strategy:Q(()=>h()),dir:Q(()=>g()),style:Q(()=>v()),enabled:Q(()=>t.enabled),wrapperId:Q(()=>b()),customAnchor:Q(()=>S())},C()),T=I(()=>tn(w.wrapperProps,{style:{pointerEvents:`auto`}}));var D=Y(),O=q(D);_(O,()=>t.content??R,()=>({props:w.props,wrapperProps:E(T)})),y(e,D),x()}function Sa(e,t){i(t,!0),ue(()=>{t.onPlaced?.()});var n=Y(),r=q(n);_(r,()=>t.content??R,()=>({props:{},wrapperProps:{}})),y(e,n),x()}var Ca=new Set([`$$slots`,`$$events`,`$$legacy`,`content`,`isStatic`,`onPlaced`]);function wa(e,t){let n=k(t,`isStatic`,3,!1),r=U(t,Ca);var i=Y(),a=q(i),o=e=>{Sa(e,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},s=e=>{xa(e,K({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};h(a,e=>{n()?e(o):e(s,-1)}),y(e,i)}var Ta=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(`.`)),Ea=r(`<!> <!>`,1);function Da(e,t){i(t,!0);let n=k(t,`interactOutsideBehavior`,3,`close`),r=k(t,`trapFocus`,3,!0),a=k(t,`isValidEvent`,3,()=>!1),o=k(t,`customAnchor`,3,null),s=k(t,`isStatic`,3,!1),c=k(t,`tooltip`,3,!1),l=k(t,`contentPointerEvents`,3,`auto`),u=U(t,Ta),d=I(()=>t.preventScroll??!0),f=I(()=>t.strategy??(E(d)?`fixed`:`absolute`));wa(e,{get isStatic(){return s()},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 E(f)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},get enabled(){return t.enabled},get tooltip(){return c()},content:(e,i)=>{let o=()=>(i?.()).props,s=()=>(i?.()).wrapperProps;var c=Ea(),f=q(c),p=e=>{sn(e,{get preventScroll(){return E(d)}})},m=e=>{sn(e,{get preventScroll(){return E(d)}})};h(f,e=>{t.forceMount&&t.enabled?e(p):t.forceMount||e(m,1)});var g=z(f,2);cn(g,{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 i=()=>(r?.()).props;ln(e,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,r)=>{yn(e,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return a()},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,n)=>{let r=()=>(n?.()).props;wn(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 a=Y(),c=q(a);{let e=I(()=>({props:tn(u,o(),r(),i(),{style:{pointerEvents:l()}}),wrapperProps:s()}));_(c,()=>t.popper??R,()=>E(e))}y(e,a)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),y(e,c)},$$slots:{content:!0}}),x()}var Oa=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 ka(e,t){let n=k(t,`interactOutsideBehavior`,3,`close`),r=k(t,`trapFocus`,3,!0),i=k(t,`isValidEvent`,3,()=>!1),a=k(t,`customAnchor`,3,null),o=k(t,`isStatic`,3,!1),s=U(t,Oa);var c=Y(),l=q(c),u=e=>{Da(e,K({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)}),y(e,c)}var Aa=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 ja(e,t){let n=k(t,`interactOutsideBehavior`,3,`close`),r=k(t,`trapFocus`,3,!0),i=k(t,`isValidEvent`,3,()=>!1),a=k(t,`customAnchor`,3,null),o=k(t,`isStatic`,3,!1),s=U(t,Aa);Da(e,K({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 Ma(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Na(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Pa(e){if(typeof CSS<`u`&&typeof CSS.escape==`function`)return CSS.escape(e);let t=e.length,n=-1,r,i=``,a=e.charCodeAt(0);if(t===1&&a===45)return`\\`+e;for(;++n<t;){if(r=e.charCodeAt(n),r===0){i+=`�`;continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&a===45){i+=`\\`+r.toString(16)+` `;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=e.charAt(n);continue}i+=`\\`+e.charAt(n)}return i}var Fa=`data-value`,Ia=Bt({component:`command`,parts:[`root`,`list`,`input`,`separator`,`loading`,`empty`,`group`,`group-items`,`group-heading`,`item`,`viewport`,`input-label`]}),La=Ia.selector(`group`),Ra=Ia.selector(`group-items`),za=Ia.selector(`group-heading`),Ba=Ia.selector(`item`),Va=`${Ia.selector(`item`)}:not([aria-disabled="true"])`,Ha=new $t(`Command.Root`),Ua=new $t(`Command.List`),Wa=new $t(`Command.Group`),Ga={search:``,value:``,filtered:{count:0,items:new Map,groups:new Set}},Ka=class e{static create(t){return Ha.set(new e(t))}opts;attachment;#e=!1;#t=!0;sortAfterTick=!1;sortAndFilterAfterTick=!1;allItems=new Set;allGroups=new Map;allIds=new Map;#n=V(0);get key(){return E(this.#n)}set key(e){F(this.#n,e,!0)}#r=V(null);get viewportNode(){return E(this.#r)}set viewportNode(e){F(this.#r,e,!0)}#i=V(null);get inputNode(){return E(this.#i)}set inputNode(e){F(this.#i,e,!0)}#a=V(null);get labelNode(){return E(this.#a)}set labelNode(e){F(this.#a,e,!0)}#o=V(Ga);get commandState(){return E(this.#o)}set commandState(e){F(this.#o,e)}#s=V(fe(Ga));get _commandState(){return E(this.#s)}set _commandState(e){F(this.#s,e,!0)}#c(){return o(this._commandState)}#l(){this.#e||(this.#e=!0,Xt(()=>{this.#e=!1;let e=this.#c();Object.is(this.commandState,e)||(this.commandState=e,this.opts.onStateChange?.current?.(e))}))}setState(e,t,n){Object.is(this._commandState[e],t)||(this._commandState[e]=t,e===`search`?(this.#m(),this.#d()):e===`value`&&(n||this.#g()),this.#l())}constructor(e){this.opts=e,this.attachment=Ut(this.opts.ref);let t={...this._commandState,value:this.opts.value.current??``};this._commandState=t,this.commandState=t,this.onkeydown=this.onkeydown.bind(this)}#u(e,t){let n=this.opts.filter.current??qo;return e?n(e,this._commandState.search,t):0}#d(){if(!this._commandState.search||this.opts.shouldFilter.current===!1){!this._commandState.value||!this.#t?this.#f():this.#t&&this._commandState.value&&this.#p();return}let e=this._commandState.filtered.items,t=[];for(let n of this._commandState.filtered.groups){let r=this.allGroups.get(n),i=0;if(!r){t.push([n,i]);continue}for(let t of r){let n=e.get(t);i=Math.max(n??0,i)}t.push([n,i])}let n=this.viewportNode,r=this.getValidItems().sort((t,n)=>{let r=t.getAttribute(`data-value`),i=n.getAttribute(`data-value`),a=e.get(r)??0;return(e.get(i)??0)-a});for(let e of r){let t=e.closest(Ra);if(t){let n=e.parentElement===t?e:e.closest(`${Ra} > *`);n&&t.appendChild(n)}else{let t=e.parentElement===n?e:e.closest(`${Ra} > *`);t&&n?.appendChild(t)}}let i=t.sort((e,t)=>t[1]-e[1]);for(let e of i){let t=n?.querySelector(`${La}[${Fa}="${Pa(e[0])}"]`);t?.parentElement?.appendChild(t)}this.#f()}setValue(e,t){e!==this.opts.value.current&&e===``&&Xt(()=>{this.key++}),this.setState(`value`,e,t),this.opts.value.current=e}#f(){Xt(()=>{let e=this.getValidItems().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(Fa),t=this.#t&&this.opts.disableInitialScroll.current;this.setValue(e??``,t),this.#t=!1})}#p(){Xt(()=>{this.opts.disableInitialScroll.current||this.#g(),this.#t=!1})}#m(){if(!this._commandState.search||this.opts.shouldFilter.current===!1){this._commandState.filtered.count=this.allItems.size;return}this._commandState.filtered.groups=new Set;let e=0;for(let t of this.allItems){let n=this.allIds.get(t)?.value??``,r=this.allIds.get(t)?.keywords??[],i=this.#u(n,r);this._commandState.filtered.items.set(t,i),i>0&&e++}for(let[e,t]of this.allGroups)for(let n of t){let t=this._commandState.filtered.items.get(n);if(t&&t>0){this._commandState.filtered.groups.add(e);break}}this._commandState.filtered.count=e}getValidItems(){let e=this.opts.ref.current;return e?Array.from(e.querySelectorAll(Va)).filter(e=>!!e):[]}getVisibleItems(){let e=this.opts.ref.current;return e?Array.from(e.querySelectorAll(Ba)).filter(e=>!!e):[]}get itemsGrid(){if(!this.isGrid)return[];let e=this.opts.columns.current??1,t=this.getVisibleItems(),n=[[]],r=t[0]?.getAttribute(`data-group`),i=0,a=0;for(let o=0;o<t.length;o++){let s=t[o],c=s?.getAttribute(`data-group`);r===c?(i++,i>e&&(a++,i=1,n.push([])),n[a]?.push({index:o,firstRowOfGroup:n[a]?.[0]?.firstRowOfGroup??o===0,ref:s})):(r=c,i=1,a++,n.push([{index:o,firstRowOfGroup:!0,ref:s}]))}return n}#h(){let e=this.opts.ref.current;if(!e)return;let t=e.querySelector(`${Va}[data-selected]`);if(t)return t}#g(){Xt(()=>{let e=this.#h();if(!e)return;let t=e.parentElement?.parentElement;if(t){if(this.isGrid){let t=this.#_(e);if(e.scrollIntoView({block:`nearest`}),t){(e?.closest(La)?.querySelector(za))?.scrollIntoView({block:`nearest`});return}}else{let n=Zt(t);if(n&&n.dataset?.value===e.dataset?.value){(e?.closest(La)?.querySelector(za))?.scrollIntoView({block:`nearest`});return}}e.scrollIntoView({block:`nearest`})}})}#_(e){let t=this.itemsGrid;if(t.length===0)return!1;for(let n=0;n<t.length;n++){let r=t[n];if(r!==void 0)for(let t=0;t<r.length;t++){let n=r[t];if(n!==void 0&&n.ref===e)return n.firstRowOfGroup}}return!1}updateSelectedToIndex(e){let t=this.getValidItems()[e];t&&this.setValue(t.getAttribute(Fa)??``)}updateSelectedByItem(e){let t=this.#h(),n=this.getValidItems(),r=n.findIndex(e=>e===t),i=n[r+e];this.opts.loop.current&&(i=r+e<0?n[n.length-1]:r+e===n.length?n[0]:n[r+e]),i&&this.setValue(i.getAttribute(Fa)??``)}updateSelectedByGroup(e){let t=this.#h()?.closest(La),n;for(;t&&!n;)t=e>0?Ma(t,La):Na(t,La),n=t?.querySelector(Va);n?this.setValue(n.getAttribute(Fa)??``):this.updateSelectedByItem(e)}registerValue(e,t){return e&&e===this.allIds.get(e)?.value||this.allIds.set(e,{value:e,keywords:t}),this._commandState.filtered.items.set(e,this.#u(e,t)),this.sortAfterTick||(this.sortAfterTick=!0,Xt(()=>{this.#d(),this.sortAfterTick=!1})),()=>{this.allIds.delete(e)}}registerItem(e,t){return this.allItems.add(e),t&&(this.allGroups.has(t)?this.allGroups.get(t).add(e):this.allGroups.set(t,new Set([e]))),this.sortAndFilterAfterTick||(this.sortAndFilterAfterTick=!0,Xt(()=>{this.#m(),this.#d(),this.sortAndFilterAfterTick=!1})),this.#l(),()=>{let t=this.#h();this.allItems.delete(e),this.commandState.filtered.items.delete(e),this.#m(),t?.getAttribute(`id`)===e&&this.#f(),this.#l()}}registerGroup(e){return this.allGroups.has(e)||this.allGroups.set(e,new Set),()=>{this.allIds.delete(e),this.allGroups.delete(e)}}get isGrid(){return this.opts.columns.current!==null}#v(){return this.updateSelectedToIndex(this.getValidItems().length-1)}#y(e){e.preventDefault(),e.metaKey?this.#v():e.altKey?this.updateSelectedByGroup(1):this.updateSelectedByItem(1)}#b(e){this.opts.columns.current!==null&&(e.preventDefault(),e.metaKey?this.updateSelectedByGroup(1):this.updateSelectedByItem(this.#S(e)))}#x(e,t){if(t.length===0)return null;for(let n=0;n<t.length;n++){let r=t[n];if(r!==void 0)for(let t=0;t<r.length;t++){let i=r[t];if(i!==void 0&&i.ref===e)return{columnIndex:t,rowIndex:n}}}return null}#S(e){let t=this.itemsGrid,n=this.#h();if(!n)return 0;let r=this.#x(n,t);if(!r)return 0;let i=null,a=+!!e.altKey;if(e.altKey&&r.rowIndex===t.length-2&&!this.opts.loop.current)i=this.#C({start:t.length-1,end:t.length,expectedColumnIndex:r.columnIndex,grid:t});else if(r.rowIndex===t.length-1){if(!this.opts.loop.current)return 0;i=this.#C({start:0+a,end:r.rowIndex,expectedColumnIndex:r.columnIndex,grid:t})}else i=this.#C({start:r.rowIndex+1+a,end:t.length,expectedColumnIndex:r.columnIndex,grid:t}),i===null&&this.opts.loop.current&&(i=this.#C({start:0,end:r.rowIndex,expectedColumnIndex:r.columnIndex,grid:t}));return this.#w(n,i)}#C({start:e,end:t,grid:n,expectedColumnIndex:r}){let i=null;for(let a=e;a<t;a++){let e=n[a];if(i=e[r]?.ref??null,i!==null&&qa(i)){i=null;continue}if(i===null)for(let t=e.length-1;t>=0;t--){let t=e[e.length-1];if(!(t===void 0||qa(t.ref))){i=t.ref;break}}break}return i}#w(e,t){if(t===null)return 0;let n=this.getValidItems(),r=n.findIndex(t=>t===e);return n.findIndex(e=>e===t)-r}#T(e){this.opts.columns.current!==null&&(e.preventDefault(),e.metaKey?this.updateSelectedByGroup(-1):this.updateSelectedByItem(this.#E(e)))}#E(e){let t=this.itemsGrid,n=this.#h();if(n===void 0)return 0;let r=this.#x(n,t);if(r===null)return 0;let i=null,a=+!!e.altKey;if(e.altKey&&r.rowIndex===1&&this.opts.loop.current===!1)i=this.#D({start:0,end:0,expectedColumnIndex:r.columnIndex,grid:t});else if(r.rowIndex===0){if(this.opts.loop.current===!1)return 0;i=this.#D({start:t.length-1-a,end:r.rowIndex+1,expectedColumnIndex:r.columnIndex,grid:t})}else i=this.#D({start:r.rowIndex-1-a,end:0,expectedColumnIndex:r.columnIndex,grid:t}),i===null&&this.opts.loop.current&&(i=this.#D({start:t.length-1,end:r.rowIndex+1,expectedColumnIndex:r.columnIndex,grid:t}));return this.#w(n,i)}#D({start:e,end:t,grid:n,expectedColumnIndex:r}){let i=null;for(let a=e;a>=t;a--){let e=n[a];if(e!==void 0){if(i=e[r]?.ref??null,i!==null&&qa(i)){i=null;continue}if(i===null)for(let t=e.length-1;t>=0;t--){let t=e[e.length-1];if(!(t===void 0||qa(t.ref))){i=t.ref;break}}break}}return i}#O(e){e.preventDefault(),e.metaKey?this.updateSelectedToIndex(0):e.altKey?this.updateSelectedByGroup(-1):this.updateSelectedByItem(-1)}onkeydown(e){let t=this.opts.vimBindings.current&&e.ctrlKey;switch(e.key){case`n`:case`j`:t&&(this.isGrid?this.#b(e):this.#y(e));break;case`l`:t&&this.isGrid&&this.#y(e);break;case Rt:this.isGrid?this.#b(e):this.#y(e);break;case mn:if(!this.isGrid)break;this.#y(e);break;case`p`:case`k`:t&&(this.isGrid?this.#T(e):this.#O(e));break;case`h`:t&&this.isGrid&&this.#O(e);break;case Ft:this.isGrid?this.#T(e):this.#O(e);break;case Jt:if(!this.isGrid)break;this.#O(e);break;case Kt:e.preventDefault(),this.updateSelectedToIndex(0);break;case`End`:e.preventDefault(),this.#v();break;case pn:if(!e.isComposing&&e.keyCode!==229){e.preventDefault();let t=this.#h();t&&t?.click()}}}#k=I(()=>({id:this.opts.id.current,role:`application`,[Ia.root]:``,tabindex:-1,onkeydown:this.onkeydown,...this.attachment}));get props(){return E(this.#k)}set props(e){F(this.#k,e)}};function qa(e){return e.getAttribute(`aria-disabled`)===`true`}var Ja=class e{static create(t){return new e(t,Ha.get())}opts;root;attachment;#e=I(()=>this.root._commandState.filtered.count===0&&this.#t===!1||this.opts.forceMount.current);get shouldRender(){return E(this.#e)}set shouldRender(e){F(this.#e,e)}#t=!0;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref),re(()=>{this.#t=!1})}#n=I(()=>({id:this.opts.id.current,role:`presentation`,[Ia.empty]:``,...this.attachment}));get props(){return E(this.#n)}set props(e){F(this.#n,e)}},Ya=class e{static create(t){return Wa.set(new e(t,Ha.get()))}opts;root;attachment;#e=I(()=>this.opts.forceMount.current||this.root.opts.shouldFilter.current===!1||!this.root.commandState.search?!0:this.root._commandState.filtered.groups.has(this.trueValue));get shouldRender(){return E(this.#e)}set shouldRender(e){F(this.#e,e)}#t=V(null);get headingNode(){return E(this.#t)}set headingNode(e){F(this.#t,e,!0)}#n=V(``);get trueValue(){return E(this.#n)}set trueValue(e){F(this.#n,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref),this.trueValue=e.value.current??e.id.current,Ht(()=>this.trueValue,()=>this.root.registerGroup(this.trueValue)),de(()=>this.opts.value.current?(this.trueValue=this.opts.value.current,this.root.registerValue(this.opts.value.current)):this.headingNode&&this.headingNode.textContent?(this.trueValue=this.headingNode.textContent.trim().toLowerCase(),this.root.registerValue(this.trueValue)):(this.trueValue=`-----${this.opts.id.current}`,this.root.registerValue(this.trueValue)))}#r=I(()=>({id:this.opts.id.current,role:`presentation`,hidden:!this.shouldRender||void 0,"data-value":this.trueValue,[Ia.group]:``,...this.attachment}));get props(){return E(this.#r)}set props(e){F(this.#r,e)}},Xa=class e{static create(t){return new e(t,Wa.get())}opts;group;attachment;constructor(e,t){this.opts=e,this.group=t,this.attachment=Ut(this.opts.ref,e=>this.group.headingNode=e)}#e=I(()=>({id:this.opts.id.current,[Ia[`group-heading`]]:``,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},Za=class e{static create(t){return new e(t,Wa.get())}opts;group;attachment;constructor(e,t){this.opts=e,this.group=t,this.attachment=Ut(this.opts.ref)}#e=I(()=>({id:this.opts.id.current,role:`group`,[Ia[`group-items`]]:``,"aria-labelledby":this.group.headingNode?.id??void 0,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},Qa=class e{static create(t){return new e(t,Ha.get())}opts;root;attachment;#e=I(()=>{let e=this.root.viewportNode?.querySelector(`${Ba}[${Fa}="${Pa(this.root.opts.value.current)}"]`);if(e!=null)return e.getAttribute(`id`)??void 0});constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref,e=>this.root.inputNode=e),Ht(()=>this.opts.ref.current,()=>{let e=this.opts.ref.current;e&&this.opts.autofocus.current&&kn(10,()=>e.focus())}),Ht(()=>this.opts.value.current,()=>{this.root.commandState.search!==this.opts.value.current&&this.root.setState(`search`,this.opts.value.current)})}#t=I(()=>({id:this.opts.id.current,type:`text`,[Ia.input]:``,autocomplete:`off`,autocorrect:`off`,spellcheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":Yt(!0),"aria-controls":this.root.viewportNode?.id??void 0,"aria-labelledby":this.root.labelNode?.id??void 0,"aria-activedescendant":E(this.#e),...this.attachment}));get props(){return E(this.#t)}set props(e){F(this.#t,e)}},$a=class e{static create(t){let n=Wa.getOr(null);return new e({...t,group:n},Ha.get())}opts;root;attachment;#e=null;#t=I(()=>this.opts.forceMount.current||this.#e?.opts.forceMount.current===!0);#n=I(()=>{if(this.opts.ref.current,E(this.#t)||this.root.opts.shouldFilter.current===!1||!this.root.commandState.search)return!0;let e=this.root.commandState.filtered.items.get(this.trueValue);return e!==void 0&&e>0});get shouldRender(){return E(this.#n)}set shouldRender(e){F(this.#n,e)}#r=I(()=>this.root.opts.value.current===this.trueValue&&this.trueValue!==``);get isSelected(){return E(this.#r)}set isSelected(e){F(this.#r,e)}#i=V(``);get trueValue(){return E(this.#i)}set trueValue(e){F(this.#i,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.#e=Wa.getOr(null),this.trueValue=e.value.current,this.attachment=Ut(this.opts.ref),Ht([()=>this.trueValue,()=>this.#e?.trueValue,()=>this.opts.forceMount.current],()=>{if(!this.opts.forceMount.current&&this.trueValue)return this.root.registerItem(this.trueValue,this.#e?.trueValue)}),Ht([()=>this.opts.value.current,()=>this.opts.ref.current],()=>{this.opts.value.current?this.trueValue=this.opts.value.current:this.opts.ref.current?.textContent&&(this.trueValue=this.opts.ref.current.textContent.trim()),this.trueValue&&(this.root.registerValue(this.trueValue,e.keywords.current.map(e=>e.trim())),this.opts.ref.current?.setAttribute(Fa,this.trueValue))}),this.onclick=this.onclick.bind(this),this.onpointermove=this.onpointermove.bind(this)}#a(){this.opts.disabled.current||(this.#o(),this.opts.onSelect?.current())}#o(){this.opts.disabled.current||this.root.setValue(this.trueValue,!0)}onpointermove(e){this.opts.disabled.current||this.root.opts.disablePointerSelection.current||this.#o()}onclick(e){this.opts.disabled.current||this.#a()}#s=I(()=>({id:this.opts.id.current,"aria-disabled":Yt(this.opts.disabled.current),"aria-selected":Yt(this.isSelected),"data-disabled":qt(this.opts.disabled.current),"data-selected":qt(this.isSelected),"data-value":this.trueValue,"data-group":this.#e?.trueValue,[Ia.item]:``,role:`option`,onpointermove:this.onpointermove,onclick:this.onclick,...this.attachment}));get props(){return E(this.#s)}set props(e){F(this.#s,e)}},eo=class e{static create(t){return Ua.set(new e(t,Ha.get()))}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref)}#e=I(()=>({id:this.opts.id.current,role:`listbox`,"aria-label":this.opts.ariaLabel.current,[Ia.list]:``,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},to=class e{static create(t){return new e(t,Ha.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref,e=>this.root.labelNode=e)}#e=I(()=>({id:this.opts.id.current,[Ia[`input-label`]]:``,for:this.opts.for?.current,style:rr,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},no=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`]),ro=r(`<label><!></label>`);function io(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,no),c=to.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=I(()=>tn(s,c.props));var d=ro();P(d,()=>({...E(l)}));var f=W(d);_(f,()=>t.children??R),n(d),y(e,d),x()}var ao=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`onStateChange`,`loop`,`shouldFilter`,`filter`,`label`,`vimBindings`,`disablePointerSelection`,`disableInitialScroll`,`columns`,`children`,`child`]),oo=r(`<!> <!>`,1),so=r(`<div><!> <!></div>`);function co(e,t){let r=u();i(t,!0);let a=e=>{io(e,{children:(e,t)=>{oe();var n=C();H(()=>c(n,v())),y(e,n)},$$slots:{default:!0}})},o=k(t,`id`,19,()=>En(r)),s=k(t,`ref`,15,null),l=k(t,`value`,15,``),d=k(t,`onValueChange`,3,Qt),f=k(t,`onStateChange`,3,Qt),p=k(t,`loop`,3,!1),m=k(t,`shouldFilter`,3,!0),g=k(t,`filter`,3,qo),v=k(t,`label`,3,``),b=k(t,`vimBindings`,3,!0),S=k(t,`disablePointerSelection`,3,!1),w=k(t,`disableInitialScroll`,3,!1),T=k(t,`columns`,3,null),D=U(t,ao),O=Ka.create({id:Q(()=>o()),ref:Q(()=>s(),e=>s(e)),filter:Q(()=>g()),shouldFilter:Q(()=>m()),loop:Q(()=>p()),value:Q(()=>l(),e=>{l()!==e&&(l(e),d()(e))}),vimBindings:Q(()=>b()),disablePointerSelection:Q(()=>S()),disableInitialScroll:Q(()=>w()),onStateChange:Q(()=>f()),columns:Q(()=>T())}),A=e=>O.updateSelectedToIndex(e),j=e=>O.updateSelectedByGroup(e),ee=e=>O.updateSelectedByItem(e),te=()=>O.getValidItems(),M=I(()=>tn(D,O.props));var N={updateSelectedToIndex:A,updateSelectedByGroup:j,updateSelectedByItem:ee,getValidItems:te},F=Y(),L=q(F),ne=e=>{var n=oo(),r=q(n);a(r);var i=z(r,2);_(i,()=>t.child,()=>({props:E(M)})),y(e,n)},re=e=>{var r=so();P(r,()=>({...E(M)}));var i=W(r);a(i);var o=z(i,2);_(o,()=>t.children??R),n(r),y(e,r)};return h(L,e=>{t.child?e(ne):e(re,-1)}),y(e,F),x(N)}var lo=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`forceMount`]),uo=r(`<div><!></div>`);function fo(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`forceMount`,3,!1),c=U(t,lo),l=Ja.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),forceMount:Q(()=>s())}),d=I(()=>tn(l.props,c));var f=Y(),p=q(f),m=e=>{var r=Y(),i=q(r),a=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(d)})),y(e,n)},o=e=>{var r=uo();P(r,()=>({...E(d)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(i,e=>{t.child?e(a):e(o,-1)}),y(e,r)};h(p,e=>{l.shouldRender&&e(m)}),y(e,f),x()}var po=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`forceMount`,`children`,`child`]),mo=r(`<div><!></div>`);function ho(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`value`,3,``),c=k(t,`forceMount`,3,!1),l=U(t,po),d=Ya.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),forceMount:Q(()=>c()),value:Q(()=>s())}),f=I(()=>tn(l,d.props));var p=Y(),m=q(p),g=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(f)})),y(e,n)},v=e=>{var r=mo();P(r,()=>({...E(f)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(m,e=>{t.child?e(g):e(v,-1)}),y(e,p),x()}var go=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`]),_o=r(`<div><!></div>`);function vo(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,go),c=Xa.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=_o();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}var yo=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`]),bo=r(`<div><!></div>`),xo=r(`<div style="display: contents;"><!></div>`);function So(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,yo),c=Za.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=I(()=>tn(s,c.props));var d=xo(),f=W(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=bo();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),n(d),y(e,d),x()}var Co=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`autofocus`,`id`,`ref`,`child`]),wo=r(`<input/>`);function To(e,t){let n=u();i(t,!0);let r=k(t,`value`,15,``),a=k(t,`autofocus`,3,!1),o=k(t,`id`,19,()=>En(n)),s=k(t,`ref`,15,null),c=U(t,Co),l=Qa.create({id:Q(()=>o()),ref:Q(()=>s(),e=>s(e)),value:Q(()=>r(),e=>{r(e)}),autofocus:Q(()=>a()??!1)}),d=I(()=>tn(c,l.props));var f=Y(),p=q(f),m=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(d)})),y(e,n)},g=e=>{var t=wo();P(t,()=>({...E(d)}),void 0,void 0,void 0,void 0,!0),N(t,r),y(e,t)};h(p,e=>{t.child?e(m):e(g,-1)}),y(e,f),x()}var Eo=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`disabled`,`children`,`child`,`onSelect`,`forceMount`,`keywords`]),Do=r(`<div><!></div>`),Oo=r(`<div style="display: contents;" data-item-wrapper=""><!></div>`);function ko(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`value`,3,``),c=k(t,`disabled`,3,!1),l=k(t,`onSelect`,3,Qt),d=k(t,`forceMount`,3,!1),f=k(t,`keywords`,19,()=>[]),m=U(t,Eo),g=$a.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),value:Q(()=>s()),disabled:Q(()=>c()),onSelect:Q(()=>l()),forceMount:Q(()=>d()),keywords:Q(()=>f())}),v=I(()=>tn(m,g.props));var b=Y(),S=q(b);p(S,()=>g.root.key,e=>{var r=Oo(),i=W(r),a=e=>{var r=Y(),i=q(r),a=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(v)})),y(e,n)},o=e=>{var r=Do();P(r,()=>({...E(v)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(i,e=>{t.child?e(a):e(o,-1)}),y(e,r)};h(i,e=>{g.shouldRender&&e(a)}),n(r),H(()=>B(r,`data-value`,g.trueValue)),y(e,r)}),y(e,b),x()}var Ao=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`aria-label`]),jo=r(`<div><!></div>`);function Mo(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,Ao),c=eo.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),ariaLabel:Q(()=>t[`aria-label`]??`Suggestions...`)}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d);p(f,()=>c.root._commandState.search===``,e=>{var r=Y(),i=q(r),a=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},o=e=>{var r=jo();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(i,e=>{t.child?e(a):e(o,-1)}),y(e,r)}),y(e,d),x()}var No=1,Po=.9,Fo=.8,Io=.17,Lo=.1,Ro=.999,zo=.9999,Bo=.99,Vo=/[\\/_+.#"@[({&]/,Ho=/[\\/_+.#"@[({&]/g,Uo=/[\s-]/,Wo=/[\s-]/g;function Go(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?No:Bo;let s=`${i},${a}`;if(o[s]!==void 0)return o[s];let c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;for(;l>=0;)d=Go(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=No:Vo.test(e.charAt(l-1))?(d*=Fo,p=e.slice(i,l-1).match(Ho),p&&i>0&&(d*=Ro**p.length)):Uo.test(e.charAt(l-1))?(d*=Po,m=e.slice(i,l-1).match(Wo),m&&i>0&&(d*=Ro**m.length)):(d*=Io,i>0&&(d*=Ro**(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=zo)),(d<Lo&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=Go(e,t,n,r,l+1,a+2,o),f*Lo>d&&(d=f*Lo)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function Ko(e){return e.toLowerCase().replace(Wo,` `)}function qo(e,t,n){return e=n&&n.length>0?`${`${e} ${n?.join(` `)}`}`:e,Go(e,t,Ko(e),Ko(t),0,0,{})}var Jo=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`ref`,`id`,`disabled`,`onSelect`,`closeOnSelect`]),Yo=r(`<div><!></div>`);function Xo(e,t){let r=u();i(t,!0);let a=k(t,`ref`,15,null),o=k(t,`id`,19,()=>En(r)),s=k(t,`disabled`,3,!1),c=k(t,`onSelect`,3,Qt),l=k(t,`closeOnSelect`,3,!0),d=U(t,Jo),f=Tn.create({id:Q(()=>o()),disabled:Q(()=>s()),onSelect:Q(()=>c()),ref:Q(()=>a(),e=>a(e)),closeOnSelect:Q(()=>l())}),p=I(()=>tn(d,f.props));var m=Y(),g=q(m),v=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(p)})),y(e,n)},b=e=>{var r=Yo();P(r,()=>({...E(p)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(g,e=>{t.child?e(v):e(b,-1)}),y(e,m),x()}var Zo=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`id`]),Qo=r(`<div><!></div>`);function $o(e,t){let r=u();i(t,!0);let a=k(t,`ref`,15,null),o=k(t,`id`,19,()=>En(r)),s=U(t,Zo),c=rn.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=Qo();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}var es=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`id`]),ts=r(`<div><!></div>`);function ns(e,t){let r=u();i(t,!0);let a=k(t,`ref`,15,null),o=k(t,`id`,19,()=>En(r)),s=U(t,es),c=un.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=ts();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}var rs=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`id`,`child`,`children`]),is=r(`<div><!></div>`);function as(e,t){let r=u();i(t,!0);let a=k(t,`ref`,15,null),o=k(t,`id`,19,()=>En(r)),s=U(t,rs),c=Dn.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=I(()=>tn(s,c.props));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=is();P(r,()=>({...E(l)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}function os(e,t){i(t,!0);let n=k(t,`open`,15,!1),r=k(t,`dir`,3,`ltr`),a=k(t,`onOpenChange`,3,Qt),o=k(t,`onOpenChangeComplete`,3,Qt),s=k(t,`_internal_variant`,3,`dropdown-menu`),c=k(t,`_internal_should_skip_exit_animation`,3,void 0),l=on.create({variant:Q(()=>s()),dir:Q(()=>r()),onClose:()=>{n(!1),a()(!1)},shouldSkipExitAnimation:()=>c()?.()??!1});On.create({open:Q(()=>n(),e=>{n(e),a()(e)}),onOpenChangeComplete:Q(()=>o())},l),ya(e,{children:(e,n)=>{var r=Y(),i=q(r);_(i,()=>t.children??R),y(e,r)},$$slots:{default:!0}}),x()}var ss=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`child`,`children`,`ref`,`loop`,`onInteractOutside`,`onEscapeKeydown`,`onCloseAutoFocus`,`forceMount`,`trapFocus`,`style`]),cs=r(`<div><div><!></div></div>`);function ls(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`loop`,3,!0),c=k(t,`onInteractOutside`,3,Qt),l=k(t,`onEscapeKeydown`,3,Qt),d=k(t,`onCloseAutoFocus`,3,Qt),f=k(t,`forceMount`,3,!1),p=k(t,`trapFocus`,3,!1),m=U(t,ss),g=dn.create({id:Q(()=>a()),loop:Q(()=>s()),ref:Q(()=>o(),e=>o(e)),onCloseAutoFocus:Q(()=>d())}),v=I(()=>tn(m,g.props));function b(e){if(g.handleInteractOutside(e),!e.defaultPrevented&&(c()(e),!e.defaultPrevented)){if(e.target&&e.target instanceof Element){let t=`[${g.parentMenu.root.getBitsAttr(`sub-content`)}]`;if(e.target.closest(t))return}g.parentMenu.onClose()}}function S(e){l()(e),!e.defaultPrevented&&g.parentMenu.onClose()}var C=Y(),w=q(C),T=e=>{ja(e,K(()=>E(v),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.parentMenu.opts.open.current},onInteractOutside:b,onEscapeKeydown:S,get trapFocus(){return p()},get loop(){return s()},forceMount:!0,get id(){return a()},get shouldRender(){return g.shouldRender},popper:(e,r)=>{let i=()=>(r?.()).props,a=()=>(r?.()).wrapperProps,o=I(()=>tn(i(),{style:aa(`dropdown-menu`)},{style:t.style}));var s=Y(),c=q(s),l=e=>{var n=Y(),r=q(n);{let e=I(()=>({props:E(o),wrapperProps:a(),...g.snippetProps}));_(r,()=>t.child,()=>E(e))}y(e,n)},u=e=>{var r=cs();P(r,()=>({...a()}));var i=W(r);P(i,()=>({...E(o)}));var s=W(i);_(s,()=>t.children??R),n(i),n(r),y(e,r)};h(c,e=>{t.child?e(l):e(u,-1)}),y(e,s)},$$slots:{popper:!0}}))},D=e=>{ka(e,K(()=>E(v),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.parentMenu.opts.open.current},onInteractOutside:b,onEscapeKeydown:S,get trapFocus(){return p()},get loop(){return s()},forceMount:!1,get id(){return a()},get shouldRender(){return g.shouldRender},popper:(e,r)=>{let i=()=>(r?.()).props,a=()=>(r?.()).wrapperProps,o=I(()=>tn(i(),{style:aa(`dropdown-menu`)},{style:t.style}));var s=Y(),c=q(s),l=e=>{var n=Y(),r=q(n);{let e=I(()=>({props:E(o),wrapperProps:a(),...g.snippetProps}));_(r,()=>t.child,()=>E(e))}y(e,n)},u=e=>{var r=cs();P(r,()=>({...a()}));var i=W(r);P(i,()=>({...E(o)}));var s=W(i);_(s,()=>t.children??R),n(i),n(r),y(e,r)};h(c,e=>{t.child?e(l):e(u,-1)}),y(e,s)},$$slots:{popper:!0}}))};h(w,e=>{f()?e(T):f()||e(D,1)}),y(e,C),x()}var us=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`disabled`,`type`]),ds=r(`<button><!></button>`);function fs(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=k(t,`disabled`,3,!1),c=k(t,`type`,3,`button`),l=U(t,us),d=gn.create({id:Q(()=>a()),disabled:Q(()=>s()??!1),ref:Q(()=>o(),e=>o(e))}),f=I(()=>tn(l,d.props,{type:c()}));ba(e,{get id(){return a()},get ref(){return d.opts.ref},children:(e,r)=>{var i=Y(),a=q(i),o=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(f)})),y(e,n)},s=e=>{var r=ds();P(r,()=>({...E(f)}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(a,e=>{t.child?e(o):e(s,-1)}),y(e,i)},$$slots:{default:!0}}),x()}var ps=Bt({component:`label`,parts:[`root`]}),ms=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=Ut(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=I(()=>({id:this.opts.id.current,[ps.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return E(this.#e)}set props(e){F(this.#e,e)}},hs=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),gs=r(`<label><!></label>`);function _s(e,t){let r=u();i(t,!0);let a=k(t,`id`,19,()=>En(r)),o=k(t,`ref`,15,null),s=U(t,hs),c=ms.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=I(()=>tn(s,c.props,{for:t.for}));var d=Y(),f=q(d),p=e=>{var n=Y(),r=q(n);_(r,()=>t.child,()=>({props:E(l)})),y(e,n)},m=e=>{var r=gs();P(r,()=>({...E(l),for:t.for}));var i=W(r);_(i,()=>t.children??R),n(r),y(e,r)};h(f,e=>{t.child?e(p):e(m,-1)}),y(e,d),x()}var vs=class{#e;#t;#n=null;constructor(e,t){this.#t=e,this.#e=t,this.stop=this.stop.bind(this),this.start=this.start.bind(this),It(this.stop)}#r(){this.#n!==null&&(window.clearTimeout(this.#n),this.#n=null)}stop(){this.#r()}start(...e){this.#r(),this.#n=window.setTimeout(()=>{this.#n=null,this.#t(...e)},this.#e)}};Bt({component:`tooltip`,parts:[`content`,`trigger`]});var ys=new $t(`Tooltip.Provider`);new $t(`Tooltip.Root`);var bs=class e{static create(t){return ys.set(new e(t))}opts;#e=V(!0);get isOpenDelayed(){return E(this.#e)}set isOpenDelayed(e){F(this.#e,e,!0)}isPointerInTransit=nn(!1);#t;#n=V(null);constructor(e){this.opts=e,this.#t=new vs(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),ir(()=>G(window,`scroll`,e=>{let t=E(this.#n);if(!t)return;let n=t.triggerNode;if(!n)return;let r=e.target;(r instanceof Element||r instanceof Document)&&r.contains(n)&&t.handleClose()}))}#r=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}this.#t.start()};#i=()=>{this.#t.stop()};onOpen=e=>{E(this.#n)&&E(this.#n)!==e&&E(this.#n).handleClose(),this.#i(),this.isOpenDelayed=!1,F(this.#n,e,!0)};onClose=e=>{E(this.#n)===e&&(F(this.#n,null),this.#r())};isTooltipOpen=e=>E(this.#n)===e};function xs(e,t){i(t,!0);let n=k(t,`delayDuration`,3,700),r=k(t,`disableCloseOnTriggerClick`,3,!1),a=k(t,`disableHoverableContent`,3,!1),o=k(t,`disabled`,3,!1),s=k(t,`ignoreNonKeyboardFocus`,3,!1),c=k(t,`skipDelayDuration`,3,300);bs.create({delayDuration:Q(()=>n()),disableCloseOnTriggerClick:Q(()=>r()),disableHoverableContent:Q(()=>a()),disabled:Q(()=>o()),ignoreNonKeyboardFocus:Q(()=>s()),skipDelayDuration:Q(()=>c())});var l=Y(),u=q(l);_(u,()=>t.children??R),y(e,l),x()}var Ss=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Cs(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,Ss);var o=Y(),s=q(o);{let e=I(()=>Fn(`gap-2 text-xs/relaxed leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,t.class));a(s,()=>_s,(t,i)=>{i(t,K({"data-slot":`label`,get class(){return E(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}y(e,o),x()}var ws=r(`<!> Import workspace`,1),Ts=r(`<!> <!>`,1),Es=r(`<div class="rounded-md border border-destructive/40 bg-destructive/10 p-2.5 text-xs text-destructive"> </div>`),Ds=r(`Display name <span class="text-muted-foreground">(optional)</span>`,1),Os=r(`<!> Import`,1),ks=r(`<!> <!> <div class="space-y-3"><div class="space-y-1.5"><!> <!> <p class="text-[11px] text-muted-foreground">Absolute path to a directory containing skill folders.</p></div> <div class="space-y-1.5"><!> <!></div> <div class="flex justify-end gap-2 pt-1"><!> <!></div></div>`,1);function As(e,t){i(t,!0);let r=V(!1);de(()=>{Ee.open=E(r)}),de(()=>{Ee.open&&F(r,!0)}),de(()=>{E(r)&&(F(o,``),F(s,``),F(u,null))});let o=V(``),s=V(``),l=V(!1),u=V(null);async function d(){if(!E(o).trim()){F(u,`A directory path is required.`);return}F(l,!0),F(u,null);try{let e=await Pt(E(o).trim(),E(s).trim()||void 0);if(!e)return;F(r,!1),await _e(Nt(e))}catch(e){F(u,e instanceof Error?e.message:String(e),!0)}finally{F(l,!1)}}var f=Y(),p=q(f);a(p,()=>Sn,(e,t)=>{t(e,{get open(){return E(r)},set open(e){F(r,e,!0)},children:(e,t)=>{var i=Y(),f=q(i);a(f,()=>fn,(e,t)=>{t(e,{class:`sm:max-w-[460px]`,children:(e,t)=>{var i=ks(),f=q(i);a(f,()=>an,(e,t)=>{t(e,{children:(e,t)=>{var n=Ts(),r=q(n);a(r,()=>vn,(e,t)=>{t(e,{class:`flex items-center gap-2`,children:(e,t)=>{var n=ws(),r=q(n);Vn(r,{class:`h-4 w-4`}),oe(),y(e,n)},$$slots:{default:!0}})});var i=z(r,2);a(i,()=>xn,(e,t)=>{t(e,{children:(e,t)=>{oe();var n=C(`Import a directory as a skill workspace. Its skills will be discovered and managed here.`);y(e,n)},$$slots:{default:!0}})}),y(e,n)},$$slots:{default:!0}})});var p=z(f,2),m=e=>{var t=Es(),n=M(t,!0);H(()=>c(n,E(u))),y(e,t)};h(p,e=>{E(u)&&e(m)});var g=z(p,2),_=W(g),v=W(_);Cs(v,{for:`ws-path`,children:(e,t)=>{oe();var n=C(`Directory path`);y(e,n)},$$slots:{default:!0}});var b=z(v,2);zn(b,{id:`ws-path`,placeholder:`/Users/me/.claude/skills`,class:`font-mono text-xs`,get value(){return E(o)},set value(e){F(o,e,!0)}}),oe(2),n(_);var x=z(_,2),S=W(x);Cs(S,{for:`ws-label`,children:(e,t)=>{oe();var n=Ds();oe(),y(e,n)},$$slots:{default:!0}});var w=z(S,2);zn(w,{id:`ws-label`,placeholder:`My Skills`,get value(){return E(s)},set value(e){F(s,e,!0)}}),n(x);var T=z(x,2),D=W(T);An(D,{variant:`outline`,size:`sm`,onclick:()=>F(r,!1),children:(e,t)=>{oe();var n=C(`Cancel`);y(e,n)},$$slots:{default:!0}});var O=z(D,2);An(O,{size:`sm`,get disabled(){return E(l)},onclick:d,children:(e,t)=>{var n=Os(),r=q(n),i=e=>{jn(e,{class:`h-3.5 w-3.5 animate-spin`})};h(r,e=>{E(l)&&e(i)}),oe(),y(e,n)},$$slots:{default:!0}}),n(T),n(g),y(e,i)},$$slots:{default:!0}})}),y(e,i)},$$slots:{default:!0}})}),y(e,f),x()}var js=new Set([`$$slots`,`$$events`,`$$legacy`,`api`,`ref`,`value`,`class`]);function Ms(e,t){i(t,!0);let n=k(t,`api`,15,null),r=k(t,`ref`,15,null),o=k(t,`value`,15,``),s=U(t,js);var c=Y(),l=q(c);{let e=I(()=>Fn(`bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden`,t.class));a(l,()=>co,(t,i)=>{se(i(t,K({"data-slot":`command`,get class(){return E(e)}},()=>s,{get value(){return o()},set value(e){o(e)},get ref(){return r()},set ref(e){r(e)}})),e=>n(e),()=>n())})}y(e,c),x()}var Ns=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`ref`,`value`,`title`,`description`,`showCloseButton`,`portalProps`,`children`,`class`]),Ps=r(`<!> <!>`,1);function Fs(e,t){i(t,!0);let n=k(t,`open`,15,!1),r=k(t,`ref`,15,null),o=k(t,`value`,15,``),s=k(t,`title`,3,`Command Palette`),l=k(t,`description`,3,`Search for a command to run...`),u=k(t,`showCloseButton`,3,!1),d=U(t,Ns);var f=Y(),p=q(f);a(p,()=>Sn,(e,i)=>{i(e,K(()=>d,{get open(){return n()},set open(e){n(e)},children:(e,n)=>{var i=Ps(),f=q(i);a(f,()=>an,(e,t)=>{t(e,{class:`sr-only`,children:(e,t)=>{var n=Ps(),r=q(n);a(r,()=>vn,(e,t)=>{t(e,{children:(e,t)=>{oe();var n=C();H(()=>c(n,s())),y(e,n)},$$slots:{default:!0}})});var i=z(r,2);a(i,()=>xn,(e,t)=>{t(e,{children:(e,t)=>{oe();var n=C();H(()=>c(n,l())),y(e,n)},$$slots:{default:!0}})}),y(e,n)},$$slots:{default:!0}})});var p=z(f,2);{let e=I(()=>Fn(`rounded-xl! p-0 top-1/3 translate-y-0 overflow-hidden p-0`,t.class));a(p,()=>fn,(n,i)=>{i(n,{get class(){return E(e)},get showCloseButton(){return u()},get portalProps(){return t.portalProps},children:(e,n)=>{Ms(e,K(()=>d,{get children(){return t.children},get value(){return o()},set value(e){o(e)},get ref(){return r()},set ref(e){r(e)}}))},$$slots:{default:!0}})})}y(e,i)},$$slots:{default:!0}}))}),y(e,f),x()}var Is=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Ls(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,Is);var o=Y(),s=q(o);{let e=I(()=>Fn(`py-6 text-center text-xs/relaxed`,t.class));a(s,()=>fo,(t,i)=>{i(t,K({"data-slot":`command-empty`,get class(){return E(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}y(e,o),x()}var Rs=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`heading`,`value`]),zs=r(`<!> <!>`,1);function Bs(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,Rs);var o=Y(),s=q(o);{let e=I(()=>Fn(`text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2.5 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium`,t.class)),i=I(()=>t.value??t.heading??`----${hn()}`);a(s,()=>ho,(o,s)=>{s(o,K({"data-slot":`command-group`,get class(){return E(e)},get value(){return E(i)}},()=>r,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var r=zs(),i=q(r),o=e=>{var n=Y(),r=q(n);a(r,()=>vo,(e,n)=>{n(e,{class:`text-muted-foreground px-2 py-1.5 text-xs font-medium`,children:(e,n)=>{oe();var r=C();H(()=>c(r,t.heading)),y(e,r)},$$slots:{default:!0}})}),y(e,n)};h(i,e=>{t.heading&&e(o)});var s=z(i,2);a(s,()=>So,(e,n)=>{n(e,{get children(){return t.children}})}),y(e,r)},$$slots:{default:!0}}))})}y(e,o),x()}var Vs=new Set([`$$slots`,`$$events`,`$$legacy`]);function Hs(e,t){let n=U(t,Vs),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];be(e,K({name:`check`},()=>n,{get iconNode(){return r}}))}var Us=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ws=r(`<!> <!>`,1);function Gs(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,Us);var o=Y(),s=q(o);{let e=I(()=>Fn(`group/command-item data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,t.class));a(s,()=>ko,(i,a)=>{a(i,K({"data-slot":`command-item`,get class(){return E(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var r=Ws(),i=q(r);_(i,()=>t.children??R),Hs(z(i,2),{class:`cn-command-item-indicator ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100`}),y(e,r)},$$slots:{default:!0}}))})}y(e,o),x()}var Ks=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qs=r(`<div><!></div>`);function Js(e,t){i(t,!0);let r=k(t,`ref`,15,null),a=U(t,Ks);var o=qs();P(o,e=>({"data-slot":`input-group`,role:`group`,class:e,...a}),[()=>Fn(`group/input-group border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot][aria-invalid=true]]:ring-2 has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto`,t.class)]);var s=W(o);_(s,()=>t.children??R),n(o),se(o,e=>r(e),()=>r()),y(e,o),x()}var Ys=Nn({base:`text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-2 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] [&>svg:not([class*='size-'])]:size-3.5 flex cursor-text items-center justify-center select-none`,variants:{align:{"inline-start":`pl-2 has-[>button]:ml-[-0.275rem] has-[>kbd]:ml-[-0.275rem] order-first`,"inline-end":`pr-2 has-[>button]:mr-[-0.275rem] has-[>kbd]:mr-[-0.275rem] order-last`,"block-start":`px-2 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start`,"block-end":`px-2 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start`}},defaultVariants:{align:`inline-start`}}),Xs=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`align`]),Zs=r(`<div><!></div>`);function Qs(e,t){i(t,!0);let r=k(t,`ref`,15,null),a=k(t,`align`,3,`inline-start`),o=U(t,Xs);var s=Zs(),c=e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()};P(s,e=>({role:`group`,"data-slot":`input-group-addon`,"data-align":a(),class:e,onclick:c,...o}),[()=>Fn(Ys({align:a()}),t.class)]);var l=W(s);_(l,()=>t.children??R),n(s),se(s,e=>r(e),()=>r()),y(e,s),x()}Nn({base:`gap-2 rounded-md text-xs/relaxed flex items-center shadow-none`,variants:{size:{xs:`h-5 gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1 [&>svg:not([class*='size-'])]:size-3`,sm:`gap-1`,"icon-xs":`size-6 p-0 has-[>svg]:p-0`,"icon-sm":`size-7 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});var $s=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ec(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=k(t,`value`,15),a=U(t,$s);{let i=I(()=>Fn(`rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1`,t.class));zn(e,K({"data-slot":`input-group-control`,get class(){return E(i)}},()=>a,{get ref(){return n()},set ref(e){n(e)},get value(){return r()},set value(e){r(e)}}))}x()}var tc=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]),nc=r(`<!> <!>`,1),rc=r(`<div data-slot="command-input-wrapper" class="p-1 pb-0"><!></div>`);function ic(e,t){i(t,!0);let r=k(t,`ref`,15,null),o=k(t,`value`,15,``),s=U(t,tc);var c=rc(),l=W(c);a(l,()=>Js,(e,n)=>{n(e,{class:`bg-input/20 dark:bg-input/30 h-8!`,children:(e,n)=>{var i=nc(),c=q(i);{let e=(e,t)=>{let n=()=>(t?.()).props;var i=Y(),s=q(i);a(s,()=>ec,(e,t)=>{t(e,K(n,{get value(){return o()},set value(e){o(e)},get ref(){return r()},set ref(e){r(e)}}))}),y(e,i)},n=I(()=>Fn(`w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50`,t.class));a(c,()=>To,(t,r)=>{r(t,K({get value(){return o()},"data-slot":`command-input`,get class(){return E(n)}},()=>s,{child:e,$$slots:{child:!0}}))})}var l=z(c,2);a(l,()=>Qs,(e,t)=>{t(e,{children:(e,t)=>{Un(e,{class:`size-3.5 shrink-0 opacity-50`})},$$slots:{default:!0}})}),y(e,i)},$$slots:{default:!0}})}),n(c),y(e,c),x()}var ac=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oc(e,t){i(t,!0);let n=k(t,`ref`,15,null),r=U(t,ac);var o=Y(),s=q(o);{let e=I(()=>Fn(`no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto`,t.class));a(s,()=>Mo,(t,i)=>{i(t,K({"data-slot":`command-list`,get class(){return E(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}y(e,o),x()}var sc=new Set([`$$slots`,`$$events`,`$$legacy`]);function cc(e,t){let n=U(t,sc),r=[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M14 19h6`}],[`path`,{d:`M17 16v6`}]];be(e,K({name:`file-plus-corner`},()=>n,{get iconNode(){return r}}))}var lc=new Set([`$$slots`,`$$events`,`$$legacy`]);function uc(e,t){let n=U(t,lc),r=[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`}]];be(e,K({name:`layout-grid`},()=>n,{get iconNode(){return r}}))}var dc=r(`<!> Workspaces`,1),fc=r(`<!> Creator`,1),pc=r(`<!> Repository`,1),mc=r(`<!> <!> <!>`,1),hc=r(`<!> <span class="flex-1 truncate"> </span> <span class="text-[10px] tabular-nums text-muted-foreground"> </span>`,1),gc=r(`<!> <!>`,1);function _c(e,n){i(n,!0);let r=V(!1);de(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),F(r,!E(r)))};return globalThis.addEventListener(`keydown`,e),()=>globalThis.removeEventListener(`keydown`,e)});function o(e){F(r,!1),e()}var s=Y(),l=q(s);a(l,()=>Fs,(e,n)=>{n(e,{get open(){return E(r)},set open(e){F(r,e,!0)},children:(e,n)=>{var r=gc(),i=q(r);a(i,()=>ic,(e,t)=>{t(e,{placeholder:`Search navigation and workspaces…`})});var s=z(i,2);a(s,()=>oc,(e,n)=>{n(e,{children:(e,n)=>{var r=mc(),i=q(r);a(i,()=>Ls,(e,t)=>{t(e,{children:(e,t)=>{oe();var n=C(`No matching destination.`);y(e,n)},$$slots:{default:!0}})});var s=z(i,2);a(s,()=>Bs,(e,t)=>{t(e,{heading:`Navigate`,children:(e,t)=>{var n=mc(),r=q(n);a(r,()=>Gs,(e,t)=>{t(e,{onSelect:()=>o(()=>_e(`/workspaces`)),value:`go workspaces manage locations`,children:(e,t)=>{var n=dc();uc(q(n),{class:`h-4 w-4`}),oe(),y(e,n)},$$slots:{default:!0}})});var i=z(r,2);a(i,()=>Gs,(e,t)=>{t(e,{onSelect:()=>o(()=>_e(`/creator`)),value:`go creator new skill`,children:(e,t)=>{var n=fc();cc(q(n),{class:`h-4 w-4`}),oe(),y(e,n)},$$slots:{default:!0}})});var s=z(i,2);a(s,()=>Gs,(e,t)=>{t(e,{onSelect:()=>o(()=>_e(`/repository`)),value:`go repository browse remote`,children:(e,t)=>{var n=pc(),r=q(n);Te(r,{class:`h-4 w-4`}),oe(),y(e,n)},$$slots:{default:!0}})}),y(e,n)},$$slots:{default:!0}})});var l=z(s,2),u=e=>{var n=Y(),r=q(n);a(r,()=>Bs,(e,n)=>{n(e,{heading:`Workspaces`,children:(e,n)=>{var r=Y(),i=q(r);t(i,17,()=>jt.workspaces,e=>e.id,(e,t)=>{var n=Y(),r=q(n);{let e=I(()=>`workspace ${E(t).label} ${E(t).path}`);a(r,()=>Gs,(n,r)=>{r(n,{get value(){return E(e)},onSelect:()=>o(()=>_e(Nt(E(t)))),children:(e,n)=>{var r=hc(),i=q(r);Vn(i,{class:`h-4 w-4`});var a=z(i,2),o=M(a,!0),s=z(a,2),l=M(s,!0);H(()=>{c(o,E(t).label),c(l,E(t).skillCount??0)}),y(e,r)},$$slots:{default:!0}})})}y(e,n)}),y(e,r)},$$slots:{default:!0}})}),y(e,n)};h(l,e=>{jt.workspaces.length>0&&e(u)}),y(e,r)},$$slots:{default:!0}})}),y(e,r)},$$slots:{default:!0}})}),y(e,s),x()}var vc=r(`<button class="text-xs font-medium text-primary hover:underline"> </button>`),yc=r(`<div class="pointer-events-auto flex items-center gap-3 rounded-md border border-border bg-popover px-4 py-2.5 text-sm"><span class="flex-1 text-foreground"> </span> <!> <button class="text-muted-foreground hover:text-foreground" aria-label="Dismiss notification" title="Dismiss notification"><!></button></div>`),bc=r(`<div class="pointer-events-none fixed bottom-4 right-4 z-50 flex flex-col gap-2" aria-live="polite" aria-relevant="additions text"></div>`);function xc(e,r){i(r,!1),te();var a=bc();t(a,5,()=>Pn,e=>e.id,(e,t)=>{var r=yc(),i=W(r),a=M(i,!0),o=z(i,2),s=e=>{var n=vc(),r=M(n,!0);H(()=>c(r,E(t).action.label)),l(`click`,n,()=>{E(t).action.run(),In(E(t).id)}),y(e,n)};h(o,e=>{E(t).action&&e(s)});var u=z(o,2),d=W(u);Ln(d,{class:`h-3.5 w-3.5`}),n(u),n(r),H(()=>c(a,E(t).message)),l(`click`,u,()=>In(E(t).id)),y(e,r)}),n(a),y(e,a),x()}T([`click`]);var Sc=new Set([`$$slots`,`$$events`,`$$legacy`,`delayDuration`]);function Cc(e,t){let n=k(t,`delayDuration`,3,0),r=U(t,Sc);var i=Y(),o=q(i);a(o,()=>xs,(e,t)=>{t(e,K({get delayDuration(){return n()}},()=>r))}),y(e,i)}var wc=()=>navigator.opentrayWindow??navigator.opentray?.window??void 0,Tc={width:960,height:680},Ec={width:1100,height:760};async function Dc(e){let t=wc();if(t?.resizeTo&&t.getBounds)try{let n=await t.getBounds(),r=Math.max(n.width,e.width),i=Math.max(n.height,e.height);if(r===n.width&&i===n.height)return;await t.resizeTo(r,i)}catch{}}var Oc=new Set([`$$slots`,`$$events`,`$$legacy`]);function kc(e,t){let n=U(t,Oc),r=[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`}]];be(e,K({name:`command`},()=>n,{get iconNode(){return r}}))}var Ac=new Set([`$$slots`,`$$events`,`$$legacy`]);function jc(e,t){let n=U(t,Ac),r=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];be(e,K({name:`settings`},()=>n,{get iconNode(){return r}}))}var Mc=r(`<option>New session…</option>`),Nc=r(`<option>No sessions</option>`),Pc=r(`<option> </option>`),Fc=r(`<button type="button" class="relative flex h-8 w-8 items-center justify-center rounded text-muted-foreground transition-colors after:absolute after:-inset-1.5 after:content-[''] hover:bg-muted hover:text-foreground" title="New session" aria-label="New session"><!></button>`),Ic=r(`<header class="flex h-10 shrink-0 items-center gap-1 border-b border-border px-2"><span class="px-1 text-xs font-medium text-muted-foreground">Agent</span> <select class="h-8 min-w-0 flex-1 rounded-md border border-border bg-transparent px-2 py-0 text-xs" aria-label="Session"><!><!><!></select> <!> <button type="button" class="relative flex h-8 w-8 items-center justify-center rounded text-muted-foreground transition-colors after:absolute after:-inset-1.5 after:content-[''] hover:bg-muted hover:text-foreground" title="Close panel" aria-label="Close panel"><!></button></header>`);function Lc(e,r){i(r,!0);let a=I(()=>{let e=Me.sessions.find(e=>e.sessionId===Re.sessionId);return e?`${e.title||e.sessionId} (${e.status})`:void 0});var o=Ic(),s=z(W(o),2),u=W(s),d=e=>{var t=Mc();t.value=t.__value=``,y(e,t)};h(u,e=>{Re.sessionId===null&&e(d)});var f=z(u),p=e=>{var t=Nc();t.value=t.__value=``,y(e,t)};h(f,e=>{Me.sessions.length===0&&Re.sessionId!==null&&e(p)});var m=z(f);t(m,17,()=>Me.sessions,e=>e.sessionId,(e,t)=>{var n=Pc(),r=M(n),i={};H(e=>{c(r,`${e??``}
|
|
3
3
|
${E(t).status===`disposed`?`· ended`:`· ${E(t).status}`}`),i!==(i=E(t).sessionId)&&(n.value=(n.__value=i)??``)},[()=>E(t).title||E(t).sessionId.slice(0,14)]),y(e,n)}),n(s);var g;pe(s);var _=z(s,2),v=e=>{var t=Fc(),r=W(t);Hn(r,{class:`h-4 w-4`}),n(t),l(`click`,t,()=>Ke()),y(e,t)};h(_,e=>{Re.sessionId&&e(v)});var b=z(_,2),S=W(b);Ln(S,{class:`h-4 w-4`}),n(b),n(o),H(()=>{B(s,`title`,E(a)),g!==(g=Re.sessionId??``)&&(s.value=(s.__value=g)??``,ge(s,g))}),l(`change`,s,e=>He(e.currentTarget.value)),l(`click`,b,()=>je(!1)),y(e,o),x()}T([`change`,`click`]);var Rc=new Set([`$$slots`,`$$events`,`$$legacy`]);function zc(e,t){let n=U(t,Rc),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`}]];be(e,K({name:`copy`},()=>n,{get iconNode(){return r}}))}var Bc=new Set([`$$slots`,`$$events`,`$$legacy`]);function Vc(e,t){let n=U(t,Bc),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`}]];be(e,K({name:`file`},()=>n,{get iconNode(){return r}}))}var Hc=new Set([`$$slots`,`$$events`,`$$legacy`]);function Uc(e,t){let n=U(t,Hc),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}]];be(e,K({name:`image`},()=>n,{get iconNode(){return r}}))}var Wc=new Set([`$$slots`,`$$events`,`$$legacy`]);function Gc(e,t){let n=U(t,Wc),r=[[`path`,{d:`M12 5v14`}],[`path`,{d:`m19 12-7 7-7-7`}]];be(e,K({name:`arrow-down`},()=>n,{get iconNode(){return r}}))}var Kc=r(`<div class="text-[11px] font-medium text-muted-foreground"> </div>`),qc=r(`<div class="whitespace-pre-wrap text-[11px] text-muted-foreground"> </div>`),Jc=r(`<span class="block text-[10px] text-muted-foreground"> </span>`),Yc=r(`<button> <!></button>`),Xc=r(`<div class="flex flex-wrap gap-1.5"></div>`),Zc=r(`<div class="mb-2 space-y-1.5"><!> <div class="whitespace-pre-wrap"> </div> <!> <!> <!></div>`),Qc=r(`<div class="flex justify-end"><!></div>`),$c=r(`<div class="rounded-lg border border-amber-500/40 bg-amber-500/5 px-3 py-2.5 text-xs" role="group"><div class="mb-2 flex items-center gap-1.5 font-medium text-amber-600 dark:text-amber-400"> </div> <!> <!></div>`);function el(e,r){i(r,!0);let a=fe({}),o=fe({});function s(e,t){let n=a[e.id]??[];e.multiSelect?a[e.id]=n.includes(t)?n.filter(e=>e!==t):[...n,t]:a[e.id]=n.includes(t)?[]:[t]}function u(){return r.questions.every(e=>(a[e.id]??[]).length>0||(o[e.id]??``).trim().length>0)}function d(){We(r.seq,r.questions.map(e=>({id:e.id,selected:a[e.id]??[],custom:(o[e.id]??``).trim()||void 0})))}var f=$c(),p=W(f),m=M(p,!0),g=z(p,2);t(g,17,()=>r.questions,e=>e.id,(e,i)=>{var u=Zc(),d=W(u),f=e=>{var t=Kc(),n=M(t,!0);H(()=>c(n,E(i).header)),y(e,t)};h(d,e=>{E(i).header&&e(f)});var p=z(d,2),m=M(p,!0),g=z(p,2),_=e=>{var t=qc(),n=M(t,!0);H(()=>c(n,E(i).detail)),y(e,t)};h(g,e=>{E(i).detail&&e(_)});var v=z(g,2),b=e=>{var o=Xc();t(o,21,()=>E(i).options,e=>e.label,(e,t)=>{var o=Yc(),u=W(o),d=z(u),f=e=>{var n=Jc(),r=M(n,!0);H(()=>c(r,E(t).description)),y(e,n)};h(d,e=>{E(t).description&&e(f)}),n(o),H((e,n)=>{J(o,1,`rounded-md border px-2 py-1 transition-colors ${e??``}`),o.disabled=r.resolved,B(o,`aria-pressed`,n),c(u,`${E(t).label??``} `)},[()=>(a[E(i).id]??[]).includes(E(t).label)?`border-primary bg-primary/10 text-primary`:`border-border hover:bg-muted`,()=>(a[E(i).id]??[]).includes(E(t).label)]),l(`click`,o,()=>s(E(i),E(t).label)),y(e,o)}),n(o),y(e,o)};h(v,e=>{E(i).options&&E(i).options.length>0&&e(b)});var x=z(v,2);{let e=I(()=>o[E(i).id]??``);zn(x,{placeholder:`Custom answer (optional)`,get disabled(){return r.resolved},get value(){return E(e)},onchange:e=>o[E(i).id]=e.currentTarget.value,class:`h-7 text-xs`,get"aria-label"(){return`Custom answer for ${E(i).question??``}`}})}n(u),H(()=>c(m,E(i).question)),y(e,u)});var _=z(g,2),v=e=>{var t=Qc(),r=W(t);{let e=I(()=>!u());An(r,{size:`sm`,get disabled(){return E(e)},onclick:d,children:(e,t)=>{oe();var n=C(`Submit answer`);y(e,n)},$$slots:{default:!0}})}n(t),y(e,t)};h(_,e=>{r.resolved||e(v)}),n(f),H(()=>{B(f,`aria-label`,r.resolved?`Answered question`:`Pending question`),c(m,r.resolved?`Answered`:`Your decision`)}),y(e,f),x()}T([`click`]);var tl=new Set([`$$slots`,`$$events`,`$$legacy`]);function nl(e,t){let n=U(t,tl),r=[[`path`,{d:`M12 19h8`}],[`path`,{d:`m4 17 6-6-6-6`}]];be(e,K({name:`terminal`},()=>n,{get iconNode(){return r}}))}var rl=new Set([`$$slots`,`$$events`,`$$legacy`]);function il(e,t){let n=U(t,rl),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`}]];be(e,K({name:`wrench`},()=>n,{get iconNode(){return r}}))}var al=r(`<span class="h-1.5 w-1.5 shrink-0 rounded-full bg-destructive" title="Tool error" aria-label="Tool error"></span>`),ol=r(`<button type="button" class="disclosure-row"><span class="flex items-center justify-center text-muted-foreground" aria-hidden="true"><!></span> <span class="flex items-center gap-1 overflow-hidden"><span class="max-w-40 truncate text-left font-medium text-foreground"> </span> <!></span> <span class="text-center text-muted-foreground/70" aria-hidden="true">·</span> <span> </span> <!></button>`);function sl(e,t){i(t,!0);let r=k(t,`summary`,3,``),o=k(t,`open`,3,!1),s=k(t,`running`,3,!1),u=k(t,`error`,3,!1);var d=ol(),f=W(d),p=W(f);a(p,()=>t.icon,(e,t)=>{t(e,{class:`h-3.5 w-3.5`})}),n(f);var m=z(f,2),g=W(m),_=M(g,!0),v=z(g,2),b=e=>{var t=al();y(e,t)};h(v,e=>{u()&&e(b)}),n(m);var S=z(m,4),C=M(S,!0),w=z(S,2);qn(w,{class:`disclosure-chevron h-3.5 w-3.5 shrink-0 text-muted-foreground`}),n(d),H(()=>{B(d,`data-open`,o()),B(d,`aria-expanded`,o()),B(d,`title`,r().length>0?`${t.title} · ${r()}`:t.title),c(_,t.title),J(S,1,`disclosure-summary ${s()?`sweep`:``}`),c(C,r())}),l(`click`,d,function(...e){t.onToggle?.apply(this,e)}),y(e,d),x()}T([`click`]);var cl=r(`<iframe sandbox="allow-scripts"></iframe>`),ll=r(`<div class="px-3 py-2 text-[11px] text-muted-foreground"> </div>`),ul=r(`<div class="px-3 py-2 text-[11px] text-muted-foreground" role="status">Loading card…</div>`),dl=r(`<div class="my-1 overflow-hidden rounded-lg border border-border"><!></div>`);function fl(e,t){i(t,!0);let r=V(null),a=V(!1),o=V(null),s=V(null);de(()=>{let e=t.resourceUri;F(r,null),F(a,!1),Tt().agent.card.get({uri:e}).then(e=>{if(e.html===null){F(a,!0);return}F(r,e.html,!0)}).catch(()=>{F(a,!0)})});function l(e){let t=e.data;if(typeof t==`object`&&t&&t.source===`skill-creator-card`&&E(s)!==null&&e.source===E(s).contentWindow){if(t.type===`ui/navigate`&&typeof t.intent==`string`&&t.intent.startsWith(`/`)&&!t.intent.startsWith(`//`)){_e(t.intent);return}if(t.type===`ui/resize`){let e=Number(t.height);Number.isFinite(e)&&e>0&&F(o,Math.min(400,Math.max(40,Math.ceil(e))),!0)}}}function u(e,t){return e.srcdoc=t,{update(t){e.srcdoc=t}}}var p=dl();f(`message`,A,l);var m=W(p),g=e=>{var n=cl();se(n,e=>F(s,e),()=>E(s)),me(n,(e,t)=>u?.(e,t),()=>E(r)),H(()=>{B(n,`title`,t.title),J(n,1,`w-full border-0 bg-transparent ${E(o)===null?`h-44`:``}`),j(n,E(o)===null?void 0:`height:${E(o)}px`)}),d(n),y(e,n)},_=e=>{var n=ll(),r=M(n);H(()=>c(r,`Card unavailable: ${t.title??``}`)),y(e,n)},v=e=>{var t=ul();y(e,t)};h(m,e=>{E(r)===null?E(a)?e(_,1):e(v,-1):e(g)}),n(p),H(()=>B(p,`data-card-uri`,t.resourceUri)),y(e,p),x()}var pl=r(`<div class="mt-2 flex justify-end gap-1.5"><!> <!></div>`),ml=r(`<div class="rounded-lg border border-amber-500/40 bg-amber-500/5 px-3 py-2.5 text-xs" role="group" aria-label="Mutation proposal"><div class="mb-1.5 flex items-center gap-1.5 font-medium text-amber-600 dark:text-amber-400"> </div> <div class="font-mono text-[11px]"> </div> <pre class="mt-1 max-h-32 overflow-auto rounded bg-muted/40 p-1.5 font-mono text-[10px] whitespace-pre-wrap"> </pre> <!></div>`);function hl(e,t){i(t,!0);let r=V(!1),a=V(null),o=I(()=>E(a)??t.status),s=I(()=>{try{return JSON.stringify(t.input,null,2)}catch{return String(t.input)}});async function l(e){F(r,!0);try{let n=Tt(),r=e===`approve`?await n.agent.proposals.approve({proposalId:t.proposalId}):await n.agent.proposals.reject({proposalId:t.proposalId});F(a,r.proposal.status,!0),Mn(e===`approve`?E(o)===`executed`?`Proposal executed: ${t.capability}`:`Proposal failed: ${t.capability}`:`Proposal rejected: ${t.capability}`)}catch(e){Mn(e instanceof Error?e.message:String(e))}finally{F(r,!1)}}var u=ml(),d=W(u),f=M(d),p=z(d,2),m=M(p,!0),g=z(p,2),_=M(g,!0),v=z(g,2),b=e=>{var t=pl(),i=W(t);An(i,{size:`sm`,variant:`outline`,get disabled(){return E(r)},onclick:()=>void l(`reject`),children:(e,t)=>{oe();var n=C(`Reject`);y(e,n)},$$slots:{default:!0}});var a=z(i,2);An(a,{size:`sm`,get disabled(){return E(r)},onclick:()=>void l(`approve`),children:(e,t)=>{oe();var n=C(`Approve`);y(e,n)},$$slots:{default:!0}}),n(t),y(e,t)};h(v,e=>{E(o)===`pending`&&e(b)}),n(u),H(()=>{c(f,`Proposal — ${E(o)??``}`),c(m,t.capability),c(_,E(s))}),y(e,u),x()}var gl=lt(dt(),st()),_l=bt([dt(),ut({content:ct(ut({text:dt().optional()}).loose()).optional()}).loose(),lt(dt(),st())]),vl=ut({kind:pt(`proposed`),proposalId:dt().min(1),capability:dt().optional(),status:dt().optional()}),yl=ut({uiCard:ut({resourceUri:dt().min(1),title:dt().optional()})}),bl=ut({content:ct(st()).optional()}),xl=ut({text:dt().optional()}),Sl=ut({status:dt().optional()}),Cl=ut({error:dt().min(1).optional()});function wl(e){if(e===void 0||e.length===0)return null;try{let t=JSON.parse(e),n=gl.safeParse(t);return n.success?n.data:null}catch{let t={};for(let n of[`command`,`description`,`file_path`,`path`,`pattern`,`url`,`query`]){let r=e.match(RegExp(`"${n}"\\s*:\\s*"((?:[^"\\\\]|\\\\.)*)"`))??e.match(RegExp(`"${n}"\\s*:\\s*"((?:[^"\\\\]|\\.)*)$`));r&&(t[n]=r[1])}return Object.keys(t).length>0?t:null}}function Tl(e){if(e===void 0)return``;let t=_l.safeParse(e);if(t.success){let e=t.data;if(typeof e==`string`)return e;if(Array.isArray(e.content)){let t=[];for(let n of e.content)typeof n.text==`string`&&t.push(n.text);if(t.length>0)return t.join(`
|
|
4
4
|
`)}}try{return JSON.stringify(e,null,2)??``}catch{return String(e)}}function El(e,t){if(e===void 0)return null;let n=vl.safeParse(e);return n.success?{proposalId:n.data.proposalId,capability:n.data.capability??t,status:n.data.status??`pending`}:null}function Dl(e){if(e===void 0)return null;let t=[e],n=bl.safeParse(e);if(n.success&&n.data.content!==void 0)for(let e of n.data.content){let n=xl.safeParse(e);n.success&&typeof n.data.text==`string`&&t.push(n.data.text)}for(let e of t)if(typeof e==`string`)try{let t=JSON.parse(e),n=yl.safeParse(t);if(n.success)return{resourceUri:n.data.uiCard.resourceUri,title:n.data.uiCard.title??`Card`}}catch{}return null}function Ol(e){if(!Array.isArray(e))return null;let t=0;for(let n of e){let e=Sl.safeParse(n);e.success&&e.data.status===`completed`&&(t+=1)}let n=e.length;return`${n} todo${n===1?``:`s`} · ${t} done`}function kl(e,t){let n=Cl.safeParse(e);if(n.success&&n.data.error!==void 0)return(n.data.error.split(`
|
|
5
5
|
`,1)[0]??``).trim();let r=(t.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Ct as t,F as n,R as r,St as i,ct as a,lt as o,nt as s,st as c}from"../chunks/CmCJ0SKP.js";import"../chunks/xihTtKlq.js";import{t as l}from"../chunks/
|
|
1
|
+
import{B as e,Ct as t,F as n,R as r,St as i,ct as a,lt as o,nt as s,st as c}from"../chunks/CmCJ0SKP.js";import"../chunks/xihTtKlq.js";import{t as l}from"../chunks/CsaIfA9E.js";var u=e(`<h1> </h1> <p> </p>`,1);function d(e,d){t(d,!0);var f=u(),p=c(f),m=a(p,!0),h=o(p,2),g=a(h,!0);s(()=>{n(m,l.status),n(g,l.error?.message)}),r(e,f),i()}export{d as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Ct as t,R as n,St as r,c as i,r as a}from"../chunks/CmCJ0SKP.js";import{t as o}from"../chunks/
|
|
1
|
+
import{B as e,Ct as t,R as n,St as r,c as i,r as a}from"../chunks/CmCJ0SKP.js";import{t as o}from"../chunks/JcDjicYT.js";import"../chunks/xihTtKlq.js";import"../chunks/BZ2Jwl6O.js";import"../chunks/DZ_Kltd5.js";var s=e(`<div class="flex h-full items-center justify-center text-sm text-muted-foreground" role="status">Opening Skill Creator…</div>`);function c(e,c){t(c,!1),a(()=>{o(`/workspaces`,{replaceState:!0})}),i();var l=s();n(e,l),r()}export{c as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1789407157689"}
|
package/dist/webui/index.html
CHANGED
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
<meta charset="utf-8" />
|
|
9
9
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
10
10
|
<meta name="text-scale" content="scale" />
|
|
11
|
-
<link href="/_app/immutable/entry/start.
|
|
12
|
-
<link href="/_app/immutable/chunks/
|
|
11
|
+
<link href="/_app/immutable/entry/start.uEYh5tXy.js" rel="modulepreload">
|
|
12
|
+
<link href="/_app/immutable/chunks/JcDjicYT.js" rel="modulepreload">
|
|
13
13
|
<link href="/_app/immutable/chunks/CmCJ0SKP.js" rel="modulepreload">
|
|
14
|
-
<link href="/_app/immutable/entry/app.
|
|
14
|
+
<link href="/_app/immutable/entry/app.BisiObvX.js" rel="modulepreload">
|
|
15
15
|
<link href="/_app/immutable/chunks/HclGiUj8.js" rel="modulepreload">
|
|
16
16
|
<link href="/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
|
|
17
|
-
<link href="/_app/immutable/nodes/0.
|
|
18
|
-
<link href="/_app/immutable/chunks/
|
|
19
|
-
<link href="/_app/immutable/chunks/
|
|
17
|
+
<link href="/_app/immutable/nodes/0.C8yGM2gr.js" rel="modulepreload">
|
|
18
|
+
<link href="/_app/immutable/chunks/CsaIfA9E.js" rel="modulepreload">
|
|
19
|
+
<link href="/_app/immutable/chunks/BZ2Jwl6O.js" rel="modulepreload">
|
|
20
20
|
<link href="/_app/immutable/chunks/BkEnd9_Z.js" rel="modulepreload">
|
|
21
|
-
<link href="/_app/immutable/chunks/
|
|
22
|
-
<link href="/_app/immutable/chunks/
|
|
21
|
+
<link href="/_app/immutable/chunks/O2CEZ91h.js" rel="modulepreload">
|
|
22
|
+
<link href="/_app/immutable/chunks/BoMQFGOq.js" rel="modulepreload">
|
|
23
23
|
<link href="/_app/immutable/chunks/CNPsST_i.js" rel="modulepreload">
|
|
24
|
-
<link href="/_app/immutable/chunks/
|
|
25
|
-
<link href="/_app/immutable/chunks/
|
|
26
|
-
<link href="/_app/immutable/chunks/
|
|
24
|
+
<link href="/_app/immutable/chunks/CqzSRtkf.js" rel="modulepreload">
|
|
25
|
+
<link href="/_app/immutable/chunks/Bg2k7op5.js" rel="modulepreload">
|
|
26
|
+
<link href="/_app/immutable/chunks/FuwccWbx.js" rel="modulepreload">
|
|
27
27
|
<link href="/_app/immutable/chunks/Dl8eQ129.js" rel="modulepreload">
|
|
28
28
|
<link href="/_app/immutable/chunks/BEPs9Z9s.js" rel="modulepreload">
|
|
29
29
|
<link href="/_app/immutable/chunks/Bs27XW8_.js" rel="modulepreload">
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
<div style="display: contents">
|
|
44
44
|
<script>
|
|
45
45
|
{
|
|
46
|
-
|
|
46
|
+
__sveltekit_7x2t3p = {
|
|
47
47
|
base: ""
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
const element = document.currentScript.parentElement;
|
|
51
51
|
|
|
52
52
|
Promise.all([
|
|
53
|
-
import("/_app/immutable/entry/start.
|
|
54
|
-
import("/_app/immutable/entry/app.
|
|
53
|
+
import("/_app/immutable/entry/start.uEYh5tXy.js"),
|
|
54
|
+
import("/_app/immutable/entry/app.BisiObvX.js")
|
|
55
55
|
]).then(([kit, app]) => {
|
|
56
56
|
kit.start(app, element);
|
|
57
57
|
});
|