scrum-skills 0.1.2 → 0.2.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.
Files changed (49) hide show
  1. package/.agents/skills/scrum-planning/SKILL.md +10 -4
  2. package/.agents/skills/scrum-planning/references/schema.md +141 -60
  3. package/.agents/skills/scrum-report/SKILL.md +8 -4
  4. package/.agents/skills/scrum-sprint/SKILL.md +8 -3
  5. package/.agents/skills/scrum-tdd/SKILL.md +3 -3
  6. package/LICENSE +21 -0
  7. package/README.md +132 -0
  8. package/assets/board/200.html +1 -0
  9. package/assets/board/404.html +1 -0
  10. package/assets/board/_nuxt/4lorSwrA.js +1 -0
  11. package/assets/board/_nuxt/7WA2NiBu.js +1 -0
  12. package/assets/board/_nuxt/BMkghBSN.js +6 -0
  13. package/assets/board/_nuxt/BO7jzDkR.js +1 -0
  14. package/assets/board/_nuxt/BZ3zxHIj.js +1 -0
  15. package/assets/board/_nuxt/BhF-44v-.js +13 -0
  16. package/assets/board/_nuxt/Brv_Bdja.js +3 -0
  17. package/assets/board/_nuxt/C3UUYAQd.js +1 -0
  18. package/assets/board/_nuxt/CJAcsUQO.js +3 -0
  19. package/assets/board/_nuxt/CNsYxQaQ.js +1 -0
  20. package/assets/board/_nuxt/CRaaiMq0.js +1 -0
  21. package/assets/board/_nuxt/CW444i7s.js +1 -0
  22. package/assets/board/_nuxt/CfONUjDo.js +1 -0
  23. package/assets/board/_nuxt/DK3Fl9T5.js +1 -0
  24. package/assets/board/_nuxt/DKNZ_ohS.js +1 -0
  25. package/assets/board/_nuxt/DuWpPgcw.js +3 -0
  26. package/assets/board/_nuxt/LjrS__tx.js +1 -0
  27. package/assets/board/_nuxt/_id_.DhbZaLbc.css +1 -0
  28. package/assets/board/_nuxt/builds/latest.json +1 -0
  29. package/assets/board/_nuxt/builds/meta/2c1d27b2-e682-4213-b9a1-85509dcba982.json +1 -0
  30. package/assets/board/_nuxt/burndown.BENzf335.css +1 -0
  31. package/assets/board/_nuxt/entry.CRMqPpqu.css +2 -0
  32. package/assets/board/_nuxt/epics.BeC881O2.css +1 -0
  33. package/assets/board/_nuxt/error-404.BFmXOnCT.css +1 -0
  34. package/assets/board/_nuxt/error-500.BZ-DdjQ6.css +1 -0
  35. package/assets/board/_nuxt/gantt.B1Ztrpq6.css +1 -0
  36. package/assets/board/_nuxt/laFvd4Y3.js +16 -0
  37. package/assets/board/_nuxt/milestones.B2QTaR0Y.css +1 -0
  38. package/assets/board/_nuxt/pages.DuMz_V7L.css +1 -0
  39. package/assets/board/burndown/index.html +1 -0
  40. package/assets/board/epics/index.html +1 -0
  41. package/assets/board/gantt/index.html +1 -0
  42. package/assets/board/index.html +1 -0
  43. package/assets/board/milestones/index.html +1 -0
  44. package/bin/scrum-skills.mjs +17 -5
  45. package/docs/board.png +0 -0
  46. package/package.json +24 -3
  47. package/templates/AGENTS.md +25 -11
  48. package/tools/serve.mjs +88 -143
  49. package/tools/validate.mjs +319 -109
