@baseline-ui/core 3.8.0 → 3.9.0

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 (313) hide show
  1. package/dist/Accordion.mjs +1 -1
  2. package/dist/ActionButton.mjs +1 -1
  3. package/dist/ActionGroup.mjs +1 -1
  4. package/dist/ActionIconButton.mjs +1 -1
  5. package/dist/Actionable.mjs +1 -1
  6. package/dist/AlertDialog.css +1 -1
  7. package/dist/AlertDialog.mjs +1 -1
  8. package/dist/AudioPlayer.css +1 -1
  9. package/dist/AudioPlayer.mjs +1 -1
  10. package/dist/Breadcrumbs.mjs +1 -1
  11. package/dist/ButtonSelect.css +1 -1
  12. package/dist/ButtonSelect.mjs +1 -1
  13. package/dist/Calendar.css +1 -1
  14. package/dist/Calendar.mjs +1 -1
  15. package/dist/Checkbox.mjs +1 -1
  16. package/dist/ColorInput.css +1 -1
  17. package/dist/ColorInput.mjs +1 -1
  18. package/dist/ColorSwatch.mjs +1 -1
  19. package/dist/ColorSwatchPicker.mjs +1 -1
  20. package/dist/ComboBox.css +1 -1
  21. package/dist/ComboBox.mjs +1 -1
  22. package/dist/DateField.css +1 -1
  23. package/dist/DateField.mjs +1 -1
  24. package/dist/Dialog.mjs +1 -1
  25. package/dist/Disclosure.mjs +1 -1
  26. package/dist/DomNodeRenderer.mjs +1 -1
  27. package/dist/Drawer.mjs +1 -1
  28. package/dist/Editor.css +1 -1
  29. package/dist/Editor.mjs +1 -1
  30. package/dist/FileInput.css +1 -1
  31. package/dist/FileInput.mjs +1 -1
  32. package/dist/FileList.mjs +1 -1
  33. package/dist/FileUploader.mjs +1 -1
  34. package/dist/FrameProvider.mjs +1 -1
  35. package/dist/FreehandCanvas.mjs +1 -1
  36. package/dist/GridList.mjs +1 -1
  37. package/dist/Group.mjs +1 -1
  38. package/dist/Icon.mjs +1 -1
  39. package/dist/Image.mjs +1 -1
  40. package/dist/ImageDropZone.mjs +1 -1
  41. package/dist/ImageGallery.css +1 -1
  42. package/dist/ImageGallery.mjs +1 -1
  43. package/dist/InlineAlert.mjs +1 -1
  44. package/dist/InlineToolbar.mjs +2 -2
  45. package/dist/Kbd.mjs +1 -1
  46. package/dist/Link.mjs +1 -1
  47. package/dist/ListBox.mjs +1 -1
  48. package/dist/Menu.mjs +1 -1
  49. package/dist/Modal.mjs +1 -1
  50. package/dist/NumberInput.css +1 -1
  51. package/dist/NumberInput.mjs +1 -1
  52. package/dist/Pagination.mjs +1 -1
  53. package/dist/Panel.mjs +1 -1
  54. package/dist/PointPicker.mjs +1 -1
  55. package/dist/Popover.mjs +1 -1
  56. package/dist/Portal.mjs +1 -1
  57. package/dist/Preview.mjs +1 -1
  58. package/dist/ProgressBar.css +1 -1
  59. package/dist/ProgressBar.mjs +1 -1
  60. package/dist/ProgressSpinner.mjs +1 -1
  61. package/dist/RadioGroup.css +1 -1
  62. package/dist/RadioGroup.mjs +1 -1
  63. package/dist/Reaction.mjs +1 -1
  64. package/dist/ScrollControlButton.mjs +1 -1
  65. package/dist/SearchInput.mjs +1 -1
  66. package/dist/Select.css +1 -1
  67. package/dist/Select.mjs +1 -1
  68. package/dist/Slider.css +1 -1
  69. package/dist/Slider.mjs +1 -1
  70. package/dist/Stepper.mjs +1 -1
  71. package/dist/Switch.css +1 -1
  72. package/dist/Switch.mjs +1 -1
  73. package/dist/Table.mjs +1 -1
  74. package/dist/Tabs.mjs +1 -1
  75. package/dist/Tag.mjs +1 -1
  76. package/dist/TagGroup.mjs +1 -1
  77. package/dist/TaggedPagination.mjs +1 -1
  78. package/dist/Text.mjs +1 -1
  79. package/dist/TextInput.css +1 -1
  80. package/dist/TextInput.mjs +1 -1
  81. package/dist/ThemeProvider.mjs +1 -1
  82. package/dist/TimeField.css +1 -1
  83. package/dist/TimeField.mjs +1 -1
  84. package/dist/Toast.mjs +1 -1
  85. package/dist/ToggleButton.mjs +1 -1
  86. package/dist/ToggleIconButton.mjs +1 -1
  87. package/dist/Toolbar.mjs +1 -1
  88. package/dist/Tooltip.mjs +1 -1
  89. package/dist/TreeView.css +1 -1
  90. package/dist/TreeView.mjs +1 -1
  91. package/dist/UNSAFE_ListBox.mjs +1 -1
  92. package/dist/Virtualizer.mjs +1 -1
  93. package/dist/chunk-25NW6ZEB.mjs +10 -0
  94. package/dist/chunk-2O4HB7UL.mjs +10 -0
  95. package/dist/{chunk-Z73YU5ZQ.mjs → chunk-2UDXAKWA.mjs} +1 -1
  96. package/dist/{chunk-ETM4MNG4.mjs → chunk-35AM4QEA.mjs} +1 -1
  97. package/dist/{chunk-XO7MAUFC.mjs → chunk-3COKCTB2.mjs} +2 -2
  98. package/dist/chunk-3JOOFCEF.mjs +10 -0
  99. package/dist/{chunk-4S4GGUSH.mjs → chunk-3PBFSDMT.mjs} +1 -1
  100. package/dist/{chunk-G5MSZV5O.mjs → chunk-3V4W6OGG.mjs} +1 -1
  101. package/dist/{chunk-CU6D2EA6.mjs → chunk-3ZX5CLZO.mjs} +1 -1
  102. package/dist/chunk-45EAFDOZ.mjs +10 -0
  103. package/dist/{chunk-IROFSPEN.mjs → chunk-4HOAPQDQ.mjs} +1 -1
  104. package/dist/{chunk-KHDWTXGG.mjs → chunk-4PZGQTXE.mjs} +1 -1
  105. package/dist/{chunk-655SS7D4.mjs → chunk-54MWEZUP.mjs} +1 -1
  106. package/dist/chunk-5GZAORDK.mjs +10 -0
  107. package/dist/{chunk-BA5OA5DY.mjs → chunk-5LGYS5CZ.mjs} +1 -1
  108. package/dist/chunk-5MR5L5JZ.mjs +10 -0
  109. package/dist/{chunk-XAM3AXXK.mjs → chunk-64ZD4EKW.mjs} +1 -1
  110. package/dist/{chunk-YS3Z53YT.mjs → chunk-67QIBKUN.mjs} +1 -1
  111. package/dist/{chunk-SOWGXN5P.mjs → chunk-6CSP66NI.mjs} +1 -1
  112. package/dist/{chunk-LSPDPDB6.mjs → chunk-6HTOSJOJ.mjs} +1 -1
  113. package/dist/{chunk-PSUCNVCE.mjs → chunk-6LFOODXI.mjs} +1 -1
  114. package/dist/chunk-6MTVNQKW.mjs +10 -0
  115. package/dist/{chunk-YNJD34U4.mjs → chunk-6NUHEJGL.mjs} +1 -1
  116. package/dist/{chunk-ZLDFLERD.mjs → chunk-6PBBHYCA.mjs} +1 -1
  117. package/dist/chunk-6RN7DKRF.mjs +10 -0
  118. package/dist/{chunk-I7LPPUZS.mjs → chunk-A455VRNY.mjs} +1 -1
  119. package/dist/{chunk-GQIS4QBN.mjs → chunk-A63HMTSM.mjs} +1 -1
  120. package/dist/chunk-AALXW5AP.mjs +10 -0
  121. package/dist/{chunk-5GW36EQJ.mjs → chunk-AC44TKUI.mjs} +1 -1
  122. package/dist/{chunk-TCVES3WI.mjs → chunk-ADEALCJB.mjs} +1 -1
  123. package/dist/{chunk-SGZWUG3H.mjs → chunk-ALMW6S4I.mjs} +1 -1
  124. package/dist/{chunk-6DETJFO2.mjs → chunk-ARMWQYH2.mjs} +1 -1
  125. package/dist/chunk-B3W7VMJR.mjs +10 -0
  126. package/dist/{chunk-ZZ7YJ2FN.mjs → chunk-B5NICAFU.mjs} +1 -1
  127. package/dist/{chunk-Q6R75IOP.mjs → chunk-BFW26T6V.mjs} +1 -1
  128. package/dist/{chunk-EGLD5KVP.mjs → chunk-BK3RBPST.mjs} +1 -1
  129. package/dist/{chunk-CTTNZESA.mjs → chunk-BPLTQDXX.mjs} +1 -1
  130. package/dist/{chunk-4WVW4KEK.mjs → chunk-BSFG32AL.mjs} +1 -1
  131. package/dist/{chunk-HKVAL4BB.mjs → chunk-C4XJOYAW.mjs} +1 -1
  132. package/dist/{chunk-UZ672WDX.mjs → chunk-CFDIUF4H.mjs} +1 -1
  133. package/dist/{chunk-6CEV43ZA.mjs → chunk-CHBF3XQ6.mjs} +1 -1
  134. package/dist/chunk-CIOPWCOS.mjs +10 -0
  135. package/dist/{chunk-UI2VBG26.mjs → chunk-CKUHFL5G.mjs} +1 -1
  136. package/dist/{chunk-GMALMQWI.mjs → chunk-D2NVLRIU.mjs} +1 -1
  137. package/dist/{chunk-JHA7DIPG.mjs → chunk-D6AOHRAV.mjs} +1 -1
  138. package/dist/chunk-DFMPVQM3.mjs +10 -0
  139. package/dist/{chunk-MHAPHPNN.mjs → chunk-DHZKZ3AV.mjs} +1 -1
  140. package/dist/{chunk-K5RYVERS.mjs → chunk-DLJHL4V7.mjs} +1 -1
  141. package/dist/{chunk-4Y4WKIL5.mjs → chunk-DOFT4BQH.mjs} +1 -1
  142. package/dist/{chunk-235S3EB7.mjs → chunk-DPFX25HC.mjs} +1 -1
  143. package/dist/{chunk-73UBSCJ2.mjs → chunk-DRQHSYY3.mjs} +1 -1
  144. package/dist/{chunk-ZE2B6BS7.mjs → chunk-DV72V6NI.mjs} +1 -1
  145. package/dist/chunk-DZFNVFYT.mjs +10 -0
  146. package/dist/chunk-DZJTPX2G.mjs +10 -0
  147. package/dist/chunk-E2VXJPSE.mjs +10 -0
  148. package/dist/{chunk-54WJJ3EM.mjs → chunk-E3TD3EJQ.mjs} +1 -1
  149. package/dist/{chunk-EFFODO2N.mjs → chunk-E6DZSC2G.mjs} +1 -1
  150. package/dist/{chunk-I7SMG6PT.mjs → chunk-EISLHUT5.mjs} +1 -1
  151. package/dist/chunk-ENUU2IVX.mjs +10 -0
  152. package/dist/{chunk-OQPYPKZV.mjs → chunk-ES3IQZSH.mjs} +1 -1
  153. package/dist/{chunk-KVIV5RTE.mjs → chunk-F3EOLTFM.mjs} +1 -1
  154. package/dist/chunk-F4YBUGLD.mjs +10 -0
  155. package/dist/{chunk-STMDFIUL.mjs → chunk-FDDB7QNQ.mjs} +1 -1
  156. package/dist/{chunk-Z4QTH4TB.mjs → chunk-FTV6OWMI.mjs} +1 -1
  157. package/dist/chunk-G76NJ3IU.mjs +10 -0
  158. package/dist/{chunk-INFMXVHD.mjs → chunk-GIUNLLWW.mjs} +1 -1
  159. package/dist/{chunk-OHTPDCQA.mjs → chunk-GLIN7JAI.mjs} +1 -1
  160. package/dist/{chunk-S4HLMIFK.mjs → chunk-GOCBU65X.mjs} +1 -1
  161. package/dist/{chunk-D4NW56YQ.mjs → chunk-GPT4DR4P.mjs} +1 -1
  162. package/dist/{chunk-LLSXABBJ.mjs → chunk-GXQQZWIP.mjs} +1 -1
  163. package/dist/{chunk-GCBMNOA6.mjs → chunk-HNKEI45D.mjs} +1 -1
  164. package/dist/chunk-IBBDZQPO.mjs +10 -0
  165. package/dist/{chunk-F7WPMQ3P.mjs → chunk-IIBBR266.mjs} +1 -1
  166. package/dist/{chunk-PSAOTHYG.mjs → chunk-INHZHYOF.mjs} +1 -1
  167. package/dist/{chunk-BGRGRUG4.mjs → chunk-IOHULFEP.mjs} +1 -1
  168. package/dist/{chunk-TUY23KMK.mjs → chunk-IVM5IBQS.mjs} +1 -1
  169. package/dist/{chunk-FX3THTOK.mjs → chunk-J7BCMF23.mjs} +1 -1
  170. package/dist/chunk-JB3UIJ3I.mjs +10 -0
  171. package/dist/{chunk-UFN2OAM2.mjs → chunk-JC22ELJM.mjs} +1 -1
  172. package/dist/chunk-JDDA4R2D.mjs +10 -0
  173. package/dist/{chunk-RRYP54UI.mjs → chunk-JIGOXUY4.mjs} +1 -1
  174. package/dist/{chunk-KX7WG3L4.mjs → chunk-JOK6I52O.mjs} +1 -1
  175. package/dist/{chunk-6GV3YWV7.mjs → chunk-JTGVIAOK.mjs} +1 -1
  176. package/dist/chunk-JVD752FA.mjs +10 -0
  177. package/dist/{chunk-RIVN2JT3.mjs → chunk-JXJZIKEY.mjs} +1 -1
  178. package/dist/chunk-K276BGP2.mjs +10 -0
  179. package/dist/{chunk-TIGGKOJQ.mjs → chunk-KADD66HZ.mjs} +1 -1
  180. package/dist/{chunk-QAAOC64D.mjs → chunk-KBLJ34QI.mjs} +1 -1
  181. package/dist/{chunk-X3ACY7IY.mjs → chunk-KFJE5ZBK.mjs} +1 -1
  182. package/dist/{chunk-23WMOYTQ.mjs → chunk-KMSNBINF.mjs} +1 -1
  183. package/dist/{chunk-SZCVQU55.mjs → chunk-KMZ3YVPE.mjs} +1 -1
  184. package/dist/{chunk-C4WHTPLY.mjs → chunk-KRVEGSVY.mjs} +1 -1
  185. package/dist/{chunk-VPVF5N62.mjs → chunk-L5H5GE3H.mjs} +1 -1
  186. package/dist/{chunk-6TRBOQVN.mjs → chunk-L6ISOTLH.mjs} +1 -1
  187. package/dist/chunk-LHLY432N.mjs +10 -0
  188. package/dist/{chunk-2JGVUCP5.mjs → chunk-LN2NT32E.mjs} +1 -1
  189. package/dist/{chunk-B3EZOXNU.mjs → chunk-LRFFL765.mjs} +1 -1
  190. package/dist/{chunk-PCR5FD43.mjs → chunk-LXZOYBTL.mjs} +1 -1
  191. package/dist/{chunk-3WX5PZ6X.mjs → chunk-LZEZW5RE.mjs} +1 -1
  192. package/dist/{chunk-GYIIVZDE.mjs → chunk-M7BCIQ2J.mjs} +1 -1
  193. package/dist/{chunk-2VOWBYNS.mjs → chunk-MPJXTZ6L.mjs} +1 -1
  194. package/dist/{chunk-SAATXQOW.mjs → chunk-MUQR2YER.mjs} +1 -1
  195. package/dist/{chunk-NUCSMH4S.mjs → chunk-N4NDPTX6.mjs} +1 -1
  196. package/dist/{chunk-65PMDBYL.mjs → chunk-NN6HKMC4.mjs} +1 -1
  197. package/dist/{chunk-KUDCYGII.mjs → chunk-NQVTVL24.mjs} +1 -1
  198. package/dist/chunk-NTUW55EB.mjs +10 -0
  199. package/dist/{chunk-6Z3GYFG5.mjs → chunk-NWYRVUTX.mjs} +1 -1
  200. package/dist/{chunk-RINS2TBF.mjs → chunk-NYNS3UDR.mjs} +1 -1
  201. package/dist/{chunk-UCIAWI4E.mjs → chunk-OAOIUNNG.mjs} +1 -1
  202. package/dist/{chunk-5USQ6HBY.mjs → chunk-OKEXEU3C.mjs} +1 -1
  203. package/dist/{chunk-6MUTSHZO.mjs → chunk-OMCGORTH.mjs} +1 -1
  204. package/dist/{chunk-3IPRT57V.mjs → chunk-OO3ZVB2T.mjs} +2 -2
  205. package/dist/{chunk-TZGK36KC.mjs → chunk-OS6PVCFX.mjs} +1 -1
  206. package/dist/{chunk-XWKTG7NR.mjs → chunk-P6LYION6.mjs} +1 -1
  207. package/dist/{chunk-3WKDIXCM.mjs → chunk-PJINRIA6.mjs} +1 -1
  208. package/dist/{chunk-6DYTFYPO.mjs → chunk-PLRUMLNB.mjs} +1 -1
  209. package/dist/{chunk-YF63IQQR.mjs → chunk-PQIDCA7P.mjs} +1 -1
  210. package/dist/{chunk-6Q5PNIYZ.mjs → chunk-PSUZMSD3.mjs} +1 -1
  211. package/dist/{chunk-VFO35ZLL.mjs → chunk-Q3FYMLAA.mjs} +1 -1
  212. package/dist/{chunk-Y2MIU76N.mjs → chunk-QSFRMY47.mjs} +1 -1
  213. package/dist/{chunk-HH4VLTF3.mjs → chunk-QVFGEXDU.mjs} +1 -1
  214. package/dist/{chunk-MBRNO6IW.mjs → chunk-R5JHN4X6.mjs} +1 -1
  215. package/dist/{chunk-NLVJYKSA.mjs → chunk-R7Y36JCO.mjs} +1 -1
  216. package/dist/chunk-RFCTQQMD.mjs +10 -0
  217. package/dist/{chunk-5ZC64ZG7.mjs → chunk-RXADOJLS.mjs} +1 -1
  218. package/dist/{chunk-PPHSLODC.mjs → chunk-SCJ3RG7B.mjs} +1 -1
  219. package/dist/{chunk-PMDRFB75.mjs → chunk-SI7LO2L4.mjs} +1 -1
  220. package/dist/{chunk-ZC5WXVNV.mjs → chunk-SY24O432.mjs} +1 -1
  221. package/dist/{chunk-KQOXSF4J.mjs → chunk-SYA6LAFU.mjs} +1 -1
  222. package/dist/{chunk-IIURKT24.mjs → chunk-SZNDCHMJ.mjs} +1 -1
  223. package/dist/{chunk-QUWRO3HT.mjs → chunk-TEQHGF4G.mjs} +1 -1
  224. package/dist/{chunk-TYKMNZJ4.mjs → chunk-TGLVJRZE.mjs} +1 -1
  225. package/dist/{chunk-GFBRKKX4.mjs → chunk-TN7FPPGM.mjs} +1 -1
  226. package/dist/chunk-TYOEGCPS.mjs +10 -0
  227. package/dist/{chunk-R6TFTLMV.mjs → chunk-U6M2GCPD.mjs} +1 -1
  228. package/dist/{chunk-6QQEK5I6.mjs → chunk-UBC32WQB.mjs} +1 -1
  229. package/dist/{chunk-TU7JTGGE.mjs → chunk-UCRJ3AR5.mjs} +1 -1
  230. package/dist/{chunk-BTPAZDGG.mjs → chunk-UI4SJCQU.mjs} +1 -1
  231. package/dist/{chunk-7SQRBY7N.mjs → chunk-UKBBSYRC.mjs} +1 -1
  232. package/dist/{chunk-IM3E5JL4.mjs → chunk-UPOQXYUI.mjs} +1 -1
  233. package/dist/{chunk-22MA6EYO.mjs → chunk-UQJB6AGO.mjs} +1 -1
  234. package/dist/{chunk-AI6WQPRX.mjs → chunk-UR42GQO4.mjs} +1 -1
  235. package/dist/{chunk-OTDBW5FO.mjs → chunk-V6DZG4PM.mjs} +1 -1
  236. package/dist/{chunk-S2XIFW52.mjs → chunk-VEIBPZDL.mjs} +1 -1
  237. package/dist/{chunk-3TLWTZRL.mjs → chunk-VKWXATZ3.mjs} +1 -1
  238. package/dist/{chunk-54ZKQAA3.mjs → chunk-VNJDCKLQ.mjs} +1 -1
  239. package/dist/{chunk-F3THHK5C.mjs → chunk-VPN55UVA.mjs} +1 -1
  240. package/dist/{chunk-QMV2O57M.mjs → chunk-VQ45RUYJ.mjs} +1 -1
  241. package/dist/chunk-VQHI3ZCW.mjs +10 -0
  242. package/dist/{chunk-BGQRLALS.mjs → chunk-VSGVHATE.mjs} +1 -1
  243. package/dist/{chunk-MHO7BDER.mjs → chunk-VWSTMBQK.mjs} +1 -1
  244. package/dist/chunk-VYBJ36ZR.mjs +10 -0
  245. package/dist/{chunk-YDUKC7QS.mjs → chunk-W3YUV7IF.mjs} +1 -1
  246. package/dist/{chunk-4QBHQCCK.mjs → chunk-WAPBLICF.mjs} +1 -1
  247. package/dist/{chunk-PMMLDGSP.mjs → chunk-WBOFQ4BH.mjs} +1 -1
  248. package/dist/{chunk-CIPPPD6E.mjs → chunk-WD2TPSZV.mjs} +1 -1
  249. package/dist/{chunk-TAT552A5.mjs → chunk-WID7IWNC.mjs} +1 -1
  250. package/dist/{chunk-HV7DKEN7.mjs → chunk-WSRXTVYB.mjs} +1 -1
  251. package/dist/{chunk-O7IU5NHN.mjs → chunk-WXILHRBE.mjs} +1 -1
  252. package/dist/{chunk-4I7K4CCG.mjs → chunk-X34RHNLT.mjs} +1 -1
  253. package/dist/{chunk-XOS3JIQX.mjs → chunk-X6K4M542.mjs} +1 -1
  254. package/dist/{chunk-57YWI7EG.mjs → chunk-XC5H4EVW.mjs} +1 -1
  255. package/dist/chunk-XF65LVBQ.mjs +10 -0
  256. package/dist/{chunk-EJYSTNXD.mjs → chunk-XKNL5LSL.mjs} +1 -1
  257. package/dist/{chunk-4P247R4V.mjs → chunk-Y6PZKRST.mjs} +1 -1
  258. package/dist/{chunk-GIT77HDD.mjs → chunk-YK3KAPIK.mjs} +1 -1
  259. package/dist/{chunk-OVJT5F2R.mjs → chunk-YQFS4UHL.mjs} +1 -1
  260. package/dist/{chunk-5YKRWGEJ.mjs → chunk-YSQ3YHJN.mjs} +2 -2
  261. package/dist/{chunk-VQ2K6Q3G.mjs → chunk-Z7JRM3NW.mjs} +2 -2
  262. package/dist/chunk-Z7UPVYL5.mjs +10 -0
  263. package/dist/{chunk-64IFEFOT.mjs → chunk-ZRD2DMEX.mjs} +1 -1
  264. package/dist/hooks/useDevice.mjs +1 -1
  265. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  266. package/dist/hooks/useLiveInteractionModality.mjs +1 -1
  267. package/dist/hooks/useLocalStorage.mjs +1 -1
  268. package/dist/hooks/useMutationObserver.mjs +1 -1
  269. package/dist/hooks/usePortalContainer.mjs +1 -1
  270. package/dist/hooks/usePreventFocus.mjs +1 -1
  271. package/dist/hooks/useResizeObserver.mjs +1 -1
  272. package/dist/hooks/useTextSelection.mjs +1 -1
  273. package/dist/index.css +1 -1
  274. package/dist/index.d.ts +46 -32
  275. package/dist/index.js +22 -22
  276. package/dist/index.mjs +1 -1
  277. package/dist/react-aria.mjs +1 -1
  278. package/dist/utils/dom.mjs +1 -1
  279. package/dist/utils/isInShadowDOM.mjs +1 -1
  280. package/dist/utils/keyboards.mjs +1 -1
  281. package/package.json +4 -4
  282. package/sbom.json +6 -6
  283. package/dist/chunk-2BG2JLFC.mjs +0 -10
  284. package/dist/chunk-2JRDTJWJ.mjs +0 -10
  285. package/dist/chunk-2OXYNLVN.mjs +0 -10
  286. package/dist/chunk-2TXFCYPO.mjs +0 -10
  287. package/dist/chunk-464QF4AV.mjs +0 -10
  288. package/dist/chunk-46VEK5WC.mjs +0 -10
  289. package/dist/chunk-7DCQF3EP.mjs +0 -10
  290. package/dist/chunk-AGERZJ3X.mjs +0 -10
  291. package/dist/chunk-BROSGYL3.mjs +0 -10
  292. package/dist/chunk-BSSLS6MF.mjs +0 -10
  293. package/dist/chunk-CY6W27WG.mjs +0 -10
  294. package/dist/chunk-EXX7ZFGI.mjs +0 -10
  295. package/dist/chunk-FWPWBCOS.mjs +0 -10
  296. package/dist/chunk-GJ6ZPLFR.mjs +0 -10
  297. package/dist/chunk-HU75NQMI.mjs +0 -10
  298. package/dist/chunk-LDWNE2JT.mjs +0 -10
  299. package/dist/chunk-MN7USKSC.mjs +0 -10
  300. package/dist/chunk-N7MIERZH.mjs +0 -10
  301. package/dist/chunk-NKC4MIX3.mjs +0 -10
  302. package/dist/chunk-NWWH62TU.mjs +0 -10
  303. package/dist/chunk-PG3WDHSK.mjs +0 -10
  304. package/dist/chunk-PR3CD3UC.mjs +0 -10
  305. package/dist/chunk-SBR5UAUY.mjs +0 -10
  306. package/dist/chunk-SD43KVTU.mjs +0 -10
  307. package/dist/chunk-SND4G3LM.mjs +0 -10
  308. package/dist/chunk-SZTFMBPY.mjs +0 -10
  309. package/dist/chunk-UCDGZFQ7.mjs +0 -10
  310. package/dist/chunk-VQPEDDH6.mjs +0 -10
  311. package/dist/chunk-WQBA2P6W.mjs +0 -10
  312. package/dist/chunk-XC2S3RLC.mjs +0 -10
  313. package/dist/chunk-YLL2APKH.mjs +0 -10
