@adamosuiteservices/ui 1.2.5 → 1.4.5

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 (183) hide show
  1. package/dist/accordion-rounded.cjs +1 -1
  2. package/dist/accordion-rounded.js +1 -1
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/avatar.cjs +1 -1
  6. package/dist/avatar.js +1 -1
  7. package/dist/badge.cjs +1 -1
  8. package/dist/badge.js +1 -1
  9. package/dist/breadcrumb.cjs +1 -0
  10. package/dist/breadcrumb.js +105 -0
  11. package/dist/{button-C1n6snOY.js → button-2GdKenQI.js} +1 -1
  12. package/dist/{button-BV-_FVKZ.cjs → button-DEQVHMrX.cjs} +1 -1
  13. package/dist/button-group.cjs +1 -1
  14. package/dist/button-group.js +2 -2
  15. package/dist/button.cjs +1 -1
  16. package/dist/button.js +1 -1
  17. package/dist/calendar.cjs +1 -1
  18. package/dist/calendar.js +1 -1
  19. package/dist/{checkbox-BrmXPKTn.js → checkbox-Dr487kAg.js} +3 -3
  20. package/dist/{checkbox-Lq-HvSgc.cjs → checkbox-YWAnswaW.cjs} +1 -1
  21. package/dist/checkbox.cjs +1 -1
  22. package/dist/checkbox.js +1 -1
  23. package/dist/collapsible.cjs +1 -1
  24. package/dist/collapsible.js +1 -1
  25. package/dist/combobox.cjs +1 -1
  26. package/dist/combobox.js +6 -6
  27. package/dist/components/layout/sidebar/sidebar.d.ts +7 -3
  28. package/dist/components/ui/badge/badge.d.ts +1 -1
  29. package/dist/components/ui/breadcrumb/breadcrumb.d.ts +11 -0
  30. package/dist/components/ui/breadcrumb/breadcrumb.stories.d.ts +26 -0
  31. package/dist/components/ui/breadcrumb/index.d.ts +1 -0
  32. package/dist/components/ui/button/button.d.ts +2 -2
  33. package/dist/components/ui/dialog/dialog.d.ts +2 -1
  34. package/dist/components/ui/input-group/input-group.d.ts +1 -1
  35. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  36. package/dist/components/ui/typography/typography.d.ts +1 -1
  37. package/dist/context-menu.cjs +1 -1
  38. package/dist/context-menu.js +2 -2
  39. package/dist/custom-layered-styles.css +1 -1
  40. package/dist/dialog.cjs +1 -1
  41. package/dist/dialog.js +33 -19
  42. package/dist/dropdown-menu.cjs +1 -1
  43. package/dist/dropdown-menu.js +3 -3
  44. package/dist/ellipsis-CryjZKZn.js +15 -0
  45. package/dist/ellipsis-Ct9VTDOG.cjs +6 -0
  46. package/dist/field.cjs +1 -1
  47. package/dist/field.js +2 -2
  48. package/dist/hover-card.cjs +1 -1
  49. package/dist/hover-card.js +6 -6
  50. package/dist/{index-CAOY367Y.js → index-B0M7VOwp.js} +2 -2
  51. package/dist/{index-B-ZRqW0J.js → index-BBoIAjAs.js} +3 -3
  52. package/dist/{index-gO_QEiaK.cjs → index-BDs8lUfq.cjs} +1 -1
  53. package/dist/index-BFyr34mw.cjs +5 -0
  54. package/dist/index-BMWt1NBG.js +79 -0
  55. package/dist/{index-yR-v1A4G.js → index-BX9hz-JD.js} +1 -1
  56. package/dist/{index-BGiGvaq8.cjs → index-BcGMAmWE.cjs} +1 -1
  57. package/dist/{index-IKJMQref.cjs → index-Bd0gQB0k.cjs} +1 -1
  58. package/dist/{index-VIUqZjyP.cjs → index-BeWgla7c.cjs} +1 -1
  59. package/dist/{index-EUea2gfp.js → index-BpWB3aFK.js} +1 -1
  60. package/dist/index-BvLQnI56.js +59 -0
  61. package/dist/{index-CwUFT-GQ.js → index-C0YiLSjW.js} +4 -4
  62. package/dist/{index-o0sNTcKe.js → index-CBjZooac.js} +2 -2
  63. package/dist/{index-DnS_sBBe.cjs → index-COuvjZLM.cjs} +1 -1
  64. package/dist/index-CTjlbbt9.cjs +1 -0
  65. package/dist/index-CUWMxxKG.js +97 -0
  66. package/dist/{index-C329e3yQ.js → index-CZZ3llmi.js} +2 -2
  67. package/dist/index-CjyiloO7.cjs +1 -0
  68. package/dist/{index-D3wSWKST.cjs → index-Cmx9M9cZ.cjs} +1 -1
  69. package/dist/index-CocSS1YK.cjs +1 -0
  70. package/dist/index-CzRiuk60.cjs +1 -0
  71. package/dist/index-DFPDUUq7.js +658 -0
  72. package/dist/{index-D3S7dBDI.cjs → index-DIwmXz1u.cjs} +1 -1
  73. package/dist/index-DLcqcWxM.js +29 -0
  74. package/dist/index-DMLQL2aG.js +286 -0
  75. package/dist/{index-DXQ-7kNJ.cjs → index-DMs8RL3E.cjs} +1 -1
  76. package/dist/{index-Ce3QBKyj.cjs → index-Dbj9vHNq.cjs} +1 -1
  77. package/dist/{index-BRLtxFFr.cjs → index-DmGzwG2z.cjs} +1 -1
  78. package/dist/{index-P1sVIHE3.js → index-PYkEXTqJ.js} +1 -1
  79. package/dist/{index-DulPG3F9.js → index-Se4vRnIO.js} +3 -3
  80. package/dist/index-_XxjJPRD.cjs +1 -0
  81. package/dist/{index-B-cHTKrs.js → index-yWvyIlmA.js} +4 -4
  82. package/dist/input-group.cjs +1 -1
  83. package/dist/input-group.js +1 -1
  84. package/dist/{label-Cne2J57f.cjs → label-BjXORCBM.cjs} +1 -1
  85. package/dist/{label-Ky8qBEC3.js → label-CmwGvhy1.js} +1 -1
  86. package/dist/label.cjs +1 -1
  87. package/dist/label.js +1 -1
  88. package/dist/pagination.cjs +1 -6
  89. package/dist/pagination.js +58 -69
  90. package/dist/popover-3rIoNCXs.js +306 -0
  91. package/dist/popover-FCKBtFo-.cjs +1 -0
  92. package/dist/popover.cjs +1 -1
  93. package/dist/popover.js +1 -1
  94. package/dist/progress.cjs +1 -1
  95. package/dist/progress.js +1 -1
  96. package/dist/radio-group.cjs +1 -1
  97. package/dist/radio-group.js +5 -5
  98. package/dist/select.cjs +2 -2
  99. package/dist/select.js +585 -542
  100. package/dist/{separator-CGnu_jIu.cjs → separator-BaZqZZ9R.cjs} +1 -1
  101. package/dist/{separator-BH73A90k.js → separator-DR7lQjv9.js} +1 -1
  102. package/dist/separator.cjs +1 -1
  103. package/dist/separator.js +1 -1
  104. package/dist/{sheet-CcxnJ6LH.cjs → sheet-CU-sFSaJ.cjs} +1 -1
  105. package/dist/{sheet-_DVpQIVF.js → sheet-UZWAbdXr.js} +1 -1
  106. package/dist/sheet.cjs +1 -1
  107. package/dist/sheet.js +1 -1
  108. package/dist/sidebar.cjs +2 -2
  109. package/dist/sidebar.js +89 -78
  110. package/dist/slider.cjs +1 -1
  111. package/dist/slider.js +3 -3
  112. package/dist/styles.css +1 -1
  113. package/dist/switch.cjs +1 -1
  114. package/dist/switch.js +2 -2
  115. package/dist/tabs-underline.cjs +1 -1
  116. package/dist/tabs-underline.js +1 -1
  117. package/dist/tabs.cjs +1 -1
  118. package/dist/tabs.js +1 -1
  119. package/dist/toaster.cjs +1 -1
  120. package/dist/toaster.js +1 -1
  121. package/dist/toggle.cjs +1 -1
  122. package/dist/toggle.js +1 -1
  123. package/dist/tooltip.cjs +1 -1
  124. package/dist/tooltip.js +114 -108
  125. package/dist/typography.cjs +1 -1
  126. package/dist/typography.js +1 -1
  127. package/docs/AI-GUIDE.md +321 -0
  128. package/docs/components/layout/sidebar.md +404 -0
  129. package/docs/components/layout/toaster.md +436 -0
  130. package/docs/components/ui/accordion-rounded.md +583 -0
  131. package/docs/components/ui/accordion.md +267 -0
  132. package/docs/components/ui/alert.md +671 -0
  133. package/docs/components/ui/avatar.md +588 -0
  134. package/docs/components/ui/badge.md +1024 -0
  135. package/docs/components/ui/breadcrumb.md +614 -0
  136. package/docs/components/ui/button-group.md +1002 -0
  137. package/docs/components/ui/button.md +1078 -0
  138. package/docs/components/ui/calendar.md +1159 -0
  139. package/docs/components/ui/card.md +1265 -0
  140. package/docs/components/ui/checkbox.md +292 -0
  141. package/docs/components/ui/collapsible.md +320 -0
  142. package/docs/components/ui/combobox.md +328 -0
  143. package/docs/components/ui/command.md +454 -0
  144. package/docs/components/ui/context-menu.md +540 -0
  145. package/docs/components/ui/dialog.md +628 -0
  146. package/docs/components/ui/dropdown-menu.md +731 -0
  147. package/docs/components/ui/field.md +706 -0
  148. package/docs/components/ui/hover-card.md +446 -0
  149. package/docs/components/ui/input-group.md +509 -0
  150. package/docs/components/ui/input.md +362 -0
  151. package/docs/components/ui/kbd.md +434 -0
  152. package/docs/components/ui/label.md +359 -0
  153. package/docs/components/ui/pagination.md +650 -0
  154. package/docs/components/ui/popover.md +536 -0
  155. package/docs/components/ui/progress.md +182 -0
  156. package/docs/components/ui/radio-group.md +311 -0
  157. package/docs/components/ui/select.md +352 -0
  158. package/docs/components/ui/separator.md +214 -0
  159. package/docs/components/ui/sheet.md +142 -0
  160. package/docs/components/ui/skeleton.md +140 -0
  161. package/docs/components/ui/slider.md +341 -0
  162. package/docs/components/ui/spinner.md +170 -0
  163. package/docs/components/ui/switch.md +402 -0
  164. package/docs/components/ui/table.md +183 -0
  165. package/docs/components/ui/tabs-underline.md +106 -0
  166. package/docs/components/ui/tabs.md +122 -0
  167. package/docs/components/ui/textarea.md +243 -0
  168. package/docs/components/ui/toggle.md +243 -0
  169. package/docs/components/ui/tooltip.md +320 -0
  170. package/docs/components/ui/typography.md +191 -0
  171. package/package.json +11 -5
  172. package/dist/index-6oTEokEx.js +0 -82
  173. package/dist/index-B-NyefE0.js +0 -243
  174. package/dist/index-BKbK2GzY.cjs +0 -1
  175. package/dist/index-BMitW9UR.cjs +0 -1
  176. package/dist/index-BpvjJ_T6.cjs +0 -5
  177. package/dist/index-C5wjudc-.js +0 -36
  178. package/dist/index-CezwiPd_.js +0 -615
  179. package/dist/index-D02K8KOB.js +0 -54
  180. package/dist/index-D7hQvndv.cjs +0 -1
  181. package/dist/index-DQvx1rG_.cjs +0 -1
  182. package/dist/popover-BjdTqaB8.cjs +0 -1
  183. package/dist/popover-EnVfE0YA.js +0 -263
@@ -1 +1 @@
1
- "use strict";const qt=require("react"),Oe=require("react-dom"),At=require("./index-DQvx1rG_.cjs"),X=require("./jsx-runtime-BB_1_6y_.cjs"),Xt=require("./index-BKbK2GzY.cjs"),Pe=require("./index-cwZN7ZY3.cjs"),Ce=require("./index-CzY-WZXL.cjs"),$t=require("./index-MQ0c3ZX_.cjs"),Se=require("./index-bSPhqlcX.cjs");function Yt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const R=Yt(qt),Ee=Yt(Oe),De=["top","right","bottom","left"],Z=Math.min,_=Math.max,at=Math.round,ct=Math.floor,z=t=>({x:t,y:t}),Le={left:"right",right:"left",bottom:"top",top:"bottom"},Me={start:"end",end:"start"};function yt(t,e,n){return _(t,Z(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}const Te=new Set(["top","bottom"]);function V(t){return Te.has(U(t))?"y":"x"}function Pt(t){return Rt(V(t))}function $e(t,e,n){n===void 0&&(n=!1);const o=tt(t),r=Pt(t),i=Ot(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ft(s)),[s,ft(s)]}function ke(t){const e=ft(t);return[vt(t),e,vt(e)]}function vt(t){return t.replace(/start|end/g,e=>Me[e])}const kt=["left","right"],Ft=["right","left"],Fe=["top","bottom"],Ne=["bottom","top"];function _e(t,e,n){switch(t){case"top":case"bottom":return n?e?Ft:kt:e?kt:Ft;case"left":case"right":return e?Fe:Ne;default:return[]}}function je(t,e,n,o){const r=tt(t);let i=_e(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(vt)))),i}function ft(t){return t.replace(/left|right|bottom|top/g,e=>Le[e])}function We(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ut(t){return typeof t!="number"?We(t):{top:t,right:t,bottom:t,left:t}}function ut(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Nt(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Pt(e),c=Ot(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const He=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Nt(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:f,y:u}=Nt(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function ot(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=Y(e,t),p=Ut(d),w=c[m?u==="floating"?"reference":"floating":u],g=ut(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},v=ut(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const Be=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=Y(t,e)||{};if(a==null)return{};const u=Ut(f),m={x:n,y:o},d=Pt(r),p=Ot(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[d]-m[d]-i.floating[p],v=m[d]-i.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||i.floating[p]);const M=y/2-v/2,F=O/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[x],F),k=L,S=O-h[p]-$,C=O/2-h[p]/2+M,N=yt(k,C,S),E=!l.arrow&&tt(r)!=null&&C!==N&&i.reference[p]/2-(C<k?L:$)-h[p]/2<0,D=E?C<k?C-k:C-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:C-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Ve=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=Y(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=V(c),b=U(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[ft(c)]:ke(c)),P=p!=="none";!m&&P&&v.push(...je(c,h,p,y));const O=[c,...v],M=await ot(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=$e(r,s,y);F.push(M[C[0]],M[C[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=O[C];if(N&&(!(u==="alignment"?x!==V(N):!1)||L.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:C,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(P){const T=V(A.placement);return T===x||T==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(T=>T>0).reduce((T,B)=>T+B,0)]).sort((A,T)=>A[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function _t(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return De.some(e=>t[e]>=0)}const ze=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=Y(t,e);switch(o){case"referenceHidden":{const i=await ot(e,{...r,elementContext:"reference"}),s=_t(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jt(s)}}}case"escaped":{const i=await ot(e,{...r,altBoundary:!0}),s=_t(i,n.floating);return{data:{escapedOffsets:s,escaped:jt(s)}}}default:return{}}}}},Zt=new Set(["left","top"]);async function Ie(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=tt(n),l=V(n)==="y",a=Zt.has(s)?-1:1,f=i&&l?-1:1,u=Y(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const qe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ie(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Xe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=Y(t,e),a={x:n,y:o},f=await ot(e,l),u=V(U(r)),m=Rt(u);let d=a[m],p=a[u];if(i){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=yt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=yt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},Ye=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=Y(t,e),f={x:n,y:o},u=V(r),m=Rt(u);let d=f[m],p=f[u];const h=Y(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=i.reference[m]-i.floating[b]+w.mainAxis,v=i.reference[m]+i.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=Zt.has(U(r)),v=i.reference[u]-i.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=i.reference[u]+i.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>P&&(p=P)}return{[m]:d,[u]:p}}}},Ue=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=Y(t,e),f=await ot(e,a),u=U(r),m=tt(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=Z(h-f[w],x),v=Z(p-f[g],b),P=!e.middlewareData.shift;let O=y,M=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=x),P&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):O=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:O});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function et(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return pt()?t instanceof Node||t instanceof j(t).Node:!1}function W(t){return pt()?t instanceof Element||t instanceof j(t).Element:!1}function I(t){return pt()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function Wt(t){return!pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}const Ze=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ze.has(r)}const Ke=new Set(["table","td","th"]);function Ge(t){return Ke.has(et(t))}const Je=[":popover-open",":modal"];function mt(t){return Je.some(e=>{try{return t.matches(e)}catch{return!1}})}const Qe=["transform","translate","scale","rotate","perspective"],tn=["transform","translate","scale","rotate","perspective","filter"],en=["paint","layout","strict","content"];function Ct(t){const e=St(),n=W(t)?H(t):t;return Qe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||tn.some(o=>(n.willChange||"").includes(o))||en.some(o=>(n.contain||"").includes(o))}function nn(t){let e=K(t);for(;I(e)&&!Q(e);){if(Ct(e))return e;if(mt(e))return null;e=K(e)}return null}function St(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const on=new Set(["html","body","#document"]);function Q(t){return on.has(et(t))}function H(t){return j(t).getComputedStyle(t)}function ht(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wt(t)&&t.host||q(t);return Wt(e)?e.host:e}function Gt(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&it(e)?e:Gt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Gt(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=j(r);if(i){const c=bt(s);return e.concat(s,s.visualViewport||[],it(r)?r:[],c&&n?rt(c):[])}return e.concat(r,rt(r,[],n))}function bt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jt(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=at(n)!==i||at(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Et(t){return W(t)?t:t.contextElement}function J(t){const e=Et(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Jt(e);let s=(i?at(n.width):n.width)/o,c=(i?at(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const rn=z(0);function Qt(t){const e=j(t);return!St()||!e.visualViewport?rn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==j(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Et(t);let s=z(1);e&&(o?W(o)&&(s=J(o)):s=J(t));const c=sn(i,n,o)?Qt(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=j(i),d=o&&W(o)?j(o):o;let p=m,h=bt(p);for(;h&&o&&d!==p;){const w=J(h),g=h.getBoundingClientRect(),x=H(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=j(h),h=bt(p)}}return ut({width:f,height:u,x:l,y:a})}function gt(t,e){const n=ht(t).scrollLeft;return e?e.left+n:G(q(t)).left+n}function te(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-gt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function cn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=q(o),c=e?mt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((et(o)!=="body"||it(s))&&(l=ht(o)),I(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?te(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function ln(t){return Array.from(t.getClientRects())}function an(t){const e=q(t),n=ht(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+gt(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Ht=25;function fn(t,e){const n=j(t),o=q(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=St();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=gt(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Ht&&(i-=p)}else a<=Ht&&(i+=a);return{width:i,height:s,x:c,y:l}}const un=new Set(["absolute","fixed"]);function dn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?J(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport")o=fn(t,n);else if(e==="document")o=an(q(t));else if(W(e))o=dn(e,n);else{const r=Qt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ut(o)}function ee(t,e){const n=K(t);return n===e||!W(n)||Q(n)?!1:H(n).position==="fixed"||ee(n,e)}function pn(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(c=>W(c)&&et(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?K(t):t;for(;W(s)&&!Q(s);){const c=H(s),l=Ct(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&un.has(r.position)||it(s)&&!l&&ee(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function mn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:pn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Bt(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Bt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hn(t){const{width:e,height:n}=Jt(t);return{width:e,height:n}}function gn(t,e,n){const o=I(e),r=q(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=gt(r)}if(o||!o&&!i)if((et(e)!=="body"||it(r))&&(c=ht(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?te(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function wt(t){return H(t).position==="static"}function Vt(t,e){if(!I(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=j(t);if(mt(t))return n;if(!I(t)){let r=K(t);for(;r&&!Q(r);){if(W(r)&&!wt(r))return r;r=K(r)}return n}let o=Vt(t,e);for(;o&&Ge(o)&&wt(o);)o=Vt(o,e);return o&&Q(o)&&wt(o)&&!Ct(o)?n:o||nn(t)||n}const wn=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:gn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xn(t){return H(t).direction==="rtl"}const yn={convertOffsetParentRelativeRectToViewportRelativeRect:cn,getDocumentElement:q,getClippingRect:mn,getOffsetParent:ne,getElementRects:wn,getClientRects:ln,getDimensions:hn,getScale:J,isElement:W,isRTL:xn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function vn(t,e){let n=null,o;const r=q(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=ct(u),h=ct(r.clientWidth-(f+m)),w=ct(r.clientHeight-(u+d)),g=ct(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let y=!0;function v(P){const O=P[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!oe(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),i}function bn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Et(t),f=r||i?[...a?rt(a):[],...rt(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?vn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!oe(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const An=qe,Rn=Xe,On=Ve,Pn=Ue,Cn=ze,zt=Be,Sn=Ye,En=(t,e,n)=>{const o=new Map,r={platform:yn,...n},i={...r.platform,_c:o};return He(t,e,{...r,platform:i})};var Dn=typeof document<"u",Ln=function(){},lt=Dn?qt.useLayoutEffect:Ln;function dt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!dt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!dt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function It(t,e){const n=re(t);return Math.round(e*n)/n}function xt(t){const e=R.useRef(t);return lt(()=>{e.current=t}),e}function Mn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=R.useState(o);dt(m,o)||d(o);const[p,h]=R.useState(null),[w,g]=R.useState(null),x=R.useCallback(A=>{A!==P.current&&(P.current=A,h(A))},[]),b=R.useCallback(A=>{A!==O.current&&(O.current=A,g(A))},[]),y=i||p,v=s||w,P=R.useRef(null),O=R.useRef(null),M=R.useRef(f),F=l!=null,L=xt(l),$=xt(r),k=xt(a),S=R.useCallback(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),En(P.current,O.current,A).then(T=>{const B={...T,isPositioned:k.current!==!1};C.current&&!dt(M.current,B)&&(M.current=B,Ee.flushSync(()=>{u(B)}))})},[m,e,n,$,k]);lt(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const C=R.useRef(!1);lt(()=>(C.current=!0,()=>{C.current=!1}),[]),lt(()=>{if(y&&(P.current=y),v&&(O.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const N=R.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:b}),[x,b]),E=R.useMemo(()=>({reference:y,floating:v}),[y,v]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const T=It(E.floating,f.x),B=It(E.floating,f.y);return c?{...A,transform:"translate("+T+"px, "+B+"px)",...re(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:B}},[n,c,E.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Tn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?zt({element:o.current,padding:r}).fn(n):{}:o?zt({element:o,padding:r}).fn(n):{}}}},$n=(t,e)=>({...An(t),options:[t,e]}),kn=(t,e)=>({...Rn(t),options:[t,e]}),Fn=(t,e)=>({...Sn(t),options:[t,e]}),Nn=(t,e)=>({...On(t),options:[t,e]}),_n=(t,e)=>({...Pn(t),options:[t,e]}),jn=(t,e)=>({...Cn(t),options:[t,e]}),Wn=(t,e)=>({...Tn(t),options:[t,e]});var Hn="Arrow",ie=R.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return X.jsxRuntimeExports.jsx(At.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:X.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});ie.displayName=Hn;var Bn=ie,Dt="Popper",[se,Vn]=Pe.createContextScope(Dt),[zn,ce]=se(Dt),le=t=>{const{__scopePopper:e,children:n}=t,[o,r]=R.useState(null);return X.jsxRuntimeExports.jsx(zn,{scope:e,anchor:o,onAnchorChange:r,children:n})};le.displayName=Dt;var ae="PopperAnchor",fe=R.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=ce(ae,n),s=R.useRef(null),c=Xt.useComposedRefs(e,s),l=R.useRef(null);return R.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:X.jsxRuntimeExports.jsx(At.Primitive.div,{...r,ref:c})});fe.displayName=ae;var Lt="PopperContent",[In,qn]=se(Lt),ue=R.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=ce(Lt,n),[g,x]=R.useState(null),b=Xt.useComposedRefs(e,nt=>x(nt)),[y,v]=R.useState(null),P=Se.useSize(y),O=P?.width??0,M=P?.height??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Yn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:D,middlewareData:A}=Mn({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>bn(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[$n({mainAxis:r+M,alignmentAxis:s}),l&&kn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Fn():void 0,...S}),l&&Nn({...S}),_n({...S,apply:({elements:nt,rects:Tt,availableWidth:ve,availableHeight:be})=>{const{width:Ae,height:Re}=Tt.reference,st=nt.floating.style;st.setProperty("--radix-popper-available-width",`${ve}px`),st.setProperty("--radix-popper-available-height",`${be}px`),st.setProperty("--radix-popper-anchor-width",`${Ae}px`),st.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),y&&Wn({element:y,padding:c}),Un({arrowWidth:O,arrowHeight:M}),m&&jn({strategy:"referenceHidden",...S})]}),[T,B]=me(E),Mt=Ce.useCallbackRef(p);$t.useLayoutEffect2(()=>{D&&Mt?.()},[D,Mt]);const he=A.arrow?.x,ge=A.arrow?.y,we=A.arrow?.centerOffset!==0,[xe,ye]=R.useState();return $t.useLayoutEffect2(()=>{g&&ye(window.getComputedStyle(g).zIndex)},[g]),X.jsxRuntimeExports.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:X.jsxRuntimeExports.jsx(In,{scope:n,placedSide:T,onArrowChange:v,arrowX:he,arrowY:ge,shouldHideArrow:we,children:X.jsxRuntimeExports.jsx(At.Primitive.div,{"data-side":T,"data-align":B,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});ue.displayName=Lt;var de="PopperArrow",Xn={top:"bottom",right:"left",bottom:"top",left:"right"},pe=R.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=qn(de,o),s=Xn[i.placedSide];return X.jsxRuntimeExports.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:X.jsxRuntimeExports.jsx(Bn,{...r,ref:n,style:{...r.style,display:"block"}})})});pe.displayName=de;function Yn(t){return t!==null}var Un=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=me(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function me(t){const[e,n="center"]=t.split("-");return[e,n]}var Zn=le,Kn=fe,Gn=ue,Jn=pe;exports.Anchor=Kn;exports.Arrow=Jn;exports.Content=Gn;exports.Root2=Zn;exports.createPopperScope=Vn;
1
+ "use strict";const qt=require("react"),Oe=require("react-dom"),At=require("./index-CocSS1YK.cjs"),X=require("./jsx-runtime-BB_1_6y_.cjs"),Xt=require("./index-_XxjJPRD.cjs"),Pe=require("./index-cwZN7ZY3.cjs"),Ce=require("./index-CzY-WZXL.cjs"),$t=require("./index-MQ0c3ZX_.cjs"),Se=require("./index-bSPhqlcX.cjs");function Yt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const R=Yt(qt),Ee=Yt(Oe),De=["top","right","bottom","left"],Z=Math.min,_=Math.max,at=Math.round,ct=Math.floor,z=t=>({x:t,y:t}),Le={left:"right",right:"left",bottom:"top",top:"bottom"},Me={start:"end",end:"start"};function yt(t,e,n){return _(t,Z(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}const Te=new Set(["top","bottom"]);function V(t){return Te.has(U(t))?"y":"x"}function Pt(t){return Rt(V(t))}function $e(t,e,n){n===void 0&&(n=!1);const o=tt(t),r=Pt(t),i=Ot(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ft(s)),[s,ft(s)]}function ke(t){const e=ft(t);return[vt(t),e,vt(e)]}function vt(t){return t.replace(/start|end/g,e=>Me[e])}const kt=["left","right"],Ft=["right","left"],Fe=["top","bottom"],Ne=["bottom","top"];function _e(t,e,n){switch(t){case"top":case"bottom":return n?e?Ft:kt:e?kt:Ft;case"left":case"right":return e?Fe:Ne;default:return[]}}function je(t,e,n,o){const r=tt(t);let i=_e(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(vt)))),i}function ft(t){return t.replace(/left|right|bottom|top/g,e=>Le[e])}function We(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ut(t){return typeof t!="number"?We(t):{top:t,right:t,bottom:t,left:t}}function ut(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Nt(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Pt(e),c=Ot(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const He=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Nt(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:f,y:u}=Nt(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function ot(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=Y(e,t),p=Ut(d),w=c[m?u==="floating"?"reference":"floating":u],g=ut(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},v=ut(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const Be=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=Y(t,e)||{};if(a==null)return{};const u=Ut(f),m={x:n,y:o},d=Pt(r),p=Ot(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[d]-m[d]-i.floating[p],v=m[d]-i.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||i.floating[p]);const M=y/2-v/2,F=O/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[x],F),k=L,S=O-h[p]-$,C=O/2-h[p]/2+M,N=yt(k,C,S),E=!l.arrow&&tt(r)!=null&&C!==N&&i.reference[p]/2-(C<k?L:$)-h[p]/2<0,D=E?C<k?C-k:C-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:C-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Ve=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=Y(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=V(c),b=U(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[ft(c)]:ke(c)),P=p!=="none";!m&&P&&v.push(...je(c,h,p,y));const O=[c,...v],M=await ot(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=$e(r,s,y);F.push(M[C[0]],M[C[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=O[C];if(N&&(!(u==="alignment"?x!==V(N):!1)||L.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:C,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(P){const T=V(A.placement);return T===x||T==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(T=>T>0).reduce((T,B)=>T+B,0)]).sort((A,T)=>A[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function _t(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return De.some(e=>t[e]>=0)}const ze=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=Y(t,e);switch(o){case"referenceHidden":{const i=await ot(e,{...r,elementContext:"reference"}),s=_t(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jt(s)}}}case"escaped":{const i=await ot(e,{...r,altBoundary:!0}),s=_t(i,n.floating);return{data:{escapedOffsets:s,escaped:jt(s)}}}default:return{}}}}},Zt=new Set(["left","top"]);async function Ie(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=tt(n),l=V(n)==="y",a=Zt.has(s)?-1:1,f=i&&l?-1:1,u=Y(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const qe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ie(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Xe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=Y(t,e),a={x:n,y:o},f=await ot(e,l),u=V(U(r)),m=Rt(u);let d=a[m],p=a[u];if(i){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=yt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=yt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},Ye=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=Y(t,e),f={x:n,y:o},u=V(r),m=Rt(u);let d=f[m],p=f[u];const h=Y(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=i.reference[m]-i.floating[b]+w.mainAxis,v=i.reference[m]+i.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=Zt.has(U(r)),v=i.reference[u]-i.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=i.reference[u]+i.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>P&&(p=P)}return{[m]:d,[u]:p}}}},Ue=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=Y(t,e),f=await ot(e,a),u=U(r),m=tt(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=Z(h-f[w],x),v=Z(p-f[g],b),P=!e.middlewareData.shift;let O=y,M=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=x),P&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):O=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:O});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function et(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return pt()?t instanceof Node||t instanceof j(t).Node:!1}function W(t){return pt()?t instanceof Element||t instanceof j(t).Element:!1}function I(t){return pt()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function Wt(t){return!pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}const Ze=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ze.has(r)}const Ke=new Set(["table","td","th"]);function Ge(t){return Ke.has(et(t))}const Je=[":popover-open",":modal"];function mt(t){return Je.some(e=>{try{return t.matches(e)}catch{return!1}})}const Qe=["transform","translate","scale","rotate","perspective"],tn=["transform","translate","scale","rotate","perspective","filter"],en=["paint","layout","strict","content"];function Ct(t){const e=St(),n=W(t)?H(t):t;return Qe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||tn.some(o=>(n.willChange||"").includes(o))||en.some(o=>(n.contain||"").includes(o))}function nn(t){let e=K(t);for(;I(e)&&!Q(e);){if(Ct(e))return e;if(mt(e))return null;e=K(e)}return null}function St(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const on=new Set(["html","body","#document"]);function Q(t){return on.has(et(t))}function H(t){return j(t).getComputedStyle(t)}function ht(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wt(t)&&t.host||q(t);return Wt(e)?e.host:e}function Gt(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&it(e)?e:Gt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Gt(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=j(r);if(i){const c=bt(s);return e.concat(s,s.visualViewport||[],it(r)?r:[],c&&n?rt(c):[])}return e.concat(r,rt(r,[],n))}function bt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jt(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=at(n)!==i||at(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Et(t){return W(t)?t:t.contextElement}function J(t){const e=Et(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Jt(e);let s=(i?at(n.width):n.width)/o,c=(i?at(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const rn=z(0);function Qt(t){const e=j(t);return!St()||!e.visualViewport?rn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==j(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Et(t);let s=z(1);e&&(o?W(o)&&(s=J(o)):s=J(t));const c=sn(i,n,o)?Qt(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=j(i),d=o&&W(o)?j(o):o;let p=m,h=bt(p);for(;h&&o&&d!==p;){const w=J(h),g=h.getBoundingClientRect(),x=H(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=j(h),h=bt(p)}}return ut({width:f,height:u,x:l,y:a})}function gt(t,e){const n=ht(t).scrollLeft;return e?e.left+n:G(q(t)).left+n}function te(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-gt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function cn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=q(o),c=e?mt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((et(o)!=="body"||it(s))&&(l=ht(o)),I(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?te(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function ln(t){return Array.from(t.getClientRects())}function an(t){const e=q(t),n=ht(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+gt(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Ht=25;function fn(t,e){const n=j(t),o=q(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=St();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=gt(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Ht&&(i-=p)}else a<=Ht&&(i+=a);return{width:i,height:s,x:c,y:l}}const un=new Set(["absolute","fixed"]);function dn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?J(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport")o=fn(t,n);else if(e==="document")o=an(q(t));else if(W(e))o=dn(e,n);else{const r=Qt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ut(o)}function ee(t,e){const n=K(t);return n===e||!W(n)||Q(n)?!1:H(n).position==="fixed"||ee(n,e)}function pn(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(c=>W(c)&&et(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?K(t):t;for(;W(s)&&!Q(s);){const c=H(s),l=Ct(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&un.has(r.position)||it(s)&&!l&&ee(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function mn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:pn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Bt(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Bt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hn(t){const{width:e,height:n}=Jt(t);return{width:e,height:n}}function gn(t,e,n){const o=I(e),r=q(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=gt(r)}if(o||!o&&!i)if((et(e)!=="body"||it(r))&&(c=ht(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?te(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function wt(t){return H(t).position==="static"}function Vt(t,e){if(!I(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=j(t);if(mt(t))return n;if(!I(t)){let r=K(t);for(;r&&!Q(r);){if(W(r)&&!wt(r))return r;r=K(r)}return n}let o=Vt(t,e);for(;o&&Ge(o)&&wt(o);)o=Vt(o,e);return o&&Q(o)&&wt(o)&&!Ct(o)?n:o||nn(t)||n}const wn=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:gn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xn(t){return H(t).direction==="rtl"}const yn={convertOffsetParentRelativeRectToViewportRelativeRect:cn,getDocumentElement:q,getClippingRect:mn,getOffsetParent:ne,getElementRects:wn,getClientRects:ln,getDimensions:hn,getScale:J,isElement:W,isRTL:xn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function vn(t,e){let n=null,o;const r=q(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=ct(u),h=ct(r.clientWidth-(f+m)),w=ct(r.clientHeight-(u+d)),g=ct(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let y=!0;function v(P){const O=P[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!oe(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),i}function bn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Et(t),f=r||i?[...a?rt(a):[],...rt(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?vn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!oe(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const An=qe,Rn=Xe,On=Ve,Pn=Ue,Cn=ze,zt=Be,Sn=Ye,En=(t,e,n)=>{const o=new Map,r={platform:yn,...n},i={...r.platform,_c:o};return He(t,e,{...r,platform:i})};var Dn=typeof document<"u",Ln=function(){},lt=Dn?qt.useLayoutEffect:Ln;function dt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!dt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!dt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function It(t,e){const n=re(t);return Math.round(e*n)/n}function xt(t){const e=R.useRef(t);return lt(()=>{e.current=t}),e}function Mn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=R.useState(o);dt(m,o)||d(o);const[p,h]=R.useState(null),[w,g]=R.useState(null),x=R.useCallback(A=>{A!==P.current&&(P.current=A,h(A))},[]),b=R.useCallback(A=>{A!==O.current&&(O.current=A,g(A))},[]),y=i||p,v=s||w,P=R.useRef(null),O=R.useRef(null),M=R.useRef(f),F=l!=null,L=xt(l),$=xt(r),k=xt(a),S=R.useCallback(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),En(P.current,O.current,A).then(T=>{const B={...T,isPositioned:k.current!==!1};C.current&&!dt(M.current,B)&&(M.current=B,Ee.flushSync(()=>{u(B)}))})},[m,e,n,$,k]);lt(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const C=R.useRef(!1);lt(()=>(C.current=!0,()=>{C.current=!1}),[]),lt(()=>{if(y&&(P.current=y),v&&(O.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const N=R.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:b}),[x,b]),E=R.useMemo(()=>({reference:y,floating:v}),[y,v]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const T=It(E.floating,f.x),B=It(E.floating,f.y);return c?{...A,transform:"translate("+T+"px, "+B+"px)",...re(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:B}},[n,c,E.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Tn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?zt({element:o.current,padding:r}).fn(n):{}:o?zt({element:o,padding:r}).fn(n):{}}}},$n=(t,e)=>({...An(t),options:[t,e]}),kn=(t,e)=>({...Rn(t),options:[t,e]}),Fn=(t,e)=>({...Sn(t),options:[t,e]}),Nn=(t,e)=>({...On(t),options:[t,e]}),_n=(t,e)=>({...Pn(t),options:[t,e]}),jn=(t,e)=>({...Cn(t),options:[t,e]}),Wn=(t,e)=>({...Tn(t),options:[t,e]});var Hn="Arrow",ie=R.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return X.jsxRuntimeExports.jsx(At.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:X.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});ie.displayName=Hn;var Bn=ie,Dt="Popper",[se,Vn]=Pe.createContextScope(Dt),[zn,ce]=se(Dt),le=t=>{const{__scopePopper:e,children:n}=t,[o,r]=R.useState(null);return X.jsxRuntimeExports.jsx(zn,{scope:e,anchor:o,onAnchorChange:r,children:n})};le.displayName=Dt;var ae="PopperAnchor",fe=R.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=ce(ae,n),s=R.useRef(null),c=Xt.useComposedRefs(e,s),l=R.useRef(null);return R.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:X.jsxRuntimeExports.jsx(At.Primitive.div,{...r,ref:c})});fe.displayName=ae;var Lt="PopperContent",[In,qn]=se(Lt),ue=R.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=ce(Lt,n),[g,x]=R.useState(null),b=Xt.useComposedRefs(e,nt=>x(nt)),[y,v]=R.useState(null),P=Se.useSize(y),O=P?.width??0,M=P?.height??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Yn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:D,middlewareData:A}=Mn({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>bn(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[$n({mainAxis:r+M,alignmentAxis:s}),l&&kn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Fn():void 0,...S}),l&&Nn({...S}),_n({...S,apply:({elements:nt,rects:Tt,availableWidth:ve,availableHeight:be})=>{const{width:Ae,height:Re}=Tt.reference,st=nt.floating.style;st.setProperty("--radix-popper-available-width",`${ve}px`),st.setProperty("--radix-popper-available-height",`${be}px`),st.setProperty("--radix-popper-anchor-width",`${Ae}px`),st.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),y&&Wn({element:y,padding:c}),Un({arrowWidth:O,arrowHeight:M}),m&&jn({strategy:"referenceHidden",...S})]}),[T,B]=me(E),Mt=Ce.useCallbackRef(p);$t.useLayoutEffect2(()=>{D&&Mt?.()},[D,Mt]);const he=A.arrow?.x,ge=A.arrow?.y,we=A.arrow?.centerOffset!==0,[xe,ye]=R.useState();return $t.useLayoutEffect2(()=>{g&&ye(window.getComputedStyle(g).zIndex)},[g]),X.jsxRuntimeExports.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:X.jsxRuntimeExports.jsx(In,{scope:n,placedSide:T,onArrowChange:v,arrowX:he,arrowY:ge,shouldHideArrow:we,children:X.jsxRuntimeExports.jsx(At.Primitive.div,{"data-side":T,"data-align":B,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});ue.displayName=Lt;var de="PopperArrow",Xn={top:"bottom",right:"left",bottom:"top",left:"right"},pe=R.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=qn(de,o),s=Xn[i.placedSide];return X.jsxRuntimeExports.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:X.jsxRuntimeExports.jsx(Bn,{...r,ref:n,style:{...r.style,display:"block"}})})});pe.displayName=de;function Yn(t){return t!==null}var Un=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=me(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function me(t){const[e,n="center"]=t.split("-");return[e,n]}var Zn=le,Kn=fe,Gn=ue,Jn=pe;exports.Anchor=Kn;exports.Arrow=Jn;exports.Content=Gn;exports.Root2=Zn;exports.createPopperScope=Vn;
@@ -1 +1 @@
1
- "use strict";const T=require("react"),E=require("./index-BKbK2GzY.cjs"),g=require("./index-MQ0c3ZX_.cjs");function P(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const o=P(T);function R(n,e){return o.useReducer((t,r)=>e[t][r]??t,n)}var A=n=>{const{present:e,children:t}=n,r=S(e),a=typeof t=="function"?t({present:r.isPresent}):o.Children.only(t),u=E.useComposedRefs(r.ref,v(a));return typeof t=="function"||r.isPresent?o.cloneElement(a,{ref:u}):null};A.displayName="Presence";function S(n){const[e,t]=o.useState(),r=o.useRef(null),a=o.useRef(n),u=o.useRef("none"),p=n?"mounted":"unmounted",[N,s]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const i=l(r.current);u.current=N==="mounted"?i:"none"},[N]),g.useLayoutEffect2(()=>{const i=r.current,d=a.current;if(d!==n){const f=u.current,c=l(i);n?s("MOUNT"):c==="none"||i?.display==="none"?s("UNMOUNT"):s(d&&f!==c?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,s]),g.useLayoutEffect2(()=>{if(e){let i;const d=e.ownerDocument.defaultView??window,m=c=>{const y=l(r.current).includes(CSS.escape(c.animationName));if(c.target===e&&y&&(s("ANIMATION_END"),!a.current)){const M=e.style.animationFillMode;e.style.animationFillMode="forwards",i=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=M)})}},f=c=>{c.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(i),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:o.useCallback(i=>{r.current=i?getComputedStyle(i):null,t(i)},[])}}function l(n){return n?.animationName||"none"}function v(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=A;
1
+ "use strict";const T=require("react"),E=require("./index-_XxjJPRD.cjs"),g=require("./index-MQ0c3ZX_.cjs");function P(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const o=P(T);function R(n,e){return o.useReducer((t,r)=>e[t][r]??t,n)}var A=n=>{const{present:e,children:t}=n,r=S(e),a=typeof t=="function"?t({present:r.isPresent}):o.Children.only(t),u=E.useComposedRefs(r.ref,v(a));return typeof t=="function"||r.isPresent?o.cloneElement(a,{ref:u}):null};A.displayName="Presence";function S(n){const[e,t]=o.useState(),r=o.useRef(null),a=o.useRef(n),u=o.useRef("none"),p=n?"mounted":"unmounted",[N,s]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const i=l(r.current);u.current=N==="mounted"?i:"none"},[N]),g.useLayoutEffect2(()=>{const i=r.current,d=a.current;if(d!==n){const f=u.current,c=l(i);n?s("MOUNT"):c==="none"||i?.display==="none"?s("UNMOUNT"):s(d&&f!==c?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,s]),g.useLayoutEffect2(()=>{if(e){let i;const d=e.ownerDocument.defaultView??window,m=c=>{const y=l(r.current).includes(CSS.escape(c.animationName));if(c.target===e&&y&&(s("ANIMATION_END"),!a.current)){const M=e.style.animationFillMode;e.style.animationFillMode="forwards",i=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=M)})}},f=c=>{c.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(i),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:o.useCallback(i=>{r.current=i?getComputedStyle(i):null,t(i)},[])}}function l(n){return n?.animationName||"none"}function v(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=A;
@@ -1 +1 @@
1
- "use strict";const A=require("react"),p=require("./index-BWaO7kQK.cjs"),h=require("./index-DQvx1rG_.cjs"),w=require("./index-BKbK2GzY.cjs"),m=require("./index-CzY-WZXL.cjs"),x=require("./jsx-runtime-BB_1_6y_.cjs");function q(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=q(A);function H(t,e=globalThis?.document){const n=m.useCallbackRef(t);o.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",s,{capture:!0}),()=>e.removeEventListener("keydown",s,{capture:!0})},[n,e])}var U="DismissableLayer",b="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",K="dismissableLayer.focusOutside",R,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B=o.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...E}=t,a=o.useContext(T),[u,k]=o.useState(null),l=u?.ownerDocument??globalThis?.document,[,F]=o.useState({}),I=w.useComposedRefs(e,i=>k(i)),D=Array.from(a.layers),[N]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),W=D.indexOf(N),O=u?D.indexOf(u):-1,_=a.layersWithOutsidePointerEventsDisabled.size>0,P=O>=W,j=X(i=>{const v=i.target,L=[...a.branches].some(y=>y.contains(v));!P||L||(r?.(i),f?.(i),i.defaultPrevented||d?.())},l),C=Y(i=>{const v=i.target;[...a.branches].some(y=>y.contains(v))||(c?.(i),f?.(i),i.defaultPrevented||d?.())},l);return H(i=>{O===a.layers.size-1&&(s?.(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},l),o.useEffect(()=>{if(u)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(R=l.body.style.pointerEvents,l.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(u)),a.layers.add(u),g(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(l.body.style.pointerEvents=R)}},[u,l,n,a]),o.useEffect(()=>()=>{u&&(a.layers.delete(u),a.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,a]),o.useEffect(()=>{const i=()=>F({});return document.addEventListener(b,i),()=>document.removeEventListener(b,i)},[]),x.jsxRuntimeExports.jsx(h.Primitive.div,{...E,ref:I,style:{pointerEvents:_?P?"auto":"none":void 0,...t.style},onFocusCapture:p.composeEventHandlers(t.onFocusCapture,C.onFocusCapture),onBlurCapture:p.composeEventHandlers(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:p.composeEventHandlers(t.onPointerDownCapture,j.onPointerDownCapture)})});B.displayName=U;var M="DismissableLayerBranch",$=o.forwardRef((t,e)=>{const n=o.useContext(T),s=o.useRef(null),r=w.useComposedRefs(e,s);return o.useEffect(()=>{const c=s.current;if(c)return n.branches.add(c),()=>{n.branches.delete(c)}},[n.branches]),x.jsxRuntimeExports.jsx(h.Primitive.div,{...t,ref:r})});$.displayName=M;function X(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const c=d=>{if(d.target&&!s.current){let E=function(){S(z,n,a,{discrete:!0})};const a={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=E,e.addEventListener("click",r.current,{once:!0})):E()}else e.removeEventListener("click",r.current);s.current=!1},f=window.setTimeout(()=>{e.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),e.removeEventListener("pointerdown",c),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>s.current=!0}}function Y(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=o.useRef(!1);return o.useEffect(()=>{const r=c=>{c.target&&!s.current&&S(K,n,{originalEvent:c},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const t=new CustomEvent(b);document.dispatchEvent(t)}function S(t,e,n,{discrete:s}){const r=n.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),s?h.dispatchDiscreteCustomEvent(r,c):r.dispatchEvent(c)}exports.DismissableLayer=B;
1
+ "use strict";const A=require("react"),p=require("./index-BWaO7kQK.cjs"),h=require("./index-CocSS1YK.cjs"),w=require("./index-_XxjJPRD.cjs"),m=require("./index-CzY-WZXL.cjs"),x=require("./jsx-runtime-BB_1_6y_.cjs");function q(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=q(A);function H(t,e=globalThis?.document){const n=m.useCallbackRef(t);o.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",s,{capture:!0}),()=>e.removeEventListener("keydown",s,{capture:!0})},[n,e])}var U="DismissableLayer",b="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",K="dismissableLayer.focusOutside",R,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B=o.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...E}=t,a=o.useContext(T),[u,k]=o.useState(null),l=u?.ownerDocument??globalThis?.document,[,F]=o.useState({}),I=w.useComposedRefs(e,i=>k(i)),D=Array.from(a.layers),[N]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),W=D.indexOf(N),O=u?D.indexOf(u):-1,_=a.layersWithOutsidePointerEventsDisabled.size>0,P=O>=W,j=X(i=>{const v=i.target,L=[...a.branches].some(y=>y.contains(v));!P||L||(r?.(i),f?.(i),i.defaultPrevented||d?.())},l),C=Y(i=>{const v=i.target;[...a.branches].some(y=>y.contains(v))||(c?.(i),f?.(i),i.defaultPrevented||d?.())},l);return H(i=>{O===a.layers.size-1&&(s?.(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},l),o.useEffect(()=>{if(u)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(R=l.body.style.pointerEvents,l.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(u)),a.layers.add(u),g(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(l.body.style.pointerEvents=R)}},[u,l,n,a]),o.useEffect(()=>()=>{u&&(a.layers.delete(u),a.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,a]),o.useEffect(()=>{const i=()=>F({});return document.addEventListener(b,i),()=>document.removeEventListener(b,i)},[]),x.jsxRuntimeExports.jsx(h.Primitive.div,{...E,ref:I,style:{pointerEvents:_?P?"auto":"none":void 0,...t.style},onFocusCapture:p.composeEventHandlers(t.onFocusCapture,C.onFocusCapture),onBlurCapture:p.composeEventHandlers(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:p.composeEventHandlers(t.onPointerDownCapture,j.onPointerDownCapture)})});B.displayName=U;var M="DismissableLayerBranch",$=o.forwardRef((t,e)=>{const n=o.useContext(T),s=o.useRef(null),r=w.useComposedRefs(e,s);return o.useEffect(()=>{const c=s.current;if(c)return n.branches.add(c),()=>{n.branches.delete(c)}},[n.branches]),x.jsxRuntimeExports.jsx(h.Primitive.div,{...t,ref:r})});$.displayName=M;function X(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const c=d=>{if(d.target&&!s.current){let E=function(){S(z,n,a,{discrete:!0})};const a={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=E,e.addEventListener("click",r.current,{once:!0})):E()}else e.removeEventListener("click",r.current);s.current=!1},f=window.setTimeout(()=>{e.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),e.removeEventListener("pointerdown",c),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>s.current=!0}}function Y(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=o.useRef(!1);return o.useEffect(()=>{const r=c=>{c.target&&!s.current&&S(K,n,{originalEvent:c},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const t=new CustomEvent(b);document.dispatchEvent(t)}function S(t,e,n,{discrete:s}){const r=n.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),s?h.dispatchDiscreteCustomEvent(r,c):r.dispatchEvent(c)}exports.DismissableLayer=B;
@@ -1,5 +1,5 @@
1
1
  import * as i from "react";
2
- import { u as y } from "./index-6oTEokEx.js";
2
+ import { u as y } from "./index-DLcqcWxM.js";
3
3
  import { u as A } from "./index-CCKe-Mpx.js";
4
4
  function T(n, e) {
5
5
  return i.useReducer((t, r) => e[t][r] ?? t, n);
@@ -0,0 +1,59 @@
1
+ import * as e from "react";
2
+ import { c as S } from "./index-DLcqcWxM.js";
3
+ import { j as y } from "./jsx-runtime-BzflLqGi.js";
4
+ var E = Symbol.for("react.lazy"), p = e[" use ".trim().toString()];
5
+ function g(t) {
6
+ return typeof t == "object" && t !== null && "then" in t;
7
+ }
8
+ function d(t) {
9
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === E && "_payload" in t && g(t._payload);
10
+ }
11
+ // @__NO_SIDE_EFFECTS__
12
+ function C(t) {
13
+ const n = /* @__PURE__ */ R(t), o = e.forwardRef((i, r) => {
14
+ let { children: l, ...a } = i;
15
+ d(l) && typeof p == "function" && (l = p(l._payload));
16
+ const s = e.Children.toArray(l), f = s.find(b);
17
+ if (f) {
18
+ const c = f.props.children, m = s.map((u) => u === f ? e.Children.count(c) > 1 ? e.Children.only(null) : e.isValidElement(c) ? c.props.children : null : u);
19
+ return /* @__PURE__ */ y.jsx(n, { ...a, ref: r, children: e.isValidElement(c) ? e.cloneElement(c, void 0, m) : null });
20
+ }
21
+ return /* @__PURE__ */ y.jsx(n, { ...a, ref: r, children: l });
22
+ });
23
+ return o.displayName = `${t}.Slot`, o;
24
+ }
25
+ var A = /* @__PURE__ */ C("Slot");
26
+ // @__NO_SIDE_EFFECTS__
27
+ function R(t) {
28
+ const n = e.forwardRef((o, i) => {
29
+ let { children: r, ...l } = o;
30
+ if (d(r) && typeof p == "function" && (r = p(r._payload)), e.isValidElement(r)) {
31
+ const a = j(r), s = h(l, r.props);
32
+ return r.type !== e.Fragment && (s.ref = i ? S(i, a) : a), e.cloneElement(r, s);
33
+ }
34
+ return e.Children.count(r) > 1 ? e.Children.only(null) : null;
35
+ });
36
+ return n.displayName = `${t}.SlotClone`, n;
37
+ }
38
+ var _ = Symbol("radix.slottable");
39
+ function b(t) {
40
+ return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === _;
41
+ }
42
+ function h(t, n) {
43
+ const o = { ...n };
44
+ for (const i in n) {
45
+ const r = t[i], l = n[i];
46
+ /^on[A-Z]/.test(i) ? r && l ? o[i] = (...s) => {
47
+ const f = l(...s);
48
+ return r(...s), f;
49
+ } : r && (o[i] = r) : i === "style" ? o[i] = { ...r, ...l } : i === "className" && (o[i] = [r, l].filter(Boolean).join(" "));
50
+ }
51
+ return { ...t, ...o };
52
+ }
53
+ function j(t) {
54
+ let n = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning;
55
+ return o ? t.ref : (n = Object.getOwnPropertyDescriptor(t, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? t.props.ref : t.props.ref || t.ref);
56
+ }
57
+ export {
58
+ A as S
59
+ };
@@ -1,10 +1,10 @@
1
1
  import l from "react";
2
2
  import { c as Q } from "./index-FxyLF8MY.js";
3
- import { c as W, u as X } from "./index-D02K8KOB.js";
4
- import { u as Z } from "./index-6oTEokEx.js";
3
+ import { c as W, u as X } from "./index-CUWMxxKG.js";
4
+ import { u as Z } from "./index-DLcqcWxM.js";
5
5
  import { u as D, c as $ } from "./index-C0UREtMP.js";
6
- import { P as T } from "./index-C5wjudc-.js";
7
- import { c as O, R as ee, T as oe, C as re } from "./index-B-ZRqW0J.js";
6
+ import { P as T } from "./index-BMWt1NBG.js";
7
+ import { c as O, R as ee, T as oe, C as re } from "./index-BBoIAjAs.js";
8
8
  import { u as te } from "./index-Cv867SGx.js";
9
9
  import { j as n } from "./jsx-runtime-BzflLqGi.js";
10
10
  var d = "Accordion", ne = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [N, ce, ae] = W(d), [g] = Q(d, [
@@ -1,7 +1,7 @@
1
1
  import * as u from "react";
2
2
  import { useState as he } from "react";
3
- import { u as me } from "./index-6oTEokEx.js";
4
- import { P as pe } from "./index-C5wjudc-.js";
3
+ import { u as me } from "./index-DLcqcWxM.js";
4
+ import { P as pe } from "./index-BMWt1NBG.js";
5
5
  import { u as z } from "./index-0ioNhtNM.js";
6
6
  import { j as ge } from "./jsx-runtime-BzflLqGi.js";
7
7
  var U = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", Z = { bubbles: !1, cancelable: !0 }, ye = "FocusScope", be = u.forwardRef((e, t) => {
@@ -1 +1 @@
1
- "use strict";const B=require("react"),f=require("./index-BWaO7kQK.cjs"),P=require("./index-D7hQvndv.cjs"),Y=require("./index-BKbK2GzY.cjs"),z=require("./index-cwZN7ZY3.cjs"),V=require("./index-WIv2ndLu.cjs"),D=require("./index-DQvx1rG_.cjs"),J=require("./index-CzY-WZXL.cjs"),p=require("./jsx-runtime-BB_1_6y_.cjs");function Q(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const c=Q(B);var y="rovingFocusGroup.onEntryFocus",W={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[j,G,X]=P.createCollection(b),[Z,ee]=z.createContextScope(b,[X]),[te,oe]=Z(b),N=c.forwardRef((e,o)=>p.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(re,{...e,ref:o})})}));N.displayName=b;var re=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,orientation:t,loop:F=!1,dir:S,currentTabStopId:v,defaultCurrentTabStopId:T,onCurrentTabStopIdChange:w,onEntryFocus:m,preventScrollOnEntryFocus:u=!1,...I}=e,R=c.useRef(null),g=Y.useComposedRefs(o,R),x=P.useDirection(S),[E,n]=f.useControllableState({prop:v,defaultProp:T??null,onChange:w,caller:b}),[a,C]=c.useState(!1),i=J.useCallbackRef(m),l=G(r),_=c.useRef(!1),[q,A]=c.useState(0);return c.useEffect(()=>{const s=R.current;if(s)return s.addEventListener(y,i),()=>s.removeEventListener(y,i)},[i]),p.jsxRuntimeExports.jsx(te,{scope:r,orientation:t,dir:x,loop:F,currentTabStopId:E,onItemFocus:c.useCallback(s=>n(s),[n]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>A(s=>s-1),[]),children:p.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:a||q===0?-1:0,"data-orientation":t,...I,ref:g,style:{outline:"none",...e.style},onMouseDown:f.composeEventHandlers(e.onMouseDown,()=>{_.current=!0}),onFocus:f.composeEventHandlers(e.onFocus,s=>{const L=!_.current;if(s.target===s.currentTarget&&L&&!a){const O=new CustomEvent(y,W);if(s.currentTarget.dispatchEvent(O),!O.defaultPrevented){const h=l().filter(d=>d.focusable),U=h.find(d=>d.active),H=h.find(d=>d.id===E),$=[U,H,...h].filter(Boolean).map(d=>d.ref.current);k($,u)}}_.current=!1}),onBlur:f.composeEventHandlers(e.onBlur,()=>C(!1))})})}),K="RovingFocusGroupItem",M=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,focusable:t=!0,active:F=!1,tabStopId:S,children:v,...T}=e,w=V.useId(),m=S||w,u=oe(K,r),I=u.currentTabStopId===m,R=G(r),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:E}=u;return c.useEffect(()=>{if(t)return g(),()=>x()},[t,g,x]),p.jsxRuntimeExports.jsx(j.ItemSlot,{scope:r,id:m,focusable:t,active:F,children:p.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:I?0:-1,"data-orientation":u.orientation,...T,ref:o,onMouseDown:f.composeEventHandlers(e.onMouseDown,n=>{t?u.onItemFocus(m):n.preventDefault()}),onFocus:f.composeEventHandlers(e.onFocus,()=>u.onItemFocus(m)),onKeyDown:f.composeEventHandlers(e.onKeyDown,n=>{if(n.key==="Tab"&&n.shiftKey){u.onItemShiftTab();return}if(n.target!==n.currentTarget)return;const a=ce(n,u.orientation,u.dir);if(a!==void 0){if(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)return;n.preventDefault();let i=R().filter(l=>l.focusable).map(l=>l.ref.current);if(a==="last")i.reverse();else if(a==="prev"||a==="next"){a==="prev"&&i.reverse();const l=i.indexOf(n.currentTarget);i=u.loop?ue(i,l+1):i.slice(l+1)}setTimeout(()=>k(i))}}),children:typeof v=="function"?v({isCurrentTabStop:I,hasTabStop:E!=null}):v})})});M.displayName=K;var ne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function se(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ce(e,o,r){const t=se(e.key,r);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return ne[t]}function k(e,o=!1){const r=document.activeElement;for(const t of e)if(t===r||(t.focus({preventScroll:o}),document.activeElement!==r))return}function ue(e,o){return e.map((r,t)=>e[(o+t)%e.length])}var ie=N,ae=M;exports.Item=ae;exports.Root=ie;exports.createRovingFocusGroupScope=ee;
1
+ "use strict";const B=require("react"),f=require("./index-BWaO7kQK.cjs"),P=require("./index-CzRiuk60.cjs"),Y=require("./index-_XxjJPRD.cjs"),z=require("./index-cwZN7ZY3.cjs"),V=require("./index-WIv2ndLu.cjs"),D=require("./index-CocSS1YK.cjs"),J=require("./index-CzY-WZXL.cjs"),p=require("./jsx-runtime-BB_1_6y_.cjs");function Q(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const c=Q(B);var y="rovingFocusGroup.onEntryFocus",W={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[j,G,X]=P.createCollection(b),[Z,ee]=z.createContextScope(b,[X]),[te,oe]=Z(b),N=c.forwardRef((e,o)=>p.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(re,{...e,ref:o})})}));N.displayName=b;var re=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,orientation:t,loop:F=!1,dir:S,currentTabStopId:v,defaultCurrentTabStopId:T,onCurrentTabStopIdChange:w,onEntryFocus:m,preventScrollOnEntryFocus:u=!1,...I}=e,R=c.useRef(null),g=Y.useComposedRefs(o,R),x=P.useDirection(S),[E,n]=f.useControllableState({prop:v,defaultProp:T??null,onChange:w,caller:b}),[a,C]=c.useState(!1),i=J.useCallbackRef(m),l=G(r),_=c.useRef(!1),[q,A]=c.useState(0);return c.useEffect(()=>{const s=R.current;if(s)return s.addEventListener(y,i),()=>s.removeEventListener(y,i)},[i]),p.jsxRuntimeExports.jsx(te,{scope:r,orientation:t,dir:x,loop:F,currentTabStopId:E,onItemFocus:c.useCallback(s=>n(s),[n]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>A(s=>s-1),[]),children:p.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:a||q===0?-1:0,"data-orientation":t,...I,ref:g,style:{outline:"none",...e.style},onMouseDown:f.composeEventHandlers(e.onMouseDown,()=>{_.current=!0}),onFocus:f.composeEventHandlers(e.onFocus,s=>{const L=!_.current;if(s.target===s.currentTarget&&L&&!a){const O=new CustomEvent(y,W);if(s.currentTarget.dispatchEvent(O),!O.defaultPrevented){const h=l().filter(d=>d.focusable),U=h.find(d=>d.active),H=h.find(d=>d.id===E),$=[U,H,...h].filter(Boolean).map(d=>d.ref.current);k($,u)}}_.current=!1}),onBlur:f.composeEventHandlers(e.onBlur,()=>C(!1))})})}),K="RovingFocusGroupItem",M=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,focusable:t=!0,active:F=!1,tabStopId:S,children:v,...T}=e,w=V.useId(),m=S||w,u=oe(K,r),I=u.currentTabStopId===m,R=G(r),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:E}=u;return c.useEffect(()=>{if(t)return g(),()=>x()},[t,g,x]),p.jsxRuntimeExports.jsx(j.ItemSlot,{scope:r,id:m,focusable:t,active:F,children:p.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:I?0:-1,"data-orientation":u.orientation,...T,ref:o,onMouseDown:f.composeEventHandlers(e.onMouseDown,n=>{t?u.onItemFocus(m):n.preventDefault()}),onFocus:f.composeEventHandlers(e.onFocus,()=>u.onItemFocus(m)),onKeyDown:f.composeEventHandlers(e.onKeyDown,n=>{if(n.key==="Tab"&&n.shiftKey){u.onItemShiftTab();return}if(n.target!==n.currentTarget)return;const a=ce(n,u.orientation,u.dir);if(a!==void 0){if(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)return;n.preventDefault();let i=R().filter(l=>l.focusable).map(l=>l.ref.current);if(a==="last")i.reverse();else if(a==="prev"||a==="next"){a==="prev"&&i.reverse();const l=i.indexOf(n.currentTarget);i=u.loop?ue(i,l+1):i.slice(l+1)}setTimeout(()=>k(i))}}),children:typeof v=="function"?v({isCurrentTabStop:I,hasTabStop:E!=null}):v})})});M.displayName=K;var ne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function se(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ce(e,o,r){const t=se(e.key,r);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return ne[t]}function k(e,o=!1){const r=document.activeElement;for(const t of e)if(t===r||(t.focus({preventScroll:o}),document.activeElement!==r))return}function ue(e,o){return e.map((r,t)=>e[(o+t)%e.length])}var ie=N,ae=M;exports.Item=ae;exports.Root=ie;exports.createRovingFocusGroupScope=ee;
@@ -0,0 +1 @@
1
+ "use strict";const Xe=require("react"),v=require("./index-BWaO7kQK.cjs"),Re=require("./index-CzRiuk60.cjs"),_=require("./index-_XxjJPRD.cjs"),ze=require("./index-cwZN7ZY3.cjs"),Ze=require("./index-BeWgla7c.cjs"),V=require("./index-DMs8RL3E.cjs"),me=require("./index-WIv2ndLu.cjs"),j=require("./index-BcGMAmWE.cjs"),Je=require("./index-Dbj9vHNq.cjs"),$=require("./index-Bd0gQB0k.cjs"),w=require("./index-CocSS1YK.cjs"),W=require("./index-COuvjZLM.cjs"),a=require("./jsx-runtime-BB_1_6y_.cjs"),ee=require("./index-CzY-WZXL.cjs");function Qe(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=Qe(Xe);function et(e){const n=tt(e),t=r.forwardRef((o,s)=>{const{children:c,...l}=o,f=r.Children.toArray(c),m=f.find(ot);if(m){const p=m.props.children,d=f.map(u=>u===m?r.Children.count(p)>1?r.Children.only(null):r.isValidElement(p)?p.props.children:null:u);return a.jsxRuntimeExports.jsx(n,{...l,ref:s,children:r.isValidElement(p)?r.cloneElement(p,void 0,d):null})}return a.jsxRuntimeExports.jsx(n,{...l,ref:s,children:c})});return t.displayName=`${e}.Slot`,t}function tt(e){const n=r.forwardRef((t,o)=>{const{children:s,...c}=t;if(r.isValidElement(s)){const l=st(s),f=rt(c,s.props);return s.type!==r.Fragment&&(f.ref=o?_.composeRefs(o,l):l),r.cloneElement(s,f)}return r.Children.count(s)>1?r.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var nt=Symbol("radix.slottable");function ot(e){return r.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nt}function rt(e,n){const t={...n};for(const o in n){const s=e[o],c=n[o];/^on[A-Z]/.test(o)?s&&c?t[o]=(...f)=>{const m=c(...f);return s(...f),m}:s&&(t[o]=s):o==="style"?t[o]={...s,...c}:o==="className"&&(t[o]=[s,c].filter(Boolean).join(" "))}return{...e,...t}}function st(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Q=["Enter"," "],ct=["ArrowDown","PageUp","Home"],ve=["ArrowUp","PageDown","End"],ut=[...ct,...ve],at={ltr:[...Q,"ArrowRight"],rtl:[...Q,"ArrowLeft"]},it={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[k,lt,dt]=Re.createCollection(F),[S,ft]=ze.createContextScope(F,[dt,j.createPopperScope,W.createRovingFocusGroupScope]),L=j.createPopperScope(),Ee=W.createRovingFocusGroupScope(),[Ce,g]=S(F),[pt,G]=S(F),he=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:s,onOpenChange:c,modal:l=!0}=e,f=L(n),[m,p]=r.useState(null),d=r.useRef(!1),u=ee.useCallbackRef(c),x=Re.useDirection(s);return r.useEffect(()=>{const C=()=>{d.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>d.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(j.Root2,{...f,children:a.jsxRuntimeExports.jsx(Ce,{scope:n,open:t,onOpenChange:u,content:m,onContentChange:p,children:a.jsxRuntimeExports.jsx(pt,{scope:n,onClose:r.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:x,modal:l,children:o})})})};he.displayName=F;var mt="MenuAnchor",te=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,s=L(t);return a.jsxRuntimeExports.jsx(j.Anchor,{...s,...o,ref:n})});te.displayName=mt;var ne="MenuPortal",[xt,ge]=S(ne,{forceMount:void 0}),Me=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:s}=e,c=g(ne,n);return a.jsxRuntimeExports.jsx(xt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx($.Presence,{present:t||c.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:s,children:o})})})};Me.displayName=ne;var h="MenuContent",[Rt,oe]=S(h),_e=r.forwardRef((e,n)=>{const t=ge(h,e.__scopeMenu),{forceMount:o=t.forceMount,...s}=e,c=g(h,e.__scopeMenu),l=G(h,e.__scopeMenu);return a.jsxRuntimeExports.jsx(k.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx($.Presence,{present:o||c.open,children:a.jsxRuntimeExports.jsx(k.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(vt,{...s,ref:n}):a.jsxRuntimeExports.jsx(Et,{...s,ref:n})})})})}),vt=r.forwardRef((e,n)=>{const t=g(h,e.__scopeMenu),o=r.useRef(null),s=_.useComposedRefs(n,o);return r.useEffect(()=>{const c=o.current;if(c)return V.hideOthers(c)},[]),a.jsxRuntimeExports.jsx(re,{...e,ref:s,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),Et=r.forwardRef((e,n)=>{const t=g(h,e.__scopeMenu);return a.jsxRuntimeExports.jsx(re,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Ct=et("MenuContent.ScrollLock"),re=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:l,disableOutsidePointerEvents:f,onEntryFocus:m,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:x,onDismiss:C,disableOutsideScroll:R,...P}=e,T=g(h,t),y=G(h,t),He=L(t),Ue=Ee(t),ie=lt(t),[Ve,le]=r.useState(null),K=r.useRef(null),qe=_.useComposedRefs(n,K,T.onContentChange),H=r.useRef(0),U=r.useRef(""),Be=r.useRef(0),X=r.useRef(null),de=r.useRef("right"),z=r.useRef(0),$e=R?V.ReactRemoveScroll:r.Fragment,We=R?{as:Ct,allowPinchZoom:!0}:void 0,Ye=i=>{const b=U.current+i,M=ie().filter(E=>!E.disabled),O=document.activeElement,Z=M.find(E=>E.ref.current===O)?.textValue,J=M.map(E=>E.textValue),fe=Tt(J,b,Z),A=M.find(E=>E.textValue===fe)?.ref.current;(function E(pe){U.current=pe,window.clearTimeout(H.current),pe!==""&&(H.current=window.setTimeout(()=>E(""),1e3))})(b),A&&setTimeout(()=>A.focus())};r.useEffect(()=>()=>window.clearTimeout(H.current),[]),V.useFocusGuards();const I=r.useCallback(i=>de.current===X.current?.side&&At(i,X.current?.area),[]);return a.jsxRuntimeExports.jsx(Rt,{scope:t,searchRef:U,onItemEnter:r.useCallback(i=>{I(i)&&i.preventDefault()},[I]),onItemLeave:r.useCallback(i=>{I(i)||(K.current?.focus(),le(null))},[I]),onTriggerLeave:r.useCallback(i=>{I(i)&&i.preventDefault()},[I]),pointerGraceTimerRef:Be,onPointerGraceIntentChange:r.useCallback(i=>{X.current=i},[]),children:a.jsxRuntimeExports.jsx($e,{...We,children:a.jsxRuntimeExports.jsx(V.FocusScope,{asChild:!0,trapped:s,onMountAutoFocus:v.composeEventHandlers(c,i=>{i.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(Ze.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:x,onDismiss:C,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...Ue,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:Ve,onCurrentTabStopIdChange:le,onEntryFocus:v.composeEventHandlers(m,i=>{y.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(j.Content,{role:"menu","aria-orientation":"vertical","data-state":Ke(T.open),"data-radix-menu-content":"",dir:y.dir,...He,...P,ref:qe,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const M=i.target.closest("[data-radix-menu-content]")===i.currentTarget,O=i.ctrlKey||i.altKey||i.metaKey,Z=i.key.length===1;M&&(i.key==="Tab"&&i.preventDefault(),!O&&Z&&Ye(i.key));const J=K.current;if(i.target!==J||!ut.includes(i.key))return;i.preventDefault();const A=ie().filter(E=>!E.disabled).map(E=>E.ref.current);ve.includes(i.key)&&A.reverse(),bt(A)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout(H.current),U.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,N(i=>{const b=i.target,M=z.current!==i.clientX;if(i.currentTarget.contains(b)&&M){const O=i.clientX>z.current?"right":"left";de.current=O,z.current=i.clientX}}))})})})})})})});_e.displayName=h;var ht="MenuGroup",se=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(w.Primitive.div,{role:"group",...o,ref:n})});se.displayName=ht;var gt="MenuLabel",je=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(w.Primitive.div,{...o,ref:n})});je.displayName=gt;var q="MenuItem",xe="menu.itemSelect",Y=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...s}=e,c=r.useRef(null),l=G(q,e.__scopeMenu),f=oe(q,e.__scopeMenu),m=_.useComposedRefs(n,c),p=r.useRef(!1),d=()=>{const u=c.current;if(!t&&u){const x=new CustomEvent(xe,{bubbles:!0,cancelable:!0});u.addEventListener(xe,C=>o?.(C),{once:!0}),w.dispatchDiscreteCustomEvent(u,x),x.defaultPrevented?p.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Se,{...s,ref:m,disabled:t,onClick:v.composeEventHandlers(e.onClick,d),onPointerDown:u=>{e.onPointerDown?.(u),p.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,u=>{p.current||u.currentTarget?.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,u=>{const x=f.searchRef.current!=="";t||x&&u.key===" "||Q.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Y.displayName=q;var Se=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:s,...c}=e,l=oe(q,t),f=Ee(t),m=r.useRef(null),p=_.useComposedRefs(n,m),[d,u]=r.useState(!1),[x,C]=r.useState("");return r.useEffect(()=>{const R=m.current;R&&C((R.textContent??"").trim())},[c.children]),a.jsxRuntimeExports.jsx(k.ItemSlot,{scope:t,disabled:o,textValue:s??x,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...f,focusable:!o,children:a.jsxRuntimeExports.jsx(w.Primitive.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...c,ref:p,onPointerMove:v.composeEventHandlers(e.onPointerMove,N(R=>{o?l.onItemLeave(R):(l.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,N(R=>l.onItemLeave(R))),onFocus:v.composeEventHandlers(e.onFocus,()=>u(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>u(!1))})})})}),Mt="MenuCheckboxItem",Pe=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...s}=e;return a.jsxRuntimeExports.jsx(Te,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(Y,{role:"menuitemcheckbox","aria-checked":B(t)?"mixed":t,...s,ref:n,"data-state":ae(t),onSelect:v.composeEventHandlers(s.onSelect,()=>o?.(B(t)?!0:!t),{checkForDefaultPrevented:!1})})})});Pe.displayName=Mt;var ye="MenuRadioGroup",[_t,jt]=S(ye,{value:void 0,onValueChange:()=>{}}),Ie=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...s}=e,c=ee.useCallbackRef(o);return a.jsxRuntimeExports.jsx(_t,{scope:e.__scopeMenu,value:t,onValueChange:c,children:a.jsxRuntimeExports.jsx(se,{...s,ref:n})})});Ie.displayName=ye;var be="MenuRadioItem",we=r.forwardRef((e,n)=>{const{value:t,...o}=e,s=jt(be,e.__scopeMenu),c=t===s.value;return a.jsxRuntimeExports.jsx(Te,{scope:e.__scopeMenu,checked:c,children:a.jsxRuntimeExports.jsx(Y,{role:"menuitemradio","aria-checked":c,...o,ref:n,"data-state":ae(c),onSelect:v.composeEventHandlers(o.onSelect,()=>s.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});we.displayName=be;var ce="MenuItemIndicator",[Te,St]=S(ce,{checked:!1}),Oe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...s}=e,c=St(ce,t);return a.jsxRuntimeExports.jsx($.Presence,{present:o||B(c.checked)||c.checked===!0,children:a.jsxRuntimeExports.jsx(w.Primitive.span,{...s,ref:n,"data-state":ae(c.checked)})})});Oe.displayName=ce;var Pt="MenuSeparator",Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(w.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});Ae.displayName=Pt;var yt="MenuArrow",De=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,s=L(t);return a.jsxRuntimeExports.jsx(j.Arrow,{...s,...o,ref:n})});De.displayName=yt;var ue="MenuSub",[It,ke]=S(ue),Ne=e=>{const{__scopeMenu:n,children:t,open:o=!1,onOpenChange:s}=e,c=g(ue,n),l=L(n),[f,m]=r.useState(null),[p,d]=r.useState(null),u=ee.useCallbackRef(s);return r.useEffect(()=>(c.open===!1&&u(!1),()=>u(!1)),[c.open,u]),a.jsxRuntimeExports.jsx(j.Root2,{...l,children:a.jsxRuntimeExports.jsx(Ce,{scope:n,open:o,onOpenChange:u,content:p,onContentChange:d,children:a.jsxRuntimeExports.jsx(It,{scope:n,contentId:me.useId(),triggerId:me.useId(),trigger:f,onTriggerChange:m,children:t})})})};Ne.displayName=ue;var D="MenuSubTrigger",Fe=r.forwardRef((e,n)=>{const t=g(D,e.__scopeMenu),o=G(D,e.__scopeMenu),s=ke(D,e.__scopeMenu),c=oe(D,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:m}=c,p={__scopeMenu:e.__scopeMenu},d=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>d,[d]),r.useEffect(()=>{const u=f.current;return()=>{window.clearTimeout(u),m(null)}},[f,m]),a.jsxRuntimeExports.jsx(te,{asChild:!0,...p,children:a.jsxRuntimeExports.jsx(Se,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":s.contentId,"data-state":Ke(t.open),...e,ref:_.composeRefs(n,s.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,N(u=>{c.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(c.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),d()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,N(u=>{d();const x=t.content?.getBoundingClientRect();if(x){const C=t.content?.dataset.side,R=C==="right",P=R?-5:5,T=x[R?"left":"right"],y=x[R?"right":"left"];c.onPointerGraceIntentChange({area:[{x:u.clientX+P,y:u.clientY},{x:T,y:x.top},{x:y,y:x.top},{x:y,y:x.bottom},{x:T,y:x.bottom}],side:C}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(u),u.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,u=>{const x=c.searchRef.current!=="";e.disabled||x&&u.key===" "||at[o.dir].includes(u.key)&&(t.onOpenChange(!0),t.content?.focus(),u.preventDefault())})})})});Fe.displayName=D;var Le="MenuSubContent",Ge=r.forwardRef((e,n)=>{const t=ge(h,e.__scopeMenu),{forceMount:o=t.forceMount,...s}=e,c=g(h,e.__scopeMenu),l=G(h,e.__scopeMenu),f=ke(Le,e.__scopeMenu),m=r.useRef(null),p=_.useComposedRefs(n,m);return a.jsxRuntimeExports.jsx(k.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx($.Presence,{present:o||c.open,children:a.jsxRuntimeExports.jsx(k.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(re,{id:f.contentId,"aria-labelledby":f.triggerId,...s,ref:p,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{l.isUsingKeyboardRef.current&&m.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,d=>{d.target!==f.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,d=>{l.onClose(),d.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,d=>{const u=d.currentTarget.contains(d.target),x=it[l.dir].includes(d.key);u&&x&&(c.onOpenChange(!1),f.trigger?.focus(),d.preventDefault())})})})})})});Ge.displayName=Le;function Ke(e){return e?"open":"closed"}function B(e){return e==="indeterminate"}function ae(e){return B(e)?"indeterminate":e?"checked":"unchecked"}function bt(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function wt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function Tt(e,n,t){const s=n.length>1&&Array.from(n).every(p=>p===n[0])?n[0]:n,c=t?e.indexOf(t):-1;let l=wt(e,Math.max(c,0));s.length===1&&(l=l.filter(p=>p!==t));const m=l.find(p=>p.toLowerCase().startsWith(s.toLowerCase()));return m!==t?m:void 0}function Ot(e,n){const{x:t,y:o}=e;let s=!1;for(let c=0,l=n.length-1;c<n.length;l=c++){const f=n[c],m=n[l],p=f.x,d=f.y,u=m.x,x=m.y;d>o!=x>o&&t<(u-p)*(o-d)/(x-d)+p&&(s=!s)}return s}function At(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Ot(t,n)}function N(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Dt=he,kt=te,Nt=Me,Ft=_e,Lt=se,Gt=je,Kt=Y,Ht=Pe,Ut=Ie,Vt=we,qt=Oe,Bt=Ae,$t=De,Wt=Ne,Yt=Fe,Xt=Ge;exports.Anchor2=kt;exports.Arrow2=$t;exports.CheckboxItem=Ht;exports.Content2=Ft;exports.Group=Lt;exports.Item2=Kt;exports.ItemIndicator=qt;exports.Label=Gt;exports.Portal=Nt;exports.RadioGroup=Ut;exports.RadioItem=Vt;exports.Root3=Dt;exports.Separator=Bt;exports.Sub=Wt;exports.SubContent=Xt;exports.SubTrigger=Yt;exports.createMenuScope=ft;
@@ -0,0 +1,97 @@
1
+ import * as l from "react";
2
+ import R from "react";
3
+ import { c as v } from "./index-FxyLF8MY.js";
4
+ import { c as T, u as A } from "./index-DLcqcWxM.js";
5
+ import { j as E } from "./jsx-runtime-BzflLqGi.js";
6
+ // @__NO_SIDE_EFFECTS__
7
+ function M(e) {
8
+ const t = /* @__PURE__ */ j(e), n = l.forwardRef((r, o) => {
9
+ const { children: c, ...a } = r, s = l.Children.toArray(c), d = s.find(D);
10
+ if (d) {
11
+ const f = d.props.children, S = s.map((y) => y === d ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : y);
12
+ return /* @__PURE__ */ E.jsx(t, { ...a, ref: o, children: l.isValidElement(f) ? l.cloneElement(f, void 0, S) : null });
13
+ }
14
+ return /* @__PURE__ */ E.jsx(t, { ...a, ref: o, children: c });
15
+ });
16
+ return n.displayName = `${e}.Slot`, n;
17
+ }
18
+ // @__NO_SIDE_EFFECTS__
19
+ function j(e) {
20
+ const t = l.forwardRef((n, r) => {
21
+ const { children: o, ...c } = n;
22
+ if (l.isValidElement(o)) {
23
+ const a = w(o), s = b(c, o.props);
24
+ return o.type !== l.Fragment && (s.ref = r ? T(r, a) : a), l.cloneElement(o, s);
25
+ }
26
+ return l.Children.count(o) > 1 ? l.Children.only(null) : null;
27
+ });
28
+ return t.displayName = `${e}.SlotClone`, t;
29
+ }
30
+ var P = Symbol("radix.slottable");
31
+ function D(e) {
32
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === P;
33
+ }
34
+ function b(e, t) {
35
+ const n = { ...t };
36
+ for (const r in t) {
37
+ const o = e[r], c = t[r];
38
+ /^on[A-Z]/.test(r) ? o && c ? n[r] = (...s) => {
39
+ const d = c(...s);
40
+ return o(...s), d;
41
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...c } : r === "className" && (n[r] = [o, c].filter(Boolean).join(" "));
42
+ }
43
+ return { ...e, ...n };
44
+ }
45
+ function w(e) {
46
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
47
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
48
+ }
49
+ function F(e) {
50
+ const t = e + "CollectionProvider", [n, r] = v(t), [o, c] = n(
51
+ t,
52
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
53
+ ), a = (m) => {
54
+ const { scope: i, children: x } = m, u = R.useRef(null), p = R.useRef(/* @__PURE__ */ new Map()).current;
55
+ return /* @__PURE__ */ E.jsx(o, { scope: i, itemMap: p, collectionRef: u, children: x });
56
+ };
57
+ a.displayName = t;
58
+ const s = e + "CollectionSlot", d = /* @__PURE__ */ M(s), f = R.forwardRef(
59
+ (m, i) => {
60
+ const { scope: x, children: u } = m, p = c(s, x), C = A(i, p.collectionRef);
61
+ return /* @__PURE__ */ E.jsx(d, { ref: C, children: u });
62
+ }
63
+ );
64
+ f.displayName = s;
65
+ const S = e + "CollectionItemSlot", y = "data-radix-collection-item", N = /* @__PURE__ */ M(S), g = R.forwardRef(
66
+ (m, i) => {
67
+ const { scope: x, children: u, ...p } = m, C = R.useRef(null), _ = A(i, C), I = c(S, x);
68
+ return R.useEffect(() => (I.itemMap.set(C, { ref: C, ...p }), () => void I.itemMap.delete(C))), /* @__PURE__ */ E.jsx(N, { [y]: "", ref: _, children: u });
69
+ }
70
+ );
71
+ g.displayName = S;
72
+ function O(m) {
73
+ const i = c(e + "CollectionConsumer", m);
74
+ return R.useCallback(() => {
75
+ const u = i.collectionRef.current;
76
+ if (!u) return [];
77
+ const p = Array.from(u.querySelectorAll(`[${y}]`));
78
+ return Array.from(i.itemMap.values()).sort(
79
+ (I, h) => p.indexOf(I.ref.current) - p.indexOf(h.ref.current)
80
+ );
81
+ }, [i.collectionRef, i.itemMap]);
82
+ }
83
+ return [
84
+ { Provider: a, Slot: f, ItemSlot: g },
85
+ O,
86
+ r
87
+ ];
88
+ }
89
+ var V = l.createContext(void 0);
90
+ function H(e) {
91
+ const t = l.useContext(V);
92
+ return e || t || "ltr";
93
+ }
94
+ export {
95
+ F as c,
96
+ H as u
97
+ };
@@ -1,7 +1,7 @@
1
1
  import * as i from "react";
2
2
  import { c as h } from "./index-C0UREtMP.js";
3
- import { P as g, d as _ } from "./index-C5wjudc-.js";
4
- import { u as R } from "./index-6oTEokEx.js";
3
+ import { P as g, d as _ } from "./index-BMWt1NBG.js";
4
+ import { u as R } from "./index-DLcqcWxM.js";
5
5
  import { u as m } from "./index-0ioNhtNM.js";
6
6
  import { j as x } from "./jsx-runtime-BzflLqGi.js";
7
7
  function U(n, e = globalThis?.document) {
@@ -0,0 +1 @@
1
+ "use strict";const g=require("react"),S=require("./index-_XxjJPRD.cjs"),d=require("./jsx-runtime-BB_1_6y_.cjs");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=b(g);var E=Symbol.for("react.lazy"),u=i[" use ".trim().toString()];function j(e){return typeof e=="object"&&e!==null&&"then"in e}function y(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===E&&"_payload"in e&&j(e._payload)}function R(e){const t=C(e),n=i.forwardRef((o,r)=>{let{children:l,...c}=o;y(l)&&typeof u=="function"&&(l=u(l._payload));const s=i.Children.toArray(l),a=s.find(O);if(a){const f=a.props.children,m=s.map(p=>p===a?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:p);return d.jsxRuntimeExports.jsx(t,{...c,ref:r,children:i.isValidElement(f)?i.cloneElement(f,void 0,m):null})}return d.jsxRuntimeExports.jsx(t,{...c,ref:r,children:l})});return n.displayName=`${e}.Slot`,n}var _=R("Slot");function C(e){const t=i.forwardRef((n,o)=>{let{children:r,...l}=n;if(y(r)&&typeof u=="function"&&(r=u(r._payload)),i.isValidElement(r)){const c=P(r),s=h(l,r.props);return r.type!==i.Fragment&&(s.ref=o?S.composeRefs(o,c):c),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var x=Symbol("radix.slottable");function O(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===x}function h(e,t){const n={...t};for(const o in t){const r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?n[o]=(...s)=>{const a=l(...s);return r(...s),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...l}:o==="className"&&(n[o]=[r,l].filter(Boolean).join(" "))}return{...e,...n}}function P(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.Slot=_;
@@ -1 +1 @@
1
- "use strict";const w=require("react"),T=require("./index-BWaO7kQK.cjs"),A=require("./index-cwZN7ZY3.cjs"),I=require("./index-MQ0c3ZX_.cjs"),$=require("./index-BKbK2GzY.cjs"),m=require("./index-DQvx1rG_.cjs"),D=require("./index-IKJMQref.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./jsx-runtime-BB_1_6y_.cjs");function k(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const r=k(w);var f="Collapsible",[L,F]=A.createContextScope(f),[B,g]=L(f),q=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:l,onOpenChange:a,...b}=e,[u,d]=T.useControllableState({prop:n,defaultProp:o??!1,onChange:a,caller:f});return c.jsxRuntimeExports.jsx(B,{scope:t,disabled:l,contentId:M.useId(),open:u,onOpenToggle:r.useCallback(()=>d(x=>!x),[d]),children:c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(u),"data-disabled":l?"":void 0,...b,ref:s})})});q.displayName=f;var S="CollapsibleTrigger",R=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,...n}=e,o=g(S,t);return c.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:s,onClick:T.composeEventHandlers(e.onClick,o.onOpenToggle)})});R.displayName=S;var v="CollapsibleContent",h=r.forwardRef((e,s)=>{const{forceMount:t,...n}=e,o=g(v,e.__scopeCollapsible);return c.jsxRuntimeExports.jsx(D.Presence,{present:t||o.open,children:({present:l})=>c.jsxRuntimeExports.jsx(G,{...n,ref:s,present:l})})});h.displayName=v;var G=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,present:n,children:o,...l}=e,a=g(v,t),[b,u]=r.useState(n),d=r.useRef(null),x=$.useComposedRefs(s,d),y=r.useRef(0),P=y.current,E=r.useRef(0),N=E.current,C=a.open||b,_=r.useRef(C),p=r.useRef(void 0);return r.useEffect(()=>{const i=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(i)},[]),I.useLayoutEffect2(()=>{const i=d.current;if(i){p.current=p.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const O=i.getBoundingClientRect();y.current=O.height,E.current=O.width,_.current||(i.style.transitionDuration=p.current.transitionDuration,i.style.animationName=p.current.animationName),u(n)}},[a.open,n]),c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!C,...l,ref:x,style:{"--radix-collapsible-content-height":P?`${P}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:C&&o})});function j(e){return e?"open":"closed"}var z=q,H=R,J=h;exports.CollapsibleContent=h;exports.CollapsibleTrigger=R;exports.Content=J;exports.Root=z;exports.Trigger=H;exports.createCollapsibleScope=F;
1
+ "use strict";const w=require("react"),T=require("./index-BWaO7kQK.cjs"),A=require("./index-cwZN7ZY3.cjs"),I=require("./index-MQ0c3ZX_.cjs"),$=require("./index-_XxjJPRD.cjs"),m=require("./index-CocSS1YK.cjs"),D=require("./index-Bd0gQB0k.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./jsx-runtime-BB_1_6y_.cjs");function k(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const r=k(w);var f="Collapsible",[L,F]=A.createContextScope(f),[B,g]=L(f),q=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:l,onOpenChange:a,...b}=e,[u,d]=T.useControllableState({prop:n,defaultProp:o??!1,onChange:a,caller:f});return c.jsxRuntimeExports.jsx(B,{scope:t,disabled:l,contentId:M.useId(),open:u,onOpenToggle:r.useCallback(()=>d(x=>!x),[d]),children:c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(u),"data-disabled":l?"":void 0,...b,ref:s})})});q.displayName=f;var S="CollapsibleTrigger",R=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,...n}=e,o=g(S,t);return c.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:s,onClick:T.composeEventHandlers(e.onClick,o.onOpenToggle)})});R.displayName=S;var v="CollapsibleContent",h=r.forwardRef((e,s)=>{const{forceMount:t,...n}=e,o=g(v,e.__scopeCollapsible);return c.jsxRuntimeExports.jsx(D.Presence,{present:t||o.open,children:({present:l})=>c.jsxRuntimeExports.jsx(G,{...n,ref:s,present:l})})});h.displayName=v;var G=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,present:n,children:o,...l}=e,a=g(v,t),[b,u]=r.useState(n),d=r.useRef(null),x=$.useComposedRefs(s,d),y=r.useRef(0),P=y.current,E=r.useRef(0),N=E.current,C=a.open||b,_=r.useRef(C),p=r.useRef(void 0);return r.useEffect(()=>{const i=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(i)},[]),I.useLayoutEffect2(()=>{const i=d.current;if(i){p.current=p.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const O=i.getBoundingClientRect();y.current=O.height,E.current=O.width,_.current||(i.style.transitionDuration=p.current.transitionDuration,i.style.animationName=p.current.animationName),u(n)}},[a.open,n]),c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!C,...l,ref:x,style:{"--radix-collapsible-content-height":P?`${P}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:C&&o})});function j(e){return e?"open":"closed"}var z=q,H=R,J=h;exports.CollapsibleContent=h;exports.CollapsibleTrigger=R;exports.Content=J;exports.Root=z;exports.Trigger=H;exports.createCollapsibleScope=F;
@@ -0,0 +1 @@
1
+ "use strict";const y=require("react"),E=require("react-dom"),g=require("./index-_XxjJPRD.cjs"),f=require("./jsx-runtime-BB_1_6y_.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=d(y),v=d(E);function R(e){const t=S(e),n=o.forwardRef((r,i)=>{const{children:s,...c}=r,l=o.Children.toArray(s),a=l.find(h);if(a){const u=a.props.children,m=l.map(p=>p===a?o.Children.count(u)>1?o.Children.only(null):o.isValidElement(u)?u.props.children:null:p);return f.jsxRuntimeExports.jsx(t,{...c,ref:i,children:o.isValidElement(u)?o.cloneElement(u,void 0,m):null})}return f.jsxRuntimeExports.jsx(t,{...c,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function S(e){const t=o.forwardRef((n,r)=>{const{children:i,...s}=n;if(o.isValidElement(i)){const c=j(i),l=x(s,i.props);return i.type!==o.Fragment&&(l.ref=r?g.composeRefs(r,c):c),o.cloneElement(i,l)}return o.Children.count(i)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var b=Symbol("radix.slottable");function h(e){return o.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===b}function x(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...l)=>{const a=s(...l);return i(...l),a}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function j(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=C.reduce((e,t)=>{const n=R(`Primitive.${t}`),r=o.forwardRef((i,s)=>{const{asChild:c,...l}=i,a=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsxRuntimeExports.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function P(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=O;exports.dispatchDiscreteCustomEvent=P;
@@ -0,0 +1 @@
1
+ "use strict";const d=require("react"),A=require("./index-cwZN7ZY3.cjs"),g=require("./index-_XxjJPRD.cjs"),E=require("./jsx-runtime-BB_1_6y_.cjs");function v(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const l=v(d);function _(e){const t=D(e),o=l.forwardRef((n,r)=>{const{children:c,...u}=n,s=l.Children.toArray(c),m=s.find(T);if(m){const a=m.props.children,y=s.map(S=>S===m?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:S);return E.jsxRuntimeExports.jsx(t,{...u,ref:r,children:l.isValidElement(a)?l.cloneElement(a,void 0,y):null})}return E.jsxRuntimeExports.jsx(t,{...u,ref:r,children:c})});return o.displayName=`${e}.Slot`,o}function D(e){const t=l.forwardRef((o,n)=>{const{children:r,...c}=o;if(l.isValidElement(r)){const u=w(r),s=h(c,r.props);return r.type!==l.Fragment&&(s.ref=n?g.composeRefs(n,u):u),l.cloneElement(r,s)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P=Symbol("radix.slottable");function T(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P}function h(e,t){const o={...t};for(const n in t){const r=e[n],c=t[n];/^on[A-Z]/.test(n)?r&&c?o[n]=(...s)=>{const m=c(...s);return r(...s),m}:r&&(o[n]=r):n==="style"?o[n]={...r,...c}:n==="className"&&(o[n]=[r,c].filter(Boolean).join(" "))}return{...e,...o}}function w(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function V(e){const t=e+"CollectionProvider",[o,n]=A.createContextScope(t),[r,c]=o(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{const{scope:i,children:R}=C,f=d.useRef(null),p=d.useRef(new Map).current;return E.jsxRuntimeExports.jsx(r,{scope:i,itemMap:p,collectionRef:f,children:R})};u.displayName=t;const s=e+"CollectionSlot",m=_(s),a=d.forwardRef((C,i)=>{const{scope:R,children:f}=C,p=c(s,R),x=g.useComposedRefs(i,p.collectionRef);return E.jsxRuntimeExports.jsx(m,{ref:x,children:f})});a.displayName=s;const y=e+"CollectionItemSlot",S="data-radix-collection-item",b=_(y),j=d.forwardRef((C,i)=>{const{scope:R,children:f,...p}=C,x=d.useRef(null),O=g.useComposedRefs(i,x),I=c(y,R);return d.useEffect(()=>(I.itemMap.set(x,{ref:x,...p}),()=>void I.itemMap.delete(x))),E.jsxRuntimeExports.jsx(b,{[S]:"",ref:O,children:f})});j.displayName=y;function M(C){const i=c(e+"CollectionConsumer",C);return d.useCallback(()=>{const f=i.collectionRef.current;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${S}]`));return Array.from(i.itemMap.values()).sort((I,N)=>p.indexOf(I.ref.current)-p.indexOf(N.ref.current))},[i.collectionRef,i.itemMap])}return[{Provider:u,Slot:a,ItemSlot:j},M,n]}var L=l.createContext(void 0);function q(e){const t=l.useContext(L);return e||t||"ltr"}exports.createCollection=V;exports.useDirection=q;