@@ -0,0 +1 @@
1
+ import{t as e}from"./DK3Fl9T5.js";import{$ as t,$n as n,$t as r,A as i,An as a,At as o,B as s,Bn as c,Bt as l,Cn as u,Ct as d,Dn as f,Dr as p,Dt as m,En as h,Er as g,Et as _,F as v,Fn as y,Ft as b,G as x,Gn as S,Gt as C,H as w,Hn as T,Ht as E,I as D,In as O,It as k,J as A,Jn as j,Jt as M,K as N,Kn as ee,Kt as te,L as P,Ln as F,Lt as I,M as ne,Mn as L,Mt as re,N as R,Nn as ie,Nt as ae,O as oe,On as se,Or as ce,Ot as z,P as le,Pn as ue,Pt as de,Q as fe,Qn as pe,Qt as me,R as B,Rn as he,Rt as ge,Sn as _e,St as ve,Tn as ye,Tt as be,U as V,Un as xe,Ut as Se,V as Ce,Vn as we,Vt as H,W as Te,Wn as Ee,Wt as De,X as Oe,Xn as ke,Xt as Ae,Y as je,Yn as Me,Yt as Ne,Z as U,Zn as Pe,Zt as Fe,_n as Ie,_t as Le,an as Re,ar as ze,at as Be,bn as W,bt as Ve,cn as He,ct as Ue,dn as We,dt as Ge,en as Ke,er as qe,et as G,fn as Je,ft as Ye,gn as Xe,gt as Ze,hn as K,ht as Qe,in as $e,ir as et,it as tt,j as nt,jn as rt,jt as it,k as at,kn as ot,kr as st,kt as ct,ln as lt,lt as ut,mn as dt,mt as ft,nn as pt,nt as q,on as mt,ot as ht,pn as gt,pt as _t,q as J,qn as vt,qt as yt,rn as bt,rt as xt,sn as St,st as Ct,tn as wt,tr as Y,tt as Tt,un as Et,ut as Dt,vn as Ot,vt as kt,wn as At,wr as X,wt as jt,xn as Mt,xt as Nt,yn as Pt,yt as Ft,z as It,zn as Lt,zt as Rt}from"./DuWpPgcw.js";import{$t as zt,Bt,Ft as Vt,Gt as Ht,Ht as Ut,It as Wt,Jt as Gt,Kt,Lt as qt,Mt as Jt,Nt as Yt,Pt as Xt,Qt as Zt,Rt as Qt,Ut as $t,Vt as en,Wt as tn,Xt as nn,Yt as rn,Zt as an,en as on,qt as sn,tn as cn,yt as ln,zt as un}from"./Brv_Bdja.js";import{a as dn,d as fn}from"./BMkghBSN.js";import{A as pn,D as mn,I as hn,L as gn,N as _n,R as vn,S as Z,T as yn,a as bn,b as xn,c as Sn,d as Cn,f as wn,h as Tn,j as En,k as Dn,m as On,o as kn,p as An,t as jn,u as Mn,w as Q,x as Nn,y as Pn}from"./DKNZ_ohS.js";import{_ as Fn,a as In,c as Ln,h as Rn,m as zn,n as Bn,o as Vn,s as Hn,t as Un,u as Wn}from"./LjrS__tx.js";import{a as Gn,c as Kn,i as qn,n as Jn,o as Yn,r as Xn,s as Zn,t as Qn}from"./CJAcsUQO.js";import{C as $n,S as er,_ as tr,b as nr,g as rr,h as ir,m as ar,r as or,v as sr,w as cr,x as lr,y as ur}from"#entry";var dr=e({BaseTransition:()=>oe,BaseTransitionPropsValidators:()=>at,Comment:()=>i,DeprecationTypes:()=>null,EffectScope:()=>ye,ErrorCodes:()=>nt,ErrorTypeStrings:()=>ne,Fragment:()=>R,KeepAlive:()=>le,ReactiveEffect:()=>h,Static:()=>v,Suspense:()=>D,Teleport:()=>P,Text:()=>B,TrackOpTypes:()=>f,Transition:()=>Jt,TransitionGroup:()=>Yt,TriggerOpTypes:()=>se,VueElement:()=>Xt,assertNumber:()=>It,callWithAsyncErrorHandling:()=>s,callWithErrorHandling:()=>Ce,camelize:()=>et,capitalize:()=>ze,cloneVNode:()=>w,compatUtils:()=>null,compile:()=>fr,computed:()=>V,createApp:()=>Vt,createBlock:()=>x,createCommentVNode:()=>N,createElementBlock:()=>J,createElementVNode:()=>Te,createHydrationRenderer:()=>A,createPropsRestProxy:()=>je,createRenderer:()=>Oe,createSSRApp:()=>Wt,createSlots:()=>U,createStaticVNode:()=>fe,createTextVNode:()=>t,createVNode:()=>G,customRef:()=>ot,defineAsyncComponent:()=>Tt,defineComponent:()=>q,defineCustomElement:()=>qt,defineEmits:()=>xt,defineExpose:()=>tt,defineModel:()=>Be,defineOptions:()=>ht,defineProps:()=>Ct,defineSSRCustomElement:()=>Qt,defineSlots:()=>Ue,devtools:()=>ut,effect:()=>a,effectScope:()=>rt,getCurrentInstance:()=>Dt,getCurrentScope:()=>L,getCurrentWatcher:()=>ie,getTransitionRawChildren:()=>Ge,guardReactiveProps:()=>Ye,h:()=>_t,handleError:()=>ft,hasInjectionContext:()=>Qe,hydrate:()=>un,hydrateOnIdle:()=>Ze,hydrateOnInteraction:()=>Le,hydrateOnMediaQuery:()=>kt,hydrateOnVisible:()=>Ft,initCustomFormatter:()=>Ve,initDirectivesForSSR:()=>Bt,inject:()=>Nt,isMemoSame:()=>ve,isProxy:()=>ue,isReactive:()=>y,isReadonly:()=>O,isRef:()=>F,isRuntimeOnly:()=>d,isShallow:()=>he,isVNode:()=>jt,markRaw:()=>Lt,mergeDefaults:()=>be,mergeModels:()=>_,mergeProps:()=>m,nextTick:()=>z,nodeOps:()=>en,normalizeClass:()=>X,normalizeProps:()=>g,normalizeStyle:()=>p,onActivated:()=>ct,onBeforeMount:()=>o,onBeforeUnmount:()=>it,onBeforeUpdate:()=>re,onDeactivated:()=>ae,onErrorCaptured:()=>de,onMounted:()=>b,onRenderTracked:()=>k,onRenderTriggered:()=>I,onScopeDispose:()=>c,onServerPrefetch:()=>ge,onUnmounted:()=>Rt,onUpdated:()=>l,onWatcherCleanup:()=>we,openBlock:()=>H,patchProp:()=>Ut,popScopeId:()=>E,provide:()=>Se,proxyRefs:()=>T,pushScopeId:()=>De,queuePostFlushCb:()=>C,reactive:()=>xe,readonly:()=>Ee,ref:()=>S,registerRuntimeCompiler:()=>te,render:()=>$t,renderList:()=>yt,renderSlot:()=>M,resolveComponent:()=>Ne,resolveDirective:()=>Ae,resolveDynamicComponent:()=>Fe,resolveFilter:()=>null,resolveTransitionHooks:()=>me,setBlockTracking:()=>r,setDevtoolsHook:()=>Ke,setTransitionHooks:()=>wt,shallowReactive:()=>ee,shallowReadonly:()=>vt,shallowRef:()=>j,ssrContextKey:()=>pt,ssrUtils:()=>bt,stop:()=>Me,toDisplayString:()=>ce,toHandlerKey:()=>st,toHandlers:()=>$e,toRaw:()=>ke,toRef:()=>Pe,toRefs:()=>pe,toValue:()=>n,transformVNodeArgs:()=>Re,triggerRef:()=>qe,unref:()=>Y,useAttrs:()=>mt,useCssModule:()=>tn,useCssVars:()=>Ht,useHost:()=>Kt,useId:()=>St,useModel:()=>He,useSSRContext:()=>lt,useShadowRoot:()=>sn,useSlots:()=>Et,useTemplateRef:()=>We,useTransitionState:()=>Je,vModelCheckbox:()=>Gt,vModelDynamic:()=>rn,vModelRadio:()=>nn,vModelSelect:()=>an,vModelText:()=>Zt,vShow:()=>zt,version:()=>gt,warn:()=>dt,watch:()=>K,watchEffect:()=>Xe,watchPostEffect:()=>Ie,watchSyncEffect:()=>Ot,withAsyncContext:()=>Pt,withCtx:()=>W,withDefaults:()=>Mt,withDirectives:()=>_e,withKeys:()=>on,withMemo:()=>u,withModifiers:()=>cn,withScopeId:()=>At}),fr=()=>{};function pr(e,t,n){let r=e.findIndex(e=>dn(e,t)),i=e.findIndex(e=>dn(e,n));if(r===-1||i===-1)return[];let[a,o]=[r,i].sort((e,t)=>e-t);return e.slice(a,o+1)}function mr(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}var hr=new WeakMap;function gr(e,t){let n=hr.get(e);n||(n={owners:new Set,original:e.body.style.pointerEvents},hr.set(e,n)),n.owners.add(t),e.body.style.pointerEvents=`none`}function _r(e,t){let n=hr.get(e);n?.owners.delete(t)&&n.owners.size===0&&(hr.delete(e),e.body.style.pointerEvents=n.original)}var vr=Symbol(`useBodyScrollLock`),yr=Hn(()=>{let e=S(new Map),t=S(),n=V(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=cr({scrollBody:S(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,_r(document,vr),document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,Wn&&i?.(),t.value=void 0};return K(n,(e,o)=>{if(!Ln)return;if(!e){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=r.scrollBody?.value?typeof r.scrollBody.value==`object`?ln({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),Wn&&(i=En(document,`touchmove`,e=>Sr(e),{passive:!1})),z(()=>{n.value&&(gr(document,vr),document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function br(e){let t=Math.random().toString(36).substring(2,7),n=yr();n.value.set(t,e??!1);let r=V({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return Fn(()=>{n.value.delete(t)}),r}function xr(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:xr(t)}}function Sr(e){let t=e||window.event,n=t.target;return n instanceof Element&&xr(n)?!1:t.touches.length>1||(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var Cr=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Bopomofo}]/u,wr=/android/i;function Tr(){return typeof navigator<`u`&&wr.test(navigator.userAgent)}function Er(e){let t=S(!1),n=S(!0),r=S(!1),i=V(()=>t.value&&n.value);function a(){t.value=!0,n.value=!0,r.value=!1}function o(e){e.data&&(Cr.test(e.data)?(n.value=!0,r.value=!0):Tr()&&!r.value&&(n.value=!1))}function s(n){z(()=>{t.value=!1,e?.(n)})}return{isComposing:t,shouldDeferInput:i,handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:s}}function Dr(e){let t=cr({dir:S(`ltr`)});return V(()=>e?.value||t.dir?.value||`ltr`)}function Or(e){let t=V(()=>Y(e)),n=V(()=>new Intl.Collator(`en`,{usage:`search`,...t.value}));return{startsWith:(e,t)=>t.length===0||(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(0,t.length),t)===0),endsWith:(e,t)=>t.length===0||(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(-t.length),t)===0),contains:(e,t)=>{if(t.length===0)return!0;if(e=e.normalize(`NFC`),t=t.normalize(`NFC`),t.length>e.length)return!1;let r=n.value.compare;if(e.includes(t))return!0;let i=t.length;for(let n=0;n+i<=e.length;n++)if(r(t,e.slice(n,n+i))===0)return!0;return!1}}}var kr=0;function Ar(){Xe(e=>{if(!Ln)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??jr()),document.body.insertAdjacentElement(`beforeend`,t[1]??jr()),kr++,e(()=>{kr===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),kr--})})}function jr(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function Mr(e){return V(()=>!n(e)||!!pn(e)?.closest(`form`))}function Nr(e,t){let n=Bn(e),r=t?yn(t):{};return V(()=>({...n.value,...r}))}var Pr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Fr=new WeakMap,Ir=new WeakMap,Lr={},Rr=0,zr=function(e){return e&&(e.host||zr(e.parentNode))},Br=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=zr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Vr=function(e,t,n,r){var i=Br(t,Array.isArray(e)?e:[e]);Lr[n]||(Lr[n]=new WeakMap);var a=Lr[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Fr.get(e)||0)+1,l=(a.get(e)||0)+1;Fr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ir.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Rr++,function(){o.forEach(function(e){var t=Fr.get(e)-1,i=a.get(e)-1;Fr.set(e,t),a.set(e,i),t||(Ir.has(e)||e.removeAttribute(r),Ir.delete(e)),i||e.removeAttribute(n)}),Rr--,Rr||(Fr=new WeakMap,Fr=new WeakMap,Ir=new WeakMap,Lr={})}},Hr=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Pr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Vr(r,i,n,`aria-hidden`)):function(){return null}};function Ur(e){let t;K(()=>pn(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=Hr(e):t&&t()}),Rt(()=>{t&&t()})}var Wr=0;function Gr(e,t=`reka`){if(e)return e;let n,r=cr({useId:void 0});return n=r.useId?r.useId():`useId`in dr?St?.():`${++Wr}`,t?`${t}-${n}`:n}function Kr(){return{ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,SPACE_CODE:`Space`}}function qr(e){let t=S(),n=V(()=>t.value?.width??0),r=V(()=>t.value?.height??0),i;return b(()=>{let n=pn(e);n?(t.value={width:n.offsetWidth,height:n.offsetHeight},i=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}}),i.observe(n,{box:`border-box`})):t.value=void 0}),Rt(()=>{i?.disconnect(),i=void 0}),{width:n,height:r}}function Jr(e){let t=Rn(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=gn(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=Xr(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function Yr(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Xr(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Yr(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}var Zr=`dismissableLayer.pointerDownOutside`,Qr=`dismissableLayer.focusOutside`;function $r(e){if(typeof e!=`object`||!e)return!1;let t=e.ownerDocument?.defaultView;return typeof Element<`u`&&e instanceof Element||!!t&&e instanceof t.Element}function ei(e,t){if(!$r(t))return!1;if(e.contains(t))return!0;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function ti(e,t,r=!0){let i=S(!1),a=S(()=>{});return Xe(o=>{if(!Ln||!n(r))return;let s=t?.value?.ownerDocument??globalThis.document,c=async n=>{let r=n.target;if(t?.value&&r){if(ei(t.value,r))s.removeEventListener(`click`,a.value),i.value=!1;else{if(n.target&&!i.value){let t={originalEvent:n};function r(){mr(Zr,e,t)}n.pointerType===`touch`?(s.removeEventListener(`click`,a.value),a.value=r,s.addEventListener(`click`,a.value,{once:!0})):r()}else s.removeEventListener(`click`,a.value);i.value=!1}}},l=window.setTimeout(()=>{s.addEventListener(`pointerdown`,c)},0);o(()=>{window.clearTimeout(l),s.removeEventListener(`pointerdown`,c),s.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{n(r)&&(i.value=!0)}}}function ni(e,t,r=!0){let i=S(!1);return Xe(a=>{if(!Ln||!n(r))return;let o=t?.value?.ownerDocument??globalThis.document,s=async n=>{if(!t?.value)return;await z(),await z();let r=n.target;t.value&&r&&!ei(t.value,r)&&n.target&&!i.value&&mr(Qr,e,{originalEvent:n})};o.addEventListener(`focusin`,s),a(()=>o.removeEventListener(`focusin`,s))}),{onFocusCapture:()=>{n(r)&&(i.value=!0)},onBlurCapture:()=>{n(r)&&(i.value=!1)}}}var ri=q({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=Q(),o=V(()=>a.value?.ownerDocument??globalThis.document),s=V(()=>$n.layersRoot),c=V(()=>a.value?Array.from(s.value).indexOf(a.value):-1),l=V(()=>$n.layersWithOutsidePointerEventsDisabled.size>0),u=V(()=>{let e=Array.from(s.value),[t]=[...$n.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return c.value>=n}),d=ti(async e=>{let t=[...$n.branches].some(t=>t?.contains(e.target));n.present&&u.value&&!t&&(r(`pointerDownOutside`,e),r(`interactOutside`,e),await z(),e.defaultPrevented||r(`dismiss`))},a,()=>n.present),f=ni(e=>{let t=[...$n.branches].some(t=>t?.contains(e.target));n.present&&!t&&(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},a);return Dn(`Escape`,e=>{n.present&&c.value===s.value.size-1&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))},{target:()=>o.value?.defaultView??globalThis.window}),K([a,()=>n.disableOutsidePointerEvents,()=>n.present],([e,t,n],r,i)=>{if(e&&n&&t){let t=e.ownerDocument;gr(t,e),$n.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{$n.layersWithOutsidePointerEventsDisabled.delete(e),_r(t,e)})}},{immediate:!0}),K([a,()=>n.present],([e,t],n,r)=>{e&&t&&(s.value.add(e),r(()=>{s.value.delete(e)}))},{immediate:!0}),Xe(e=>{e(()=>{a.value&&(s.value.delete(a.value),$n.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(t,n)=>(H(),x(Y(Z),{ref:Y(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:p({pointerEvents:l.value?u.value?`auto`:`none`:void 0}),onFocusCapture:Y(f).onFocusCapture,onBlurCapture:Y(f).onBlurCapture,onPointerdownCapture:Y(d).onPointerDownCapture},{default:W(()=>[M(t.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),ii=Vn(()=>S([]));function ai(){let e=ii();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=oi(e.value,t),e.value.unshift(t)},remove(t){e.value=oi(e.value,t),e.value[0]?.resume()}}}function oi(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var si=q({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=Q(),o=S(null),s=ai(),c=xe({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Xe(e=>{if(!Ln)return;let t=a.value;if(!n.trapped)return;let r=t?.ownerDocument??document,i=t?t.getRootNode():r;function s(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:ur(o.value,{select:!0})}function l(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||ur(o.value,{select:!0}))}function u(e){let n=o.value;if(n===null||!e.some(e=>e.removedNodes.length>0))return;let r=gn();r&&t.contains(r)||t.contains(n)||ur(t)}function d(e){if(c.paused||!t)return;let n=e.composedPath()[0];sr(t,n)||ur(o.value,{select:!0})}i.addEventListener(`focusin`,s),i.addEventListener(`focusout`,l),i!==r&&r.addEventListener(`focusin`,d);let f=new MutationObserver(u);t&&f.observe(t,{childList:!0,subtree:!0}),e(()=>{i.removeEventListener(`focusin`,s),i.removeEventListener(`focusout`,l),i!==r&&r.removeEventListener(`focusin`,d),f.disconnect()})});function l(e,t){let n=new CustomEvent(ir,tr),i=e=>r(`mountAutoFocus`,e);e.addEventListener(ir,i),e.dispatchEvent(n),e.removeEventListener(ir,i),n.defaultPrevented||(nr(lr(e),{select:!0}),gn()===t&&ur(e))}Xe(async e=>{let t=a.value;if(await z(),!t)return;n.present!==!1&&s.add(c);let i=gn();!t.contains(i)&&n.present!==!1&&l(t,i),e(()=>{let e=new CustomEvent(rr,tr),n=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(rr,n),t.dispatchEvent(e),t.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||ur(i??document.body,{select:!0}),t.removeEventListener(rr,n),s.remove(c),t.removeAttribute(`data-focus-scope-unmounting`)},0)})}),K(()=>n.present,async(e,t)=>{if(!Ln)return;if(e===!1&&t===!0){s.remove(c);return}if(e!==!0||t!==!1)return;s.add(c),await z();let n=a.value;if(!n)return;let r=gn();n.contains(r)||l(n,r)});function u(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=gn();if(t&&r){let t=e.currentTarget,[i,a]=er(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&ur(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&ur(a,{select:!0})):r===t&&e.preventDefault()}}return(t,n)=>(H(),x(Y(Z),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:u},{default:W(()=>[M(t.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),ci=q({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,{primitiveElement:n,currentElement:r}=Nn(),i=V(()=>t.checked??t.value);return K(i,(e,t)=>{if(!r.value)return;let n=r.value,i=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(i,`value`).set;if(a&&e!==t){let t=new Event(`input`,{bubbles:!0}),r=new Event(`change`,{bubbles:!0});a.call(n,e),n.dispatchEvent(t),n.dispatchEvent(r)}}),(e,r)=>(H(),x(Pn,m({ref_key:`primitiveElement`,ref:n},{...t,...e.$attrs},{as:`input`}),null,16))}}),li=q({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,n=V(()=>typeof t.value==`object`&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=V(()=>typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`boolean`||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value==`object`&&Array.isArray(t.value)?t.value.flatMap((e,n)=>typeof e==`object`?Object.entries(e).map(([e,r])=>({name:`${t.name}[${n}][${e}]`,value:r})):{name:`${t.name}[${n}]`,value:e}):t.value!==null&&typeof t.value==`object`&&!Array.isArray(t.value)?Object.entries(t.value).map(([e,n])=>({name:`${t.name}[${e}]`,value:n})):[]);return(i,a)=>(H(),J(R,null,[N(` We render single input if it's required `),n.value?(H(),x(ci,m({key:e.name},{...t,...i.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`])):(H(!0),J(R,{key:1},yt(r.value,e=>(H(),x(ci,m({key:e.name},{ref_for:!0},{...t,...i.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`]))),128))],2112))}});function ui(e){return e?.querySelector(`[data-state=checked]`)}function di(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(e=>fi(e,t,n)):fi(e,t,n)}function fi(e,t,n){return e===void 0||t===void 0?!1:typeof e==`string`?e===t:typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]===t?.[n]:dn(e,t)}var pi={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function mi(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function hi(e,t,n){let r=mi(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return pi[r]}var[gi,_i]=vn(`ListboxRoot`),[vi,yi]=vn(`ListboxHighlightScroll`),bi=q({__name:`ListboxRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:`vertical`},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:`toggle`},highlightOnHover:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`],setup(e,{expose:t,emit:n}){let r=e,i=n,{multiple:a,highlightOnHover:o,loop:s,orientation:c,disabled:l,selectionBehavior:u,dir:d}=pe(r),{getItems:f,getItem:p}=xn({isProvider:!0}),{handleTypeaheadSearch:m}=Jr(),{primitiveElement:h,currentElement:g}=Nn(),_=Kr(),v=Dr(d),y=vi(null);yi({suppressHighlightScroll:S(!1),onHighlightScrollRequest:()=>{}});let b=Mr(g),C=S(),w=S(!1),T=S(!0),E=hn(r,`modelValue`,i,{defaultValue:r.defaultValue??(a.value?[]:void 0),passive:r.modelValue===void 0,deep:!0});function D(e){if(w.value=!0,r.multiple){let t=Array.isArray(E.value)?[...E.value]:[],n=t.findIndex(t=>fi(t,e,r.by));r.selectionBehavior===`toggle`?(n===-1?t.push(e):t.splice(n,1),E.value=t):(E.value=[e],C.value=e)}else r.selectionBehavior===`toggle`&&fi(E.value,e,r.by)?E.value=void 0:E.value=e;setTimeout(()=>{w.value=!1},1)}let O=S(null),k=S(null),A=S(!1),j=S(!1),ee=In(),te=In(),P=In();function F(){return f().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)}function I(e,t=!0,n){if(!e)return;O.value=e;let r=y?.suppressHighlightScroll.value??!1;(n??T.value)&&(r?O.value.focus({preventScroll:!0}):O.value.focus()),r?y?.onHighlightScrollRequest(t?()=>{let e=O.value;e?.isConnected&&e.scrollIntoView({block:`nearest`})}:void 0):t&&O.value.scrollIntoView({block:`nearest`});let a=p(e);i(`highlight`,a)}function ne(e){if(A.value)P.trigger(e);else{let t=f().find(t=>fi(t.value,e,r.by));t&&(O.value=t.ref,I(t.ref))}}function L(e){if(O.value&&O.value.isConnected){if(e.ctrlKey||e.metaKey||e.altKey)return;e.preventDefault(),e.stopPropagation(),j.value||O.value.click()}}function re(e){if(T.value){if(w.value=!0,A.value)te.trigger(e);else{let t=e.altKey||e.ctrlKey||e.metaKey;if(t&&e.key===`a`&&a.value){let t=f(),n=t.map(e=>e.value);E.value=[...n],e.preventDefault();let r=t.at(-1);r&&I(r.ref)}else if(!t){let t=m(e.key,f());t&&I(t)}}setTimeout(()=>{w.value=!1},1)}}function R(){j.value=!0}function ie(){z(()=>{j.value=!1})}function ae(){z(()=>{le(new KeyboardEvent(`keydown`,{key:`PageUp`}))})}function oe(e){let t=O.value;t?.isConnected&&(k.value=t),O.value=null,i(`leave`,e)}function se(e){let t=new CustomEvent(`listbox.entryFocus`,{bubbles:!1,cancelable:!0});if(e.currentTarget?.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){if(k.value)I(k.value);else{let e=F()?.[0];I(e)}}}function ce(e){let t=f(!0).map(e=>e.ref),n=e===`next`?t.at(-1):t[0];if(!n)return!1;let r=Number(n.getAttribute(`aria-posinset`)),i=Number(n.getAttribute(`aria-setsize`));return e===`next`?r===i:r===1}function le(e){let t=hi(e,c.value,v.value);if(!t)return;let n=F();if(O.value){if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(O.value),i=s.value&&r===n.length-1;if(i&&A.value){if(ce(t)){let n=t===`next`?_.HOME:_.END;return te.trigger(new KeyboardEvent(`keydown`,{key:n,shiftKey:e.shiftKey}))}n=[]}else n=i?n.slice(0,1):n.slice(r+1)}ue(e,n[0])}if(n.length){let e=!O.value&&t===`prev`?n.length-1:0;I(n[e])}if(A.value)return te.trigger(e)}function ue(e,t){if(!A.value&&r.selectionBehavior===`replace`&&a.value&&Array.isArray(E.value)&&(!e.altKey&&!e.ctrlKey&&!e.metaKey||e.shiftKey)&&e.shiftKey){let n=f().filter(e=>e.ref.dataset.disabled!==``),r=n.find(e=>e.ref===t)?.value;if(e.key===_.END?r=n.at(-1)?.value:e.key===_.HOME&&(r=n[0]?.value),!r||!C.value)return;let i=pr(n.map(e=>e.value),C.value,r);E.value=i}}async function de(e,t=!0){if(Ln){if(await z(),A.value)ee.trigger({event:e,scroll:t});else{let e=F(),n=e.find(e=>e.dataset.state===`checked`),r=t?void 0:!1;n?I(n,t,r):e.length&&I(e[0],t,r)}}}let fe=!1;return K(E,()=>{if(!w.value){let e=fe;fe=!0,z(()=>{de(void 0,e)})}},{immediate:!0,deep:!0}),t({highlightedElement:O,highlightItem:ne,highlightFirstItem:ae,highlightSelected:de,getItems:f}),_i({modelValue:E,onValueChange:D,multiple:a,orientation:c,dir:v,disabled:l,highlightOnHover:o,loop:s,highlightedElement:O,isVirtual:A,virtualFocusHook:ee,virtualKeydownHook:te,virtualHighlightHook:P,by:r.by,firstValue:C,selectionBehavior:u,focusable:T,onLeave:oe,onEnter:se,changeHighlight:I,onKeydownEnter:L,onKeydownNavigation:le,onKeydownTypeAhead:re,onCompositionStart:R,onCompositionEnd:ie,highlightFirstItem:ae}),(t,n)=>(H(),x(Y(Z),{ref_key:`primitiveElement`,ref:h,as:e.as,"as-child":e.asChild,dir:Y(v),"data-disabled":Y(l)?``:void 0,onPointerleave:oe,onFocusout:n[0]||=async e=>{let t=e.relatedTarget||e.target;await z(),O.value&&Y(g)&&!Y(g).contains(t)&&oe(e)}},{default:W(()=>[M(t.$slots,`default`,{modelValue:Y(E)}),Y(b)&&e.name?(H(),x(Y(li),{key:0,name:e.name,value:Y(E),disabled:Y(l),required:e.required},null,8,[`name`,`value`,`disabled`,`required`])):N(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`dir`,`data-disabled`]))}}),xi=q({__name:`ListboxContent`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{CollectionSlot:t}=xn(),n=gi(),r=Rn(!1,10);return(i,a)=>(H(),x(Y(t),null,{default:W(()=>[G(Y(Z),{role:`listbox`,as:e.as,"as-child":e.asChild,tabindex:Y(n).focusable.value?Y(n).highlightedElement.value?`-1`:`0`:`-1`,"aria-orientation":Y(n).orientation.value,"aria-multiselectable":!!Y(n).multiple.value,"data-orientation":Y(n).orientation.value,onMousedown:a[0]||=cn(e=>r.value=!0,[`left`]),onFocus:a[1]||=e=>{Y(r)||Y(n).onEnter(e)},onKeydown:[a[2]||=on(e=>{(Y(n).orientation.value!==`vertical`||e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)&&(Y(n).orientation.value!==`horizontal`||e.key!==`ArrowUp`&&e.key!==`ArrowDown`)&&(e.preventDefault(),Y(n).focusable.value&&Y(n).onKeydownNavigation(e))},[`down`,`up`,`left`,`right`,`home`,`end`]),on(Y(n).onKeydownEnter,[`enter`]),Y(n).onKeydownTypeAhead]},{default:W(()=>[M(i.$slots,`default`)]),_:3},8,[`as`,`as-child`,`tabindex`,`aria-orientation`,`aria-multiselectable`,`data-orientation`,`onKeydown`])]),_:3}))}}),Si=q({__name:`ListboxFilter`,props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=hn(n,`modelValue`,t,{defaultValue:``,passive:n.modelValue===void 0}),i=gi(),{primitiveElement:a,currentElement:o}=Nn(),s=V(()=>n.disabled||i.disabled.value||!1),c=S();Ot(()=>c.value=i.highlightedElement.value?.id),b(()=>{i.focusable.value=!1,setTimeout(()=>{n.autoFocus&&o.value?.focus()},1)}),Rt(()=>{i.focusable.value=!0});let{isComposing:l,shouldDeferInput:u,handleCompositionStart:d,handleCompositionUpdate:f,handleCompositionEnd:p}=Er(e=>{r.value=e.target.value,i.onCompositionEnd(),i.highlightFirstItem()});function m(){i.onCompositionStart(),d()}function h(e){u.value||(r.value=e.target.value,i.highlightFirstItem())}function g(e){l.value||(e.preventDefault(),i.onKeydownNavigation(e))}function _(e){l.value||i.onKeydownEnter(e)}return(t,n)=>(H(),x(Y(Z),{ref_key:`primitiveElement`,ref:a,as:e.as,"as-child":e.asChild,value:Y(r),disabled:s.value?``:void 0,"data-disabled":s.value?``:void 0,"aria-disabled":s.value??void 0,"aria-activedescendant":c.value,type:`text`,onKeydown:[on(g,[`down`,`up`,`home`,`end`]),on(_,[`enter`])],onInput:h,onCompositionstart:m,onCompositionupdate:Y(f),onCompositionend:Y(p)},{default:W(()=>[M(t.$slots,`default`,{modelValue:Y(r)})]),_:3},8,[`as`,`as-child`,`value`,`disabled`,`data-disabled`,`aria-disabled`,`aria-activedescendant`,`onCompositionupdate`,`onCompositionend`]))}}),[Ci,wi]=vn(`ListboxGroup`),Ti=q({__name:`ListboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Gr(void 0,`reka-listbox-group`);return wi({id:n}),(e,r)=>(H(),x(Y(Z),m({role:`group`},t,{"aria-labelledby":Y(n)}),{default:W(()=>[M(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),Ei=`listbox.select`,[Di,Oi]=vn(`ListboxItem`),ki=q({__name:`ListboxItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=Gr(void 0,`reka-listbox-item`),{CollectionItem:a}=xn(),{forwardRef:o,currentElement:s}=Q(),c=gi(),l=V(()=>s.value!=null&&s.value===c.highlightedElement.value),d=V(()=>di(c.modelValue.value,n.value,c.by)),f=V(()=>c.disabled.value||n.disabled);async function p(e){r(`select`,e),!e?.defaultPrevented&&!f.value&&e&&(c.onValueChange(n.value),c.changeHighlight(s.value))}function h(e){mr(Ei,p,{originalEvent:e,value:n.value})}return Oi({isSelected:d}),(t,n)=>(H(),x(Y(a),{value:e.value},{default:W(()=>[u([l.value,d.value,f.value,Y(c).focusable.value,...Object.entries(t.$attrs).flat()],()=>G(Y(Z),m({id:Y(i)},t.$attrs,{ref:Y(o),role:`option`,tabindex:Y(c).focusable.value?l.value?`0`:`-1`:-1,"aria-selected":d.value,as:e.as,"as-child":e.asChild,disabled:f.value?``:void 0,"data-disabled":f.value?``:void 0,"data-highlighted":l.value?``:void 0,"data-state":d.value?`checked`:`unchecked`,onClick:h,onKeydown:on(cn(h,[`prevent`]),[`space`]),onPointermove:n[0]||=()=>{Y(c).highlightedElement.value!==Y(s)&&Y(c).highlightOnHover.value&&Y(c).changeHighlight(Y(s),!1,!1)}}),{default:W(()=>[M(t.$slots,`default`,{selected:d.value})]),_:3},16,[`id`,`tabindex`,`aria-selected`,`as`,`as-child`,`disabled`,`data-disabled`,`data-highlighted`,`data-state`,`onKeydown`]),n,1)]),_:3},8,[`value`]))}}),Ai=q({__name:`ListboxItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=Q(),n=Di();return(r,i)=>(H(),x(Y(Kn),{present:e.forceMount||Y(n).isSelected.value},{default:W(()=>[G(Y(Z),{ref:Y(t),"aria-hidden":`true`,"data-state":Y(n).isSelected.value?`checked`:`unchecked`,as:e.as,"as-child":e.asChild},{default:W(()=>[M(r.$slots,`default`)]),_:3},8,[`data-state`,`as`,`as-child`])]),_:3},8,[`present`]))}});function ji(e){return typeof e==`object`?e.key:e}function Mi(e,t){let n=e.length;return new Proxy(e,{get(e,r,i){if(typeof r==`string`){let i=r.charCodeAt(0);if(i>=48&&i<=57){let i=+r;if(Number.isInteger(i)&&i>=0&&i<n){let n=e[i];if(typeof n!=`object`){let r=t[i*2];n=e[i]={index:i,key:n,start:r,size:t[i*2+1],end:r+t[i*2+1],lane:0}}return n}}if(r===`length`)return n}return Reflect.get(e,r,i)}})}function Ni(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return(o.length!==r.length||o.some((e,t)=>r[t]!==e))&&(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1),i}return o.updateDeps=e=>{r=e},o}function Pi(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var Fi=(e,t)=>Math.abs(e-t)<1.01,Ii=(e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})};function Li({offset:e,isScrolling:t,elementMax:n,holdOffset:r,scrollOffset:i,pendingWrite:a,clampedMaxAtWrite:o}){return t&&a===null&&e===i?`spurious`:a!==null&&Math.abs(e-a.target)<1.5?`readBack`:a!==null&&!a.smooth&&n!==null&&a.target>n+r+.5&&Math.abs(e-(n+r))<1.5||a!==null&&!a.smooth&&a.lowMaxes?.some(t=>Math.abs(e-t)<1.5)?`clampedReadBack`:o!==null&&Math.abs(e-o)<1.5?`clampedEcho`:`external`}var Ri=e=>e===`smooth`||e===`smoothFinishing`;function zi({kind:e,offset:t,command:n,target:r}){return e!==`spurious`&&e!==`readBack`&&e!==`clampedReadBack`&&n?.index!=null&&n.phase!==`queued`&&!Ri(n.phase)&&!Fi(t,n.lastTargetOffset)&&!Fi(t,r())&&e!==`clampedEcho`}var Bi=40;function Vi(e){let t=e[e.length-1];if(t===void 0)return!1;let n=e.length-2;for(;n>=0&&t.t-e[n].t<Bi;)n--;if(n<0)return!1;let r=e[n],i=n-1;for(;i>=0&&r.t-e[i].t<Bi;)i--;if(i<0)return!1;let a=e[i],o=(t.offset-r.offset)/(t.t-r.t),s=(r.offset-a.offset)/(r.t-a.t);return o*s>=0&&Math.abs(o)>=2*Math.abs(s)&&Math.abs(o)-Math.abs(s)>=.8}function Hi(e){let t=e[e.length-1];if(t===void 0)return!1;let n=e.length-2;for(;n>=0&&t.t-e[n].t<Bi;)n--;if(n<0)return!1;let r=e[n];return Math.abs(t.offset-r.offset)/(t.t-r.t)>=.05}var Ui,Wi=()=>{if(Ui!==void 0)return Ui;if(typeof navigator>`u`)return Ui=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Ui=!0;let e=navigator.maxTouchPoints;return Ui=navigator.platform===`MacIntel`&&e!==void 0&&e>0},Gi,Ki=()=>Gi===void 0?Gi=Wi()&&typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`overflow-anchor: auto`):Gi,qi={capture:!0,passive:!0},Ji=class{constructor(e){this.host=e,this._touch=null,this.inMotion=()=>this._touch!==null&&this._touch.phase!==`lateFling`,this.dragging=()=>this._touch?.phase===`down`&&this._touch.moved,this.tail=()=>this._touch?.phase===`tail`?this._touch.moved?`fling`:`tap`:null,this.onScroll=({isScrolling:e,ownReadBack:t,moved:n,external:r})=>(e&&this._touch?.phase===`tail`?this._openTail(this._touch.moved||!t,!1):this._touch?.phase===`lateFling`&&(this.host.now()>this._touch.until?this._touch=null:r&&e&&n&&this._openTail(!0,!1)),!t&&e&&n&&this._touch?.phase===`down`?(this._touch.moved=!0,!0):!1),this.touchStart=()=>{this.end(),this._touch={phase:`down`,moved:!1}},this.touchEnd=()=>{let e=this._touch?.phase===`down`&&this._touch.moved;this.end(),this._openTail(e,e)},this.end=()=>{let e=this.host.getWindow();this._touch?.phase===`tail`&&e!=null&&e.clearTimeout(this._touch.timerId),this._touch=null},this.listen=e=>{let t=()=>this.touchStart(),n=()=>this.touchEnd();return e.addEventListener(`touchstart`,t,qi),e.addEventListener(`touchend`,n,qi),e.addEventListener(`touchcancel`,n,qi),()=>{e.removeEventListener(`touchstart`,t,qi),e.removeEventListener(`touchend`,n,qi),e.removeEventListener(`touchcancel`,n,qi),this.end()}},this._openTail=(e,t)=>{let n=this.host.getWindow();if(!Wi()||n==null)return;this.end();let r={phase:`tail`,moved:e,awaitingFling:t,timerId:n.setTimeout(()=>{this.host.tailStillMoving()?this._openTail(r.moved,r.awaitingFling):(this._touch=r.awaitingFling?{phase:`lateFling`,until:this.host.now()+1e3}:null,this.host.onTailClosed())},150)};this._touch=r}}get touch(){return this._touch}},Yi=e=>{let{clientWidth:t,clientHeight:n}=e;return{width:t,height:n}},Xi=e=>{let t=new Set;return{schedule:n=>{let r=e.requestAnimationFrame(()=>{t.delete(r),n()});t.add(r)},cancel:()=>{t.forEach(t=>e.cancelAnimationFrame(t)),t.clear()}}},Zi=e=>e,Qi=e=>{let t=e.overscan*Math.max(e.lanes??1,1),n=Math.max(e.startIndex-t,0),r=Math.min(e.endIndex+t,e.count-1)-n+1,i=Array(r);for(let e=0;e<r;e++)i[e]=n+e;return i},$i=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(Yi(n)),!r.ResizeObserver)return()=>{};let a=Xi(r),o=new r.ResizeObserver(()=>{let t=()=>{i(Yi(n))};e.options.useAnimationFrameWithResizeObserver?a.schedule(t):t()});return o.observe(n,{box:`content-box`}),()=>{o.unobserve(n),a.cancel()}},ea={passive:!0},ta=typeof window>`u`||`onscrollend`in window,na=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&ta,o=0,s=a?null:Ii(i,()=>t(n(r),!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,ea),a&&r.addEventListener(`scrollend`,u,ea),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u),s?.cancel()}},ra=(e,t)=>na(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),ia=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},aa=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},oa=(e,t)=>e===`smooth`?t?`smoothLanded`:`smooth`:`instant`,sa=e=>e?.phase===`smooth`||e?.phase===`smoothLanded`;function ca(e,t,n,r){if(t===0)return!1;let i=r(0),a=new Set,o=0;for(;o<e;){let e=n(o);if(e===i)break;a.add(e),o++}let s=e-o;if(s===0||s>=t)return!1;for(let e=0;e<s;e++)if(r(e)!==n(o+e))return!1;for(let e=s;e<t;e++)if(a.has(r(e)))return!1;return!0}var la=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._iosGesture=new Ji({getWindow:()=>this.targetWindow,now:()=>this.now(),tailStillMoving:()=>{let e=this.scrollState;if(e?.phase!==`queued`||this.pendingWrite!==null)return!1;let t=this._readElementOffset();return t===null||this._lastElementOffset===null||Math.abs(t-this._lastElementOffset)<1?!1:(this._lastElementOffset=t,e.samples=[...e.samples??[],{t:this.now(),offset:t}],!0)},onTailClosed:()=>{let e=this.scrollState;e?.phase===`queued`&&Hi(e.samples??[])&&(this.scrollState=null),this._flushHoldIfReady(!0),this._writeAwaitingCommand(),this._retryClampedAdjustment()}}),this._lastElementOffset=null,this.pendingWrite=null,this._clampedAdjustment=null,this.elementsCache=new Map,this._resizeBatch=null,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=null,n=()=>{if(e)return e;let n=this.targetWindow;if(!n||!n.ResizeObserver)return null;let i=t=Xi(n);return e=new n.ResizeObserver(e=>{let t=()=>{let t={sync:!1};this._resizeBatch=t;try{e.forEach(r)}finally{this._resizeBatch=null,t.notify&&(this.notify(t.sync),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment())}};this.options.useAnimationFrameWithResizeObserver?i.schedule(t):t()})},r=e=>{let t=e.target,n=this.indexFromElement(t);if(t.isConnected)this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}}};return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),t?.cancel(),e=null,t=null},observe:e=>n()?.observe(e,{box:`border-box`}),unobserve:e=>n()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Zi,rangeExtractor:Qi,onChange:()=>{},measureElement:ia,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=this._singleLaneMeasurements?.items??s,l=e=>ji(c[e]),u=e>0?l(0):null,d=e>0?l(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==u||t.getItemKey(o-1)!==d)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>0&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==d)&&(o>e||ca(e,o,l,t.getItemKey))&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=null;if(r&&this.scrollOffset!==null&&!this._awaitingCommandReadBack()){let[e,t]=r,n=this.getMeasurements(),{count:a,getItemKey:s}=this.options,c=0;for(;c<a&&s(c)!==e;)c++;if(c<a){let e=n[c];if(e){let n=Math.max(0,e.start+t);!i&&n!==this.scrollOffset&&(o=n-this.scrollOffset,this.scrollOffset=n)}}}i?this.pendingScrollAnchor={kind:`follow`,behavior:i}:o!==null&&(this._canWriteScroll()?this.pendingScrollAnchor={kind:`anchor`,delta:o}:(this._holdOffset+=o,this._followOffsetTarget(o)))},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=Ni(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{var e;this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,(e=this._momentumStop)==null||e.restore(),this._momentumStop=null,this.isScrolling=!1,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._clampedAdjustment=null,this.pendingWrite=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{let n=t?this._elementMaxScrollOffset():null,r=this._reportedOverscroll;this._reportedOverscroll=e<0||n!==null&&e>n+1;let i=e;this._lastElementOffset=i,e=this._toLayoutOffset(e);let a=this._classifyScrollEvent(e,t,n);if(a===`spurious`)return;a===`readBack`?e=this.pendingWrite.target:a===`clampedReadBack`&&this.scrollState?.index!=null&&e<this.getMaxScrollOffset()-1.5?this.scrollState.lastTargetOffset=e:zi({kind:a,offset:e,command:this.scrollState,target:()=>this.getScrollStateTarget(this.scrollState)})&&(this.scrollState=null),this.pendingWrite=null,this._clampedAdjustment!==null&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null);let o=this.getScrollOffset(),s=this.scrollDirection;this.scrollDirection=t?o===e?this.scrollDirection:o<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t;let c=this.scrollState;if(c?.phase===`queued`&&a===`external`&&t){if(r||this._reportedOverscroll)c.samples=[];else{let e=this.now();c.samples=[...(c.samples??[]).filter(t=>e-t.t<=200),{t:e,offset:i}],(s!==null&&this.scrollDirection!==s||Vi(c.samples))&&(this.scrollState=null)}}this._iosGesture.onScroll({isScrolling:t,ownReadBack:a===`readBack`,moved:e!==o,external:a===`external`&&this.scrollState?.phase!==`smooth`&&this.scrollState?.phase!==`smoothFinishing`})&&this.scrollState?.phase===`queued`&&(this.scrollState=null),this._flushHoldIfReady(!0),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement&&this.unsubs.push(this._iosGesture.listen(this.scrollElement)),this._scrollToOffset(this.getScrollOffset())}this._noteClampMax();let t=this.pendingScrollAnchor;this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled&&(t.kind===`anchor`?this._canWriteScroll()?sa(this.scrollState)&&!Fi(this.getScrollOffset()-t.delta,this.scrollState.lastTargetOffset)||(this._followOffsetTarget(t.delta),this._scrollToOffset(this.getScrollOffset())):(this._holdOffset+=t.delta,this._followOffsetTarget(t.delta),this.notify(!1)):this.scrollToEnd({behavior:t.behavior})),this._flushHoldIfReady(!1),this._retryClampedAdjustment()},this._classifyScrollEvent=(e,t,n)=>Li({offset:e,isScrolling:t,elementMax:n,holdOffset:this._holdOffset,scrollOffset:this.scrollOffset,pendingWrite:this.pendingWrite,clampedMaxAtWrite:this._clampedAdjustment?.maxAtWrite??null}),this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled||!this._canWriteScroll())return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e))},this._writeAwaitingCommand=()=>{let e=this.scrollState;if(e===null||e.phase!==`queued`)return;let{behavior:t}=e;this.getMeasurements();let n=this.getScrollStateTarget(e);e.lastTargetOffset=n,this._clampedAdjustment=null,e.phase=oa(t,e.index!=null&&Fi(n,this.getScrollOffset())),this._scrollToOffset(n,{behavior:t}),this.scheduleScrollReconcile()},this._readElementOffset=()=>{let e=this.scrollElement;if(e==null)return null;let{horizontal:t,isRtl:n}=this.options;return typeof e.scrollTop==`number`?t?e.scrollLeft*(n&&-1||1):e.scrollTop:typeof e.scrollY==`number`?t?e.scrollX:e.scrollY:null},this._canWriteScroll=()=>!(Wi()&&this._iosGesture.inMotion())&&!this._reportedOverscroll,this._flushHoldIfReady=e=>{if(this._holdOffset===0||!this.scrollElement||!this.options.enabled||!this._canWriteScroll()||this.scrollState?.phase===`smooth`)return;this._holdOffset=0,this.scrollOffset!==null&&this.scrollOffset<0&&(this.scrollOffset=0),this.notify(e);let t=this.getCommandWrittenOffset()??this.getScrollOffset();this._clampedAdjustment=this._clampedBy(t),this._scrollToOffset(t)},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Ni(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=Ni(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._singleLaneMeasurements?.flat;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e}let o=u===0?Array(e):this._singleLaneMeasurements.items.slice(),c;if(u===0)c=t+n;else{let e=u-1;c=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t);o[t]=e;let n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=c,a[t*2+1]=i,c+=i+s}this._singleLaneMeasurements={flat:a,items:o};let d=Mi(o,a);return this.measurementsCache=d,d}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,g=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,g&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,g&&this.laneAssignments.set(i,u);let _=l.get(e),v=typeof _==`number`?_:this.options.estimateSize(i),y=h+v;d[i]={index:i,start:h,size:v,end:y,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=y}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ni(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=fa(e,t,n,r,r===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ni(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t,this.options.lanes]},(e,t,n,r,i,a)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n,lanes:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!sa(this.scrollState))return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),e.isConnected&&(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n;if(!this.isIndexInRange(e))return;this._resizeBatch?.sync&&this.getMeasurements();let r,i,a,o=this._singleLaneMeasurements?.flat;if(this.options.lanes===1&&o!=null)a=this.options.getItemKey(e),i=o[e*2],r=o[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;a=t.key,i=t.start,r=t.size}let s=this.itemSizeCache.get(a)??r,c=t-s;if(c!==0){let o=this.options.anchorTo===`end`&&!sa(this.scrollState)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,l=o?this._getLayoutTotalSize():0,u=this.getScrollOffset(),d=this.itemSizeCache.has(a)?i+s<=u&&this.scrollDirection!==`backward`:i<u,f=!sa(this.scrollState)&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?d:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:a,start:i,size:r,end:i+r,lane:0},c,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(a,t),this.itemSizeCacheVersion++;let p=!1;if(this._awaitingCommandReadBack()||(o?p=this.applyScrollAdjustment(this._getLayoutTotalSize()-l):f&&(p=this.applyScrollAdjustment(c))),this._resizeBatch){this._resizeBatch.notify=!0,(n=this._resizeBatch).sync||(n.sync=p);return}this.notify(p),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment()}},this.getVirtualItems=Ni(()=>[this.getVirtualIndexes(),this.getMeasurements(),this._holdOffset],(e,t,n)=>{let r=[];for(let i=0,a=e.length;i<a;i++){let a=t[e[i]];r.push(n===0?a:{...a,start:a.start-n,end:a.end-n})}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._singleLaneMeasurements?.flat,r=this.options.lanes===1&&n!=null;return Pi(t[ua(0,t.length-1,r?e=>n[e*2]:e=>Pi(t[e]).start,e)])},this._noteClampMax=()=>{if(!this._awaitingCommandReadBack())return;let e=this._elementMaxScrollOffset();if(e===null)return;let t=this.pendingWrite,n=Math.max(e,0)+this._holdOffset;if(n>=t.target)return;let r=t.lowMaxes??=[];r[r.length-1]!==n&&r.push(n)},this.getMaxScrollOffset=()=>(this._elementMaxScrollOffset()??0)+this._holdOffset,this._toLayoutOffset=e=>{let t=e+this._holdOffset;return this.pendingScrollAnchor?.kind===`anchor`&&(t+=this.pendingScrollAnchor.delta),t},this._elementMaxScrollOffset=()=>{let e=this.scrollElement;if(e===null)return null;if(`scrollHeight`in e)return this.options.horizontal?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight;if(`document`in e){let t=e.document.documentElement;return this.options.horizontal?t.scrollWidth-e.innerWidth:t.scrollHeight-e.innerHeight}return null},this._momentumStop=null,this._stopMomentum=e=>{let t=this.scrollElement,n=this.targetWindow;if(t===null||n===null)return;let r=`document`in t?t.document.scrollingElement:t;if(!r?.style)return;if(this._momentumStop){this._momentumStop.done=e;return}let{style:i}=r,a=this.options.horizontal?`overflow-x`:`overflow-y`,o=i.getPropertyValue(a),s=i.getPropertyPriority(a);i.setProperty(a,`hidden`,`important`);let c={restore:()=>i.getPropertyValue(a)!==`hidden`||i.getPropertyPriority(a)!==`important`?!1:(i.setProperty(a,o,s),!0),done:e};this._momentumStop=c,n.requestAnimationFrame(()=>n.requestAnimationFrame(()=>{this._momentumStop===c&&(this._momentumStop=null,c.restore()&&c.done())}))},this._clampedBy=e=>{let t=this._elementMaxScrollOffset();if(t===null)return null;let n=t+this._holdOffset;return e>n+.5?{target:e,maxAtWrite:n}:null},this.getVirtualDistanceFromEnd=()=>Math.max(this._getLayoutTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1){let e=this.getMaxScrollOffset(),n=e-this.options.paddingEnd+this.options.scrollPaddingEnd;return[Math.max(Math.min(n,e),0),t]}let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._startScroll({index:null,align:t},this.getOffsetForAlignment(e,t),n,`absolute`)},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r;this._startScroll({index:e,align:a},i,n,`absolute`)},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getOffsetForAlignment((this.getCommandWrittenOffset()??this.getScrollOffset())+e,`start`);this._startScroll({index:null,align:`start`},n,t,`relative`)},this.scrollToEnd=({behavior:e=`auto`}={})=>{this.options.count>0?this._startScroll({index:this.options.count-1,align:`end`,toEnd:!0},Math.max(this.getMaxScrollOffset(),0),e,`absolute`):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.cancelScroll=()=>{this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null},this.getTotalSize=()=>Math.max(this._getLayoutTotalSize()-this._holdOffset,0),this._getLayoutTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._singleLaneMeasurements?.flat;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n}={})=>{let r={target:e+(t??0),smooth:n===`smooth`};return this.pendingWrite=r,this.options.scrollToFn(e-this._holdOffset,{behavior:n,adjustments:t},this),r},this.getCommandWrittenOffset=()=>this.scrollState!==null&&this.pendingWrite!==null&&!this.pendingWrite.smooth?this.pendingWrite.target:null,this._awaitingCommandReadBack=()=>{let e=this.getCommandWrittenOffset();return!(Wi()&&this._iosGesture.dragging())&&e!==null&&!Fi(e,this.getScrollOffset())},this._followOffsetTarget=e=>{this.scrollState!==null&&this.scrollState.index==null&&(this.scrollState.lastTargetOffset+=e)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}get scrollAdjustments(){return 0}applyScrollAdjustment(e,t){if(e===0)return!1;if(this._followOffsetTarget(e),this._canWriteScroll()){let n=this.getScrollOffset();this._clampedAdjustment=this._clampedBy(n+e);let r=this._scrollToOffset(n,{adjustments:e,behavior:t});return this.scrollOffset!==null&&(this.pendingWrite===r&&(this.scrollOffset+=e),this.scrollOffset<0&&(this.scrollOffset=0)),!0}return this._holdOffset+=e,this.scrollOffset!==null&&(this.scrollOffset+=e),!0}scheduleScrollReconcile(){this.targetWindow?this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}):this.scrollState=null}getScrollStateTarget(e){let t=e.toEnd?[Math.max(this.getMaxScrollOffset(),0)]:e.index==null?void 0:this.getOffsetForIndex(e.index,e.align);return t?t[0]:e.lastTargetOffset}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}if(this.scrollState.phase===`queued`){this.scheduleScrollReconcile();return}this.getMeasurements();let e=this.getScrollStateTarget(this.scrollState),t=this.scrollState.index==null?1:this.options.useAnimationFrameWithResizeObserver?3:2,n=e!==this.scrollState.lastTargetOffset;if(!n&&Fi(e,this.getScrollOffset())){if(this.scrollState.phase===`smooth`?this.scrollState.phase=`smoothLanded`:this.scrollState.phase===`smoothFinishing`&&(this.scrollState.phase=`instant`),this.scrollState.stableFrames++,this.scrollState.stableFrames>=t){this.getScrollOffset()!==e&&this._scrollToOffset(e,{behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let t=this.getSize()||600,n=Math.abs(e-this.getScrollOffset()),r=sa(this.scrollState)&&n>t;this.scrollState.lastTargetOffset=e,r?this.scrollState.phase=`smooth`:this.scrollState.phase===`smooth`?this.scrollState.phase=`smoothFinishing`:this.scrollState.phase===`smoothLanded`&&(this.scrollState.phase=`instant`),this._scrollToOffset(e,{behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}_startScroll(e,t,n,r){this.pendingScrollAnchor=null,this._clampedAdjustment=null;let i=this._iosGesture.tail();if(r===`absolute`&&i!==null){if(i===`fling`&&Ki()){this._stopMomentum(()=>{this.scrollState?.phase!==`queued`||this._iosGesture.tail()!==`fling`||this._reportedOverscroll||(this._iosGesture.end(),this._flushHoldIfReady(!0),this._writeAwaitingCommand())}),this.scrollState={...e,startedAt:this.now(),lastTargetOffset:t,stableFrames:0,phase:`queued`,behavior:n,samples:[]},this.scheduleScrollReconcile();return}this._iosGesture.end()}this.scrollState={...e,startedAt:this.now(),lastTargetOffset:t,stableFrames:0,behavior:n,phase:oa(n,e.index!=null&&Fi(t,this.getScrollOffset()))},this._scrollToOffset(t,{behavior:n}),this.scheduleScrollReconcile()}},ua=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function da(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function fa(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=da(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=ua(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}function pa(e){let t=new la(Y(e)),n=j(t),r=t._didMount();return K(()=>Y(e).getScrollElement(),e=>{e&&t._willUpdate()},{immediate:!0}),K(()=>Y(e),e=>{t.setOptions({...e,onChange:(t,r)=>{var i;qe(n),(i=e.onChange)==null||i.call(e,t,r)}}),t._willUpdate(),qe(n)},{immediate:!0}),c(r),n}function ma(e){return pa(V(()=>({observeElementRect:$i,observeElementOffset:ra,scrollToFn:aa,...Y(e)})))}var ha=q({__name:`ListboxVirtualizer`,props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){let t=e,n=Et(),r=gi(),i=_n(),{getItems:a}=xn();r.isVirtual.value=!0;let o=V(()=>{let e=i.value;if(e){let t=window.getComputedStyle(e);return{start:Number.parseFloat(t.paddingBlockStart||t.paddingTop),end:Number.parseFloat(t.paddingBlockEnd||t.paddingBottom)}}return{start:0,end:0}}),s=ma({get scrollPaddingStart(){return o.value.start},get scrollPaddingEnd(){return o.value.end},get count(){return t.options.length},get horizontal(){return r.orientation.value===`horizontal`},estimateSize(e){return typeof t.estimateSize==`function`?t.estimateSize(e):t.estimateSize??28},getScrollElement(){return i.value},overscan:t.overscan??12}),c=V(()=>s.value.getVirtualItems().map(e=>{let r=n.default({option:t.options[e.index],virtualizer:s.value,virtualItem:e})[0],i=r.type===R&&Array.isArray(r.children)?r.children.find(e=>typeof e.type!=`symbol`):r;return{item:e,is:w(i,{key:`${e.key}`,"data-index":e.index,"aria-setsize":t.options.length,"aria-posinset":e.index+1,style:{position:`absolute`,top:0,left:0,transform:`translateY(${e.start}px)`,overflowAnchor:`none`}})}}));r.virtualFocusHook.on(({event:e,scroll:n})=>{let o=t.options.findIndex(e=>Array.isArray(r.modelValue.value)?fi(e,r.modelValue.value[0],r.by):fi(e,r.modelValue.value,r.by));o===-1?n?r.highlightFirstItem():requestAnimationFrame(()=>{let e=a().find(e=>e.ref.dataset.disabled!==``)?.ref;e&&r.changeHighlight(e,!1,!1)}):(e?.preventDefault(),s.value.scrollToIndex(o,{align:`start`}),requestAnimationFrame(()=>{let t=ui(i.value);if(t){let i=e?!0:n?void 0:!1;r.changeHighlight(t,n,i)}}))}),r.virtualHighlightHook.on(e=>{let n=t.options.findIndex(t=>fi(t,e,r.by));s.value.scrollToIndex(n,{align:`start`}),requestAnimationFrame(()=>{let e=ui(i.value);e&&r.changeHighlight(e)})});let l=Rn(``,1e3),u=V(()=>{let e=e=>t.textContent?t.textContent(e):e?.toString().toLowerCase();return t.options.map((t,n)=>({index:n,textContent:e(t)}))});function d(e,n){if(!r.firstValue?.value||!r.multiple.value||!Array.isArray(r.modelValue.value))return;let i=a().filter(e=>e.ref.dataset.disabled!==``).find(e=>e.ref===r.highlightedElement.value)?.value;if(!i)return;let o=null;switch(n){case`prev`:case`next`:o=pr(t.options,r.firstValue.value,i);break;case`first`:o=pr(t.options,r.firstValue.value,t.options?.[0]);break;case`last`:o=pr(t.options,r.firstValue.value,t.options.at(-1))}r.modelValue.value=o}return r.virtualKeydownHook.on(e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n)return;let o=pi[e.key];if(n&&e.key===`a`&&r.multiple.value?(e.preventDefault(),r.modelValue.value=[...t.options],o=`last`):e.shiftKey&&o&&d(e,o),[`first`,`last`].includes(o)){e.preventDefault();let n=o===`first`?0:t.options.length-1;s.value.scrollToIndex(n),requestAnimationFrame(()=>{let e=a(),t=o===`first`?e[0]:e.at(-1);t&&r.changeHighlight(t.ref)})}else if(!o&&!n){l.value+=e.key;let t=Number(gn()?.getAttribute(`data-index`)),n=u.value[t].textContent,a=Xr(u.value.map(e=>e.textContent??``),l.value,n),o=u.value.find(e=>e.textContent===a);o&&(s.value.scrollToIndex(o.index,{align:`start`}),requestAnimationFrame(()=>{let e=i.value.querySelector(`[data-index="${o.index}"]`);e instanceof HTMLElement&&r.changeHighlight(e)}))}}),(e,t)=>(H(),J(`div`,{"data-reka-virtualizer":``,style:p({position:`relative`,width:`100%`,height:`${Y(s).getTotalSize()}px`})},[(H(!0),J(R,null,yt(c.value,({is:e,item:t})=>(H(),x(Fe(e),{key:t.index}))),128))],4))}}),[ga,_a]=vn(`PopperRoot`),va=q({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=S();return _a({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>M(e.$slots,`default`)}}),ya=q({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=Q(),i=ga();return Ie(()=>{i.onAnchorChange(t.reference??r.value)}),(t,r)=>(H(),x(Y(Z),{ref:Y(n),as:e.as,"as-child":e.asChild},{default:W(()=>[M(t.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}}),ba={key:0,d:`M0 0L6 6L12 0`},xa={key:1,d:`M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0`},Sa=q({__name:`Arrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return Q(),(n,r)=>(H(),x(Y(Z),m(t,{width:e.width,height:e.height,viewBox:e.asChild?void 0:`0 0 12 6`,preserveAspectRatio:e.asChild?void 0:`none`}),{default:W(()=>[M(n.$slots,`default`,{},()=>[e.rounded?(H(),J(`path`,xa)):(H(),J(`path`,ba))])]),_:3},16,[`width`,`height`,`viewBox`,`preserveAspectRatio`]))}});function Ca(e){return e!==null}function wa(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]=Ta(n),u={start:e.dir===`rtl`?`100%`:`0%`,center:`50%`,end:e.dir===`rtl`?`0%`:`100%`}[l],d={start:`0%`,center:`50%`,end:`100%`}[l],f=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,m=``,h=``;return c===`bottom`?(m=a?u:`${f}px`,h=`${-s}px`):c===`top`?(m=a?u:`${f}px`,h=`${r.floating.height+s}px`):c===`right`?(m=`${-s}px`,h=a?d:`${p}px`):c===`left`&&(m=`${r.floating.width+s}px`,h=a?d:`${p}px`),{data:{x:m,y:h}}}}}function Ta(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ea=[`top`,`right`,`bottom`,`left`],Da=Math.min,Oa=Math.max,ka=Math.round,Aa=Math.floor,ja=e=>({x:e,y:e}),Ma={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Na(e,t,n){return Oa(e,Da(t,n))}function Pa(e,t){return typeof e==`function`?e(t):e}function Fa(e){return e.split(`-`)[0]}function Ia(e){return e.split(`-`)[1]}function La(e){return e===`x`?`y`:`x`}function Ra(e){return e===`y`?`height`:`width`}function za(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ba(e){return La(za(e))}function Va(e,t,n){n===void 0&&(n=!1);let r=Ia(e),i=Ba(e),a=Ra(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Xa(o)),[o,Xa(o)]}function Ha(e){let t=Xa(e);return[Ua(e),t,Ua(t)]}function Ua(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Wa=[`left`,`right`],Ga=[`right`,`left`],Ka=[`top`,`bottom`],qa=[`bottom`,`top`];function Ja(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ga:Wa:t?Wa:Ga;case`left`:case`right`:return t?Ka:qa;default:return[]}}function Ya(e,t,n,r){let i=Ia(e),a=Ja(Fa(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ua)))),a}function Xa(e){let t=Fa(e);return Ma[t]+e.slice(t.length)}function Za(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Qa(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Za(e)}function $a(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 eo(e,t,n){let{reference:r,floating:i}=e,a=za(t),o=Ba(t),s=Ra(o),c=Fa(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=Ia(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function to(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}=Pa(t,e),p=Qa(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=$a(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=$a(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 no=50,ro=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:to},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=eo(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<no&&(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}=eo(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},io=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}=Pa(e,t)||{};if(l==null)return{};let d=Qa(u),f={x:n,y:r},p=Ba(i),m=Ra(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=Da(d[_],T),D=Da(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Na(E,k,O),j=!c.arrow&&Ia(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),ao=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}=Pa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Fa(r),_=za(o),v=Fa(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Xa(o)]:Ha(o)),x=p!==`none`;!d&&x&&b.push(...Ya(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=Va(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`||_===za(t)||T.every(e=>za(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=za(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 oo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function so(e){return Ea.some(t=>e[t]>=0)}var co=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Pa(e,t);switch(i){case`referenceHidden`:{let e=oo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:so(e)}}}case`escaped`:{let e=oo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:so(e)}}}default:return{}}}}},lo=new Set([`left`,`top`]);async function uo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Fa(n),s=Ia(n),c=za(n)===`y`,l=lo.has(o)?-1:1,u=a&&c?-1:1,d=Pa(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 fo=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 uo(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}}}}},po=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}=Pa(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=za(i),p=La(f),m=u[p],h=u[f],g=(e,t)=>Na(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}}}}}},mo=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}=Pa(e,t),u={x:n,y:r},d=za(i),f=La(d),p=u[f],m=u[d],h=Pa(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=lo.has(Fa(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}}}},ho=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}=Pa(e,t),c=await i.detectOverflow(t,s),l=Fa(n),u=Ia(n),d=za(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=Da(p-c[m],g),y=Da(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*Oa(c.left,c.right):S=p-2*Oa(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 go(){return typeof window<`u`}function _o(e){return yo(e)?(e.nodeName||``).toLowerCase():`#document`}function $(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vo(e){return((yo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function yo(e){return go()?e instanceof Node||e instanceof $(e).Node:!1}function bo(e){return go()?e instanceof Element||e instanceof $(e).Element:!1}function xo(e){return go()?e instanceof HTMLElement||e instanceof $(e).HTMLElement:!1}function So(e){return!go()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof $(e).ShadowRoot}function Co(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Po(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function wo(e){return/^(table|td|th)$/.test(_o(e))}function To(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Eo=/transform|translate|scale|rotate|perspective|filter/,Do=/paint|layout|strict|content/,Oo=e=>!!e&&e!==`none`,ko;function Ao(e){let t=bo(e)?Po(e):e;return Oo(t.transform)||Oo(t.translate)||Oo(t.scale)||Oo(t.rotate)||Oo(t.perspective)||!Mo()&&(Oo(t.backdropFilter)||Oo(t.filter))||Eo.test(t.willChange||``)||Do.test(t.contain||``)}function jo(e){let t=Io(e);for(;xo(t)&&!No(t);){if(Ao(t))return t;if(To(t))return null;t=Io(t)}return null}function Mo(){return ko??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ko}function No(e){return/^(html|body|#document)$/.test(_o(e))}function Po(e){return $(e).getComputedStyle(e)}function Fo(e){return bo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Io(e){if(_o(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||So(e)&&e.host||vo(e);return So(t)?t.host:t}function Lo(e){let t=Io(e);return No(t)?(e.ownerDocument||e).body:xo(t)&&Co(t)?t:Lo(t)}function Ro(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Lo(e),i=r===e.ownerDocument?.body,a=$(r);if(i){let e=zo(a);return t.concat(a,a.visualViewport||[],Co(r)?r:[],e&&n?Ro(e):[])}return t.concat(r,Ro(r,[],n))}function zo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bo(e){let t=Po(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=xo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ka(n)!==a||ka(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Vo(e){return bo(e)?e:e.contextElement}function Ho(e){let t=Vo(e);if(!xo(t))return ja(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Bo(t),o=(a?ka(n.width):n.width)/r,s=(a?ka(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Uo=ja(0);function Wo(e){let t=$(e);return!Mo()||!t.visualViewport?Uo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Go(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===$(e)}function Ko(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Vo(e),o=ja(1);t&&(r?bo(r)&&(o=Ho(r)):o=Ho(e));let s=Go(a,n,r)?Wo(a):ja(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=$(a),t=bo(r)?$(r):r,n=e,i=zo(n);for(;i&&t!==n;){let e=Ho(i),t=i.getBoundingClientRect(),r=Po(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=$(i),i=zo(n)}}return $a({width:u,height:d,x:c,y:l})}function qo(e,t){let n=Fo(e).scrollLeft;return t?t.left+n:Ko(vo(e)).left+n}function Jo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-qo(e,n),y:n.top+t.scrollTop}}function Yo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=vo(r),s=t?To(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ja(1),u=ja(0),d=xo(r);if((d||!a)&&((_o(r)!==`body`||Co(o))&&(c=Fo(r)),d)){let e=Ko(r);l=Ho(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Jo(o,c):ja(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 Xo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Zo(e){let t=Fo(e),n=e.ownerDocument.body,r=Oa(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Oa(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+qo(e),o=-t.scrollTop;return Po(n).direction===`rtl`&&(a+=Oa(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Qo=25;function $o(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=$(e),a=vo(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Mo()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(qo(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<=Qo&&(s-=o)}return{width:s,height:c,x:l,y:u}}function es(e,t){let n=Ko(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ho(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ts(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=$o(e,n,t);else if(t===`document`)r=Zo(vo(e));else if(bo(t))r=es(t,n);else{let n=Wo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $a(r)}function ns(e,t){let n=t.get(e);if(n)return n;let r=Ro(e,[],!1).filter(e=>bo(e)&&_o(e)!==`body`),i=null,a=Po(e).position===`fixed`,o=a?Io(e):e;for(;bo(o)&&!No(o);){let e=Po(o),t=Ao(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Io(o)}return t.set(e,r),r}function rs(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?To(t)?[]:ns(t,this._c):[].concat(n),r],o=ts(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=ts(t,a[e],i);s=Oa(n.top,s),c=Da(n.right,c),l=Da(n.bottom,l),u=Oa(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function is(e){let{width:t,height:n}=Bo(e);return{width:t,height:n}}function as(e,t,n){let r=xo(t),i=vo(t),a=n===`fixed`,o=Ko(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ja(0);if((r||!a)&&((_o(t)!==`body`||Co(i))&&(s=Fo(t)),r)){let e=Ko(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=qo(i));let l=i&&!r&&!a?Jo(i,s):ja(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 os(e){return Po(e).position===`static`}function ss(e,t){if(!xo(e)||Po(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return vo(e)===n&&(n=n.ownerDocument.body),n}function cs(e,t){let n=$(e);if(To(e))return n;if(!xo(e)){let t=Io(e);for(;t&&!No(t);){if(bo(t)&&!os(t))return t;t=Io(t)}return n}let r=ss(e,t);for(;r&&wo(r)&&os(r);)r=ss(r,t);return r&&No(r)&&os(r)&&!Ao(r)?n:r||jo(e)||n}var ls=async function(e){let t=this.getOffsetParent||cs,n=this.getDimensions,r=await n(e.floating);return{reference:as(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function us(e){return Po(e).direction===`rtl`}var ds={convertOffsetParentRelativeRectToViewportRelativeRect:Yo,getDocumentElement:vo,getClippingRect:rs,getOffsetParent:cs,getElementRects:ls,getClientRects:Xo,getDimensions:is,getScale:Ho,isElement:bo,isRTL:us};function fs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ps(e,t,n){let r=null,i,a=vo(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=Aa(d),h=Aa(a.clientWidth-(u+f)),g=Aa(a.clientHeight-(d+p)),_=Aa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Oa(0,Da(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!fs(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=$(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ms(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=Vo(e),u=i||a?[...l?Ro(l):[],...t?Ro(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ps(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?Ko(e):null;c&&g();function g(){let t=Ko(e);h&&!fs(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 hs=fo,gs=po,_s=ao,vs=ho,ys=co,bs=io,xs=mo,Ss=(e,t,n)=>{let r=new Map,i=n??{},a={...ds,...i.platform,_c:r};return ro(e,t,{...i,platform:a})};function Cs(e){return typeof e==`object`&&!!e&&`$el`in e}function ws(e){if(Cs(e)){let t=e.$el;return yo(t)&&_o(t)===`#comment`?null:t}return e}function Ts(e){return{name:`arrow`,options:e,fn(t){let r=ws(n(e.element));return r==null?{}:bs({element:r,padding:e.padding}).fn(t)}}}function Es(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ds(e,t){let n=Es(e);return Math.round(t*n)/n}function Os(e,t,r){r===void 0&&(r={});let i=r.whileElementsMounted,a=V(()=>n(r.open)??!0),o=V(()=>n(r.middleware)),s=V(()=>n(r.placement)??`bottom`),l=V(()=>n(r.strategy)??`absolute`),u=V(()=>n(r.transform)??!0),d=V(()=>ws(e.value)),f=V(()=>ws(t.value)),p=S(0),m=S(0),h=S(l.value),g=S(s.value),_=j({}),v=S(!1),y=V(()=>{let e={position:h.value,left:`0`,top:`0`};if(!f.value)return e;let t=Ds(f.value,p.value),n=Ds(f.value,m.value);return u.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...Es(f.value)>=1.5&&{willChange:`transform`}}:{position:h.value,left:t+`px`,top:n+`px`}}),b;function x(){if(d.value==null||f.value==null)return;let e=a.value;Ss(d.value,f.value,{middleware:o.value,placement:s.value,strategy:l.value}).then(t=>{p.value=t.x,m.value=t.y,h.value=t.strategy,g.value=t.placement,_.value=t.middlewareData,v.value=e!==!1})}function C(){typeof b==`function`&&(b(),b=void 0)}function w(){C(),i===void 0?x():d.value!=null&&f.value!=null&&(b=i(d.value,f.value,x))}function T(){a.value||(v.value=!1)}return K([o,s,l,a],x,{flush:`sync`}),K([d,f],w,{flush:`sync`}),K(a,T,{flush:`sync`}),L()&&c(C),{x:vt(p),y:vt(m),strategy:vt(h),placement:vt(g),middlewareData:vt(_),isPositioned:vt(v),floatingStyles:y,update:x}}var ks=[`dir`],As={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[js,Ms]=vn(`PopperContent`),Ns=q({inheritAttrs:!1,__name:`PopperContent`,props:be({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...As}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=ga(),{forwardRef:a,currentElement:o}=Q(),s=Dr(V(()=>n.dir)),c=S(),l=S(),{width:d,height:f}=qr(l),h=V(()=>n.side+(n.align===`center`?``:`-${n.align}`)),g=V(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),_=V(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),v=V(()=>({padding:g.value,boundary:_.value.filter(Ca),altBoundary:_.value.length>0})),y=V(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),b=V(()=>[hs({mainAxis:n.sideOffset+f.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&_s({...v.value,...y.value}),n.avoidCollisions&&gs({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?xs():void 0,...v.value}),!n.prioritizePosition&&n.avoidCollisions&&_s({...v.value,...y.value}),vs({...v.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),l.value&&Ts({element:l.value,padding:n.arrowPadding}),wa({arrowWidth:d.value,arrowHeight:f.value,dir:s.value}),n.hideWhenDetached&&ys({strategy:`referenceHidden`,...v.value})]),{floatingStyles:C,placement:w,isPositioned:T,middlewareData:E,update:D}=Os(V(()=>n.reference??i.anchor.value),c,{strategy:n.positionStrategy,placement:h,whileElementsMounted:(...e)=>ms(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:b}),O=V(()=>Ta(w.value)[0]),k=V(()=>Ta(w.value)[1]);Ie(()=>{T.value&&r(`placed`)});let A=V(()=>{let e=E.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),j=S(``);return Xe(()=>{o.value&&(j.value=window.getComputedStyle(o.value).zIndex)}),Ms({placedSide:O,onArrowChange:e=>l.value=e,arrowX:V(()=>E.value.arrow?.x??0),arrowY:V(()=>E.value.arrow?.y??0),shouldHideArrow:A}),(e,t)=>(H(),J(`div`,{ref_key:`floatingRef`,ref:c,"data-reka-popper-content-wrapper":``,dir:Y(s),style:p({...Y(C),transform:Y(T)?Y(C).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:j.value,"--reka-popper-transform-origin":[Y(E).transformOrigin?.x,Y(E).transformOrigin?.y].join(` `),...Y(E).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[n.memoDependencies?u([n.asChild,n.as,O.value,k.value,Y(T),...Object.values(e.$attrs),...n.memoDependencies],()=>(H(),x(Y(Z),m({key:0,ref:Y(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":O.value,"data-align":k.value,style:{animation:Y(T)?void 0:`none`}}),{default:W(()=>[M(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])),t,0):(H(),x(Y(Z),m({key:1,ref:Y(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":O.value,"data-align":k.value,dir:Y(s),style:{animation:Y(T)?void 0:`none`}}),{default:W(()=>[M(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`dir`,`style`]))],12,ks))}}),Ps={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Fs=q({inheritAttrs:!1,__name:`PopperArrow`,props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let{forwardRef:t}=Q(),n=js(),r=V(()=>Ps[n.placedSide.value]);return(i,a)=>(H(),J(`span`,{ref:e=>{Y(n).onArrowChange(e??void 0)},style:p({position:`absolute`,left:Y(n).arrowX?.value?`${Y(n).arrowX?.value}px`:void 0,top:Y(n).arrowY?.value?`${Y(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[Y(n).placedSide.value],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[Y(n).placedSide.value],visibility:Y(n).shouldHideArrow.value?`hidden`:void 0})},[G(Sa,m(i.$attrs,{ref:Y(t),style:{display:`block`},as:e.as,"as-child":e.asChild,rounded:e.rounded,width:e.width,height:e.height}),{default:W(()=>[M(i.$slots,`default`)]),_:3},16,[`as`,`as-child`,`rounded`,`width`,`height`])],4))}});function Is(e){let t=S(`inline`),n=S(!1),r=S(),i=V(()=>t.value===`popper`&&!n.value),a;yi({suppressHighlightScroll:i,onHighlightScrollRequest(e){a=e}});function o(e,i){(r.value!==e||t.value!==i)&&(n.value=!1,a=void 0),r.value=e,t.value=i}function s(i){if(r.value!==i||t.value!==`popper`||n.value)return;n.value=!0;let o=a;a=void 0,e.value&&o?.()}function c(e){r.value===e&&(r.value=void 0,t.value=`inline`,n.value=!1,a=void 0)}return{onContentPositionChange:o,onContentPlaced:s,onContentUnmount:c}}var[Ls,Rs]=vn(`ComboboxRoot`),zs=q({__name:`ComboboxRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},openOnFocus:{type:Boolean,required:!1,default:!1},openOnClick:{type:Boolean,required:!1,default:!1},ignoreFilter:{type:Boolean,required:!1},resetModelValueOnClear:{type:Boolean,required:!1,default:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1,default:!0},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=n,{primitiveElement:a,currentElement:o}=Nn(),{multiple:s,disabled:c,ignoreFilter:l,resetSearchTermOnSelect:u,openOnFocus:d,openOnClick:f,dir:p,resetModelValueOnClear:h,highlightOnHover:g,loop:_,unmountOnHide:v}=pe(r),y=Dr(p),C=hn(r,`modelValue`,i,{defaultValue:r.defaultValue??(s.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),w=hn(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});async function T(e){w.value=e,I.value=``,e?(await z(),a.value?.highlightSelected(),D.value=!0,k.value?.focus()):(D.value=!1,setTimeout(()=>{!e&&r.resetSearchTermOnBlur&&E.trigger()},1))}let E=In(),D=S(!1),O=S(!1),k=S(),A=S(),j=V(()=>a.value?.highlightedElement??void 0),N=Is(w),ee=S(new Map),te=S(new Map),{contains:P}=Or({sensitivity:`base`}),I=S(``),ne=V(e=>{if(!I.value||r.ignoreFilter||O.value)return{count:ee.value.size,items:e?.items??new Map,groups:e?.groups??new Set(te.value.keys())};let t=0,n=new Map,i=new Set;for(let[e,r]of ee.value){let i=P(r,I.value);n.set(e,+!!i),i&&t++}for(let[e,t]of te.value)for(let r of t)if(n.get(r)>0){i.add(e);break}return{count:t,items:n,groups:i}}),L=Dt();return b(()=>{L?.exposed&&(L.exposed.highlightItem=a.value?.highlightItem,L.exposed.highlightFirstItem=a.value?.highlightFirstItem,L.exposed.highlightSelected=a.value?.highlightSelected)}),t({filtered:ne,highlightedElement:j,highlightItem:a.value?.highlightItem,highlightFirstItem:a.value?.highlightFirstItem,highlightSelected:a.value?.highlightSelected}),Rs({modelValue:C,multiple:s,disabled:c,open:w,onOpenChange:T,...N,contentId:``,isUserInputted:D,isVirtual:O,inputElement:k,highlightedElement:j,onInputElementChange:e=>k.value=e,triggerElement:A,onTriggerElementChange:e=>A.value=e,parentElement:o,resetSearchTermOnSelect:u,onResetSearchTerm:E.on,allItems:ee,allGroups:te,filterSearch:I,filterState:ne,ignoreFilter:l,openOnFocus:d,openOnClick:f,resetModelValueOnClear:h,unmountOnHide:v}),(t,n)=>(H(),x(Y(va),null,{default:W(()=>[G(Y(bi),m({ref_key:`primitiveElement`,ref:a},t.$attrs,{modelValue:Y(C),"onUpdate:modelValue":n[0]||=e=>F(C)?C.value=e:null,style:{pointerEvents:Y(w)?`auto`:void 0},as:e.as,"as-child":e.asChild,dir:Y(y),multiple:Y(s),name:e.name,required:e.required,disabled:Y(c),"highlight-on-hover":Y(g),loop:Y(_),by:r.by,onHighlight:n[1]||=e=>i(`highlight`,e)}),{default:W(()=>[M(t.$slots,`default`,{open:Y(w),modelValue:Y(C)})]),_:3},16,[`modelValue`,`style`,`as`,`as-child`,`dir`,`multiple`,`name`,`required`,`disabled`,`highlight-on-hover`,`loop`,`by`])]),_:3}))}}),Bs=q({__name:`ComboboxAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{forwardRef:t}=Q();return(n,r)=>(H(),x(Y(ya),{"as-child":``,reference:e.reference},{default:W(()=>[G(Y(Z),m({ref:Y(t),"as-child":e.asChild,as:e.as},n.$attrs),{default:W(()=>[M(n.$slots,`default`)]),_:3},16,[`as-child`,`as`])]),_:3},8,[`reference`]))}}),[Vs,Hs]=vn(`ComboboxContent`),Us=q({__name:`ComboboxContentImpl`,props:{position:{type:String,required:!1,default:`inline`},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,{position:i}=pe(n),a=Ls(),o=Symbol(`ComboboxContent`);K(i,e=>a.onContentPositionChange(o,e),{immediate:!0});let s=V(()=>a.ignoreFilter.value?a.allItems.value.size===0:a.filterState.value.count===0),{forwardRef:c,currentElement:l}=Q(),u=br(n.present&&n.bodyLock);K([()=>n.present,()=>n.bodyLock],([e,t])=>u.value=e&&t),Ar(),Ur(V(()=>n.present?a.parentElement.value:void 0));let d=V(()=>{if(n.position===`popper`){let{present:e,...t}=n;return t}return{}}),f=Bn(d),p={boxSizing:`border-box`,"--reka-combobox-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-combobox-content-available-width":`var(--reka-popper-available-width)`,"--reka-combobox-content-available-height":`var(--reka-popper-available-height)`,"--reka-combobox-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-combobox-trigger-height":`var(--reka-popper-anchor-height)`};Hs({position:i});let h=S(!1);b(()=>{a.inputElement.value&&(h.value=l.value.contains(a.inputElement.value),n.present&&h.value&&a.inputElement.value.focus())}),K(()=>n.present,async(e,t)=>{if(e||!t)return;let n=gn();n&&l.value.contains(n)&&(await z(),a.triggerElement.value?.focus())}),Rt(()=>{a.onContentUnmount(o);let e=gn();h.value&&(!e||e===document.body)&&a.triggerElement.value?.focus()});function g(e){if(a.parentElement.value?.contains(e))return!0;let t=(e instanceof Element?e.closest(`label`):null)?.control;return!!t&&!!a.parentElement.value?.contains(t)}let _={placed:()=>a.onContentPlaced(o)};return(t,o)=>(H(),x(Y(xi),{"as-child":``},{default:W(()=>[G(Y(si),{"as-child":``,present:n.present,onMountAutoFocus:o[5]||=cn(()=>{},[`prevent`]),onUnmountAutoFocus:o[6]||=cn(()=>{},[`prevent`])},{default:W(()=>[G(Y(ri),{"as-child":``,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onDismiss:o[0]||=e=>Y(a).onOpenChange(!1),onFocusOutside:o[1]||=e=>{g(e.target)&&e.preventDefault(),r(`focusOutside`,e)},onInteractOutside:o[2]||=e=>r(`interactOutside`,e),onEscapeKeyDown:o[3]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:o[4]||=e=>{g(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)}},{default:W(()=>[(H(),x(Fe(Y(i)===`popper`?Y(Ns):Y(Z)),m({...t.$attrs,...Y(f)},{id:Y(a).contentId,ref:Y(c),"memo-dependencies":Y(i)===`popper`?[Y(a).filterSearch.value,Y(a).filterState.value]:void 0,"data-state":Y(a).open.value?`open`:`closed`,"data-empty":s.value?``:void 0,style:{display:n.hideWhenEmpty&&s.value?`none`:`flex`,flexDirection:`column`,outline:`none`,...Y(i)===`popper`?p:{}}},$e(Y(i)===`popper`?_:{})),{default:W(()=>[M(t.$slots,`default`)]),_:3},16,[`id`,`memo-dependencies`,`data-state`,`data-empty`,`style`]))]),_:3},8,[`present`,`disable-outside-pointer-events`])]),_:3},8,[`present`])]),_:3}))}}),Ws=q({__name:`ComboboxArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e,n=Ls(),r=Vs();return Q(),(e,i)=>Y(n).open.value&&Y(r).position.value===`popper`?(H(),x(Y(Fs),g(m({key:0},t)),{default:W(()=>[M(e.$slots,`default`)]),_:3},16)):N(`v-if`,!0)}}),Gs=q({__name:`ComboboxCancel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;Q();let n=Ls();function r(){n.inputElement.value&&(n.inputElement.value.value=``,n.inputElement.value.focus()),n.resetModelValueOnClear?.value&&(n.modelValue.value=n.multiple.value?[]:null),n.filterSearch.value=``}return(n,i)=>(H(),x(Y(Z),m({type:e.as===`button`?`button`:void 0},t,{tabindex:`-1`,onClick:r}),{default:W(()=>[M(n.$slots,`default`)]),_:3},16,[`type`]))}}),Ks=q({__name:`ComboboxContent`,props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=Nr(e,t),{forwardRef:r}=Q(),i=Ls();return i.contentId||=Gr(void 0,`reka-combobox-content`),(t,a)=>(H(),x(Y(Kn),{present:e.forceMount||Y(i).open.value,"force-mount":e.forceMount||!Y(i).unmountOnHide.value},{default:W(({present:e})=>[_e(G(Us,m({...Y(n),...t.$attrs},{ref:Y(r),present:Y(i).unmountOnHide.value||e}),{default:W(()=>[M(t.$slots,`default`)]),_:3},16,[`present`]),[[zt,Y(i).unmountOnHide.value||e]])]),_:3},8,[`present`,`force-mount`]))}}),qs=q({__name:`ComboboxEmpty`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let n=e,r=Ls(),i=V(()=>r.ignoreFilter.value?r.allItems.value.size===0:r.filterState.value.count===0);return(e,r)=>i.value?(H(),x(Y(Z),g(m({key:0},n)),{default:W(()=>[M(e.$slots,`default`,{},()=>[r[0]||=t(`No options`,-1)])]),_:3},16)):N(`v-if`,!0)}}),[Js,Ys]=vn(`ComboboxGroup`),Xs=q({__name:`ComboboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Gr(void 0,`reka-combobox-group`),r=Ls(),i=V(()=>r.ignoreFilter.value?!0:!r.filterSearch.value||r.filterState.value.groups.has(n)),a=Ys({id:n,labelId:``});return b(()=>{r.allGroups.value.has(n)||r.allGroups.value.set(n,new Set)}),Rt(()=>{r.allGroups.value.delete(n)}),(e,r)=>(H(),x(Y(Ti),m({id:Y(n),"aria-labelledby":Y(a).labelId},t,{hidden:!i.value||void 0}),{default:W(()=>[M(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`hidden`]))}}),Zs=q({__name:`ComboboxInput`,props:{displayValue:{type:Function,required:!1},modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=Ls(),a=gi(),{primitiveElement:o,currentElement:s}=Nn(),c=hn(n,`modelValue`,r,{passive:n.modelValue===void 0});b(()=>{s.value&&i.onInputElementChange(s.value)});let{isComposing:l,shouldDeferInput:u,handleCompositionStart:d,handleCompositionUpdate:f,handleCompositionEnd:p}=Er(e=>{let t=e.target;t&&h(t.value)});function m(e){l.value||(e.preventDefault(),i.open.value||i.onOpenChange(!0))}function h(e){i.open.value?i.filterSearch.value=e:(i.onOpenChange(!0),z(()=>{e&&(i.filterSearch.value=e,a.highlightFirstItem())}))}function g(e){u.value||h(e.target.value)}function _(){i.openOnFocus.value&&!i.open.value&&i.onOpenChange(!0)}function v(e){if(!i.open.value)return;let t=e.relatedTarget;if(!t)return;let n=i.parentElement.value?.contains(t),r=document.getElementById(i.contentId)?.contains(t);!n&&!r&&requestAnimationFrame(()=>{if(!i.open.value)return;let e=document.activeElement;!i.parentElement.value?.contains(e)&&!document.getElementById(i.contentId)?.contains(e)&&i.onOpenChange(!1)})}function y(){i.openOnClick.value&&!i.open.value&&i.onOpenChange(!0)}function S(){let e=i.modelValue.value;n.displayValue?c.value=n.displayValue(e):!i.multiple.value&&e&&!Array.isArray(e)?typeof e==`object`?c.value=``:c.value=e.toString():c.value=``,z(()=>{c.value=c.value})}return i.onResetSearchTerm(()=>{S()}),K(i.modelValue,async()=>{!i.isUserInputted.value&&i.resetSearchTermOnSelect.value&&S()},{immediate:!0,deep:!0}),K(i.filterState,(e,t)=>{!i.isVirtual.value&&t.count===0&&a.highlightFirstItem()}),(t,n)=>(H(),x(Y(Si),{ref_key:`primitiveElement`,ref:o,modelValue:Y(c),"onUpdate:modelValue":n[0]||=e=>F(c)?c.value=e:null,as:e.as,"as-child":e.asChild,"auto-focus":e.autoFocus,disabled:e.disabled,"aria-expanded":Y(i).open.value,"aria-controls":Y(i).contentId,"aria-autocomplete":`list`,role:`combobox`,autocomplete:`off`,onClick:y,onInput:g,onKeydown:on(m,[`down`,`up`]),onFocus:_,onBlur:v,onCompositionstart:Y(d),onCompositionupdate:Y(f),onCompositionend:Y(p)},{default:W(()=>[M(t.$slots,`default`)]),_:3},8,[`modelValue`,`as`,`as-child`,`auto-focus`,`disabled`,`aria-expanded`,`aria-controls`,`onCompositionstart`,`onCompositionupdate`,`onCompositionend`]))}}),Qs=q({__name:`ComboboxItem`,props:{textValue:{type:String,required:!1},value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=Gr(void 0,`reka-combobox-item`),o=Ls(),s=Js(null),{primitiveElement:c,currentElement:l}=Nn();if(r.value===``)throw Error(`A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.`);let d=V(()=>{if(o.isVirtual.value||o.ignoreFilter.value||!o.filterSearch.value)return!0;{let e=o.filterState.value.items.get(a);return e===void 0||e>0}});return b(()=>{o.allItems.value.set(a,r.textValue||l.value.textContent||l.value.innerText);let e=s?.id;e&&(o.allGroups.value.has(e)?o.allGroups.value.get(e)?.add(a):o.allGroups.value.set(e,new Set([a])))}),Rt(()=>{o.allItems.value.delete(a)}),(n,s)=>d.value?u([d.value,Y(o).filterSearch.value,Y(o).disabled.value,e.disabled,r.value,r.as,r.asChild,...Object.values(n.$attrs)],()=>(H(),x(Y(ki),m({key:0},r,{id:Y(a),ref_key:`primitiveElement`,ref:c,disabled:Y(o).disabled.value||e.disabled,onSelect:s[0]||=t=>{i(`select`,t),!t.defaultPrevented&&(!Y(o).multiple.value&&!e.disabled&&!Y(o).disabled.value?(t.preventDefault(),Y(o).onOpenChange(!1),Y(o).modelValue.value=r.value):Y(o).multiple.value&&Y(o).inputElement.value?.focus())}}),{default:W(r=>[M(n.$slots,`default`,g(Ye(r)),()=>[t(ce(e.value),1)])]),_:3},16,[`id`,`disabled`])),s,1):N(`v-if`,!0)}}),$s=q({__name:`ComboboxItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e;return(e,n)=>(H(),x(Y(Ai),g(Ye(t)),{default:W(()=>[M(e.$slots,`default`)]),_:3},16))}}),ec=q({__name:`ComboboxLabel`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e;Q();let n=Js({id:``,labelId:``});return n.labelId||=Gr(void 0,`reka-combobox-group-label`),(e,r)=>(H(),x(Y(Z),m(t,{id:Y(n).labelId}),{default:W(()=>[M(e.$slots,`default`)]),_:3},16,[`id`]))}}),tc=q({__name:`ComboboxPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(H(),x(Y(ar),g(Ye(t)),{default:W(()=>[M(e.$slots,`default`)]),_:3},16))}}),nc=q({__name:`ComboboxSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return Q(),(e,n)=>(H(),x(Y(Z),m(t,{"aria-hidden":`true`}),{default:W(()=>[M(e.$slots,`default`)]),_:3},16))}}),rc=q({__name:`ComboboxTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n,currentElement:r}=Q(),i=Ls(),a=V(()=>t.disabled||i.disabled.value||!1);return b(()=>{r.value&&i.onTriggerElementChange(r.value)}),(r,o)=>(H(),x(Y(Z),m(t,{ref:Y(n),type:e.as===`button`?`button`:void 0,tabindex:`-1`,"aria-label":`Show popup`,"aria-haspopup":`listbox`,"aria-expanded":Y(i).open.value,"aria-controls":Y(i).contentId,"data-state":Y(i).open.value?`open`:`closed`,disabled:a.value,"data-disabled":a.value?``:void 0,"aria-disabled":a.value??void 0,onClick:o[0]||=e=>Y(i).onOpenChange(!Y(i).open.value)}),{default:W(()=>[M(r.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`aria-disabled`]))}}),ic=q({__name:`ComboboxVirtualizer`,props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){let t=e,n=Ls();return n.isVirtual.value=!0,(e,n)=>(H(),x(ha,g(Ye(t)),{default:W(t=>[M(e.$slots,`default`,g(Ye(t)))]),_:3},16))}});function ac(){let{contains:e,startsWith:t}=Or({sensitivity:`base`});function n(n,r){return e(n,r)?e(r,n)?0:t(n,r)?1:2:null}function r(e,t,r){if(typeof e!=`object`||!e)return n(String(e),t);let i=null;for(let a of r){let r=Cn(e,a);if(r==null)continue;let o=Array.isArray(r)?r.map(String):[String(r)];for(let e of o){let r=n(e,t);if(r!==null&&(i===null||r<i)&&(i=r),i===0)return 0}}return i}function i(e,t,n){if(!t)return e;let i=[];for(let a of e){let e=r(a,t,n);e!==null&&i.push({item:a,score:e})}return i.sort((e,t)=>e.score-t.score),i.map(({item:e})=>e)}function a(e,t,n){return t?e.map(e=>{let i=[];for(let a of e){if(a==null)continue;if(n.isStructural?.(a)){i.push({item:a,score:-1});continue}let e=r(a,t,n.fields);e!==null&&i.push({item:a,score:e})}let a=0;for(let e=0;e<=i.length;e++)(e===i.length||i[e].score===-1)&&(i.splice(a,e-a,...i.slice(a,e).sort((e,t)=>e.score-t.score)),a=e+1);return i.map(({item:e})=>e)}).filter(e=>e.some(e=>!n.isStructural?.(e))):e}return{score:n,scoreItem:r,filter:i,filterGroups:a}}function oc(e,t){if(typeof e!=`object`||!e)return!1;let n=Cn(e,t);return n!=null&&n!==``}function sc(e,t){let n=t?{xs:44,sm:48,md:52,lg:56,xl:60}:{xs:24,sm:28,md:32,lg:36,xl:40};return n[e]??n.md}function cc(e,t,n,r){let i=sc(t,!0),a=sc(t,!1);return r?()=>i:n?t=>oc(e[t],n)?i:a:()=>a}var lc={slots:{root:`relative inline-flex items-center`,base:[`w-full rounded-md border-0 appearance-none placeholder:text-dimmed disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute inset-y-0 start-0 flex items-center`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute inset-y-0 end-0 flex items-center`,trailingIcon:`shrink-0 text-dimmed`},variants:{fieldGroup:{horizontal:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none`},vertical:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none`}},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2`,trailing:`pe-2`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`}},uc=[`id`,`type`,`value`,`name`,`placeholder`,`disabled`,`required`,`autocomplete`],dc=Object.assign({inheritAttrs:!1},{__name:`UInput`,props:{as:{type:null,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},type:{type:null,required:!1,default:`text`},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},autocomplete:{type:[String,Object],required:!1,default:`off`},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:[`update:modelValue`,`blur`,`change`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Et(),o=kn(`input`,r),s=hn(o,`modelValue`,i,{defaultValue:o.defaultValue}),l=fn(),{emitFormBlur:u,emitFormInput:d,emitFormChange:f,size:p,color:h,id:g,name:_,highlight:v,disabled:y,emitFormFocus:S,ariaAttrs:C}=qn(r,{deferInputValidation:!0}),{orientation:w,size:T}=Zn(r),{isLeading:E,isTrailing:D,leadingIconName:O,trailingIconName:k}=Gn(o),A=V(()=>h.value??o.color),j=V(()=>v.value??o.highlight),ee=V(()=>T.value??p.value??o.size),te=V(()=>y.value??o.disabled),P=V(()=>jn({extend:lc,...l.ui?.input||{}})({type:o.type,color:A.value,variant:o.variant,size:ee.value,loading:o.loading,highlight:j.value,fixed:o.fixed,leading:E.value||!!o.avatar||!!a.leading,trailing:D.value||!!a.trailing,fieldGroup:w.value})),F=We(`inputRef`);function I(e){o.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),(o.modelModifiers?.number||o.type===`number`)&&(e=Tn(e)),o.modelModifiers?.nullable&&On(e)&&(e=null),o.modelModifiers?.optional&&!o.modelModifiers?.nullable&&e!==null&&On(e)&&(e=void 0),s.value=e,d()}function ne(e){o.modelModifiers?.lazy||I(e.target.value)}function L(e){let t=e.target.value;o.modelModifiers?.lazy&&I(t),o.modelModifiers?.trim&&(e.target.value=t.trim()),f(),i(`change`,e)}function re(e){u(),i(`blur`,e)}function R(){o.autofocus&&F.value?.focus()}let ie;return b(()=>{ie=setTimeout(()=>{R()},o.autofocusDelay)}),c(()=>clearTimeout(ie)),t({inputRef:F}),(e,t)=>(H(),x(Y(Z),{as:Y(o).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:X(P.value.root({class:[Y(o).ui?.root,Y(o).class]}))},{default:W(()=>[Te(`input`,m({id:Y(g),ref_key:`inputRef`,ref:F,type:Y(o).type,value:Y(s),name:Y(_),placeholder:Y(o).placeholder,class:P.value.base({class:Y(o).ui?.base}),disabled:te.value,required:Y(o).required,autocomplete:Y(o).autocomplete},{...e.$attrs,...Y(C)},{"data-slot":`base`,onInput:ne,onBlur:re,onChange:L,onFocus:t[0]||=(...e)=>Y(S)&&Y(S)(...e)}),null,16,uc),M(e.$slots,`default`,{ui:P.value}),Y(E)||Y(o).avatar||a.leading?(H(),J(`span`,{key:0,"data-slot":`leading`,class:X(P.value.leading({class:Y(o).ui?.leading}))},[M(e.$slots,`leading`,{ui:P.value},()=>[Y(E)&&Y(O)?(H(),x(Un,{key:0,name:Y(O),"data-slot":`leadingIcon`,class:X(P.value.leadingIcon({class:Y(o).ui?.leadingIcon}))},null,8,[`name`,`class`])):Y(o).avatar?(H(),x(Jn,m({key:1,size:Y(o).ui?.leadingAvatarSize||P.value.leadingAvatarSize()},Y(o).avatar,{"data-slot":`leadingAvatar`,class:P.value.leadingAvatar({class:Y(o).ui?.leadingAvatar})}),null,16,[`size`,`class`])):N(``,!0)])],2)):N(``,!0),Y(D)||a.trailing?(H(),J(`span`,{key:1,"data-slot":`trailing`,class:X(P.value.trailing({class:Y(o).ui?.trailing}))},[M(e.$slots,`trailing`,{ui:P.value},()=>[Y(k)?(H(),x(Un,{key:0,name:Y(k),"data-slot":`trailingIcon`,class:X(P.value.trailingIcon({class:Y(o).ui?.trailingIcon,leading:Y(E)}))},null,8,[`name`,`class`])):N(``,!0)])],2)):N(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),fc={slots:{base:[`relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute inset-y-0 start-0 flex items-center`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute inset-y-0 end-0 flex items-center`,trailingIcon:`shrink-0 text-dimmed`,value:`truncate pointer-events-none`,placeholder:`truncate text-dimmed`,arrow:`fill-bg stroke-default`,content:[`max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto data-[state=closed]:pointer-events-none! flex flex-col`,`max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)`],viewport:`relative scroll-py-1 overflow-y-auto flex-1`,group:`p-1 isolate`,empty:`text-center text-muted`,label:`font-semibold text-highlighted`,separator:`-mx-1 my-1 h-px bg-border`,item:[`group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50`,`transition-colors before:transition-colors`],itemLeadingIcon:[`shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default`,`transition-colors`],itemLeadingAvatar:`shrink-0`,itemLeadingAvatarSize:``,itemLeadingChip:`shrink-0`,itemLeadingChipSize:``,itemTrailing:`ms-auto inline-flex gap-1.5 items-center`,itemTrailingIcon:`shrink-0`,itemWrapper:`flex-1 flex flex-col min-w-0`,itemLabel:`truncate`,itemDescription:`truncate text-muted`,input:`border-b border-default`,focusScope:`flex flex-col min-h-0`,trailingClear:`p-0`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2`,trailing:`pe-2`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1 text-[10px]/3 gap-1`,item:`p-1 text-xs gap-1`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2 text-xs`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1.5 text-[10px]/3 gap-1.5`,item:`p-1.5 text-xs gap-1.5`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2.5 text-xs`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-1.5 text-xs gap-1.5`,item:`p-1.5 text-sm gap-1.5`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-2.5 text-sm`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-2 text-xs gap-2`,item:`p-2 text-sm gap-2`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-3 text-sm`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`,label:`p-2 text-sm gap-2`,item:`p-2 text-base gap-2`,itemLeadingIcon:`size-6`,itemLeadingAvatarSize:`xs`,itemLeadingChip:`size-6`,itemLeadingChipSize:`lg`,itemTrailingIcon:`size-6`,empty:`p-3 text-base`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`},position:{popper:{content:`data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)]`},"item-aligned":{content:``}},multiple:{true:``},virtualize:{true:{viewport:`p-1 isolate`},false:{viewport:`divide-y divide-default`}}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`,position:`popper`}},pc=[`aria-labelledby`,`aria-multiselectable`],mc=Object.assign({inheritAttrs:!1},{__name:`USelectMenu`,props:_({id:{type:String,required:!1},placeholder:{type:String,required:!1},searchInput:{type:[Boolean,Object],required:!1,default:!0},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},clear:{type:[Boolean,Object],required:!1},clearIcon:{type:null,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},virtualize:{type:[Boolean,Object],required:!1,default:!1},valueKey:{type:null,required:!1},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},items:{type:null,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},multiple:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},createItem:{type:[Boolean,String,Object],required:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},resetModelValueOnClear:{type:Boolean,required:!1,default:!0},highlightOnHover:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},{searchTerm:{type:String,default:``},searchTermModifiers:{}}),emits:_([`change`,`blur`,`focus`,`create`,`clear`,`highlight`,`update:modelValue`,`update:open`],[`update:searchTerm`]),setup(e,{expose:n,emit:r}){let i=e,a=r,o=Et(),s=kn(`selectMenu`,i),l=He(e,`searchTerm`,{type:String,default:``}),{t:u}=Sn(),d=fn(),{filterGroups:f}=ac(),p=bn(zn(s,`modelValue`,`defaultValue`,`open`,`defaultOpen`,`required`,`multiple`,`resetSearchTermOnBlur`,`resetSearchTermOnSelect`,`resetModelValueOnClear`,`highlightOnHover`,`loop`,`by`),a),h=or(Pe(()=>s.portal)),_=Pe(()=>ln(s.content,{side:`bottom`,sideOffset:8,collisionPadding:8,position:`popper`})),v=Pe(()=>ln(s.arrow,{rounded:!0})),y=V(()=>typeof s.clear==`object`?s.clear:{}),C=Pe(()=>s.virtualize?ln(typeof s.virtualize==`boolean`?{}:s.virtualize,{estimateSize:cc(ye.value,le.value??`md`,s.descriptionKey,!!o[`item-description`])}):!1),w=Pe(()=>ln(s.searchInput,{placeholder:u(`selectMenu.search`),variant:`none`,fixed:s.fixed})),{emitFormBlur:T,emitFormFocus:E,emitFormInput:D,emitFormChange:O,size:k,color:A,id:j,name:ee,highlight:te,disabled:P,ariaAttrs:F}=qn(i),{orientation:I,size:ne}=Zn(i),{isLeading:L,isTrailing:re,leadingIconName:ie,trailingIconName:ae}=Gn(V(()=>({icon:s.icon,leading:s.leading,leadingIcon:s.leadingIcon,trailing:s.trailing,trailingIcon:s.trailingIcon??d.ui.icons.chevronDown,loading:s.loading,loadingIcon:s.loadingIcon}))),oe=V(()=>A.value??s.color),se=V(()=>te.value??s.highlight),le=V(()=>ne.value??k.value??s.size),ue=V(()=>P.value??s.disabled),[de,fe]=mn(),[pe,me]=mn({props:{item:{type:[Object,String,Number,Boolean],required:!0},index:{type:Number,required:!1}}}),B=V(()=>jn({extend:fc,...d.ui?.selectMenu||{}})({color:oe.value,variant:s.variant,size:le.value,loading:s.loading,highlight:se.value,fixed:s.fixed,leading:L.value||!!s.avatar||!!o.leading,trailing:re.value||!!o.trailing,fieldGroup:I.value,virtualize:!!s.virtualize,multiple:s.multiple}));function he(e){if(s.multiple&&Array.isArray(e)){let t=e.map(e=>wn(_e.value,e,{labelKey:s.labelKey,valueKey:s.valueKey,by:s.by})).filter(e=>e!=null&&e!==``);return t.length>0?t.join(`, `):void 0}return wn(_e.value,e,{labelKey:s.labelKey,valueKey:s.valueKey,by:s.by})}let ge=V(()=>s.items?.length?An(s.items)?s.items:[s.items]:[]),_e=V(()=>ge.value.flatMap(e=>e)),ve=V(()=>{if(s.ignoreFilter||!l.value)return ge.value;let e=Array.isArray(s.filterFields)?s.filterFields:[s.labelKey];return f(ge.value,l.value,{fields:e,isStructural:e=>U(e)&&!!e.type&&[`label`,`separator`].includes(e.type)})}),ye=V(()=>ve.value.flatMap(e=>e)),be=V(()=>{if(!s.createItem||!l.value)return!1;let e=s.valueKey?{[s.valueKey]:l.value}:l.value;return typeof s.createItem==`object`&&s.createItem.when===`always`||s.createItem===`always`?!ye.value.find(t=>Mn(t,e,s.by??s.valueKey)):!ye.value.length}),xe=V(()=>typeof s.createItem==`object`?s.createItem.position:`bottom`),Se=We(`triggerRef`);function Ce(){s.autofocus&&Se.value?.$el?.focus({focusVisible:!0})}let we;b(()=>{we=setTimeout(()=>{Ce()},s.autofocusDelay)}),c(()=>clearTimeout(we));function Ee(e){if(ke(s.modelValue)===e)return;s.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),s.modelModifiers?.number&&(e=Tn(e)),s.modelModifiers?.nullable&&(e??=null),s.modelModifiers?.optional&&!s.modelModifiers?.nullable&&e!==null&&(e??=void 0);let t=new Event(`change`,{target:{value:e}});a(`change`,t),O(),D(),s.resetSearchTermOnSelect&&(l.value=``)}let De=S(!1),Oe;c(()=>clearTimeout(Oe));function Ae(e){if(De.value=e,e){let e=new FocusEvent(`focus`);a(`focus`,e),E(),clearTimeout(Oe)}else{let e=new FocusEvent(`blur`);a(`blur`,e),T(),s.resetSearchTermOnBlur&&(Oe=setTimeout(()=>{l.value=``},100))}}function je(e){if(De.value)return;let t=e.currentTarget;e.preventDefault(),t.click()}function Me(e){e.preventDefault(),e.stopPropagation(),a(`create`,l.value)}function Ne(e,t){U(t)&&(t.disabled?e.preventDefault():t.onSelect?.(e))}function U(e){return typeof e==`object`&&!!e}function Fe(e){return s.multiple&&Array.isArray(e)?e.length===0:e==null||e===``}function Ie(){ue.value||a(`clear`)}function Le(e){w.value.autofocus===!1&&e.preventDefault()}let Re=We(`focusScopeRef`);function ze(e){let t=Re.value?.$el;e.defaultPrevented||t?.parentElement?.dataset.state!==`open`||(e.preventDefault(),((w.value.autofocus===!1?null:t.querySelector(`[data-slot="input"] input`))??t).focus({preventScroll:!0}))}function Be(e){let t=document.activeElement;t&&t!==document.body&&!e.target.contains(t)&&e.preventDefault()}let Ve=We(`viewportRef`),Ue=St(),Ge=V(()=>j.value??`select-menu-${Ue}`),Ke=`select-menu-listbox-${Ue}`,qe=We(`comboboxRootRef`);return K(()=>s.items,async()=>{De.value&&s.createItem&&(await z(),qe.value?.highlightFirstItem?.())},{flush:`post`}),n({triggerRef:Pe(()=>Se.value?.$el),viewportRef:Pe(()=>Ve.value)}),(e,n)=>(H(),J(R,null,[G(Y(de),null,{default:W(()=>[G(Y(Qs),{"data-slot":`item`,class:X(B.value.item({class:Y(s).ui?.item})),value:l.value,onSelect:Me},{default:W(()=>[Te(`span`,{"data-slot":`itemLabel`,class:X(B.value.itemLabel({class:Y(s).ui?.itemLabel}))},[M(e.$slots,`create-item-label`,{item:l.value},()=>[t(ce(Y(u)(`selectMenu.create`,{label:l.value})),1)])],2)]),_:3},8,[`class`,`value`])]),_:3}),G(Y(pe),null,{default:W(({item:n,index:r})=>[U(n)&&n.type===`label`?(H(),x(Y(ec),{key:0,"data-slot":`label`,class:X(B.value.label({class:[Y(s).ui?.label,n.ui?.label,n.class]}))},{default:W(()=>[t(ce(Y(Cn)(n,Y(s).labelKey)),1)]),_:2},1032,[`class`])):U(n)&&n.type===`separator`?(H(),x(Y(nc),{key:1,"data-slot":`separator`,class:X(B.value.separator({class:[Y(s).ui?.separator,n.ui?.separator,n.class]}))},null,8,[`class`])):(H(),x(Y(Qs),{key:2,"data-slot":`item`,class:X(B.value.item({class:[Y(s).ui?.item,U(n)&&n.ui?.item,U(n)&&n.class]})),disabled:U(n)&&n.disabled,value:Y(s).valueKey&&U(n)?Y(Cn)(n,Y(s).valueKey):n,onSelect:e=>Ne(e,n)},{default:W(()=>[M(e.$slots,`item`,{item:n,index:r,ui:B.value},()=>[M(e.$slots,`item-leading`,{item:n,index:r,ui:B.value},()=>[U(n)&&n.icon?(H(),x(Un,{key:0,name:n.icon,"data-slot":`itemLeadingIcon`,class:X(B.value.itemLeadingIcon({class:[Y(s).ui?.itemLeadingIcon,n.ui?.itemLeadingIcon]}))},null,8,[`name`,`class`])):U(n)&&n.avatar?(H(),x(Jn,m({key:1,size:n.ui?.itemLeadingAvatarSize||Y(s).ui?.itemLeadingAvatarSize||B.value.itemLeadingAvatarSize()},n.avatar,{"data-slot":`itemLeadingAvatar`,class:B.value.itemLeadingAvatar({class:[Y(s).ui?.itemLeadingAvatar,n.ui?.itemLeadingAvatar]})}),null,16,[`size`,`class`])):U(n)&&n.chip?(H(),x(Xn,m({key:2,size:n.ui?.itemLeadingChipSize||Y(s).ui?.itemLeadingChipSize||B.value.itemLeadingChipSize(),inset:``,standalone:``},n.chip,{"data-slot":`itemLeadingChip`,class:B.value.itemLeadingChip({class:[Y(s).ui?.itemLeadingChip,n.ui?.itemLeadingChip]})}),null,16,[`size`,`class`])):N(``,!0)]),Te(`span`,{"data-slot":`itemWrapper`,class:X(B.value.itemWrapper({class:[Y(s).ui?.itemWrapper,U(n)&&n.ui?.itemWrapper]}))},[Te(`span`,{"data-slot":`itemLabel`,class:X(B.value.itemLabel({class:[Y(s).ui?.itemLabel,U(n)&&n.ui?.itemLabel]}))},[M(e.$slots,`item-label`,{item:n,index:r},()=>[t(ce(U(n)?Y(Cn)(n,Y(s).labelKey):n),1)])],2),U(n)&&(Y(Cn)(n,Y(s).descriptionKey)||o[`item-description`])?(H(),J(`span`,{key:0,"data-slot":`itemDescription`,class:X(B.value.itemDescription({class:[Y(s).ui?.itemDescription,U(n)&&n.ui?.itemDescription]}))},[M(e.$slots,`item-description`,{item:n,index:r},()=>[t(ce(Y(Cn)(n,Y(s).descriptionKey)),1)])],2)):N(``,!0)],2),Te(`span`,{"data-slot":`itemTrailing`,class:X(B.value.itemTrailing({class:[Y(s).ui?.itemTrailing,U(n)&&n.ui?.itemTrailing]}))},[M(e.$slots,`item-trailing`,{item:n,index:r,ui:B.value}),G(Y($s),{"as-child":``},{default:W(()=>[G(Un,{name:Y(s).selectedIcon||Y(d).ui.icons.check,"data-slot":`itemTrailingIcon`,class:X(B.value.itemTrailingIcon({class:[Y(s).ui?.itemTrailingIcon,U(n)&&n.ui?.itemTrailingIcon]}))},null,8,[`name`,`class`])]),_:2},1024)],2)])]),_:2},1032,[`class`,`disabled`,`value`,`onSelect`]))]),_:3}),G(Y(zs),m({ref_key:`comboboxRootRef`,ref:qe},Y(p),{"ignore-filter":``,"as-child":``,name:Y(ee),disabled:ue.value,"onUpdate:modelValue":Ee,"onUpdate:open":Ae}),{default:W(({modelValue:r,open:i})=>[G(Y(Bs),{"as-child":``},{default:W(()=>[G(Y(rc),m({id:Ge.value,ref_key:`triggerRef`,ref:Se,"data-slot":`base`,class:B.value.base({class:[Y(s).ui?.base,Y(s).class]}),tabindex:`0`},{"aria-label":void 0,...e.$attrs,...Y(F)},{"aria-controls":Ke,onKeydown:[on(je,[`down`]),on(je,[`up`])]}),{default:W(()=>[Y(L)||Y(s).avatar||o.leading?(H(),J(`span`,{key:0,"data-slot":`leading`,class:X(B.value.leading({class:Y(s).ui?.leading}))},[M(e.$slots,`leading`,{modelValue:r,open:i,ui:B.value},()=>[Y(L)&&Y(ie)?(H(),x(Un,{key:0,name:Y(ie),"data-slot":`leadingIcon`,class:X(B.value.leadingIcon({class:Y(s).ui?.leadingIcon}))},null,8,[`name`,`class`])):Y(s).avatar?(H(),x(Jn,m({key:1,size:Y(s).ui?.itemLeadingAvatarSize||B.value.itemLeadingAvatarSize()},Y(s).avatar,{"data-slot":`itemLeadingAvatar`,class:B.value.itemLeadingAvatar({class:Y(s).ui?.itemLeadingAvatar})}),null,16,[`size`,`class`])):N(``,!0)])],2)):N(``,!0),M(e.$slots,`default`,{modelValue:r,open:i,ui:B.value},()=>[(H(!0),J(R,null,yt([he(r)],e=>(H(),J(R,{key:e},[e==null?(H(),J(`span`,{key:1,"data-slot":`placeholder`,class:X(B.value.placeholder({class:Y(s).ui?.placeholder}))},ce(Y(s).placeholder??`\xA0`),3)):(H(),J(`span`,{key:0,"data-slot":`value`,class:X(B.value.value({class:Y(s).ui?.value}))},ce(e),3))],64))),128))]),Y(re)||o.trailing||Y(s).clear?(H(),J(`span`,{key:1,"data-slot":`trailing`,class:X(B.value.trailing({class:Y(s).ui?.trailing}))},[M(e.$slots,`trailing`,{modelValue:r,open:i,ui:B.value},()=>[Y(s).clear&&!ue.value&&!Fe(r)?(H(),x(Y(Gs),{key:0,"as-child":``},{default:W(()=>[G(Qn,m({as:`span`,icon:Y(s).clearIcon||Y(d).ui.icons.close,size:le.value,variant:`link`,color:`neutral`,tabindex:`-1`},y.value,{"data-slot":`trailingClear`,class:B.value.trailingClear({class:Y(s).ui?.trailingClear}),onClick:cn(Ie,[`stop`])}),null,16,[`icon`,`size`,`class`])]),_:1})):Y(ae)?(H(),x(Un,{key:1,name:Y(ae),"data-slot":`trailingIcon`,class:X(B.value.trailingIcon({class:Y(s).ui?.trailingIcon,leading:Y(L)}))},null,8,[`name`,`class`])):N(``,!0)])],2)):N(``,!0)]),_:2},1040,[`id`,`class`])]),_:2},1024),G(Y(tc),g(Ye(Y(h))),{default:W(()=>[G(Y(Yn),null,{default:W(()=>[G(Y(Ks),m({"data-slot":`content`,class:B.value.content({class:Y(s).ui?.content})},_.value,{role:void 0,"aria-orientation":void 0,"aria-multiselectable":void 0,onFocusOutside:ze}),{default:W(()=>[G(Y(si),{ref_key:`focusScopeRef`,ref:Re,loop:``,"data-slot":`focusScope`,class:X(B.value.focusScope({class:Y(s).ui?.focusScope})),onMountAutoFocus:Le,onUnmountAutoFocus:Be},{default:W(()=>[M(e.$slots,`content-top`),Y(s).searchInput?(H(),x(Y(Zs),{key:0,modelValue:l.value,"onUpdate:modelValue":n[1]||=e=>l.value=e,"display-value":()=>l.value,"aria-controls":Ke,"as-child":``},{default:W(()=>[G(dc,m({autofocus:``,autocomplete:`off`,size:le.value},w.value,{"model-modifiers":{trim:Y(s).modelModifiers?.trim},"data-slot":`input`,class:B.value.input({class:Y(s).ui?.input}),onChange:n[0]||=cn(()=>{},[`stop`])}),null,16,[`size`,`model-modifiers`,`class`])]),_:1},8,[`modelValue`,`display-value`])):N(``,!0),G(Y(qs),{"data-slot":`empty`,class:X(B.value.empty({class:Y(s).ui?.empty}))},{default:W(()=>[M(e.$slots,`empty`,{searchTerm:l.value},()=>[t(ce(l.value?Y(u)(`selectMenu.noMatch`,{searchTerm:l.value}):Y(u)(`selectMenu.noData`)),1)])]),_:3},8,[`class`]),Te(`div`,{id:Ke,ref_key:`viewportRef`,ref:Ve,role:`listbox`,"aria-labelledby":Ge.value,"aria-multiselectable":!!Y(s).multiple,"aria-orientation":`vertical`,"data-slot":`viewport`,class:X(B.value.viewport({class:Y(s).ui?.viewport}))},[Y(s).virtualize?(H(),J(R,{key:0},[be.value&&xe.value===`top`?(H(),x(Y(fe),{key:0})):N(``,!0),G(Y(ic),m({options:ye.value,"text-content":e=>U(e)?Y(Cn)(e,Y(s).labelKey):String(e)},C.value),{default:W(({option:e,virtualItem:t})=>[G(Y(me),{item:e,index:t.index},null,8,[`item`,`index`])]),_:1},16,[`options`,`text-content`]),be.value&&xe.value===`bottom`?(H(),x(Y(fe),{key:1})):N(``,!0)],64)):(H(),J(R,{key:1},[be.value&&xe.value===`top`?(H(),x(Y(Xs),{key:0,"data-slot":`group`,class:X(B.value.group({class:Y(s).ui?.group}))},{default:W(()=>[G(Y(fe))]),_:1},8,[`class`])):N(``,!0),(H(!0),J(R,null,yt(ve.value,(e,t)=>(H(),x(Y(Xs),{key:`group-${t}`,"data-slot":`group`,class:X(B.value.group({class:Y(s).ui?.group}))},{default:W(()=>[(H(!0),J(R,null,yt(e,(e,n)=>(H(),x(Y(me),{key:`group-${t}-${n}`,item:e,index:n},null,8,[`item`,`index`]))),128))]),_:2},1032,[`class`]))),128)),be.value&&xe.value===`bottom`?(H(),x(Y(Xs),{key:1,"data-slot":`group`,class:X(B.value.group({class:Y(s).ui?.group}))},{default:W(()=>[G(Y(fe))]),_:1},8,[`class`])):N(``,!0)],64))],10,pc),M(e.$slots,`content-bottom`)]),_:3},8,[`class`]),Y(s).arrow?(H(),x(Y(Ws),m({key:0},v.value,{"data-slot":`arrow`,class:B.value.arrow({class:Y(s).ui?.arrow})}),null,16,[`class`])):N(``,!0)]),_:3},16,[`class`])]),_:3})]),_:3},16)]),_:3},16,[`name`,`disabled`])],64))}}),hc=Object.assign(q({inheritAttrs:!1,__name:`SkinSelect`,props:_({items:{},icon:{},placeholder:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=He(e,`modelValue`),n={base:`skin-select`,content:`skin-pop`,viewport:`skin-pop-view`,item:`skin-pop-item`,label:`skin-pop-label`,empty:`skin-pop-empty`};return(r,i)=>{let a=mc;return H(),x(a,m({modelValue:t.value,"onUpdate:modelValue":i[0]||=e=>t.value=e,items:e.items,"value-key":`value`,"search-input":!1,size:`sm`,variant:`outline`,icon:e.icon,placeholder:e.placeholder,ui:n},r.$attrs),null,16,[`modelValue`,`items`,`icon`,`placeholder`])}}}),{__name:`SkinSelect`});export{hc as t};
@@ -0,0 +1,6 @@
1
+ import{t as e}from"./DK3Fl9T5.js";import{$n as t,At as n,Bn as r,C as i,Ft as a,Gn as o,Gt as s,H as c,Jn as l,Ln as u,Mn as d,Mr as f,Nr as p,Ot as m,Pr as h,U as g,Un as _,Ut as v,Xn as y,Zn as b,h as x,hn as S,nt as C,pt as w,q as ee,tr as T,ut as te,v as E,xt as ne,zt as re}from"./DuWpPgcw.js";import{_t as D,bt as ie,u as ae}from"./Brv_Bdja.js";var oe=x({ui:{colors:{primary:`violet`,secondary:`indigo`,success:`lime`,info:`sky`,warning:`amber`,error:`rose`,neutral:`stone`}}}),se=ie(oe,{nuxt:{},ui:{colors:{primary:`green`,secondary:`blue`,success:`green`,info:`blue`,warning:`yellow`,error:`red`,neutral:`slate`},icons:{arrowDown:`i-lucide-arrow-down`,arrowLeft:`i-lucide-arrow-left`,arrowRight:`i-lucide-arrow-right`,arrowUp:`i-lucide-arrow-up`,caution:`i-lucide-circle-alert`,check:`i-lucide-check`,chevronDoubleLeft:`i-lucide-chevrons-left`,chevronDoubleRight:`i-lucide-chevrons-right`,chevronDown:`i-lucide-chevron-down`,chevronLeft:`i-lucide-chevron-left`,chevronRight:`i-lucide-chevron-right`,chevronUp:`i-lucide-chevron-up`,close:`i-lucide-x`,copy:`i-lucide-copy`,copyCheck:`i-lucide-copy-check`,dark:`i-lucide-moon`,drag:`i-lucide-grip-vertical`,ellipsis:`i-lucide-ellipsis`,error:`i-lucide-circle-x`,external:`i-lucide-arrow-up-right`,eye:`i-lucide-eye`,eyeOff:`i-lucide-eye-off`,file:`i-lucide-file`,folder:`i-lucide-folder`,folderOpen:`i-lucide-folder-open`,hash:`i-lucide-hash`,info:`i-lucide-info`,light:`i-lucide-sun`,loading:`i-lucide-loader-circle`,menu:`i-lucide-menu`,minus:`i-lucide-minus`,panelClose:`i-lucide-panel-left-close`,panelOpen:`i-lucide-panel-left-open`,plus:`i-lucide-plus`,reload:`i-lucide-rotate-ccw`,search:`i-lucide-search`,stop:`i-lucide-square`,star:`i-lucide-star`,success:`i-lucide-circle-check`,system:`i-lucide-monitor`,tip:`i-lucide-lightbulb`,upload:`i-lucide-upload`,warning:`i-lucide-triangle-alert`},tv:{twMergeConfig:{}}},icon:{provider:`iconify`,class:``,aliases:{},iconifyApiEndpoint:`https://api.iconify.design`,localApiEndpoint:`/api/_nuxt_icon`,fallbackToApi:!0,cssSelectorPrefix:`i-`,cssWherePseudo:!0,cssLayer:`base`,mode:`css`,attrs:{"aria-hidden":!0},collections:`academicons.akar-icons.ant-design.arcticons.basil.bi.bitcoin-icons.bpmn.brandico.bx.bxl.bxs.bytesize.carbon.catppuccin.cbi.charm.ci.cib.cif.cil.circle-flags.circum.clarity.codex.codicon.covid.cryptocurrency.cryptocurrency-color.cuida.dashicons.devicon.devicon-plain.dinkie-icons.duo-icons.ei.el.emojione.emojione-monotone.emojione-v1.entypo.entypo-social.eos-icons.ep.et.eva.f7.fa.fa-brands.fa-regular.fa-solid.fa6-brands.fa6-regular.fa6-solid.fa7-brands.fa7-regular.fa7-solid.fad.famicons.fe.feather.file-icons.flag.flagpack.flat-color-icons.flat-ui.flowbite.fluent.fluent-color.fluent-emoji.fluent-emoji-flat.fluent-emoji-high-contrast.fluent-mdl2.fontelico.fontisto.formkit.foundation.fxemoji.gala.game-icons.garden.geo.gg.gis.gravity-ui.gridicons.grommet-icons.guidance.healthicons.heroicons.heroicons-outline.heroicons-solid.hugeicons.humbleicons.ic.icomoon-free.icon-park.icon-park-outline.icon-park-solid.icon-park-twotone.iconamoon.iconoir.icons8.il.ion.iwwa.ix.jam.la.lets-icons.line-md.lineicons.logos.ls.lsicon.lucide.lucide-lab.mage.majesticons.maki.map.marketeq.material-icon-theme.material-symbols.material-symbols-light.mdi.mdi-light.medical-icon.memory.meteocons.meteor-icons.mi.mingcute.mono-icons.mynaui.nimbus.nonicons.noto.noto-v1.nrk.octicon.oi.ooui.openmoji.oui.pajamas.pepicons.pepicons-pencil.pepicons-pop.pepicons-print.ph.picon.pixel.pixelarticons.prime.proicons.ps.qlementine-icons.quill.radix-icons.raphael.ri.rivet-icons.roentgen.si.si-glyph.sidekickicons.simple-icons.simple-line-icons.skill-icons.solar.stash.streamline.streamline-block.streamline-color.streamline-cyber.streamline-cyber-color.streamline-emojis.streamline-flex.streamline-flex-color.streamline-freehand.streamline-freehand-color.streamline-kameleon-color.streamline-logos.streamline-pixel.streamline-plump.streamline-plump-color.streamline-sharp.streamline-sharp-color.streamline-stickies-color.streamline-ultimate.streamline-ultimate-color.subway.svg-spinners.system-uicons.tabler.tdesign.teenyicons.temaki.token.token-branded.topcoat.twemoji.typcn.uil.uim.uis.uit.uiw.unjs.vaadin.vs.vscode-icons.websymbol.weui.whh.wi.wpf.zmdi.zondicons`.split(`.`),fetchTimeout:1500}});function O(){let e=E();return e._appConfig||=_(se),e._appConfig}var ce=/^[a-z0-9]+(-[a-z0-9]+)*$/,k=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!A(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!A(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!A(e,n)?null:e}return null},A=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function le(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var ue=Object.freeze({left:0,top:0,width:16,height:16}),j=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),M=Object.freeze({...ue,...j}),N=Object.freeze({...M,body:``,hidden:!1});function de(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function fe(e,t){let n=de(e,t);for(let r in N)r in j?r in e&&!(r in n)&&(n[r]=j[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function pe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=fe(r[e]||i[e],a)}return o(t),n.forEach(o),fe(e,a)}function me(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=le(e);for(let i in r){let a=r[i];a&&(t(i,pe(e,i,a)),n.push(i))}return n}var he={provider:``,aliases:{},not_found:{},...ue};function ge(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _e(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!ge(e,he))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!ge(t,N))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!ge(t,N))return null}return t}var ve=Object.create(null);function ye(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function P(e,t){let n=ve[e]||(ve[e]=Object.create(null));return n[t]||(n[t]=ye(e,t))}function be(e,t){return _e(t)?me(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function xe(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var F=!1;function Se(e){return typeof e==`boolean`&&(F=e),F}function Ce(e){let t=typeof e==`string`?k(e,!0,F):e;if(t){let e=P(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function I(e,t){let n=k(e,!0,F);if(!n)return!1;let r=P(n.provider,n.prefix);return t?xe(r,n.name,t):(r.missing.add(n.name),!0)}function we(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),F&&!t&&!e.prefix){let t=!1;return _e(e)&&(e.prefix=``,me(e,(e,n)=>{I(e,n)&&(t=!0)})),t}let n=e.prefix;return A({prefix:n,name:`a`})?!!be(P(t,n),e):!1}function L(e){let t=Ce(e);return t&&{...M,...t}}var Te=Object.freeze({width:null,height:null}),Ee=Object.freeze({...Te,...j}),De=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ke(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(De);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function Ae(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function je(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Me(e,t,n){let r=Ae(e);return je(r.defs,t+r.content+n)}var Ne=e=>e===`unset`||e===`undefined`||e===`none`;function Pe(e,t){let n={...M,...e},r={...Ee,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Me(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=ke(d,c/l)):(u=o===`auto`?c:o,d=s===null?ke(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{Ne(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var Fe=/\sid="(\S+)"/g,Ie=new Map;function Le(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=Ie.get(e)||0;return Ie.set(e,t+1),t?`${e}${t}`:e}function Re(e){let t=[],n;for(;n=Fe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=Le(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var R=Object.create(null);function ze(e,t){R[e]=t}function z(e){return R[e]||R[``]}function B(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}var V=Object.create(null);V[``]=B({resources:[`https://api.iconify.design`]});function Be(e,t){let n=B(t);return n!==null&&(V[e]=n,!0)}function H(e){return V[e]}function Ve(){return Object.keys(V)}var U=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function He(e){U=e}function Ue(){return U}function We(e,t){let n=H(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function Ge(e){return e===404}var Ke=(e,t,n)=>{let r=[],i=We(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function qe(e){if(typeof e==`string`){let t=H(e);if(t)return t.path}return`/`}var Je={prepare:Ke,send:(e,t,n)=>{if(!U){n(`abort`,424);return}let r=qe(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;U(e+r).then(e=>{let t=e.status;if(t!==200)setTimeout(()=>{n(Ge(t)?`abort`:`next`,t)});else return i=501,e.json()}).then(e=>{setTimeout(typeof e!=`object`||!e?()=>{e===404?n(`abort`,e):n(`next`,i)}:()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function Ye(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function Xe(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||Ye([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var Ze=0;function Qe(e,t,n){let r=Ze++,i=Ye.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function $e(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=P(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function et(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?k(e,t,n):e;i&&r.push(i)}),r}var tt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function nt(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`)u=r,v();else if(i)u=r,f.length||(o.length?x():v());else{if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function rt(e){let t={...tt,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=nt(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function it(){}var at=Object.create(null);function ot(e){if(!at[e]){let t=H(e);if(!t)return;at[e]={config:t,redundancy:rt(t)}}return at[e]}function st(e,t,n){let r,i;if(typeof e==`string`){let t=z(e);if(!t)return n(void 0,424),it;i=t.send;let a=ot(e);a&&(r=a.redundancy)}else{let t=B(e);if(t){r=rt(t);let n=z(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),it):r.query(t,i,n)().abort}function ct(){}function lt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Xe(e)}))}function ut(e){let t=[],n=[];return e.forEach(e=>{(e.match(ce)?t:n).push(e)}),{valid:t,invalid:n}}function W(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!be(e,n).length){r();return}}catch(e){console.error(e)}r(),lt(e)}function dt(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function ft(e,t){e.iconsToLoad=e.iconsToLoad?e.iconsToLoad.concat(t).sort():t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){dt(e.loadIcons(r,n,t),t=>{W(e,r,t)});return}if(i){r.forEach(r=>{dt(i(r,n,t),t=>{W(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=ut(r);if(o.length&&W(e,o,null),!a.length)return;let s=n.match(ce)?z(t):null;s?s.prepare(t,n,a).forEach(n=>{st(t,n,t=>{W(e,n.icons,t)})}):W(e,a,null)}))}var pt=(e,t)=>{let n=$e(et(e,!0,Se()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,ct)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(P(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=P(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&ft(e,t)}),t?Qe(t,n,i):ct},mt=e=>new Promise((t,n)=>{let r=typeof e==`string`?k(e,!0):e;r?pt([r||e],i=>{if(i.length&&r){let e=Ce(r);if(e){t({...M,...e});return}}n(e)}):n(e)});function ht(e,t,n){P(n||``,t).loadIcons=e}function gt(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in Te?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var _t=/[\s,]+/;function vt(e,t){t.split(_t).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0}})}function yt(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function bt(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function xt(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `).replace(/:/g,`%3A`).replace(/\//g,`%2F`)}function St(e){return`data:image/svg+xml,`+xt(e)}function Ct(e){return`url("`+St(e)+`")`}var wt={...Ee,inline:!1},Tt={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},Et={display:`inline-block`},Dt={backgroundColor:`currentColor`},Ot={backgroundColor:`transparent`},kt={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},At={webkitMask:Dt,mask:Dt,background:Ot};for(let e in At){let t=At[e];for(let n in kt)t[e+n]=kt[n]}var G={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;G[e+`-flip`]=t,G[e.slice(0,1)+`-flip`]=t,G[e+`Flip`]=t});function jt(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var Mt=(e,t)=>{let n=gt(wt,t),r={...Tt},i=t.mode||`svg`,a={},o=t.style,s=typeof o==`object`&&!(o instanceof Array)?o:{};for(let e in t){let i=t[e];if(i!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:n[e]=i===!0||i===`true`||i===1;break;case`flip`:break;case`color`:a.color=i;break;case`rotate`:typeof i==`string`?n[e]=yt(i):typeof i==`number`&&(n[e]=i);break;case`ariaHidden`:case`aria-hidden`:i!==!0&&i!==`true`&&delete r[`aria-hidden`];break;default:{let t=G[e];t?(i===!0||i===`true`||i===1)&&(n[t]=!0):wt[e]===void 0&&(r[e]=i)}}}typeof t.flip==`string`&&vt(n,t.flip);let c=Pe(e,n),l=c.attributes;if(n.inline&&(a.verticalAlign=`-0.125em`),i===`svg`)return r.style={...a,...s},Object.assign(r,l),r.innerHTML=Re(c.body),w(`svg`,r);let{body:u,width:d,height:f}=e,p=i===`mask`||i!==`bg`&&u.indexOf(`currentColor`)!==-1,m=bt(u,{...l,width:d+``,height:f+``});return r.style={...a,"--svg":Ct(m),width:jt(l.width),height:jt(l.height),...Et,...p?Dt:Ot,...s},w(`span`,r)};if(Se(!0),ze(``,Je),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!we(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;Be(e,r)||console.error(n)}catch{console.error(n)}}}}var Nt={...M,body:``},Pt=C((e,{emit:t})=>{let n=o(null);function r(){n.value&&=(n.value.abort?.(),null)}let i=o(!!e.ssr),s=o(``),c=l(null);function u(){let i=e.icon;if(typeof i==`object`&&i&&typeof i.body==`string`)return s.value=``,{data:i};let a;if(typeof i!=`string`||(a=k(i,!1,!0))===null)return null;let o=Ce(a);if(!o){let e=n.value;return e&&e.name===i||(o===null?n.value={name:i}:n.value={name:i,abort:pt([a],d)}),null}r(),s.value!==i&&(s.value=i,m(()=>{t(`load`,i)}));let c=e.customise;if(c){o=Object.assign({},o);let e=c(o.body,a.name,a.prefix,a.provider);typeof e==`string`&&(o.body=e)}let l=[`iconify`];return a.prefix!==``&&l.push(`iconify--`+a.prefix),a.provider!==``&&l.push(`iconify--`+a.provider),{data:o,classes:l}}function d(){let e=u();e?e.data!==c.value?.data&&(c.value=e):c.value=null}return i.value?d():a(()=>{i.value=!0,d()}),S(()=>e.icon,d),re(r),()=>{let t=c.value;if(!t)return Mt(Nt,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),Mt({...M,...t.data},n)}},{props:{icon:{type:[String,Object],required:!0},mode:{type:String},ssr:{type:Boolean},width:{type:[String,Number]},height:{type:[String,Number]},style:{type:[String,Object]},color:{type:String},inline:{type:Boolean},rotate:{type:[Number,String]},hFlip:{type:Boolean},horizontalFlip:{type:Boolean},vFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{type:String},id:{type:String},ariaHidden:{type:[Boolean,String],default:void 0},customise:{type:Function},title:{type:String}},emits:[`load`]}),Ft={getAPIConfig:H,setAPIModule:ze,sendAPIQuery:st,setFetch:He,getFetch:Ue,listAPIProviders:Ve};function K(e=te()){let t=e;t&&!t.sp&&(t.sp=[])}function q(e){return typeof e==`string`?`'${e}'`:new Rt().serialize(e)}var It=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,J=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[It.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Lt(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&J[n]?J[n]:n+128,s=a<128&&J[a]?J[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var Rt=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Lt(e,t):n===`number`&&r===`number`?e-t:Lt(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(Lt),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})();function zt(e,t){return e===t||q(e)===q(t)}var Bt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Vt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Ht=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Y=[],Ut=class{_data=new X;_hash=new X([...Bt]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)Y[n]=e[t+n]|0;else{let e=Y[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Y[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Y[n]=t+Y[n-7]+i+Y[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+Vt[n]+Y[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=X.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new X(t,i)}},X=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(Ht.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function Wt(e){return new Ut().finalize(e).toBase64()}function Gt(e){return Wt(q(e))}var Kt=Object.freeze({left:0,top:0,width:16,height:16}),qt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Jt=Object.freeze({...Kt,...qt});Object.freeze({...Jt,body:``,hidden:!1});function Yt(e){let[t,n,r,i]=e;if(r!==i){let e=Math.max(r,i);return[t-(e-r)/2,n-(e-i)/2,e,e]}return e}var Xt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Qt(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(Xt);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Zt.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var $t=Object.freeze({width:null,height:null}),en=Object.freeze({...$t,...qt});function tn(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function nn(e,t){return e?`<defs>`+e+`</defs>`+t:t}function rn(e,t,n){let r=tn(e);return nn(r.defs,t+r.content+n)}var an=e=>e===`unset`||e===`undefined`||e===`none`;function on(e,t){let n={...Jt,...e},r={...en,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=rn(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=Qt(d,c/l)):(u=o===`auto`?c:o,d=s===null?Qt(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{an(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}function sn(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function cn(e){return`data:image/svg+xml,`+sn(e)}function ln(e){return`url("`+cn(e)+`")`}function un(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function dn(e){let t=Object.create(null);Object.assign(t,{display:`inline-block`,width:`1em`,height:`1em`});let n=e.varName;switch(e.pseudoSelector&&(t.content=`''`),e.mode){case`background`:n&&(t[`background-image`]=`var(--`+n+`)`),t[`background-repeat`]=`no-repeat`,t[`background-size`]=`100% 100%`;break;case`mask`:t[`background-color`]=`currentColor`,n&&(t[`mask-image`]=t[`-webkit-mask-image`]=`var(--`+n+`)`),t[`mask-repeat`]=t[`-webkit-mask-repeat`]=`no-repeat`,t[`mask-size`]=t[`-webkit-mask-size`]=`100% 100%`}return t}function fn(e,t){let n=Object.create(null),r=t.varName,i=on(e),a=i.viewBox;a[2]!==a[3]&&(t.forceSquare?a=Yt(a):n.width=Qt(`1em`,a[2]/a[3]));let o=ln(un(i.body.replace(/currentColor/g,t.color||`black`),{viewBox:`${a[0]} ${a[1]} ${a[2]} ${a[3]}`,width:`${a[2]}`,height:`${a[3]}`}));if(r)n[`--`+r]=o;else switch(t.mode){case`background`:n[`background-image`]=o;break;case`mask`:n[`mask-image`]=n[`-webkit-mask-image`]=o}return n}var pn={selectorStart:{compressed:`{`,compact:` {`,expanded:` {`},selectorEnd:{compressed:`}`,compact:`; }
2
+ `,expanded:`;
3
+ }
4
+ `},rule:{compressed:`{key}:`,compact:` {key}: `,expanded:`
5
+ {key}: `}};function mn(e,t=`expanded`){let n=[];for(let r=0;r<e.length;r++){let{selector:i,rules:a}=e[r],o=(i instanceof Array?i.join(t===`compressed`?`,`:`, `):i)+pn.selectorStart[t],s=!0;for(let e in a)s||(o+=`;`),o+=pn.rule[t].replace(`{key}`,e)+a[e],s=!1;o+=pn.selectorEnd[t],n.push(o)}return n.join(t===`compressed`?``:`
6
+ `)}function hn(e,t={}){let n=t.customise?t.customise(e.body):e.body,r=t.mode||(t.color||!n.includes(`currentColor`)?`background`:`mask`),i=t.varName;i===void 0&&r===`mask`&&(i=`svg`);let a={...t,mode:r,varName:i};r===`background`&&delete a.varName;let o=Object.create(null);return Object.assign(o,t.rules,dn(a),fn({...Jt,...e,body:n},a)),mn([{selector:t.iconSelector||`.icon`,rules:o}],a.format)}var gn=1e3,Z=new Map;function _n(e,t){let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Object.hasOwn(t,n)&&e[n]===t[n])}function vn(e,t,n){if(n)return hn(e,{iconSelector:t,format:`compressed`,customise:n});let r=Z.get(t);if(r&&_n(r.icon,e))return r.css;let i=hn(e,{iconSelector:t,format:`compressed`});return!r&&Z.size>=gn&&Z.clear(),Z.set(t,{icon:{...e},css:i}),i}var yn=!1;function bn(e){if(yn)return;let t=JSON.parse(`[{"prefix":"lucide","icons":{"activity":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\\"/>"},"alert-circle":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"arrow-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v14m7-7l-7 7l-7-7\\"/>"},"arrow-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 19l-7-7l7-7m7 7H5\\"/>"},"arrow-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7l7 7l-7 7\\"/>"},"arrow-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m5 12l7-7l7 7m-7 7V5\\"/>"},"arrow-up-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21 16l-4 4l-4-4m4 4V4M3 8l4-4l4 4M7 4v16\\"/>"},"arrow-up-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M7 7h10v10M7 17L17 7\\"/>"},"blocks":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2\\"/><rect width=\\"8\\" height=\\"8\\" x=\\"14\\" y=\\"2\\" rx=\\"1\\"/></g>"},"book-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v16m8.001-2A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2z\\"/>"},"bug":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 20v-9m2-4a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4zm.12-3.12L16 2\\"/><path d=\\"M21 21a4 4 0 0 0-3.81-4M21 5a4 4 0 0 1-3.55 3.97M22 13h-4M3 21a4 4 0 0 1 3.81-4M3 5a4 4 0 0 0 3.55 3.97M6 13H2M8 2l1.88 1.88M9 7.13V6a3 3 0 1 1 6 0v1.13\\"/></g>"},"calendar-range":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M16 2v3M3 9h18M8 2v3m9 8h-6m2 4H7m0-4h.01M17 17h.01\\"/></g>"},"chart-gantt":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M10 6h8m-6 10h6M3 3v16a2 2 0 0 0 2 2h16M8 11h7\\"/>"},"check":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 6L9 17l-5-5\\"/>"},"chevron-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 9l6 6l6-6\\"/>"},"chevron-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m15 18l-6-6l6-6\\"/>"},"chevron-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m9 18l6-6l-6-6\\"/>"},"chevron-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m18 15l-6-6l-6 6\\"/>"},"chevrons-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m11 17l-5-5l5-5m7 10l-5-5l5-5\\"/>"},"chevrons-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 17l5-5l-5-5m7 10l5-5l-5-5\\"/>"},"chevrons-up-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m7 15l5 5l5-5M7 9l5-5l5 5\\"/>"},"circle-alert":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"circle-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m16 9l-5.5 5.5L8 12\\"/></g>"},"circle-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m15 9l-6 6m0-6l6 6\\"/></g>"},"copy":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><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\\"/></g>"},"copy-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m12 15l2 2l4-4\\"/><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\\"/></g>"},"ellipsis":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"19\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"5\\" cy=\\"12\\" r=\\"1\\"/></g>"},"eye":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/></g>"},"eye-off":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242\\"/><path d=\\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20\\"/></g>"},"file":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><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\\"/></g>"},"flag":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528\\"/>"},"folder":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\\"/>"},"folder-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\\"/>"},"gauge":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 14l4-4M3.34 19a10 10 0 1 1 17.32 0\\"/>"},"git-branch":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M15 6a9 9 0 0 0-9 9V3\\"/><circle cx=\\"18\\" cy=\\"6\\" r=\\"3\\"/><circle cx=\\"6\\" cy=\\"18\\" r=\\"3\\"/></g>"},"git-commit-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 3v6\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/><path d=\\"M12 15v6\\"/></g>"},"grip-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"9\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"19\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"19\\" r=\\"1\\"/></g>"},"hash":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 9h16M4 15h16M10 3L8 21m8-18l-2 18\\"/>"},"info":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 16v-4m0-4h.01\\"/></g>"},"layers":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z\\"/><path d=\\"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12\\"/><path d=\\"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17\\"/></g>"},"layout-grid":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><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\\"/></g>"},"lightbulb":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4\\"/>"},"list-checks":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M13 5h8m-8 7h8m-8 7h8M3 17l2 2l4-4M3 7l2 2l4-4\\"/>"},"list-ordered":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02\\"/>"},"loader-circle":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M21 12a9 9 0 1 1-6.219-8.56\\"/>"},"map-pin":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\\"/><circle cx=\\"12\\" cy=\\"10\\" r=\\"3\\"/></g>"},"menu":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 5h16M4 12h16M4 19h16\\"/>"},"minus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14\\"/>"},"monitor":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"20\\" height=\\"14\\" x=\\"2\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M8 21h8m-4-4v4\\"/></g>"},"moon":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\\"/>"},"octagon-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 16h.01M12 8v4m3.312-10a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z\\"/>"},"panel-left-close":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m7-6l-3-3l3-3\\"/></g>"},"panel-left-open":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m5-12l3 3l-3 3\\"/></g>"},"plug-zap":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6l-2.3 2.3a2.4 2.4 0 0 0 0 3.4ZM2 22l3-3m2.5-5.5L10 11m.5 5.5L13 14m5-11l-4 4h6l-4 4\\"/>"},"plus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7v14\\"/>"},"refresh-cw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8\\"/><path d=\\"M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16\\"/><path d=\\"M8 16H3v5\\"/></g>"},"rotate-ccw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\\"/><path d=\\"M3 3v5h5\\"/></g>"},"scale":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 3v18m7-13l3 8a5 5 0 0 1-6 0zV7\\"/><path d=\\"M3 7h1a17 17 0 0 0 8-2a17 17 0 0 0 8 2h1M5 8l3 8a5 5 0 0 1-6 0zV7m2 14h10\\"/></g>"},"search":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m21 21l-4.34-4.34\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/></g>"},"search-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m13.5 8.5l-5 5m0-5l5 5\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/><path d=\\"m21 21l-4.3-4.3\\"/></g>"},"shield-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1zm-8-5v4m0 4h.01\\"/>"},"signal":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M2 20h.01M7 20v-4m5 4v-8m5 8V8m5-4v16\\"/>"},"sparkles":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4\\"/><circle cx=\\"4\\" cy=\\"20\\" r=\\"2\\"/></g>"},"square":{"width":24,"height":24,"body":"<rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" rx=\\"2\\"/>"},"star":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z\\"/>"},"sun":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"4\\"/><path d=\\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\\"/></g>"},"target":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"6\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"2\\"/></g>"},"terminal":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 19h8M4 17l6-6l-6-6\\"/>"},"trending-down":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M16 17h6v-6\\"/><path d=\\"m22 17l-8.5-8.5l-5 5L2 7\\"/></g>"},"triangle-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01\\"/>"},"upload":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\\"/>"},"x":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M18 6L6 18M6 6l12 12\\"/>"}}}]`);for(let n of t)for(let[t,r]of Object.entries(n.icons))e(n.prefix?n.prefix+`:`+t:t,r);yn=!0}var xn=45,Sn=new WeakMap;function Cn(e){if(!e)return[];let t=y(e),n=Sn.get(t);if(!n){let e=e=>[...e].sort((e,t)=>t.length-e.length);n=g(()=>e(_(t))),Sn.set(t,n)}return n.value}function wn(e,t){let n=e.startsWith(t.cssSelectorPrefix)?e.slice(t.cssSelectorPrefix.length):e,r=t.aliases?.[n]||n;if(!r.includes(`:`)){let e=Cn(t.collections).find(e=>r.charCodeAt(e.length)===xn&&r.startsWith(e));return e?e+`:`+r.slice(e.length+1):r}return r}async function Tn(e,t){if(!e)return null;bn(I);let n=L(e);if(n)return n;let r,i=mt(e).catch(()=>(console.warn(`[Icon] failed to load icon \`${e}\``),null));return t>0?await Promise.race([i,new Promise(n=>{r=setTimeout(()=>{console.warn(`[Icon] loading icon \`${e}\` timed out after ${t}ms`),n()},t)})]).finally(()=>clearTimeout(r)):await i,L(e)}function En(e){let t=O().icon;return g(()=>wn(e(),t))}function Dn(e,t){if(e!==!1)return e===!0||e===null?t:e}function On(e,t,n){if(n){t.appendChild(e);return}let r=t.querySelector(`style, link[rel="stylesheet"]`);r?t.insertBefore(e,r):t.appendChild(e)}var Q;function kn(e){return e.replace(/([^\w-])/g,`\\$1`)}function An(){if(Q)return Q;Q=new Set;let e=e=>{if(e=e.replace(/^:where\((.*)\)$/,`$1`).trim(),e.startsWith(`.`))return e},t=n=>{if(n?.length)for(let r of n){r?.cssRules&&t(r.cssRules);let n=r?.selectorText;if(typeof n==`string`){let t=e(n);t&&Q.add(t)}}};if(typeof document<`u`)for(let e of document.styleSheets)try{t(e.cssRules||e.rules)}catch{}return Q}var jn=C({name:`NuxtIconCss`,props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){let t=E(),n=O().icon,r=g(()=>{if(!e.name)return``;let t=n.cssSelectorPrefix+e.name;return typeof e.customize==`function`?t+`--customized-`+Gt(e.customize.toString()):t});function i(e){if(!e)return;let n=L(e);if(n)return n;let r=t.payload?.data?.[e];if(r)return I(e,r),r}let a=g(()=>`.`+kn(r.value));function o(t,r=!0,i=a.value){n.cssWherePseudo&&(i=`:where(${i})`);let o=vn(t,i,Dn(e.customize,n.customize));return n.cssLayer&&r?`@layer ${n.cssLayer} { ${o} }`:o}{let t=An();async function r(e,r,i){if(t.has(i)||typeof document>`u`)return;let a=document.createElement(`style`);a.textContent=o(e,!0,i),On(a,document.head,n.cssLayer),t.add(i)}S(()=>e.name,e=>{let n=a.value;if(t.has(n))return;let o=i(e);o?r(o,e,n):Tn(e,-1).then(t=>{t&&r(t,e,n)}).catch(()=>null)},{immediate:!0})}return K(),()=>w(`span`,{class:[`iconify`,r.value]})}});function Mn(e,t={}){let n,r=!1,i=[],a,o,c=(t,n)=>{let i=Nn(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,c(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let l=t.leading&&!r;r||(r=!0,s(()=>{r=!1;let a=o??e;o=void 0;let s=t.leading?n:c(this,a);for(let e of i)e(s);i=[]})),l?(n=c(this,e),a(n)):i.push(a)})}}async function Nn(e,t,n){return await e.apply(t,n)}C({name:`ServerPlaceholder`,render(){return ee(`div`)}});var Pn=Symbol.for(`nuxt:client-only`);C({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=l(!1);a(()=>{r.value=!0});let i=te();return i&&(i._nuxtClientOnly=!0),v(Pn,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[c(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return w(i);let a=e.fallback||e.placeholder||``,o=ae(e.fallbackTag||e.placeholderTag,`span`);return ee(o,n,a)}}});var Fn=h({docsBase:f,reporters:p});function In(e={}){{function a(...a){let o=typeof a[a.length-1]==`string`?a.pop():void 0;Rn(a[0],a[1])&&a.unshift(o);let[c,l,f={}]=a,p=!1,m=u(c)||typeof c==`function`,h=m?g(()=>t(c)):{value:c};if(!h.value||typeof h.value!=`string`)throw Fn.NUXT_E3008();if(typeof l!=`function`)throw Fn.NUXT_E3009();let _=typeof e==`function`,v=E(),y=_?e(f):e;if(!_)for(let e in y)y[e]!==void 0&&f[e]===void 0&&(f[e]=y[e]);if(f.server??=!0,f.default??=Hn,f.getCachedData??=Un,f.lazy??=!1,f.immediate??=!0,f.deep??=i.deep,f.dedupe??=`cancel`,f.enabled??=!0,_)for(let e in y)y[e]!==void 0&&(f[e]=y[e]);v._asyncData[h.value];function b(){let e={cause:`initial`,dedupe:f.dedupe},t=v._asyncData[h.value];return t?._init?v._asyncDataPromises[h.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=f.getCachedData(h.value,v,{cause:`initial`}),v._asyncData[h.value]=Vn(v,h.value,l,f,e.cachedData),v._asyncData[h.value]._initialCachedData=e.cachedData),()=>v._asyncData[h.value].execute(e)}let x=b(),C=v._asyncData[h.value];C._deps++;let w=f.server!==!1&&v.payload.serverRendered,ee=()=>!1;{let e=te(),i=!!e||ee();if(w&&f.immediate&&K(),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;n(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),re(()=>t.splice(0,t.length))}let a=i&&(e?._nuxtClientOnly||ne(Pn,!1)),o=h.value in v.payload.data;w&&v.isHydrating&&(C.error.value||C.data.value!==void 0&&(o||C._initialCachedData!==void 0))?C.status.value=C.error.value?`error`:`success`:i&&(!a&&v.payload.serverRendered&&v.isHydrating&&(!w||o)||f.lazy)&&f.immediate?e?e._nuxtOnBeforeMountCbs.push(x):n(()=>{x()}):f.immediate&&C.status.value!==`success`&&x();function c(e){let t=v._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let g=d(),_=()=>{},y=m?S(h,(e,t)=>{if((e||t)&&e!==t){p=!0;let n=v._asyncData[t]?.data.value!==void 0,r=v._asyncDataPromises[t]!==void 0,i={cause:`initial`,dedupe:f.dedupe};if(!v._asyncData[e]?._init){let r=f.getCachedData(e,v,{cause:`initial`});i.cachedData=r;let a=t&&n&&r===void 0?v._asyncData[t].data.value:r;v._asyncData[e]=Vn(v,e,l,f,a),v._asyncData[e]._initialCachedData=r}v._asyncData[e]._deps++,t&&c(t),f._keyTriggersExecute!==!1&&(f.immediate||n||r)&&v._asyncData[e].execute(i),s(()=>{p=!1})}},{flush:`sync`}):_,b=f.watch?S(f.watch,()=>{p||v._asyncData[h.value]?._execute({cause:`watch`,dedupe:f.dedupe})}):_,T=u(f.enabled)||typeof f.enabled==`function`?S(()=>t(f.enabled),e=>{let t=v._asyncData[h.value];!e&&t&&v._asyncDataPromises[h.value]&&(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete v._asyncDataPromises[h.value],t.status.value=`idle`)}):_;g&&r(()=>{y(),b(),T(),c(h.value)})}let T={data:$(()=>v._asyncData[h.value]?.data,!f.deep),pending:$(()=>v._asyncData[h.value]?.pending),status:$(()=>v._asyncData[h.value]?.status),error:$(()=>v._asyncData[h.value]?.error),refresh:(...e)=>v._asyncData[h.value]?._init?v._asyncData[h.value].execute(...e):b()(),execute:(...e)=>T.refresh(...e),clear:()=>{let e=v._asyncData[h.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}zn(v,h.value)}},D=Promise.resolve(f.lazy?void 0:v._asyncDataPromises[h.value]).then(()=>T);return Object.assign(D,T),Object.defineProperties(D,{then:{enumerable:!0,value:D.then.bind(D)},catch:{enumerable:!0,value:D.catch.bind(D)},finally:{enumerable:!0,value:D.finally.bind(D)}}),D}return a}}var Ln=In();function $(e,t=!1){let n=g({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}});return t&&(n.__v_isShallow=!0),n}function Rn(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function zn(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=T(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function Bn(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Vn(e,n,r,i,a){e.payload._errors[n]??=void 0;let s=i.getCachedData!==Un,c=r,u=i.deep?o:l,d=a!==void 0,f=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(n))&&await p.execute({cause:`refresh:hook`})}),p={data:u(d?a:i.default()),pending:g(()=>p.status.value===`pending`),error:b(e.payload._errors,n),status:l(`idle`),execute:(...r)=>{let[a,o=void 0]=r,s=a&&o===void 0&&typeof a==`object`?a:{};if(e._asyncDataPromises[n]&&(s.dedupe??i.dedupe)===`defer`)return e._asyncDataPromises[n];{let t=`cachedData`in s?s.cachedData:i.getCachedData(n,e,{cause:s.cause??`refresh:manual`});if(t!==void 0)return i.serialize!==!1&&(e.payload.data[n]=t),p.data.value=t,p.error.value=void 0,p.status.value=`success`,Promise.resolve(t)}if(t(i.enabled)===!1)return Promise.resolve(p.data.value);p._abortController&&p._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),p._abortController=new AbortController,p.status.value=`pending`;let l=new AbortController,u=new Promise((t,n)=>{try{let r=s.timeout??i.timeout,a=Wn([p._abortController?.signal,s?.signal],l.signal,r);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:l.signal});let o={signal:a},u=()=>Promise.resolve(c(e,o));if(i.middleware?.length)for(let e=i.middleware.length-1;e>=0;e--){let t=i.middleware[e],n=u;u=()=>Promise.resolve(t(n,o))}return u().then(t,n)}catch(e){n(e)}}).then(async t=>{if(e._asyncDataPromises[n]!==u)return;let r=t;i.transform&&(r=await i.transform(t)),i.pick&&(r=Bn(r,i.pick)),i.serialize!==!1&&(e.payload.data[n]=r),p.data.value=r,p.error.value=void 0,p.status.value=`success`}).catch(t=>{if(e._asyncDataPromises[n]!==u||p._abortController?.signal.aborted)return e._asyncDataPromises[n];if(typeof DOMException<`u`&&t instanceof DOMException&&t.name===`AbortError`)return p.status.value=`idle`,e._asyncDataPromises[n];p.error.value=D(t),p.data.value=T(i.default()),p.status.value=`error`}).finally(()=>{l.abort(),e._asyncDataPromises[n]===u&&delete e._asyncDataPromises[n]});return e._asyncDataPromises[n]=u,e._asyncDataPromises[n]},_execute:Mn((...e)=>p.execute(...e)),_default:i.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{f(),e._asyncData[n]===p&&(e._asyncData[n]?._init&&(e._asyncData[n]._init=!1),e._asyncDataPromises[n]&&(p._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[n],p.status.value===`pending`&&(p.status.value=`idle`)),s||m(()=>{e._asyncData[n]?._init||(zn(e,n),p.execute=()=>Promise.resolve())}))}};return p}var Hn=()=>void 0,Un=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function Wn(e,t,n){let r=e.filter(e=>!!e);if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var Gn=C({name:`NuxtIconSvg`,props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){let n=E(),r=O().icon,i=En(()=>e.name),a=`i-`+i.value;if(i.value){K();{let e=n.payload.data[a];e?I(i.value,e):bn(I)}}return()=>w(Pt,{icon:i.value,ssr:!0,customise:Dn(e.customize,r.customize)},t)}}),Kn=e({default:()=>qn}),qn=C({name:`NuxtIcon`,props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){let n=E(),r=O().icon,i=En(()=>e.name),a=g(()=>n.vueApp?.component(i.value)||((e.mode||r.mode)===`svg`?Gn:jn)),o=g(()=>{let t=e.size||r.size;return t?{fontSize:Number.isNaN(+t)?t:t+`px`}:null});return()=>w(a.value,{...r.attrs,name:i.value,class:r.class,style:o.value,customize:e.customize},t)}});export{zt as a,Ft as c,O as d,se as f,Fn as i,Be as l,Kn as n,q as o,Ln as r,K as s,qn as t,ht as u};
@@ -0,0 +1 @@
1
+ import{$ as e,Dr as t,G as n,Gn as r,K as i,Ln as a,N as o,Or as s,U as c,Vt as l,W as u,bn as ee,et as d,nt as f,q as p,qt as m,tr as h,wr as g}from"./DuWpPgcw.js";import{t as te}from"./7WA2NiBu.js";import{t as ne}from"./LjrS__tx.js";import{T as re,n as _,t as v}from"#entry";var ie={class:`stats`},ae={class:`stat stat-mint`},oe={class:`stat-top`},se={class:`stat-label`},ce={class:`stat-pill`},le={class:`stat-value`},ue={class:`stat-sub`},de={class:`stat-delta`},fe={class:`split`},pe={class:`spark`},me=[`title`],he={class:`stat`},ge={class:`stat-top`},_e={class:`stat-label`},ve={class:`stat-pill`},ye={class:`stat-value`},y={class:`stat-sub`},b={class:`stat-rows`},x={class:`stat-row`},S={class:`v`},C={class:`stat-row`},w={class:`v`},T={class:`stat-row`},E={class:`v`},D={class:`stat-row`},O={class:`v`},k={class:`stat-foot`},A={class:`row`},j={class:`bar`},M={class:`stat stat-lilac`},N={class:`stat-top`},P={class:`stat-label`},be={class:`stat-value`},xe={class:`unit`},Se={class:`stat-sub`},Ce={class:`stat-rows`},we={class:`stat-row`},Te={class:`v`},Ee={class:`stat-row`},De={class:`v`},Oe={class:`stat-row`},ke={class:`v`},Ae={class:`stat-row`},je={class:`v`},Me={class:`stat-foot`},Ne={class:`row`},Pe={class:`bar lilac`},Fe={class:`stat stat-ink`},Ie={class:`stat-top`},Le={class:`stat-label`},Re={class:`stat-value`},ze={class:`stat-rows`},Be={class:`stat-row`},Ve={class:`v`},He={class:`stat-row`},Ue={class:`v`},We={class:`stat-row`},Ge={class:`v`},Ke={class:`stat-row`},qe={class:`v`},Je={class:`stat-foot`},Ye={class:`row`},Xe={class:`bar on-dark`},F={class:`card tb`},Ze={class:`tb-l`},Qe={class:`tb-r`},$e={class:`mono`},et={class:`mono`},tt={class:`card board`},nt={class:`lanes`},rt={class:`lane-hd`},it={class:`lane-ct`},at={class:`lane-pts`},ot={class:`lane-bd`},st={class:`sc-top`},ct={class:`sc-id mono`},lt={class:`dim sc-wsjf`},ut=[`title`],dt={class:`sc-title`},ft={class:`sc-meta`},pt={class:`sc-tags`},mt={class:`tag tag-ghost`},ht={key:0,class:`tag tag-neutral mono`},gt=[`title`],_t=[`title`],vt={class:`bar slim sc-bar`},yt={key:0,class:`lane-empty`},I=v(f({__name:`index`,setup(f){let{stories:v,epics:I,states:L,progress:R,milestoneOfStory:z,pointsOf:B,milestones:bt,STATE_LABEL:V,STATE_SHORT:xt,STATE_DOT:St,TYPE_LABEL:Ct,TYPE_COLOR:wt,TYPE_ICON:Tt,PRIORITY_COLOR:Et,SCOPE_LABEL:H,wsjf:U,blockedStories:W}=_(),G=r(`all`),K=r(`all`),q=r(`rank`),Dt=c(()=>[{label:`全部史诗`,value:`all`,icon:`i-lucide-layers`},...I.value.map(e=>({label:`${e.id} ${e.title}`,value:e.id,icon:`i-lucide-layer-group`}))]),Ot=c(()=>[{label:`全部里程碑`,value:`all`,icon:`i-lucide-flag`},...bt.value.map(e=>({label:`${e.id} ${e.title}`,value:e.id,icon:e.kind===`mvp`?`i-lucide-star`:`i-lucide-map-pin`}))]),kt=[{label:`默认顺序`,value:`rank`,icon:`i-lucide-list-ordered`},{label:`按优先级 P0 → P3`,value:`priority`,icon:`i-lucide-alert-circle`},{label:`按 WSJF 价值/点数`,value:`wsjf`,icon:`i-lucide-scale`},{label:`按点数`,value:`points`,icon:`i-lucide-signal`}],J={P0:0,P1:1,P2:2,P3:3},Y=c(()=>{let e=v.value.filter(e=>!(G.value!==`all`&&e.epicId!==G.value||K.value!==`all`&&!z(e.id).some(e=>e.id===K.value)));return q.value===`priority`?[...e].sort((e,t)=>(J[e.priority]??9)-(J[t.priority]??9)||U(t)-U(e)):q.value===`wsjf`?[...e].sort((e,t)=>U(t)-U(e)):q.value===`points`?[...e].sort((e,t)=>t.points-e.points):e}),X=e=>Y.value.filter(t=>t.status===e),At=e=>B(X(e).map(e=>e.id)),Z=c(()=>{let e=Y.value,t=e.filter(e=>e.status===`done`),n=e.filter(e=>e.status===`in-progress`||e.status===`review`),r=e.filter(e=>e.status===`ready`||e.status===`draft`),i=e.filter(e=>e.status===`cancelled`),a=e.flatMap(e=>e.tasks??[]),o=e=>a.filter(t=>t.status===e).length;return{count:e.length,points:e.reduce((e,t)=>e+t.points,0),donePoints:t.reduce((e,t)=>e+t.points,0),done:t.length,running:n.length,idle:r.length,cancelled:i.length,tasks:a.length,tasksDone:o(`done`),taskRed:o(`red`),taskGreen:o(`green`),taskRefactor:o(`refactored`),taskTodo:o(`todo`),bugs:e.filter(e=>e.type===`bug`).length,debt:e.filter(e=>e.type===`debt`).length,scope:e.filter(e=>e.scopeChange).length}}),Q=c(()=>Z.value.points?Math.round(Z.value.donePoints/Z.value.points*100):0),jt=c(()=>Z.value.count?Math.round(Z.value.points/Z.value.count*10)/10:0),$=c(()=>Z.value.tasks?Math.round(Z.value.tasksDone/Z.value.tasks*100):0),Mt=c(()=>W.value.length+Z.value.bugs),Nt=c(()=>Math.max(1,...L.map(e=>X(e).length))),Pt=e=>8+Math.round(X(e).length/Nt.value*34),Ft=c(()=>{if(G.value===`all`)return`全部史诗`;let e=I.value.find(e=>e.id===G.value);return e?e.title.slice(0,6):`全部史诗`}),It=e=>z(e).filter(e=>e.kind===`mvp`);return(r,c)=>{let f=ne,_=te,v=re;return l(),p(`div`,null,[u(`div`,ie,[u(`article`,ae,[u(`div`,oe,[u(`span`,se,[d(f,{name:`i-lucide-gauge`,class:`size-3.5`}),c[3]||=e(`看板完成度`,-1)]),u(`span`,ce,s(h(Ft)),1)]),u(`div`,le,[e(s(h(Q)),1),c[4]||=u(`span`,{class:`unit`},`%`,-1)]),u(`div`,ue,[u(`span`,de,[d(f,{name:`i-lucide-check`,class:`size-3`}),e(s(h(Z).donePoints)+` 点`,1)]),e(` 已交付 · 共 `+s(h(Z).points)+` 点 `,1)]),u(`div`,fe,[u(`div`,null,[c[5]||=u(`span`,{class:`k`},`完成故事`,-1),u(`b`,null,[e(s(h(Z).done),1),u(`small`,null,`/`+s(h(Z).count),1)])]),u(`div`,null,[c[7]||=u(`span`,{class:`k`},`剩余点`,-1),u(`b`,null,[e(s(h(Z).points-h(Z).donePoints),1),c[6]||=u(`small`,null,`点`,-1)])])]),u(`div`,pe,[(l(!0),p(o,null,m(h(L),e=>(l(),p(`div`,{key:e,class:`spark-col`,title:`${h(V)[e]}:${X(e).length} 个`},[u(`div`,{class:g([`spark-bar`,{done:e===`done`,cancel:e===`cancelled`}]),style:t({height:Pt(e)+`px`})},null,6),u(`span`,null,s(h(xt)[e]),1)],8,me))),128))])]),u(`article`,he,[u(`div`,ge,[u(`span`,_e,[d(f,{name:`i-lucide-book-open`,class:`size-3.5`}),c[8]||=e(`故事`,-1)]),u(`span`,ve,s(Math.round(h(jt)))+` 点/个`,1)]),u(`div`,ye,[e(s(h(Z).count),1),c[9]||=u(`span`,{class:`unit`},`个`,-1)]),u(`div`,y,`共 `+s(h(Z).points)+` 点 · 任务 `+s(h(Z).tasks)+` 个`,1),u(`div`,b,[u(`div`,x,[c[10]||=u(`span`,{class:`k`},[u(`i`,{class:`dot`,style:{background:`#6aa844`}}),e(`已完成`)],-1),u(`span`,S,s(h(Z).done),1)]),u(`div`,C,[c[11]||=u(`span`,{class:`k`},[u(`i`,{class:`dot`,style:{background:`#3f7fd4`}}),e(`进行中`)],-1),u(`span`,w,s(h(Z).running),1)]),u(`div`,T,[c[12]||=u(`span`,{class:`k`},[u(`i`,{class:`dot`,style:{background:`#b6bac1`}}),e(`未开始`)],-1),u(`span`,E,s(h(Z).idle),1)]),u(`div`,D,[c[13]||=u(`span`,{class:`k`},[u(`i`,{class:`dot`,style:{background:`#cf4759`}}),e(`已取消`)],-1),u(`span`,O,s(h(Z).cancelled),1)])]),u(`div`,k,[u(`div`,A,[u(`span`,null,`任务完成 `+s(h(Z).tasksDone)+`/`+s(h(Z).tasks),1),u(`span`,null,s(h($))+`%`,1)]),u(`div`,j,[u(`i`,{style:t({width:h($)+`%`})},null,4)])])]),u(`article`,M,[u(`div`,N,[u(`span`,P,[d(f,{name:`i-lucide-list-checks`,class:`size-3.5`}),c[14]||=e(`TDD 任务`,-1)]),c[15]||=u(`span`,{class:`stat-pill`},`红 → 绿 → 重构`,-1)]),u(`div`,be,[e(s(h(Z).tasksDone),1),u(`span`,xe,`/ `+s(h(Z).tasks)+` 项`,1)]),u(`div`,Se,`已完成任务占 `+s(h($))+`%`,1),u(`div`,Ce,[u(`div`,we,[c[16]||=u(`span`,{class:`k`},[u(`i`,{class:`dot`,style:{background:`#cf4759`}}),e(`红(测试失败)`)],-1),u(`span`,Te,s(h(Z).taskRed),1)]),u(`div`,Ee,[c[17]||=u(`span`,{class:`k`},[u(`i`,{class:`dot`,style:{background:`#6aa844`}}),e(`绿(测试通过)`)],-1),u(`span`,De,s(h(Z).taskGreen),1)]),u(`div`,Oe,[c[18]||=u(`span`,{class:`k`},[u(`i`,{class:`dot`,style:{background:`#6d4ff0`}}),e(`已重构`)],-1),u(`span`,ke,s(h(Z).taskRefactor),1)]),u(`div`,Ae,[c[19]||=u(`span`,{class:`k`},[u(`i`,{class:`dot`,style:{background:`#b6bac1`}}),e(`待办`)],-1),u(`span`,je,s(h(Z).taskTodo),1)])]),u(`div`,Me,[u(`div`,Ne,[u(`span`,null,`已完成 `+s(h(Z).tasksDone)+`/`+s(h(Z).tasks),1),u(`span`,null,s(h($))+`%`,1)]),u(`div`,Pe,[u(`i`,{style:t({width:h($)+`%`})},null,4)])])]),u(`article`,Fe,[u(`div`,Ie,[u(`span`,Le,[d(f,{name:`i-lucide-shield-alert`,class:`size-3.5`}),c[20]||=e(`风险面`,-1)]),c[21]||=u(`span`,{class:`stat-pill`},`需处理`,-1)]),u(`div`,Re,[e(s(h(Mt)),1),c[22]||=u(`span`,{class:`unit`},`项`,-1)]),c[28]||=u(`div`,{class:`stat-sub`},`阻塞故事与缺陷合计`,-1),u(`div`,ze,[u(`div`,Be,[c[23]||=u(`span`,{class:`k`},`阻塞故事`,-1),u(`span`,Ve,s(h(W).length),1)]),u(`div`,He,[c[24]||=u(`span`,{class:`k`},`缺陷`,-1),u(`span`,Ue,s(h(Z).bugs),1)]),u(`div`,We,[c[25]||=u(`span`,{class:`k`},`技术债`,-1),u(`span`,Ge,s(h(Z).debt),1)]),u(`div`,Ke,[c[26]||=u(`span`,{class:`k`},`范围变更`,-1),u(`span`,qe,s(h(Z).scope),1)])]),u(`div`,Je,[u(`div`,Ye,[c[27]||=u(`span`,null,`完成度`,-1),u(`span`,null,s(h(Q))+`%`,1)]),u(`div`,Xe,[u(`i`,{style:t({width:h(Q)+`%`})},null,4)])])])]),u(`div`,F,[u(`div`,Ze,[c[29]||=u(`span`,{class:`lbl`},`筛选`,-1),d(_,{modelValue:h(G),"onUpdate:modelValue":c[0]||=e=>a(G)?G.value=e:null,items:h(Dt),icon:`i-lucide-layers`,"aria-label":`按史诗筛选`},null,8,[`modelValue`,`items`]),d(_,{modelValue:h(K),"onUpdate:modelValue":c[1]||=e=>a(K)?K.value=e:null,items:h(Ot),icon:`i-lucide-flag`,"aria-label":`按里程碑筛选`},null,8,[`modelValue`,`items`]),d(_,{modelValue:h(q),"onUpdate:modelValue":c[2]||=e=>a(q)?q.value=e:null,items:kt,icon:`i-lucide-arrow-up-down`,"aria-label":`排序方式`},null,8,[`modelValue`])]),u(`div`,Qe,[u(`span`,$e,s(h(Y).length),1),c[30]||=e(` 个故事 `,-1),c[31]||=u(`i`,{class:`sep`},null,-1),u(`span`,et,s(h(B)(h(Y).map(e=>e.id))),1),c[32]||=e(` 点 `,-1)])]),u(`div`,tt,[u(`div`,nt,[(l(!0),p(o,null,m(h(L),r=>(l(),p(`section`,{key:r,class:`lane`},[u(`header`,rt,[u(`i`,{class:`lane-dot`,style:t({background:h(St)[r]})},null,4),u(`b`,null,s(h(V)[r]),1),u(`span`,it,s(X(r).length),1),u(`span`,at,s(At(r))+` 点`,1)]),u(`div`,ot,[(l(!0),p(o,null,m(X(r),r=>(l(),n(v,{key:r.id,to:`/story/${r.id}`,class:`scard`},{default:ee(()=>[u(`div`,st,[u(`span`,ct,s(r.id),1),u(`span`,{class:g([`tag`,`tag-${h(Et)[r.priority]}`])},s(r.priority),3),u(`span`,lt,`WSJF `+s(h(U)(r)),1),r.blocked?(l(),p(`span`,{key:0,class:`tag tag-error tag-dot`,title:`阻塞中:${r.blocked.reason}(自 ${r.blocked.since})`},`阻塞`,8,ut)):i(``,!0)]),u(`p`,dt,s(r.title),1),u(`div`,ft,[u(`span`,null,s(r.points)+` 点`,1),c[33]||=u(`span`,{class:`dim`},`·`,-1),u(`span`,null,`任务 `+s(h(R)(r).done)+`/`+s(h(R)(r).total),1)]),u(`div`,pt,[u(`span`,{class:g([`tag`,`tag-${h(wt)[r.type]}`])},[d(f,{name:h(Tt)[r.type],class:`size-3`},null,8,[`name`]),e(s(h(Ct)[r.type]),1)],2),u(`span`,mt,s(r.epicId),1),r.sprintId?(l(),p(`span`,ht,s(r.sprintId),1)):i(``,!0),(l(!0),p(o,null,m(It(r.id),e=>(l(),p(`span`,{key:e.id,class:`tag tag-mint`,title:`${e.id} ${e.title} · ${e.criteria}`},`MVP`,8,gt))),128)),r.scopeChange?(l(),p(`span`,{key:1,class:`tag tag-info`,title:`${h(H)[r.scopeChange.kind]}(${r.scopeChange.at}):${r.scopeChange.reason}`},s(h(H)[r.scopeChange.kind]),9,_t)):i(``,!0)]),u(`div`,vt,[u(`i`,{style:t({width:h(R)(r).pct+`%`})},null,4)])]),_:2},1032,[`to`]))),128)),X(r).length?i(``,!0):(l(),p(`p`,yt,`暂无故事`))])]))),128))])])])}}}),[[`__scopeId`,`data-v-a4424998`]]);export{I as default};