@@ -0,0 +1,10 @@
1
+ import {a as a$6}from'./chunk-DV72V6NI.mjs';import {a as a$e}from'./chunk-INHZHYOF.mjs';import {k,j,g,c,i,f as f$1,h as h$1,e as e$1,d as d$1,b as b$5,a as a$h}from'./chunk-AC44TKUI.mjs';import {b as b$3,a as a$g,q as q$1,n,c as c$5}from'./chunk-OO3ZVB2T.mjs';import {a as a$b}from'./chunk-AMW7LGCF.mjs';import {a as a$9}from'./chunk-TEQHGF4G.mjs';import {b as b$6}from'./chunk-64ZD4EKW.mjs';import {b as b$7}from'./chunk-VQ45RUYJ.mjs';import {p}from'./chunk-NWYRVUTX.mjs';import {b as b$8}from'./chunk-DF2D7NE6.mjs';import {a as a$3}from'./chunk-2MS356Q7.mjs';import {a as a$k}from'./chunk-6CSP66NI.mjs';import {a as a$d}from'./chunk-2UDXAKWA.mjs';import {b as b$2,a as a$c,c as c$4}from'./chunk-6RN7DKRF.mjs';import {d,h,e,f,g as g$1}from'./chunk-XF65LVBQ.mjs';import {a as a$f}from'./chunk-JZXLV6JU.mjs';import {a as a$m}from'./chunk-5MR5L5JZ.mjs';import {b,c as c$2}from'./chunk-IDIZSV2Y.mjs';import {a as a$u}from'./chunk-UBC32WQB.mjs';import {d as d$3}from'./chunk-W6QO7FPZ.mjs';import {b as b$4}from'./chunk-GIUNLLWW.mjs';import {a as a$7}from'./chunk-DIL5HL6K.mjs';import {a as a$j}from'./chunk-VQHI3ZCW.mjs';import {a as a$a}from'./chunk-5LGYS5CZ.mjs';import {a as a$l}from'./chunk-USMC34OO.mjs';import {a as a$s}from'./chunk-DLJHL4V7.mjs';import {a as a$p}from'./chunk-4HOAPQDQ.mjs';import {a as a$i}from'./chunk-VDUFLHKK.mjs';import {a as a$q}from'./chunk-22VRCVTH.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$r}from'./chunk-FPM5UJRF.mjs';import {a as a$t}from'./chunk-WAPBLICF.mjs';import {a}from'./chunk-ALMW6S4I.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-FDDB7QNQ.mjs';import {a as a$1}from'./chunk-LRFFL765.mjs';import {j as j$1,d as d$2}from'./chunk-NQVTVL24.mjs';import {c as c$1,b as b$1,a as a$o}from'./chunk-PJINRIA6.mjs';import {a as a$n}from'./chunk-SVIYLH7R.mjs';import {c as c$3}from'./chunk-35AM4QEA.mjs';import {h as h$2,j as j$2}from'./chunk-TYOEGCPS.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import W,{useCallback,useContext,useEffect,useMemo,useRef,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {CaretDownIcon}from'@baseline-ui/icons/8';import {sprinkles}from'@baseline-ui/tokens';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var $=new WeakMap;function ue(t,e,a){let{keyboardDelegate:n,isDisabled:f,isRequired:y,name:c,form:S,validationBehavior:i="aria"}=t,x=a$l({usage:"search",sensitivity:"base"}),l=useMemo(()=>n||new b$6(e.collection,e.disabledKeys,a,x),[n,e.collection,e.disabledKeys,x,a]),{menuTriggerProps:p,menuProps:s}=c$5({isDisabled:f,type:"listbox"},e,a),{keyboardProps:d}=j$1({shortcuts:{ArrowLeft:()=>{if(e.selectionManager.selectionMode==="multiple")return false;let m=e.selectedKey!=null?l.getKeyAbove?.(e.selectedKey):l.getFirstKey?.();m!=null&&e.setSelectedKey(m);},ArrowRight:()=>{if(e.selectionManager.selectionMode==="multiple")return false;let m=e.selectedKey!=null?l.getKeyBelow?.(e.selectedKey):l.getFirstKey?.();m!=null&&e.setSelectedKey(m);}},allowRepeats:true,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp}),{typeSelectProps:o}=b$7({keyboardDelegate:l,selectionManager:e.selectionManager,onTypeSelect(m){e.setSelectedKey(m);}}),{isInvalid:g,validationErrors:b,validationDetails:T}=e.displayValidation,{labelProps:O,fieldProps:r,descriptionProps:M,errorMessageProps:u}=a$m({...t,labelElementType:"span",isInvalid:g,errorMessage:t.errorMessage||b,ref:a});e.selectionManager.selectionMode==="multiple"&&(o={});let B=a$n(t,{labelable:true}),P=c$1(o,p,r),C=c$3();return $.set(e,{isDisabled:f,isRequired:y,name:c,form:S,validationBehavior:i}),{labelProps:{...O,onClick:()=>{t.isDisabled||(a.current?.focus(),d$2("keyboard"));}},triggerProps:c$1(B,{...P,isDisabled:f,onKeyDown:a$o(P.onKeyDown,d.onKeyDown),onKeyUp:d.onKeyUp,"aria-labelledby":[C,P["aria-labelledby"],P["aria-label"]&&!P["aria-labelledby"]?P.id:null].filter(Boolean).join(" "),onFocus(m){e.isFocused||(t.onFocus&&t.onFocus(m),t.onFocusChange&&t.onFocusChange(true),e.setFocused(true));},onBlur(m){e.isOpen||(t.onBlur&&t.onBlur(m),t.onFocusChange&&t.onFocusChange(false),e.setFocused(false));}}),valueProps:{id:C},menuProps:{...s,onAction:void 0,autoFocus:e.focusStrategy||true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,disallowEmptySelection:true,linkBehavior:"selection",onBlur:m=>{h$2(m.currentTarget,m.relatedTarget)||(t.onBlur&&t.onBlur(m),t.onFocusChange&&t.onFocusChange(false),e.setFocused(false));},"aria-labelledby":[r["aria-labelledby"],P["aria-label"]&&!r["aria-labelledby"]?P.id:null].filter(Boolean).join(" ")},descriptionProps:M,errorMessageProps:u,isInvalid:g,validationErrors:b,validationDetails:T,hiddenSelectProps:{isDisabled:f,name:c,label:t.label,state:e,triggerRef:a,form:S}}}function xt(t,e,a){let n=$.get(e)||{},{autoComplete:f,name:y=n.name,form:c=n.form,isDisabled:S=n.isDisabled}=t,{validationBehavior:i,isRequired:x}=n,{visuallyHiddenProps:l}=a$s({style:{position:"fixed",top:0,left:0}});a$t(t.selectRef,e.defaultValue,e.setValue),a$u({validationBehavior:i,focus:()=>a.current?.focus()},e,t.selectRef);let p=e.setValue,s=useCallback(d=>{let o=j$2(d);o.multiple?p(Array.from(o.selectedOptions,g=>g.value)):p(d.currentTarget.value);},[p]);return {containerProps:{...l,"aria-hidden":true,"data-react-aria-prevent-focus":true,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:f,disabled:S,multiple:e.selectionManager.selectionMode==="multiple",required:i==="native"&&x,name:y,form:c,value:e.value??"",onChange:s,onInput:s}}}function me(t){let{state:e,triggerRef:a,label:n,name:f,form:y,isDisabled:c}=t,S=useRef(null),i=useRef(null),{containerProps:x,selectProps:l}=xt({...t,selectRef:e.collection.size<=300?S:i},e,a),p=Array.isArray(e.value)?e.value:[e.value];if(e.collection.size<=300)return jsx("div",{...x,"data-testid":"hidden-select-container",children:jsxs("label",{children:[n,jsxs("select",{...l,ref:S,children:[jsx("option",{value:"",label:"\xA0",children:"\xA0"}),[...e.collection.getKeys()].map(s=>{let d=e.collection.getItem(s);if(d&&d.type==="item")return jsx("option",{value:d.key,children:d.textValue},d.key)}),e.collection.size===0&&f&&p.map((s,d)=>jsx("option",{value:s??""},d))]})]})});if(f){let s=$.get(e)||{},{validationBehavior:d}=s;p.length===0&&(p=[null]);let o=p.map((g,b)=>{let T={type:"hidden",autoComplete:l.autoComplete,name:f,form:y,disabled:c,value:g??""};return d==="native"?jsx("input",{...T,ref:b===0?i:null,style:{display:"none"},type:"text",required:b===0?l.required:false,onChange:()=>{}},b):jsx("input",{...T,ref:b===0?i:null},b)});return jsx(Fragment,{children:o})}return null}function fe(t){let{selectionMode:e="single",shouldCloseOnSelect:a=e==="single"}=t,n=a$q(t),[f,y]=useState(null),c=useMemo(()=>t.defaultValue!==void 0?t.defaultValue:e==="single"?t.defaultSelectedKey??null:[],[t.defaultValue,t.defaultSelectedKey,e]),S=useMemo(()=>t.value!==void 0?t.value:e==="single"?t.selectedKey:void 0,[t.value,t.selectedKey,e]),[i,x]=a$r(S,c,t.onChange),l=e==="single"&&Array.isArray(i)?i[0]:i,p=r=>{if(e==="single"){let M=Array.isArray(r)?r[0]??null:r;x(M),M!==l&&t.onSelectionChange?.(M);}else {let M=[];Array.isArray(r)?M=r:r!=null&&(M=[r]),x(M);}},s=b$8({...t,selectionMode:e,disallowEmptySelection:e==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>Lt(l),[l]),onSelectionChange:r=>{if(r!=="all"){if(e==="single"){let M=r.values().next().value??null;p(M);}else p([...r]);a&&n.close(),g.commitValidation();}}}),d=s.selectionManager.firstSelectedKey,o=useMemo(()=>[...s.selectionManager.selectedKeys].map(r=>s.collection.getItem(r)).filter(r=>r!=null),[s.selectionManager.selectedKeys,s.collection]),g=d$3({...t,value:Array.isArray(l)&&l.length===0?null:l}),[b,T]=useState(false),[O]=useState(l);return {...g,...s,...n,value:l,defaultValue:c??O,setValue:p,selectedKey:d,setSelectedKey:p,selectedItem:o[0]??null,selectedItems:o,defaultSelectedKey:t.defaultSelectedKey??(t.selectionMode==="single"?O:null),focusStrategy:f,open(r=null){(s.collection.size!==0||t.allowsEmptyCollection)&&(y(r),n.open());},toggle(r=null){(s.collection.size!==0||t.allowsEmptyCollection)&&(y(r),n.toggle());},isFocused:b,setFocused:T}}function Lt(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}var q=W.forwardRef(({variant:t,isOpen:e,validationState:a$9="valid",valueProps:n,className:f,style:y,value:c$2,"data-block-id":S,"data-block-class":i$1,fallbackValue:x,selectionMode:l="single",onRemove:p,maxCount:s=2,moreLabel:d$1,...o},g$1)=>{let{formatMessage:b$2}=b(),T=c$2?.[0]??null,O=T?.label??x,r=T?.icon??null,M=W.useRef(null),u=!!(l==="multiple"&&c$2&&c$2?.length>0),{buttonProps:B,isPressed:P}=a({...o,elementType:"div",isDisabled:o.isDisabled||o.isReadOnly},M),{hoverProps:C,isHovered:m}=a$1({isDisabled:o.isDisabled}),{focusProps:D,isFocused:j$1,isFocusVisible:I}=a$2(),k$1=a$3({isReadOnly:o.isReadOnly,validationState:a$9});o.isReadOnly&&(B.disabled=false);let L=a$4({"data-disabled":o.isDisabled,"data-readonly":o.isReadOnly,"data-focused":j$1,"data-focus-visible":I,"data-hovered":m,"data-pressed":P,"data-open":e,"data-block-id":S,"data-block-class":i$1}),F=o["aria-labelledby"]?.split(/\s+/).filter(R=>R&&R!==n?.id).join(" ")||void 0,ne=useCallback(()=>{a$5(Array.isArray(c$2),"value must be an array");let R=c$2.slice(0,s),E=c$2.slice(s),X=[...R,...E.length>0?[{label:(typeof d$1=="function"?d$1({count:E.length}):d$1)??b$2(Ht.more,{count:E.length}),id:"remaining-value"}]:[]];return jsx(a$6,{items:X,onRemove:o.isReadOnly?void 0:_=>{_.has("remaining-value")?p?.(new Set(E.map(N=>N.id))):p?.(_);},"aria-labelledby":F,className:k,isDisabled:o.isDisabled})},[c$2,s,b$2,d$1,F,o.isDisabled,p,o.isReadOnly]),U=l==="multiple";return jsxs("div",{...c$1(U?Object.fromEntries(Object.entries(B).filter(([R])=>R.startsWith("on"))):c$1(B,D),C,L),ref:U?g$1:b$1(g$1,M),className:a$8(i({isFocused:I,isDisabled:!!o.isDisabled,isOpen:e,isHovered:m,variant:t,isReadOnly:!!o.isReadOnly,areTagsVisible:u}),h({variant:t,isHovered:m,isFocused:I,validationState:a$9,isDisabled:!!o.isDisabled,isReadOnly:o.isReadOnly}),f,"BaselineUI-Select-Button"),"data-testid":"select-button",style:y,children:[jsxs(a$7,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",flex:1,paddingRight:"md",children:[l==="multiple"&&c$2&&c$2.length>0?jsxs(Fragment,{children:[jsx("span",{...n,hidden:true,"aria-label":c$2.map(R=>R.label).join(", ")}),ne()]}):jsxs("span",{className:k,children:[r?jsx(r,{size:24}):null,jsx("span",{...n,children:O})]}),k$1?jsx("span",{"aria-hidden":true,className:a$8(d({validationState:a$9,isReadOnly:!!o.isReadOnly}),j),children:jsx(k$1,{size:16})}):null]}),jsx("div",{...U?{...c$1(B,D),ref:M}:{},className:g,children:jsx(CaretDownIcon,{size:8,className:c({isOpen:e})})})]})});q.displayName="SelectButton";var Ht=c$2({more:{id:"bui.select.more",defaultMessage:"+{count} more"}});var Ct=W.createContext({state:null,popoverAnchorRef:null}),Se=W.forwardRef(({className:t,style:e$2,labelPosition:a="top",variant:n="primary","data-block-id":f$2,"data-block-class":y,onTriggerPress:c,placement:S="bottom start",triggerClassName:i,triggerStyle:x,state:l,optionStyle:p$1,optionClassName:s,showSectionHeader:d,hideSelectAll:o,hideClear:g,clearLabel:b$1,searchLabel:T,selectAllLabel:O,moreLabel:r,renderTrigger:M=({buttonProps:P,selectedValue:C,valueProps:m,isOpen:D,ref:j,selectionMode:I,onRemove:k,maxCount:L})=>jsx(q,{...P,className:i,style:x,isOpen:D,isReadOnly:u.isReadOnly,ref:j,variant:n,validationState:u.validationState,valueProps:m,value:C,fallbackValue:u.placeholder,selectionMode:I,onRemove:k,maxCount:L,moreLabel:r}),...u},B)=>{let{popoverAnchorRef:P}=useContext(Ct),C=W.useRef(null),{formatMessage:m}=b(),D=T??m(ye.search),j=useContext(a$9),{isVirtualized:I}=useContext(p),k=a$a(u.portalContainer),{labelProps:L,triggerProps:F,valueProps:ne,menuProps:U,descriptionProps:R,errorMessageProps:E}=ue({...a$b(u),description:b$2(u),validationState:u.validationState==="error"||u.errorMessage?"invalid":"valid"},l,C),X=c$3(),_=a$c(u)==="warningMessage",N=c$4({...u,descriptionProps:R,errorMessageProps:E,warningMessageProps:{id:X},labelPosition:a}),Ot=w=>{L.onClick?.(w),!(u.isDisabled||!F.id)&&a$p(C.current,F.id)?.focus();},Bt=l.selectedItems?.map(w=>w.value)??null;return jsxs(Fragment,{children:[jsxs("div",{style:e$2,className:a$8(g$1({labelPosition:a}),"BaselineUI-Select",t),"data-block-id":f$2,"data-block-class":y,ref:B,children:[u.label||N?jsxs("div",{className:f({labelPosition:a,hasMessage:!!N}),children:[u.label?jsx("div",{...L,onClick:Ot,className:a$8(e,"BaselineUI-Select-Label"),children:u.label}):null,a==="start"&&N]}):null,jsx(me,{state:l,triggerRef:C,isDisabled:u.isDisabled,label:u.label,name:u.name}),M({buttonProps:c$1({onPressStart:c,"aria-labelledby":L.id},F,_?{"aria-describedby":[F["aria-describedby"],X].filter(Boolean).join(" ")}:null),selectedValue:Bt,valueProps:ne,isOpen:l.isOpen,ref:C,selectionMode:u.selectionMode??"single",onRemove:w=>{l.selectionManager.setSelectedKeys(new Set([...l.selectionManager.selectedKeys].filter(ie=>!w.has(ie))));},maxCount:u.maxCount??2}),a==="top"&&N]}),l?jsx(b$3.Provider,{value:l,children:jsx(a$d,{placement:S,state:l,portalContainer:k,offset:2,triggerRef:P||C,className:"BaselineUI-Select-Popover",...u,children:jsxs(a$7,{display:"flex",flex:1,flexDirection:"column",className:f$1,children:[j?jsxs(Fragment,{children:[jsx(a$e,{size:"sm","aria-label":D,placeholder:D,className:a$8(h$1,"BaselineUI-Select-SearchInput"),autoFocus:true}),jsx(a$f,{})]}):null,jsx(a$g.Provider,{value:U,children:jsx(q$1,{label:u.label,escapeKeyBehavior:"none",className:e$1({isVirtualized:I}),optionStyle:p$1,optionClassName:s,showSectionHeader:d})}),l.selectionManager.selectionMode==="multiple"&&(!o||!g)&&jsxs(a$7,{display:"flex",flexDirection:"row",className:d$1,children:[!o&&jsx(b$4,{variant:"ghost",size:"md",label:O??m(ye.selectAll),"data-testid":"select-all-button",onPress:()=>{if(l.selectionManager.isSelectAll)return;let ie=[...l.collection.getKeys()].filter(ge=>!l.selectionManager.disabledKeys.has(ge)&&l.selectionManager.canSelectItem(ge));l.selectionManager.setSelectedKeys(new Set(ie));},className:b$5}),!o&&!g&&jsx(a$f,{orientation:"vertical"}),!g&&jsx(b$4,{variant:"ghost",label:b$1??m(ye.clear),size:"md","data-testid":"select-clear-button",onPress:()=>{l.selectionManager.isEmpty||l.selectionManager.clearSelection();},className:b$5})]})]})})}):null]})});Se.displayName="SelectCore";var Rt=W.forwardRef(({collection:t,...e},a)=>{let n=fe({...e,collection:t,validationState:e.validationState==="error"?"invalid":"valid",children:void 0});return jsx(Se,{...e,ref:a,state:n})});Rt.displayName="SelectStandalone";var oe=W.forwardRef(({optionStyle:t,optionClassName:e,showSectionHeader:a,...n$1},f)=>{let{state:y}=useContext(Ct);useEffect(()=>{a$5(y||n$1.items,"Select: A `state` that can be passed via context or `items` are required.");},[n$1.items,y]);let c=useMemo(()=>({renderOption:(S,i)=>jsx(n,{...i,item:S,selectionIcon:i.selectionMode==="multiple"?"checkbox":"checkmark"}),optionStyle:t,optionClassName:e,showSectionHeader:a}),[t,e,a]);return y?jsx(Se,{...n$1,optionStyle:t,optionClassName:e,showSectionHeader:a,ref:f,state:y}):jsx(a$h,{items:n$1.items,listBoxProps:c,children:S=>jsx(Rt,{collection:S,...n$1,ref:f})})});oe.displayName="Select";var ye=c$2({selectAll:{id:"bui.select.selectAll",defaultMessage:"Select All"},clear:{id:"bui.select.clear",defaultMessage:"Clear"},search:{id:"bui.select.search",defaultMessage:"Search"}});var Kt=W.forwardRef(({className:t,style:e,variant:a,"data-block-id":n,"data-block-class":f,icon:y,tooltip:c=true,iconTooltip:S=true,...i},x)=>{let l=W.useRef(null),{tooltipProps:p}=a$i({label:i["aria-label"],tooltip:c}),s=useCallback(({buttonProps:d,selectedValue:o,valueProps:g,isOpen:b,ref:T})=>jsx(a$j,{...p,children:jsx(q,{...d,className:i.triggerClassName,style:i.triggerStyle,isOpen:b,isReadOnly:i.isReadOnly,ref:T,variant:a,validationState:i.validationState,value:o,fallbackValue:i.placeholder,valueProps:g,moreLabel:i.moreLabel})}),[i,p,a]);return jsxs(a$7,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:a$8("BaselineUI-IconSelect",t),"data-block-id":n,"data-block-class":f,style:e,ref:b$1(x,l),children:[y?jsx(a$k,{icon:y,label:i["aria-label"],tooltip:S,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsx(oe,{...i,renderTrigger:s})]})});Kt.displayName="IconSelect";export{fe as a,Ct as b,oe as c,Kt as d};
@@ -1,4 +1,4 @@
1
- import {i}from'./chunk-RINS2TBF.mjs';import {a}from'./chunk-HH4VLTF3.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import V,{createContext,useRef,useCallback,useMemo,cloneElement,useContext,useState,forwardRef,isValidElement}from'react';import {createPortal}from'react-dom';import {useSyncExternalStore}from'use-sync-external-store/shim/index.js';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
1
+ import {i}from'./chunk-NYNS3UDR.mjs';import {a}from'./chunk-QVFGEXDU.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import V,{createContext,useRef,useCallback,useMemo,cloneElement,useContext,useState,forwardRef,isValidElement}from'react';import {createPortal}from'react-dom';import {useSyncExternalStore}from'use-sync-external-store/shim/index.js';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {forwardRef,createContext,useRef,useMemo,useContext,useState,useCallback}from'react';import {jsx,Fragment}from'react/jsx-runtime';/**
1
+ import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-35AM4QEA.mjs';import {forwardRef,createContext,useRef,useMemo,useContext,useState,useCallback}from'react';import {jsx,Fragment}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$8}from'./chunk-E3FP4B25.mjs';import {a as a$1,b as b$2}from'./chunk-5ZC64ZG7.mjs';import {a as a$6}from'./chunk-JZXLV6JU.mjs';import {b as b$1,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {a as a$5}from'./chunk-2OXYNLVN.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-STMDFIUL.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon as CaretLeftIcon$3,CaretRightIcon as CaretRightIcon$3}from'@baseline-ui/icons/12';import {CaretLeftIcon as CaretLeftIcon$2,CaretRightIcon as CaretRightIcon$2}from'@baseline-ui/icons/16';import {CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1}from'@baseline-ui/icons/20';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import w from'react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
1
+ import {a as a$8}from'./chunk-E3FP4B25.mjs';import {a as a$1,b as b$2}from'./chunk-RXADOJLS.mjs';import {a as a$6}from'./chunk-JZXLV6JU.mjs';import {b as b$1,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {a as a$5}from'./chunk-LHLY432N.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-FDDB7QNQ.mjs';import {a as a$2}from'./chunk-LRFFL765.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon as CaretLeftIcon$3,CaretRightIcon as CaretRightIcon$3}from'@baseline-ui/icons/12';import {CaretLeftIcon as CaretLeftIcon$2,CaretRightIcon as CaretRightIcon$2}from'@baseline-ui/icons/16';import {CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1}from'@baseline-ui/icons/20';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import w from'react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {c as c$1,a}from'./chunk-ETM4MNG4.mjs';import {useState,useRef,useCallback}from'react';/**
1
+ import {c as c$1,a}from'./chunk-35AM4QEA.mjs';import {useState,useRef,useCallback}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$4}from'./chunk-G77E7EDE.mjs';import {a as a$6}from'./chunk-LSPDPDB6.mjs';import {d}from'./chunk-QMV2O57M.mjs';import {a as a$1}from'./chunk-NGZRN4SF.mjs';import {c,b}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-K5RYVERS.mjs';import {a as a$5}from'./chunk-FPM5UJRF.mjs';import {a as a$9}from'./chunk-STMDFIUL.mjs';import {a as a$8}from'./chunk-B3EZOXNU.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import fe,{useMemo,useCallback,useEffect,useRef}from'react';import {CheckmarkIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {a as a$4}from'./chunk-G77E7EDE.mjs';import {a as a$6}from'./chunk-6HTOSJOJ.mjs';import {d}from'./chunk-VQ45RUYJ.mjs';import {a as a$1}from'./chunk-NGZRN4SF.mjs';import {c,b}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-DLJHL4V7.mjs';import {a as a$5}from'./chunk-FPM5UJRF.mjs';import {a as a$9}from'./chunk-FDDB7QNQ.mjs';import {a as a$8}from'./chunk-LRFFL765.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {c as c$1}from'./chunk-PJINRIA6.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import fe,{useMemo,useCallback,useEffect,useRef}from'react';import {CheckmarkIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {jsx,jsxs}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$b}from'./chunk-KT4FTBJ2.mjs';import {a as a$4,b as b$5,g,d,e as e$1,h as h$1}from'./chunk-6DYTFYPO.mjs';import {a as a$f}from'./chunk-AMW7LGCF.mjs';import {b as b$1,c as c$5}from'./chunk-QUWRO3HT.mjs';import {c as c$2,f as f$1,e as e$3,d as d$3}from'./chunk-JHA7DIPG.mjs';import {a as a$g}from'./chunk-TAT552A5.mjs';import {a as a$m}from'./chunk-LSPDPDB6.mjs';import {b as b$3}from'./chunk-XAM3AXXK.mjs';import {d as d$4}from'./chunk-QMV2O57M.mjs';import {j,c,i,l,p,m,k,f as f$2,e as e$2,d as d$1,q,a as a$i}from'./chunk-6Z3GYFG5.mjs';import {c as c$8}from'./chunk-BROSGYL3.mjs';import {b,c as c$1}from'./chunk-DF2D7NE6.mjs';import {a as a$c,f as f$3}from'./chunk-ZQOR4LCM.mjs';import {f as f$4}from'./chunk-UZ672WDX.mjs';import {a as a$8,b as b$7}from'./chunk-4Y4WKIL5.mjs';import {a as a$d}from'./chunk-DIL5HL6K.mjs';import {b as b$a}from'./chunk-OQPYPKZV.mjs';import {a as a$3}from'./chunk-GMALMQWI.mjs';import {a}from'./chunk-USMC34OO.mjs';import {a as a$q}from'./chunk-Z4QTH4TB.mjs';import {b as b$9}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$p}from'./chunk-22MA6EYO.mjs';import {e,h,c as c$3,b as b$4,f,a as a$9,d as d$2,k as k$2}from'./chunk-RINS2TBF.mjs';import {a as a$n}from'./chunk-22VRCVTH.mjs';import {k as k$1,l as l$1,e as e$6}from'./chunk-TZGK36KC.mjs';import {e as e$5}from'./chunk-GQIS4QBN.mjs';import {a as a$l}from'./chunk-AI6WQPRX.mjs';import {a as a$h}from'./chunk-66CUIXA6.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {c as c$7}from'./chunk-HH4VLTF3.mjs';import {a as a$7}from'./chunk-4S4GGUSH.mjs';import {a as a$6}from'./chunk-B3EZOXNU.mjs';import {j as j$1,b as b$6,d as d$6,f as f$5}from'./chunk-KUDCYGII.mjs';import {d as d$5}from'./chunk-F7WPMQ3P.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {a as a$k,o,r,u,s,h as h$3,e as e$7}from'./chunk-PPHSLODC.mjs';import {c as c$4}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {c as c$6,a as a$j,e as e$4}from'./chunk-ETM4MNG4.mjs';import {m as m$1,h as h$2,j as j$2,i as i$1,b as b$8,a as a$o}from'./chunk-SD43KVTU.mjs';import {a as a$a}from'./chunk-JQQGRJ5J.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Me,{createContext,forwardRef,useContext,useMemo,useRef,useEffect,useCallback,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightFilledIcon}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/24';/**
1
+ import {a as a$b}from'./chunk-KT4FTBJ2.mjs';import {a as a$4,b as b$5,g,d,e as e$1,h as h$1}from'./chunk-PLRUMLNB.mjs';import {a as a$f}from'./chunk-AMW7LGCF.mjs';import {b as b$1,c as c$5}from'./chunk-TEQHGF4G.mjs';import {c as c$2,f as f$1,e as e$3,d as d$3}from'./chunk-D6AOHRAV.mjs';import {a as a$h}from'./chunk-WID7IWNC.mjs';import {a as a$n}from'./chunk-6HTOSJOJ.mjs';import {b as b$3}from'./chunk-64ZD4EKW.mjs';import {d as d$4}from'./chunk-VQ45RUYJ.mjs';import {j,c,i,l,p,m,k,f as f$2,e as e$2,d as d$1,q,a as a$j}from'./chunk-NWYRVUTX.mjs';import {c as c$8}from'./chunk-B3W7VMJR.mjs';import {b,c as c$1}from'./chunk-DF2D7NE6.mjs';import {a as a$c,f as f$3}from'./chunk-ZQOR4LCM.mjs';import {a as a$8,b as b$7}from'./chunk-DOFT4BQH.mjs';import {a as a$d}from'./chunk-DIL5HL6K.mjs';import {f as f$4}from'./chunk-CFDIUF4H.mjs';import {b as b$a}from'./chunk-ES3IQZSH.mjs';import {a as a$3}from'./chunk-D2NVLRIU.mjs';import {a}from'./chunk-USMC34OO.mjs';import {a as a$r}from'./chunk-FTV6OWMI.mjs';import {a as a$g}from'./chunk-5IC46G5J.mjs';import {b as b$9}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$q}from'./chunk-UQJB6AGO.mjs';import {e,h,c as c$3,b as b$4,f,a as a$9,d as d$2,k as k$2}from'./chunk-NYNS3UDR.mjs';import {a as a$o}from'./chunk-22VRCVTH.mjs';import {k as k$1,l as l$1,e as e$6}from'./chunk-OS6PVCFX.mjs';import {e as e$5}from'./chunk-A63HMTSM.mjs';import {a as a$m}from'./chunk-UR42GQO4.mjs';import {a as a$i}from'./chunk-66CUIXA6.mjs';import {a as a$1}from'./chunk-FDDB7QNQ.mjs';import {c as c$7}from'./chunk-QVFGEXDU.mjs';import {a as a$7}from'./chunk-3PBFSDMT.mjs';import {a as a$6}from'./chunk-LRFFL765.mjs';import {j as j$1,b as b$6,d as d$6,f as f$5}from'./chunk-NQVTVL24.mjs';import {d as d$5}from'./chunk-IIBBR266.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {a as a$l,o,r,u,s,h as h$3,e as e$7}from'./chunk-SCJ3RG7B.mjs';import {c as c$4}from'./chunk-PJINRIA6.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {c as c$6,a as a$k,e as e$4}from'./chunk-35AM4QEA.mjs';import {m as m$1,h as h$2,j as j$2,i as i$1,b as b$8,a as a$p}from'./chunk-TYOEGCPS.mjs';import {a as a$a}from'./chunk-JQQGRJ5J.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Me,{createContext,forwardRef,useContext,useMemo,useRef,useEffect,useCallback,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightFilledIcon}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/24';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,4 +7,4 @@ import {a as a$b}from'./chunk-KT4FTBJ2.mjs';import {a as a$4,b as b$5,g,d,e as e
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var Pe=createContext({}),Xe=j(c,function(e$1,t){return [e$1,t]=e(e$1,t,Pe),jsx(h.header,{className:"react-aria-Header",...e$1,ref:t,children:e$1.children})});var qe=createContext({});var mt=createContext(null),se=createContext(null),ft=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,mt);let o=useContext(se);return o?jsx(Ir,{state:o,props:e$1,listBoxRef:t}):jsx(i,{content:jsx(l,{...e$1}),children:n=>jsx(yo,{props:e$1,listBoxRef:t,collection:n})})});function yo({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:o}=useContext(p),n=b({...r,layoutDelegate:o});return jsx(Ir,{state:n,props:r,listBoxRef:e})}function Ir({state:r,props:e$2,listBoxRef:t}){[e$2,t]=e(e$2,t,b$1);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:l}=e$2,s=c$1(r,l),{collection:c,selectionManager:u}=s,a$5=!!o?.useDraggableCollectionState,d$1=!!o?.useDroppableCollectionState,{direction:y}=b$2(),{disabledBehavior:p$1,disabledKeys:M}=u,P=a({usage:"search",sensitivity:"base"}),{isVirtualized:m$1,layoutDelegate:b,dropTargetDelegate:T,CollectionRoot:v}=useContext(p),E=useMemo(()=>e$2.keyboardDelegate||new b$3({collection:c,collator:P,ref:t,disabledKeys:M,disabledBehavior:p$1,layout:n,orientation:i,direction:y,layoutDelegate:b}),[c,P,t,p$1,M,i,y,e$2.keyboardDelegate,n,b]),{listBoxProps:w}=c$2({...e$2,shouldSelectOnPressUp:a$5||e$2.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:m$1},s,t),H=useRef(a$5),f=useRef(d$1);useEffect(()=>{process.env.NODE_ENV!=="production"&&(H.current!==a$5&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),f.current!==d$1&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[a$5,d$1]);let C,O,N,g$1=false,x=null,S=useRef(null);if(a$5&&o){C=o.useDraggableCollectionState({collection:c,selectionManager:u,preview:o.renderDragPreview?S:void 0}),o.useDraggableCollection({},C,t);let Y=o.DragPreview;x=o.renderDragPreview?jsx(Y,{ref:S,children:o.renderDragPreview}):null;}if(d$1&&o){O=o.useDroppableCollectionState({collection:c,selectionManager:u});let Y=o.dropTargetDelegate||T||new o.ListDropTargetDelegate(c,t,{orientation:i,layout:n,direction:y});N=o.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:Y},O,t),g$1=O.isDropTarget({type:"root"});}let{focusProps:z,isFocused:_,isFocusVisible:B}=a$1(),R=s.collection.size===0,q={isDropTarget:g$1,isEmpty:R,isFocused:_,isFocusVisible:B,layout:e$2.layout||"stack",orientation:i,state:s},ae=c$3({...e$2,children:void 0,defaultClassName:"react-aria-ListBox",values:q}),oe=null;R&&e$2.renderEmptyState&&(oe=jsx("div",{role:"option",style:{display:"contents"},children:e$2.renderEmptyState(q)}));let J=a$2(e$2,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(J,ae,w,z,N?.collectionProps),ref:t,slot:e$2.slot||void 0,onScroll:e$2.onScroll,"data-drop-target":g$1||void 0,"data-empty":R||void 0,"data-focused":_||void 0,"data-focus-visible":B||void 0,"data-layout":e$2.layout||"stack","data-orientation":i,children:[jsx(b$4,{values:[[mt,e$2],[se,s],[a$4,{dragAndDropHooks:o,dragState:C,dropState:O}],[qe,{elementType:"div"}],[b$5,{render:Po}],[m,{name:"ListBoxSection",render:wr}]],children:jsx(g,{children:jsx(v,{collection:c,scrollRef:t,persistedKeys:e$1(u,o,O),renderDropIndicator:d(o,O)})})}),oe,x]})})}function wr(r,e,t,o="react-aria-ListBoxSection"){let n=useContext(se),{dragAndDropHooks:i,dropState:l}=useContext(a$4),{CollectionBranch:s}=useContext(p),[c,u]=f(),{headingProps:a,groupProps:d$1}=f$1({heading:u,"aria-label":r["aria-label"]??void 0}),y=c$3({...r,id:void 0,children:void 0,defaultClassName:o,values:void 0}),p$1=a$2(r,{global:true});return delete p$1.id,jsx(h.section,{...c$4(p$1,y,d$1),ref:e,children:jsx(Pe.Provider,{value:{...a,ref:c},children:jsx(s,{collection:n.collection,parent:t,renderDropIndicator:d(i,l)})})})}var gt=k(f$2,wr),yt=j(e$2,function(e,t,o){let n=a$5(t),i=useContext(se),{dragAndDropHooks:l,dragState:s,dropState:c}=useContext(a$4),u=s&&!(s.isDisabled||s.selectionManager.isDisabled(o.key)),{optionProps:a,labelProps:d,descriptionProps:y,...p}=e$3({key:o.key,"aria-label":e?.["aria-label"]},i,n),{hoverProps:M,isHovered:P}=a$6({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:m}=j$1(e),{focusProps:b}=a$7(e),T=null;s&&l&&(T=l.useDraggableItem({key:o.key,hasAction:p.hasAction},s,n));let v=null;c&&l&&(v=l.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,n));let E=s&&s.isDragging(o.key),w=c$3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:P,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:E,isDropTarget:v?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let H=e.href?h.a:h.div,f=a$2(e,{global:true});return delete f.id,delete f.onClick,e.href&&a.tabIndex==null&&(a.tabIndex=-1),jsx(H,{...c$4(f,w,a,M,m,b,T?.dragProps,v?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":E||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:d,label:d,description:y}}],[h$1,{isSelected:p.isSelected}]],children:w.children})})});function Po(r,e){e=a$5(e);let{dragAndDropHooks:t,dropState:o}=useContext(a$4),{dropIndicatorProps:n,isHidden:i,isDropTarget:l}=t.useDropIndicator(r,o,e);return i?null:jsx(xo,{...r,dropIndicatorProps:n,isDropTarget:l,ref:e})}function bo(r,e){let{dropIndicatorProps:t,isDropTarget:o,...n}=r,i=c$3({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(h.div,{...t,...i,role:"option",ref:e,"data-drop-target":o||void 0})})}var xo=forwardRef(bo);j(d$1,function(e,t,o){let n=useContext(se),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),y),...d,role:"option",ref:t,children:d.children})})]})});var Je=({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s}={})=>Object.values({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s});var Ti=a$a({defaultClassName:"_1fjxa6ld _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"},orientation:{vertical:"_1yep5z618m",horizontal:"_1yep5z618n"}},defaultVariants:{},compoundVariants:[]}),Fr="_1fjxa6la _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Br=a$a({defaultClassName:"_1fjxa6lb _1yep5z6ez _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6f2"}},defaultVariants:{},compoundVariants:[]}),Hr=a$a({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6ey _1yep5z6lq _1yep5z6lt _1yep5z6m6 _1yep5z6m5 _1yep5z6m3 _1yep5z6m0",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t _1yep5z615c _1yep5z615d _1yep5z615e"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z612t",false:"_1yep5z612s"},isDisabled:{true:"z9nup82 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),Nr="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",zr="_1fjxa6l1",_r="_1fjxa6l2",Kr="_1fjxa6l0";var Vr={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};function jr(r){let{onContextMenu:e}=r,t=useRef(false),{longPressProps:o}=a$q({onLongPressStart(){t.current=false;},onLongPress(n){t.current?t.current=false:e?.({target:n.target,x:n.x,y:n.y});}});return e?{contextMenuProps:c$4(h$3()?o:{},{onContextMenu(n){n.stopPropagation(),n.preventDefault(),t.current=true;let i=n.currentTarget.getBoundingClientRect();e({target:n.currentTarget,x:n.clientX-i.x,y:n.clientY-i.y});},onKeyDown(n){if(e$7()&&n.ctrlKey&&n.key==="Enter"){t.current=false;let i=n.currentTarget;n.stopPropagation(),setTimeout(()=>{if(t.current)t.current=false;else {let l=i.getBoundingClientRect();e({target:i,x:l.width/2,y:l.height/2});}},10);}}})}:{contextMenuProps:{}}}function Pt(r,e,t){let{type:o="menu",isDisabled:n,trigger:i="press"}=r,l=c$6(),{triggerProps:s,overlayProps:c}=a$p({type:o},e,t),u=(m,b,T="first")=>{if(!m||b.isDefaultPrevented())return false;e.toggle(T);},{keyboardProps:a}=j$1({isDisabled:n,shortcuts:{Enter:m=>u(i!=="longPress",m,"first")," ":m=>u(i!=="longPress",m,"first"),ArrowDown:m=>u(i!=="longPress",m,"first"),ArrowUp:m=>u(i!=="longPress",m,"last"),"Alt+Enter":m=>u(i==="longPress",m,"first"),"Alt+ ":m=>u(i==="longPress",m,"first"),"Alt+ArrowDown":m=>u(true,m,"first"),"Alt+ArrowUp":m=>u(true,m,"last")}}),d=b$9(Vr,"@react-aria/menu"),{longPressProps:y}=a$q({isDisabled:n||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),ref:t,onLongPressStart(){e.close();},onLongPress(){e.open("first");}}),p={preventFocusOnPress:true,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!n&&(a$k(m.target),e.open(m.pointerType==="virtual"?"first":null));},onPress(m){m.pointerType==="touch"&&!n&&(a$k(m.target),e.toggle());}};delete s.onPress;let{contextMenuProps:M}=jr({onContextMenu(m){let b=m.target.getBoundingClientRect();e.setPoint({x:b.x+m.x,y:b.y+m.y}),e.open();}});useEffect(()=>{if(e.isOpen&&i==="contextMenu"){let m=b=>{(b.button===2||b.button===0&&b.ctrlKey===true)&&j$2(b)===document.body&&e.close();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)}},[e,i]);let P;if(i==="press")P={...p,...a};else if(i==="longPress")P={...y,...a};else if(i==="contextMenu"){P=M;let{"aria-haspopup":m,"aria-expanded":b,"aria-controls":T,...v}=s;s=v;}return {menuTriggerProps:{...s,...P,id:l},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||true,onClose:e.close}}}var Ye=new WeakMap;function bt(r,e,t){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...l}=r;!r["aria-label"]&&!r["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=a$2(r,{labelable:true}),{listProps:c}=a$m({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return Ye.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:c$4(s,{onKeyDown:n,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{(u.key!=="Escape"||r.shouldUseVirtualFocus)&&c.onKeyDown?.(u);}})}}function xt(r$1,e,t){let{id:o$1,key:n,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s$1,"aria-haspopup":c,onPressStart:u,onPressUp:a,onPress:d,onPressChange:y,onPressEnd:p,onClick:M,onHoverStart:P,onHoverChange:m,onHoverEnd:b,onKeyDown:T,onKeyUp:v,onFocus:E,onFocusChange:w,onBlur:H,selectionManager:f=e.selectionManager}=r$1,C=!!c,O=C&&r$1["aria-expanded"]==="true",N=r$1.isDisabled??f.isDisabled(n),g=r$1.isSelected??f.isSelected(n),x=Ye.get(e),S=e.collection.getItem(n),z=r$1.onClose||x.onClose,_=o(),B=()=>{if(!C&&(S?.props?.onAction?S.props.onAction():r$1.onAction&&r$1.onAction(n),x.onAction)){let h=x.onAction;h(n,S?.value);}},R="menuitem";C||(f.selectionMode==="single"?R="menuitemradio":f.selectionMode==="multiple"&&(R="menuitemcheckbox"));let q=e$4([],t),ae=e$4([],t),oe=e$4([],t),J={id:o$1,"aria-disabled":N||void 0,role:R,"aria-label":r$1["aria-label"],"aria-labelledby":q,"aria-describedby":[r$1["aria-describedby"],ae,oe].filter(Boolean).join(" ")||void 0,"aria-controls":r$1["aria-controls"],"aria-haspopup":c,"aria-expanded":r$1["aria-expanded"]};if(f.selectionMode!=="none"&&!C&&(J["aria-checked"]=g),s$1){let h=Number(S?.index);J["aria-posinset"]=Number.isNaN(h)?void 0:h+1,J["aria-setsize"]=d$3(e.collection);}let Y=useRef(false),Re=h=>{y?.(h),Y.current=h;},Z=useRef(null),D=h=>{h.pointerType!=="keyboard"&&(Z.current={pointerType:h.pointerType}),h.pointerType==="mouse"&&(Y.current||h.target.click()),a?.(h);},de=h=>{M?.(h),B(),s(h,_,S.props.href,S?.props.routerOptions);let ce=Z.current?.pointerType==="keyboard"?Z.current?.key==="Enter"||f.selectionMode==="none"||f.isLink(n):f.selectionMode!=="multiple"||f.isLink(n);ce=l??i??ce,z&&!C&&ce&&z(),Z.current=null;},{itemProps:ne,isFocused:Ht}=d$4({id:o$1,selectionManager:f,key:n,ref:t,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:x.shouldUseVirtualFocus}),{pressProps:lo,isPressed:so}=d$5({onPressStart:u,onPress:d,onPressUp:D,onPressChange:Re,onPressEnd:p,isDisabled:N}),{hoverProps:ao}=a$6({isDisabled:N,onHoverStart(h){!b$6()&&!(O&&c)&&(f.setFocused(true),f.setFocusedKey(n)),P?.(h);},onHoverChange:m,onHoverEnd:b}),{keyboardProps:uo}=j$1({shortcuts:{" ":h=>{Z.current={pointerType:"keyboard",key:" "},j$2(h).click(),d$6("keyboard");},Enter:h=>{Z.current={pointerType:"keyboard",key:"Enter"};let ce=j$2(h);if(ce.tagName!=="A"){ce.click(),d$6("keyboard");return}return d$6("keyboard"),{shouldPreventDefault:false,shouldContinuePropagation:false}}},onKeyDown:T,onKeyUp:v}),{focusableProps:co}=c$7({onBlur:H,onFocus:E,onFocusChange:w},t),Nt=a$2(S?.props);delete Nt.id;let po=r(S?.props);return {menuItemProps:{...J,...c$4(Nt,po,C?{onFocus:ne.onFocus,"data-collection":ne["data-collection"],"data-key":ne["data-key"]}:ne,lo,ao,uo,co,x.shouldUseVirtualFocus||C?{onMouseDown:h=>h.preventDefault()}:void 0,N?void 0:{onClick:de}),tabIndex:ne.tabIndex!=null&&O&&!x.shouldUseVirtualFocus?-1:ne.tabIndex},labelProps:{id:q},descriptionProps:{id:ae},keyboardShortcutProps:{id:oe},isFocused:Ht,isFocusVisible:Ht&&f.isFocused&&b$6()&&!O,isSelected:g,isPressed:so,isDisabled:N}}function vt(r){let{heading:e,"aria-label":t}=r,o=e$4([!!e]);return {itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?o:void 0}}}var Ze=2,ho=50,Do=1e3,Wr=Math.PI/12;function Gr(r){let{menuRef:e,submenuRef:t,isOpen:o,isDisabled:n}=r,i=useRef(void 0),l=useRef(void 0),s=useRef(0),c=useRef(void 0),u$1=useRef(void 0),a=useRef(void 0),d=useRef(2),[y,p]=useState(false);e$6({ref:o?t:void 0,onResize:()=>{t.current&&(l.current=t.current.getBoundingClientRect(),a.current=void 0);}});let P=()=>{p(false),d.current=Ze,i.current=void 0;},m=f$5(),b=u(T=>{y&&T.preventDefault();});useEffect(()=>{y&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents="";},[e,y]),a$j(()=>{let T=t.current,v=e.current;if(n||!T||!o||m!=="pointer"||!v){P();return}l.current=T.getBoundingClientRect();let E=H=>{if(H.pointerType==="touch"||H.pointerType==="pen")return;let f=Date.now();if(f-s.current<ho)return;clearTimeout(c.current),clearTimeout(u$1.current);let{clientX:C,clientY:O}=H;if(!i.current){i.current={x:C,y:O};return}if(!l.current)return;if(a.current||(a.current=C>l.current.right?"left":"right"),C<v.getBoundingClientRect().left||C>v.getBoundingClientRect().right||O<v.getBoundingClientRect().top||O>v.getBoundingClientRect().bottom){P();return}let N=i.current.x,g=i.current.y,x=a.current==="right"?l.current.left-N:N-l.current.right,S=Math.atan2(g-l.current.top,x)+Wr,z=Math.atan2(g-l.current.bottom,x)-Wr,_=Math.atan2(g-O,a.current==="left"?-(C-N):C-N),B=_<S&&_>z;d.current=B?Math.min(d.current+1,Ze):Math.max(d.current-1,0),d.current>=Ze?p(true):p(false),s.current=f,i.current={x:C,y:O},B&&(c.current=setTimeout(()=>{P(),u$1.current=setTimeout(()=>{let R=a$o(v).elementFromPoint(C,O);R&&h$2(v,R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},Do));},w=b$8(v);return w.addEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.addEventListener("pointerdown",b,true),()=>{w.removeEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.removeEventListener("pointerdown",b,true),clearTimeout(c.current),clearTimeout(u$1.current),d.current=Ze;}},[n,o,e,m,p,t]);}function St(r,e,t){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=r,u=c$6(),a=c$6(),{direction:d}=b$2(),y=useRef(void 0),p=useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=void 0);},[y]),M=useCallback(f=>{p(),e.open(f);},[e,p]),P=useCallback(()=>{p(),e.close();},[e,p]);a$j(()=>()=>{p();},[p]);let{keyboardProps:m}=j$1({shortcuts:{ArrowLeft:f=>{if(!m$1(f.currentTarget))return false;if(d==="ltr"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$k(t.current);return}return false},ArrowRight:f=>{if(!m$1(f.currentTarget))return false;if(d==="rtl"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$k(t.current);return}return false},Escape:f=>{if(!m$1(f.currentTarget))return false;if(h$2(n.current,j$2(f))){P(),!c&&t.current&&a$k(t.current);return}return false}}}),b={id:a,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,...m}},{keyboardProps:T}=j$1({shortcuts:{ArrowRight:()=>{if(!l)if(d==="ltr"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$k(n.current);return}else if(e.isOpen){P();return}else return false;return false},ArrowLeft:()=>{if(!l)if(d==="rtl"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$k(n.current);return}else if(e.isOpen){P();return}else return false;return false}}}),v=f=>{!l&&(f.pointerType==="virtual"||f.pointerType==="keyboard")&&M("first");},E=f=>{!l&&(f.pointerType==="touch"||f.pointerType==="mouse")&&M();},w=f=>{l||(f&&!e.isOpen?y.current||(y.current=setTimeout(()=>{M();},s)):f||p());};a$l(o,"focusin",f=>{e.isOpen&&h$2(o.current,j$2(f))&&j$2(f)!==t.current&&P();});let H=f=>f!==t.current;return Gr({menuRef:o,submenuRef:n,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,id:u,"aria-controls":e.isOpen?a:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:v,onPress:E,onHoverChange:w,isOpen:e.isOpen},submenuProps:b,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:H}}}function Qe(r){let e=a$n(r),[t,o]=useState(null),[n,i]=useState([]),l=()=>{i([]),e.close();};return {focusStrategy:t,...e,open(u=null){o(u),e.open();},toggle(u=null){o(u),e.toggle();},close(){l();},expandedKeysStack:n,openSubmenu:(u,a)=>{i(d=>a>d.length?d:[...d.slice(0,a),u]);},closeSubmenu:(u,a)=>{i(d=>d[a]===u?d.slice(0,a):d);}}}function Ct(r,e){let{triggerKey:t}=r,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:l}=e,[s]=useState(o?.length),c=useMemo(()=>o[s]===t,[o,t,s]),[u,a]=useState(null),d=useCallback(M=>{a(M??null),n(t,s);},[n,s,t]),y=useCallback(()=>{a(null),i(t,s);},[i,s,t]),p=useCallback(M=>{a(M??null),c?y():d(M);},[y,d,c]);return useMemo(()=>({focusStrategy:u,isOpen:c,open:d,close:y,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:p,point:null,setPoint:()=>{}}),[c,d,y,l,u,p,s])}var ht=createContext({});forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,ht),jsx(h.kbd,{dir:"ltr",...e$1,ref:t})});var wo=createContext({}),ps=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,wo);let{children:o,level:n=3,className:i,...l}=e$1,s=h[`h${n}`];return jsx(s,{...l,ref:t,className:i??"react-aria-Heading",children:o})});var Dt=createContext(null);createContext(null);createContext(null);var Lt=createContext(null);var rt=createContext(null),ve=createContext(null),Le=createContext(null),tt=createContext(null);function Bo(r){let e=Qe(r),t=useRef(null),{menuTriggerProps:o,menuProps:n}=Pt({...r,type:"menu"},e,t),i=useRef(null);return k$2()?null:jsx(b$4,{values:[[rt,{...n,ref:i}],[Lt,e],[Le,e],[Dt,{trigger:"MenuTrigger",triggerRef:t,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"],offset:r.trigger==="contextMenu"?0:void 0}]],children:jsx(b$a,{...o,ref:t,isPressed:e.isOpen,children:r.children})})}var eo=createContext(null),Rt=class extends a$i{static type="submenutrigger";filter(e,t,o){let n=e.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}},Ho=k(Rt,(r,e,t)=>{let{CollectionBranch:o}=useContext(p),n=useContext(ve),i=useContext(Le),l=Ct({triggerKey:t.key},i),s=useRef(null),c=a$5(e),{parentMenuRef:u,shouldUseVirtualFocus:a}=useContext(eo),{submenuTriggerProps:d,submenuProps:y,popoverProps:p$1}=St({parentMenuRef:u,submenuRef:s,delay:r.delay,shouldUseVirtualFocus:a},l,c);return jsxs(b$4,{values:[[be,{...d,onAction:void 0,ref:c}],[rt,{ref:s,...y}],[Lt,l],[Dt,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":y["aria-labelledby"],...p$1}]],children:[jsx(o,{collection:n.collection,parent:t}),r.children[1]]})},r=>r.children[0]),No=forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,rt),jsx(i,{content:jsx(l,{...e$1}),children:o=>jsx(zo,{props:e$1,collection:o,menuRef:t})})});function zo({props:r,collection:e$1,menuRef:t}){[r,t]=e(r,t,b$1);let{filter:o,...n}=r,i=useMemo(()=>o?e$1.filter(o):e$1,[e$1,o]),l=a$b({...r,collection:i,children:void 0}),s=useContext(Le),{isVirtualized:c,CollectionRoot:u}=useContext(p),{menuProps:a}=bt({...r,isVirtualized:c,onClose:r.onClose||s?.close},l,t),d=c$3({...r,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),y=null;l.collection.size===0&&r.renderEmptyState&&(y=jsx("div",{role:"menuitem",style:{display:"contents"},children:r.renderEmptyState()}));let p$1=a$2(r,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(p$1,d,a),ref:t,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:r.onScroll,children:[jsx(b$4,{values:[[ve,l],[qe,{elementType:"div"}],[m,{name:"MenuSection",render:to}],[eo,{parentMenuRef:t,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect}],[b$1,null],[c$5,null],[tt,l.selectionManager],[Le,s??Qe({})]],children:jsx(g,{children:jsx(u,{collection:l.collection,persistedKeys:q(l.selectionManager.focusedKey),scrollRef:t})})}),y]})})}var Et=class extends f$3{parent;constructor(e,t){super(e.collection,t),this.parent=e;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function to(r,e,t,o="react-aria-MenuSection"){let n=useContext(ve),{CollectionBranch:i}=useContext(p),[l,s]=f(),{headingProps:c,groupProps:u}=vt({heading:s,"aria-label":t.props["aria-label"]??void 0}),a=c$3({...r,id:void 0,children:void 0,defaultClassName:o,className:t.props?.className,style:t.props?.style,values:void 0}),d=useContext(tt),y=a$c(r),p$1=r.selectionMode!=null?new Et(d,y):d,M=d$2(be)?.shouldCloseOnSelect,P=a$2(r,{global:true});return delete P.id,jsx(h.section,{...c$4(P,a,u),ref:e,children:jsx(b$4,{values:[[Pe,{...c,ref:l}],[tt,p$1],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect??M}]],children:jsx(i,{collection:n.collection,parent:t})})})}var Ot=k(f$2,to),be=createContext(null),At=j(e$2,function(e$1,t,o){[e$1,t]=e(e$1,t,be);let n=d$2(be)?.id,i=useContext(ve),l=a$5(t),s=useContext(tt),{isVirtualized:c}=useContext(p),{menuItemProps:u,labelProps:a,descriptionProps:d,keyboardShortcutProps:y,...p$1}=xt({...e$1,id:n,key:o.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:M,isHovered:P}=a$6({isDisabled:p$1.isDisabled}),m=c$3({...e$1,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...p$1,isHovered:P,isFocusVisible:p$1.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e$1["aria-haspopup"],isOpen:e$1["aria-expanded"]==="true"}}),b=e$1.href?h.a:h.div,T=a$2(e$1,{global:true});return delete T.id,delete T.onClick,jsx(b,{...c$4(T,m,u,M),ref:l,"data-disabled":p$1.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p$1.isFocused||void 0,"data-focus-visible":p$1.isFocusVisible||void 0,"data-pressed":p$1.isPressed||void 0,"data-selected":p$1.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e$1["aria-haspopup"]||void 0,"data-open":e$1["aria-expanded"]==="true"||void 0,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:a,label:a,description:d}}],[ht,y],[h$1,{isSelected:p$1.isSelected}]],children:m.children})})});j(d$1,function(e,t,o){let n=useContext(ve),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),y),...d,role:"menuitem",ref:t,children:d.children})})]})});var kt=Me.forwardRef(({section:r,isFirstCollectionItem:e,showSectionHeader:t,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:l$1,componentName:s="ListBox",selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1,...M},P)=>{let{isVirtualized:m}=useContext(p),b=o?.(r),T=s==="ListBox"?gt:Ot,v=c==null?{}:{selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1};return jsxs(T,{id:r.id,"aria-label":r.title,...v,className:a$e(`BaselineUI-${s}-Section`,zr,m&&!e&&_r,typeof l$1=="function"?l$1(r):l$1),style:typeof i=="function"?i(r):i,ref:P,children:[t?b?jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:b}):jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:jsx(a$d,{className:a$e(Nr,`BaselineUI-${s}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:r.title})}):null,jsx(l,{items:r.children,dependencies:Je(M),children:E=>jsx(ot,{componentName:s,item:E,...M},E.id)})]})});kt.displayName="ListSection";var Uo=({componentName:r})=>{let{direction:e}=b$2();return jsx(a$d,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${r}-SubmenuChevron`,style:e==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},Wo=({item:r,isSelected:e,isHovered:t,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:l,componentName:s="ListBox",hasSubmenu:c=false})=>{let u=r.icon,a=l!=="none",d=r.keyboardShortcut??r.description;return jsxs(a$d,{display:"flex",alignItems:"center",gap:"lg",className:a$e(Hr({isHovered:t,isFocused:o,isDisabled:n}),`BaselineUI-${s}-OptionDefault`),children:[jsxs(a$d,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[a&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${s}-SelectionIndicator`,children:e?jsx(CheckmarkIcon,{size:24}):null}):null,a&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:c$8({isSelected:e,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:e?jsx(CheckmarkIcon$1,{size:12}):null})}):null,u?jsx(u,{size:24}):null,jsx(b$7,{slot:"label",elementType:"span",children:r.label})]}),c?jsx(Uo,{componentName:s}):d?jsx(b$7,{slot:"description",className:a$e(Br({isDisabled:n}),`BaselineUI-${s}-OptionDescription`),children:d}):null]})},ot=Me.forwardRef(({item:r,optionStyle:e,optionClassName:t,renderOption:o,componentName:n="ListBox",...i},l)=>{let{onPress:s,onKeyDown:c}=useContext(no);return jsx(n==="ListBox"?yt:At,{...c$4(a$f(i),{onPress:a=>s?.(a,r.id),onKeyDown:c?a=>{c(a,r.id),a.continuePropagation();}:void 0}),id:r.id,value:r,className:a=>a$e(Kr,`BaselineUI-${n}-Option`,typeof t=="function"?t(r,a):t),style:a=>typeof e=="function"?e(r,a):e,textValue:r.label,ref:l,children:a=>o?o(r,a):jsx(Wo,{componentName:n,...a,item:r})})});ot.displayName="ListOption";var io=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),no=Me.createContext({}),Xo=Me.forwardRef(({withSectionHeaderPadding:r=false,showSectionHeader:e=false,renderSectionHeader:t,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:l,renderOption:s,className:c,dragAndDropHooks:u,listBoxHandle:a,"data-block-id":d,"data-block-class":y,...p$1},M)=>{let P=a$5(M),m=Me.useRef(false),b=Me.useRef(null),T=useContext(se),{isVirtualized:v,layoutDelegate:E}=useContext(p);useEffect(()=>{T&&(s||o||n)&&console.warn("ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[T,s,o,n,i,l,t]),a$g({ref:P,isDisabled:!u});let w=useCallback(g=>[...P.current?.querySelectorAll('[role="option"][data-key]')??[]].find(S=>S.dataset.key===String(g)),[P]);useEffect(()=>{if(!v)return;let g=P.current,x=g?.ownerDocument,S=x?.defaultView;if(g==null||x==null||S==null)return;let z=()=>{let D=f$4(g);return D==null||D===x.body||D===x.documentElement},_=()=>g.querySelector('[role="option"][tabindex="0"]')??g.querySelector('[role="option"][data-focused="true"]'),B=()=>{let D=f$4(g);return D!=null&&h$2(g,D)},R=D=>D.composedPath().some(de=>de instanceof S.Node&&h$2(g,de)),q=()=>{m.current=false;},ae=()=>{b.current!=null&&S.cancelAnimationFrame(b.current),b.current=S.requestAnimationFrame(()=>{if(b.current=null,B())return;if(!z()){q();return}let D=_();D?.focus({preventScroll:true});});},oe=D=>{io.has(D.key)&&(m.current=true);},J=D=>{!io.has(D.key)||!z()||!m.current||ae();},Y=D=>{R(D)||B()||q();},Re=D=>{R(D)||q();},Z=new MutationObserver(D=>{D.some(({addedNodes:de,removedNodes:ne})=>de.length>0||ne.length>0)&&m.current&&ae();});return g.addEventListener("keydown",oe),x.addEventListener("keydown",J,true),x.addEventListener("focusin",Y,true),x.addEventListener("pointerdown",Re,true),Z.observe(g,{childList:true,subtree:true}),()=>{g.removeEventListener("keydown",oe),x.removeEventListener("keydown",J,true),x.removeEventListener("focusin",Y,true),x.removeEventListener("pointerdown",Re,true),Z.disconnect(),b.current!=null&&S.cancelAnimationFrame(b.current),q(),b.current=null;}},[v,P]),useEffect(()=>{let g=P.current,x=g?.ownerDocument.defaultView;if(!v||!g||!x)return;let S=null,z=()=>{let R=f$4(g);return R instanceof x.HTMLElement&&R.getAttribute("role")==="option"&&h$2(g,R)?R:null},_=()=>z()?(S=x.requestAnimationFrame(()=>{let R=z();R&&e$5(g,R);}),true):false,B=()=>{_()&&g.removeEventListener("focusin",B);};return _()||g.addEventListener("focusin",B),()=>{g.removeEventListener("focusin",B),S!=null&&x.cancelAnimationFrame(S);}},[v,P]);let H=Me.useRef(null),f=useCallback(()=>{let g=H.current;g&&(g.ownerWindow.cancelAnimationFrame(g.frameId),H.current=null);},[]);useEffect(()=>f,[f]);let C=useCallback((g,x)=>{if(f(),!P.current)return;let S=()=>{let _=w(g);if(_)return _.scrollIntoView({block:"nearest",inline:"nearest",...x}),true;if(v&&E){let B=E.getItemRect(g);return B?(E.virtualizer.delegate.setVisibleRect(B),true):false}return false};if(S())return;let z=P.current.ownerDocument?.defaultView;z&&(H.current={ownerWindow:z,frameId:z.requestAnimationFrame(()=>{H.current=null,S();})});},[f,w,v,E,P]);useImperativeHandle(a,()=>({scrollIntoView:C,setFocusedKey:g=>{let x=w(g);!P.current||!x||(x.focus(),C(g));}}),[C,w,P]);let O={renderOption:s,optionClassName:n,optionStyle:o,renderSectionHeader:t,sectionClassName:l,sectionStyle:i,showSectionHeader:e,withSectionHeaderPadding:r},N=p$1.items?.[0]?.id;return jsx(ft,{...p$1,dependencies:[...p$1.dependencies??[],N,...Je(O)],"data-block-id":d,"data-block-class":y,dragAndDropHooks:u,ref:P,className:a$e(Fr,"BaselineUI-ListBox",c),children:g=>jsx($o,{item:g,isFirstCollectionItem:N===g.id,...O},g.id)})});Xo.displayName="UNSAFE_ListBox";var qo=Me.createContext({}),$o=r=>{let e=useContext(qo),{item:t,isFirstCollectionItem:o,id:n,value:i,...l}={...e,...r};return a$h(t,"Item is required"),"children"in t?jsx(kt,{section:t,componentName:"ListBox",isFirstCollectionItem:o,...l}):jsx(ot,{item:t,componentName:"ListBox",...l})};export{mt as a,se as b,Pt as c,Je as d,Ti as e,wo as f,ps as g,Dt as h,Lt as i,Bo as j,Ho as k,No as l,kt as m,Wo as n,ot as o,no as p,Xo as q,$o as r};
10
+ var Pe=createContext({}),Xe=j(c,function(e$1,t){return [e$1,t]=e(e$1,t,Pe),jsx(h.header,{className:"react-aria-Header",...e$1,ref:t,children:e$1.children})});var qe=createContext({});var mt=createContext(null),se=createContext(null),ft=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,mt);let o=useContext(se);return o?jsx(wr,{state:o,props:e$1,listBoxRef:t}):jsx(i,{content:jsx(l,{...e$1}),children:n=>jsx(Po,{props:e$1,listBoxRef:t,collection:n})})});function Po({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:o}=useContext(p),n=b({...r,layoutDelegate:o});return jsx(wr,{state:n,props:r,listBoxRef:e})}function wr({state:r,props:e$2,listBoxRef:t}){[e$2,t]=e(e$2,t,b$1);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:l}=e$2,s=c$1(r,l),{collection:c,selectionManager:u}=s,a$5=!!o?.useDraggableCollectionState,d$1=!!o?.useDroppableCollectionState,{direction:y}=b$2(),{disabledBehavior:p$1,disabledKeys:M}=u,P=a({usage:"search",sensitivity:"base"}),{isVirtualized:m$1,layoutDelegate:b,dropTargetDelegate:T,CollectionRoot:v}=useContext(p),E=useMemo(()=>e$2.keyboardDelegate||new b$3({collection:c,collator:P,ref:t,disabledKeys:M,disabledBehavior:p$1,layout:n,orientation:i,direction:y,layoutDelegate:b}),[c,P,t,p$1,M,i,y,e$2.keyboardDelegate,n,b]),{listBoxProps:w}=c$2({...e$2,shouldSelectOnPressUp:a$5||e$2.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:m$1},s,t),H=useRef(a$5),f=useRef(d$1);useEffect(()=>{process.env.NODE_ENV!=="production"&&(H.current!==a$5&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),f.current!==d$1&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[a$5,d$1]);let C,O,N,g$1=false,x=null,S=useRef(null);if(a$5&&o){C=o.useDraggableCollectionState({collection:c,selectionManager:u,preview:o.renderDragPreview?S:void 0}),o.useDraggableCollection({},C,t);let Y=o.DragPreview;x=o.renderDragPreview?jsx(Y,{ref:S,children:o.renderDragPreview}):null;}if(d$1&&o){O=o.useDroppableCollectionState({collection:c,selectionManager:u});let Y=o.dropTargetDelegate||T||new o.ListDropTargetDelegate(c,t,{orientation:i,layout:n,direction:y});N=o.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:Y},O,t),g$1=O.isDropTarget({type:"root"});}let{focusProps:z,isFocused:_,isFocusVisible:B}=a$1(),R=s.collection.size===0,q={isDropTarget:g$1,isEmpty:R,isFocused:_,isFocusVisible:B,layout:e$2.layout||"stack",orientation:i,state:s},ae=c$3({...e$2,children:void 0,defaultClassName:"react-aria-ListBox",values:q}),oe=null;R&&e$2.renderEmptyState&&(oe=jsx("div",{role:"option",style:{display:"contents"},children:e$2.renderEmptyState(q)}));let J=a$2(e$2,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(J,ae,w,z,N?.collectionProps),ref:t,slot:e$2.slot||void 0,onScroll:e$2.onScroll,"data-drop-target":g$1||void 0,"data-empty":R||void 0,"data-focused":_||void 0,"data-focus-visible":B||void 0,"data-layout":e$2.layout||"stack","data-orientation":i,children:[jsx(b$4,{values:[[mt,e$2],[se,s],[a$4,{dragAndDropHooks:o,dragState:C,dropState:O}],[qe,{elementType:"div"}],[b$5,{render:bo}],[m,{name:"ListBoxSection",render:kr}]],children:jsx(g,{children:jsx(v,{collection:c,scrollRef:t,persistedKeys:e$1(u,o,O),renderDropIndicator:d(o,O)})})}),oe,x]})})}function kr(r,e,t,o="react-aria-ListBoxSection"){let n=useContext(se),{dragAndDropHooks:i,dropState:l}=useContext(a$4),{CollectionBranch:s}=useContext(p),[c,u]=f(),{headingProps:a,groupProps:d$1}=f$1({heading:u,"aria-label":r["aria-label"]??void 0}),y=c$3({...r,id:void 0,children:void 0,defaultClassName:o,values:void 0}),p$1=a$2(r,{global:true});return delete p$1.id,jsx(h.section,{...c$4(p$1,y,d$1),ref:e,children:jsx(Pe.Provider,{value:{...a,ref:c},children:jsx(s,{collection:n.collection,parent:t,renderDropIndicator:d(i,l)})})})}var gt=k(f$2,kr),yt=j(e$2,function(e,t,o){let n=a$5(t),i=useContext(se),{dragAndDropHooks:l,dragState:s,dropState:c}=useContext(a$4),u=s&&!(s.isDisabled||s.selectionManager.isDisabled(o.key)),{optionProps:a,labelProps:d,descriptionProps:y,...p}=e$3({key:o.key,"aria-label":e?.["aria-label"]},i,n),{hoverProps:M,isHovered:P}=a$6({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:m}=j$1(e),{focusProps:b}=a$7(e),T=null;s&&l&&(T=l.useDraggableItem({key:o.key,hasAction:p.hasAction},s,n));let v=null;c&&l&&(v=l.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,n));let E=s&&s.isDragging(o.key),w=c$3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:P,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:E,isDropTarget:v?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let H=e.href?h.a:h.div,f=a$2(e,{global:true});return delete f.id,delete f.onClick,e.href&&a.tabIndex==null&&(a.tabIndex=-1),jsx(H,{...c$4(f,w,a,M,m,b,T?.dragProps,v?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":E||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:d,label:d,description:y}}],[h$1,{isSelected:p.isSelected}]],children:w.children})})});function bo(r,e){e=a$5(e);let{dragAndDropHooks:t,dropState:o}=useContext(a$4),{dropIndicatorProps:n,isHidden:i,isDropTarget:l}=t.useDropIndicator(r,o,e);return i?null:jsx(vo,{...r,dropIndicatorProps:n,isDropTarget:l,ref:e})}function xo(r,e){let{dropIndicatorProps:t,isDropTarget:o,...n}=r,i=c$3({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(h.div,{...t,...i,role:"option",ref:e,"data-drop-target":o||void 0})})}var vo=forwardRef(xo);j(d$1,function(e,t,o){let n=useContext(se),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),y),...d,role:"option",ref:t,children:d.children})})]})});var Je=({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s}={})=>Object.values({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s});var Ci=a$a({defaultClassName:"_1fjxa6ld _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"},orientation:{vertical:"_1yep5z618m",horizontal:"_1yep5z618n"}},defaultVariants:{},compoundVariants:[]}),Br="_1fjxa6la _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Hr=a$a({defaultClassName:"_1fjxa6lb _1yep5z6ez _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6f2"}},defaultVariants:{},compoundVariants:[]}),Nr=a$a({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6ey _1yep5z6lq _1yep5z6lt _1yep5z6m6 _1yep5z6m5 _1yep5z6m3 _1yep5z6m0",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t _1yep5z615c _1yep5z615d _1yep5z615e"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z612t",false:"_1yep5z612s"},isDisabled:{true:"z9nup82 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),zr="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",_r="_1fjxa6l1",Kr="_1fjxa6l2",Vr="_1fjxa6l0";var jr={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};function Ur(r){let{onContextMenu:e}=r,t=useRef(false),{longPressProps:o}=a$r({onLongPressStart(){t.current=false;},onLongPress(n){t.current?t.current=false:e?.({target:n.target,x:n.x,y:n.y});}});return e?{contextMenuProps:c$4(h$3()?o:{},{onContextMenu(n){n.stopPropagation(),n.preventDefault(),t.current=true;let i=n.currentTarget.getBoundingClientRect();e({target:n.currentTarget,x:n.clientX-i.x,y:n.clientY-i.y});},onKeyDown(n){if(e$7()&&n.ctrlKey&&n.key==="Enter"){t.current=false;let i=n.currentTarget;n.stopPropagation(),setTimeout(()=>{if(t.current)t.current=false;else {let l=i.getBoundingClientRect();e({target:i,x:l.width/2,y:l.height/2});}},10);}}})}:{contextMenuProps:{}}}function Pt(r,e,t){let{type:o="menu",isDisabled:n,trigger:i="press"}=r,l=c$6(),{triggerProps:s,overlayProps:c}=a$q({type:o},e,t),u=(m,b,T="first")=>{if(!m||b.isDefaultPrevented())return false;e.toggle(T);},{keyboardProps:a}=j$1({isDisabled:n,shortcuts:{Enter:m=>u(i!=="longPress",m,"first")," ":m=>u(i!=="longPress",m,"first"),ArrowDown:m=>u(i!=="longPress",m,"first"),ArrowUp:m=>u(i!=="longPress",m,"last"),"Alt+Enter":m=>u(i==="longPress",m,"first"),"Alt+ ":m=>u(i==="longPress",m,"first"),"Alt+ArrowDown":m=>u(true,m,"first"),"Alt+ArrowUp":m=>u(true,m,"last")}}),d=b$9(jr,"@react-aria/menu"),{longPressProps:y}=a$r({isDisabled:n||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),ref:t,onLongPressStart(){e.close();},onLongPress(){e.open("first");}}),p={preventFocusOnPress:true,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!n&&(a$l(m.target),e.open(m.pointerType==="virtual"?"first":null));},onPress(m){m.pointerType==="touch"&&!n&&(a$l(m.target),e.toggle());}};delete s.onPress;let{contextMenuProps:M}=Ur({onContextMenu(m){let b=m.target.getBoundingClientRect();e.setPoint({x:b.x+m.x,y:b.y+m.y}),e.open();}});useEffect(()=>{if(e.isOpen&&i==="contextMenu"){let m=b=>{(b.button===2||b.button===0&&b.ctrlKey===true)&&j$2(b)===document.body&&e.close();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)}},[e,i]);let P;if(i==="press")P={...p,...a};else if(i==="longPress")P={...y,...a};else if(i==="contextMenu"){P=M;let{"aria-haspopup":m,"aria-expanded":b,"aria-controls":T,...v}=s;s=v;}return {menuTriggerProps:{...s,...P,id:l},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||true,onClose:e.close}}}var Ye=new WeakMap;function bt(r,e,t){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...l}=r;!r["aria-label"]&&!r["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=a$2(r,{labelable:true}),{listProps:c}=a$n({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return Ye.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:c$4(s,{onKeyDown:n,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{(u.key!=="Escape"||r.shouldUseVirtualFocus)&&c.onKeyDown?.(u);}})}}function xt(r$1,e,t){let{id:o$1,key:n,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s$1,"aria-haspopup":c,onPressStart:u,onPressUp:a,onPress:d,onPressChange:y,onPressEnd:p,onClick:M,onHoverStart:P,onHoverChange:m,onHoverEnd:b,onKeyDown:T,onKeyUp:v,onFocus:E,onFocusChange:w,onBlur:H,selectionManager:f=e.selectionManager}=r$1,C=!!c,O=C&&r$1["aria-expanded"]==="true",N=r$1.isDisabled??f.isDisabled(n),g=r$1.isSelected??f.isSelected(n),x=Ye.get(e),S=e.collection.getItem(n),z=r$1.onClose||x.onClose,_=o(),B=()=>{if(!C&&(S?.props?.onAction?S.props.onAction():r$1.onAction&&r$1.onAction(n),x.onAction)){let h=x.onAction;h(n,S?.value);}},R="menuitem";C||(f.selectionMode==="single"?R="menuitemradio":f.selectionMode==="multiple"&&(R="menuitemcheckbox"));let q=e$4([],t),ae=e$4([],t),oe=e$4([],t),J={id:o$1,"aria-disabled":N||void 0,role:R,"aria-label":r$1["aria-label"],"aria-labelledby":q,"aria-describedby":[r$1["aria-describedby"],ae,oe].filter(Boolean).join(" ")||void 0,"aria-controls":r$1["aria-controls"],"aria-haspopup":c,"aria-expanded":r$1["aria-expanded"]};if(f.selectionMode!=="none"&&!C&&(J["aria-checked"]=g),s$1){let h=Number(S?.index);J["aria-posinset"]=Number.isNaN(h)?void 0:h+1,J["aria-setsize"]=d$3(e.collection);}let Y=useRef(false),Re=h=>{y?.(h),Y.current=h;},Z=useRef(null),L=h=>{h.pointerType!=="keyboard"&&(Z.current={pointerType:h.pointerType}),h.pointerType==="mouse"&&(Y.current||h.target.click()),a?.(h);},de=h=>{M?.(h),B(),s(h,_,S.props.href,S?.props.routerOptions);let ce=Z.current?.pointerType==="keyboard"?Z.current?.key==="Enter"||f.selectionMode==="none"||f.isLink(n):f.selectionMode!=="multiple"||f.isLink(n);ce=l??i??ce,z&&!C&&ce&&z(),Z.current=null;},{itemProps:ne,isFocused:Ht}=d$4({id:o$1,selectionManager:f,key:n,ref:t,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:x.shouldUseVirtualFocus}),{pressProps:so,isPressed:ao}=d$5({onPressStart:u,onPress:d,onPressUp:L,onPressChange:Re,onPressEnd:p,isDisabled:N}),{hoverProps:uo}=a$6({isDisabled:N,onHoverStart(h){!b$6()&&!(O&&c)&&(f.setFocused(true),f.setFocusedKey(n)),P?.(h);},onHoverChange:m,onHoverEnd:b}),{keyboardProps:co}=j$1({shortcuts:{" ":h=>{Z.current={pointerType:"keyboard",key:" "},j$2(h).click(),d$6("keyboard");},Enter:h=>{Z.current={pointerType:"keyboard",key:"Enter"};let ce=j$2(h);if(ce.tagName!=="A"){ce.click(),d$6("keyboard");return}return d$6("keyboard"),{shouldPreventDefault:false,shouldContinuePropagation:false}}},onKeyDown:T,onKeyUp:v}),{focusableProps:po}=c$7({onBlur:H,onFocus:E,onFocusChange:w},t),Nt=a$2(S?.props);delete Nt.id;let mo=r(S?.props);return {menuItemProps:{...J,...c$4(Nt,mo,C?{onFocus:ne.onFocus,"data-collection":ne["data-collection"],"data-key":ne["data-key"]}:ne,so,uo,co,po,x.shouldUseVirtualFocus||C?{onMouseDown:h=>h.preventDefault()}:void 0,N?void 0:{onClick:de}),tabIndex:ne.tabIndex!=null&&O&&!x.shouldUseVirtualFocus?-1:ne.tabIndex},labelProps:{id:q},descriptionProps:{id:ae},keyboardShortcutProps:{id:oe},isFocused:Ht,isFocusVisible:Ht&&f.isFocused&&b$6()&&!O,isSelected:g,isPressed:ao,isDisabled:N}}function vt(r){let{heading:e,"aria-label":t}=r,o=e$4([!!e]);return {itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?o:void 0}}}var Ze=2,Lo=50,Do=1e3,Gr=Math.PI/12;function Xr(r){let{menuRef:e,submenuRef:t,isOpen:o,isDisabled:n}=r,i=useRef(void 0),l=useRef(void 0),s=useRef(0),c=useRef(void 0),u$1=useRef(void 0),a=useRef(void 0),d=useRef(2),[y,p]=useState(false);e$6({ref:o?t:void 0,onResize:()=>{t.current&&(l.current=t.current.getBoundingClientRect(),a.current=void 0);}});let P=()=>{p(false),d.current=Ze,i.current=void 0;},m=f$5(),b=u(T=>{y&&T.preventDefault();});useEffect(()=>{y&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents="";},[e,y]),a$k(()=>{let T=t.current,v=e.current;if(n||!T||!o||m!=="pointer"||!v){P();return}l.current=T.getBoundingClientRect();let E=H=>{if(H.pointerType==="touch"||H.pointerType==="pen")return;let f=Date.now();if(f-s.current<Lo)return;clearTimeout(c.current),clearTimeout(u$1.current);let{clientX:C,clientY:O}=H;if(!i.current){i.current={x:C,y:O};return}if(!l.current)return;if(a.current||(a.current=C>l.current.right?"left":"right"),C<v.getBoundingClientRect().left||C>v.getBoundingClientRect().right||O<v.getBoundingClientRect().top||O>v.getBoundingClientRect().bottom){P();return}let N=i.current.x,g=i.current.y,x=a.current==="right"?l.current.left-N:N-l.current.right,S=Math.atan2(g-l.current.top,x)+Gr,z=Math.atan2(g-l.current.bottom,x)-Gr,_=Math.atan2(g-O,a.current==="left"?-(C-N):C-N),B=_<S&&_>z;d.current=B?Math.min(d.current+1,Ze):Math.max(d.current-1,0),d.current>=Ze?p(true):p(false),s.current=f,i.current={x:C,y:O},B&&(c.current=setTimeout(()=>{P(),u$1.current=setTimeout(()=>{let R=a$p(v).elementFromPoint(C,O);R&&h$2(v,R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},Do));},w=b$8(v);return w.addEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.addEventListener("pointerdown",b,true),()=>{w.removeEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.removeEventListener("pointerdown",b,true),clearTimeout(c.current),clearTimeout(u$1.current),d.current=Ze;}},[n,o,e,m,p,t]);}function St(r,e,t){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=r,u=c$6(),a=c$6(),{direction:d}=b$2(),y=useRef(void 0),p=useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=void 0);},[y]),M=useCallback(f=>{p(),e.open(f);},[e,p]),P=useCallback(()=>{p(),e.close();},[e,p]);a$k(()=>()=>{p();},[p]);let{keyboardProps:m}=j$1({shortcuts:{ArrowLeft:f=>{if(!m$1(f.currentTarget))return false;if(d==="ltr"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false},ArrowRight:f=>{if(!m$1(f.currentTarget))return false;if(d==="rtl"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false},Escape:f=>{if(!m$1(f.currentTarget))return false;if(h$2(n.current,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false}}}),b={id:a,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,...m}},{keyboardProps:T}=j$1({shortcuts:{ArrowRight:()=>{if(!l)if(d==="ltr"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$l(n.current);return}else if(e.isOpen){P();return}else return false;return false},ArrowLeft:()=>{if(!l)if(d==="rtl"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$l(n.current);return}else if(e.isOpen){P();return}else return false;return false}}}),v=f=>{!l&&(f.pointerType==="virtual"||f.pointerType==="keyboard")&&M("first");},E=f=>{!l&&(f.pointerType==="touch"||f.pointerType==="mouse")&&M();},w=f=>{l||(f&&!e.isOpen?y.current||(y.current=setTimeout(()=>{M();},s)):f||p());};a$m(o,"focusin",f=>{e.isOpen&&h$2(o.current,j$2(f))&&j$2(f)!==t.current&&P();});let H=f=>f!==t.current;return Xr({menuRef:o,submenuRef:n,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,id:u,"aria-controls":e.isOpen?a:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:v,onPress:E,onHoverChange:w,isOpen:e.isOpen},submenuProps:b,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:H}}}function Qe(r){let e=a$o(r),[t,o]=useState(null),[n,i]=useState([]),l=()=>{i([]),e.close();};return {focusStrategy:t,...e,open(u=null){o(u),e.open();},toggle(u=null){o(u),e.toggle();},close(){l();},expandedKeysStack:n,openSubmenu:(u,a)=>{i(d=>a>d.length?d:[...d.slice(0,a),u]);},closeSubmenu:(u,a)=>{i(d=>d[a]===u?d.slice(0,a):d);}}}function Ct(r,e){let{triggerKey:t}=r,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:l}=e,[s]=useState(o?.length),c=useMemo(()=>o[s]===t,[o,t,s]),[u,a]=useState(null),d=useCallback(M=>{a(M??null),n(t,s);},[n,s,t]),y=useCallback(()=>{a(null),i(t,s);},[i,s,t]),p=useCallback(M=>{a(M??null),c?y():d(M);},[y,d,c]);return useMemo(()=>({focusStrategy:u,isOpen:c,open:d,close:y,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:p,point:null,setPoint:()=>{}}),[c,d,y,l,u,p,s])}var ht=createContext({});forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,ht),jsx(h.kbd,{dir:"ltr",...e$1,ref:t})});var ko=createContext({}),ms=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,ko);let{children:o,level:n=3,className:i,...l}=e$1,s=h[`h${n}`];return jsx(s,{...l,ref:t,className:i??"react-aria-Heading",children:o})});var Lt=createContext(null);createContext(null);createContext(null);var Dt=createContext(null);var rt=createContext(null),ve=createContext(null),De=createContext(null),tt=createContext(null);function Ho(r){let e=Qe(r),t=useRef(null),{menuTriggerProps:o,menuProps:n}=Pt({...r,type:"menu"},e,t),i=useRef(null);return k$2()?null:jsx(b$4,{values:[[rt,{...n,ref:i}],[Dt,e],[De,e],[Lt,{trigger:"MenuTrigger",triggerRef:t,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"],offset:r.trigger==="contextMenu"?0:void 0}]],children:jsx(b$a,{...o,ref:t,isPressed:e.isOpen,children:r.children})})}var to=createContext(null),Rt=class extends a$j{static type="submenutrigger";filter(e,t,o){let n=e.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}},No=k(Rt,(r,e,t)=>{let{CollectionBranch:o}=useContext(p),n=useContext(ve),i=useContext(De),l=Ct({triggerKey:t.key},i),s=useRef(null),c=a$5(e),{parentMenuRef:u,shouldUseVirtualFocus:a}=useContext(to),{submenuTriggerProps:d,submenuProps:y,popoverProps:p$1}=St({parentMenuRef:u,submenuRef:s,delay:r.delay,shouldUseVirtualFocus:a},l,c);return jsxs(b$4,{values:[[be,{...d,onAction:void 0,ref:c}],[rt,{ref:s,...y}],[Dt,l],[Lt,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":y["aria-labelledby"],...p$1}]],children:[jsx(o,{collection:n.collection,parent:t}),r.children[1]]})},r=>r.children[0]),zo=forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,rt),jsx(i,{content:jsx(l,{...e$1}),children:o=>jsx(_o,{props:e$1,collection:o,menuRef:t})})});function _o({props:r,collection:e$1,menuRef:t}){[r,t]=e(r,t,b$1);let{filter:o,...n}=r,i=useMemo(()=>o?e$1.filter(o):e$1,[e$1,o]),l=a$b({...r,collection:i,children:void 0}),s=useContext(De),{isVirtualized:c,CollectionRoot:u}=useContext(p),{menuProps:a}=bt({...r,isVirtualized:c,onClose:r.onClose||s?.close},l,t),d=c$3({...r,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),y=null;l.collection.size===0&&r.renderEmptyState&&(y=jsx("div",{role:"menuitem",style:{display:"contents"},children:r.renderEmptyState()}));let p$1=a$2(r,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(p$1,d,a),ref:t,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:r.onScroll,children:[jsx(b$4,{values:[[ve,l],[qe,{elementType:"div"}],[m,{name:"MenuSection",render:ro}],[to,{parentMenuRef:t,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect}],[b$1,null],[c$5,null],[tt,l.selectionManager],[De,s??Qe({})]],children:jsx(g,{children:jsx(u,{collection:l.collection,persistedKeys:q(l.selectionManager.focusedKey),scrollRef:t})})}),y]})})}var Et=class extends f$3{parent;constructor(e,t){super(e.collection,t),this.parent=e;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function ro(r,e,t,o="react-aria-MenuSection"){let n=useContext(ve),{CollectionBranch:i}=useContext(p),[l,s]=f(),{headingProps:c,groupProps:u}=vt({heading:s,"aria-label":t.props["aria-label"]??void 0}),a=c$3({...r,id:void 0,children:void 0,defaultClassName:o,className:t.props?.className,style:t.props?.style,values:void 0}),d=useContext(tt),y=a$c(r),p$1=r.selectionMode!=null?new Et(d,y):d,M=d$2(be)?.shouldCloseOnSelect,P=a$2(r,{global:true});return delete P.id,jsx(h.section,{...c$4(P,a,u),ref:e,children:jsx(b$4,{values:[[Pe,{...c,ref:l}],[tt,p$1],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect??M}]],children:jsx(i,{collection:n.collection,parent:t})})})}var Ot=k(f$2,ro),be=createContext(null),At=j(e$2,function(e$1,t,o){[e$1,t]=e(e$1,t,be);let n=d$2(be)?.id,i=useContext(ve),l=a$5(t),s=useContext(tt),{isVirtualized:c}=useContext(p),{menuItemProps:u,labelProps:a,descriptionProps:d,keyboardShortcutProps:y,...p$1}=xt({...e$1,id:n,key:o.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:M,isHovered:P}=a$6({isDisabled:p$1.isDisabled}),m=c$3({...e$1,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...p$1,isHovered:P,isFocusVisible:p$1.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e$1["aria-haspopup"],isOpen:e$1["aria-expanded"]==="true"}}),b=e$1.href?h.a:h.div,T=a$2(e$1,{global:true});return delete T.id,delete T.onClick,jsx(b,{...c$4(T,m,u,M),ref:l,"data-disabled":p$1.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p$1.isFocused||void 0,"data-focus-visible":p$1.isFocusVisible||void 0,"data-pressed":p$1.isPressed||void 0,"data-selected":p$1.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e$1["aria-haspopup"]||void 0,"data-open":e$1["aria-expanded"]==="true"||void 0,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:a,label:a,description:d}}],[ht,y],[h$1,{isSelected:p$1.isSelected}]],children:m.children})})});j(d$1,function(e,t,o){let n=useContext(ve),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),y),...d,role:"menuitem",ref:t,children:d.children})})]})});var kt=Me.forwardRef(({section:r,isFirstCollectionItem:e,showSectionHeader:t,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:l$1,componentName:s="ListBox",selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1,...M},P)=>{let{isVirtualized:m}=useContext(p),b=o?.(r),T=s==="ListBox"?gt:Ot,v=c==null?{}:{selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1};return jsxs(T,{id:r.id,"aria-label":r.title,...v,className:a$e(`BaselineUI-${s}-Section`,_r,m&&!e&&Kr,typeof l$1=="function"?l$1(r):l$1),style:typeof i=="function"?i(r):i,ref:P,children:[t?b?jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:b}):jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:jsx(a$d,{className:a$e(zr,`BaselineUI-${s}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:r.title})}):null,jsx(l,{items:r.children,dependencies:Je(M),children:E=>jsx(ot,{componentName:s,item:E,...M},E.id)})]})});kt.displayName="ListSection";var Wo=({componentName:r})=>{let{direction:e}=b$2();return jsx(a$d,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${r}-SubmenuChevron`,style:e==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},Go=({item:r,isSelected:e,isHovered:t,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:l,componentName:s="ListBox",hasSubmenu:c=false})=>{let u=r.icon,a=l!=="none",d=r.keyboardShortcut??r.description;return jsxs(a$d,{display:"flex",alignItems:"center",gap:"lg",className:a$e(Nr({isHovered:t,isFocused:o,isDisabled:n}),`BaselineUI-${s}-OptionDefault`),children:[jsxs(a$d,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[a&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${s}-SelectionIndicator`,children:e?jsx(CheckmarkIcon,{size:24}):null}):null,a&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:c$8({isSelected:e,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:e?jsx(CheckmarkIcon$1,{size:12}):null})}):null,u?jsx(u,{size:24}):null,jsx(b$7,{slot:"label",elementType:"span",children:r.label})]}),c?jsx(Wo,{componentName:s}):d?jsx(b$7,{slot:"description",className:a$e(Hr({isDisabled:n}),`BaselineUI-${s}-OptionDescription`),children:d}):null]})},ot=Me.forwardRef(({item:r,optionStyle:e,optionClassName:t,renderOption:o,componentName:n="ListBox",...i},l)=>{let{onPress:s,onKeyDown:c}=useContext(io);return jsx(n==="ListBox"?yt:At,{...c$4(a$f(i),{onPress:a=>s?.(a,r.id),onKeyDown:c?a=>{c(a,r.id),a.continuePropagation();}:void 0}),id:r.id,value:r,className:a=>a$e(Vr,`BaselineUI-${n}-Option`,typeof t=="function"?t(r,a):t),style:a=>typeof e=="function"?e(r,a):e,textValue:r.label,ref:l,children:a=>o?o(r,a):jsx(Go,{componentName:n,...a,item:r})})});ot.displayName="ListOption";var lo=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),io=Me.createContext({}),qo=Me.forwardRef(({withSectionHeaderPadding:r=false,showSectionHeader:e=false,renderSectionHeader:t,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:l,renderOption:s,className:c,dragAndDropHooks:u,listBoxHandle:a,"data-block-id":d,"data-block-class":y,...p$1},M)=>{let P=a$5(M),m=Me.useRef(false),b=Me.useRef(null),T=useContext(se),{isVirtualized:v,layoutDelegate:E}=useContext(p);useEffect(()=>{T&&(s||o||n)&&a$g("UNSAFE_ListBox:statefulRenderProps","ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[T,s,o,n,i,l,t]),a$h({ref:P,isDisabled:!u});let w=useCallback(g=>[...P.current?.querySelectorAll('[role="option"][data-key]')??[]].find(S=>S.dataset.key===String(g)),[P]);useEffect(()=>{if(!v)return;let g=P.current,x=g?.ownerDocument,S=x?.defaultView;if(g==null||x==null||S==null)return;let z=()=>{let L=f$4(g);return L==null||L===x.body||L===x.documentElement},_=()=>g.querySelector('[role="option"][tabindex="0"]')??g.querySelector('[role="option"][data-focused="true"]'),B=()=>{let L=f$4(g);return L!=null&&h$2(g,L)},R=L=>L.composedPath().some(de=>de instanceof S.Node&&h$2(g,de)),q=()=>{m.current=false;},ae=()=>{b.current!=null&&S.cancelAnimationFrame(b.current),b.current=S.requestAnimationFrame(()=>{if(b.current=null,B())return;if(!z()){q();return}let L=_();L?.focus({preventScroll:true});});},oe=L=>{lo.has(L.key)&&(m.current=true);},J=L=>{!lo.has(L.key)||!z()||!m.current||ae();},Y=L=>{R(L)||B()||q();},Re=L=>{R(L)||q();},Z=new MutationObserver(L=>{L.some(({addedNodes:de,removedNodes:ne})=>de.length>0||ne.length>0)&&m.current&&ae();});return g.addEventListener("keydown",oe),x.addEventListener("keydown",J,true),x.addEventListener("focusin",Y,true),x.addEventListener("pointerdown",Re,true),Z.observe(g,{childList:true,subtree:true}),()=>{g.removeEventListener("keydown",oe),x.removeEventListener("keydown",J,true),x.removeEventListener("focusin",Y,true),x.removeEventListener("pointerdown",Re,true),Z.disconnect(),b.current!=null&&S.cancelAnimationFrame(b.current),q(),b.current=null;}},[v,P]),useEffect(()=>{let g=P.current,x=g?.ownerDocument.defaultView;if(!v||!g||!x)return;let S=null,z=()=>{let R=f$4(g);return R instanceof x.HTMLElement&&R.getAttribute("role")==="option"&&h$2(g,R)?R:null},_=()=>z()?(S=x.requestAnimationFrame(()=>{let R=z();R&&e$5(g,R);}),true):false,B=()=>{_()&&g.removeEventListener("focusin",B);};return _()||g.addEventListener("focusin",B),()=>{g.removeEventListener("focusin",B),S!=null&&x.cancelAnimationFrame(S);}},[v,P]);let H=Me.useRef(null),f=useCallback(()=>{let g=H.current;g&&(g.ownerWindow.cancelAnimationFrame(g.frameId),H.current=null);},[]);useEffect(()=>f,[f]);let C=useCallback((g,x)=>{if(f(),!P.current)return;let S=()=>{let _=w(g);if(_)return _.scrollIntoView({block:"nearest",inline:"nearest",...x}),true;if(v&&E){let B=E.getItemRect(g);return B?(E.virtualizer.delegate.setVisibleRect(B),true):false}return false};if(S())return;let z=P.current.ownerDocument?.defaultView;z&&(H.current={ownerWindow:z,frameId:z.requestAnimationFrame(()=>{H.current=null,S();})});},[f,w,v,E,P]);useImperativeHandle(a,()=>({scrollIntoView:C,setFocusedKey:g=>{let x=w(g);!P.current||!x||(x.focus(),C(g));}}),[C,w,P]);let O={renderOption:s,optionClassName:n,optionStyle:o,renderSectionHeader:t,sectionClassName:l,sectionStyle:i,showSectionHeader:e,withSectionHeaderPadding:r},N=p$1.items?.[0]?.id;return jsx(ft,{...p$1,dependencies:[...p$1.dependencies??[],N,...Je(O)],"data-block-id":d,"data-block-class":y,dragAndDropHooks:u,ref:P,className:a$e(Br,"BaselineUI-ListBox",c),children:g=>jsx(Jo,{item:g,isFirstCollectionItem:N===g.id,...O},g.id)})});qo.displayName="UNSAFE_ListBox";var $o=Me.createContext({}),Jo=r=>{let e=useContext($o),{item:t,isFirstCollectionItem:o,id:n,value:i,...l}={...e,...r};return a$i(t,"Item is required"),"children"in t?jsx(kt,{section:t,componentName:"ListBox",isFirstCollectionItem:o,...l}):jsx(ot,{item:t,componentName:"ListBox",...l})};export{mt as a,se as b,Pt as c,Je as d,Ci as e,ko as f,ms as g,Lt as h,Dt as i,Ho as j,No as k,zo as l,kt as m,Go as n,ot as o,io as p,qo as q,Jo as r};
@@ -1,4 +1,4 @@
1
- import {b as b$1}from'./chunk-GQIS4QBN.mjs';import {a}from'./chunk-S4HLMIFK.mjs';import {j as j$1,l,c,u,e as e$1}from'./chunk-PPHSLODC.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {e,j as j$2,i,b,d}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect,version}from'react';/**
1
+ import {b as b$1}from'./chunk-A63HMTSM.mjs';import {a}from'./chunk-GOCBU65X.mjs';import {j as j$1,l,c,u,e as e$1}from'./chunk-SCJ3RG7B.mjs';import {a as a$1}from'./chunk-35AM4QEA.mjs';import {e,j as j$2,i,b,d}from'./chunk-TYOEGCPS.mjs';import {useRef,useEffect,version}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {c as c$1}from'./chunk-RO5ZRU3Y.mjs';import {a as a$6}from'./chunk-2OXYNLVN.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {TrashIcon}from'@baseline-ui/icons/16';import*as V from'dompurify';import F from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
1
+ import {c as c$1}from'./chunk-RO5ZRU3Y.mjs';import {a as a$6}from'./chunk-LHLY432N.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-FDDB7QNQ.mjs';import {a as a$2}from'./chunk-LRFFL765.mjs';import {d}from'./chunk-IIBBR266.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a as a$5}from'./chunk-35AM4QEA.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {TrashIcon}from'@baseline-ui/icons/16';import*as V from'dompurify';import F from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {d}from'./chunk-ETM4MNG4.mjs';/**
1
+ import {d}from'./chunk-35AM4QEA.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {c,h,e}from'./chunk-RINS2TBF.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {createContext,forwardRef,useContext,useState,useCallback,useMemo,useRef}from'react';import {jsx,Fragment}from'react/jsx-runtime';import {flushSync}from'react-dom';/**
1
+ import {c,h,e}from'./chunk-NYNS3UDR.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {a as a$1}from'./chunk-35AM4QEA.mjs';import {createContext,forwardRef,useContext,useState,useCallback,useMemo,useRef}from'react';import {jsx,Fragment}from'react/jsx-runtime';import {flushSync}from'react-dom';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {b}from'./chunk-KG2EHFYA.mjs';import {b as b$1,a}from'./chunk-JJG67M2S.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {u}from'./chunk-PPHSLODC.mjs';import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {useRef,useCallback,useEffect,useState}from'react';/**
1
+ import {b}from'./chunk-KG2EHFYA.mjs';import {b as b$1,a}from'./chunk-JJG67M2S.mjs';import {j}from'./chunk-NQVTVL24.mjs';import {u}from'./chunk-SCJ3RG7B.mjs';import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {useRef,useCallback,useEffect,useState}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {c}from'./chunk-BGQRLALS.mjs';import {i as i$1}from'./chunk-KUDCYGII.mjs';import {a as a$1}from'./chunk-SVIYLH7R.mjs';import {e}from'./chunk-ETM4MNG4.mjs';import {a,i,h}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect}from'react';/**
1
+ import {c}from'./chunk-VSGVHATE.mjs';import {i as i$1}from'./chunk-NQVTVL24.mjs';import {a as a$1}from'./chunk-SVIYLH7R.mjs';import {e}from'./chunk-35AM4QEA.mjs';import {a,i,h}from'./chunk-TYOEGCPS.mjs';import {useRef,useEffect}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$6}from'./chunk-HPUUQKKH.mjs';import {a as a$1}from'./chunk-SGZWUG3H.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {a as a$3}from'./chunk-B3EZOXNU.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import i from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$6}from'./chunk-HPUUQKKH.mjs';import {a as a$1}from'./chunk-ALMW6S4I.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-FDDB7QNQ.mjs';import {a as a$3}from'./chunk-LRFFL765.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import i from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {c}from'./chunk-ETM4MNG4.mjs';/**
1
+ import {c}from'./chunk-35AM4QEA.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-4S4GGUSH.mjs';import {j,i}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,v as v$1}from'./chunk-PPHSLODC.mjs';import {b as b$1,c as c$1}from'./chunk-3WKDIXCM.mjs';import {b}from'./chunk-SD43KVTU.mjs';import n,{forwardRef,useEffect,useRef,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$1}from'./chunk-3PBFSDMT.mjs';import {j,i}from'./chunk-NQVTVL24.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,v as v$1}from'./chunk-SCJ3RG7B.mjs';import {b as b$1,c as c$1}from'./chunk-PJINRIA6.mjs';import {b}from'./chunk-TYOEGCPS.mjs';import n,{forwardRef,useEffect,useRef,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$4}from'./chunk-ZLDT2KDZ.mjs';import {a as a$2}from'./chunk-22MA6EYO.mjs';import {a as a$1}from'./chunk-22VRCVTH.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import d,{useMemo,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$4}from'./chunk-ZLDT2KDZ.mjs';import {a as a$2}from'./chunk-UQJB6AGO.mjs';import {a as a$1}from'./chunk-22VRCVTH.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import d,{useMemo,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-VPVF5N62.mjs';import {b}from'./chunk-OQPYPKZV.mjs';import p from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a}from'./chunk-L5H5GE3H.mjs';import {b}from'./chunk-ES3IQZSH.mjs';import p from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {b as b$2,d,e,c as c$2}from'./chunk-XC5H4EVW.mjs';import {a as a$2}from'./chunk-E6DZSC2G.mjs';import {b as b$1,a,c as c$1}from'./chunk-6RN7DKRF.mjs';import {a as a$3}from'./chunk-DIL5HL6K.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-DLJHL4V7.mjs';import {a as a$5}from'./chunk-FPM5UJRF.mjs';import {a as a$1}from'./chunk-FDDB7QNQ.mjs';import {c}from'./chunk-35AM4QEA.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import G,{useMemo,useCallback}from'react';import {Time,toZoned,toTime,GregorianCalendar,toCalendarDateTime,today,getLocalTimeZone}from'@internationalized/date';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function M(t){let{placeholderValue:a=new Time,minValue:p,maxValue:u,defaultValue:e,granularity:g,validate:f}=t,[i,n]=a$5(t.value,e??null,t.onChange),r=i||a,o=r&&"day"in r?r:void 0,d=e&&"timeZone"in e?e.timeZone:void 0,F=useMemo(()=>{let l=r&&"timeZone"in r?r.timeZone:void 0;return (l||d)&&a?toZoned(s(a),l||d):s(a)},[a,r,d]),T=useMemo(()=>s(p,o),[p,o]),y=useMemo(()=>s(u,o),[u,o]),V=useMemo(()=>i&&"day"in i?toTime(i):i,[i]),x=useMemo(()=>i==null?null:s(i),[i]),S=useMemo(()=>e==null?null:s(e),[e]);return {...c$2({...t,value:x,defaultValue:S,minValue:T,maxValue:y,onChange:l=>{n(o||d?l:l&&toTime(l));},granularity:g||"minute",maxGranularity:"hour",placeholderValue:F??void 0,createCalendar:()=>new GregorianCalendar,validate:useCallback(()=>f?.(i),[f,i])}),timeValue:V}}function s(t,a=today(getLocalTimeZone())){return t?"day"in t?t:toCalendarDateTime(a,t):null}var W=G.forwardRef(({className:t,labelPosition:a$5,"data-block-id":p,"data-block-class":u,...e$1},g)=>{let{locale:f}=b(),i={...e$1,description:b$1(e$1),validationState:void 0,isInvalid:e$1.validationState==="error"||!!e$1.errorMessage||void 0},n=M({...i,locale:f}),r=e$1.errorMessage||n.displayValidation.validationErrors.join(" "),o=c(),F=a({...e$1,errorMessage:r})==="warningMessage"?{...i,"aria-describedby":[e$1["aria-describedby"],o].filter(Boolean).join(" ")}:i,T=G.useRef(null),{labelProps:y,fieldProps:V,descriptionProps:x,errorMessageProps:S,isInvalid:P,inputProps:k}=b$2(F,n,T),l=c$1({...e$1,errorMessage:r,descriptionProps:x,errorMessageProps:S,warningMessageProps:{id:o},labelPosition:a$5}),{focusProps:j,isFocused:U}=a$1({within:true});return jsxs(a$2,{className:a$4("BaselineUI-TimeField",t),labelProps:y,fieldProps:V,ref:g,wrapperRef:T,wrapperClassName:d,labelPosition:a$5,message:l,isFocused:U,"data-block-id":p,"data-block-class":u,isInvalid:P,...e$1,children:[jsx(b$3,{children:jsx("input",{...k})}),jsx(a$3,{display:"flex",flexDirection:"row",paddingRight:"md",...j,children:n.segments.map((_,q)=>jsx(e,{segment:_,state:n},q))})]})});W.displayName="TimeField";export{W as a};
@@ -1,4 +1,4 @@
1
- import {a as a$9}from'./chunk-4I7K4CCG.mjs';import {a as a$6}from'./chunk-YF63IQQR.mjs';import {d,c as c$1}from'./chunk-W6QO7FPZ.mjs';import {a as a$5}from'./chunk-RPIUPWPO.mjs';import {a as a$2,b as b$2}from'./chunk-XMGPNXZH.mjs';import {a as a$7}from'./chunk-NUCSMH4S.mjs';import {b as b$3}from'./chunk-KG2EHFYA.mjs';import {a as a$3}from'./chunk-JJG67M2S.mjs';import {a,b as b$1}from'./chunk-2VY4FAOY.mjs';import {a as a$1}from'./chunk-FPM5UJRF.mjs';import {a as a$a}from'./chunk-4QBHQCCK.mjs';import {a as a$4,b as b$4}from'./chunk-4S4GGUSH.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {f,l,h}from'./chunk-PPHSLODC.mjs';import {c as c$2}from'./chunk-3WKDIXCM.mjs';import {a as a$8}from'./chunk-SVIYLH7R.mjs';import {c,a as a$b}from'./chunk-ETM4MNG4.mjs';import {j as j$1,i,a as a$c}from'./chunk-SD43KVTU.mjs';import {useCallback,useState,useMemo}from'react';import {flushSync}from'react-dom';/**
1
+ import {a as a$9}from'./chunk-X34RHNLT.mjs';import {a as a$6}from'./chunk-PQIDCA7P.mjs';import {d,c as c$1}from'./chunk-W6QO7FPZ.mjs';import {a as a$5}from'./chunk-RPIUPWPO.mjs';import {a as a$2,b as b$2}from'./chunk-XMGPNXZH.mjs';import {a as a$7}from'./chunk-N4NDPTX6.mjs';import {b as b$3}from'./chunk-KG2EHFYA.mjs';import {a as a$3}from'./chunk-JJG67M2S.mjs';import {a,b as b$1}from'./chunk-2VY4FAOY.mjs';import {a as a$1}from'./chunk-FPM5UJRF.mjs';import {a as a$a}from'./chunk-WAPBLICF.mjs';import {a as a$4,b as b$4}from'./chunk-3PBFSDMT.mjs';import {j}from'./chunk-NQVTVL24.mjs';import {f,l,h}from'./chunk-SCJ3RG7B.mjs';import {c as c$2}from'./chunk-PJINRIA6.mjs';import {a as a$8}from'./chunk-SVIYLH7R.mjs';import {c,a as a$b}from'./chunk-35AM4QEA.mjs';import {j as j$1,i,a as a$c}from'./chunk-TYOEGCPS.mjs';import {useCallback,useState,useMemo}from'react';import {flushSync}from'react-dom';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-ETM4MNG4.mjs';import {b as b$1,a as a$1,d,j}from'./chunk-SD43KVTU.mjs';import Z,{createContext,useContext,useRef,useCallback}from'react';import'react/jsx-runtime';/**
1
+ import {a}from'./chunk-35AM4QEA.mjs';import {b as b$1,a as a$1,d,j}from'./chunk-TYOEGCPS.mjs';import Z,{createContext,useContext,useRef,useCallback}from'react';import'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {a}from'./chunk-B3EZOXNU.mjs';import v from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {a}from'./chunk-LRFFL765.mjs';import v from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-CIPPPD6E.mjs';import {c as c$1}from'./chunk-GMALMQWI.mjs';import {a as a$4,b as b$2}from'./chunk-XO7MAUFC.mjs';import {g,h as h$1}from'./chunk-TZGK36KC.mjs';import {a as a$5,b as b$3}from'./chunk-GQIS4QBN.mjs';import {b}from'./chunk-4S4GGUSH.mjs';import {j as j$1}from'./chunk-KUDCYGII.mjs';import {b as b$1}from'./chunk-S4HLMIFK.mjs';import {h,j as j$2}from'./chunk-PPHSLODC.mjs';import {a as a$3}from'./chunk-3WKDIXCM.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {a as a$2,f,e,j as j$3,b as b$4,i}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect}from'react';/**
1
+ import {a}from'./chunk-WD2TPSZV.mjs';import {c as c$1}from'./chunk-D2NVLRIU.mjs';import {a as a$4,b as b$2}from'./chunk-3COKCTB2.mjs';import {g,h as h$1}from'./chunk-OS6PVCFX.mjs';import {a as a$5,b as b$3}from'./chunk-A63HMTSM.mjs';import {b}from'./chunk-3PBFSDMT.mjs';import {j as j$1}from'./chunk-NQVTVL24.mjs';import {b as b$1}from'./chunk-GOCBU65X.mjs';import {h,j as j$2}from'./chunk-SCJ3RG7B.mjs';import {a as a$3}from'./chunk-PJINRIA6.mjs';import {a as a$1}from'./chunk-35AM4QEA.mjs';import {a as a$2,f,e,j as j$3,b as b$4,i}from'./chunk-TYOEGCPS.mjs';import {useRef,useEffect}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$6}from'./chunk-BTPAZDGG.mjs';import {a as a$4}from'./chunk-7SKQUEHP.mjs';import {b,d as d$1,a as a$5,c as c$2}from'./chunk-W6QO7FPZ.mjs';import {b as b$1}from'./chunk-K5RYVERS.mjs';import {e,h,c,d,g}from'./chunk-RINS2TBF.mjs';import {a}from'./chunk-STMDFIUL.mjs';import {a as a$1}from'./chunk-B3EZOXNU.mjs';import {a as a$3}from'./chunk-RT4LMB6X.mjs';import {c as c$1,b as b$2}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {createContext,forwardRef,useContext,useMemo,useRef,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {a as a$6}from'./chunk-UI4SJCQU.mjs';import {a as a$4}from'./chunk-7SKQUEHP.mjs';import {b,d as d$1,a as a$5,c as c$2}from'./chunk-W6QO7FPZ.mjs';import {b as b$1}from'./chunk-DLJHL4V7.mjs';import {e,h,c,d,g}from'./chunk-NYNS3UDR.mjs';import {a}from'./chunk-FDDB7QNQ.mjs';import {a as a$1}from'./chunk-LRFFL765.mjs';import {a as a$3}from'./chunk-RT4LMB6X.mjs';import {c as c$1,b as b$2}from'./chunk-PJINRIA6.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {createContext,forwardRef,useContext,useMemo,useRef,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-7SQRBY7N.mjs';import {b as b$1}from'./chunk-GMALMQWI.mjs';import {a as a$2}from'./chunk-SGZWUG3H.mjs';import {b}from'./chunk-4S4GGUSH.mjs';import {a}from'./chunk-XPISSX5R.mjs';/**
1
+ import {a as a$1}from'./chunk-UKBBSYRC.mjs';import {b as b$1}from'./chunk-D2NVLRIU.mjs';import {a as a$2}from'./chunk-ALMW6S4I.mjs';import {b}from'./chunk-3PBFSDMT.mjs';import {a}from'./chunk-XPISSX5R.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$4,d as d$1,c as c$3,b as b$4}from'./chunk-C4WHTPLY.mjs';import {b as b$3}from'./chunk-KG2EHFYA.mjs';import {d,g,b}from'./chunk-RINS2TBF.mjs';import {b as b$2,a as a$7,i as i$1}from'./chunk-TZGK36KC.mjs';import {a as a$6}from'./chunk-Y2MIU76N.mjs';import {a as a$5}from'./chunk-AI6WQPRX.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {c as c$2,e}from'./chunk-KUDCYGII.mjs';import {a as a$3}from'./chunk-RT4LMB6X.mjs';import {h,l,u}from'./chunk-PPHSLODC.mjs';import {c,b as b$1}from'./chunk-3WKDIXCM.mjs';import {c as c$1,a as a$2}from'./chunk-ETM4MNG4.mjs';import {i,a as a$1,j,k}from'./chunk-SD43KVTU.mjs';import {createContext,useRef,useState,useEffect,useCallback,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$4,d as d$1,c as c$3,b as b$4}from'./chunk-KRVEGSVY.mjs';import {b as b$3}from'./chunk-KG2EHFYA.mjs';import {d,g,b}from'./chunk-NYNS3UDR.mjs';import {b as b$2,a as a$7,i as i$1}from'./chunk-OS6PVCFX.mjs';import {a as a$6}from'./chunk-QSFRMY47.mjs';import {a as a$5}from'./chunk-UR42GQO4.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {c as c$2,e}from'./chunk-NQVTVL24.mjs';import {a as a$3}from'./chunk-RT4LMB6X.mjs';import {h,l,u}from'./chunk-SCJ3RG7B.mjs';import {c,b as b$1}from'./chunk-PJINRIA6.mjs';import {c as c$1,a as a$2}from'./chunk-35AM4QEA.mjs';import {i,a as a$1,j,k}from'./chunk-TYOEGCPS.mjs';import {createContext,useRef,useState,useEffect,useCallback,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-I7LPPUZS.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {a}from'./chunk-JJG67M2S.mjs';import {d}from'./chunk-GQIS4QBN.mjs';import {f,c}from'./chunk-KUDCYGII.mjs';import {m,n,u,e,g as g$1}from'./chunk-PPHSLODC.mjs';import {a as a$3}from'./chunk-ETM4MNG4.mjs';import {b,h,j as j$1,a as a$2,i}from'./chunk-SD43KVTU.mjs';import {useState,useEffect,useRef}from'react';/**
1
+ import {a as a$1}from'./chunk-A455VRNY.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {a}from'./chunk-JJG67M2S.mjs';import {d}from'./chunk-A63HMTSM.mjs';import {f,c}from'./chunk-NQVTVL24.mjs';import {m,n,u,e,g as g$1}from'./chunk-SCJ3RG7B.mjs';import {a as a$3}from'./chunk-35AM4QEA.mjs';import {b,h,j as j$1,a as a$2,i}from'./chunk-TYOEGCPS.mjs';import {useState,useEffect,useRef}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$2}from'./chunk-S2XIFW52.mjs';import {a as a$4}from'./chunk-NMSOOQB2.mjs';import {g,e,h,a as a$1,i,c}from'./chunk-XOS3JIQX.mjs';import {b as b$1}from'./chunk-XAM3AXXK.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a}from'./chunk-66CUIXA6.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {useGranularEffect}from'granular-hooks';import P,{useCallback,useImperativeHandle}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$2}from'./chunk-VEIBPZDL.mjs';import {a as a$4}from'./chunk-NMSOOQB2.mjs';import {g,e,h,a as a$1,i,c}from'./chunk-X6K4M542.mjs';import {b as b$1}from'./chunk-64ZD4EKW.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a}from'./chunk-66CUIXA6.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {useGranularEffect}from'granular-hooks';import P,{useCallback,useImperativeHandle}from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var p=e=>w(e)?e.document:y(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),d=e=>p(e)?.defaultView??(typeof window<"u"?window:void 0);function c(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function w(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function y(e){return c(e)&&e.nodeType===9}function a(e){return c(e)&&e.nodeType===11&&"host"in e}function h(e,t,n,o){if(n==null||e==null)return ()=>{};let l=Array.isArray(e)?e:[e];for(let r of l)r.addEventListener(t,n,o);return ()=>{for(let r of l)r.removeEventListener(t,n,o);}}function v(e,t,n,o){if(e==null)return ()=>{};let l=new Array,r=Array.isArray(e)?e:[e];for(let i of r){let s=i.style.getPropertyValue(t),E=i.style.getPropertyPriority(t);i.style.setProperty(t,n,o),l.unshift(()=>{s?i.style.setProperty(t,s,E):i.style.removeProperty(t);});}return ()=>{for(let i of l)i();}}var T=true;function u(){return T}function G(e,t){if(!e||!t)return false;let n=t;for(;n!=null;){if(n===e)return true;let o=n.assignedSlot;o?n=o:a(n)?n=n.host:n=n.parentNode;}return false}var L=(e=document)=>{let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function A(e){let t=e.target;if(t&&"shadowRoot"in t&&t.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return t}function f(e,t){let n,o=Object.getPrototypeOf(e);for(;o;){let l=Object.getOwnPropertyDescriptor(o,t)?.get;l&&(n=l),o=Object.getPrototypeOf(o);}return n}function m(e,t,n,o,l){for(let r=n.call(t);r;r=l.call(r)){if(r.getAttribute("id")===e)return r;if(r.shadowRoot){let s=g(e,r.shadowRoot);if(s)return s}let i=m(e,r,o,o,l);if(i)return i}return null}function g(e,t=document){if(typeof t.getElementById=="function"){let i=t.getElementById(e);if(i)return i}let n=f(t,"firstElementChild"),o=n?.call(t),l=o?f(o,"firstElementChild"):void 0,r=o?f(o,"nextElementSibling"):void 0;return n&&l&&r?m(e,t,n,l,r):null}function W(e,t){if(t===null)return [];t=t??d(e);let n=[t];if(!e||e===t)return n;let o="getRootNode"in t?t.getRootNode():null,l=e.getRootNode()??null;for(;a(l)&&l!==o;)n.push(l),l=l.host.getRootNode();return n}function j(e){if(!e)return false;let t=e.getRootNode(),n=d(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return false;let o=t.activeElement;return o!=null&&e.contains(o)}export{p as a,d as b,c,a as d,h as e,v as f,u as g,G as h,L as i,A as j,g as k,W as l,j as m};
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-Y2MIU76N.mjs';import {c}from'./chunk-ETM4MNG4.mjs';/**
1
+ import {a}from'./chunk-QSFRMY47.mjs';import {c}from'./chunk-35AM4QEA.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {d}from'./chunk-KUDCYGII.mjs';import {u}from'./chunk-PPHSLODC.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {b as b$1,j}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect}from'react';/**
1
+ import {d}from'./chunk-NQVTVL24.mjs';import {u}from'./chunk-SCJ3RG7B.mjs';import {a}from'./chunk-35AM4QEA.mjs';import {b as b$1,j}from'./chunk-TYOEGCPS.mjs';import {useRef,useEffect}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {c}from'./chunk-L3SNGDBH.mjs';import {b}from'./chunk-DF2D7NE6.mjs';import {a as a$2}from'./chunk-DIL5HL6K.mjs';import {a as a$5}from'./chunk-2OXYNLVN.mjs';import {a as a$4}from'./chunk-2BG2JLFC.mjs';import {b as b$1}from'./chunk-OQPYPKZV.mjs';import {e}from'./chunk-GMALMQWI.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {u}from'./chunk-PPHSLODC.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a as a$6}from'./chunk-ETM4MNG4.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import z,{useMemo,useState,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {c}from'./chunk-L3SNGDBH.mjs';import {b}from'./chunk-DF2D7NE6.mjs';import {a as a$2}from'./chunk-DIL5HL6K.mjs';import {a as a$5}from'./chunk-LHLY432N.mjs';import {a as a$4}from'./chunk-VQHI3ZCW.mjs';import {b as b$1}from'./chunk-ES3IQZSH.mjs';import {e}from'./chunk-D2NVLRIU.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {j}from'./chunk-NQVTVL24.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {u}from'./chunk-SCJ3RG7B.mjs';import {c as c$1}from'./chunk-PJINRIA6.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a as a$6}from'./chunk-35AM4QEA.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import z,{useMemo,useState,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW