@lanaco/lnc-react-ui 4.0.35 → 4.0.37

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 (286) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +11 -11
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +3 -3
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +2 -2
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +2 -2
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +3 -3
  13. package/dist/Badge.cjs +2 -2
  14. package/dist/Badge.js +3 -3
  15. package/dist/BannerSectionBasic.cjs +1 -1
  16. package/dist/BannerSectionBasic.js +1 -1
  17. package/dist/BannerSectionCarousel.cjs +2 -2
  18. package/dist/BannerSectionCarousel.js +63 -63
  19. package/dist/BannerSectionGrid.cjs +3 -3
  20. package/dist/BannerSectionGrid.js +43 -39
  21. package/dist/BannerSectionSimple.cjs +1 -1
  22. package/dist/BannerSectionSimple.js +1 -1
  23. package/dist/BannerSectionWithList.cjs +1 -1
  24. package/dist/BannerSectionWithList.js +2 -2
  25. package/dist/BannerSectionWithListImage.cjs +1 -1
  26. package/dist/BannerSectionWithListImage.js +1 -1
  27. package/dist/BlogsSectionDetailed.cjs +1 -1
  28. package/dist/BlogsSectionDetailed.js +3 -3
  29. package/dist/BlogsSectionLarge.cjs +1 -1
  30. package/dist/BlogsSectionLarge.js +2 -2
  31. package/dist/BlogsSectionSimple.cjs +1 -1
  32. package/dist/BlogsSectionSimple.js +3 -3
  33. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  34. package/dist/BlogsSectionSimpleCentered.js +2 -2
  35. package/dist/BlogsSectionWithFilters.cjs +11 -108
  36. package/dist/BlogsSectionWithFilters.js +59 -437
  37. package/dist/BrandHitsSection.cjs +1 -1
  38. package/dist/BrandHitsSection.js +2 -2
  39. package/dist/Breadcrumbs.cjs +3 -3
  40. package/dist/Breadcrumbs.js +12 -12
  41. package/dist/Button.cjs +1 -1
  42. package/dist/Button.js +4 -4
  43. package/dist/ButtonGroup.cjs +1 -1
  44. package/dist/ButtonGroup.js +3 -3
  45. package/dist/CalorieCalculatorSection.cjs +333 -0
  46. package/dist/CalorieCalculatorSection.js +851 -0
  47. package/dist/CheckBoxInput.cjs +1 -1
  48. package/dist/CheckBoxInput.js +3 -3
  49. package/dist/Chip.cjs +2 -2
  50. package/dist/Chip.js +3 -3
  51. package/dist/ColorInput.cjs +1 -1
  52. package/dist/ColorInput.js +4 -4
  53. package/dist/ConfirmationForm.cjs +2 -2
  54. package/dist/ConfirmationForm.js +3 -3
  55. package/dist/CustomLoanMapSection.cjs +1 -1
  56. package/dist/CustomLoanMapSection.js +2 -2
  57. package/dist/{CustomStyles-BMY2-z7P.js → CustomStyles-BwnfUVvi.js} +8 -8
  58. package/dist/{CustomStyles-zroEcINq.cjs → CustomStyles-DUDHRSkh.cjs} +2 -2
  59. package/dist/DataView.cjs +1 -1
  60. package/dist/DataView.js +1 -1
  61. package/dist/DateInput.cjs +4 -4
  62. package/dist/DateInput.js +76 -80
  63. package/dist/DecimalInput.cjs +3 -3
  64. package/dist/DecimalInput.js +4 -4
  65. package/dist/DecimalInputV2.cjs +2 -2
  66. package/dist/DecimalInputV2.js +3 -3
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +4 -4
  69. package/dist/DetailsView.cjs +2 -2
  70. package/dist/DetailsView.js +3 -3
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +3 -3
  73. package/dist/DragAndDropFile.cjs +6 -6
  74. package/dist/DragAndDropFile.js +4 -4
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +3 -3
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +12 -12
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +5 -5
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +10 -10
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +5 -5
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +6 -6
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +3 -3
  89. package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
  90. package/dist/FieldOfInterestsMasonrySection.js +43 -42
  91. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  92. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
  93. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +3 -3
  94. package/dist/FieldOfInterestsWithTagsCardsSection.js +3 -3
  95. package/dist/FileInput.cjs +2 -2
  96. package/dist/FileInput.js +3 -3
  97. package/dist/FlexBox.cjs +1 -1
  98. package/dist/FlexBox.js +1 -1
  99. package/dist/FlexGridItem.cjs +1 -1
  100. package/dist/FlexGridItem.js +2 -2
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +7 -7
  103. package/dist/FormView.cjs +2 -2
  104. package/dist/FormView.js +15 -15
  105. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  106. package/dist/GeneralWithTagsCardsSection.js +3 -3
  107. package/dist/GiftCardsSection.cjs +1 -1
  108. package/dist/GiftCardsSection.js +2 -2
  109. package/dist/Grid.cjs +1 -1
  110. package/dist/Grid.js +1 -1
  111. package/dist/GridItem.cjs +1 -1
  112. package/dist/GridItem.js +1 -1
  113. package/dist/Icon.cjs +2 -2
  114. package/dist/Icon.js +6 -6
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +3 -3
  117. package/dist/Kanban.cjs +7 -7
  118. package/dist/Kanban.js +37 -41
  119. package/dist/KanbanActionsToolbar.cjs +1 -1
  120. package/dist/KanbanActionsToolbar.js +2 -2
  121. package/dist/{KanbanCard-BDyFaKYd.js → KanbanCard-BDRSqfVD.js} +2 -2
  122. package/dist/{KanbanCard-CofqdTrO.cjs → KanbanCard-CLOKZFYP.cjs} +1 -1
  123. package/dist/KanbanCard.cjs +1 -1
  124. package/dist/KanbanCard.js +3 -3
  125. package/dist/KanbanFooter.cjs +1 -1
  126. package/dist/KanbanFooter.js +2 -2
  127. package/dist/KanbanHeader.cjs +2 -2
  128. package/dist/KanbanHeader.js +2 -2
  129. package/dist/KanbanView.cjs +1 -1
  130. package/dist/KanbanView.js +3 -3
  131. package/dist/Link.cjs +2 -2
  132. package/dist/Link.js +6 -6
  133. package/dist/LocationSearchSection.cjs +53 -0
  134. package/dist/LocationSearchSection.js +108 -0
  135. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  136. package/dist/MasonryGeneralCardsSection.js +3 -3
  137. package/dist/MenuItem.cjs +2 -2
  138. package/dist/MenuItem.js +3 -3
  139. package/dist/Modal.cjs +1 -1
  140. package/dist/Modal.js +6 -6
  141. package/dist/MultiSelectDropdown.cjs +1 -1
  142. package/dist/MultiSelectDropdown.js +3 -3
  143. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  144. package/dist/MultiSelectDropdownLookup.js +3 -3
  145. package/dist/NestedDropdownItem.cjs +1 -1
  146. package/dist/NestedDropdownItem.js +9 -9
  147. package/dist/NestedMenuItem.cjs +2 -2
  148. package/dist/NestedMenuItem.js +8 -8
  149. package/dist/Notification.cjs +1 -1
  150. package/dist/Notification.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +3 -3
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +3 -3
  155. package/dist/NumberInput.cjs +2 -2
  156. package/dist/NumberInput.js +4 -4
  157. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +3 -3
  159. package/dist/PageLayout.cjs +2 -2
  160. package/dist/PageLayout.js +2 -2
  161. package/dist/Pagination.cjs +2 -2
  162. package/dist/Pagination.js +2 -2
  163. package/dist/PasswordInput.cjs +2 -2
  164. package/dist/PasswordInput.js +4 -4
  165. package/dist/PopoverContent.cjs +1 -1
  166. package/dist/PopoverContent.js +5 -5
  167. package/dist/PopoverDescription.cjs +1 -1
  168. package/dist/PopoverDescription.js +1 -1
  169. package/dist/PopoverHeading.cjs +1 -1
  170. package/dist/PopoverHeading.js +1 -1
  171. package/dist/PopoverTrigger.cjs +1 -1
  172. package/dist/PopoverTrigger.js +1 -1
  173. package/dist/ProductsWithBannerSection.cjs +1 -1
  174. package/dist/ProductsWithBannerSection.js +3 -3
  175. package/dist/ProgressBar.cjs +1 -1
  176. package/dist/ProgressBar.js +8 -8
  177. package/dist/QuizSection.cjs +1 -1
  178. package/dist/QuizSection.js +2 -2
  179. package/dist/RadioGroup.cjs +1 -1
  180. package/dist/RadioGroup.js +2 -2
  181. package/dist/RadioInput.cjs +1 -1
  182. package/dist/RadioInput.js +3 -3
  183. package/dist/RangeSlider.cjs +2 -2
  184. package/dist/RangeSlider.js +3 -3
  185. package/dist/SalesCampaignsSection.cjs +423 -0
  186. package/dist/SalesCampaignsSection.js +967 -0
  187. package/dist/SearchBar.cjs +1 -1
  188. package/dist/SearchBar.js +6 -6
  189. package/dist/Separator.cjs +1 -1
  190. package/dist/Separator.js +3 -3
  191. package/dist/ShopCardsSection.cjs +1 -1
  192. package/dist/ShopCardsSection.js +2 -2
  193. package/dist/Sidebar.cjs +1 -1
  194. package/dist/Sidebar.js +3 -3
  195. package/dist/SimpleCategoriesSection.cjs +9 -9
  196. package/dist/SimpleCategoriesSection.js +48 -44
  197. package/dist/SimpleProductsSection.cjs +1 -1
  198. package/dist/SimpleProductsSection.js +3 -3
  199. package/dist/Spinner.cjs +1 -1
  200. package/dist/Spinner.js +12 -12
  201. package/dist/Surface.cjs +2 -2
  202. package/dist/Surface.js +3 -3
  203. package/dist/SwipeableDrawer.cjs +2 -2
  204. package/dist/SwipeableDrawer.js +3 -3
  205. package/dist/TabItem.cjs +1 -1
  206. package/dist/TabItem.js +11 -11
  207. package/dist/Table.cjs +7 -7
  208. package/dist/Table.js +4 -4
  209. package/dist/TableView.cjs +1 -1
  210. package/dist/TableView.js +2 -2
  211. package/dist/Tabs.cjs +2 -2
  212. package/dist/Tabs.js +2 -2
  213. package/dist/TextAreaInput.cjs +12 -12
  214. package/dist/TextAreaInput.js +124 -112
  215. package/dist/TextInput.cjs +2 -2
  216. package/dist/TextInput.js +4 -4
  217. package/dist/ThemeProvider.cjs +10 -10
  218. package/dist/ThemeProvider.js +189 -187
  219. package/dist/TimeInput.cjs +2 -2
  220. package/dist/TimeInput.js +4 -4
  221. package/dist/Toggle.cjs +15 -15
  222. package/dist/Toggle.js +40 -50
  223. package/dist/TreeMenu.cjs +1 -1
  224. package/dist/TreeMenu.js +1 -1
  225. package/dist/TreeMenuSeparator.cjs +1 -1
  226. package/dist/TreeMenuSeparator.js +3 -3
  227. package/dist/UploadedFile.cjs +2 -2
  228. package/dist/UploadedFile.js +16 -16
  229. package/dist/UrgentSaleProductsSection.cjs +1 -1
  230. package/dist/UrgentSaleProductsSection.js +2 -2
  231. package/dist/{defineProperty-DHvxLH8G.cjs → defineProperty-CqVRDJI8.cjs} +1 -1
  232. package/dist/{defineProperty-B5pLF6px.js → defineProperty-DF3p0mVo.js} +5 -5
  233. package/dist/emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs +1 -0
  234. package/dist/emotion-element-f0de968e.browser.esm-CkCiQliQ.js +877 -0
  235. package/dist/{emotion-is-prop-valid.esm-CMrshNb7.cjs → emotion-is-prop-valid.esm-BNsx9k19.cjs} +1 -1
  236. package/dist/{emotion-is-prop-valid.esm-DkbeH1Xy.js → emotion-is-prop-valid.esm-CbWxtx4i.js} +1 -1
  237. package/dist/emotion-react.browser.esm-1R69UXoj.cjs +1 -0
  238. package/dist/emotion-react.browser.esm-C6iWxXPG.js +95 -0
  239. package/dist/{emotion-styled.browser.esm-BiK8DcgW.js → emotion-styled.browser.esm-CjCaF13H.js} +55 -53
  240. package/dist/emotion-styled.browser.esm-Cle7tAM9.cjs +1 -0
  241. package/dist/floating-ui.dom-CFbLeFcw.cjs +1 -0
  242. package/dist/floating-ui.dom-vNhdy5RI.js +947 -0
  243. package/dist/{floating-ui.react.esm-C4vrBVJU.cjs → floating-ui.react.esm-7Yt4LHw6.cjs} +1 -1
  244. package/dist/{floating-ui.react.esm-72DKnou_.js → floating-ui.react.esm-umB-tMXa.js} +3 -3
  245. package/dist/{index--Kmch3aI.js → index-64mXPFBC.js} +6724 -6724
  246. package/dist/{index-CvebWhtp.js → index-BlxaTV-D.js} +1 -1
  247. package/dist/{index-CkPex_K5.js → index-CHkb_Sj6.js} +2 -2
  248. package/dist/index-CT6_7UFb.js +350 -0
  249. package/dist/index-Cb_AeN9A.cjs +4 -0
  250. package/dist/{index-CNBqQrtK.js → index-CkWvbrVT.js} +1 -1
  251. package/dist/{index-BUChtubz.js → index-D-c5IxDk.js} +1 -1
  252. package/dist/{index-DKztZfzw.js → index-D6g5ZqyJ.js} +2 -2
  253. package/dist/{index-BP5r5zGN.cjs → index-DZoWlChs.cjs} +1 -1
  254. package/dist/{index-B67WqHGh.cjs → index-Dit169OA.cjs} +1 -1
  255. package/dist/{index-BmobrEkT.cjs → index-Dj5wZCVs.cjs} +1 -1
  256. package/dist/{index-CTJZaJ_S.js → index-DxdBg_r_.js} +1 -1
  257. package/dist/index-EeoArxOx.cjs +174 -0
  258. package/dist/index-Q_i-aqsF.cjs +95 -0
  259. package/dist/{index-C5vAqIS6.cjs → index-vXmvgZ2Y.cjs} +1 -1
  260. package/dist/index-wy-PXQR9.js +47 -0
  261. package/dist/index.cjs +1 -1
  262. package/dist/index.js +96 -92
  263. package/dist/{motion-Oud-wpUz.cjs → motion-B_VPZaJq.cjs} +1 -1
  264. package/dist/{motion-ecIGZGwI.js → motion-Ckekul_K.js} +1 -1
  265. package/dist/objectWithoutPropertiesLoose-BLga_MQA.cjs +1 -0
  266. package/dist/{objectWithoutPropertiesLoose-DwEN6RBQ.js → objectWithoutPropertiesLoose-DhwSMsjf.js} +1 -1
  267. package/dist/{react-toastify.esm-CkXGwKXL.js → react-toastify.esm--2awuizG.js} +1 -1
  268. package/dist/{react-toastify.esm-Dqcb4SQT.cjs → react-toastify.esm-Dq1k28O7.cjs} +1 -1
  269. package/dist/{style-BGQ1B_dp.js → style-6tSw9aqK.js} +1 -1
  270. package/dist/{style-BEUISPP7.cjs → style-BR3tIhP1.cjs} +1 -1
  271. package/dist/usePopover.cjs +1 -1
  272. package/dist/usePopover.js +6 -6
  273. package/dist/{utils-jiuifwtJ.js → utils-DtRLzzTZ.js} +224 -73
  274. package/dist/utils-NZLCh-J5.cjs +51 -0
  275. package/package.json +5 -2
  276. package/vite.config.js +12 -1
  277. package/dist/emotion-element-5486c51c.browser.esm-Bb4VkP8U.js +0 -886
  278. package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +0 -1
  279. package/dist/emotion-react.browser.esm-CN-s34fZ.js +0 -94
  280. package/dist/emotion-react.browser.esm-D7h2t2Bz.cjs +0 -1
  281. package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +0 -1
  282. package/dist/floating-ui.dom-1F2mTXOe.cjs +0 -1
  283. package/dist/floating-ui.dom-BdUovkEr.js +0 -938
  284. package/dist/index-Ct1N7fF4.cjs +0 -174
  285. package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +0 -1
  286. package/dist/utils-scuIeOqU.cjs +0 -51
@@ -1,4 +1,4 @@
1
- "use strict";const ne=require("./floating-ui.dom-1F2mTXOe.cjs"),Y=require("react"),ye=require("./index-Ct1N7fF4.cjs");function Ze(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 s=Ze(Y);var re=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;function ie(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ie(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ae(e){const t=s.useRef(e);return re(()=>{t.current=e}),t}function Je(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:i,open:u}=e,[a,f]=s.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=s.useState(r);ie(v,r)||g(r);const c=s.useRef(null),l=s.useRef(null),p=s.useRef(a),w=Ae(i),b=Ae(o),[d,m]=s.useState(null),[I,E]=s.useState(null),F=s.useCallback(T=>{c.current!==T&&(c.current=T,m(T))},[]),N=s.useCallback(T=>{l.current!==T&&(l.current=T,E(T))},[]),O=s.useCallback(()=>{if(!c.current||!l.current)return;const T={placement:t,strategy:n,middleware:v};b.current&&(T.platform=b.current),ne.computePosition(c.current,l.current,T).then(D=>{const A={...D,isPositioned:!0};V.current&&!ie(p.current,A)&&(p.current=A,ye.reactDomExports.flushSync(()=>{f(A)}))})},[v,t,n,b]);re(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const V=s.useRef(!1);re(()=>(V.current=!0,()=>{V.current=!1}),[]),re(()=>{if(d&&I){if(w.current)return w.current(d,I,O);O()}},[d,I,O,w]);const W=s.useMemo(()=>({reference:c,floating:l,setReference:F,setFloating:N}),[F,N]),K=s.useMemo(()=>({reference:d,floating:I}),[d,I]);return s.useMemo(()=>({...a,update:O,refs:W,elements:K,reference:F,floating:N}),[a,O,W,K,F,N])}var Qe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},z=new WeakMap,ee=new WeakMap,te={},pe=0,Ke=function(e){return e&&(e.host||Ke(e.parentNode))},et=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ke(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tt=function(e,t,n,r){var o=et(t,Array.isArray(e)?e:[e]);te[n]||(te[n]=new WeakMap);var i=te[n],u=[],a=new Set,f=new Set(o),v=function(c){!c||a.has(c)||(a.add(c),v(c.parentNode))};o.forEach(v);var g=function(c){!c||f.has(c)||Array.prototype.forEach.call(c.children,function(l){if(a.has(l))g(l);else try{var p=l.getAttribute(r),w=p!==null&&p!=="false",b=(z.get(l)||0)+1,d=(i.get(l)||0)+1;z.set(l,b),i.set(l,d),u.push(l),b===1&&w&&ee.set(l,!0),d===1&&l.setAttribute(n,"true"),w||l.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",l,m)}})};return g(t),a.clear(),pe++,function(){u.forEach(function(c){var l=z.get(c)-1,p=i.get(c)-1;z.set(c,l),i.set(c,p),l||(ee.has(c)||c.removeAttribute(r),ee.delete(c)),p||c.removeAttribute(n)}),pe--,pe||(z=new WeakMap,z=new WeakMap,ee=new WeakMap,te={})}},nt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),tt(r,o,n,"aria-hidden")):function(){return null}};/*!
1
+ "use strict";const ne=require("./floating-ui.dom-CFbLeFcw.cjs"),Y=require("react"),ye=require("./index-EeoArxOx.cjs");function Ze(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 s=Ze(Y);var re=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;function ie(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ie(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ae(e){const t=s.useRef(e);return re(()=>{t.current=e}),t}function Je(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:i,open:u}=e,[a,f]=s.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=s.useState(r);ie(v,r)||g(r);const c=s.useRef(null),l=s.useRef(null),p=s.useRef(a),w=Ae(i),b=Ae(o),[d,m]=s.useState(null),[I,E]=s.useState(null),F=s.useCallback(T=>{c.current!==T&&(c.current=T,m(T))},[]),N=s.useCallback(T=>{l.current!==T&&(l.current=T,E(T))},[]),O=s.useCallback(()=>{if(!c.current||!l.current)return;const T={placement:t,strategy:n,middleware:v};b.current&&(T.platform=b.current),ne.computePosition(c.current,l.current,T).then(D=>{const A={...D,isPositioned:!0};V.current&&!ie(p.current,A)&&(p.current=A,ye.reactDomExports.flushSync(()=>{f(A)}))})},[v,t,n,b]);re(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const V=s.useRef(!1);re(()=>(V.current=!0,()=>{V.current=!1}),[]),re(()=>{if(d&&I){if(w.current)return w.current(d,I,O);O()}},[d,I,O,w]);const W=s.useMemo(()=>({reference:c,floating:l,setReference:F,setFloating:N}),[F,N]),K=s.useMemo(()=>({reference:d,floating:I}),[d,I]);return s.useMemo(()=>({...a,update:O,refs:W,elements:K,reference:F,floating:N}),[a,O,W,K,F,N])}var Qe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},z=new WeakMap,ee=new WeakMap,te={},pe=0,Ke=function(e){return e&&(e.host||Ke(e.parentNode))},et=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ke(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tt=function(e,t,n,r){var o=et(t,Array.isArray(e)?e:[e]);te[n]||(te[n]=new WeakMap);var i=te[n],u=[],a=new Set,f=new Set(o),v=function(c){!c||a.has(c)||(a.add(c),v(c.parentNode))};o.forEach(v);var g=function(c){!c||f.has(c)||Array.prototype.forEach.call(c.children,function(l){if(a.has(l))g(l);else try{var p=l.getAttribute(r),w=p!==null&&p!=="false",b=(z.get(l)||0)+1,d=(i.get(l)||0)+1;z.set(l,b),i.set(l,d),u.push(l),b===1&&w&&ee.set(l,!0),d===1&&l.setAttribute(n,"true"),w||l.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",l,m)}})};return g(t),a.clear(),pe++,function(){u.forEach(function(c){var l=z.get(c)-1,p=i.get(c)-1;z.set(c,l),i.set(c,p),l||(ee.has(c)||c.removeAttribute(r),ee.delete(c)),p||c.removeAttribute(n)}),pe--,pe||(z=new WeakMap,z=new WeakMap,ee=new WeakMap,te={})}},nt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tt(r,o,n,"aria-hidden")):function(){return null}};/*!
2
2
  * tabbable 6.2.0
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
4
  */var rt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ee=rt.join(","),Ve=typeof Element>"u",Z=Ve?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ue=!Ve&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},se=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",u=i||n&&t&&e(t.parentNode);return u},ot=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},it=function(t,n,r){if(se(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Ee));return n&&Z.call(t,Ee)&&o.unshift(t),o=o.filter(r),o},ut=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var u=i.shift();if(!se(u,!1))if(u.tagName==="SLOT"){var a=u.assignedElements(),f=a.length?a:u.children,v=e(f,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:u,candidates:v})}else{var g=Z.call(u,Ee);g&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var c=u.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(u),l=!se(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(c&&l){var p=e(c===!0?u.children:c.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:u,candidates:p})}else i.unshift.apply(i,u.children)}}return o},We=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$e=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||ot(t))&&!We(t)?0:t.tabIndex},st=function(t,n){var r=$e(t);return r<0&&n&&!We(t)?0:r},at=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},je=function(t){return t.tagName==="INPUT"},lt=function(t){return je(t)&&t.type==="hidden"},ct=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},ft=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dt=function(t){if(!t.name)return!0;var n=t.form||ue(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var i=ft(o,t.form);return!i||i===t},vt=function(t){return je(t)&&t.type==="radio"},pt=function(t){return vt(t)&&!dt(t)},bt=function(t){var n,r=t&&ue(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var u,a,f;for(i=!!((u=o)!==null&&u!==void 0&&(a=u.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!i&&o;){var v,g,c;r=ue(o),o=(v=r)===null||v===void 0?void 0:v.host,i=!!((g=o)!==null&&g!==void 0&&(c=g.ownerDocument)!==null&&c!==void 0&&c.contains(o))}}return i},Pe=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},gt=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=Z.call(t,"details>summary:first-of-type"),u=i?t.parentElement:t;if(Z.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var a=t;t;){var f=t.parentElement,v=ue(t);if(f&&!f.shadowRoot&&o(f)===!0)return Pe(t);t.assignedSlot?t=t.assignedSlot:!f&&v!==t.ownerDocument?t=v.host:t=f}t=a}if(bt(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pe(t);return!1},mt=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Z.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},ht=function(t,n){return!(n.disabled||se(n)||lt(n)||gt(n,t)||ct(n)||mt(n))},Fe=function(t,n){return!(pt(n)||$e(n)<0||!ht(t,n))},yt=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Et=function e(t){var n=[],r=[];return t.forEach(function(o,i){var u=!!o.scopeParent,a=u?o.scopeParent:o,f=st(a,u),v=u?e(o.candidates):a;f===0?u?n.push.apply(n,v):n.push(a):r.push({documentOrder:i,tabIndex:f,item:o,isScope:u,content:v})}),r.sort(at).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},ae=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ut([t],n.includeContainer,{filter:Fe.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:yt}):r=it(t,n.includeContainer,Fe.bind(null,n)),Et(r)},j=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;let be=!1,Rt=0;const Oe=()=>"floating-ui-"+Rt++;function wt(){const[e,t]=s.useState(()=>be?Oe():void 0);return j(()=>{e==null&&t(Oe())},[]),s.useEffect(()=>{be||(be=!0)},[]),e}const St=s.useId,le=St||wt;function xt(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(r=>r!==n))}}}const Tt=s.createContext(null),Ct=s.createContext(null),It=()=>{var e;return((e=s.useContext(Tt))==null?void 0:e.id)||null},Se=()=>s.useContext(Ct);function G(e){return(e==null?void 0:e.ownerDocument)||document}function qe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function At(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function xe(e){return G(e).defaultView||window}function H(e){return e?e instanceof xe(e).Element:!1}function J(e){return e?e instanceof xe(e).HTMLElement:!1}function Pt(e){if(typeof ShadowRoot>"u")return!1;const t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ft(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(qe())||t.test(At()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ot(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function De(){return/apple/i.test(navigator.vendor)}function Dt(){return qe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Me(e,t){return["mouse","pen"].includes(e)}function $(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pt(n)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function oe(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(u=>{var a;return o.parentId===u.id&&((a=o.context)==null?void 0:a.open)})})||[],n=n.concat(r);return n}function He(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Mt(e){const t=Y.useRef(e);return j(()=>{t.current=e}),t}function ce(){return ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}function Re(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}let ke=0;function q(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ke);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():ke=requestAnimationFrame(i)}function kt(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(u=>u.id===o);o=i==null?void 0:i.parentId,i&&(r=r.concat(i))}return r}const Nt="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _e(e){return J(e)&&e.matches(Nt)}function ge(e){e.preventDefault(),e.stopPropagation()}const fe=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ue(e,t){const n=ae(e,fe());t==="prev"&&n.reverse();const r=n.indexOf(Re(G(e)));return n.slice(r+1)[0]}function ze(){return Ue(document.body,"next")}function Ge(){return Ue(document.body,"prev")}function X(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!$(n,r)}function Lt(e){ae(e,fe()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Bt(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Kt=s.useInsertionEffect,Vt=Kt||(e=>e());function Te(e){const t=s.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Vt(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const Ce={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let we,Ie;function Ne(e){e.key==="Tab"&&(we=e.target,clearTimeout(Ie))}function Wt(e){const t=we===e.relatedTarget;return we=e.relatedTarget,clearTimeout(Ie),t}const de=s.forwardRef(function(t,n){const r=Te(t.onFocus),[o,i]=s.useState();return j(()=>(De()&&i("button"),document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}),[]),s.createElement("span",ce({},t,{ref:n,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:Ce,onFocus:u=>{De()&&Dt()&&!Wt(u)?(u.persist(),Ie=window.setTimeout(()=>{r(u)},50)):r(u)}}))}),Ye=s.createContext(null),$t=function(e){let{id:t,enabled:n=!0}=e===void 0?{}:e;const[r,o]=s.useState(null),i=le(),u=Xe();return j(()=>{if(!n)return;const a=t?document.getElementById(t):null;if(a)a.setAttribute("data-floating-ui-portal",""),o(a);else{const f=document.createElement("div");f.id=t||i,f.setAttribute("data-floating-ui-portal",""),o(f);const v=(u==null?void 0:u.portalNode)||document.body;return v.appendChild(f),()=>{v.removeChild(f)}}},[t,u,i,n]),r},jt=e=>{let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e;const i=$t({id:n,enabled:!r}),[u,a]=s.useState(null),f=s.useRef(null),v=s.useRef(null),g=s.useRef(null),c=s.useRef(null),l=!!u&&!u.modal&&!!(r||i)&&o;return s.useEffect(()=>{if(!i||!o||u!=null&&u.modal)return;function p(w){i&&X(w)&&(w.type==="focusin"?Bt:Lt)(i)}return i.addEventListener("focusin",p,!0),i.addEventListener("focusout",p,!0),()=>{i.removeEventListener("focusin",p,!0),i.removeEventListener("focusout",p,!0)}},[i,o,u==null?void 0:u.modal]),s.createElement(Ye.Provider,{value:s.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:f,afterOutsideRef:v,beforeInsideRef:g,afterInsideRef:c,portalNode:i,setFocusManagerState:a}),[o,i])},l&&i&&s.createElement(de,{ref:f,onFocus:p=>{if(X(p,i)){var w;(w=g.current)==null||w.focus()}else{const b=Ge()||(u==null?void 0:u.refs.domReference.current);b==null||b.focus()}}}),l&&i&&s.createElement("span",{"aria-owns":i.id,style:Ce}),r?ye.reactDomExports.createPortal(t,r):i?ye.reactDomExports.createPortal(t,i):null,l&&i&&s.createElement(de,{ref:v,onFocus:p=>{if(X(p,i)){var w;(w=c.current)==null||w.focus()}else{const b=ze()||(u==null?void 0:u.refs.domReference.current);b==null||b.focus(),u!=null&&u.closeOnFocusOut&&(u==null||u.onOpenChange(!1))}}}))},Xe=()=>s.useContext(Ye),qt=s.forwardRef(function(t,n){return s.createElement("button",ce({},t,{ref:n,tabIndex:-1,style:Ce}))});function Ht(e){let{context:t,children:n,order:r=["content"],guards:o=!0,initialFocus:i=0,returnFocus:u=!0,modal:a=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:v=!0}=e;const{refs:g,nodeId:c,onOpenChange:l,events:p,dataRef:w,elements:{domReference:b,floating:d}}=t,m=Mt(r),I=Se(),E=Xe(),[F,N]=s.useState(null),O=typeof i=="number"&&i<0,V=s.useRef(null),W=s.useRef(null),K=s.useRef(!1),T=s.useRef(null),D=s.useRef(!1),A=E!=null,S=b&&b.getAttribute("role")==="combobox"&&_e(b),L=s.useCallback(function(h){return h===void 0&&(h=d),h?ae(h,fe()):[]},[d]),C=s.useCallback(h=>{const R=L(h);return m.current.map(y=>b&&y==="reference"?b:d&&y==="floating"?d:R).filter(Boolean).flat()},[b,d,m,L]);s.useEffect(()=>{if(!a)return;function h(y){if(y.key==="Tab"){L().length===0&&!S&&ge(y);const x=C(),M=He(y);m.current[0]==="reference"&&M===b&&(ge(y),y.shiftKey?q(x[x.length-1]):q(x[1])),m.current[1]==="floating"&&M===d&&y.shiftKey&&(ge(y),q(x[0]))}}const R=G(d);return R.addEventListener("keydown",h),()=>{R.removeEventListener("keydown",h)}},[b,d,a,m,g,S,L,C]),s.useEffect(()=>{if(!v)return;function h(){D.current=!0,setTimeout(()=>{D.current=!1})}function R(y){const x=y.relatedTarget,M=!($(b,x)||$(d,x)||$(x,d)||$(E==null?void 0:E.portalNode,x)||x!=null&&x.hasAttribute("data-floating-ui-focus-guard")||I&&(oe(I.nodesRef.current,c).find(P=>{var k,B;return $((k=P.context)==null?void 0:k.elements.floating,x)||$((B=P.context)==null?void 0:B.elements.domReference,x)})||kt(I.nodesRef.current,c).find(P=>{var k,B;return((k=P.context)==null?void 0:k.elements.floating)===x||((B=P.context)==null?void 0:B.elements.domReference)===x})));x&&M&&!D.current&&x!==T.current&&(K.current=!0,setTimeout(()=>l(!1)))}if(d&&J(b))return b.addEventListener("focusout",R),b.addEventListener("pointerdown",h),!a&&d.addEventListener("focusout",R),()=>{b.removeEventListener("focusout",R),b.removeEventListener("pointerdown",h),!a&&d.removeEventListener("focusout",R)}},[b,d,a,c,I,E,l,v]),s.useEffect(()=>{var h;const R=Array.from((E==null||(h=E.portalNode)==null?void 0:h.querySelectorAll("[data-floating-ui-portal]"))||[]);function y(){return[V.current,W.current].filter(Boolean)}if(d&&a){const x=[d,...R,...y()],M=nt(m.current.includes("reference")||S?x.concat(b||[]):x);return()=>{M()}}},[b,d,a,m,E,S]),s.useEffect(()=>{if(a&&!o&&d){const h=[],R=fe(),y=ae(G(d).body,R),x=C(),M=y.filter(P=>!x.includes(P));return M.forEach((P,k)=>{h[k]=P.getAttribute("tabindex"),P.setAttribute("tabindex","-1")}),()=>{M.forEach((P,k)=>{const B=h[k];B==null?P.removeAttribute("tabindex"):P.setAttribute("tabindex",B)})}}},[d,a,o,C]),j(()=>{if(!d)return;const h=G(d);let R=u,y=!1;const x=Re(h),M=w.current;T.current=x;const P=C(d),k=(typeof i=="number"?P[i]:i.current)||d;!O&&q(k,{preventScroll:k===d});function B(U){if(U.type==="escapeKey"&&g.domReference.current&&(T.current=g.domReference.current),["referencePress","escapeKey"].includes(U.type))return;const ve=U.data.returnFocus;typeof ve=="object"?(R=!0,y=ve.preventScroll):R=ve}return p.on("dismiss",B),()=>{if(p.off("dismiss",B),$(d,Re(h))&&g.domReference.current&&(T.current=g.domReference.current),R&&J(T.current)&&!K.current)if(!g.domReference.current||D.current)q(T.current,{cancelPrevious:!1,preventScroll:y});else{var U;M.__syncReturnFocus=!0,(U=T.current)==null||U.focus({preventScroll:y}),setTimeout(()=>{delete M.__syncReturnFocus})}}},[d,C,i,u,w,g,p,O]),j(()=>{if(E)return E.setFocusManagerState({...t,modal:a,closeOnFocusOut:v}),()=>{E.setFocusManagerState(null)}},[E,a,v,t]),j(()=>{if(O||!d)return;function h(){N(L().length)}if(h(),typeof MutationObserver=="function"){const R=new MutationObserver(h);return R.observe(d,{childList:!0,subtree:!0}),()=>{R.disconnect()}}},[d,L,O,g]);const Q=o&&(A||a)&&!S;function _(h){return f&&a?s.createElement(qt,{ref:h==="start"?V:W,onClick:()=>l(!1)},typeof f=="string"?f:"Dismiss"):null}return s.createElement(s.Fragment,null,Q&&s.createElement(de,{ref:E==null?void 0:E.beforeInsideRef,onFocus:h=>{if(a){const y=C();q(r[0]==="reference"?y[0]:y[y.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(K.current=!1,X(h,E.portalNode)){const y=ze()||b;y==null||y.focus()}else{var R;(R=E.beforeOutsideRef.current)==null||R.focus()}}}),S?null:_("start"),s.cloneElement(n,F===0||r.includes("floating")?{tabIndex:0}:{}),_("end"),Q&&s.createElement(de,{ref:E==null?void 0:E.afterInsideRef,onFocus:h=>{if(a)q(C()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(K.current=!0,X(h,E.portalNode)){const y=Ge()||b;y==null||y.focus()}else{var R;(R=E.afterOutsideRef.current)==null||R.focus()}}}))}function Le(e){return J(e.target)&&e.target.tagName==="BUTTON"}function Be(e){return _e(e)}const _t=function(e,t){let{open:n,onOpenChange:r,dataRef:o,refs:i}=e,{enabled:u=!0,event:a="click",toggle:f=!0,ignoreMouse:v=!1,keyboardHandlers:g=!0}=t===void 0?{}:t;const c=s.useRef();return s.useMemo(()=>u?{reference:{onPointerDown(l){c.current=l.pointerType},onMouseDown(l){l.button===0&&(Me(c.current)&&v||a!=="click"&&(n?f&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&r(!1):(l.preventDefault(),r(!0)),o.current.openEvent=l.nativeEvent))},onClick(l){if(!o.current.__syncReturnFocus){if(a==="mousedown"&&c.current){c.current=void 0;return}Me(c.current)&&v||(n?f&&(!o.current.openEvent||o.current.openEvent.type==="click")&&r(!1):r(!0),o.current.openEvent=l.nativeEvent)}},onKeyDown(l){c.current=void 0,g&&(Le(l)||(l.key===" "&&!Be(i.domReference.current)&&l.preventDefault(),l.key==="Enter"&&(n?f&&r(!1):r(!0))))},onKeyUp(l){g&&(Le(l)||Be(i.domReference.current)||l.key===" "&&(n?f&&r(!1):r(!0)))}}}:{},[u,o,a,v,g,i,f,n,r])};function me(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}const Ut={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},zt={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Gt=function(e){var t,n;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(n=e.outsidePress)!=null?n:!0}},Yt=function(e,t){let{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:u,domReference:a,floating:f}}=e,{enabled:v=!0,escapeKey:g=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:p=!1,referencePressEvent:w="pointerdown",ancestorScroll:b=!1,bubbles:d=!0}={};const m=Se(),I=It()!=null,E=Te(typeof c=="function"?c:()=>!1),F=typeof c=="function"?E:c,N=s.useRef(!1),{escapeKeyBubbles:O,outsidePressBubbles:V}=Gt(d);return s.useEffect(()=>{if(!n||!v)return;function W(S){if(S.key==="Escape"){if(!O&&m&&oe(m.nodesRef.current,i).length>0)return;o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1)}}function K(S){const L=N.current;if(N.current=!1,L||typeof F=="function"&&!F(S))return;const C=He(S);if(J(C)&&f){const _=f.ownerDocument.defaultView||window,h=C.scrollWidth>C.clientWidth,R=C.scrollHeight>C.clientHeight;let y=R&&S.offsetX>C.clientWidth;if(R&&_.getComputedStyle(C).direction==="rtl"&&(y=S.offsetX<=C.offsetWidth-C.clientWidth),y||h&&S.offsetY>C.clientHeight)return}const Q=m&&oe(m.nodesRef.current,i).some(_=>{var h;return me(S,(h=_.context)==null?void 0:h.elements.floating)});me(S,f)||me(S,a)||Q||!V&&m&&oe(m.nodesRef.current,i).length>0||(o.emit("dismiss",{type:"outsidePress",data:{returnFocus:I?{preventScroll:!0}:Ft(S)||Ot(S)}}),r(!1))}function T(){r(!1)}const D=G(f);g&&D.addEventListener("keydown",W),F&&D.addEventListener(l,K);let A=[];return b&&(H(a)&&(A=ne.getOverflowAncestors(a)),H(f)&&(A=A.concat(ne.getOverflowAncestors(f))),!H(u)&&u&&u.contextElement&&(A=A.concat(ne.getOverflowAncestors(u.contextElement)))),A=A.filter(S=>{var L;return S!==((L=D.defaultView)==null?void 0:L.visualViewport)}),A.forEach(S=>{S.addEventListener("scroll",T,{passive:!0})}),()=>{g&&D.removeEventListener("keydown",W),F&&D.removeEventListener(l,K),A.forEach(S=>{S.removeEventListener("scroll",T)})}},[f,a,u,g,F,l,o,m,i,n,r,b,v,O,V,I]),s.useEffect(()=>{N.current=!1},[F,l]),s.useMemo(()=>v?{reference:{[Ut[w]]:()=>{p&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[zt[l]]:()=>{N.current=!0}}}:{},[v,o,p,l,w,r])};function Xt(e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Zt=function(e,t){let{open:n}=e,{enabled:r=!0,role:o="dialog"}={};const i=le(),u=le();return s.useMemo(()=>{const a={id:i,role:o};return r?o==="tooltip"?{reference:{"aria-describedby":n?i:void 0},floating:a}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":n?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:u}},floating:{...a,...o==="menu"&&{"aria-labelledby":u}}}:{}},[r,o,n,i,u])};function Jt(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:n,nodeId:r}=e,o=Je(e),i=Se(),u=s.useRef(null),a=s.useRef({}),f=s.useState(()=>xt())[0],[v,g]=s.useState(null),c=s.useCallback(m=>{const I=H(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(I)},[o.refs]),l=s.useCallback(m=>{(H(m)||m===null)&&(u.current=m,g(m)),(H(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!H(m))&&o.refs.setReference(m)},[o.refs]),p=s.useMemo(()=>({...o.refs,setReference:l,setPositionReference:c,domReference:u}),[o.refs,l,c]),w=s.useMemo(()=>({...o.elements,domReference:v}),[o.elements,v]),b=Te(n),d=s.useMemo(()=>({...o,refs:p,elements:w,dataRef:a,nodeId:r,events:f,open:t,onOpenChange:b}),[o,r,f,t,b,p,w]);return j(()=>{const m=i==null?void 0:i.nodesRef.current.find(I=>I.id===r);m&&(m.context=d)}),s.useMemo(()=>({...o,context:d,refs:p,reference:l,positionReference:c}),[o,p,d,l,c])}function he(e,t,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[n]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(u=>{let[a,f]=u;if(a.indexOf("on")===0){if(r.has(a)||r.set(a,[]),typeof f=="function"){var v;(v=r.get(a))==null||v.push(f),o[a]=function(){for(var g,c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];(g=r.get(a))==null||g.forEach(w=>w(...l))}}}else o[a]=f}),o),{})}}const Qt=function(e){e===void 0&&(e=[]);const t=e,n=s.useCallback(i=>he(i,e,"reference"),t),r=s.useCallback(i=>he(i,e,"floating"),t),o=s.useCallback(i=>he(i,e,"item"),t);return s.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])};exports.FloatingFocusManager=Ht;exports.FloatingPortal=jt;exports.useClick=_t;exports.useDismiss=Yt;exports.useFloating=Jt;exports.useId=le;exports.useInteractions=Qt;exports.useMergeRefs=Xt;exports.useRole=Zt;
@@ -1,7 +1,7 @@
1
- import { c as Je, g as fe } from "./floating-ui.dom-BdUovkEr.js";
1
+ import { c as Je, g as fe } from "./floating-ui.dom-vNhdy5RI.js";
2
2
  import * as s from "react";
3
3
  import { useLayoutEffect as Be, useEffect as Ke, useRef as Qe } from "react";
4
- import { r as ge } from "./index--Kmch3aI.js";
4
+ import { r as ge } from "./index-64mXPFBC.js";
5
5
  var te = typeof document < "u" ? Be : Ke;
6
6
  function re(e, t) {
7
7
  if (e === t)
@@ -158,7 +158,7 @@ var tt = function(e) {
158
158
  }, ot = function(e, t, n) {
159
159
  n === void 0 && (n = "data-aria-hidden");
160
160
  var r = Array.from(Array.isArray(e) ? e : [e]), o = tt(e);
161
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), rt(r, o, n, "aria-hidden")) : function() {
161
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), rt(r, o, n, "aria-hidden")) : function() {
162
162
  return null;
163
163
  };
164
164
  };