scrum-skills 0.2.0 → 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 (62) hide show
  1. package/LICENSE +21 -0
  2. package/assets/board/200.html +1 -1
  3. package/assets/board/404.html +1 -1
  4. package/assets/board/_nuxt/4lorSwrA.js +1 -0
  5. package/assets/board/_nuxt/7WA2NiBu.js +1 -0
  6. package/assets/board/_nuxt/BMkghBSN.js +6 -0
  7. package/assets/board/_nuxt/BO7jzDkR.js +1 -0
  8. package/assets/board/_nuxt/BZ3zxHIj.js +1 -0
  9. package/assets/board/_nuxt/BhF-44v-.js +13 -0
  10. package/assets/board/_nuxt/C3UUYAQd.js +1 -0
  11. package/assets/board/_nuxt/CJAcsUQO.js +3 -0
  12. package/assets/board/_nuxt/CRaaiMq0.js +1 -0
  13. package/assets/board/_nuxt/CW444i7s.js +1 -0
  14. package/assets/board/_nuxt/CfONUjDo.js +1 -0
  15. package/assets/board/_nuxt/DKNZ_ohS.js +1 -0
  16. package/assets/board/_nuxt/LjrS__tx.js +1 -0
  17. package/assets/board/_nuxt/_id_.DhbZaLbc.css +1 -0
  18. package/assets/board/_nuxt/builds/latest.json +1 -1
  19. package/assets/board/_nuxt/builds/meta/2c1d27b2-e682-4213-b9a1-85509dcba982.json +1 -0
  20. package/assets/board/_nuxt/burndown.BENzf335.css +1 -0
  21. package/assets/board/_nuxt/entry.CRMqPpqu.css +2 -0
  22. package/assets/board/_nuxt/epics.BeC881O2.css +1 -0
  23. package/assets/board/_nuxt/gantt.B1Ztrpq6.css +1 -0
  24. package/assets/board/_nuxt/laFvd4Y3.js +16 -0
  25. package/assets/board/_nuxt/milestones.B2QTaR0Y.css +1 -0
  26. package/assets/board/_nuxt/pages.DuMz_V7L.css +1 -0
  27. package/assets/board/burndown/index.html +1 -1
  28. package/assets/board/epics/index.html +1 -1
  29. package/assets/board/gantt/index.html +1 -1
  30. package/assets/board/index.html +1 -1
  31. package/assets/board/milestones/index.html +1 -1
  32. package/docs/board.png +0 -0
  33. package/package.json +1 -1
  34. package/assets/board/_nuxt/BNG0e--z.js +0 -6
  35. package/assets/board/_nuxt/BWaQPvUU.js +0 -8
  36. package/assets/board/_nuxt/BcDeF-Nj.js +0 -1
  37. package/assets/board/_nuxt/BeTHElHy.js +0 -1
  38. package/assets/board/_nuxt/BrhpXuqy.js +0 -1
  39. package/assets/board/_nuxt/C218H_dA.js +0 -1
  40. package/assets/board/_nuxt/C37hh6-M.js +0 -1
  41. package/assets/board/_nuxt/C6_z9Ljo.js +0 -1
  42. package/assets/board/_nuxt/Cg4fvkkC.js +0 -4
  43. package/assets/board/_nuxt/Ci-XR_iv.js +0 -1
  44. package/assets/board/_nuxt/Cxemkb8I.js +0 -3
  45. package/assets/board/_nuxt/D1zk137d.js +0 -1
  46. package/assets/board/_nuxt/D8i1JTd1.js +0 -1
  47. package/assets/board/_nuxt/DVUil5cj.js +0 -1
  48. package/assets/board/_nuxt/DW7rSQ02.js +0 -1
  49. package/assets/board/_nuxt/DbghXjRj.js +0 -1
  50. package/assets/board/_nuxt/DcGinDT7.js +0 -6
  51. package/assets/board/_nuxt/DhgUnnc1.js +0 -16
  52. package/assets/board/_nuxt/DqkHw_T9.js +0 -1
  53. package/assets/board/_nuxt/OHMTu69O.js +0 -1
  54. package/assets/board/_nuxt/W_UkaXSY.js +0 -1
  55. package/assets/board/_nuxt/_id_.IxcmgCc3.css +0 -1
  56. package/assets/board/_nuxt/builds/meta/cf3421e0-2439-4091-aeea-10c06027154f.json +0 -1
  57. package/assets/board/_nuxt/burndown.DSciF97B.css +0 -1
  58. package/assets/board/_nuxt/entry.DEq3ipbJ.css +0 -2
  59. package/assets/board/_nuxt/epics.jbQSHA_o.css +0 -1
  60. package/assets/board/_nuxt/gantt.BZpeqgtE.css +0 -1
  61. package/assets/board/_nuxt/milestones.DqyGYjt4.css +0 -1
  62. package/assets/board/_nuxt/pages.D1M7qr1l.css +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 martsforever
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>敏捷看板</title><script type="importmap">{"imports":{"#entry":"/_nuxt/DhgUnnc1.js"}}</script><link rel="stylesheet" href="/_nuxt/entry.DEq3ipbJ.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DhgUnnc1.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DuWpPgcw.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/Brv_Bdja.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DbghXjRj.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BNG0e--z.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/OHMTu69O.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D1zk137d.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BeTHElHy.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/C218H_dA.js"><script type="module" src="/_nuxt/DhgUnnc1.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/_nuxt/BWaQPvUU.js"><link rel="prefetch" as="script" crossorigin href="/_nuxt/DcGinDT7.js"><link rel="prefetch" as="script" crossorigin href="/_nuxt/Cxemkb8I.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-404.BFmXOnCT.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/DW7rSQ02.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-500.BZ-DdjQ6.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CNsYxQaQ.js"></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"cf3421e0-2439-4091-aeea-10c06027154f",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1792919574000,false]</script></body></html>
1
+ <!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>敏捷看板</title><script type="importmap">{"imports":{"#entry":"/_nuxt/laFvd4Y3.js"}}</script><link rel="stylesheet" href="/_nuxt/entry.CRMqPpqu.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/laFvd4Y3.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DuWpPgcw.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/Brv_Bdja.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BMkghBSN.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DKNZ_ohS.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/LjrS__tx.js"><script type="module" src="/_nuxt/laFvd4Y3.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/_nuxt/BhF-44v-.js"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CJAcsUQO.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-404.BFmXOnCT.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CRaaiMq0.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-500.BZ-DdjQ6.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CNsYxQaQ.js"></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"2c1d27b2-e682-4213-b9a1-85509dcba982",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1792927852837,false]</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>敏捷看板</title><script type="importmap">{"imports":{"#entry":"/_nuxt/DhgUnnc1.js"}}</script><link rel="stylesheet" href="/_nuxt/entry.DEq3ipbJ.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DhgUnnc1.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DuWpPgcw.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/Brv_Bdja.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DbghXjRj.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BNG0e--z.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/OHMTu69O.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D1zk137d.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BeTHElHy.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/C218H_dA.js"><script type="module" src="/_nuxt/DhgUnnc1.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/_nuxt/BWaQPvUU.js"><link rel="prefetch" as="script" crossorigin href="/_nuxt/DcGinDT7.js"><link rel="prefetch" as="script" crossorigin href="/_nuxt/Cxemkb8I.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-404.BFmXOnCT.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/DW7rSQ02.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-500.BZ-DdjQ6.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CNsYxQaQ.js"></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"cf3421e0-2439-4091-aeea-10c06027154f",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1792919574000,false]</script></body></html>
1
+ <!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>敏捷看板</title><script type="importmap">{"imports":{"#entry":"/_nuxt/laFvd4Y3.js"}}</script><link rel="stylesheet" href="/_nuxt/entry.CRMqPpqu.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/laFvd4Y3.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DuWpPgcw.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/Brv_Bdja.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BMkghBSN.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DKNZ_ohS.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/LjrS__tx.js"><script type="module" src="/_nuxt/laFvd4Y3.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/_nuxt/BhF-44v-.js"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CJAcsUQO.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-404.BFmXOnCT.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CRaaiMq0.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-500.BZ-DdjQ6.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CNsYxQaQ.js"></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"2c1d27b2-e682-4213-b9a1-85509dcba982",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1792927852837,false]</script></body></html>
@@ -0,0 +1 @@
1
+ import{$ as e,Dr as t,G as ee,K as n,N as r,Or as i,Q as a,U as o,Vt as s,W as c,bn as te,et as l,nt as u,q as d,qt as f,tr as p,wr as m}from"./DuWpPgcw.js";import{t as ne}from"./LjrS__tx.js";import{T as re,n as h,t as g}from"#entry";var ie={class:`kpis`},ae={class:`kpi tint-mint`},oe={class:`v`},se={class:`kpi tint-lilac`},ce={class:`v`},_={class:`kpi`},v={class:`v`},y={class:`kpi`},b={class:`v`},x={class:`kpi`},S={class:`v`},C={class:`card tl-wrap`},w={class:`card-hd tl-hd`},T={class:`h2`},E={class:`timeline`},D={key:0,class:`tl-today`},O={class:`tl-item`},k={class:`when`},A={class:`when-date mono`},j={class:`when-year`},M={class:`axis`},N={class:`node-top`},P={class:`tag tag-ghost`},F={key:0,class:`tag tag-neutral mono`},I={class:`node-title`},L={class:`criteria`},R={class:`nums`},z={class:`mpct`},B={class:`mss`},le={class:`st-id mono`},V={class:`st-title`},H={class:`st-state dim`},U={class:`st-pts dim`},W={key:0,class:`tl-today`},G=g(u({__name:`milestones`,setup(u){let{milestones:g,milestoneProgress:G,now:K,md:ue,MS_LABEL:de,MS_COLOR:fe,KIND_LABEL:pe,KIND_ICON:me,STATE_DOT:he,STATE_LABEL:ge,diffDays:_e}=h(),q=o(()=>[...g.value].sort((e,t)=>e.due<t.due?-1:+(e.due>t.due))),J=e=>_e(K,e),Y=e=>{let t=G(e);return t.total?Math.round(t.done/t.total*100):0},X=e=>e===`mvp`?`mint`:e===`release`?`lilac`:`ink`,ve=e=>({reached:`ok`,"at-risk":`risk`,planned:`plan`,missed:`miss`})[e]??`plan`,Z=[`日`,`一`,`二`,`三`,`四`,`五`,`六`],ye=e=>`周${Z[new Date(`${e}T00:00:00Z`).getUTCDay()]}`,be=e=>{let t=J(e);return t>0?`还剩 ${t} 天`:t===0?`今天到期`:`已过 ${-t} 天`},Q=o(()=>{let e=q.value.findIndex(e=>e.due>=K);return e<0?q.value.length:e}),$=o(()=>({mvp:g.value.filter(e=>e.kind===`mvp`).length,release:g.value.filter(e=>e.kind===`release`).length,checkpoint:g.value.filter(e=>e.kind===`checkpoint`).length,risk:g.value.filter(e=>e.status===`at-risk`||e.status===`missed`).length,reached:g.value.filter(e=>e.status===`reached`).length}));return(o,u)=>{let h=ne,K=re;return s(),d(`div`,null,[c(`div`,ie,[c(`div`,ae,[u[1]||=c(`p`,{class:`k`},`MVP 节点`,-1),c(`p`,oe,[e(i(p($).mvp),1),u[0]||=c(`small`,null,`个`,-1)])]),c(`div`,se,[u[3]||=c(`p`,{class:`k`},`发布节点`,-1),c(`p`,ce,[e(i(p($).release),1),u[2]||=c(`small`,null,`个`,-1)])]),c(`div`,_,[u[5]||=c(`p`,{class:`k`},`检查点`,-1),c(`p`,v,[e(i(p($).checkpoint),1),u[4]||=c(`small`,null,`个`,-1)])]),c(`div`,y,[u[6]||=c(`p`,{class:`k`},`已达成`,-1),c(`p`,b,[e(i(p($).reached),1),c(`small`,null,`/ `+i(p(g).length),1)])]),c(`div`,x,[u[8]||=c(`p`,{class:`k`},`有风险 / 错过`,-1),c(`p`,S,[e(i(p($).risk),1),u[7]||=c(`small`,null,`个`,-1)])])]),c(`div`,C,[c(`div`,w,[c(`h2`,T,[l(h,{name:`i-lucide-git-commit-vertical`,class:`size-3.5`}),u[9]||=e(`时间线`,-1)]),u[10]||=a(`<span class="dim tip" data-v-0782a673>按到期日从早到晚 · 节点达成口径是「挂的故事全部完成」</span><div class="legend" data-v-0782a673><span class="lg" data-v-0782a673><i class="sw mint" data-v-0782a673></i>MVP</span><span class="lg" data-v-0782a673><i class="sw lilac" data-v-0782a673></i>发布</span><span class="lg" data-v-0782a673><i class="sw white" data-v-0782a673></i>检查点</span><i class="sep" data-v-0782a673></i><span class="lg" data-v-0782a673><i class="dot ok" data-v-0782a673></i>已达成</span><span class="lg" data-v-0782a673><i class="dot risk" data-v-0782a673></i>有风险</span><span class="lg" data-v-0782a673><i class="dot plan" data-v-0782a673></i>计划中</span></div>`,2)]),c(`div`,E,[(s(!0),d(r,null,f(p(q),(a,o)=>(s(),d(r,{key:a.id},[o===p(Q)?(s(),d(`div`,D,[...u[11]||=[c(`span`,{class:`today-when`},`今天`,-1),c(`span`,{class:`today-axis`},[c(`i`)],-1),c(`span`,{class:`today-line`},null,-1)]])):n(``,!0),c(`article`,O,[c(`div`,k,[c(`p`,A,i(p(ue)(a.due)),1),c(`p`,j,i(ye(a.due)),1)]),c(`div`,M,[c(`span`,{class:m([`dot-lg`,ve(a.status)])},[a.status===`reached`?(s(),ee(h,{key:0,name:`i-lucide-check`,class:`size-2.5`})):n(``,!0)],2)]),c(`div`,{class:m([`node`,`node-${X(a.kind)}`])},[c(`div`,N,[c(`span`,P,i(a.id),1),c(`span`,{class:m([`tag`,`tag-${p(fe)[a.status]}`])},i(p(de)[a.status]),3),c(`span`,{class:m([`tag`,a.kind===`mvp`?`tag-mint`:a.kind===`release`?`tag-primary`:`tag-neutral`])},[l(h,{name:p(me)[a.kind],class:`size-3`},null,8,[`name`]),e(i(p(pe)[a.kind]),1)],2),a.sprintId?(s(),d(`span`,F,i(a.sprintId),1)):n(``,!0),c(`span`,{class:m([`days`,{over:J(a.due)<0,soon:J(a.due)>=0&&J(a.due)<=7}])},i(be(a.due)),3)]),c(`h3`,I,i(a.title),1),c(`p`,L,i(a.criteria),1),c(`div`,R,[c(`span`,null,[c(`b`,null,i(p(G)(a).done)+`/`+i(p(G)(a).total),1),u[12]||=e(` 个故事`,-1)]),u[13]||=c(`span`,{class:`dim`},`·`,-1),c(`span`,null,i(p(G)(a).points)+` 点`,1),c(`span`,z,i(Y(a))+`%`,1)]),c(`div`,{class:m([`bar`,a.kind===`checkpoint`?``:X(a.kind)])},[c(`i`,{style:t({width:Y(a)+`%`})},null,4)],2),c(`ul`,B,[(s(!0),d(r,null,f(p(G)(a).list,e=>(s(),d(`li`,{key:e.id},[l(K,{to:`/story/${e.id}`,class:`srow`},{default:te(()=>[c(`i`,{class:`sdot`,style:t({background:p(he)[e.status]})},null,4),c(`span`,le,i(e.id),1),c(`span`,V,i(e.title),1),c(`span`,H,i(p(ge)[e.status]),1),c(`span`,U,i(e.points),1)]),_:2},1032,[`to`])]))),128))])],2)])],64))),128)),p(Q)===p(q).length?(s(),d(`div`,W,[...u[14]||=[c(`span`,{class:`today-when`},`今天`,-1),c(`span`,{class:`today-axis`},[c(`i`)],-1),c(`span`,{class:`today-line`},null,-1)]])):n(``,!0)])])])}}}),[[`__scopeId`,`data-v-0782a673`]]);export{G as default};
@@ -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};