@baseline-ui/core 2.2.0 → 3.0.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.
- package/dist/Accordion.css +10 -0
- package/dist/Accordion.mjs +1 -0
- package/dist/ActionButton.css +10 -0
- package/dist/ActionButton.mjs +1 -0
- package/dist/ActionGroup.css +10 -0
- package/dist/ActionGroup.mjs +1 -0
- package/dist/ActionIconButton.css +10 -0
- package/dist/ActionIconButton.mjs +1 -0
- package/dist/Actionable.css +10 -0
- package/dist/Actionable.mjs +1 -0
- package/dist/AlertDialog.css +10 -0
- package/dist/AlertDialog.mjs +1 -0
- package/dist/AudioPlayer.css +10 -0
- package/dist/AudioPlayer.mjs +1 -0
- package/dist/Avatar.css +10 -0
- package/dist/Avatar.mjs +1 -0
- package/dist/Box.mjs +1 -0
- package/dist/ButtonSelect.css +10 -0
- package/dist/ButtonSelect.mjs +1 -0
- package/dist/Calendar.css +10 -0
- package/dist/Calendar.mjs +1 -0
- package/dist/Checkbox.css +10 -0
- package/dist/Checkbox.mjs +1 -0
- package/dist/Code.css +10 -0
- package/dist/Code.mjs +1 -0
- package/dist/ColorInput.css +10 -0
- package/dist/ColorInput.mjs +1 -0
- package/dist/ColorSwatch.css +10 -0
- package/dist/ColorSwatch.mjs +1 -0
- package/dist/ColorSwatchPicker.css +10 -0
- package/dist/ColorSwatchPicker.mjs +1 -0
- package/dist/ComboBox.css +10 -0
- package/dist/ComboBox.mjs +1 -0
- package/dist/DateField.css +10 -0
- package/dist/DateField.mjs +1 -0
- package/dist/DateFormat.mjs +1 -0
- package/dist/DeviceProvider.mjs +1 -0
- package/dist/Dialog.css +10 -0
- package/dist/Dialog.mjs +1 -0
- package/dist/Disclosure.css +10 -0
- package/dist/Disclosure.mjs +1 -0
- package/dist/DomNodeRenderer.mjs +1 -0
- package/dist/Drawer.css +10 -0
- package/dist/Drawer.mjs +1 -0
- package/dist/Editor.css +10 -0
- package/dist/Editor.mjs +1 -0
- package/dist/FileInput.css +10 -0
- package/dist/FileInput.mjs +1 -0
- package/dist/FileList.css +10 -0
- package/dist/FileList.mjs +1 -0
- package/dist/FileUploader.css +10 -0
- package/dist/FileUploader.mjs +1 -0
- package/dist/FrameProvider.mjs +1 -0
- package/dist/FreehandCanvas.css +10 -0
- package/dist/FreehandCanvas.mjs +1 -0
- package/dist/GridList.css +10 -0
- package/dist/GridList.mjs +1 -0
- package/dist/Group.mjs +1 -0
- package/dist/I18nProvider.mjs +1 -0
- package/dist/Icon.mjs +1 -0
- package/dist/ImageDropZone.css +10 -0
- package/dist/ImageDropZone.mjs +1 -0
- package/dist/ImageGallery.css +10 -0
- package/dist/ImageGallery.mjs +1 -0
- package/dist/InlineAlert.css +10 -0
- package/dist/InlineAlert.mjs +1 -0
- package/dist/InlineToolbar.css +10 -0
- package/dist/InlineToolbar.mjs +10 -0
- package/dist/Kbd.css +10 -0
- package/dist/Kbd.mjs +1 -0
- package/dist/Link.css +10 -0
- package/dist/Link.mjs +1 -0
- package/dist/ListBox.css +10 -0
- package/dist/ListBox.mjs +1 -0
- package/dist/Markdown.css +10 -0
- package/dist/Markdown.mjs +1 -0
- package/dist/Menu.css +10 -0
- package/dist/Menu.mjs +1 -0
- package/dist/MessageFormat.mjs +1 -0
- package/dist/Modal.css +10 -0
- package/dist/Modal.mjs +1 -0
- package/dist/NumberFormat.mjs +1 -0
- package/dist/NumberInput.css +10 -0
- package/dist/NumberInput.mjs +1 -0
- package/dist/Pagination.css +10 -0
- package/dist/Pagination.mjs +1 -0
- package/dist/Panel.css +10 -0
- package/dist/Panel.mjs +1 -0
- package/dist/PointPicker.css +10 -0
- package/dist/PointPicker.mjs +1 -0
- package/dist/Popover.css +10 -0
- package/dist/Popover.mjs +1 -0
- package/dist/Portal.css +10 -0
- package/dist/Portal.mjs +1 -0
- package/dist/PortalContainerProvider.mjs +1 -0
- package/dist/Preview.css +10 -0
- package/dist/Preview.mjs +1 -0
- package/dist/ProgressBar.css +10 -0
- package/dist/ProgressBar.mjs +1 -0
- package/dist/ProgressSpinner.css +10 -0
- package/dist/ProgressSpinner.mjs +1 -0
- package/dist/RadioGroup.css +10 -0
- package/dist/RadioGroup.mjs +1 -0
- package/dist/Reaction.css +10 -0
- package/dist/Reaction.mjs +1 -0
- package/dist/ScrollControlButton.css +10 -0
- package/dist/ScrollControlButton.mjs +1 -0
- package/dist/SearchInput.css +10 -0
- package/dist/SearchInput.mjs +1 -0
- package/dist/Select.css +10 -0
- package/dist/Select.mjs +1 -0
- package/dist/Separator.css +10 -0
- package/dist/Separator.mjs +1 -0
- package/dist/Skeleton.css +10 -0
- package/dist/Skeleton.mjs +1 -0
- package/dist/Slider.css +10 -0
- package/dist/Slider.mjs +1 -0
- package/dist/StatusCard.css +10 -0
- package/dist/StatusCard.mjs +1 -0
- package/dist/Stepper.css +10 -0
- package/dist/Stepper.mjs +1 -0
- package/dist/Switch.css +10 -0
- package/dist/Switch.mjs +1 -0
- package/dist/Table.css +10 -0
- package/dist/Table.mjs +1 -0
- package/dist/Tabs.css +10 -0
- package/dist/Tabs.mjs +1 -0
- package/dist/Tag.css +10 -0
- package/dist/Tag.mjs +1 -0
- package/dist/TagGroup.css +10 -0
- package/dist/TagGroup.mjs +1 -0
- package/dist/TaggedPagination.css +10 -0
- package/dist/TaggedPagination.mjs +1 -0
- package/dist/Text.css +10 -0
- package/dist/Text.mjs +1 -0
- package/dist/TextInput.css +10 -0
- package/dist/TextInput.mjs +1 -0
- package/dist/ThemeProvider.css +10 -0
- package/dist/ThemeProvider.mjs +1 -0
- package/dist/TimeField.css +10 -0
- package/dist/TimeField.mjs +1 -0
- package/dist/Toast.css +10 -0
- package/dist/Toast.mjs +1 -0
- package/dist/ToggleButton.css +10 -0
- package/dist/ToggleButton.mjs +1 -0
- package/dist/ToggleIconButton.css +10 -0
- package/dist/ToggleIconButton.mjs +1 -0
- package/dist/Toolbar.css +10 -0
- package/dist/Toolbar.mjs +1 -0
- package/dist/Tooltip.css +10 -0
- package/dist/Tooltip.mjs +1 -0
- package/dist/TreeView.css +10 -0
- package/dist/TreeView.mjs +1 -0
- package/dist/UNSAFE_ListBox.css +10 -0
- package/dist/UNSAFE_ListBox.mjs +1 -0
- package/dist/Virtualizer.mjs +1 -0
- package/dist/chunk-22BJMDCA.mjs +10 -0
- package/dist/chunk-246VHB32.mjs +10 -0
- package/dist/chunk-2JANDORZ.mjs +11 -0
- package/dist/chunk-2MS356Q7.mjs +10 -0
- package/dist/chunk-2PH5GN2S.mjs +0 -0
- package/dist/chunk-2RCST7ET.mjs +10 -0
- package/dist/chunk-2UUKKXBD.mjs +10 -0
- package/dist/chunk-2VY4FAOY.mjs +10 -0
- package/dist/chunk-2WAKHFPS.mjs +10 -0
- package/dist/chunk-34TYNTXM.mjs +10 -0
- package/dist/chunk-3CWP2VCB.mjs +10 -0
- package/dist/chunk-3FYY26ED.mjs +10 -0
- package/dist/chunk-3HKG74G4.mjs +0 -0
- package/dist/chunk-3UH5CQQF.mjs +10 -0
- package/dist/chunk-3W6RWDIE.mjs +10 -0
- package/dist/chunk-3X2QM7GV.mjs +10 -0
- package/dist/chunk-44OUOGJ4.mjs +10 -0
- package/dist/chunk-4ILKZKTW.mjs +10 -0
- package/dist/chunk-4N6CLPAY.mjs +10 -0
- package/dist/chunk-4NYPVKDO.mjs +10 -0
- package/dist/chunk-4PYEGHW5.mjs +10 -0
- package/dist/chunk-4QEH5CGK.mjs +10 -0
- package/dist/chunk-4SW77SGW.mjs +10 -0
- package/dist/chunk-4WW2MVQN.mjs +0 -0
- package/dist/chunk-4ZJMZB5B.mjs +10 -0
- package/dist/chunk-535OT4US.mjs +10 -0
- package/dist/chunk-545KDVGI.mjs +10 -0
- package/dist/chunk-54IAJ3RI.mjs +0 -0
- package/dist/chunk-5ANNWMLJ.mjs +0 -0
- package/dist/chunk-5BAHJXOI.mjs +10 -0
- package/dist/chunk-5HXTXIE5.mjs +10 -0
- package/dist/chunk-5IC46G5J.mjs +10 -0
- package/dist/chunk-5KD2MNNX.mjs +10 -0
- package/dist/chunk-5ODZPQL2.mjs +10 -0
- package/dist/chunk-5PQHOVGX.mjs +0 -0
- package/dist/chunk-5ULL6IBX.mjs +10 -0
- package/dist/chunk-5YHNHEDK.mjs +0 -0
- package/dist/chunk-63KRQW56.mjs +10 -0
- package/dist/chunk-66CUIXA6.mjs +10 -0
- package/dist/chunk-66NJ7EYY.mjs +10 -0
- package/dist/chunk-67MPTBBY.mjs +10 -0
- package/dist/chunk-6F66XVOA.mjs +0 -0
- package/dist/chunk-6IRWW75G.mjs +10 -0
- package/dist/chunk-6IX6BM7C.mjs +0 -0
- package/dist/chunk-6XARU7F2.mjs +0 -0
- package/dist/chunk-6YQHZ5RZ.mjs +0 -0
- package/dist/chunk-6Z6HOW6T.mjs +10 -0
- package/dist/chunk-6ZFBX7C7.mjs +10 -0
- package/dist/chunk-6ZQE5SHE.mjs +10 -0
- package/dist/chunk-6ZV4UYEG.mjs +10 -0
- package/dist/chunk-77BAFSDX.mjs +10 -0
- package/dist/chunk-7AY6C5M5.mjs +10 -0
- package/dist/chunk-7FJMUUHS.mjs +10 -0
- package/dist/chunk-7PRJIPFA.mjs +10 -0
- package/dist/chunk-A24DWFQ2.mjs +10 -0
- package/dist/chunk-A6ZQQSAX.mjs +10 -0
- package/dist/chunk-AC7OXVHA.mjs +10 -0
- package/dist/chunk-AGUSZG6K.mjs +0 -0
- package/dist/chunk-AGYQLGBZ.mjs +10 -0
- package/dist/chunk-AKES5B6C.mjs +10 -0
- package/dist/chunk-AMQX3KZR.mjs +10 -0
- package/dist/chunk-AMW7LGCF.mjs +10 -0
- package/dist/chunk-AMYRLAIC.mjs +10 -0
- package/dist/chunk-AQYBKDT2.mjs +16 -0
- package/dist/chunk-AUOQSTS5.mjs +10 -0
- package/dist/chunk-AV4ZP5SY.mjs +10 -0
- package/dist/chunk-AZRPXTYJ.mjs +10 -0
- package/dist/chunk-B7PSE5KC.mjs +10 -0
- package/dist/chunk-BED7T5CL.mjs +10 -0
- package/dist/chunk-BGMVPFYK.mjs +10 -0
- package/dist/chunk-BJVFZYUV.mjs +10 -0
- package/dist/chunk-BKDQLDOK.mjs +10 -0
- package/dist/chunk-BLHN7I5Z.mjs +0 -0
- package/dist/chunk-BU5H25MV.mjs +10 -0
- package/dist/chunk-C342HL26.mjs +0 -0
- package/dist/chunk-C5P23FUW.mjs +10 -0
- package/dist/chunk-C6OMLVIQ.mjs +0 -0
- package/dist/chunk-CAWUDHAE.mjs +10 -0
- package/dist/chunk-CFDKFUTO.mjs +10 -0
- package/dist/chunk-CFLEBB5T.mjs +10 -0
- package/dist/chunk-CFRTAJP2.mjs +0 -0
- package/dist/chunk-CGFLGZL4.mjs +10 -0
- package/dist/chunk-CHTLOFCT.mjs +10 -0
- package/dist/chunk-CPSUI4IW.mjs +10 -0
- package/dist/chunk-CSPZMYVG.mjs +10 -0
- package/dist/chunk-CV6JQGJ3.mjs +10 -0
- package/dist/chunk-CWPFUB7B.mjs +10 -0
- package/dist/chunk-D3IZ4HBL.mjs +10 -0
- package/dist/chunk-D5EEZT5J.mjs +10 -0
- package/dist/chunk-DD5FWULD.mjs +10 -0
- package/dist/chunk-DECHIERQ.mjs +10 -0
- package/dist/chunk-DIHILOKU.mjs +10 -0
- package/dist/chunk-DM26KBZ3.mjs +10 -0
- package/dist/chunk-DOL6RDMF.mjs +10 -0
- package/dist/chunk-DRYSJSKA.mjs +10 -0
- package/dist/chunk-DY6WY36N.mjs +0 -0
- package/dist/chunk-E3PFPOHX.mjs +0 -0
- package/dist/chunk-E6VOSF6Z.mjs +10 -0
- package/dist/chunk-EA6GA4WC.mjs +10 -0
- package/dist/chunk-EK3RIYMV.mjs +10 -0
- package/dist/chunk-ELXWR5TS.mjs +10 -0
- package/dist/chunk-EMCEJKBJ.mjs +10 -0
- package/dist/chunk-ENDOKA57.mjs +10 -0
- package/dist/chunk-EU75HMPG.mjs +10 -0
- package/dist/chunk-EX2LI2CV.mjs +10 -0
- package/dist/chunk-EZXMEGV7.mjs +0 -0
- package/dist/chunk-F2HESRBD.mjs +10 -0
- package/dist/chunk-F2X474RV.mjs +10 -0
- package/dist/chunk-F7PGMOQF.mjs +10 -0
- package/dist/chunk-FJ2JRD3H.mjs +10 -0
- package/dist/chunk-FKYHERP4.mjs +0 -0
- package/dist/chunk-FP5EWPOF.mjs +10 -0
- package/dist/chunk-FTYXFTJV.mjs +10 -0
- package/dist/chunk-FWAK2OZM.mjs +10 -0
- package/dist/chunk-FXCHST4Z.mjs +10 -0
- package/dist/chunk-GCZFXILF.mjs +10 -0
- package/dist/chunk-GEZGEZAP.mjs +10 -0
- package/dist/chunk-GKODQS6E.mjs +10 -0
- package/dist/chunk-GOSLHCDP.mjs +0 -0
- package/dist/chunk-GX2IOGYR.mjs +12 -0
- package/dist/chunk-GXOXYPQQ.mjs +10 -0
- package/dist/chunk-H2LXVMBI.mjs +29 -0
- package/dist/chunk-HBBRMEES.mjs +10 -0
- package/dist/chunk-HEO2XVRN.mjs +10 -0
- package/dist/chunk-HI44JQA7.mjs +10 -0
- package/dist/chunk-HJQZW2VO.mjs +10 -0
- package/dist/chunk-HLDCVJXD.mjs +10 -0
- package/dist/chunk-HONWMHMX.mjs +10 -0
- package/dist/chunk-HT55YHTN.mjs +10 -0
- package/dist/chunk-HWOMGFBL.mjs +10 -0
- package/dist/chunk-HXTAOYOD.mjs +10 -0
- package/dist/chunk-HZHAKW6I.mjs +10 -0
- package/dist/chunk-I3RGYL4B.mjs +10 -0
- package/dist/chunk-I3YGB2BE.mjs +10 -0
- package/dist/chunk-IB23KCIW.mjs +10 -0
- package/dist/chunk-IHLJTHGQ.mjs +10 -0
- package/dist/chunk-ILBAZFBL.mjs +0 -0
- package/dist/chunk-INDVRI57.mjs +10 -0
- package/dist/chunk-IUQOFRI3.mjs +10 -0
- package/dist/chunk-IVVZSESM.mjs +10 -0
- package/dist/chunk-IW4GXU75.mjs +10 -0
- package/dist/chunk-J3MJZQUJ.mjs +10 -0
- package/dist/chunk-J4NO4WYU.mjs +0 -0
- package/dist/chunk-J7EAQSKX.mjs +10 -0
- package/dist/chunk-J7K7I5U2.mjs +10 -0
- package/dist/chunk-JBXZ6ZHP.mjs +10 -0
- package/dist/chunk-JDLUGVXG.mjs +10 -0
- package/dist/chunk-JI4SJ53O.mjs +11 -0
- package/dist/chunk-JJG67M2S.mjs +10 -0
- package/dist/chunk-JJPCZOOI.mjs +10 -0
- package/dist/chunk-JQ4ZGZPV.mjs +15 -0
- package/dist/chunk-JUXBZ2ZN.mjs +10 -0
- package/dist/chunk-K5RKL3WY.mjs +10 -0
- package/dist/chunk-K6IQ4ALU.mjs +0 -0
- package/dist/chunk-K6X2BHPP.mjs +10 -0
- package/dist/chunk-KAYY6L7Y.mjs +10 -0
- package/dist/chunk-KCHAWPUN.mjs +10 -0
- package/dist/chunk-KEVERVHK.mjs +10 -0
- package/dist/chunk-KG5PDPBK.mjs +10 -0
- package/dist/chunk-KKJ6XIU3.mjs +10 -0
- package/dist/chunk-KPEONVLU.mjs +10 -0
- package/dist/chunk-KUEDQO7P.mjs +10 -0
- package/dist/chunk-KY3JKXSX.mjs +10 -0
- package/dist/chunk-LQB4U6GF.mjs +10 -0
- package/dist/chunk-LQMEFFFM.mjs +10 -0
- package/dist/chunk-LZFTBNPW.mjs +10 -0
- package/dist/chunk-LZM6UK3C.mjs +10 -0
- package/dist/chunk-M5M3EPG5.mjs +10 -0
- package/dist/chunk-MEYMETYC.mjs +11 -0
- package/dist/chunk-MEZNZ5W6.mjs +10 -0
- package/dist/chunk-MFH2E2GU.mjs +10 -0
- package/dist/chunk-MHUFXHRU.mjs +10 -0
- package/dist/chunk-MI7DCFP2.mjs +10 -0
- package/dist/chunk-MLNPTVVX.mjs +10 -0
- package/dist/chunk-MRJFGHFW.mjs +10 -0
- package/dist/chunk-MUNFBB7D.mjs +0 -0
- package/dist/chunk-MVK5CB64.mjs +10 -0
- package/dist/chunk-MXKP7NQ4.mjs +10 -0
- package/dist/chunk-MZ4O6LWG.mjs +0 -0
- package/dist/chunk-N2XGJKZG.mjs +10 -0
- package/dist/chunk-N7MTFSWR.mjs +10 -0
- package/dist/chunk-NCADIC3I.mjs +10 -0
- package/dist/chunk-NGZRN4SF.mjs +10 -0
- package/dist/chunk-NHM3H5JU.mjs +0 -0
- package/dist/chunk-NKKKKVQ7.mjs +10 -0
- package/dist/chunk-NMTDGCRA.mjs +10 -0
- package/dist/chunk-NO55UIGK.mjs +0 -0
- package/dist/chunk-NRKHWSOP.mjs +0 -0
- package/dist/chunk-NSC53QWT.mjs +10 -0
- package/dist/chunk-NV7KQVPE.mjs +10 -0
- package/dist/chunk-O57ZEY3V.mjs +0 -0
- package/dist/chunk-O66FNQSB.mjs +10 -0
- package/dist/chunk-O6AE67ZY.mjs +10 -0
- package/dist/chunk-O7XK2WIX.mjs +10 -0
- package/dist/chunk-OAY74XPB.mjs +10 -0
- package/dist/chunk-OC42IZG2.mjs +10 -0
- package/dist/chunk-OMT6ZWSV.mjs +11 -0
- package/dist/chunk-OO7BXL2N.mjs +10 -0
- package/dist/chunk-P5GO3XIS.mjs +10 -0
- package/dist/chunk-PAQQ7MQG.mjs +10 -0
- package/dist/chunk-PBFIKNYZ.mjs +10 -0
- package/dist/chunk-PF3OQKXP.mjs +10 -0
- package/dist/chunk-PHZZLBH3.mjs +10 -0
- package/dist/chunk-PR3HWZFH.mjs +10 -0
- package/dist/chunk-PZTVDABF.mjs +0 -0
- package/dist/chunk-Q5UMLFN3.mjs +10 -0
- package/dist/chunk-QAUEG3EX.mjs +0 -0
- package/dist/chunk-QBJDGBTU.mjs +0 -0
- package/dist/chunk-QMDDCVAF.mjs +10 -0
- package/dist/chunk-QNBBJ5HC.mjs +11 -0
- package/dist/chunk-QY3O34WX.mjs +10 -0
- package/dist/chunk-RC7QITNV.mjs +10 -0
- package/dist/chunk-RCBUNCHV.mjs +10 -0
- package/dist/chunk-RELI5YAS.mjs +10 -0
- package/dist/chunk-RFTDIXEG.mjs +10 -0
- package/dist/chunk-RJC3HQDZ.mjs +10 -0
- package/dist/chunk-RJWPSJX2.mjs +10 -0
- package/dist/chunk-RMUV6NJJ.mjs +10 -0
- package/dist/chunk-ROHLZINC.mjs +10 -0
- package/dist/chunk-RSKKEGJZ.mjs +10 -0
- package/dist/chunk-RT4LMB6X.mjs +10 -0
- package/dist/chunk-RXSYDMT6.mjs +10 -0
- package/dist/chunk-S5XX36JC.mjs +10 -0
- package/dist/chunk-SAZLJ66W.mjs +10 -0
- package/dist/chunk-SMAYNDQQ.mjs +10 -0
- package/dist/chunk-TAROK7TO.mjs +10 -0
- package/dist/chunk-TAYP2OGC.mjs +10 -0
- package/dist/chunk-TDXALNX3.mjs +10 -0
- package/dist/chunk-TEQE6WCH.mjs +10 -0
- package/dist/chunk-THRAJMLX.mjs +10 -0
- package/dist/chunk-TI5RR7KX.mjs +10 -0
- package/dist/chunk-TIHKHXTS.mjs +10 -0
- package/dist/chunk-TJEK54BW.mjs +10 -0
- package/dist/chunk-TK4QXU3W.mjs +10 -0
- package/dist/chunk-TKQOQVZD.mjs +10 -0
- package/dist/chunk-TO2TQ2LE.mjs +10 -0
- package/dist/chunk-TO6OQF2Y.mjs +10 -0
- package/dist/chunk-TZ4MVY4E.mjs +10 -0
- package/dist/chunk-U2ODAIZG.mjs +10 -0
- package/dist/chunk-UCNHDT36.mjs +10 -0
- package/dist/chunk-UCZZLAPB.mjs +10 -0
- package/dist/chunk-UMABUZ67.mjs +10 -0
- package/dist/chunk-UQJGSVXP.mjs +10 -0
- package/dist/chunk-USMC34OO.mjs +10 -0
- package/dist/chunk-UTQ7AIPM.mjs +0 -0
- package/dist/chunk-UUBOEBYZ.mjs +10 -0
- package/dist/chunk-V3L4SVVF.mjs +10 -0
- package/dist/chunk-VCIX4HG7.mjs +0 -0
- package/dist/chunk-VDUFLHKK.mjs +10 -0
- package/dist/chunk-VG7J427T.mjs +10 -0
- package/dist/chunk-VHDXSFQC.mjs +10 -0
- package/dist/chunk-VLQ4S7XC.mjs +10 -0
- package/dist/chunk-VU2PDOBR.mjs +10 -0
- package/dist/chunk-VXB5SVQC.mjs +10 -0
- package/dist/chunk-W6QO7FPZ.mjs +10 -0
- package/dist/chunk-WAFYFWH4.mjs +0 -0
- package/dist/chunk-WAOWR7MR.mjs +10 -0
- package/dist/chunk-WDJ4GXWF.mjs +10 -0
- package/dist/chunk-WL27JGVG.mjs +10 -0
- package/dist/chunk-WOVAT6U4.mjs +10 -0
- package/dist/chunk-WSCZ34XO.mjs +10 -0
- package/dist/chunk-WSQGB4ZE.mjs +0 -0
- package/dist/chunk-WWSGOGLA.mjs +10 -0
- package/dist/chunk-X3AXUU3H.mjs +10 -0
- package/dist/chunk-XB657BXX.mjs +10 -0
- package/dist/chunk-XBBPWSJI.mjs +0 -0
- package/dist/chunk-XJGQXVMR.mjs +10 -0
- package/dist/chunk-XPISSX5R.mjs +10 -0
- package/dist/chunk-XTH6B5FE.mjs +10 -0
- package/dist/chunk-XVBOKL6D.mjs +10 -0
- package/dist/chunk-XWLESSHN.mjs +10 -0
- package/dist/chunk-XXANV3FM.mjs +10 -0
- package/dist/chunk-Y4DRSGEJ.mjs +10 -0
- package/dist/chunk-Y6XQJ4X2.mjs +10 -0
- package/dist/chunk-YB3KW7JC.mjs +10 -0
- package/dist/chunk-YCI6BEXQ.mjs +10 -0
- package/dist/chunk-YIGT3OP2.mjs +10 -0
- package/dist/chunk-YOBESAXG.mjs +10 -0
- package/dist/chunk-YS3Y5KGV.mjs +10 -0
- package/dist/chunk-YT36W3OS.mjs +10 -0
- package/dist/chunk-YV3WI6OV.mjs +10 -0
- package/dist/chunk-YV5CNDCW.mjs +0 -0
- package/dist/chunk-YVYMYKYN.mjs +10 -0
- package/dist/chunk-ZANUFNOL.mjs +0 -0
- package/dist/chunk-ZGRRD3TU.mjs +10 -0
- package/dist/chunk-ZLAY7NNY.mjs +10 -0
- package/dist/chunk-ZLDT2KDZ.mjs +10 -0
- package/dist/chunk-ZNN43VZV.mjs +10 -0
- package/dist/chunk-ZREX7XOO.mjs +10 -0
- package/dist/chunk-ZRWDMNNY.mjs +10 -0
- package/dist/chunk-ZVODDLGL.mjs +10 -0
- package/dist/hooks/useDevice.mjs +1 -0
- package/dist/hooks/useI18n.mjs +1 -0
- package/dist/hooks/useImage.mjs +1 -0
- package/dist/hooks/useIntersectionObserver.mjs +1 -0
- package/dist/hooks/useIsFirstRender.mjs +1 -0
- package/dist/hooks/useIsTouchDevice.mjs +1 -0
- package/dist/hooks/useLiveInteractionModality.mjs +1 -0
- package/dist/hooks/useLocalStorage.mjs +1 -0
- package/dist/hooks/useMedia.mjs +1 -0
- package/dist/hooks/useMutationObserver.mjs +1 -0
- package/dist/hooks/usePortalContainer.mjs +1 -0
- package/dist/hooks/usePreventFocus.mjs +1 -0
- package/dist/hooks/useResizeObserver.mjs +1 -0
- package/dist/hooks/useTextSelection.mjs +1 -0
- package/dist/hooks/useUndoRedo.mjs +1 -0
- package/dist/index.d.ts +349 -73
- package/dist/index.js +21 -21
- package/dist/index.mjs +1 -43
- package/dist/messageIds.mjs +1 -0
- package/dist/react-aria.d.ts +133 -133
- package/dist/react-aria.mjs +1 -0
- package/dist/react-stately.d.ts +82 -82
- package/dist/react-stately.mjs +1 -0
- package/dist/utils/a11y.mjs +1 -0
- package/dist/utils/classNames.mjs +1 -0
- package/dist/utils/colors.mjs +1 -0
- package/dist/utils/constants.mjs +10 -0
- package/dist/utils/devWarn.mjs +1 -0
- package/dist/utils/dom.mjs +1 -0
- package/dist/utils/invariant.mjs +1 -0
- package/dist/utils/isInIframe.mjs +1 -0
- package/dist/utils/isInShadowDOM.mjs +1 -0
- package/dist/utils/isRect.mjs +1 -0
- package/dist/utils/keyboards.mjs +1 -0
- package/dist/utils/math.mjs +1 -0
- package/dist/utils/objects.mjs +1 -0
- package/dist/utils/onDropOrPaste.mjs +1 -0
- package/dist/utils/overlays.mjs +1 -0
- package/dist/utils/reactAriaCompat.mjs +1 -0
- package/dist/utils/reactAriaComponentsCompat.mjs +1 -0
- package/dist/utils/resolveAriaLabelAttrs.mjs +1 -0
- package/dist/utils/resolvePublicUrl.mjs +10 -0
- package/dist/utils/strings.mjs +1 -0
- package/dist/utils/style.mjs +1 -0
- package/dist/utils/svgs.mjs +1 -0
- package/dist/utils/validations.mjs +1 -0
- package/intl/ar.json +2 -2
- package/intl/cs.json +2 -2
- package/intl/cy.json +4 -4
- package/intl/da.json +3 -3
- package/intl/de.json +3 -3
- package/intl/el.json +2 -2
- package/intl/en-GB.json +2 -2
- package/intl/en.json +2 -2
- package/intl/fi.json +3 -3
- package/intl/fr-CA.json +1 -1
- package/intl/fr.json +2 -2
- package/intl/he.json +3 -3
- package/intl/hr.json +3 -3
- package/intl/id.json +3 -3
- package/intl/ja.json +2 -2
- package/intl/ko.json +1 -1
- package/intl/ms.json +2 -2
- package/intl/nb-NO.json +3 -3
- package/intl/nl.json +4 -4
- package/intl/pt-PT.json +1 -1
- package/intl/pt.json +3 -3
- package/intl/ru.json +2 -2
- package/intl/sk.json +2 -2
- package/intl/sl.json +4 -4
- package/intl/sv.json +3 -3
- package/intl/th.json +1 -1
- package/intl/tr.json +3 -3
- package/intl/uk.json +1 -1
- package/intl/zh-Hant.json +2 -2
- package/messages.json +2 -2
- package/package.json +9 -6
- package/sbom.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -1,43 +1 @@
|
|
|
1
|
-
import qn,{createContext,forwardRef,useEffect,useContext,useRef,useState,useMemo,useImperativeHandle,createElement,useCallback,useLayoutEffect,useId,useReducer,Fragment as Fragment$1,cloneElement,version,isValidElement}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import R2,{flushSync,createPortal}from'react-dom';import {useSyncExternalStore}from'use-sync-external-store/shim/index.js';import {createCalendar,endOfMonth,isSameMonth,isToday,isSameDay,DateFormatter,toCalendar,toCalendarDate,today,isEqualCalendar,getWeeksInMonth,startOfWeek,getDayOfWeek,endOfWeek,startOfMonth,maxDate,minDate,Time,toZoned,toTime,GregorianCalendar,startOfYear,CalendarDate,toCalendarDateTime,getLocalTimeZone,now,isEqualDay}from'@internationalized/date';import*as R8 from'dompurify';import R8__default from'dompurify';import {useGranularLayoutEffect,useGranularEffect}from'granular-hooks';import {sprinkles,breakpoints,lightTheme,themes,themeVars,layoutSprinkleValues}from'@baseline-ui/tokens';import {CheckmarkIcon,SearchIcon,CaretLeftIcon,CaretRightIcon,AvatarIcon,MoreIcon,QuestionmarkCircleIcon,PauseIcon,PlayIcon,TextIcon as TextIcon$1,HighlightTextIcon}from'@baseline-ui/icons/24';import {CaretDownIcon,MinusIcon,PlusIcon,XIcon as XIcon$3,ChevronRightIcon,ChevronRightFilledIcon,CaretLeftIcon as CaretLeftIcon$4,CaretRightIcon as CaretRightIcon$4}from'@baseline-ui/icons/8';import {ReadOnlyIcon,ErrorCircleFilledIcon,XIcon as XIcon$2,CheckmarkIcon as CheckmarkIcon$2,CheckmarkCircleFilledIcon,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1,CalendarIcon,CaretLeftIcon as CaretLeftIcon$2,CaretRightIcon as CaretRightIcon$2,AvatarIcon as AvatarIcon$1,WarningFilledIcon as WarningFilledIcon$1,InfoCircleFilledIcon as InfoCircleFilledIcon$1,HelpIcon,UndoIcon,RedoIcon,TrashIcon,ArrowDownCircleFilledIcon,CircleFilledIcon,ErrorCircleIcon,WarningIcon,AttachmentsIcon}from'@baseline-ui/icons/16';import {MotionConfig,motion,AnimatePresence,useReducedMotion,MotionGlobalConfig}from'motion/react';export{MotionGlobalConfig}from'motion/react';import {assignInlineVars}from'@vanilla-extract/dynamic';import {XIcon,SearchIcon as SearchIcon$1,CheckmarkIcon as CheckmarkIcon$1,CheckCircleFilledIcon,ErrorAltCircleFilledIcon,CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1,WarningFilledIcon,InfoCircleFilledIcon,TextIcon,BoldIcon,ItalicIcon,UnderlineIcon,ArrowUpCircleFilledIcon,AtIcon,XCircleFilledIcon,UploadIcon,PlusIcon as PlusIcon$2,MinusIcon as MinusIcon$2,LinkIcon}from'@baseline-ui/icons/20';import {XIcon as XIcon$1,CheckmarkIcon as CheckmarkIcon$3,CaretLeftIcon as CaretLeftIcon$3,CaretRightIcon as CaretRightIcon$3,PlusIcon as PlusIcon$1,CaretUpIcon,CaretDownIcon as CaretDownIcon$1,MinusIcon as MinusIcon$1}from'@baseline-ui/icons/12';import {getStroke}from'perfect-freehand';import oF from'just-camel-case';import UY from'just-kebab-case';import nJ from'markdown-it';import {usePanelRef,Panel,useGroupRef,useDefaultLayout,Group,Separator}from'react-resizable-panels';import*as pF from'comlink';/**
|
|
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 OK=Object.defineProperty;var O1=(e,t)=>{for(var r in t)OK(e,r,{get:t[r],enumerable:true});};var N1=false;function Pp(){N1=true;}function lr(){return N1}var Sp="react-aria-clear-focus",Cu="react-aria-focus";var U=e=>e?.ownerDocument??document,Y=e=>e&&"window"in e&&e.window===e?e:U(e).defaultView||window;function KK(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function kr(e){return KK(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function Z(e,t){if(!lr())return t&&e?e.contains(t):false;if(!e||!t)return false;let r=t;for(;r!==null;){if(r===e)return true;let o=r.assignedSlot;o?r=o:kr(r)?r=r.host:r=r.parentNode;}return false}var de=(e=document)=>{if(!lr())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function $(e){let t=e.target;if(lr()&&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 Kr(e,t=document){if(typeof t.getElementById=="function"){let o=t.getElementById(e);if(o)return o}let r=t.children||[];for(let o of r){if(o.getAttribute&&o.getAttribute("id")===e)return o;if(o.shadowRoot){let i=Kr(e,o.shadowRoot);if(i)return i}let n=Kr(e,o);if(n)return n}return null}function Co(e){if(!e)return false;let t=e.getRootNode(),r=Y(e);if(!(t instanceof r.Document||t instanceof r.ShadowRoot))return false;let o=t.activeElement;return o!=null&&e.contains(o)}function fl(e){let t=th(U(e));t!==e&&(t&&Dp(t,e),e&&Zn(e,t));}function Dp(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:t}));}function Zn(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:true,relatedTarget:t}));}function th(e){let t=de(e),r=t?.getAttribute("aria-activedescendant");return r&&Kr(r,e)||t}function $e(e){if(VK(e))e.focus({preventScroll:true});else {let t=BK(e);e.focus(),HK(t);}}var kp=null;function VK(e){if(kp==null){kp=false;try{U(e).createElement("div").focus({get preventScroll(){return kp=!0,!0}});}catch{}}return kp}function BK(e){let t=e.parentNode,r=[],o=U(e),n=Y(e),i=o.scrollingElement||o.documentElement;for(;t&&t!==i;){if(kr(t)){t=t.host;continue}t instanceof n.HTMLElement&&(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;}return i instanceof n.HTMLElement&&r.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),r}function HK(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o;}var $K=typeof Element<"u"&&"checkVisibility"in Element.prototype;function jK(e){let t=Y(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return false;let{display:r,visibility:o}=e.style,n=r!=="none"&&o!=="hidden"&&o!=="collapse";if(n){let{getComputedStyle:i}=Y(e),{display:a,visibility:l}=i(e);n=a!=="none"&&l!=="hidden"&&l!=="collapse";}return n}function GK(e,t){return !e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):true)}function Ep(e,t){return $K?e.checkVisibility({visibilityProperty:true})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&jK(e)&&GK(e,t)&&(!e.parentElement||Ep(e.parentElement,e))}var rh=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],UK=rh.join(':not([hidden]):not([data-bui-avoid-focus="true"]),')+',[tabindex]:not([disabled]):not([hidden]):not([data-bui-avoid-focus="true"])';rh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var WK=rh.join(':not([hidden]):not([tabindex="-1"]),');function Jn(e,t){return e.matches(UK)&&!F1(e)&&(t?.skipVisibilityCheck||Ep(e))}function Ui(e){return e.matches(WK)&&Ep(e)&&!F1(e)}function F1(e){let t=e;for(;t!=null;){if(t instanceof Y(t).HTMLElement&&t.inert)return true;t=t.parentElement;}return false}var re=typeof document<"u"?qn.useLayoutEffect:()=>{};function Su(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function zp(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t});}function wp(e){let t=useRef({isFocused:false,observer:null});return re(()=>{let r=t.current;return ()=>{r.observer&&(r.observer.disconnect(),r.observer=null);}},[]),useCallback(r=>{let o=$(r),n=Y(o);if(o instanceof n.HTMLButtonElement||o instanceof n.HTMLInputElement||o instanceof n.HTMLTextAreaElement||o instanceof n.HTMLSelectElement){t.current.isFocused=true;let i=o,a=l=>{if(t.current.isFocused=false,i.disabled){let s=Su(l);e?.(s);}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null);};i.addEventListener("focusout",a,{once:true}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){t.current.observer?.disconnect();let l=i===de(U(i))?null:de(U(i));i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:l}));}}),t.current.observer.observe(i,{attributes:true,attributeFilter:["disabled"]});}},[e])}var Pu=false;function oh(e){for(;e&&!Jn(e,{skipVisibilityCheck:true});)e=e.parentElement;let t=Y(e),r=de(t.document);if(!r||r===e)return;Pu=true;let o=false,n=p=>{($(p)===r||o)&&p.stopImmediatePropagation();},i=p=>{($(p)===r||o)&&(p.stopImmediatePropagation(),!e&&!o&&(o=true,$e(r),c()));},a=p=>{($(p)===e||o)&&p.stopImmediatePropagation();},l=p=>{($(p)===e||o)&&(p.stopImmediatePropagation(),o||(o=true,$e(r),c()));},s=t.document;t.addEventListener("blur",n,true),t.addEventListener("focusout",i,true),t.addEventListener("focusin",l,true),t.addEventListener("focus",a,true),s.addEventListener("blur",n,true),s.addEventListener("focusout",i,true),s.addEventListener("focusin",l,true),s.addEventListener("focus",a,true);let u=[];if(lr()){let p=new Set;for(let m of [r,e])if(m){let f=m.getRootNode();f instanceof Y(m).ShadowRoot&&p.add(f);}u=[...p];for(let m of u)m.addEventListener("blur",n,true),m.addEventListener("focusout",i,true),m.addEventListener("focusin",l,true),m.addEventListener("focus",a,true);}let c=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",n,true),t.removeEventListener("focusout",i,true),t.removeEventListener("focusin",l,true),t.removeEventListener("focus",a,true),s.removeEventListener("blur",n,true),s.removeEventListener("focusout",i,true),s.removeEventListener("focusin",l,true),s.removeEventListener("focus",a,true);for(let p of u)p.removeEventListener("blur",n,true),p.removeEventListener("focusout",i,true),p.removeEventListener("focusin",l,true),p.removeEventListener("focus",a,true);Pu=false,o=false;},d=requestAnimationFrame(c);return c}function Rp(e){if(typeof window>"u"||window.navigator==null)return false;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function nh(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):false}function Pn(e){if(process.env.NODE_ENV==="test")return e;let t=null;return ()=>(t==null&&(t=e()),t)}var Ct=Pn(function(){return nh(/^Mac/i)}),Du=Pn(function(){return nh(/^iPhone/i)}),Wi=Pn(function(){return nh(/^iPad/i)||Ct()&&navigator.maxTouchPoints>1}),jt=Pn(function(){return Du()||Wi()}),Qn=Pn(function(){return Ct()||jt()}),ei=Pn(function(){return Rp(/AppleWebKit/i)&&!qi()}),qi=Pn(function(){return Rp(/Chrome/i)}),sr=Pn(function(){return Rp(/Android/i)}),Ip=Pn(function(){return Rp(/Firefox/i)});function Sn(e){return e.pointerType===""&&e.isTrusted?true:sr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function yl(e){return !sr()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}var QK=createContext({isNative:true,open:rV,useHref:e=>e});function Qr(){return useContext(QK)}function eV(e,t){let r=e.getAttribute("target");return (!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Jr(e,t,r=true){let{metaKey:o,ctrlKey:n,altKey:i,shiftKey:a}=t;Ip()&&Y(e).event?.type?.startsWith("key")&&e.target==="_blank"&&(Ct()?o=true:n=true);let l=ei()&&Ct()&&!Wi()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:n,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:o,ctrlKey:n,altKey:i,shiftKey:a,detail:1,bubbles:true,cancelable:true});Jr.isOpening=r,$e(e),e.dispatchEvent(l),Jr.isOpening=false;}Jr.isOpening=false;function tV(e,t){if(e instanceof Y(e).HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=U(e).createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r);}}function rV(e,t){tV(e,r=>Jr(r,t));}function bl(e){let r=Qr().useHref(e.href??"");return {"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function ti(e){let r=Qr().useHref(e?.href??""),o={};if(e)for(let n of ["href","target","rel","download","ping","referrerPolicy"])n in e&&(o[n]=n==="href"?r:e[n]);return o}function _p(e,t,r,o){let n=Y(e.currentTarget);!t.isNative&&e.currentTarget instanceof n.HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&eV(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,o));}var Lp={prefix:String(Math.round(Math.random()*1e10)),current:0},K1=qn.createContext(Lp),iV=qn.createContext(false);var aV=!!(typeof window<"u"&&window.document&&window.document.createElement),ih=new WeakMap;function lV(e=false){let t=useContext(K1),r=useRef(null);if(r.current===null&&!e){let o=qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(o){let n=ih.get(o);n==null?ih.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==n.state&&(t.current=n.id,ih.delete(o));}r.current=++t.current;}return r.current}function sV(e){let t=useContext(K1);t===Lp&&!aV&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=lV(!!e),o=t===Lp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function uV(e){let t=qn.useId(),[r]=useState(eo()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Lp.prefix}`;return e||`${o}-${t}`}var V1=typeof qn.useId=="function"?uV:sV;function cV(){return false}function dV(){return true}function pV(e){return ()=>{}}function eo(){return typeof qn.useSyncExternalStore=="function"?qn.useSyncExternalStore(pV,cV,dV):useContext(iV)}var Dn=null,gl="keyboard",Eu=new Set,ku=new Map,Yi=false,lh=false,mV={Tab:true,Escape:true};function Op(e,t){for(let r of Eu)r(e,t);}function fV(e){return !(e.metaKey||!Ct()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Mp(e){Yi=true,!Jr.isOpening&&fV(e)&&(Dn="keyboard",gl="keyboard",Op("keyboard",e));}function to(e){Dn="pointer",gl="pointerType"in e?e.pointerType:"mouse",(e.type==="mousedown"||e.type==="pointerdown")&&(Yi=true,Op("pointer",e));}function $1(e){!Jr.isOpening&&Sn(e)&&(Yi=true,Dn="virtual",gl="virtual");}function j1(e){let t=$(e),r="nodeType"in t&&t.nodeType===Node.DOCUMENT_NODE,o=r?t.defaultView||window:Y(t),n=r?t:U(t);t===o||t===n||Pu||!e.isTrusted||(!Yi&&!lh&&(Dn="virtual",gl="virtual",Op("virtual",e)),Yi=false,lh=false);}function G1(){Pu||(Yi=false,lh=true);}function Ap(e){if(typeof window>"u"||typeof document>"u")return;let t=Y(e),r=U(e);if(ku.get(t))return;let o=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:function(){Yi=true,o.apply(this,arguments);}}),r.addEventListener("keydown",Mp,true),r.addEventListener("keyup",Mp,true),r.addEventListener("click",$1,true),t.addEventListener("focus",j1,true),t.addEventListener("blur",G1,false),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",to,true),r.addEventListener("pointermove",to,true),r.addEventListener("pointerup",to,true)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",to,true),r.addEventListener("mousemove",to,true),r.addEventListener("mouseup",to,true)),t.addEventListener("beforeunload",()=>{U1(e);},{once:true}),ku.set(t,{focus:o});}var U1=(e,t)=>{let r=Y(e),o=U(e);t&&o.removeEventListener("DOMContentLoaded",t),ku.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:ku.get(r).focus}),o.removeEventListener("keydown",Mp,true),o.removeEventListener("keyup",Mp,true),o.removeEventListener("click",$1,true),r.removeEventListener("focus",j1,true),r.removeEventListener("blur",G1,false),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",to,true),o.removeEventListener("pointermove",to,true),o.removeEventListener("pointerup",to,true)):process.env.NODE_ENV==="test"&&(o.removeEventListener("mousedown",to,true),o.removeEventListener("mousemove",to,true),o.removeEventListener("mouseup",to,true)),ku.delete(r));};function zu(e){let t=U(e),r;return t.readyState!=="loading"?Ap(e):(r=()=>{Ap(e);},t.addEventListener("DOMContentLoaded",r)),()=>U1(e,r)}typeof document<"u"&&zu();function Nt(){return Dn!=="pointer"}function zt(){return Dn}function ur(e){Dn=e,gl=e,Op(e,null);}function Np(){return gl}function er(){Ap();let[e,t]=useState(Dn);return useEffect(()=>{let r=()=>{t(Dn);};return Eu.add(r),()=>{Eu.delete(r);}},[]),eo()?null:e}var yV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bV(e,t,r){let o=r?$(r):void 0,n=U(o),i=Y(o),a=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,l=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof i<"u"?i.HTMLElement:HTMLElement,u=typeof i<"u"?i.KeyboardEvent:KeyboardEvent,c=de(n);return e=e||c instanceof a&&!yV.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&r instanceof u&&!mV[r.key])}function W1(e={}){let{isTextInput:t,autoFocus:r}=e,[o,n]=useState(r||Nt());return wu(i=>{n(i);},[t],{isTextInput:t}),{isFocusVisible:o}}function wu(e,t,r){Ap(),useEffect(()=>{if(r?.enabled===false)return;let o=(n,i)=>{bV(!!r?.isTextInput,n,i)&&e(Nt());};return Eu.add(o),()=>{Eu.delete(o);}},t);}var q1={"ar-AE":{collectionLabel:"\u0645\u0642\u062A\u0631\u062D\u0627\u062A"},"bg-BG":{collectionLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},"cs-CZ":{collectionLabel:"N\xE1vrhy"},"da-DK":{collectionLabel:"Forslag"},"de-DE":{collectionLabel:"Empfehlungen"},"el-GR":{collectionLabel:"\u03A0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2"},"en-US":{collectionLabel:"Suggestions"},"es-ES":{collectionLabel:"Sugerencias"},"et-EE":{collectionLabel:"Soovitused"},"fi-FI":{collectionLabel:"Ehdotukset"},"fr-FR":{collectionLabel:"Suggestions"},"he-IL":{collectionLabel:"\u05D4\u05E6\u05E2\u05D5\u05EA"},"hr-HR":{collectionLabel:"Prijedlozi"},"hu-HU":{collectionLabel:"Javaslatok"},"it-IT":{collectionLabel:"Suggerimenti"},"ja-JP":{collectionLabel:"\u5019\u88DC"},"ko-KR":{collectionLabel:"\uC81C\uC548"},"lt-LT":{collectionLabel:"Pasi\u016Blymai"},"lv-LV":{collectionLabel:"Ieteikumi"},"nb-NO":{collectionLabel:"Forslag"},"nl-NL":{collectionLabel:"Suggesties"},"pl-PL":{collectionLabel:"Sugestie"},"pt-BR":{collectionLabel:"Sugest\xF5es"},"pt-PT":{collectionLabel:"Sugest\xF5es"},"ro-RO":{collectionLabel:"Sugestii"},"ru-RU":{collectionLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},"sk-SK":{collectionLabel:"N\xE1vrhy"},"sl-SI":{collectionLabel:"Predlogi"},"sr-SP":{collectionLabel:"Predlozi"},"sv-SE":{collectionLabel:"F\xF6rslag"},"tr-TR":{collectionLabel:"\xD6neriler"},"uk-UA":{collectionLabel:"\u041F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457"},"zh-CN":{collectionLabel:"\u5EFA\u8BAE"},"zh-TW":{collectionLabel:"\u5EFA\u8B70"}};function $o(e){return Ct()?e.metaKey:e.ctrlKey}var gV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fp(e){let t=Y(e);return e instanceof t.HTMLInputElement&&!gV.has(e.type)||e instanceof t.HTMLTextAreaElement||e instanceof t.HTMLElement&&e.isContentEditable}function Ye(...e){return (...t)=>{for(let r of e)typeof r=="function"&&r(...t);}}function X1(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=X1(e[t]))&&(o&&(o+=" "),o+=r);}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function hV(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=X1(e))&&(o&&(o+=" "),o+=t);return o}var Y1=hV;function hl(e){let[t,r]=useState(e),o=useRef(t),n=useRef(null),i=useRef(()=>{if(!n.current)return;let l=n.current.next();if(l.done){n.current=null;return}o.current===l.value?i.current():r(l.value);});re(()=>{o.current=t,n.current&&i.current();});let a=useCallback(l=>{n.current=l(o.current),i.current();},[i]);return [t,a]}var SV=!!(typeof window<"u"&&window.document&&window.document.createElement),vl=new Map,Ru;typeof FinalizationRegistry<"u"&&(Ru=new FinalizationRegistry(e=>{vl.delete(e);}));function ee(e){let[t,r]=useState(e),o=useRef(null),n=V1(t),i=useRef(null);if(Ru&&Ru.register(i,n),SV){let a=vl.get(n);a&&!a.includes(o)?a.push(o):vl.set(n,[o]);}return re(()=>{let a=n;return ()=>{Ru&&Ru.unregister(i),vl.delete(a);}},[n]),useEffect(()=>{let a=o.current;return a&&r(a),()=>{a&&(o.current=null);}}),n}function J1(e,t){if(e===t)return e;let r=vl.get(e);if(r)return r.forEach(n=>n.current=t),t;let o=vl.get(t);return o?(o.forEach(n=>n.current=e),e):t}function Pt(e=[],t){let r=ee(),[o,n]=hl(r),i=useCallback(()=>{let a=U(t?.current);n(function*(){yield r,yield Kr(r,a)?r:void 0;});},[r,n,t]);return re(i,[r,i,...e]),o}function se(...e){return e.length===1&&e[0]?e[0]:t=>{let r=false,o=e.map(n=>{let i=Q1(n,t);return r||=typeof i=="function",i});if(r)return ()=>{o.forEach((n,i)=>{typeof n=="function"?n():Q1(e[i],null);});}}}function Q1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t);}function M(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let n in o){let i=t[n],a=o[n];typeof i=="function"&&typeof a=="function"&&n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?t[n]=Ye(i,a):(n==="className"||n==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[n]=Y1(i,a):n==="id"&&i&&a?t.id=J1(i,a):n==="ref"&&i&&a?t.ref=se(i,a):t[n]=a!==void 0?a:i;}}return t}var zV=qn.useInsertionEffect??re;function De(e){let t=useRef(null);return zV(()=>{t.current=e;},[e]),useCallback((...r)=>{let o=t.current;return o?.(...r)},[])}function ct(e,t,r,o){let n=De(r),i=r==null;useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,n,o),()=>{a.removeEventListener(t,n,o);}},[e,t,o,i]);}function tt(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;return r=ee(r),n&&o?n=[...new Set([r,...n.trim().split(/\s+/)])].join(" "):n&&(n=n.trim().split(/\s+/).join(" ")),!o&&!n&&t&&(o=t),{id:r,"aria-label":o,"aria-labelledby":n}}var RV=Symbol.for("react-aria.i18n.locale"),IV=Symbol.for("react-aria.i18n.strings"),Kp,cr=class e{strings;defaultLocale;constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,o])=>o)),this.defaultLocale=r;}getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=_V(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[RV];if(Kp===void 0){let n=window[IV];if(!n)return null;Kp={};for(let i in n)Kp[i]=new e({[r]:n[i]},r);}let o=Kp?.[t];if(!o)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}};function _V(e,t,r="en-US"){if(t[e])return t[e];let o=LV(e);if(t[o])return t[o];for(let n in t)if(n.startsWith(o+"-"))return t[n];return t[r]}function LV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var eD=new Map,tD=new Map,kn=class{locale;strings;constructor(t,r){this.locale=t,this.strings=r;}format(t,r){let o=this.strings.getStringForLocale(t,this.locale);return typeof o=="function"?o(r,this):o}plural(t,r,o="cardinal"){let n=r["="+t];if(n)return typeof n=="function"?n():n;let i=this.locale+":"+o,a=eD.get(i);a||(a=new Intl.PluralRules(this.locale,{type:o}),eD.set(i,a));let l=a.select(t);return n=r[l]||r.other,typeof n=="function"?n():n}number(t){let r=tD.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),tD.set(this.locale,r)),r.format(t)}select(t,r){let o=t[r]||t.other;return typeof o=="function"?o():o}};var MV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),AV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Iu(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return MV.has(r.script)}let t=e.split("-")[0];return AV.has(t)}var oD=Symbol.for("react-aria.i18n.locale");function nD(){let e=typeof window<"u"&&window[oD]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:Iu(e)?"rtl":"ltr"}}var uh=nD(),_u=new Set;function rD(){uh=nD();for(let e of _u)e(uh);}function ch(){let e=eo(),[t,r]=useState(uh);return useEffect(()=>(_u.size===0&&window.addEventListener("languagechange",rD),_u.add(r),()=>{_u.delete(r),_u.size===0&&window.removeEventListener("languagechange",rD);}),[]),e?{locale:typeof window<"u"&&window[oD]||"en-US",direction:"ltr"}:t}var dh=qn.createContext(null);function KV(e){let{locale:t,children:r}=e,o=qn.useMemo(()=>({locale:t,direction:Iu(t)?"rtl":"ltr"}),[t]);return jsx(dh.Provider,{value:o,children:r})}function VV(e){let{children:t}=e,r=ch();return jsx(dh.Provider,{value:r,children:t})}function Lu(e){let{locale:t,children:r}=e;return t?jsx(KV,{locale:t,children:r}):jsx(VV,{children:r})}function Q(){let e=ch();return useContext(dh)||e}var aD=new WeakMap;function HV(e){let t=aD.get(e);return t||(t=new cr(e),aD.set(e,t)),t}function Bp(e,t){return t&&cr.getGlobalDictionaryForPackage(t)||HV(e)}function Te(e,t){let{locale:r}=Q(),o=Bp(e,t);return useMemo(()=>new kn(r,o),[r,o])}function pe(e){let t=useRef(null),r=useRef(void 0),o=useCallback(n=>{if(typeof e=="function"){let i=e,a=i(n);return ()=>{typeof a=="function"?a():i(null);}}else if(e)return e.current=n,()=>{e.current=null;}},[e]);return useMemo(()=>({get current(){return t.current},set current(n){t.current=n,r.current&&(r.current(),r.current=void 0),n!=null&&(r.current=o(n));}}),[o])}function ph(e,t){let{inputRef:r,collectionRef:o,filter:n,disableAutoFocusFirst:i=false,disableVirtualFocus:a=false}=e,l=ee(),s=useRef(void 0),u=useRef(false),c=useRef(null),d=zt()==="virtual"&&(jt()||sr()),[p,m]=useState(!d&&!a),[f,y]=useState(false),[b,g]=useState(false);useEffect(()=>()=>clearTimeout(s.current),[]);let x=De(K=>{!K.isTrusted&&p&&r.current&&de(U(r.current))!==r.current&&Np()!=="touch"&&r.current.focus();let L=$(K);K.isTrusted||!L||c.current===L.id||(clearTimeout(s.current),L!==o.current?u.current?(c.current=L.id,s.current=setTimeout(()=>{t.setFocusedNodeId(L.id);},500)):(c.current=L.id,t.setFocusedNodeId(L.id)):c.current&&!Kr(c.current,U(o.current))&&(c.current=null,t.setFocusedNodeId(null)),u.current=false);}),[h,v]=useState(null),C=useCallback(K=>{v(K),K!=null?(K.getAttribute("tabindex")!=null&&m(false),y(true)):y(false);},[]);re(()=>(h?.addEventListener("focusin",x),()=>{h?.removeEventListener("focusin",x);}),[h]);let T=pe(useMemo(()=>se(o,C),[o,C])),P=useCallback(()=>{if(!o.current){g(true);return}u.current=true,o.current?.dispatchEvent(new CustomEvent(Cu,{cancelable:true,bubbles:true,detail:{focusStrategy:"first"}}));},[o]),k=useCallback(K=>{g(false),fl(de(U(r.current))),c.current=null,t.setFocusedNodeId(null);let L=new CustomEvent(Sp,{cancelable:true,bubbles:true,detail:{clearFocusKey:K}});clearTimeout(s.current),u.current=false,o.current?.dispatchEvent(L);},[o,t]),S=useRef("");ct(r,"beforeinput",K=>{let{inputType:L}=K;S.current=L;});let w=K=>{(S.current==="insertText"||S.current==="insertCompositionText"||S.current==="insertFromComposition")&&!i?P():S.current&&(S.current.includes("insert")||S.current.includes("delete")||S.current.includes("history"))&&(k(true),th(U(r.current))===r.current&&Zn(r.current,null)),t.setInputValue(K);},E=useRef(null),z=K=>{if(E.current=$(K.nativeEvent),K.nativeEvent.isComposing)return;let L=c.current;switch(L!==null&&U(r.current).getElementById(L)==null&&(c.current=null,L=null),K.key){case "a":if($o(K))return;break;case "Escape":if(K.isDefaultPrevented())return;break;case " ":return;case "Tab":"continuePropagation"in K&&K.continuePropagation();return;case "Home":case "End":case "PageDown":case "PageUp":case "ArrowUp":case "ArrowDown":case "ArrowRight":case "ArrowLeft":{if((K.key==="Home"||K.key==="End")&&L==null&&K.shiftKey)return;if(K.key==="ArrowRight"||K.key==="ArrowLeft"){if(L==null){K.isPropagationStopped()||K.stopPropagation();return}break}K.preventDefault();let G=new CustomEvent(Cu,{cancelable:true,bubbles:true});o.current?.dispatchEvent(G);break}}K.isPropagationStopped()||K.stopPropagation();let B=true;if(o.current!==null)if(L==null)B=o.current?.dispatchEvent(new KeyboardEvent(K.nativeEvent.type,K.nativeEvent))||false;else {let G=Kr(L,U(o.current));G&&(B=G?.dispatchEvent(new KeyboardEvent(K.nativeEvent.type,K.nativeEvent))||false);}if(B)switch(K.key){case "ArrowLeft":case "ArrowRight":{k();break}case "Enter":L!=null&&Kr(L,U(r.current))?.dispatchEvent(new PointerEvent("click",K.nativeEvent));break}else K.preventDefault();},A=De(K=>{if($(K)===E.current){K.stopImmediatePropagation();let L=c.current;L==null?o.current?.dispatchEvent(new KeyboardEvent(K.type,K)):Kr(L,U(o.current))?.dispatchEvent(new KeyboardEvent(K.type,K));}});useEffect(()=>{let K=U(r.current);return K.addEventListener("keyup",A,true),()=>{K.removeEventListener("keyup",A,true);}},[A]);let D=Te(q1,"@react-aria/autocomplete"),O=tt({id:l,"aria-label":D.format("collectionLabel")}),R=useCallback((K,L)=>n?n(K,t.inputValue,L):true,[t.inputValue,n]),N=K=>{if(!K.isTrusted)return;let L=c.current?Kr(c.current,U(r.current)):null;L&&Dp(L,K.relatedTarget);},F=K=>{if(!K.isTrusted)return;if(c.current?Kr(c.current,U(r.current)):null){let B=$(K.nativeEvent);queueMicrotask(()=>{Dp(B,o.current),Zn(o.current,B);});}},I=K=>{K.button!==0||K.pointerType==="touch"||c.current==null||r.current==null||$(K)===r.current&&k();},V={value:t.inputValue,onChange:w},H={onKeyDown:z,"aria-activedescendant":t.focusedNodeId??void 0,onBlur:N,onFocus:F,onPointerDown:I};return V={...V,...p&&f&&H,enterKeyHint:"go","aria-controls":f?l:void 0,"aria-autocomplete":"list",autoCorrect:"off",spellCheck:"false",autoComplete:"off"},{inputProps:V,collectionProps:M(O,{shouldUseVirtualFocus:p,disallowTypeAhead:p,autoFocus:b?"first":false}),collectionRef:T,filter:n!=null?R:void 0}}var YV=typeof document<"u"?qn.useInsertionEffect??qn.useLayoutEffect:()=>{};function ye(e,t,r){let[o,n]=useState(e||t),i=useRef(o),a=useRef(e!==void 0),l=e!==void 0;useEffect(()=>{let d=a.current;d!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l;},[l]);let s=l?e:o;YV(()=>{i.current=s;});let[,u]=useReducer(()=>({}),{}),c=useCallback((d,...p)=>{let m=typeof d=="function"?d(i.current):d;Object.is(i.current,m)||(i.current=m,n(m),u(),r?.(m,...p));},[r]);return [s,c]}function mh(e){let{onInputChange:t,inputValue:r,defaultInputValue:o=""}=e,n=u=>{t&&t(u);},[i,a]=useState(null),[l,s]=ye(r,o,n);return {inputValue:l,setInputValue:s,focusedNodeId:i,setFocusedNodeId:a}}var ro=Symbol("default");function mt({values:e,children:t}){for(let[r,o]of e)t=jsx(r.Provider,{value:o,children:t});return t}function Ve(e){let{className:t,style:r,children:o,defaultClassName:n=void 0,defaultChildren:i=void 0,defaultStyle:a,values:l,render:s}=e;return useMemo(()=>{let u,c,d;return typeof t=="function"?u=t({...l,defaultClassName:n}):u=t,typeof r=="function"?c=r({...l,defaultStyle:a||{}}):c=r,typeof o=="function"?d=o({...l,defaultChildren:i}):o==null?d=i:d=o,{className:u??n,style:c||a?{...a,...c}:void 0,children:d??i,"data-rac":"",render:s?p=>s(p,l):void 0}},[t,r,o,n,i,a,l,s])}function oo(e,t){let r=useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let o=t||ro;if(!r.slots[o]){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${n}.`)}return r.slots[o]}return r}function Ie(e,t,r){let o=oo(r,e.slot)||{},{ref:n,...i}=o,a=pe(useMemo(()=>se(t,n),[t,n])),l=M(i,e);return "style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return {...c,...d}}:l.style={...i.style,...e.style}),[l,a]}function Au(e=true){let[t,r]=useState(e),o=useRef(false),n=useCallback(i=>{o.current=true,r(!!i);},[]);return re(()=>{o.current||r(false);},[]),[n,t]}function jp(e){let t=/^(data-.*)$/,r={};for(let o in e)t.test(o)||(r[o]=e[o]);return r}function rB(e,t,r){let{render:o,...n}=t,i=useRef(null),a=useMemo(()=>se(r,i),[r,i]);re(()=>{process.env.NODE_ENV!=="production"&&o&&(i.current?i.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${i.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));},[e,o]);let l={...n,ref:a};return o?o(l,void 0):jsx(e,{...l})}var dD={},Pe=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=dD[t];return r||(r=forwardRef(rB.bind(null,t)),dD[t]=r),r}});var yD=createContext(null),Up=createContext(null),jo=createContext(null),ri=createContext(null);function yh(e){let t=oo(yD,e.slot);e=M(t,e);let{filter:r,disableAutoFocusFirst:o}=e,n=mh(e),i=useRef(null),a=useRef(null),{inputProps:l,collectionProps:s,collectionRef:u,filter:c}=ph({...jp(e),filter:r,disableAutoFocusFirst:o,inputRef:i,collectionRef:a},n);return jsx(mt,{values:[[Up,n],[ri,{...l,ref:i}],[jo,{...s,filter:c,ref:u}]],children:e.children})}var nB=new Set(["id"]),iB=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),aB=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),lB=new Set(["dir","lang","hidden","inert","translate"]),bD=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),sB=/^(data-.*)$/;function oe(e,t={}){let{labelable:r,isLink:o,global:n,events:i=n,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(nB.has(s)||r&&iB.has(s)||o&&aB.has(s)||n&&lB.has(s)||i&&(bD.has(s)||s.endsWith("Capture")&&bD.has(s.slice(0,-7)))||a?.has(s)||sB.test(s))&&(l[s]=e[s]);return l}var gD=new WeakMap,hD=new WeakSet;function vD(e){return "propertyName"in e}function uB(){let e=new Map,t=new Set,r=a=>{let l=$(a);if(!vD(a)||!l)return;let s=e.get(l);s&&(s.delete(a.propertyName),s.size===0&&(l.removeEventListener("transitioncancel",r),e.delete(l)),e.size===0&&TD(i));},o=(a,l)=>{let s=e.get(a);s||(s=new Set,e.set(a,s),a.addEventListener("transitioncancel",r,{once:true})),s.add(l);},i={transitionsByElement:e,transitionCallbacks:t,track:o,onTransitionStart:a=>{let l=$(a);!vD(a)||!l||o(l,a.propertyName);},onTransitionEnd:r};return i}function xD(e){let t=gD.get(e);return t||(t=uB(),gD.set(e,t)),t}function cB(e){let t=[],r=e?.getRootNode()??null;kr(r)&&t.push(r);let o=U(e).body;return o&&t.push(o),t}function TD(e){for(let t of e.transitionCallbacks)t();e.transitionCallbacks.clear();}function dB(e,t){let r=kr(e)?e:U(e),o=kr(e)?e.getAnimations?.():U(e).getAnimations?.();for(let n of o??[]){if(n.playState==="finished"||!("transitionProperty"in n))continue;let i=n.effect?.target;i&&i.getRootNode()===r&&t.track(i,n.transitionProperty);}}function bh(e){if(typeof window>"u")return;let t=cB(e).filter(o=>!hD.has(o));if(t.length===0)return;let r=xD(U(e));for(let o of t)hD.add(o),o.addEventListener("transitionrun",r.onTransitionStart),o.addEventListener("transitionend",r.onTransitionEnd),dB(o,r);}typeof document<"u"&&(document.readyState!=="loading"?bh():document.addEventListener("DOMContentLoaded",()=>bh()));function pB(e){for(let[t]of e.transitionsByElement)"isConnected"in t&&(!t.isConnected||!t.ownerDocument?.defaultView)&&e.transitionsByElement.delete(t);e.transitionsByElement.size===0&&TD(e);}function Wp(e,t){bh(t);let r=xD(U(t));requestAnimationFrame(()=>{pB(r),r.transitionsByElement.size===0?e():r.transitionCallbacks.add(e);});}function qe(e){if(!e.isConnected)return;let t=U(e);if(zt()==="virtual"){let r=de(t);Wp(()=>{let o=de(t);(o===r||o===t.body)&&e.isConnected&&$e(e);},e);}else $e(e);}function tr(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:n}=e,i=useCallback(s=>{if($(s)===s.currentTarget)return o&&o(s),n&&n(false),true},[o,n]),a=wp(i),l=useCallback(s=>{let u=$(s),c=U(u),d=c?de(c):de();u===s.currentTarget&&u===d&&(r&&r(s),n&&n(true),a(s));},[n,r,a]);return {focusProps:{onFocus:!t&&(r||n||o)?l:void 0,onBlur:!t&&(o||n)?i:void 0}}}function gh(e){if(!e)return;let t=true;return r=>{let o={...r,preventDefault(){r.preventDefault();},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=true;},continuePropagation(){t=false,typeof r.continuePropagation=="function"&&r.continuePropagation();},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation();}}function Ae(e){return {keyboardProps:e.isDisabled?{}:{onKeyDown:gh(e.onKeyDown),onKeyUp:gh(e.onKeyUp)}}}function xl(e,t){re(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null);}});}var Tl=qn.createContext(null);function bB(e){let t=useContext(Tl)||{};xl(t,e);let{ref:r,...o}=t;return o}var qp=qn.forwardRef(function(t,r){let{children:o,...n}=t,i=pe(r),a={...n,ref:i};return jsx(Tl.Provider,{value:a,children:o})});function it(e,t){let{focusProps:r}=tr(e),{keyboardProps:o}=Ae(e),n=M(r,o),i=bB(t),a=e.isDisabled?{}:i,l=useRef(e.autoFocus);useEffect(()=>{l.current&&t.current&&qe(t.current),l.current=false;},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:M({...n,tabIndex:s},a)}}var Cl=forwardRef(({children:e,...t},r)=>{r=pe(r);let{focusableProps:o}=it(t,r),n=qn.Children.only(e);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let a=r.current;if(!a||!(a instanceof Y(a).Element)){console.error("<Focusable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!Jn(a)){console.warn("<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(a.localName!=="button"&&a.localName!=="input"&&a.localName!=="select"&&a.localName!=="textarea"&&a.localName!=="a"&&a.localName!=="area"&&a.localName!=="summary"&&a.localName!=="img"&&a.localName!=="svg"){let l=a.getAttribute("role");l?l!=="application"&&l!=="button"&&l!=="checkbox"&&l!=="combobox"&&l!=="gridcell"&&l!=="link"&&l!=="menuitem"&&l!=="menuitemcheckbox"&&l!=="menuitemradio"&&l!=="option"&&l!=="radio"&&l!=="searchbox"&&l!=="separator"&&l!=="slider"&&l!=="spinbutton"&&l!=="switch"&&l!=="tab"&&l!=="tabpanel"&&l!=="textbox"&&l!=="treeitem"&&l!=="img"&&l!=="meter"&&l!=="progressbar"&&console.warn(`<Focusable> child must have an interactive ARIA role. Got "${l}".`):console.warn("<Focusable> child must have an interactive ARIA role.");}},[r,t.isDisabled]);let i=parseInt(qn.version,10)<19?n.ref:n.props.ref;return qn.cloneElement(n,{...M(o,n.props),ref:se(i,r)})});var Pl="default",hh="",Xp=new WeakMap;function Nu(e){let t=Y(e);if(jt()){if(Pl==="default"){let r=U(e);hh=r.documentElement.style.webkitUserSelect,r.documentElement.style.webkitUserSelect="none";}Pl="disabled";}else if(e instanceof t.HTMLElement||e instanceof t.SVGElement){let r="userSelect"in e.style?"userSelect":"webkitUserSelect";Xp.set(e,e.style[r]),e.style[r]="none";}}function Sl(e){let t=Y(e);if(jt()){if(Pl!=="disabled")return;Pl="restoring",setTimeout(()=>{Wp(()=>{if(Pl==="restoring"){let r=U(e);r.documentElement.style.webkitUserSelect==="none"&&(r.documentElement.style.webkitUserSelect=hh||""),hh="",Pl="default";}},e);},300);}else if((e instanceof t.HTMLElement||e instanceof t.SVGElement)&&e&&Xp.has(e)){let r=Xp.get(e),o="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[o]==="none"&&(e.style[o]=r),e.getAttribute("style")===""&&e.removeAttribute("style"),Xp.delete(e);}}function SD(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}var vh=new WeakMap;function Yp(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return SD(t);if(vh.has(t))return vh.get(t);let r=t.querySelector('meta[property="csp-nonce"]'),o=r&&r instanceof Y(r).HTMLMetaElement&&(r.nonce||r.content)||SD(t)||void 0;return o!==void 0&&vh.set(t,o),o}var Zi=qn.createContext({register:()=>{}});Zi.displayName="PressResponderContext";function It(){let e=useRef(new Map),t=useCallback((n,i,a,l)=>{let s=l?.once?(...u)=>{e.current.delete(a),a(...u);}:a;e.current.set(a,{type:i,eventTarget:n,fn:s,options:l}),n.addEventListener(i,s,l);},[]),r=useCallback((n,i,a,l)=>{let s=e.current.get(a)?.fn||a;n.removeEventListener(i,s,l),e.current.delete(a);},[]),o=useCallback(()=>{e.current.forEach((n,i)=>{r(n.eventTarget,n.type,i,n.options);});},[r]);return useEffect(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function kB(e){let t=useContext(Zi);if(t){let{register:r,ref:o,...n}=t;e=M(n,e),r();}return xl(t,e.ref),e}var Dl=class{type;pointerType;target;shiftKey;ctrlKey;metaKey;altKey;x;y;key;#e=true;constructor(t,r,o,n){let a=(n?.target??o.currentTarget)?.getBoundingClientRect(),l,s=0,u,c=null;o.clientX!=null&&o.clientY!=null&&(u=o.clientX,c=o.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=a.height/2)),this.type=t,this.pointerType=r,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey,this.x=l,this.y=s,this.key=o.key;}continuePropagation(){this.#e=false;}get shouldStopPropagation(){return this.#e}},DD=Symbol("linkClicked"),kD="react-aria-pressable-style",ED="data-react-aria-pressable";function Oe(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...m}=kB(e),[f,y]=useState(false),b=useRef({isPressed:false,ignoreEmulatedMouseEvents:false,didFirePressStart:false,isTriggeringEvent:false,activePointerId:null,target:null,isOverTarget:false,pointerType:null,disposables:[]}),{addGlobalListener:g,removeAllGlobalListeners:x}=It(),h=useCallback((D,O)=>{let R=b.current;if(l||R.didFirePressStart)return false;let N=true;if(R.isTriggeringEvent=true,o){let F=new Dl("pressstart",O,D);o(F),N=F.shouldStopPropagation;}return r&&r(true),R.isTriggeringEvent=false,R.didFirePressStart=true,y(true),N},[l,o,r]),v=useCallback((D,O,R=true)=>{let N=b.current;if(!N.didFirePressStart)return false;N.didFirePressStart=false,N.isTriggeringEvent=true;let F=true;if(n){let I=new Dl("pressend",O,D);n(I),F=I.shouldStopPropagation;}if(r&&r(false),y(false),t&&R&&!l){let I=new Dl("press",O,D);t(I),F&&=I.shouldStopPropagation;}return N.isTriggeringEvent=false,F},[l,n,r,t]),C=De(v),T=useCallback((D,O)=>{let R=b.current;if(l)return false;if(i){R.isTriggeringEvent=true;let N=new Dl("pressup",O,D);return i(N),R.isTriggeringEvent=false,N.shouldStopPropagation}return true},[l,i]),P=De(T),k=useCallback(D=>{let O=b.current;if(O.isPressed&&O.target){O.didFirePressStart&&O.pointerType!=null&&v(Qi(O.target,D),O.pointerType,false),O.isPressed=false,O.isOverTarget=false,O.activePointerId=null,O.pointerType=null,x(),d||Sl(O.target);for(let R of O.disposables)R();O.disposables=[];}},[d,x,v]),S=De(k);useEffect(()=>{l&&b.current.isPressed&&S({currentTarget:b.current.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false});},[l]);let w=useCallback(D=>{c&&k(D);},[c,k]),E=useCallback(D=>{l||a?.(D);},[l,a]),z=useCallback((D,O)=>{if(!l&&a){let R=new MouseEvent("click",D);zp(R,O),a(Su(R));}},[l,a]),A=useMemo(()=>{let D=b.current,O={onKeyDown(N){if(Ch(N.nativeEvent,N.currentTarget)&&Z(N.currentTarget,$(N))){RD($(N),N.key)&&N.preventDefault();let F=true;!D.isPressed&&!N.repeat&&(D.target=N.currentTarget,D.isPressed=true,D.pointerType="keyboard",F=h(N,"keyboard"));let I=N.currentTarget,V=H=>{Ch(H,I)&&!H.repeat&&Z(I,$(H))&&D.target&&P(Qi(D.target,H),"keyboard");};g(U(N.currentTarget),"keyup",Ye(V,R),true),F&&N.stopPropagation(),N.metaKey&&Ct()&&D.metaKeyEvents?.set(N.key,N.nativeEvent);}else N.key==="Meta"&&(D.metaKeyEvents=new Map);},onClick(N){if(!(N&&!Z(N.currentTarget,$(N)))&&N&&N.button===0&&!D.isTriggeringEvent&&!Jr.isOpening){let F=true;if(l&&N.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||Sn(N.nativeEvent))){let I=h(N,"virtual"),V=P(N,"virtual"),H=C(N,"virtual");E(N),F=I&&V&&H;}else if(D.isPressed&&D.pointerType!=="keyboard"){let I=D.pointerType||N.nativeEvent.pointerType||"virtual",V=P(Qi(N.currentTarget,N),I),H=C(Qi(N.currentTarget,N),I,true);F=V&&H,D.isOverTarget=false,E(N),S(N);}D.ignoreEmulatedMouseEvents=false,F&&N.stopPropagation();}}},R=N=>{if(D.isPressed&&D.target&&Ch(N,D.target)){RD($(N),N.key)&&N.preventDefault();let F=$(N),I=Z(D.target,F);C(Qi(D.target,N),"keyboard",I),I&&z(N,D.target),x(),N.key!=="Enter"&&Ph(D.target)&&Z(D.target,F)&&!N[DD]&&(N[DD]=true,Jr(D.target,N,false)),D.isPressed=false,D.metaKeyEvents?.delete(N.key);}else if(N.key==="Meta"&&D.metaKeyEvents?.size){let F=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let I of F.values())D.target?.dispatchEvent(new KeyboardEvent("keyup",I));}};if(typeof PointerEvent<"u"){O.onPointerDown=I=>{if(I.button!==0||!Z(I.currentTarget,$(I)))return;if(yl(I.nativeEvent)){D.pointerType="virtual";return}D.pointerType=I.pointerType;let V=true;if(!D.isPressed){D.isPressed=true,D.isOverTarget=true,D.activePointerId=I.pointerId,D.target=I.currentTarget,d||Nu(D.target),V=h(I,D.pointerType);let H=$(I);"releasePointerCapture"in H&&("hasPointerCapture"in H?H.hasPointerCapture(I.pointerId)&&H.releasePointerCapture(I.pointerId):H.releasePointerCapture(I.pointerId)),g(U(I.currentTarget),"pointerup",N,false),g(U(I.currentTarget),"pointercancel",F,false);}V&&I.stopPropagation();},O.onMouseDown=I=>{if(Z(I.currentTarget,$(I))&&I.button===0){if(u){let V=oh($(I));V&&D.disposables.push(V);}I.stopPropagation();}},O.onPointerUp=I=>{!Z(I.currentTarget,$(I))||D.pointerType==="virtual"||I.button===0&&!D.isPressed&&P(I,D.pointerType||I.pointerType);},O.onPointerEnter=I=>{I.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=true,h(Qi(D.target,I),D.pointerType));},O.onPointerLeave=I=>{I.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=false,C(Qi(D.target,I),D.pointerType,false),w(I));};let N=I=>{if(I.pointerId===D.activePointerId&&D.isPressed&&I.button===0&&D.target){if(Z(D.target,$(I))&&D.pointerType!=null){let V=false,H=setTimeout(()=>{D.isPressed&&D.target instanceof Y(D.target).HTMLElement&&(V?S(I):($e(D.target),D.target.click()));},80);g(I.currentTarget,"click",()=>V=true,true),D.disposables.push(()=>clearTimeout(H));}else S(I);D.isOverTarget=false;}},F=I=>{S(I);};O.onDragStart=I=>{Z(I.currentTarget,$(I))&&S(I);};}else if(process.env.NODE_ENV==="test"){O.onMouseDown=I=>{if(I.button!==0||!Z(I.currentTarget,$(I)))return;if(D.ignoreEmulatedMouseEvents){I.stopPropagation();return}if(D.isPressed=true,D.isOverTarget=true,D.target=I.currentTarget,D.pointerType=Sn(I.nativeEvent)?"virtual":"mouse",flushSync(()=>h(I,D.pointerType))&&I.stopPropagation(),u){let H=oh($(I));H&&D.disposables.push(H);}g(U(I.currentTarget),"mouseup",N,false);},O.onMouseEnter=I=>{if(!Z(I.currentTarget,$(I)))return;let V=true;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=true,V=h(I,D.pointerType)),V&&I.stopPropagation();},O.onMouseLeave=I=>{if(!Z(I.currentTarget,$(I)))return;let V=true;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=false,V=C(I,D.pointerType,false),w(I)),V&&I.stopPropagation();},O.onMouseUp=I=>{Z(I.currentTarget,$(I))&&!D.ignoreEmulatedMouseEvents&&I.button===0&&!D.isPressed&&P(I,D.pointerType||"mouse");};let N=I=>{if(I.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=false;return}D.target&&Z(D.target,$(I))&&D.pointerType!=null||S(I),D.isOverTarget=false;}};O.onTouchStart=I=>{if(!Z(I.currentTarget,$(I)))return;let V=EB(I.nativeEvent);if(!V)return;D.activePointerId=V.identifier,D.ignoreEmulatedMouseEvents=true,D.isOverTarget=true,D.isPressed=true,D.target=I.currentTarget,D.pointerType="touch",d||Nu(D.target),h(oi(D.target,I),D.pointerType)&&I.stopPropagation(),g(Y(I.currentTarget),"scroll",F,true);},O.onTouchMove=I=>{if(!Z(I.currentTarget,$(I)))return;if(!D.isPressed){I.stopPropagation();return}let V=zD(I.nativeEvent,D.activePointerId),H=true;V&&wD(V,I.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=true,H=h(oi(D.target,I),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=false,H=C(oi(D.target,I),D.pointerType,false),w(oi(D.target,I))),H&&I.stopPropagation();},O.onTouchEnd=I=>{if(!Z(I.currentTarget,$(I)))return;if(!D.isPressed){I.stopPropagation();return}let V=zD(I.nativeEvent,D.activePointerId),H=true;V&&wD(V,I.currentTarget)&&D.pointerType!=null?(P(oi(D.target,I),D.pointerType),H=C(oi(D.target,I),D.pointerType),z(I.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(H=C(oi(D.target,I),D.pointerType,false)),H&&I.stopPropagation(),D.isPressed=false,D.activePointerId=null,D.isOverTarget=false,D.ignoreEmulatedMouseEvents=true,D.target&&!d&&Sl(D.target),x();},O.onTouchCancel=I=>{Z(I.currentTarget,$(I))&&(I.stopPropagation(),D.isPressed&&S(oi(D.target,I)));};let F=I=>{D.isPressed&&Z($(I),D.target)&&S({currentTarget:D.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false});};O.onDragStart=I=>{Z(I.currentTarget,$(I))&&S(I);};}return O},[g,l,u,x,d,w,h,E,z]);return useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;let D=U(p.current);if(!D||!D.head||D.getElementById(kD))return;let O=D.createElement("style");O.id=kD;let R=Yp(D);R&&(O.nonce=R),O.textContent=`
|
|
11
|
-
@layer {
|
|
12
|
-
[${ED}] {
|
|
13
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`.trim(),D.head.prepend(O);},[p]),useEffect(()=>{let D=b.current;return ()=>{d||Sl(D.target??void 0);for(let O of D.disposables)O();D.disposables=[];}},[d]),{isPressed:s||f,pressProps:M(m,A,{[ED]:true})}}function Ph(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ch(e,t){let{key:r,code:o}=e,n=t,i=n.getAttribute("role");return (r==="Enter"||r===" "||r==="Spacebar"||o==="Space")&&!(n instanceof Y(n).HTMLInputElement&&!ID(n,r)||n instanceof Y(n).HTMLTextAreaElement||n.isContentEditable)&&!((i==="link"||!i&&Ph(n))&&r!=="Enter")}function EB(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}function zD(e,t){let r=e.changedTouches;for(let o=0;o<r.length;o++){let n=r[o];if(n.identifier===t)return n}return null}function oi(e,t){let r=0,o=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,o=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o}}function Qi(e,t){let r=t.clientX,o=t.clientY;return {currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o,key:t.key}}function zB(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function wB(e,t){return !(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function wD(e,t){let r=t.getBoundingClientRect(),o=zB(e);return wB(r,o)}function RB(e){let t=Y(e);return e instanceof t.HTMLInputElement?false:e instanceof t.HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ph(e)}function RD(e,t){return e instanceof Y(e).HTMLInputElement?!ID(e,t):RB(e)}var IB=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ID(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":IB.has(e.type)}function Sh(e,t){let{elementType:r="a",onPress:o,onPressStart:n,onPressEnd:i,onClick:a,isDisabled:l,...s}=e,u={};r!=="a"&&(u={role:"link",tabIndex:l?void 0:0});let{focusableProps:c}=it(e,t),{pressProps:d,isPressed:p}=Oe({onPress:o,onPressStart:n,onPressEnd:i,onClick:a,isDisabled:l,ref:t}),m=oe(s,{labelable:true}),f=M(c,d),y=Qr(),b=ti(e);return {isPressed:p,linkProps:M(m,b,{...f,...u,"aria-disabled":l||void 0,"aria-current":e["aria-current"],onClick:g=>{d.onClick?.(g),_p(g,y,e.href,e.routerOptions);}})}}var Gt=class{static type;type;key;value=null;level=0;hasChildNodes=false;rendered=null;textValue="";"aria-label"=void 0;index=0;parentKey=null;prevKey=null;nextKey=null;firstChildKey=null;lastChildKey=null;props={};render;colSpan=null;colIndex=null;constructor(t){this.type=this.constructor.type,this.key=t;}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,r,o){let n=this.clone();return r.addDescendants(n,t),n}},ea=class extends Gt{filter(t,r,o){let[n,i]=_D(t,r,this.firstChildKey,o),a=this.clone();return a.firstChildKey=n,a.lastChildKey=i,a}},Fu=class extends Gt{static type="header"},En=class extends Gt{static type="loader"},ta=class extends ea{static type="item";filter(t,r,o){if(o(this.textValue,this)){let n=this.clone();return r.addDescendants(n,t),n}return null}},ni=class extends ea{static type="section";filter(t,r,o){let n=super.filter(t,r,o);if(n&&n.lastChildKey!==null){let i=t.getItem(n.lastChildKey);if(i&&i.type!=="header")return n}return null}},zn=class{keyMap=new Map;firstKey=null;lastKey=null;frozen=false;itemCount=0;get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0;}getChildren(t){let r=this.keyMap;return {*[Symbol.iterator](){let o=r.get(t),n=o?.firstChildKey!=null?r.get(o.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?r.get(n.nextKey):void 0;}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);return r?.key??null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t);}addDescendants(t,r){this.addNode(t);let o=r.getChildren(t.key);for(let n of o)this.addDescendants(n,r);}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(t);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(t);}commit(t,r,o=false){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!o;}filter(t){let r=new this.constructor,[o,n]=_D(this,r,this.firstKey,t);return r?.commit(o,n),r}};function _D(e,t,r,o){if(r==null)return [null,null];let n=null,i=null,a=e.getItem(r);for(;a!=null;){let l=a.filter(e,t,o);l!=null&&(l.nextKey=null,i&&(l.prevKey=i.key,i.nextKey=l.key),n==null&&(n=l),t.addNode(l),i=l),a=a.nextKey!=null?e.getItem(a.nextKey):null;}if(i&&i.type==="separator"){let l=i.prevKey;t.removeNode(i.key),l!=null?(i=t.getItem(l),i.nextKey=null):i=null;}return [n?.key??null,i?.key??null]}var Zp=class{_firstChild=null;_lastChild=null;_previousSibling=null;_nextSibling=null;_parentNode=null;_minInvalidChildIndex=null;ownerDocument;constructor(t){this.ownerDocument=t;}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling;}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this);}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this);}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this);}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this);}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this);}get isConnected(){return this.parentNode?.isConnected||false}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this));}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null;}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate();}insertBefore(t,r){if(r==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index-1,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate();}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate());}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}},Ku=class e extends Zp{nodeType=8;node;isMutated=true;_index=0;isHidden=false;constructor(t,r){super(r),this.node=null;}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this);}get level(){return this.parentNode instanceof e?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=true),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,r=this.getMutableNode();if(r!=null&&(r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,r.prevKey=this.previousVisibleSibling?.node?.key??null,r.nextKey=t?.node?.key??null,r.hasChildNodes=!!this.firstChild,r.firstChildKey=this.firstVisibleChild?.node?.key??null,r.lastChildKey=this.lastVisibleChild?.node?.key??null,(r.colSpan!=null||r.colIndex!=null)&&t)){let o=(r.colIndex??r.index)+(r.colSpan??1);if(t.node!=null&&o!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=o;}}}setProps(t,r,o,n,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new o(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=n,a.render=i,a.value=l,t["aria-label"]&&(a["aria-label"]=t["aria-label"]),a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate();}get style(){let t=this;return {get display(){return t.isHidden?"none":""},set display(r){let o=r==="none";if(t.isHidden!==o){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let n=t.previousVisibleSibling,i=t.nextVisibleSibling;n&&t.ownerDocument.markDirty(n),i&&t.ownerDocument.markDirty(i),t.isHidden=o,t.ownerDocument.markDirty(t);}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},Jp=class extends Zp{nodeType=11;ownerDocument=this;dirtyNodes=new Set;isSSR=false;nodeId=0;nodesByProps=new WeakMap;collection;nextCollection=null;subscriptions=new Set;queuedRender=false;inSubscription=false;constructor(t){super(null),this.collection=t,this.nextCollection=t;}get isConnected(){return true}createElement(t){return new Ku(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t);}addNode(t){if(t.isHidden||t.node==null)return;let r=this.getMutableCollection();if(!r.getItem(t.node.key))for(let o of t)this.addNode(o);r.addNode(t.node);}removeNode(t){for(let r of t)this.removeNode(r);t.node&&this.getMutableCollection().removeNode(t.node.key);}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=false,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof Ku&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof Ku?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=false):this.dirtyNodes.delete(t);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null));}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=true,this.inSubscription=true,this.isSSR||(this.collection=this.collection.clone());for(let t of this.subscriptions)t();this.inSubscription=false;}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=false,this.firstChild=null,this.lastChild=null,this.nodeId=0);}};function wn(e){let{children:t,items:r,idScope:o,addIdAndValue:n,dependencies:i=[]}=e,a=useMemo(()=>process.env.NODE_ENV!=="production"&&typeof t=="function"?t.toString():void 0,[t]),l=useMemo(()=>new WeakMap,[...i,a]);return useMemo(()=>{if(r&&typeof t=="function"){let s=[];for(let u of r){let c=LB(u)?u:null,d=c?l.get(c):null;if(!d){d=t(u);let p=d.props.id??u?.key??u?.id;o!=null&&d.props.id==null&&p!=null&&(p=o+":"+p);let m=p??s.length;d=cloneElement(d,n?{key:m,id:p,value:u}:{key:m}),c&&l.set(c,d);}s.push(d);}return s}else if(typeof t!="function")return t},[t,r,l,o,n])}function LB(e){switch(typeof e){case "object":return e!=null;case "function":case "symbol":return true;default:return false}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:true,enumerable:true,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:true,enumerable:true,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:true,enumerable:true,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:true,enumerable:true,value:function(e,t){return this.content.insertBefore(e,t)}}));var Qp=createContext(false);function LD(e){if(useContext(Qp))return jsx(Fragment,{children:e.children});let r=jsx(Qp.Provider,{value:true,children:e.children});return jsx("template",{children:r})}function zh(e){let t=(r,o)=>useContext(Qp)?null:e(r,o);return t.displayName=e.displayName||e.name,forwardRef(t)}function wh(){return useContext(Qp)}var FD=createContext(false),Bu=createContext(null);function no(e){if(useContext(Bu))return e.content;let{collection:r,document:o}=jB(e.createCollection);return jsxs(Fragment,{children:[jsx(LD,{children:jsx(Bu.Provider,{value:o,children:e.content})}),jsx(BB,{render:e.children,collection:r})]})}function BB({collection:e,render:t}){return t(e)}function HB(e,t,r){let o=eo(),n=useRef(o);n.current=o;let i=useCallback(()=>n.current?r():t(),[t,r]);return useSyncExternalStore(e,i)}var $B=typeof qn.useSyncExternalStore=="function"?qn.useSyncExternalStore:HB;function jB(e){let[t]=useState(()=>new Jp(e?.()||new zn)),r=useCallback(a=>t.subscribe(a),[t]),o=useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),n=useCallback(()=>(t.isSSR=true,t.getCollection()),[t]);return {collection:$B(r,o,n),document:t}}var Rh=createContext(null);function GB(e){return class extends Gt{static type=e}}function KD(e,t,r,o,n,i){typeof e=="string"&&(e=GB(e));let a=useCallback(s=>{s?.setProps(t,r,e,o,i);},[t,r,o,i,e]),l=useContext(Rh);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,o,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),n?jsx(Rh.Provider,{value:s,children:n}):null}return jsx(e.type,{ref:a,children:n})}function dr(e,t){let r=({node:n})=>t(n.props,n.props.ref,n),o=forwardRef((n,i)=>{let a=useContext(Tl);if(!useContext(FD)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(n,i)}return KD(e,n,i,"children"in n?n.children:null,null,s=>jsx(Tl.Provider,{value:a,children:jsx(r,{node:s})}))});return o.displayName=t.name,o}function Vr(e,t,r=VD){let o=({node:i})=>t(i.props,i.props.ref,i),n=forwardRef((i,a)=>{let l=r(i);return KD(e,i,a,null,l,s=>jsx(o,{node:s}))??jsx(Fragment,{})});return n.displayName=t.name,n}function VD(e){return wn({...e,addIdAndValue:true})}var AD=createContext(null);function _t(e){let t=useContext(AD),r=(t?.dependencies||[]).concat(e.dependencies),o=e.idScope??t?.idScope,n=VD({...e,idScope:o,dependencies:r});return useContext(Bu)&&(n=jsx(UB,{children:n})),t=useMemo(()=>({dependencies:r,idScope:o}),[o,...r]),jsx(AD.Provider,{value:t,children:n})}function UB({children:e}){let t=useContext(Bu),r=useMemo(()=>jsx(Bu.Provider,{value:null,children:jsx(FD.Provider,{value:true,children:e})}),[e]);return eo()?jsx(Rh.Provider,{value:t,children:r}):createPortal(r,t)}var tm=createContext(null);var oa={CollectionRoot({collection:e,renderDropIndicator:t}){return HD(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return HD(e,t,r)}};function HD(e,t,r){return wn({items:t?e.getChildren(t.key):e,dependencies:[r],children(o){if(o.type==="content")return jsx(Fragment,{});let n=o.render(o);return !r||o.type!=="item"?n:jsxs(Fragment,{children:[r({type:"item",key:o.key,dropPosition:"before"}),n,Ih(e,o,r)]})}})}function Ih(e,t,r){let o=t.key,n=e.getKeyAfter(o),i=n!=null?e.getItem(n):null;for(;i!=null&&i.type!=="item";)n=e.getKeyAfter(i.key),i=n!=null?e.getItem(n):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s?.type==="item"&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});isValidElement(u)&&l.push(cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null;}}return l}var Re=createContext(oa);function GD(e){return useMemo(()=>e!=null?new Set([e]):null,[e])}function dt(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,i=useRef({isFocusWithin:false}),{addGlobalListener:a,removeAllGlobalListeners:l}=It(),s=useCallback(d=>{Z(d.currentTarget,$(d))&&i.current.isFocusWithin&&!Z(d.currentTarget,d.relatedTarget)&&(i.current.isFocusWithin=false,l(),r&&r(d),n&&n(false));},[r,n,i,l]),u=wp(s),c=useCallback(d=>{if(!Z(d.currentTarget,$(d)))return;let p=$(d),m=U(p),f=de(m);if(!i.current.isFocusWithin&&f===p){o&&o(d),n&&n(true),i.current.isFocusWithin=true,u(d);let y=d.currentTarget;a(m,"focus",b=>{let g=$(b);if(i.current.isFocusWithin&&!Z(y,g)){let x=new m.defaultView.FocusEvent("blur",{relatedTarget:g});zp(x,y);let h=Su(x);s(h);}},{capture:true});}},[o,n,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function ne(e={}){let{autoFocus:t=false,isTextInput:r,within:o}=e,n=useRef({isFocused:false,isFocusVisible:t||Nt()}),[i,a]=useState(false),[l,s]=useState(()=>n.current.isFocused&&n.current.isFocusVisible),u=useCallback(()=>s(n.current.isFocused&&n.current.isFocusVisible),[]),c=useCallback(m=>{n.current.isFocused=m,n.current.isFocusVisible=Nt(),a(m),u();},[u]);wu(m=>{n.current.isFocusVisible=m,u();},[r,i],{enabled:i,isTextInput:r});let{focusProps:d}=tr({isDisabled:o,onFocusChange:c}),{focusWithinProps:p}=dt({isDisabled:!o,onFocusWithinChange:c});return {isFocused:i,isFocusVisible:l,focusProps:o?p:d}}var om=false,rm=0;function _h(){om=true,setTimeout(()=>{om=false;},500);}function YD(e){e.pointerType==="touch"&&_h();}function nH(e=document){if(!(typeof e>"u"))return rm===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",YD):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",_h)),rm++,()=>{rm--,!(rm>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",YD):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",_h));}}function ae(e,t){let{onHoverStart:r,onHoverChange:o,onHoverEnd:n,isDisabled:i}=e,[a,l]=useState(false),s=useRef({isHovered:false,ignoreEmulatedMouseEvents:false,pointerType:"",target:null}).current;useEffect(()=>nH(U(t?.current)),[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=It(),{hoverProps:d,triggerHoverEnd:p}=useMemo(()=>{let m=(b,g)=>{if(s.pointerType=g,i||g==="touch"||s.isHovered||!Z(b.currentTarget,$(b)))return;s.isHovered=true;let x=b.currentTarget;s.target=x,u(U($(b)),"pointerover",h=>{s.isHovered&&s.target&&!Z(s.target,$(h))&&f(h,h.pointerType);},{capture:true}),r&&r({type:"hoverstart",target:x,pointerType:g}),o&&o(true),l(true);},f=(b,g)=>{let x=s.target;s.pointerType="",s.target=null,!(g==="touch"||!s.isHovered||!x)&&(s.isHovered=false,c(),n&&n({type:"hoverend",target:x,pointerType:g}),o&&o(false),l(false));},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=b=>{om&&b.pointerType==="mouse"||m(b,b.pointerType);},y.onPointerLeave=b=>{!i&&Z(b.currentTarget,$(b))&&f(b,b.pointerType);}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=true;},y.onMouseEnter=b=>{!s.ignoreEmulatedMouseEvents&&!om&&m(b,"mouse"),s.ignoreEmulatedMouseEvents=false;},y.onMouseLeave=b=>{!i&&Z(b.currentTarget,$(b))&&f(b,"mouse");}),{hoverProps:y,triggerHoverEnd:f}},[r,o,n,i,s,u,c]);return useEffect(()=>{i&&p({currentTarget:s.target},s.pointerType);},[i]),{hoverProps:d,isHovered:a}}var Po=null;function at(e,t="assertive",r=7e3){Po?Po.announce(e,t,r):(Po=new Lh,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Po.announce(e,t,r):setTimeout(()=>{Po?.isAttached()&&Po?.announce(e,t,r);},100));}function nm(e){Po&&Po.clear(e);}function ZD(){Po&&(Po.destroy(),Po=null);}var Lh=class{node=null;assertiveLog=null;politeLog=null;constructor(){typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node));}isAttached(){return this.node?.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null);}announce(t,r="assertive",o=7e3){if(!this.node)return;let n=document.createElement("div");typeof t=="object"?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",t["aria-labelledby"])):n.textContent=t,r==="assertive"?this.assertiveLog?.appendChild(n):this.politeLog?.appendChild(n),t!==""&&setTimeout(()=>{n.remove();},o);}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""));}};function ft(e,t){let{elementType:r="button",isDisabled:o,onPress:n,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:p,target:m,rel:f,type:y="button"}=e,b;r==="button"?b={type:y,disabled:o,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:b={role:"button",href:r==="a"&&!o?p:void 0,target:r==="a"?m:void 0,type:r==="input"?y:void 0,disabled:r==="input"?o:void 0,"aria-disabled":!o||r==="input"?void 0:o,rel:r==="a"?f:void 0};let{pressProps:g,isPressed:x}=Oe({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:n,onPressUp:l,onClick:d,isDisabled:o,preventFocusOnPress:u,ref:t}),{focusableProps:h}=it(e,t);c&&(h.tabIndex=o?-1:h.tabIndex);let v=M(h,g,oe(e,{labelable:true}));return {isPressed:x,buttonProps:M(b,v,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Ze(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function im(e,t){let r=e,o=0,n=t.toString(),i=n.toLowerCase().indexOf("e-");if(i>0)o=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else {let a=n.indexOf(".");a>=0&&(o=n.length-a);}if(o>0){let a=Math.pow(10,o);r=Math.round(r*a)/a;}return r}function gt(e,t,r,o){t=Number(t),r=Number(r);let n=(e-(isNaN(t)?0:t))%o,i=im(Math.abs(n)*2>=o?e+Math.sign(n)*(o-Math.abs(n)):e-n,o);return isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(im(r/o,o))*o):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor(im((r-t)/o,o))*o),i=im(i,o),i}function St(e,t,r=10){let o=Math.pow(r,t);return Math.round(e*o)/o}function rr(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":n,labelElementType:i="label"}=e;t=ee(t);let a=ee(),l={};r?(o=o?`${a} ${o}`:a,l={id:a,htmlFor:i==="label"?t:void 0}):!o&&!n&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=tt({id:t,"aria-label":n,"aria-labelledby":o});return {labelProps:l,fieldProps:s}}var Mh=new Map,Ah=false;try{Ah=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero";}catch{}var am=false;try{am=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit";}catch{}var JD={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}},Ut=class{numberFormatter;options;constructor(t,r={}){this.numberFormatter=iH(t,r),this.options=r;}format(t){let r="";if(!Ah&&this.options.signDisplay!=null?r=aH(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!am){let{unit:o,unitDisplay:n="short",locale:i}=this.resolvedOptions();if(!o)return r;let a=JD[o]?.[n];r+=a[i]||a.default;}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return `${this.format(t)} \u2013 ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let o=this.numberFormatter.formatToParts(t),n=this.numberFormatter.formatToParts(r);return [...o.map(i=>({...i,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...n.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return !Ah&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!am&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}};function iH(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!am){let{unit:i,unitDisplay:a="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!JD[i]?.[a])throw new Error(`Unsupported unit ${i} with unitDisplay = ${a}`);t={...t,style:"decimal"};}let o=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Mh.has(o))return Mh.get(o);let n=new Intl.NumberFormat(e,t);return Mh.set(o,n),n}function aH(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let o=false;if(t==="always"?o=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):o=r>0),o){let n=e.format(-r),i=e.format(r),a=n.replace(i,"").replace(/\u200e|\u061C/,"");return [...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),n.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}var lH=new RegExp("^.*\\(.*\\).*$"),sH=["latn","arab","hanidec","deva","beng","fullwide"],ai=class{locale;options;constructor(t,r={}){this.locale=t,this.options=r;}parse(t){return Oh(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,o){return Oh(this.locale,this.options,t).isValidPartialNumber(t,r,o)}getNumberingSystem(t){return Oh(this.locale,this.options,t).options.numberingSystem}},QD=new Map;function Oh(e,t,r){let o=ek(e,t);if(!e.includes("-nu-")&&!o.isValidPartialNumber(r)){for(let n of sH)if(n!==o.options.numberingSystem){let i=ek(e+(e.includes("-u-")?"-nu-":"-u-nu-")+n,t);if(i.isValidPartialNumber(r))return i}}return o}function ek(e,t){let r=e+(t?Object.entries(t).sort((n,i)=>n[0]<i[0]?-1:1).join():""),o=QD.get(r);return o||(o=new Nh(e,t),QD.set(r,o)),o}var Nh=class{formatter;options;symbols;locale;constructor(t,r={}){this.locale=t,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=uH(t,this.formatter,this.options,r),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");}parse(t){let r=this.formatter.resolvedOptions().useGrouping,o=this.sanitize(t);if(!r&&this.symbols.group&&o.includes(this.symbols.group))return NaN;if(this.symbols.group&&(o=o.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(o=o.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(o=o.replace(this.symbols.minusSign,"-")),o=o.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let i=o.indexOf("-");o=o.replace("-",""),o=o.replace("+","");let a=o.indexOf(".");a===-1&&(a=o.length),o=o.replace(".",""),a-2===0?o=`0.${o}`:a-2===-1?o=`0.0${o}`:a-2===-2?o="0.00":o=`${o.slice(0,a-2)}.${o.slice(a-2)}`,i>-1&&(o=`-${o}`);}let n=o?+o:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){let i={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new ai(this.locale,i).parse(new Ut(this.locale,i).format(n))}return this.options.currencySign==="accounting"&&lH.test(t)&&(n=-1*n),n}sanitize(t){let r=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(o=>o.unit===t)?this.symbols.noNumeralUnits.find(o=>o.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=ii(t,",",this.symbols.decimal),t=ii(t,"\u060C",this.symbols.decimal)),this.symbols.group&&r&&(t=ii(t,".",this.symbols.group))),this.symbols.group==="\u2019"&&t.includes("'")&&r&&(t=ii(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("\u2019")&&r&&(t=ii(t,"\u2019",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&r&&(t=ii(t," ",this.symbols.group),t=ii(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,r=-1/0,o=1/0){let n=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&o>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?false:(this.symbols.group&&n&&(t=ii(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}},tk=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),rk=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function uH(e,t,r,o){let n=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:true}),i=n.formatToParts(-10000.111),a=n.formatToParts(10000.111),l=rk.map(T=>n.formatToParts(T)),s=l.map((T,P)=>{let k=T.find(S=>S.type==="unit");return k&&!T.some(S=>S.type==="integer"||S.type==="fraction")?{unit:k.value,value:rk[P]}:null}).filter(T=>!!T),u=i.find(T=>T.type==="minusSign")?.value??"-",c=a.find(T=>T.type==="plusSign")?.value;!c&&(o?.signDisplay==="exceptZero"||o?.signDisplay==="always")&&(c="+");let p=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(T=>T.type==="decimal")?.value,m=i.find(T=>T.type==="group")?.value,f=i.filter(T=>!tk.has(T.type)).map(T=>ok(T.value)),y=l.flatMap(T=>T.filter(P=>!tk.has(P.type)).map(P=>ok(P.value))),b=[...new Set([...f,...y])].sort((T,P)=>P.length-T.length),g=b.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${b.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=[...new Intl.NumberFormat(r.locale,{useGrouping:false}).format(9876543210)].reverse(),h=new Map(x.map((T,P)=>[T,P])),v=new RegExp(`[${x.join("")}]`,"g");return {minusSign:u,plusSign:c,decimal:p,group:m,literals:g,numeral:v,numerals:x,index:T=>String(h.get(T)),noNumeralUnits:s}}function ii(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function ok(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function So(e={}){let{locale:t}=Q();return useMemo(()=>new Ut(t,e),[t,e])}function Hu(e){let{value:t=0,minValue:r=0,maxValue:o=100,valueLabel:n,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=oe(e,{labelable:true}),{labelProps:s,fieldProps:u}=rr({...e,labelElementType:"span"});t=Ze(t,r,o);let c=(t-r)/(o-r),d=So(a);if(!i&&!n){let p=a.style==="percent"?c:t;n=d.format(p);}return {progressBarProps:M(l,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":o,"aria-valuetext":i?void 0:n,role:"progressbar"}),labelProps:s}}var io=createContext({});var na={"ar-AE":{dateRange:e=>`${e.startDate} \u0625\u0644\u0649 ${e.endDate}`,dateSelected:e=>`${e.date} \u0627\u0644\u0645\u062D\u062F\u062F`,finishRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0625\u0646\u0647\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",maximumDate:"\u0622\u062E\u0631 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",minimumDate:"\u0623\u0648\u0644 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",next:"\u0627\u0644\u062A\u0627\u0644\u064A",previous:"\u0627\u0644\u0633\u0627\u0628\u0642",selectedDateDescription:e=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${e.date}`,selectedRangeDescription:e=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.dateRange}`,startRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",todayDate:e=>`\u0627\u0644\u064A\u0648\u0645\u060C ${e.date}`,todayDateSelected:e=>`\u0627\u0644\u064A\u0648\u0645\u060C ${e.date} \u0645\u062D\u062F\u062F`},"bg-BG":{dateRange:e=>`${e.startDate} \u0434\u043E ${e.endDate}`,dateSelected:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0435 ${e.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0434\u043E\u0432\u044A\u0440\u0448\u0438\u0442\u0435 \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u044A\u0440\u0432\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u043F\u0440\u0435\u0434",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0438\u0441\u0442\u044A\u043F\u0438\u0442\u0435 \u043A\u044A\u043C \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",todayDate:e=>`\u0414\u043D\u0435\u0441, ${e.date}`,todayDateSelected:e=>`\u0414\u043D\u0435\u0441, ${e.date} \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u017E ${e.endDate}`,dateSelected:e=>`Vybr\xE1no ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDb\u011Br rozsahu dat",maximumDate:"Posledn\xED dostupn\xE9 datum",minimumDate:"Prvn\xED dostupn\xE9 datum",next:"Dal\u0161\xED",previous:"P\u0159edchoz\xED",selectedDateDescription:e=>`Vybran\xE9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xE9 obdob\xED: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm zah\xE1j\xEDte v\xFDb\u011Br rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xE1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xF8re valg af datoomr\xE5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xF8rste ledige dato",next:"N\xE6ste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xE5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xE4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xFCgbares Datum",minimumDate:"Erstes verf\xFCgbares Datum",next:"Weiter",previous:"Zur\xFCck",selectedDateDescription:e=>`Ausgew\xE4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xE4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xE4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u03AD\u03C9\u03C2 ${e.endDate}`,dateSelected:e=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${e.date}`,finishRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",maximumDate:"\u03A4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",minimumDate:"\u03A0\u03C1\u03CE\u03C4\u03B7 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",previous:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",selectedDateDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${e.date}`,selectedRangeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${e.dateRange}`,startRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",todayDate:e=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, ${e.date}`,todayDateSelected:e=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03C4\u03B7\u03BA\u03B5 ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xDAltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimise l\xF5petamiseks",maximumDate:"Viimane saadaolev kuup\xE4ev",minimumDate:"Esimene saadaolev kuup\xE4ev",next:"J\xE4rgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xE4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimiseks",todayDate:e=>`T\xE4na, ${e.date}`,todayDateSelected:e=>`T\xE4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u2013 ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",maximumDate:"Viimeinen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",minimumDate:"Ensimm\xE4inen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xE4li: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",todayDate:e=>`T\xE4n\xE4\xE4n, ${e.date}`,todayDateSelected:e=>`T\xE4n\xE4\xE4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xE0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xE9lectionn\xE9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xE9lectionner la plage de dates",maximumDate:"Derni\xE8re date disponible",minimumDate:"Premi\xE8re date disponible",next:"Suivant",previous:"Pr\xE9c\xE9dent",selectedDateDescription:e=>`Date s\xE9lectionn\xE9e\xA0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xE9lectionn\xE9e\xA0: ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xE0 s\xE9lectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u2019hui, ${e.date} s\xE9lectionn\xE9`},"he-IL":{dateRange:e=>`${e.startDate} \u05E2\u05D3 ${e.endDate}`,dateSelected:e=>`${e.date} \u05E0\u05D1\u05D7\u05E8`,finishRangeSelectionPrompt:"\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",maximumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05D0\u05D7\u05E8\u05D5\u05DF",minimumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05E8\u05D0\u05E9\u05D5\u05DF",next:"\u05D4\u05D1\u05D0",previous:"\u05D4\u05E7\u05D5\u05D3\u05DD",selectedDateDescription:e=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${e.date}`,selectedRangeDescription:e=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${e.dateRange}`,startRangeSelectionPrompt:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",todayDate:e=>`\u05D4\u05D9\u05D5\u05DD, ${e.date}`,todayDateSelected:e=>`\u05D4\u05D9\u05D5\u05DD, ${e.date} \u05E0\u05D1\u05D7\u05E8`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite raspon odabranih datuma",maximumDate:"Posljednji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Sljede\u0107i",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u2013${e.endDate}`,dateSelected:e=>`${e.date} kiv\xE1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek befejez\xE9s\xE9hez",maximumDate:"Utols\xF3 el\xE9rhet\u0151 d\xE1tum",minimumDate:"Az els\u0151 el\xE9rhet\u0151 d\xE1tum",next:"K\xF6vetkez\u0151",previous:"El\u0151z\u0151",selectedDateDescription:e=>`Kijel\xF6lt d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xF6lt tartom\xE1ny: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek ind\xEDt\xE1s\xE1hoz",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xF6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell\u2019intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l\u2019intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u304B\u3089 ${e.endDate}`,dateSelected:e=>`${e.date} \u3092\u9078\u629E`,finishRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u7D42\u4E86",maximumDate:"\u6700\u7D42\u5229\u7528\u53EF\u80FD\u65E5",minimumDate:"\u6700\u521D\u306E\u5229\u7528\u53EF\u80FD\u65E5",next:"\u6B21\u3078",previous:"\u524D\u3078",selectedDateDescription:e=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${e.date}`,selectedRangeDescription:e=>`\u9078\u629E\u7BC4\u56F2 : ${e.dateRange}`,startRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u958B\u59CB",todayDate:e=>`\u672C\u65E5\u3001${e.date}`,todayDateSelected:e=>`\u672C\u65E5\u3001${e.date} \u3092\u9078\u629E`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \uC120\uD0DD\uB428`,finishRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC644\uB8CC\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",maximumDate:"\uB9C8\uC9C0\uB9C9\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",minimumDate:"\uCC98\uC74C\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",next:"\uB2E4\uC74C",previous:"\uC774\uC804",selectedDateDescription:e=>`\uC120\uD0DD \uC77C\uC790: ${e.date}`,selectedRangeDescription:e=>`\uC120\uD0DD \uBC94\uC704: ${e.dateRange}`,startRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",todayDate:e=>`\uC624\uB298, ${e.date}`,todayDateSelected:e=>`\uC624\uB298, ${e.date} \uC120\uD0DD\uB428`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustel\u0117kite, kad baigtum\u0117te pasirinkti dat\u0173 interval\u0105",maximumDate:"Paskutin\u0117 galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustel\u0117kite, kad prad\u0117tum\u0117te pasirinkti dat\u0173 interval\u0105",todayDate:e=>`\u0160iandien, ${e.date}`,todayDateSelected:e=>`\u0160iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u012Bdz ${e.endDate}`,dateSelected:e=>`Atlas\u012Bts: ${e.date}`,finishRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"P\u0113d\u0113jais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"T\u0101l\u0101k",previous:"Atpaka\u013C",selectedDateDescription:e=>`Atlas\u012Btais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u012Btais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai s\u0101ktu datumu diapazona atlasi",todayDate:e=>`\u0160odien, ${e.date}`,todayDateSelected:e=>`Atlas\u012Bta \u0161odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xE5 fullf\xF8re valg av datoomr\xE5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xF8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xE5de: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for \xE5 starte valg av datoomr\xE5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zako\u0144czy\u0107 wyb\xF3r zakresu dat",maximumDate:"Ostatnia dost\u0119pna data",minimumDate:"Pierwsza dost\u0119pna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocz\u0105\u0107 wyb\xF3r zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xE7\xE3o do intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xE7\xE3o do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para come\xE7ar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xE2n\u0103 la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u0103`,finishRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a finaliza selec\u0163ia razei pentru dat\u0103",maximumDate:"Ultima dat\u0103 disponibil\u0103",minimumDate:"Prima dat\u0103 disponibil\u0103",next:"Urm\u0103torul",previous:"\xCEnainte",selectedDateDescription:e=>`Dat\u0103 selectat\u0103: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a \xEEncepe selec\u0163ia razei pentru dat\u0103",todayDate:e=>`Ast\u0103zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u0103`},"ru-RU":{dateRange:e=>`\u0421 ${e.startDate} \u043F\u043E ${e.endDate}`,dateSelected:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043E ${e.date}`,finishRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0432\u0430\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",next:"\u0414\u0430\u043B\u0435\u0435",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",todayDate:e=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, ${e.date}`,todayDateSelected:e=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xFD d\xE1tum ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDber rozsahu d\xE1tumov",maximumDate:"Posledn\xFD dostupn\xFD d\xE1tum",minimumDate:"Prv\xFD dostupn\xFD d\xE1tum",next:"Nasleduj\xFAce",previous:"Predch\xE1dzaj\xFAce",selectedDateDescription:e=>`Vybrat\xFD d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xFD rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm spust\xEDte v\xFDber rozsahu d\xE1tumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xFD dne\u0161n\xFD d\xE1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokon\u010Danje izbire datumskega obsega",maximumDate:"Zadnji razpolo\u017Eljivi datum",minimumDate:"Prvi razpolo\u017Eljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u010Dje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za za\u010Detek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite opseg izabranih datuma",maximumDate:"Zadnji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Slede\u0107i",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xF6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xE4ngliga datum",minimumDate:"F\xF6rsta tillg\xE4ngliga datum",next:"N\xE4sta",previous:"F\xF6reg\xE5ende",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka f\xF6r att v\xE4lja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xE7ildi`,finishRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini tamamlamak i\xE7in t\u0131klay\u0131n",maximumDate:"Son m\xFCsait tarih",minimumDate:"\u0130lk m\xFCsait tarih",next:"Sonraki",previous:"\xD6nceki",selectedDateDescription:e=>`Se\xE7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xE7ilen Aral\u0131k: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini ba\u015Flatmak i\xE7in t\u0131klay\u0131n",todayDate:e=>`Bug\xFCn, ${e.date}`,todayDateSelected:e=>`Bug\xFCn, ${e.date} se\xE7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u2014 ${e.endDate}`,dateSelected:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E ${e.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",maximumDate:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0448\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",previous:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",selectedDateDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",todayDate:e=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, ${e.date}`,todayDateSelected:e=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, \u0432\u0438\u0431\u0440\u0430\u043D\u043E ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u81F3 ${e.endDate}`,dateSelected:e=>`\u5DF2\u9009\u62E9 ${e.date}`,finishRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5B8C\u6210\u9009\u62E9\u65E5\u671F\u8303\u56F4",maximumDate:"\u6700\u540E\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9875",previous:"\u4E0A\u4E00\u9875",selectedDateDescription:e=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${e.dateRange}`,startRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5F00\u59CB\u9009\u62E9\u65E5\u671F\u8303\u56F4",todayDate:e=>`\u4ECA\u5929\uFF0C\u5373 ${e.date}`,todayDateSelected:e=>`\u5DF2\u9009\u62E9\u4ECA\u5929\uFF0C\u5373 ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u81F3 ${e.endDate}`,dateSelected:e=>`\u5DF2\u9078\u53D6 ${e.date}`,finishRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u5B8C\u6210\u9078\u53D6\u65E5\u671F\u7BC4\u570D",maximumDate:"\u6700\u5F8C\u4E00\u500B\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u500B\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9801",previous:"\u4E0A\u4E00\u9801",selectedDateDescription:e=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${e.dateRange}`,startRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u958B\u59CB\u9078\u53D6\u65E5\u671F\u7BC4\u570D",todayDate:e=>`\u4ECA\u5929\uFF0C${e.date}`,todayDateSelected:e=>`\u5DF2\u9078\u53D6\u4ECA\u5929\uFF0C${e.date}`}};function lm(e,t){let r=useRef(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}function Lt(e){e=lm(e??{},yH);let{locale:t}=Q();return useMemo(()=>new DateFormatter(t,e),[t,e])}function yH(e,t){if(e===t)return true;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return false;for(let n of r)if(t[n]!==e[n])return false;return true}var El=new WeakMap;function kl(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function ik(e){let t=Te(na,"@react-aria/calendar"),r,o;"highlightedRange"in e?{start:r,end:o}=e.highlightedRange||{}:(r=Array.isArray(e.value)?e.value[0]:e.value??void 0,o=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let n=Lt({weekday:"long",month:"long",year:"numeric",day:"numeric",era:kl(r)||kl(o),timeZone:e.timeZone}),{locale:i}=Q(),a=useMemo(()=>new Intl.ListFormat(i),[i]),l="anchorDate"in e?e.anchorDate:null;return useMemo(()=>{if(!l&&r&&o){if(isSameDay(r,o)){let s=n.format(r.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else if("highlightedRange"in e){let s=Kh(n,t,r,o,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}else if(Array.isArray(e.value)){let s=e.value.map(c=>n.format(c.toDate(e.timeZone))),u=a.format(s);return t.format("selectedDateDescription",{date:u})}}return ""},[r,o,l,e,t,n,a])}function $u(e,t,r,o){let n=Te(na,"@react-aria/calendar"),i=kl(e)||kl(t),a=Lt({month:"long",year:"numeric",era:i,calendar:e.calendar.identifier,timeZone:r}),l=Lt({month:"long",year:"numeric",day:"numeric",era:i,calendar:e.calendar.identifier,timeZone:r});return useMemo(()=>{if(isSameDay(e,startOfMonth(e))){let s=e,u=t;if(e.calendar.getFormattableMonth&&(s=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(u=t.calendar.getFormattableMonth(t)),isSameDay(t,endOfMonth(e)))return a.format(s.toDate(r));if(isSameDay(t,endOfMonth(t)))return o?Kh(a,n,s,u,r):a.formatRange(s.toDate(r),u.toDate(r))}return o?Kh(l,n,e,t,r):l.formatRange(e.toDate(r),t.toDate(r))},[e,t,a,l,n,r,o])}function Kh(e,t,r,o,n){let i=e.formatRangeToParts(r.toDate(n),o.toDate(n)),a=-1;for(let u=0;u<i.length;u++){let c=i[u];if(c.source==="shared"&&c.type==="literal")a=u;else if(c.source==="endRange")break}let l="",s="";for(let u=0;u<i.length;u++)u<a?l+=i[u].value:u>a&&(s+=i[u].value);return t.format("dateRange",{startDate:l,endDate:s})}function Rn(e,t){let r=useRef(true),o=useRef(null),n=De(e);useEffect(()=>(r.current=true,()=>{r.current=false;}),[]),useEffect(()=>{let i=o.current;r.current?r.current=false:(!i||t.some((a,l)=>!Object.is(a,i[l])))&&n(),o.current=t;},t);}function um(e,t){let r=Te(na,"@react-aria/calendar"),o=oe(e),n=$u(t.visibleRange.start,t.visibleRange.end,t.timeZone,false),i=$u(t.visibleRange.start,t.visibleRange.end,t.timeZone,true);Rn(()=>{t.isFocused||at(i);},[i]);let a=ik(t);Rn(()=>{a&&at(a,"polite",4e3);},[a]);let l=Pt([!!e.errorMessage,e.isInvalid,e.validationState]);El.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:a});let[s,u]=useState(false),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&s&&(u(false),t.setFocused(true));let[d,p]=useState(false),m=e.isDisabled||t.isPreviousVisibleRangeInvalid();m&&d&&(p(false),t.setFocused(true));let f=tt({id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return {calendarProps:M(o,f,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":r.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:m,onFocusChange:p},errorMessageProps:{id:l},title:n}}function Vh(e,t){return um(e,t)}function Bh(e,t){let{startDate:r=t.visibleRange.start,endDate:o=t.visibleRange.end,firstDayOfWeek:n}=e,{direction:i}=Q(),a=y=>{switch(y.key){case "Enter":case " ":y.preventDefault(),t.selectFocusedDate();break;case "PageUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousSection(y.shiftKey);break;case "PageDown":y.preventDefault(),y.stopPropagation(),t.focusNextSection(y.shiftKey);break;case "End":y.preventDefault(),y.stopPropagation(),t.focusSectionEnd();break;case "Home":y.preventDefault(),y.stopPropagation(),t.focusSectionStart();break;case "ArrowLeft":y.preventDefault(),y.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case "ArrowUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousRow();break;case "ArrowRight":y.preventDefault(),y.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case "ArrowDown":y.preventDefault(),y.stopPropagation(),t.focusNextRow();break;case "Escape":"setAnchorDate"in t&&(y.preventDefault(),t.setAnchorDate(null));break}},l=$u(r,o,t.timeZone,true),{ariaLabel:s,ariaLabelledBy:u}=El.get(t),c=tt({"aria-label":[s,l].filter(Boolean).join(", "),"aria-labelledby":u}),d=Lt({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=Q(),m=useMemo(()=>{let y=t.visibleDuration.days&&t.visibleDuration.days<7,b=y?r:startOfWeek(today(t.timeZone),p,n),g=y?t.visibleDuration.days:7;return [...new Array(g).keys()].map(x=>{let v=b.add({days:x}).toDate(t.timeZone);return d.format(v)})},[p,t.timeZone,d,n,r,t.visibleDuration.days]),f=t.getWeeksInMonth(r);return {gridProps:M(c,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onKeyDown:a,onFocus:()=>t.setFocused(true),onBlur:()=>t.setFocused(false)}),headerProps:{"aria-hidden":true},weekDays:m,weeksInMonth:f}}function Wt(e,t){if(!e)return false;let o=Y(e).getComputedStyle(e),n=/(auto|scroll)/.test(o.overflow+o.overflowX+o.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Qe(e,t){let r=e;for(Wt(r,t)&&(r=r.parentElement);r&&!Wt(r,t);)r=r.parentElement;let o=U(e);return r||o.scrollingElement||o.documentElement}function zl(e,t){let r=[],o=U(e),n=o.scrollingElement||o.documentElement;for(;e&&(Wt(e,t)&&r.push(e),e!==n);)e=e.parentElement;return r}function Hh(e,t){let o=U(t).defaultView||window,n=uk(e,t,"left"),i=uk(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,s=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d,scrollPaddingTop:p,scrollPaddingRight:m,scrollPaddingBottom:f,scrollPaddingLeft:y}=o.getComputedStyle(e),{scrollMarginTop:b,scrollMarginRight:g,scrollMarginBottom:x,scrollMarginLeft:h}=o.getComputedStyle(t),v=s+parseInt(d,10),C=u+parseInt(c,10),T=v+e.clientWidth,P=C+e.clientHeight,k=parseInt(p,10)||0,S=parseInt(f,10)||0,w=parseInt(m,10)||0,E=parseInt(y,10)||0,z=parseInt(b,10)||0,A=parseInt(x,10)||0,D=parseInt(g,10)||0,O=parseInt(h,10)||0,R=n-O,N=n+a+D,F=i-z,I=i+l+A,V=s+parseInt(d,10)+E,H=T-w,K=u+parseInt(c,10)+k,L=P-S;if((R>V||N<H)&&(R<=s+E?s=R-parseInt(d,10)-E:N>T-w&&(s+=N-T+w)),(F>K||I<L)&&(F<=C+k?u=F-parseInt(c,10)-k:I>P-S&&(u+=I-P+S)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=u;return}e.scrollTo({left:s,top:u});}function uk(e,t,r){let o=r==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);){if(Z(t.offsetParent,e)){n-=e[o];break}t=t.offsetParent;}return n}function wt(e,t){let r=U(e),o=r.defaultView||window;if(e&&Z(r.body,e)){let n=r.scrollingElement||r.documentElement,i=o.getComputedStyle(n).overflow==="hidden";if(!i&&!qi()){let{left:a,top:l}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:u}=e.getBoundingClientRect();(Math.abs(a-s)>1||Math.abs(l-u)>1)&&(t?.containingElement?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}));}else {let a=zl(e);i||a.push(n);for(let l of a)Hh(l,e);}}}var TH=0,ck=new WeakMap;function Dt(e,t){let[r,o]=useState();return re(()=>{if(!e)return;let n=t?.current?.getRootNode()||document,i=n?.ownerDocument||document,a=ck.get(n);a||(a=new Map,ck.set(n,a));let l=a.get(e);if(l)o(l.element.id);else {let s=`react-aria-description-${TH++}`;o(s);let u=i.createElement("div");u.id=s,u.style.display="none",u.textContent=e,"body"in n?n.body.appendChild(u):n.appendChild(u),l={refCount:0,element:u},a.set(e,l);}return l.refCount++,()=>{l&&--l.refCount===0&&(l.element.remove(),a.delete(e));}},[e]),{"aria-describedby":e?r:void 0}}function Gh(e,t,r){let{date:o,isDisabled:n}=e,{errorMessageId:i,selectedDateDescription:a}=El.get(t),l=Te(na,"@react-aria/calendar"),s=Lt({weekday:"long",day:"numeric",month:"long",year:"numeric",era:kl(o),timeZone:t.timeZone}),u=t.isCellFocused(o)&&!e.isOutsideMonth;n=n||t.isCellDisabled(o)||!!e.isOutsideMonth;let c=t.isCellUnavailable(o),d=!n&&!c,p=t.isSelected(o)&&d,m=false;t.isValueInvalid&&("highlightedRange"in t?m=!t.anchorDate&&t.highlightedRange!=null&&o.compare(t.highlightedRange.start)>=0&&o.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?m=t.value.some(E=>isSameDay(E,o)):t.value&&(m=isSameDay(t.value,o))),m&&!n&&(p=true),o=lm(o,isEqualDay);let f=useMemo(()=>o.toDate(t.timeZone),[o,t.timeZone]),y=isToday(o,t.timeZone),b=useMemo(()=>{let E="";return "highlightedRange"in t&&t.value&&!t.anchorDate&&(isSameDay(o,t.value.start)||isSameDay(o,t.value.end))&&(E=a+", "),E+=s.format(f),y?E=l.format(p?"todayDateSelected":"todayDate",{date:E}):p&&(E=l.format("dateSelected",{date:E})),t.minValue&&isSameDay(o,t.minValue)?E+=", "+l.format("minimumDate"):t.maxValue&&isSameDay(o,t.maxValue)&&(E+=", "+l.format("maximumDate")),E},[s,f,l,p,y,o,t,a]),g="";"anchorDate"in t&&u&&!t.isReadOnly&&d&&(t.anchorDate?g=l.format("finishRangeSelectionPrompt"):g=l.format("startRangeSelectionPrompt"));let x=Dt(g),h=useRef(false),v=useRef(false),C=useRef(void 0),{pressProps:T,isPressed:P}=Oe({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:true,isDisabled:!d||t.isReadOnly,onPressStart(E){if(t.isReadOnly){t.setFocusedDate(o),t.setFocused(true);return}if("highlightedRange"in t&&!t.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(t.highlightedRange&&!m){if(isSameDay(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setFocused(true),t.setDragging(true),v.current=true;return}else if(isSameDay(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setFocused(true),t.setDragging(true),v.current=true;return}}let z=()=>{t.setDragging(true),C.current=void 0,t.selectDate(o),t.setFocusedDate(o),t.setFocused(true),h.current=true;};E.pointerType==="touch"?C.current=setTimeout(z,200):z();}},onPressEnd(){v.current=false,h.current=false,clearTimeout(C.current),C.current=void 0;},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(true));},onPressUp(E){t.isReadOnly||("anchorDate"in t&&C.current&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(true)),"anchorDate"in t&&(v.current?t.setAnchorDate(o):t.anchorDate&&!h.current?(t.selectDate(o),t.setFocusedDate(o),t.setFocused(true)):E.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(o),t.focusNearestAvailableDate(o)):E.pointerType==="virtual"&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(true))));}}),k;n||(k=isSameDay(o,t.focusedDate)?0:-1),useEffect(()=>{u&&r.current&&($e(r.current),zt()!=="pointer"&&de(U(r.current))===r.current&&wt(r.current,{containingElement:Qe(r.current)}));},[u,r]);let S=Lt({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),w=useMemo(()=>S.formatToParts(f).find(E=>E.type==="day").value,[S,f]);return {cellProps:{role:"gridcell","aria-disabled":!d||void 0,"aria-selected":p||void 0,"aria-invalid":m||void 0},buttonProps:M(T,{onFocus(){n||(t.setFocusedDate(o),t.setFocused(true));},tabIndex:k,role:"button","aria-disabled":!d||void 0,"aria-label":b,"aria-invalid":m||void 0,"aria-describedby":[m?i:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in t&&(E.pointerType!=="touch"||t.isDragging)&&d&&t.highlightDate(o);},onPointerDown(E){let z=$(E);z instanceof Y(z).HTMLElement&&"releasePointerCapture"in z&&("hasPointerCapture"in z?z.hasPointerCapture(E.pointerId)&&z.releasePointerCapture(E.pointerId):z.releasePointerCapture(E.pointerId));},onContextMenu(E){E.preventDefault();}}),isPressed:P,isFocused:u,isSelected:p,isDisabled:n,isUnavailable:c,isOutsideVisibleRange:o.compare(t.visibleRange.start)<0||o.compare(t.visibleRange.end)>0,isInvalid:m,formattedDate:w}}function Uh(e,t){let r=useMemo(()=>{let i=t.visibleRange.start;return e.offset&&(i=i.add(e.offset)),i},[t.visibleRange.start,e.offset]),o=t.visibleDuration.days||t.visibleDuration.weeks,n=Lt({day:e.format?.day||(o?"numeric":void 0),month:e.format?.month||"long",year:e.format?.year||"numeric",era:e.format?.era||r&&r.calendar.identifier==="gregory"&&r.era==="BC"?"short":void 0,calendar:t.visibleRange?.start.calendar.identifier,timeZone:t.timeZone});return useMemo(()=>{if(o)return n.formatRange(r.toDate(t.timeZone),t.visibleRange.end.toDate(t.timeZone));let i=r.calendar.getFormattableMonth?r.calendar.getFormattableMonth(r):r;return n.format(i.toDate(t.timeZone))},[n,o,r,t.timeZone,t.visibleRange.end])}function Wh(e,t,r){let{commitBehavior:o="select",...n}=e,i=um(n,t),a=useRef(false),l=useRef(typeof window<"u"?window:null);ct(l,"pointerdown",c=>{a.current=c.width===0&&c.height===0;});let s={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return ct(l,"pointerup",c=>{if(a.current){a.current=false;return}if(t.setDragging(false),!t.anchorDate)return;let d=$(c);r.current&&Co(r.current)&&(!Z(r.current,d)||!d.closest('button, [role="button"]'))&&s[o]();}),i.calendarProps.onBlur=c=>{r.current&&(!c.relatedTarget||!Z(r.current,c.relatedTarget))&&t.anchorDate&&s[o]();},ct(r,"touchmove",c=>{t.isDragging&&c.preventDefault();},{passive:false,capture:true}),i}function Go(e,t,r){return t!=null&&e.compare(t)<0||r!=null&&e.compare(r)>0}function ju(e,t,r,o,n){let i={};for(let l in t)i[l]=Math.floor(t[l]/2),i[l]>0&&t[l]%2===0&&i[l]--;let a=li(e,t,r).subtract(i);return wl(e,a,t,r,o,n)}function li(e,t,r,o,n){let i=e;return t.years?i=startOfYear(e):t.months?i=startOfMonth(e):(t.weeks||t.days&&t.days>7)&&(i=startOfWeek(e,r)),wl(e,i,t,r,o,n)}function dm(e,t,r,o,n){let i={...t};i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--;let a=li(e,t,r).subtract(i);return wl(e,a,t,r,o,n)}function wl(e,t,r,o,n,i){if(n&&e.compare(n)>=0){let a=maxDate(t,li(toCalendarDate(n),r,o));a&&(t=a);}if(i&&e.compare(i)<=0){let a=minDate(t,dm(toCalendarDate(i),r,o));a&&(t=a);}return t}function ao(e,t,r){if(t){let o=maxDate(e,toCalendarDate(t));o&&(e=o);}if(r){let o=minDate(e,toCalendarDate(r));o&&(e=o);}return e}function pm(e,t,r){if(!r)return e;for(;e.compare(t)>=0&&r(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function yk(e,t){return e===t?true:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function Gu(e){let t=useMemo(()=>new DateFormatter(e.locale),[e.locale]),r=useMemo(()=>t.resolvedOptions(),[t]),{locale:o,createCalendar:n,visibleDuration:i={months:1},minValue:a,maxValue:l,selectionAlignment:s,isDateUnavailable:u,pageBehavior:c="visible",selectionMode:d="single",firstDayOfWeek:p,weeksInMonth:m}=e,f=useMemo(()=>n(r.calendar),[n,r.calendar]),[y,b]=ye(e.value,e.defaultValue??null,e.onChange),g=useMemo(()=>Array.isArray(y)?y.map(B=>toCalendar(toCalendarDate(B),f)):y?toCalendar(toCalendarDate(y),f):null,[y,f]),x=useMemo(()=>{let B=Array.isArray(y)?y[0]:y;return B&&"timeZone"in B?B.timeZone:r.timeZone},[y,r.timeZone]),h=useMemo(()=>e.focusedValue?ao(toCalendar(toCalendarDate(e.focusedValue),f),a,l):void 0,[e.focusedValue,f,a,l]),v=useMemo(()=>e.defaultFocusedValue?ao(toCalendar(toCalendarDate(e.defaultFocusedValue),f),a,l):g?ao(Array.isArray(g)?g[0]:g,a,l):ao(toCalendar(today(x),f),a,l),[e.defaultFocusedValue,g,x,f,a,l]),[C,T]=ye(h,v,e.onFocusChange),P=()=>{switch(s){case "start":return li(C,i,o,a,l);case "end":return dm(C,i,o,a,l);default:return ju(C,i,o,a,l)}},[k,S]=useState(P),[w,E]=useState(e.autoFocus||false),[z,A]=useState(i);yk(i,z)||(A(i),S(P()));let D=useMemo(()=>{let B={...i};return B.days?B.days--:B.days=-1,k.add(B)},[k,i]),[O,R]=useState(f);if(!isEqualCalendar(f,O)){let B=toCalendar(C,f);S(ju(B,i,o,a,l)),T(B),R(f);}Go(C,a,l)?T(ao(C,a,l)):C.compare(k)<0?S(dm(C,i,o,a,l)):C.compare(D)>0&&S(li(C,i,o,a,l));function N(B){B=ao(B,a,l),T(B);}function F(B){let G=ao(B,a,l),q=pm(G,k,u);if(!q)return null;let W=Array.isArray(y)?y[0]:y,X=toCalendar(q,W?.calendar||new GregorianCalendar);return W&&"hour"in W?W.set(X):X}function I(B){if(!e.isDisabled&&!e.isReadOnly){if(B===null){b(d==="multiple"?[]:null);return}if(Array.isArray(B))b(B.map(F).filter(Boolean));else {let G=F(B);G&&b(G);}}}let V=useMemo(()=>g?Array.isArray(g)?g.some(B=>u?.(B)||Go(B,a,l)):u?.(g)||Go(g,a,l):false,[g,u,a,l]),H=e.isInvalid||e.validationState==="invalid"||V,K=H?"invalid":null,L=useMemo(()=>c==="visible"?i:qh(i),[c,i]);return {isDisabled:e.isDisabled??false,isReadOnly:e.isReadOnly??false,value:g,setValue:I,selectionMode:d,visibleDuration:i,visibleRange:{start:k,end:D},minValue:a,maxValue:l,focusedDate:C,timeZone:x,validationState:K,isValueInvalid:H,setFocusedDate(B){N(B);},focusNextDay(){N(C.add({days:1}));},focusPreviousDay(){N(C.subtract({days:1}));},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&N(C.add({weeks:1}));},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&N(C.subtract({weeks:1}));},focusNextPage(){let B=k.add(L);T(ao(C.add(L),a,l)),S(li(wl(C,B,L,o,a,l),L,o));},focusPreviousPage(){let B=k.subtract(L);T(ao(C.subtract(L),a,l)),S(li(wl(C,B,L,o,a,l),L,o));},focusSectionStart(){i.days?N(k):i.weeks?N(startOfWeek(C,o)):(i.months||i.years)&&N(startOfMonth(C));},focusSectionEnd(){i.days?N(D):i.weeks?N(endOfWeek(C,o)):(i.months||i.years)&&N(endOfMonth(C));},focusNextSection(B){if(!B&&!i.days){N(C.add(qh(i)));return}i.days?this.focusNextPage():i.weeks?N(C.add({months:1})):(i.months||i.years)&&N(C.add({years:1}));},focusPreviousSection(B){if(!B&&!i.days){N(C.subtract(qh(i)));return}i.days?this.focusPreviousPage():i.weeks?N(C.subtract({months:1})):(i.months||i.years)&&N(C.subtract({years:1}));},selectFocusedDate(){u&&u(C)||this.selectDate(C);},selectDate(B){if(!(e.isDisabled||e.isReadOnly))if(d==="multiple"&&B!=null){let G=F(B);if(!G)return;let q=[];Array.isArray(y)?q=y:y!=null&&(q=[y]);let W=q.findIndex(ce=>isSameDay(ce,G)),X=W>=0?q.slice(0,W).concat(q.slice(W+1)):[...q,G];b(X);}else I(B);},isFocused:w,setFocused:E,isInvalid(B){return Go(B,a,l)},isSelected(B){return !g||this.isCellDisabled(B)||this.isCellUnavailable(B)?false:Array.isArray(g)?g.some(G=>isSameDay(G,B)):isSameDay(B,g)},isCellFocused(B){return w&&C&&isSameDay(B,C)},isCellDisabled(B){return e.isDisabled||B.compare(k)<0||B.compare(D)>0||this.isInvalid(B)},isCellUnavailable(B){return e.isDateUnavailable?e.isDateUnavailable(B):false},isPreviousVisibleRangeInvalid(){let B=k.subtract({days:1});return isSameDay(B,k)||this.isInvalid(B)},isNextVisibleRangeInvalid(){let B=D.add({days:1});return isSameDay(B,D)||this.isInvalid(B)},getDatesInWeek(B,G=k){let q=G.add({weeks:B}),W=[],X=i.days&&i.days<7?i.days:7;if(X===7){q=startOfWeek(q,o,p);let ce=getDayOfWeek(q,o,p);for(let te=0;te<ce;te++)W.push(null);}for(;W.length<X;){W.push(q);let ce=q.add({days:1});if(isSameDay(q,ce))break;q=ce;}for(;W.length<X;)W.push(null);return W},getWeeksInMonth(B=k){let G=m||getWeeksInMonth(B,o,p);return (i.weeks||i.days)&&(G=i.weeks??0,i.days&&(G+=Math.ceil(i.days/7))),G}}}function qh(e){let t={...e};for(let r in e)t[r]=1;return t}function Zh(e){let{value:t,defaultValue:r,onChange:o,createCalendar:n,locale:i,visibleDuration:a={months:1},minValue:l,maxValue:s,...u}=e,[c,d]=ye(t,r||null,o),[p,m]=useState(null),f="center";if(c&&c.start&&c.end){let A=ju(toCalendarDate(c.start),a,i,l,s).add(a).subtract({days:1});c.end.compare(A)>0&&(f="start");}let y=useMemo(()=>{let z=e.isDateUnavailable;if(z)return A=>z(A,p)},[e.isDateUnavailable,p]),b=useCallback(z=>{if(z&&y&&!e.allowsNonContiguousRanges){let A=vk(z,y,a,-1),D=vk(z,y,a,1);return {start:A,end:D}}else return null},[y,a,e.allowsNonContiguousRanges]),g=useMemo(()=>b(p),[b,p]),x=useMemo(()=>maxDate(l,g?.start),[l,g]),h=useMemo(()=>minDate(s,g?.end),[s,g]),v=Gu({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:a,minValue:x,maxValue:h,selectionAlignment:e.selectionAlignment||f,isDateUnavailable:y}),C=p?Xh(p,v.focusedDate):c&&Xh(c.start,c.end),T=z=>{if(e.isReadOnly)return;let A=ao(z,x,h),D=pm(A,v.visibleRange.start,y);if(D)if(!p)m(D);else {let O=Xh(p,D);O&&d({start:hk(O.start,c?.start),end:hk(O.end,c?.end)}),m(null);}},[P,k]=useState(false),S=useMemo(()=>!c||p?false:y&&(y(c.start)||y(c.end))?true:Go(c.start,l,s)||Go(c.end,l,s),[y,c,p,l,s]),w=e.isInvalid||e.validationState==="invalid"||S;return {...v,value:c,setValue:d,anchorDate:p,setAnchorDate:m,highlightedRange:C,validationState:w?"invalid":null,isValueInvalid:w,selectFocusedDate(){v.isCellUnavailable(v.focusedDate)||T(v.focusedDate);},commitSelection(){T(v.focusedDate);},selectDate:T,highlightDate(z){p&&v.setFocusedDate(z);},isSelected(z){return !!(C&&z.compare(C.start)>=0&&z.compare(C.end)<=0&&!v.isCellDisabled(z)&&!v.isCellUnavailable(z))},isInvalid(z){return v.isInvalid(z)||Go(z,g?.start,g?.end)},isDragging:P,setDragging:k,clearSelection(){m(null),d(null);},focusNearestAvailableDate(z){let A=b(z),D=R=>this.isInvalid(R)||Go(R,A?.start,A?.end),O=z.add({days:1});D(O)&&(O=z.subtract({days:1})),D(O)||(this.setFocusedDate(O),this.setFocused(true));}}}function Xh(e,t){return !e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:toCalendarDate(e),end:toCalendarDate(t)})}function hk(e,t){return e=toCalendar(e,t?.calendar||new GregorianCalendar),t&&"hour"in t?t.set(e):e}function vk(e,t,r,o){let n=e.add({days:o}),i=e.subtract(r),a=e.add(r);for(;(o<0?n.compare(i)>=0:n.compare(a)<=0)&&!t(n);)n=n.add({days:o});if(t(n))return n.add({days:-o})}var Wu=createContext({}),qu=forwardRef(function(t,r){[t,r]=Ie(t,r,Wu);let{children:o,level:n=3,className:i,...a}=t,l=Pe[`h${n}`];return jsx(l,{...a,ref:r,className:i??"react-aria-Heading",children:o})});var Do=createContext({}),si=forwardRef(function(t,r){[t,r]=Ie(t,r,Do);let{elementType:o="span",...n}=t,i=Pe[o];return jsx(i,{className:"react-aria-Text",...n,ref:r})});var xk={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ft(e={}){let{style:t,isFocusable:r}=e,[o,n]=useState(false),{focusWithinProps:i}=dt({isDisabled:!r,onFocusWithinChange:l=>n(l)}),a=useMemo(()=>o?t:t?{...xk,...t}:xk,[o]);return {visuallyHiddenProps:{...i,style:a}}}function Ne(e){let{children:t,elementType:r="div",isFocusable:o,style:n,...i}=e,{visuallyHiddenProps:a}=Ft(e);return jsx(r,{...M(i,a),children:t})}var bm=createContext(null),gm=createContext(null),Wo=createContext(null),qo=createContext(null),Jh=forwardRef(function(t,r){[t,r]=Ie(t,r,bm);let{locale:o}=Q(),n=Gu({...t,locale:o,createCalendar:t.createCalendar||createCalendar}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=Vh(t,n),c=Ve({...t,values:{state:n,isDisabled:t.isDisabled||false,isInvalid:n.isValueInvalid},defaultClassName:"react-aria-Calendar"}),d=oe(t,{global:true});return jsx(Pe.div,{...M(d,c,i),ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":n.isValueInvalid||void 0,children:jsxs(mt,{values:[[io,{slots:{previous:a,next:l}}],[Wu,{"aria-hidden":true,level:2,children:u}],[Wo,n],[bm,t],[Do,{slots:{errorMessage:s}}]],children:[jsx(Ne,{children:jsx("h2",{children:i["aria-label"]})}),c.children,jsx(Ne,{children:jsx("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1})})]})})}),Qh=forwardRef(function(t,r){[t,r]=Ie(t,r,gm);let{locale:o}=Q(),n=Zh({...t,locale:o,createCalendar:t.createCalendar||createCalendar}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=Wh(t,n,r),c=Ve({...t,values:{state:n,isDisabled:t.isDisabled||false,isInvalid:n.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),d=oe(t,{global:true});return jsx(Pe.div,{...M(c,d,i),ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":n.isValueInvalid||void 0,children:jsxs(mt,{values:[[io,{slots:{previous:a,next:l}}],[Wu,{"aria-hidden":true,level:2,children:u}],[qo,n],[gm,t],[Do,{slots:{errorMessage:s}}]],children:[jsx(Ne,{children:jsx("h2",{children:i["aria-label"]})}),c.children,jsx(Ne,{children:jsx("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1})})]})})}),hm=createContext(null),Yu=forwardRef(function(t,r){let o=useContext(Wo),n=useContext(qo),i=oo(bm),a=oo(gm),l=o??n,s=l.visibleRange.start;t.offset&&(s=s.add(t.offset));let u=i?.firstDayOfWeek??a?.firstDayOfWeek,{gridProps:c,headerProps:d,weekDays:p,weeksInMonth:m}=Bh({startDate:s,endDate:endOfMonth(s),weekdayStyle:t.weekdayStyle,firstDayOfWeek:u},l),f=oe(t,{global:true});return jsx(hm.Provider,{value:{headerProps:d,weekDays:p,startDate:s,weeksInMonth:m},children:jsx(Pe.table,{render:t.render,...M(f,c),ref:r,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid",children:typeof t.children!="function"?t.children:jsxs(Fragment,{children:[jsx(Rl,{children:y=>jsx(Il,{children:y})}),jsx(_l,{children:t.children})]})})})});function t$(e,t){let{children:r,style:o,className:n}=e,{headerProps:i,weekDays:a}=useContext(hm),l=oe(e,{global:true});return jsx(Pe.thead,{render:e.render,...M(l,i),ref:t,style:o,className:n??"react-aria-CalendarGridHeader",children:jsx("tr",{children:a.map((s,u)=>qn.cloneElement(r(s),{key:u}))})})}var Rl=forwardRef(t$);function r$(e,t){let{children:r,style:o,className:n}=e,i=oe(e,{global:true});return jsx(Pe.th,{render:e.render,...i,ref:t,style:o,className:n||"react-aria-CalendarHeaderCell",children:r})}var Il=forwardRef(r$);function o$(e,t){let{children:r,style:o,className:n}=e,i=useContext(Wo),a=useContext(qo),l=i??a,{startDate:s,weeksInMonth:u}=useContext(hm),c=oe(e,{global:true});return jsx(Pe.tbody,{render:e.render,...c,ref:t,style:o,className:n??"react-aria-CalendarGridBody",children:[...new Array(u).keys()].map(d=>jsx("tr",{children:l.getDatesInWeek(d,s).map((p,m)=>p?qn.cloneElement(r(p),{key:m}):jsx("td",{},m))},d))})}var _l=forwardRef(o$);var ev=forwardRef(function({date:t,...r},o){let n=useContext(Wo),i=useContext(qo),a=n??i,{startDate:l}=useContext(hm)??{startDate:a.visibleRange.start},s=a.visibleDuration.days||a.visibleDuration.weeks?false:!isSameMonth(l,t),u=isToday(t,a.timeZone),c=useRef(null),{cellProps:d,buttonProps:p,...m}=Gh({date:t,isOutsideMonth:s},a,c),{hoverProps:f,isHovered:y}=ae({...r,isDisabled:m.isDisabled||m.isUnavailable}),{focusProps:b,isFocusVisible:g}=ne();g&&=m.isFocused;let x=false,h=false;"highlightedRange"in a&&a.highlightedRange&&(x=isSameDay(t,a.highlightedRange.start),h=isSameDay(t,a.highlightedRange.end));let v=Ve({...r,defaultChildren:m.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:y,isOutsideMonth:s,isFocusVisible:g,isSelectionStart:x,isSelectionEnd:h,isToday:u,...m}}),C={"data-focused":m.isFocused||void 0,"data-hovered":y||void 0,"data-pressed":m.isPressed||void 0,"data-unavailable":m.isUnavailable||void 0,"data-disabled":m.isDisabled||void 0,"data-focus-visible":g||void 0,"data-outside-visible-range":m.isOutsideVisibleRange||void 0,"data-outside-month":s||void 0,"data-selected":m.isSelected||void 0,"data-selection-start":x||void 0,"data-selection-end":h||void 0,"data-invalid":m.isInvalid||void 0,"data-today":u||void 0},T=oe(r,{global:true});return jsx("td",{...d,ref:o,children:jsx(Pe.div,{...M(T,p,b,f,C,v),ref:c})})});forwardRef(function(t,r){let{offset:o,format:n,className:i="react-aria-CalendarHeading",...a}=t,l=qn.useContext(Wo),s=qn.useContext(qo),c=Uh({offset:o,format:n},l||s);return jsx(qu,{...a,className:i,ref:r,children:c})});var Pk=new WeakMap;function Br(e){let{description:t,errorMessage:r,isInvalid:o,validationState:n,ref:i}=e,{labelProps:a,fieldProps:l}=rr(e),s=Pt([!!t,!!r,o,n],i),u=Pt([!!t,!!r,o,n],i);return l=M(l,{"aria-describedby":[s,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:u}}}var iv={badInput:false,customError:false,patternMismatch:false,rangeOverflow:false,rangeUnderflow:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:false,valid:true},kk={...iv,customError:true,valid:false},ci={isInvalid:false,validationDetails:iv,validationErrors:[]},xm=createContext({}),Hr="__reactAriaFormValidationState";function Kt(e){if(e[Hr]){let{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:n,commitValidation:i}=e[Hr];return {realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:n,commitValidation:i}}return u$(e)}function u$(e){let{isInvalid:t,validationState:r,name:o,value:n,builtinValidation:i,validate:a,validationBehavior:l="aria"}=e;r&&(t||=r==="invalid");let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:kk}:null,u=useMemo(()=>{if(!a||n==null)return null;let w=c$(a,n);return Dk(w)},[a,n]);i?.validationDetails.valid&&(i=void 0);let c=useContext(xm),d=useMemo(()=>o?Array.isArray(o)?o.flatMap(w=>nv(c[w])):nv(c[o]):[],[c,o]),[p,m]=useState(c),[f,y]=useState(false);c!==p&&(m(c),y(false));let b=useMemo(()=>Dk(f?[]:d),[f,d]),g=useRef(ci),[x,h]=useState(ci),v=useRef(ci),C=()=>{if(!T)return;P(false);let w=u||i||g.current;ov(w,v.current)||(v.current=w,h(w));},[T,P]=useState(false);return useEffect(C),{realtimeValidation:s||b||u||i||ci,displayValidation:l==="native"?s||b||x:s||b||u||i||x,updateValidation(w){l==="aria"&&!ov(x,w)?h(w):g.current=w;},resetValidation(){let w=ci;ov(w,v.current)||(v.current=w,h(w)),l==="native"&&P(false),y(true);},commitValidation(){l==="native"&&P(true),y(true);}}}function nv(e){return e?Array.isArray(e)?e:[e]:[]}function c$(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return nv(r)}return []}function Dk(e){return e.length?{isInvalid:true,validationErrors:e,validationDetails:kk}:null}function ov(e,t){return e===t?true:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,o)=>r===t.validationErrors[o])&&Object.entries(e.validationDetails).every(([r,o])=>t.validationDetails[r]===o)}function Mt(e,t,r){let o=De(n=>{r&&!n.defaultPrevented&&r(t);});useEffect(()=>{let n=e?.current?.form;return n?.addEventListener("reset",o),()=>{n?.removeEventListener("reset",o);}},[e]);}function Xo(e,t,r){let{validationBehavior:o,focus:n}=e;re(()=>{if(o==="native"&&r?.current&&"setCustomValidity"in r.current&&!r.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(y$(r.current));}});let i=useRef(false),a=De(()=>{i.current||t.resetValidation();}),l=De(u=>{t.displayValidation.isInvalid||t.commitValidation();let c=r?.current?.form;!u.defaultPrevented&&r&&c&&b$(c)===r.current&&(n?n():r.current?.focus(),ur("keyboard")),u.preventDefault();}),s=De(()=>{t.commitValidation();});useEffect(()=>{let u=r?.current;if(!u)return;let c=u.form,d=c?.reset;if(c){let p=Y(u);c.reset=()=>{let m=p.event?p:window,f=m.event;i.current=!f||f.type==="message"&&typeof m.MessagePort=="function"&&$(f)instanceof m.MessagePort;try{d?.call(c);}finally{i.current=false;}};}return u.addEventListener("invalid",l),u.addEventListener("change",s),c?.addEventListener("reset",a),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",s),c?.removeEventListener("reset",a),c&&(c.reset=d);}},[r,o]);}function f$(e){let t=e.validity;return {badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function y$(e){return {isInvalid:!e.validity.valid,validationDetails:f$(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function b$(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(r.validity?.valid===false)return r}return null}function x$(e=true){let[t,r]=useState(e),o=useRef(false),n=useCallback(i=>{o.current=true,r(!!i);},[]);return re(()=>{o.current||r(false);},[]),[n,t]}function Zu(e=true){let t=ee(),[r,o]=x$(e);return {id:o?t:void 0,ref:r}}function Tm(e,t,r){let{isDisabled:o=false,isReadOnly:n=false,value:i,name:a,form:l,children:s,isRequired:u,validationBehavior:c="aria","aria-label":d,"aria-labelledby":p,"aria-describedby":m,onPressStart:f,onPressEnd:y,onPressChange:b,onPress:g,onPressUp:x,onClick:h}=e,v=Kt({...e,value:t.isSelected}),{isInvalid:C,validationErrors:T,validationDetails:P}=v.displayValidation;Xo(e,v,r);let k=H=>{H.stopPropagation(),t.setSelected($(H).checked);},S=s!=null,w=d!=null||p!=null;!S&&!w&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:E,isPressed:z}=Oe({onPressStart:f,onPressEnd:y,onPressChange:b,onPress:g,onPressUp:x,onClick:h,isDisabled:o}),[A,D]=useState(false),{pressProps:O}=Oe({onPressStart(H){if(H.pointerType==="keyboard"||H.pointerType==="virtual"){H.continuePropagation();return}f?.(H),b?.(true),D(true);},onPressEnd(H){if(H.pointerType==="keyboard"||H.pointerType==="virtual"){H.continuePropagation();return}y?.(H),b?.(false),D(false);},onPressUp(H){if(H.pointerType==="keyboard"||H.pointerType==="virtual"){H.continuePropagation();return}x?.(H);},onClick:h,onPress(H){if(H.pointerType==="keyboard"||H.pointerType==="virtual"){H.continuePropagation();return}g?.(H),t.toggle(),r.current?.focus();let{[Hr]:K}=e,{commitValidation:L}=K||v;L();},isDisabled:o||n}),{focusableProps:R}=it(e,r),N=M(E,R),F=oe(e,{labelable:true});Mt(r,t.defaultSelected,t.setSelected);let I=Zu(),V=Zu();return {labelProps:M(O,{onClick:H=>H.preventDefault()}),inputProps:M(F,{checked:t.isSelected,"aria-required":u&&c==="aria"||void 0,required:u&&c==="native","aria-invalid":C||e.validationState==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":n||void 0,"aria-describedby":[I.id,V.id,m].filter(Boolean).join(" ")||void 0,onChange:k,disabled:o,...i==null?{}:{value:i},name:a,form:l,type:"checkbox",...N}),descriptionProps:I,errorMessageProps:V,isSelected:t.isSelected,isPressed:z||A,isDisabled:o,isReadOnly:n,isInvalid:C||e.validationState==="invalid",validationErrors:T,validationDetails:P}}function Ju(e,t,r){let{labelProps:o,inputProps:n,descriptionProps:i,errorMessageProps:a,isSelected:l,isPressed:s,isDisabled:u,isReadOnly:c,isInvalid:d,validationErrors:p,validationDetails:m}=Tm(e,t,r),{isIndeterminate:f}=e;return useEffect(()=>{r.current&&(r.current.indeterminate=!!f);}),{labelProps:M(o,useMemo(()=>({onMouseDown:y=>y.preventDefault()}),[])),inputProps:n,descriptionProps:i,errorMessageProps:a,isSelected:l,isPressed:s,isDisabled:u,isReadOnly:c,isInvalid:d,validationErrors:p,validationDetails:m}}function zr(e={}){let{isReadOnly:t}=e,[r,o]=ye(e.isSelected,e.defaultSelected||false,e.onChange),[n]=useState(r);function i(l){t||o(l);}function a(){t||o(!r);}return {isSelected:r,defaultSelected:e.defaultSelected??n,setSelected:i,toggle:a}}function av(e,t,r){let o=zr({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y);}}),{name:n,form:i,descriptionId:a,errorMessageId:l,validationBehavior:s}=Pk.get(t);s=e.validationBehavior??s;let{realtimeValidation:u}=Kt({...e,value:o.isSelected,name:void 0,validationBehavior:"aria"}),c=useRef(ci),d=()=>{t.setInvalid(e.value,u.isInvalid?u:c.current);};useEffect(d);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:u,m=s==="native"?t.displayValidation:p,f=Ju({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||n,form:e.form||i,isRequired:e.isRequired??t.isRequired,validationBehavior:s,[Hr]:{realtimeValidation:p,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){c.current=y,d();}}},o,r);return {...f,inputProps:{...f.inputProps,"aria-describedby":[f.inputProps["aria-describedby"],t.isInvalid?l:null,a].filter(Boolean).join(" ")||void 0}}}var Cm=createContext(null);forwardRef(function(t,r){[t,r]=Ie(t,r,Cm);let{validationErrors:o,validationBehavior:n="native",children:i,className:a,...l}=t;return jsx(Pe.form,{noValidate:n!=="native",...l,ref:r,className:a||"react-aria-Form",children:jsx(Cm.Provider,{value:{...t,validationBehavior:n},children:jsx(xm.Provider,{value:o??{},children:i})})})});var la=createContext(null),Ll=createContext(null);createContext(null);var wk=createContext(null);var Rk=createContext(null);function I$(e,t){let{validationBehavior:r}=oo(Cm)||{},o=e.validationBehavior??r??"native",n=useContext(wk),i=pe(useMemo(()=>se(t,e.inputRef!==void 0?e.inputRef:null),[t,e.inputRef])),a={...jp(e),children:typeof e.children=="function"?true:e.children,value:e.value,validationBehavior:o};return [n?av(a,n,i):Ju(a,zr(e),i),i]}var sv=forwardRef(function(t,r){let{inputRef:o=null,...n}=t;[t,r]=Ie(n,r,la);let[i,a]=I$(t,o);return jsx(Rk.Provider,{value:{...i,inputRef:a,defaultClassName:"react-aria-Checkbox",isIndeterminate:t.isIndeterminate,isRequired:t.isRequired},children:jsx(Ik,{...t,ref:r})})}),Ik=forwardRef(function(t,r){let{labelProps:o,inputProps:n,isSelected:i,isDisabled:a,isReadOnly:l,isPressed:s,isInvalid:u,inputRef:c,defaultClassName:d,isIndeterminate:p,isRequired:m}=useContext(Rk),{isFocused:f,isFocusVisible:y,focusProps:b}=ne(),g=a||l,{hoverProps:x,isHovered:h}=ae({...t,isDisabled:g}),v=Ve({...t,defaultClassName:d,values:{isSelected:i,isIndeterminate:p||false,isPressed:s,isHovered:h,isFocused:f,isFocusVisible:y,isDisabled:a,isReadOnly:l,isInvalid:u,isRequired:m||false}}),C=oe(t,{global:true});return delete C.id,delete C.onClick,jsxs(Pe.label,{...M(C,o,x,v),ref:r,slot:t.slot||void 0,"data-selected":i||void 0,"data-indeterminate":p||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0,"data-focused":f||void 0,"data-focus-visible":y||void 0,"data-disabled":a||void 0,"data-readonly":l||void 0,"data-invalid":u||void 0,"data-required":m||void 0,children:[jsx(Ne,{elementType:"span",children:jsx("input",{...M(n,b),ref:c})}),v.children]})});var Sm={"ar-AE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0623\u062F\u0627\u0629 \u0627\u0646\u062A\u0642\u0627\u0621 \u0627\u0644\u0644\u0648\u0646",colorSwatch:"\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0623\u0644\u0648\u0627\u0646",transparent:"\u0634\u0641\u0627\u0641",twoDimensionalSlider:"\u0645\u064F\u0646\u0632\u0644\u0642 2D"},"bg-BG":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0437\u0430 \u0438\u0437\u0431\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0446\u0432\u044F\u0442",colorSwatch:"\u0446\u0432\u0435\u0442\u043D\u0430 \u043C\u043E\u0441\u0442\u0440\u0430",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u0435\u043D",twoDimensionalSlider:"2D \u043F\u043B\u044A\u0437\u0433\u0430\u0447"},"cs-CZ":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDb\u011Br barvy",colorSwatch:"barevn\xFD vzorek",transparent:"pr\u016Fhledn\xFD",twoDimensionalSlider:"2D posuvn\xEDk"},"da-DK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farvev\xE6lger",colorSwatch:"farvepr\xF8ve",transparent:"gennemsigtig",twoDimensionalSlider:"2D-skyder"},"de-DE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farbw\xE4hler",colorSwatch:"Farbfeld",transparent:"transparent",twoDimensionalSlider:"2D-Schieberegler"},"el-GR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03B1\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",colorSwatch:"\u03C7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03CC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1",transparent:"\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AD\u03C2",twoDimensionalSlider:"\u03A1\u03C5\u03B8\u03BC\u03B9\u03C3\u03C4\u03B9\u03BA\u03CC 2D"},"en-US":{colorPicker:"Color picker",twoDimensionalSlider:"2D slider",colorNameAndValue:e=>`${e.name}: ${e.value}`,colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorSwatch:"color swatch",transparent:"transparent"},"es-ES":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de color",colorSwatch:"muestra de color",transparent:"transparente",twoDimensionalSlider:"Regulador 2D"},"et-EE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rvivalija",colorSwatch:"v\xE4rvin\xE4idis",transparent:"l\xE4bipaistev",twoDimensionalSlider:"2D-liugur"},"fi-FI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rimuokkain",colorSwatch:"v\xE4rimalli",transparent:"l\xE4pin\xE4kyv\xE4",twoDimensionalSlider:"2D-liukus\xE4\xE4din"},"fr-FR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\xA0: ${e.value}`,colorPicker:"S\xE9lecteur de couleurs",colorSwatch:"\xC9chantillon de couleurs",transparent:"Transparent",twoDimensionalSlider:"Curseur\xA02D"},"he-IL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u05D1\u05D5\u05D7\u05E8 \u05D4\u05E6\u05D1\u05E2\u05D9\u05DD",colorSwatch:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05EA \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3",twoDimensionalSlider:"\u05DE\u05D7\u05D5\u05D5\u05DF \u05D3\u05D5 \u05DE\u05D9\u05DE\u05D3\u05D9"},"hr-HR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Odabir boje",colorSwatch:"uzorak boje",transparent:"transparentno",twoDimensionalSlider:"2D kliza\u010D"},"hu-HU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Sz\xEDnv\xE1laszt\xF3",colorSwatch:"sz\xEDnt\xE1r",transparent:"\xE1tl\xE1tsz\xF3",twoDimensionalSlider:"2D-cs\xFAszka"},"it-IT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selettore colore",colorSwatch:"campione di colore",transparent:"trasparente",twoDimensionalSlider:"Cursore 2D"},"ja-JP":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"\u30AB\u30E9\u30FC\u30D4\u30C3\u30AB\u30FC",colorSwatch:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u30B9\u30E9\u30A4\u30C0\u30FC"},"ko-KR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\uC0C9\uC0C1 \uD53C\uCEE4",colorSwatch:"\uC0C9\uC0C1 \uACAC\uBCF8",transparent:"\uD22C\uBA85\uB3C4",twoDimensionalSlider:"2D \uC2AC\uB77C\uC774\uB354"},"lt-LT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Spalv\u0173 parinkiklis",colorSwatch:"spalv\u0173 pavyzdys",transparent:"skaidrus",twoDimensionalSlider:"2D slankiklis"},"lv-LV":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kr\u0101su atlas\u012Bt\u0101js",colorSwatch:"kr\u0101su paraugs",transparent:"caursp\u012Bd\u012Bgs",twoDimensionalSlider:"2D sl\u012Bdnis"},"nb-NO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Fargevelger",colorSwatch:"fargekart",transparent:"gjennomsiktig",twoDimensionalSlider:"2D-glidebryter"},"nl-NL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kleurkiezer",colorSwatch:"kleurstaal",transparent:"transparant",twoDimensionalSlider:"2D-schuifregelaar"},"pl-PL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Pr\xF3bnik kolor\xF3w",colorSwatch:"pr\xF3bka koloru",transparent:"przezroczysty",twoDimensionalSlider:"Suwak 2D"},"pt-BR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cores",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"pt-PT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cor",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"ro-RO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de culori",colorSwatch:"specimen de culoare",transparent:"transparent",twoDimensionalSlider:"Glisor 2D"},"ru-RU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0438\u0442\u0440\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",colorSwatch:"\u0446\u0432\u0435\u0442\u043E\u0432\u043E\u0439 \u043E\u0431\u0440\u0430\u0437\u0435\u0446",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",twoDimensionalSlider:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A 2D"},"sk-SK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDber farieb",colorSwatch:"vzorkovn\xEDk farieb",transparent:"transparentn\xFD",twoDimensionalSlider:"2D jazdec"},"sl-SI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Izbirnik barv",colorSwatch:"barvna paleta",transparent:"prozorno",twoDimensionalSlider:"2D drsnik"},"sr-SP":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Bira\u010D boja",colorSwatch:"Uzorak boje",transparent:"providno",twoDimensionalSlider:"2D kliza\u010D"},"sv-SE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"F\xE4rgv\xE4ljaren",colorSwatch:"f\xE4rgruta",transparent:"genomskinlig",twoDimensionalSlider:"2D-reglage"},"tr-TR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Renk Se\xE7ici",colorSwatch:"renk \xF6rne\u011Fi",transparent:"saydam",twoDimensionalSlider:"2D s\xFCrg\xFC"},"uk-UA":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0456\u0442\u0440\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",colorSwatch:"\u0437\u0440\u0430\u0437\u043E\u043A \u043A\u043E\u043B\u044C\u043E\u0440\u0443",transparent:"\u043F\u0440\u043E\u0437\u043E\u0440\u0438\u0439",twoDimensionalSlider:"\u041F\u043E\u0432\u0437\u0443\u043D\u043E\u043A 2D"},"zh-CN":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u62FE\u8272\u5668",colorSwatch:"\u989C\u8272\u8272\u677F",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u5757"},"zh-TW":{colorInputLabel:e=>`${e.label}\uFF0C${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u6AA2\u8272\u5668",colorSwatch:"\u8272\u7968",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u687F"}};var _k={"ar-AE":{alpha:"\u0623\u0644\u0641\u0627",black:"\u0623\u0633\u0648\u062F",blue:"\u0623\u0632\u0631\u0642","blue purple":"\u0623\u0631\u062C\u0648\u0627\u0646\u064A \u0645\u0632\u0631\u0642",brightness:"\u0627\u0644\u0633\u0637\u0648\u0639",brown:"\u0628\u0646\u064A","brown yellow":"\u0623\u0635\u0641\u0631 \u0628\u0646\u064A",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u0633\u0645\u0627\u0648\u064A","cyan blue":"\u0623\u0632\u0631\u0642 \u0633\u0645\u0627\u0648\u064A",dark:"\u062F\u0627\u0643\u0646",gray:"\u0631\u0645\u0627\u062F\u064A",grayish:"\u0645\u0627\u0626\u0644 \u0644\u0644\u0631\u0645\u0627\u062F\u064A",green:"\u0623\u062E\u0636\u0631","green cyan":"\u0633\u0645\u0627\u0648\u064A \u0645\u062E\u0636\u0631",hue:"\u062F\u0631\u062C\u0629 \u0627\u0644\u0644\u0648\u0646",light:"\u0641\u0627\u062A\u062D",lightness:"\u0627\u0644\u0625\u0636\u0627\u0621\u0629",magenta:"\u0623\u0631\u062C\u0648\u0627\u0646\u064A","magenta pink":"\u0623\u0631\u062C\u0648\u0627\u0646\u064A \u0648\u0631\u062F\u064A",orange:"\u0628\u0631\u062A\u0642\u0627\u0644\u064A","orange yellow":"\u0623\u0635\u0641\u0631 \u0628\u0631\u062A\u0642\u0627\u0644\u064A",pale:"\u0628\u0627\u0647\u062A",pink:"\u0648\u0631\u062F\u064A","pink red":"\u0623\u062D\u0645\u0631 \u0648\u0631\u062F\u064A",purple:"\u0623\u0631\u062C\u0648\u0627\u0646\u064A","purple magenta":"\u0628\u0646\u0641\u0633\u062C\u064A",red:"\u0623\u062D\u0645\u0631","red orange":"\u0628\u0631\u062A\u0642\u0627\u0644\u064A \u0645\u062D\u0645\u0631",saturation:"\u0627\u0644\u062A\u0634\u0628\u0639",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u0634\u0641\u0627\u0641`,"very dark":"\u062F\u0627\u0643\u0646 \u062C\u062F\u064B\u0627","very light":"\u0641\u0627\u062A\u062D \u062C\u062F\u064B\u0627",vibrant:"\u0633\u0627\u0637\u0639",white:"\u0623\u0628\u064A\u0636",yellow:"\u0623\u0635\u0641\u0631","yellow green":"\u0623\u062E\u0636\u0631 \u0645\u0635\u0641\u0631"},"bg-BG":{alpha:"\u0410\u043B\u0444\u0430",black:"\u0447\u0435\u0440\u043D\u043E",blue:"\u0421\u0438\u043D\u044C\u043E","blue purple":"\u0441\u0438\u043D\u044C\u043E \u043B\u0438\u043B\u0430\u0432\u043E",brightness:"\u042F\u0440\u043A\u043E\u0441\u0442",brown:"\u043A\u0430\u0444\u044F\u0432\u043E","brown yellow":"\u043A\u0430\u0444\u044F\u0432\u043E \u0436\u044A\u043B\u0442\u043E",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u0446\u0438\u0430\u043D","cyan blue":"\u0446\u0438\u0430\u043D \u0441\u0438\u043D\u044C\u043E",dark:"\u0442\u044A\u043C\u043D\u043E",gray:"\u0441\u0438\u0432\u043E",grayish:"\u0441\u0438\u0432\u043A\u0430\u0432",green:"\u0417\u0435\u043B\u0435\u043D\u043E","green cyan":"\u0437\u0435\u043B\u0435\u043D \u0446\u0438\u0430\u043D",hue:"\u041E\u0442\u0442\u0435\u043D\u044A\u043A",light:"\u0441\u0432\u0435\u0442\u043B\u043E",lightness:"\u041B\u0435\u043A\u043E\u0442\u0430",magenta:"\u043C\u0430\u0433\u0435\u043D\u0442\u0430","magenta pink":"\u043C\u0430\u0433\u0435\u043D\u0442\u0430 \u0440\u043E\u0437\u043E\u0432\u043E",orange:"\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u043E","orange yellow":"\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u043E \u0436\u044A\u043B\u0442\u043E",pale:"\u0431\u043B\u0435\u0434\u043E",pink:"\u0440\u043E\u0437\u043E\u0432\u043E","pink red":"\u0440\u043E\u0437\u043E\u0432\u043E \u0447\u0435\u0440\u0432\u0435\u043D\u043E",purple:"\u043B\u0438\u043B\u0430\u0432\u043E","purple magenta":"\u043B\u0438\u043B\u0430\u0432\u043E \u043C\u0430\u0433\u0435\u043D\u0442\u0430",red:"\u0427\u0435\u0440\u0432\u0435\u043D\u043E","red orange":"\u0447\u0435\u0440\u0432\u0435\u043D \u043F\u043E\u0440\u0442\u043E\u043A\u0430\u043B",saturation:"\u041D\u0430\u0441\u0438\u0442\u0435\u043D\u043E\u0441\u0442",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u043F\u0440\u043E\u0437\u0440\u0430\u0447\u0435\u043D`,"very dark":"\u043C\u043D\u043E\u0433\u043E \u0442\u044A\u043C\u043D\u043E","very light":"\u043C\u043D\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u043B\u043E",vibrant:" \u044F\u0440\u043A\u043E",white:"\u0431\u044F\u043B\u043E",yellow:"\u0436\u044A\u043B\u0442\u043E","yellow green":"\u0436\u044A\u043B\u0442\u043E \u0437\u0435\u043B\u0435\u043D"},"cs-CZ":{alpha:"Alfa",black:"\u010Dern\xE1",blue:"Modr\xE1","blue purple":"modrofialov\xE1",brightness:"Jas",brown:"hn\u011Bd\xE1","brown yellow":"hn\u011Bdo\u017Elut\xE1",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysov\xE1","cyan blue":"tyrkysovomodr\xE1",dark:"tmav\xE1",gray:"\u0161ed\xE1",grayish:"na\u0161edl\xE1",green:"Zelen\xE1","green cyan":"zelenotyrkysov\xE1",hue:"Odst\xEDn",light:"sv\u011Btl\xE1",lightness:"Sv\u011Btlost",magenta:"purpurov\xE1","magenta pink":"purpurov\u011B r\u016F\u017Eov\xE1",orange:"oran\u017Eov\xE1","orange yellow":"oran\u017Eovo\u017Elut\xE1",pale:"bled\xE1",pink:"r\u016F\u017Eov\xE1","pink red":"r\u016F\u017Eovo\u010Derven\xE1",purple:"fialov\xE1","purple magenta":"fialov\u011B purpurov\xE1",red:"\u010Cerven\xE1","red orange":"\u010Dervenooran\u017Eov\xE1",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} pr\u016Fhledn\xE9`,"very dark":"velmi tmav\xE1","very light":"velmi sv\u011Btl\xE1",vibrant:"z\xE1\u0159iv\xE1",white:"b\xEDl\xE1",yellow:"\u017Elut\xE1","yellow green":"\u017Elutozelen\xE1"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Bl\xE5","blue purple":"bl\xE5lilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan bl\xE5",dark:"m\xF8rk",gray:"gr\xE5",grayish:"gr\xE5lig",green:"Gr\xF8n","green cyan":"gr\xF8n cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyser\xF8d","pink red":"lyser\xF8dlig r\xF8d",purple:"lilla","purple magenta":"lilla magenta",red:"R\xF8d","red orange":"r\xF8dorange",saturation:"Farvem\xE6tning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget m\xF8rk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgr\xF8n"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gr\xE4uliches",green:"Gr\xFCn","green cyan":"Gr\xFCncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"S\xE4ttigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Wei\xDF",yellow:"Gelb","yellow green":"Gelbgr\xFCn"},"el-GR":{alpha:"\u0386\u03BB\u03C6\u03B1",black:"\u03BC\u03B1\u03CD\u03C1\u03BF",blue:"\u039C\u03C0\u03BB\u03B5","blue purple":"\u03BC\u03C0\u03BB\u03B5 \u03BC\u03C9\u03B2",brightness:"\u03A6\u03C9\u03C4\u03B5\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1",brown:"\u03BA\u03B1\u03C6\u03AD","brown yellow":"\u03BA\u03B1\u03C6\u03AD \u03BA\u03AF\u03C4\u03C1\u03B9\u03BD\u03BF",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u03BA\u03C5\u03B1\u03BD\u03CC","cyan blue":"\u03BA\u03C5\u03B1\u03BD\u03CC \u03BC\u03C0\u03BB\u03B5",dark:"\u03C3\u03BA\u03BF\u03CD\u03C1\u03BF",gray:"\u03B3\u03BA\u03C1\u03B9",grayish:"\u03B3\u03BA\u03C1\u03B9\u03B6\u03C9\u03C0\u03CC",green:"\u03A0\u03C1\u03AC\u03C3\u03B9\u03BD\u03BF","green cyan":"\u03C0\u03C1\u03AC\u03C3\u03B9\u03BD\u03BF \u03BA\u03C5\u03B1\u03BD\u03CC",hue:"\u03A4\u03CC\u03BD\u03BF\u03C2",light:"\u03B1\u03BD\u03BF\u03B9\u03C7\u03C4\u03CC",lightness:"\u03A6\u03C9\u03C4\u03B5\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1",magenta:"\u03BC\u03B1\u03C4\u03B6\u03AD\u03BD\u03C4\u03B1","magenta pink":"\u03BC\u03B1\u03C4\u03B6\u03AD\u03BD\u03C4\u03B1 \u03C1\u03BF\u03B6",orange:"\u03C0\u03BF\u03C1\u03C4\u03BF\u03BA\u03B1\u03BB\u03AF","orange yellow":"\u03C0\u03BF\u03C1\u03C4\u03BF\u03BA\u03B1\u03BB\u03AF \u03BA\u03AF\u03C4\u03C1\u03B9\u03BD\u03BF",pale:"\u03B1\u03BD\u03BF\u03B9\u03C7\u03C4\u03CC",pink:"\u03C1\u03BF\u03B6","pink red":"\u03C1\u03BF\u03B6 \u03BA\u03CC\u03BA\u03BA\u03B9\u03BD\u03BF",purple:"\u03BC\u03C9\u03B2","purple magenta":"\u03BC\u03C9\u03B2 \u03BC\u03B1\u03C4\u03B6\u03AD\u03BD\u03C4\u03B1",red:"\u039A\u03CC\u03BA\u03BA\u03B9\u03BD\u03BF","red orange":"\u03BA\u03CC\u03BA\u03BA\u03B9\u03BD\u03BF \u03C0\u03BF\u03C1\u03C4\u03BF\u03BA\u03B1\u03BB\u03AF",saturation:"\u039A\u03BF\u03C1\u03B5\u03C3\u03BC\u03CC\u03C2",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AD\u03C2`,"very dark":"\u03C0\u03BF\u03BB\u03CD \u03C3\u03BA\u03BF\u03CD\u03C1\u03BF","very light":"\u03C0\u03BF\u03BB\u03CD \u03B1\u03BD\u03BF\u03B9\u03C7\u03C4\u03CC",vibrant:"\u03AD\u03BD\u03C4\u03BF\u03BD\u03BF",white:"\u03BB\u03B5\u03C5\u03BA\u03CC",yellow:"\u03BA\u03AF\u03C4\u03C1\u03B9\u03BD\u03BF","yellow green":"\u03BA\u03AF\u03C4\u03C1\u03B9\u03BD\u03BF \u03C0\u03C1\u03AC\u03C3\u03B9\u03BD\u03BF"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"p\xFArpura azulado",brightness:"Brillo",brown:"marr\xF3n","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"gris\xE1ceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"p\xE1lido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta viol\xE1ceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturaci\xF3n",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ts\xFCaan","cyan blue":"ts\xFCaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"ts\xFCaanroheline",hue:"V\xE4rv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oran\u017E","orange yellow":"oran\u017Eikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoran\u017E",saturation:"K\xFCllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} l\xE4bipaistev`,"very dark":"v\xE4ga tume","very light":"v\xE4ga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihre\xE4","green cyan":"vihre\xE4nsyaani",hue:"S\xE4vy",light:"vaalea",lightness:"Valom\xE4\xE4r\xE4",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"V\xE4rikyll\xE4isyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} l\xE4pin\xE4kyv\xE4`,"very dark":"hyvin tumma","very light":"eritt\xE4in vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihre\xE4"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosit\xE9",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Gris\xE2tre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosit\xE9",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orang\xE9",pale:"P\xE2le",pink:"Rose","pink red":"Rouge ros\xE9",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Tr\xE8s sombre","very light":"Tr\xE8s clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"\u05D0\u05DC\u05E4\u05D0",black:"\u05E9\u05D7\u05D5\u05E8",blue:"\u05DB\u05D7\u05D5\u05DC","blue purple":"\u05DB\u05D7\u05D5\u05DC \u05E1\u05D2\u05D5\u05DC",brightness:"\u05D1\u05D4\u05D9\u05E8\u05D5\u05EA",brown:"\u05D7\u05D5\u05DD","brown yellow":"\u05D7\u05D5\u05DD \u05E6\u05D4\u05D5\u05D1",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u05D8\u05D5\u05E8\u05E7\u05D9\u05D6","cyan blue":"\u05DB\u05D7\u05D5\u05DC \u05E6\u05D9\u05D0\u05DF",dark:"\u05DB\u05D4\u05D4",gray:"\u05D0\u05E4\u05D5\u05E8",grayish:"\u05D0\u05E4\u05E8\u05E4\u05E8",green:"\u05D9\u05E8\u05D5\u05E7","green cyan":"\u05E6\u05D9\u05D0\u05DF \u05D9\u05E8\u05D5\u05E7",hue:"\u05D2\u05D5\u05D5\u05DF",light:"\u05D0\u05D5\u05E8",lightness:"\u05DB\u05DE\u05D5\u05EA \u05D0\u05D5\u05E8",magenta:"\u05DE\u05D2'\u05E0\u05D8\u05D4","magenta pink":"\u05D5\u05E8\u05D5\u05D3 \u05DE\u05D2'\u05E0\u05D8\u05D4",orange:"\u05DB\u05EA\u05D5\u05DD","orange yellow":"\u05DB\u05EA\u05D5\u05DD \u05E6\u05D4\u05D5\u05D1",pale:"\u05D7\u05D9\u05D5\u05D5\u05E8",pink:"\u05D5\u05E8\u05D5\u05D3","pink red":"\u05D5\u05E8\u05D5\u05D3 \u05D0\u05D3\u05D5\u05DD",purple:"\u05E1\u05D2\u05D5\u05DC","purple magenta":"\u05DE\u05D2'\u05E0\u05D8\u05D4 \u05E1\u05D2\u05D5\u05DC",red:"\u05D0\u05D3\u05D5\u05DD","red orange":"\u05DB\u05EA\u05D5\u05DD \u05D0\u05D3\u05D5\u05DD",saturation:"\u05E8\u05D5\u05D5\u05D9\u05D4",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u05E9\u05E7\u05D5\u05E3`,"very dark":"\u05DB\u05D4\u05D4 \u05DE\u05D0\u05D5\u05D3","very light":"\u05D1\u05D4\u05D9\u05E8 \u05DE\u05D0\u05D5\u05D3",vibrant:"\u05EA\u05D5\u05E1\u05E1",white:"\u05DC\u05D1\u05DF",yellow:"\u05E6\u05D4\u05D5\u05D1","yellow green":"\u05E6\u05D4\u05D5\u05D1 \u05D9\u05E8\u05D5\u05E7"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubi\u010Dasta",brightness:"Svjetlina",brown:"sme\u0111a","brown yellow":"sme\u0111e \u017Euta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ru\u017Ei\u010Dasta",orange:"naran\u010Dasta","orange yellow":"naran\u010Dasto \u017Euta",pale:"blijeda",pink:"ru\u017Ei\u010Dasta","pink red":"ru\u017Ei\u010Dasto crvena",purple:"ljubi\u010Dasta","purple magenta":"ljubi\u010Dasta magenta",red:"Crvena","red orange":"crveno naran\u010Dasta",saturation:"Zasi\u0107enost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"\u017Euto","yellow green":"\u017Euto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"K\xE9k","blue purple":"k\xE9k lila",brightness:"F\xE9nyess\xE9g",brown:"barna","brown yellow":"barna s\xE1rga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ci\xE1nk\xE9k","cyan blue":"ci\xE1nk\xE9k",dark:"s\xF6t\xE9t",gray:"sz\xFCrke",grayish:"sz\xFCrk\xE9s",green:"Z\xF6ld","green cyan":"z\xF6ld ci\xE1nk\xE9k",hue:"Sz\xEDn\xE1rnyalat",light:"vil\xE1gos",lightness:"Vil\xE1goss\xE1g",magenta:"b\xEDbor","magenta pink":"b\xEDbor r\xF3zsasz\xEDn",orange:"narancs","orange yellow":"narancss\xE1rga",pale:"halv\xE1ny",pink:"r\xF3zsasz\xEDn","pink red":"r\xF3zsasz\xEDn piros",purple:"lila","purple magenta":"lila b\xEDbor",red:"Piros","red orange":"piros narancs",saturation:"Tel\xEDtetts\xE9g",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \xE1tl\xE1tsz\xF3`,"very dark":"nagyon s\xF6t\xE9t","very light":"nagyon vil\xE1gos",vibrant:"\xE9l\xE9nk",white:"feh\xE9r",yellow:"s\xE1rga","yellow green":"s\xE1rga z\xF6ld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosit\xE0",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalit\xE0",light:"chiaro",lightness:"Luminosit\xE0",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"\u30A2\u30EB\u30D5\u30A1",black:"\u30D6\u30E9\u30C3\u30AF",blue:"\u9752","blue purple":"\u30D6\u30EB\u30FC\u30D1\u30FC\u30D7\u30EB",brightness:"\u660E\u308B\u3055",brown:"\u30D6\u30E9\u30A6\u30F3","brown yellow":"\u30D6\u30E9\u30A6\u30F3\u30A4\u30A8\u30ED\u30FC",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u30B7\u30A2\u30F3","cyan blue":"\u30B7\u30A2\u30F3\u30D6\u30EB\u30FC",dark:"\u30C0\u30FC\u30AF",gray:"\u30B0\u30EC\u30FC",grayish:"\u30B0\u30EC\u30A4\u30C3\u30B7\u30E5",green:"\u7DD1","green cyan":"\u30B0\u30EA\u30FC\u30F3\u30B7\u30A2\u30F3",hue:"\u8272\u76F8",light:"\u30E9\u30A4\u30C8",lightness:"\u660E\u5EA6",magenta:"\u30DE\u30BC\u30F3\u30BF","magenta pink":"\u30DE\u30BC\u30F3\u30BF\u30D4\u30F3\u30AF",orange:"\u30AA\u30EC\u30F3\u30B8","orange yellow":"\u30AA\u30EC\u30F3\u30B8\u30A4\u30A8\u30ED\u30FC",pale:"\u30DA\u30FC\u30EB",pink:"\u30D4\u30F3\u30AF","pink red":"\u30D4\u30F3\u30AF\u30EC\u30C3\u30C9",purple:"\u30D1\u30FC\u30D7\u30EB","purple magenta":"\u30D1\u30FC\u30D7\u30EB\u30DE\u30BC\u30F3\u30BF",red:"\u8D64","red orange":"\u30EC\u30C3\u30C9\u30AA\u30EC\u30F3\u30B8",saturation:"\u5F69\u5EA6",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u900F\u660E`,"very dark":"\u6700\u3082\u6697\u3044","very light":"\u30D9\u30EA\u30FC\u30E9\u30A4\u30C8",vibrant:"\u9BAE\u3084\u304B",white:"\u30DB\u30EF\u30A4\u30C8",yellow:"\u30A4\u30A8\u30ED\u30FC","yellow green":"\u30A4\u30A8\u30ED\u30FC\u30B0\u30EA\u30FC\u30F3"},"ko-KR":{alpha:"\uC54C\uD30C",black:"\uAC80\uC740\uC0C9",blue:"\uD30C\uB791","blue purple":"\uCCAD\uC790\uC0C9",brightness:"\uBA85\uB3C4",brown:"\uAC08\uC0C9","brown yellow":"\uD669\uAC08\uC0C9",colorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}`,cyan:"\uCCAD\uB85D\uC0C9","cyan blue":"\uCCAD\uB85D\uC0C9",dark:"\uB2E4\uD06C",gray:"\uD68C\uC0C9",grayish:"\uD68C\uAC08\uC0C9",green:"\uCD08\uB85D","green cyan":"\uCCAD\uB85D\uC0C9",hue:"\uC0C9\uC870",light:"\uB77C\uC774\uD2B8",lightness:"\uBC1D\uAE30",magenta:"\uC790\uD64D\uC0C9","magenta pink":"\uB9C8\uC820\uD0C0 \uD551\uD06C",orange:"\uC8FC\uD669\uC0C9","orange yellow":"\uBD88\uADF8\uC2A4\uB984\uD55C \uB178\uB791",pale:"\uD759\uC0C9",pink:"\uBD84\uD64D\uC0C9","pink red":"\uD551\uD06C \uB808\uB4DC",purple:"\uC790\uC8FC\uC0C9","purple magenta":"\uBCF4\uB77C\uBE5B \uC790\uD64D\uC0C9",red:"\uBE68\uAC15","red orange":"\uBD89\uC740 \uC8FC\uD669\uC0C9",saturation:"\uCC44\uB3C4",transparentColorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}, ${e.percentTransparent} \uD22C\uBA85\uB3C4`,"very dark":"\uB9E4\uC6B0 \uC5B4\uB450\uC6B4","very light":"\uB9E4\uC6B0 \uC5F0\uD568",vibrant:"\uAC15\uB82C\uD55C",white:"\uD770\uC0C9",yellow:"\uB178\uB780\uC0C9","yellow green":"\uC5F0\uB450\uC0C9"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"M\u0117lyna","blue purple":"melsvai violetin\u0117",brightness:"Ry\u0161kumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u017Ealsvai m\u0117lyna","cyan blue":"\u017Ealsvai m\u0117lyna",dark:"tamsi",gray:"pilka",grayish:"pilk\u0161va",green:"\u017Dalia","green cyan":"\u017Ealsvai m\u0117lyna",hue:"Atspalvis",light:"\u0161viesi",lightness:"\u0160viesumas",magenta:"rausvai raudona","magenta pink":"purpurin\u0117",orange:"oran\u017Ein\u0117","orange yellow":"oran\u017Einio atspalvio geltona",pale:"bly\u0161ki",pink:"ro\u017Ein\u0117","pink red":"ro\u017Ein\u0117 raudona",purple:"violetin\u0117","purple magenta":"purpurin\u0117 rausvai raudona",red:"Raudona","red orange":"rausvai oran\u017Ein\u0117",saturation:"\u012Esotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai \u0161viesi",vibrant:"ry\u0161ki",white:"balta",yellow:"geltona","yellow green":"gelsvai \u017Ealia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"br\u016Bns","brown yellow":"br\u016Bni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ci\u0101ns","cyan blue":"ci\u0101na zils",dark:"tum\u0161s",gray:"pel\u0113ks",grayish:"pel\u0113c\u012Bgs",green:"Za\u013Ca","green cyan":"za\u013C\u0161 ci\u0101ns",hue:"Nokr\u0101sa",light:"gai\u0161s",lightness:"Gai\u0161ums",magenta:"fuksiju","magenta pink":"fuksiju roz\u0101",orange:"oran\u017Es","orange yellow":"oran\u017Ei dzeltens",pale:"b\u0101ls",pink:"roz\u0101","pink red":"roz\u012Bgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkan\u012Bgi oran\u017Es",saturation:"Pies\u0101tin\u0101jums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caursp\u012Bd\u012Bgs`,"very dark":"\u013Coti tum\u0161s","very light":"\u013Coti gai\u0161s",vibrant:"ko\u0161s",white:"balts",yellow:"dzeltens","yellow green":"dzelteni za\u013C\u0161"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Bl\xE5","blue purple":"bl\xE5lilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanbl\xE5",dark:"m\xF8rk",gray:"gr\xE5",grayish:"gr\xE5aktig",green:"Gr\xF8nn","green cyan":"gr\xF8nncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosar\xF8d",purple:"lilla","purple magenta":"lillamagenta",red:"R\xF8d","red orange":"r\xF8doransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":"sv\xE6rt m\xF8rk","very light":"sv\xE6rt lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgr\xF8nn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasno\u015B\u0107",brown:"br\u0105zowy","brown yellow":"br\u0105zowo-\u017C\xF3\u0142ty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcie\u0144",light:"jasny",lightness:"Jaskrawo\u015B\u0107",magenta:"purpurowy","magenta pink":"purpurowo-r\xF3\u017Cowy",orange:"pomara\u0144czowy","orange yellow":"pomara\u0144czowo-\u017C\xF3\u0142ty",pale:"blady",pink:"r\xF3\u017Cowy","pink red":"r\xF3\u017Cowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomara\u0144czowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczysto\u015Bci`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"bia\u0142y",yellow:"\u017C\xF3\u0142ty","yellow green":"\u017C\xF3\u0142to-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"p\xE1lido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Satura\xE7\xE3o",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-p\xFArpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"p\xE1lido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"p\xFArpura","purple magenta":"p\xFArpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Satura\xE7\xE3o",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"\xEEnchis",gray:"gri",grayish:"cenu\u0219iu",green:"Verde","green cyan":"verde bleu",hue:"Nuan\u021B\u0103",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-ro\u0219u",purple:"violet","purple magenta":"violet-fucsia",red:"Ro\u0219u","red orange":"portocaliu-ro\u0219u",saturation:"Satura\u021Bie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte \xEEnchis","very light":"foarte deschis",vibrant:"plin de via\u021B\u0103",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"\u0410\u043B\u044C\u0444\u0430",black:"\u0447\u0435\u0440\u043D\u044B\u0439",blue:"\u0421\u0438\u043D\u0438\u0439","blue purple":"\u0441\u0438\u043D\u0435-\u0444\u0438\u043E\u043B\u0435\u0442\u043E\u0432\u044B\u0439",brightness:"\u042F\u0440\u043A\u043E\u0441\u0442\u044C",brown:"\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0439","brown yellow":"\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u043E-\u0436\u0435\u043B\u0442\u044B\u0439",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u0433\u043E\u043B\u0443\u0431\u043E\u0439","cyan blue":"\u0446\u0432\u0435\u0442 \u043C\u043E\u0440\u0441\u043A\u043E\u0439 \u0432\u043E\u043B\u043D\u044B",dark:"\u0442\u0435\u043C\u043D\u044B\u0439",gray:"\u0441\u0435\u0440\u044B\u0439",grayish:"\u0441\u0435\u0440\u043E\u0432\u0430\u0442\u044B\u0439",green:"\u0417\u0435\u043B\u0435\u043D\u044B\u0439","green cyan":"\u0441\u0438\u043D\u0435-\u0437\u0435\u043B\u0435\u043D\u044B\u0439",hue:"\u041E\u0442\u0442\u0435\u043D\u043E\u043A",light:"\u0441\u0432\u0435\u0442\u043B\u044B\u0439",lightness:"\u041E\u0441\u0432\u0435\u0449\u0435\u043D\u043D\u043E\u0441\u0442\u044C",magenta:"\u043F\u0443\u0440\u043F\u0443\u0440\u043D\u044B\u0439","magenta pink":"\u043F\u0443\u0440\u043F\u0443\u0440\u043D\u043E-\u0440\u043E\u0437\u043E\u0432\u044B\u0439",orange:"\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u044B\u0439","orange yellow":"\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u043E-\u0436\u0435\u043B\u0442\u044B\u0439",pale:"\u0431\u043B\u0435\u0434\u043D\u044B\u0439",pink:"\u0440\u043E\u0437\u043E\u0432\u044B\u0439","pink red":"\u0440\u043E\u0437\u043E\u0432\u043E-\u043A\u0440\u0430\u0441\u043D\u044B\u0439",purple:"\u0444\u0438\u043E\u043B\u0435\u0442\u043E\u0432\u044B\u0439","purple magenta":"\u0444\u0438\u043E\u043B\u0435\u0442\u043E\u0432\u043E-\u043F\u0443\u0440\u043F\u0443\u0440\u043D\u044B\u0439",red:"\u041A\u0440\u0430\u0441\u043D\u044B\u0439","red orange":"\u043A\u0440\u0430\u0441\u043D\u043E-\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u044B\u0439",saturation:"\u041D\u0430\u0441\u044B\u0449\u0435\u043D\u043D\u043E\u0441\u0442\u044C",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, \u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439 \u043D\u0430 ${e.percentTransparent}`,"very dark":"\u043E\u0447\u0435\u043D\u044C \u0442\u0435\u043C\u043D\u044B\u0439","very light":"\u043E\u0447\u0435\u043D\u044C \u0441\u0432\u0435\u0442\u043B\u044B\u0439",vibrant:"\u044F\u0440\u043A\u0438\u0439",white:"\u0431\u0435\u043B\u044B\u0439",yellow:"\u0436\u0435\u043B\u0442\u044B\u0439","yellow green":"\u0436\u0435\u043B\u0442\u043E-\u0437\u0435\u043B\u0435\u043D\u044B\u0439"},"sk-SK":{alpha:"Alfa",black:"\u010Dierna",blue:"Modr\xE1","blue purple":"modrofialov\xE1",brightness:"Jas",brown:"hned\xE1","brown yellow":"hnedo\u017Elt\xE1",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"az\xFArov\xE1","cyan blue":"az\xFArov\xE1 modr\xE1",dark:"tmav\xE1",gray:"siv\xE1",grayish:"sivast\xE1",green:"Zelen\xE1","green cyan":"zelen\xE1 az\xFArov\xE1",hue:"Odtie\u0148",light:"svetl\xE1",lightness:"Svetlos\u0165",magenta:"purpurov\xE1","magenta pink":"ru\u017Eov\xE1 purpurov\xE1",orange:"oran\u017Eov\xE1","orange yellow":"oran\u017Eovo\u017Elt\xE1",pale:"bled\xE1",pink:"ru\u017Eov\xE1","pink red":"ru\u017Eovo\u010Derven\xE1",purple:"fialov\xE1","purple magenta":"fialov\xE1 purpurov\xE1",red:"\u010Cerven\xE1","red orange":"\u010Dervenooran\u017Eov\xE1",saturation:"S\xFDtos\u0165",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prieh\u013Eadn\xE1`,"very dark":"ve\u013Emi tmav\xE1","very light":"ve\u013Emi svetl\xE1",vibrant:"energick\xE1",white:"biela",yellow:"\u017Elt\xE1","yellow green":"\u017Eltozelen\xE1"},"sl-SI":{alpha:"Alfa",black:"\u010Drna",blue:"Modra","blue purple":"modro vijoli\u010Dna",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"\u0161krlatna","magenta pink":"\u0161krlatno roza",orange:"oran\u017Ena","orange yellow":"oran\u017Eno rumena",pale:"bleda",pink:"roza","pink red":"roza rde\u010Da",purple:"vijoli\u010Dna","purple magenta":"vijoli\u010Dno \u0161krlatna",red:"Rde\u010Da","red orange":"rde\u010De oran\u017Ena",saturation:"Nasi\u010Denost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"\u017Eivahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubi\u010Dasta",brightness:"Osvetljenost",brown:"sme\u0111a","brown yellow":"sme\u0111e\u017Euta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ru\u017Ei\u010Dasta",orange:"narand\u017Easta","orange yellow":"narand\u017Easto\u017Euta",pale:"bledo",pink:"ru\u017Ei\u010Dasta","pink red":"ru\u017Ei\u010Dastocrvena",purple:"ljubi\u010Dasta","purple magenta":"ljubi\u010Dasta magenta",red:"Crvena","red orange":"crvenonarand\u017Easta",saturation:"Zasi\u0107enje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"\u017Eivopisna",white:"bela",yellow:"\u017Euto","yellow green":"\u017Eutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Bl\xE5tt","blue purple":"bl\xE5lila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanbl\xE5",dark:"m\xF6rk",gray:"gr\xE5",grayish:"gr\xE5aktig",green:"Gr\xF6nt","green cyan":"gr\xF6n cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosar\xF6d",purple:"lila","purple magenta":"lila magenta",red:"R\xF6tt","red orange":"r\xF6dorange",saturation:"M\xE4ttnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":"mycket m\xF6rk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgr\xF6n"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlakl\u0131k",brown:"kahverengi","brown yellow":"kahverengi sar\u0131",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camg\xF6be\u011Fi","cyan blue":"camg\xF6be\u011Fi mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Ye\u015Fil","green cyan":"ye\u015Fil camg\xF6be\u011Fi",hue:"Ton",light:"a\xE7\u0131k",lightness:"Canl\u0131l\u0131k",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sar\u0131",pale:"solgun",pink:"pembe","pink red":"pembe k\u0131rm\u0131z\u0131",purple:"mor","purple magenta":"mor eflatun",red:"K\u0131rm\u0131z\u0131","red orange":"k\u0131rm\u0131z\u0131 portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"\xE7ok koyu","very light":"\xE7ok a\xE7\u0131k",vibrant:"canl\u0131",white:"beyaz",yellow:"sar\u0131","yellow green":"sar\u0131 ye\u015Fil"},"uk-UA":{alpha:"\u0410\u043B\u044C\u0444\u0430",black:"\u0447\u043E\u0440\u043D\u0438\u0439",blue:"\u0421\u0438\u043D\u0456\u0439","blue purple":"\u0441\u0438\u043D\u044C\u043E-\u0444\u0456\u043E\u043B\u0435\u0442\u043E\u0432\u0438\u0439",brightness:"\u042F\u0441\u043A\u0440\u0430\u0432\u0456\u0441\u0442\u044C",brown:"\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u0438\u0439","brown yellow":"\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u043E-\u0436\u043E\u0432\u0442\u0438\u0439",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u0431\u043B\u0430\u043A\u0438\u0442\u043D\u0438\u0439","cyan blue":"\u0441\u0438\u043D\u044C\u043E-\u0431\u043B\u0430\u043A\u0438\u0442\u043D\u0438\u0439",dark:"\u0442\u0435\u043C\u043D\u0438\u0439",gray:"\u0441\u0456\u0440\u0438\u0439",grayish:"\u0441\u0456\u0440\u0443\u0432\u0430\u0442\u0438\u0439",green:"\u0417\u0435\u043B\u0435\u043D\u0438\u0439","green cyan":"\u0437\u0435\u043B\u0435\u043D\u043E-\u0431\u043B\u0430\u043A\u0438\u0442\u043D\u0438\u0439",hue:"\u0422\u043E\u043D",light:"\u0441\u0432\u0456\u0442\u043B\u0438\u0439",lightness:"\u041E\u0441\u0432\u0456\u0442\u043B\u0435\u043D\u0456\u0441\u0442\u044C",magenta:"\u043F\u0443\u0440\u043F\u0443\u0440\u043E\u0432\u0438\u0439","magenta pink":"\u043F\u0443\u0440\u043F\u0443\u0440\u043E\u0432\u043E-\u0440\u043E\u0436\u0435\u0432\u0438\u0439",orange:"\u043F\u043E\u043C\u0430\u0440\u0430\u043D\u0447\u0435\u0432\u0438\u0439","orange yellow":"\u043F\u043E\u043C\u0430\u0440\u0430\u043D\u0447\u0435\u0432\u043E-\u0436\u043E\u0432\u0442\u0438\u0439",pale:"\u0431\u043B\u0456\u0434\u0438\u0439",pink:"\u0440\u043E\u0436\u0435\u0432\u0438\u0439","pink red":"\u0440\u043E\u0436\u0435\u0432\u043E-\u0447\u0435\u0440\u0432\u043E\u043D\u0438\u0439",purple:"\u0444\u0456\u043E\u043B\u0435\u0442\u043E\u0432\u0438\u0439","purple magenta":"\u0444\u0456\u043E\u043B\u0435\u0442\u043E\u0432\u043E-\u043F\u0443\u0440\u043F\u0443\u0440\u043E\u0432\u0438\u0439",red:"\u0427\u0435\u0440\u0432\u043E\u043D\u0438\u0439","red orange":"\u0447\u0435\u0440\u0432\u043E\u043D\u043E-\u043F\u043E\u043C\u0430\u0440\u0430\u043D\u0447\u0435\u0432\u0438\u0439",saturation:"\u041D\u0430\u0441\u0438\u0447\u0435\u043D\u0456\u0441\u0442\u044C",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, \u043F\u0440\u043E\u0437\u043E\u0440\u0438\u0439 \u043D\u0430 ${e.percentTransparent}`,"very dark":"\u0434\u0443\u0436\u0435 \u0442\u0435\u043C\u043D\u0438\u0439","very light":"\u0434\u0443\u0436\u0435 \u0441\u0432\u0456\u0442\u043B\u0438\u0439",vibrant:"\u044F\u0441\u043A\u0440\u0430\u0432\u0438\u0439",white:"\u0431\u0456\u043B\u0438\u0439",yellow:"\u0436\u043E\u0432\u0442\u0438\u0439","yellow green":"\u0436\u043E\u0432\u0442\u043E-\u0437\u0435\u043B\u0435\u043D\u0438\u0439"},"zh-CN":{alpha:"Alpha",black:"\u9ED1\u8272",blue:"\u84DD\u8272","blue purple":"\u84DD\u7D2B\u8272",brightness:"\u4EAE\u5EA6",brown:"\u68D5\u8272\u7684","brown yellow":"\u68D5\u9EC4\u8272",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u84DD\u7EFF\u8272","cyan blue":"\u9752\u84DD\u8272",dark:"\u6DF1\u8272",gray:"\u7070\u8272",grayish:"\u6D45\u7070\u8272\u7684",green:"\u7EFF\u8272","green cyan":"\u7EFF\u9752\u8272",hue:"\u8272\u76F8",light:"\u6D45\u8272",lightness:"\u660E\u4EAE\u5EA6",magenta:"\u7D2B\u7EA2\u8272","magenta pink":"\u7D2B\u7C89\u8272",orange:"\u6A59\u8272","orange yellow":"\u6A59\u9EC4\u8272",pale:"\u82CD\u767D\u7684",pink:"\u7C89\u8272","pink red":"\u7C89\u7EA2\u8272",purple:"\u7D2B\u8272","purple magenta":"\u7D2B\u6D0B\u7EA2\u8272",red:"\u7EA2\u8272","red orange":"\u7EA2\u6A59\u8272",saturation:"\u9971\u548C\u5EA6",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u900F\u660E`,"very dark":"\u5F88\u6697","very light":"\u5F88\u6D45",vibrant:"\u751F\u673A\u52C3\u52C3",white:"\u767D\u8272",yellow:"\u9EC4\u8272","yellow green":"\u9EC4\u8272/\u7EFF\u8272"},"zh-TW":{alpha:"Alpha",black:"\u9ED1",blue:"\u85CD\u8272","blue purple":"\u85CD\u7D2B",brightness:"\u4EAE\u5EA6",brown:"\u68D5","brown yellow":"\u68D5\u9EC3",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u9752","cyan blue":"\u9752\u85CD",dark:"\u6697",gray:"\u7070",grayish:"\u504F\u7070",green:"\u7DA0\u8272","green cyan":"\u9752\u7DA0",hue:"\u8272\u76F8",light:"\u6DFA",lightness:"\u660E\u4EAE",magenta:"\u6D0B\u7D05","magenta pink":"\u6DFA\u6D0B\u7D05",orange:"\u6A59","orange yellow":"\u6A59\u9EC3",pale:"\u6DE1",pink:"\u7C89\u7D05","pink red":"\u7C89\u7D05",purple:"\u7D2B","purple magenta":"\u7D2B\u6D0B\u7D05",red:"\u7D05\u8272","red orange":"\u6A59\u7D05",saturation:"\u98FD\u548C\u5EA6",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u900F\u660E`,"very dark":"\u5F88\u6697","very light":"\u5F88\u6DFA",vibrant:"\u9BAE\u8C54",white:"\u767D",yellow:"\u9EC3","yellow green":"\u9EC3\u7DA0"}};var uv=new cr(_k);function Le(e){let t=tc.parse(e)||rc.parse(e)||oc.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function di(e){return typeof e=="string"?Le(e):e}function Nk(e){return e===360?e:(e%360+360)%360}var Lk=.68,L$=.85,Mk=.55,Ak=.001,cv=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]],ec=class{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(t){if(t in this)return this[t];throw new Error("Unsupported color channel: "+t)}withChannelValue(t,r){if(t in this){let o=this.clone();return o[t]=r,o}throw new Error("Unsupported color channel: "+t)}getChannelName(t,r){return (cr.getGlobalDictionaryForPackage("@react-stately/color")||uv).getStringForLocale(t,r)}getColorSpaceAxes(t){let{xChannel:r,yChannel:o}=t,n=r||this.getColorChannels().find(l=>l!==o),i=o||this.getColorChannels().find(l=>l!==n),a=this.getColorChannels().find(l=>l!==n&&l!==i);return {xChannel:n,yChannel:i,zChannel:a}}getColorName(t){let[r,o,n]=Ok(this),i=cr.getGlobalDictionaryForPackage("@react-stately/color")||uv;if(r>.999)return i.getStringForLocale("white",t);if(r<.001)return i.getStringForLocale("black",t);let a;[a,r]=this.getOklchHue(r,o,n,t);let l="",s="";o<=.1&&o>=Ak?r>=.7?s="pale":s="grayish":o>=.15&&(s="vibrant"),r<.3?l="very dark":r<Mk?l="dark":r<.7||(r<.85?l="light":l="very light"),s&&(s=i.getStringForLocale(s,t)),l&&(l=i.getStringForLocale(l,t));let u=this.getChannelValue("alpha"),c=new kn(t,i);if(u<1){let d=new Ut(t,{style:"percent"}).format(1-u);return c.format("transparentColorName",{lightness:l,chroma:s,hue:a,percentTransparent:d}).replace(/\s+/g," ").trim()}else return c.format("colorName",{lightness:l,chroma:s,hue:a}).replace(/\s+/g," ").trim()}getOklchHue(t,r,o,n){let i=cr.getGlobalDictionaryForPackage("@react-stately/color")||uv;if(r<Ak)return [i.getStringForLocale("gray",n),t];for(let a=0;a<cv.length;a++){let[l,s]=cv[a],[u,c]=cv[a+1]||[360,"pink"];if(o>=l&&o<u)return s==="orange"&&(t<Lk?s="brown":t=t-Lk+Mk),o>l+(u-l)/2&&s!==c?s=`${s} ${c}`:s==="yellow"&&t<L$&&(s="yellow green"),[i.getStringForLocale(s,n).toLocaleLowerCase(n),t]}throw new Error("Unexpected hue")}getHueName(t){let[r,o,n]=Ok(this),[i]=this.getOklchHue(r,o,n,t);return i}},tc=class e extends ec{constructor(r,o,n,i){super();this.red=r;this.green=o;this.blue=n;this.alpha=i;}red;green;blue;alpha;static parse(r){let o=[];if(/^#[\da-f]+$/i.test(r)&&[4,5,7,9].includes(r.length)){let i=(r.length<6?r.replace(/[^#]/gi,"$&$&"):r).slice(1).split("");for(;i.length>0;)o.push(parseInt(i.splice(0,2).join(""),16));o[3]=o[3]!==void 0?o[3]/255:void 0;}let n=r.match(/^rgba?\((.*)\)$/);if(n?.[1]&&(o=n[1].split(",").map(i=>Number(i.trim())),o=o.map((i,a)=>Ze(i??0,0,a<3?255:1))),!(o[0]===void 0||o[1]===void 0||o[2]===void 0))return o.length<3?void 0:new e(o[0],o[1],o[2],o[3]??1)}toString(r="css"){switch(r){case "hex":return "#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case "hexa":return "#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case "rgb":return `rgb(${this.red}, ${this.green}, ${this.blue})`;case "css":case "rgba":return `rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case "hex":case "hexa":case "rgb":case "rgba":return this;case "hsb":case "hsba":return this.toHSB();case "hsl":case "hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+r)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){let r=this.red/255,o=this.green/255,n=this.blue/255,i=Math.min(r,o,n),a=Math.max(r,o,n),l=a-i,s=a===0?0:l/a,u=0;if(l!==0){switch(a){case r:u=(o-n)/l+(o<n?6:0);break;case o:u=(n-r)/l+2;break;case n:u=(r-o)/l+4;break}u/=6;}return new rc(St(u*360,2),St(s*100,2),St(a*100,2),this.alpha)}toHSL(){let r=this.red/255,o=this.green/255,n=this.blue/255,i=Math.min(r,o,n),a=Math.max(r,o,n),l=(a+i)/2,s=a-i,u,c;if(s===0)u=c=0;else {switch(c=s/(l<.5?a+i:2-a-i),a){case r:u=(o-n)/s+(o<n?6:0);break;case o:u=(n-r)/s+2;break;case n:default:u=(r-o)/s+4;break}u/=6;}return new oc(St(u*360,2),St(c*100,2),St(l*100,2),this.alpha)}clone(){return new e(this.red,this.green,this.blue,this.alpha)}getChannelRange(r){switch(r){case "red":case "green":case "blue":return {minValue:0,maxValue:255,step:1,pageSize:17};case "alpha":return {minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}getChannelFormatOptions(r){switch(r){case "red":case "green":case "blue":return {style:"decimal"};case "alpha":return {style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,o){let n=this.getChannelFormatOptions(r),i=this.getChannelValue(r);return new Ut(o,n).format(i)}getColorSpace(){return "rgb"}static colorChannels=["red","green","blue"];getColorChannels(){return e.colorChannels}},M$=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,rc=class e extends ec{constructor(r,o,n,i){super();this.hue=r;this.saturation=o;this.brightness=n;this.alpha=i;}hue;saturation;brightness;alpha;static parse(r){let o;if(o=r.match(M$)){let[n,i,a,l]=(o[1]??o[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new e(Nk(n),Ze(i,0,100),Ze(a,0,100),Ze(l??1,0,1))}}toString(r="css"){switch(r){case "css":return this.toHSL().toString("css");case "hex":return this.toRGB().toString("hex");case "hexa":return this.toRGB().toString("hexa");case "hsb":return `hsb(${this.hue}, ${St(this.saturation,2)}%, ${St(this.brightness,2)}%)`;case "hsba":return `hsba(${this.hue}, ${St(this.saturation,2)}%, ${St(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case "hsb":case "hsba":return this;case "hsl":case "hsla":return this.toHSL();case "rgb":case "rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+r)}}toHSL(){let r=this.saturation/100,o=this.brightness/100,n=o*(1-r/2);return r=n===0||n===1?0:(o-n)/Math.min(n,1-n),new oc(St(this.hue,2),St(r*100,2),St(n*100,2),this.alpha)}toRGB(){let r=this.hue,o=this.saturation/100,n=this.brightness/100,i=(a,l=(a+r/60)%6)=>n-o*n*Math.max(Math.min(l,4-l,1),0);return new tc(Math.round(i(5)*255),Math.round(i(3)*255),Math.round(i(1)*255),this.alpha)}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(r){switch(r){case "hue":return {minValue:0,maxValue:360,step:1,pageSize:15};case "saturation":case "brightness":return {minValue:0,maxValue:100,step:1,pageSize:10};case "alpha":return {minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}getChannelFormatOptions(r){switch(r){case "hue":return {style:"unit",unit:"degree",unitDisplay:"narrow"};case "saturation":case "brightness":case "alpha":return {style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,o){let n=this.getChannelFormatOptions(r),i=this.getChannelValue(r);return (r==="saturation"||r==="brightness")&&(i/=100),new Ut(o,n).format(i)}getColorSpace(){return "hsb"}static colorChannels=["hue","saturation","brightness"];getColorChannels(){return e.colorChannels}},A$=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,oc=class e extends ec{constructor(r,o,n,i){super();this.hue=r;this.saturation=o;this.lightness=n;this.alpha=i;}hue;saturation;lightness;alpha;static parse(r){let o;if(o=r.match(A$)){let[n,i,a,l]=(o[1]??o[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new e(Nk(n),Ze(i,0,100),Ze(a,0,100),Ze(l??1,0,1))}}toString(r="css"){switch(r){case "hex":return this.toRGB().toString("hex");case "hexa":return this.toRGB().toString("hexa");case "hsl":return `hsl(${this.hue}, ${St(this.saturation,2)}%, ${St(this.lightness,2)}%)`;case "css":case "hsla":return `hsla(${this.hue}, ${St(this.saturation,2)}%, ${St(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case "hsl":case "hsla":return this;case "hsb":case "hsba":return this.toHSB();case "rgb":case "rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+r)}}toHSB(){let r=this.saturation/100,o=this.lightness/100,n=o+r*Math.min(o,1-o);return r=n===0?0:2*(1-o/n),new rc(St(this.hue,2),St(r*100,2),St(n*100,2),this.alpha)}toRGB(){let r=this.hue,o=this.saturation/100,n=this.lightness/100,i=o*Math.min(n,1-n),a=(l,s=(l+r/30)%12)=>n-i*Math.max(Math.min(s-3,9-s,1),-1);return new tc(Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255),this.alpha)}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(r){switch(r){case "hue":return {minValue:0,maxValue:360,step:1,pageSize:15};case "saturation":case "lightness":return {minValue:0,maxValue:100,step:1,pageSize:10};case "alpha":return {minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}getChannelFormatOptions(r){switch(r){case "hue":return {style:"unit",unit:"degree",unitDisplay:"narrow"};case "saturation":case "lightness":case "alpha":return {style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,o){let n=this.getChannelFormatOptions(r),i=this.getChannelValue(r);return (r==="saturation"||r==="lightness")&&(i/=100),new Ut(o,n).format(i)}getColorSpace(){return "hsl"}static colorChannels=["hue","saturation","lightness"];getColorChannels(){return e.colorChannels}};function Ok(e){let t=e.toFormat("rgb"),r=t.getChannelValue("red")/255,o=t.getChannelValue("green")/255,n=t.getChannelValue("blue")/255;[r,o,n]=N$(r,o,n);let[i,a,l]=F$(r,o,n),[s,u,c]=K$(i,a,l);return O$(s,u,c)}function O$(e,t,r){var o=Math.atan2(r,t)*180/Math.PI;return [e,Math.sqrt(t**2+r**2),o>=0?o:o+360]}function N$(e,t,r){return [dv(e),dv(t),dv(r)]}function dv(e){let t=e<0?-1:1,r=Math.abs(e);return r<=.04045?e/12.92:t*Math.pow((r+.055)/1.055,2.4)}function F$(e,t,r){return pv([.4123907992659595,.35758433938387796,.1804807884018343,.21263900587151036,.7151686787677559,.07219231536073371,.01933081871559185,.11919477979462599,.9505321522496606],e,t,r)}function K$(e,t,r){let o=[.819022437996703,.3619062600528904,-0.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],n=[.210454268309314,.7936177747023054,-0.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-0.8086757549230774],[i,a,l]=pv(o,e,t,r);return pv(n,Math.cbrt(i),Math.cbrt(a),Math.cbrt(l))}function pv(e,t,r,o){let n=e[0]*t+e[1]*r+e[2]*o,i=e[3]*t+e[4]*r+e[5]*o,a=e[6]*t+e[7]*r+e[8]*o;return [n,i,a]}var Fk=e=>[0,60,120,180,240,300,360].map(t=>e.withChannelValue("hue",t).toString("css")).join(", "),Kk=e=>`${e.withChannelValue("saturation",0)}, transparent`,H$={hue:Fk,saturation:Kk,lightness:()=>"black, transparent, white"},$$={hue:Fk,saturation:Kk,brightness:()=>"black, transparent"};function Vk({direction:e,state:t,zChannel:r,xChannel:o,yChannel:n}){return useMemo(()=>{let a=e==="rtl"?"left":"right",l={},s=t.value.getChannelValue(r);switch(t.value.getColorSpace()){case "rgb":{let p=Le("rgb(0, 0, 0)");l={background:[`linear-gradient(to ${a}, ${p.withChannelValue(o,0)}, ${p.withChannelValue(o,255)})`,`linear-gradient(to top, ${p.withChannelValue(n,0)}, ${p.withChannelValue(n,255)})`,p.withChannelValue(r,s)].join(","),backgroundBlendMode:"screen"};break}case "hsl":{let p=t.value.getColorChannels(),m=Le("hsl(0, 100%, 50%)").withChannelValue(r,s),f=p.filter(y=>y!==r).map(y=>`linear-gradient(to ${y===o?a:"top"}, ${H$[y](m)})`).reverse();r==="hue"&&f.push(m.toString("css")),l={background:f.join(", ")};break}case "hsb":{let p=t.value.getColorChannels(),m=Le("hsb(0, 100%, 100%)").withChannelValue(r,s),f=p.filter(y=>y!==r).map(y=>`linear-gradient(to ${y===o?a:"top"}, ${$$[y](m)})`).reverse();r==="hue"&&f.push(m.toString("css")),l={background:f.join(", ")};break}}let{x:u,y:c}=t.getThumbPosition();e==="rtl"&&(u=1-u);let d={forcedColorAdjust:"none"};return {colorAreaStyleProps:{style:{position:"relative",touchAction:"none",...d,...l}},thumbStyleProps:{style:{position:"absolute",left:`${u*100}%`,top:`${c*100}%`,transform:"translate(-50%, -50%)",touchAction:"none",...d}}}},[e,t,r,o,n])}function Ln(e){let{onMoveStart:t,onMove:r,onMoveEnd:o}=e,n=useRef({didMove:false,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=It(),l=useCallback((p,m,f,y)=>{f===0&&y===0||(n.current.didMove||(n.current.didMove=true,t?.({type:"movestart",pointerType:m,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey})),r?.({type:"move",pointerType:m,deltaX:f,deltaY:y,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey}));},[t,r,n]),s=De(l),u=useCallback((p,m)=>{Sl(),n.current.didMove&&o?.({type:"moveend",pointerType:m,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey});},[o,n]),c=De(u);return {moveProps:useMemo(()=>{let p={},m=()=>{Nu(),n.current.didMove=false;};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let y=h=>{h.button===0&&(s(h,"mouse",h.pageX-(n.current.lastPosition?.pageX??0),h.pageY-(n.current.lastPosition?.pageY??0)),n.current.lastPosition={pageX:h.pageX,pageY:h.pageY});},b=h=>{if(h.button===0){c(h,"mouse");let v=Y($(h));a(v,"mousemove",y,false),a(v,"mouseup",b,false);}};p.onMouseDown=h=>{if(h.button===0){m(),h.stopPropagation(),h.preventDefault(),n.current.lastPosition={pageX:h.pageX,pageY:h.pageY};let v=Y($(h));i(v,"mousemove",y,false),i(v,"mouseup",b,false);}};let g=h=>{let v=[...h.changedTouches].findIndex(({identifier:C})=>C===n.current.id);if(v>=0){let{pageX:C,pageY:T}=h.changedTouches[v];s(h,"touch",C-(n.current.lastPosition?.pageX??0),T-(n.current.lastPosition?.pageY??0)),n.current.lastPosition={pageX:C,pageY:T};}},x=h=>{if([...h.changedTouches].findIndex(({identifier:C})=>C===n.current.id)>=0){c(h,"touch"),n.current.id=null;let C=Y($(h));a(C,"touchmove",g),a(C,"touchend",x),a(C,"touchcancel",x);}};p.onTouchStart=h=>{if(h.changedTouches.length===0||n.current.id!=null)return;let{pageX:v,pageY:C,identifier:T}=h.changedTouches[0];m(),h.stopPropagation(),h.preventDefault(),n.current.lastPosition={pageX:v,pageY:C},n.current.id=T;let P=Y($(h));i(P,"touchmove",g,false),i(P,"touchend",x,false),i(P,"touchcancel",x,false);};}else {let y=g=>{if(g.pointerId===n.current.id){let x=g.pointerType||"mouse";s(g,x,g.pageX-(n.current.lastPosition?.pageX??0),g.pageY-(n.current.lastPosition?.pageY??0)),n.current.lastPosition={pageX:g.pageX,pageY:g.pageY};}},b=g=>{if(g.pointerId===n.current.id){let x=g.pointerType||"mouse";c(g,x),n.current.id=null;let h=Y($(g));a(h,"pointermove",y,false),a(h,"pointerup",b,false),a(h,"pointercancel",b,false);}};p.onPointerDown=g=>{if(g.button===0&&n.current.id==null){m(),g.stopPropagation(),g.preventDefault(),n.current.lastPosition={pageX:g.pageX,pageY:g.pageY},n.current.id=g.pointerId;let x=Y($(g));i(x,"pointermove",y,false),i(x,"pointerup",b,false),i(x,"pointercancel",b,false);}};}let f=(y,b,g)=>{m(),s(y,"keyboard",b,g),c(y,"keyboard");};return p.onKeyDown=y=>{switch(y.key){case "Left":case "ArrowLeft":y.preventDefault(),y.stopPropagation(),f(y,-1,0);break;case "Right":case "ArrowRight":y.preventDefault(),y.stopPropagation(),f(y,1,0);break;case "Up":case "ArrowUp":y.preventDefault(),y.stopPropagation(),f(y,0,-1);break;case "Down":case "ArrowDown":y.preventDefault(),y.stopPropagation(),f(y,0,1);break}},p},[i,a,n])}}function Dm(e,t){let{isDisabled:r,inputXRef:o,inputYRef:n,containerRef:i,"aria-label":a,xName:l,yName:s,form:u}=e,c=Te(Sm,"@react-aria/color"),{addGlobalListener:d,removeGlobalListener:p}=It(),{direction:m,locale:f}=Q(),[y,b]=useState(null),g=useCallback((le=o)=>{le.current&&$e(le.current);},[o]);Mt(o,t.defaultValue,t.setValue);let[x,h]=useState(false),[v,C]=useState(false),{xChannel:T,yChannel:P,zChannel:k}=t.channels,S=t.xChannelStep,w=t.yChannelStep,E=useRef(null),{keyboardProps:z}=Ae({onKeyDown(le){if(!/^(PageUp|PageDown|Home|End)$/.test(le.key)){le.continuePropagation();return}le.preventDefault(),t.setDragging(true),h(true);let ie;switch(le.key){case "PageUp":t.incrementY(t.yChannelPageStep),ie="y";break;case "PageDown":t.decrementY(t.yChannelPageStep),ie="y";break;case "Home":m==="rtl"?t.incrementX(t.xChannelPageStep):t.decrementX(t.xChannelPageStep),ie="x";break;case "End":m==="rtl"?t.decrementX(t.xChannelPageStep):t.incrementX(t.xChannelPageStep),ie="x";break}t.setDragging(false),ie&&(g(ie==="x"?o:n),b(ie));}}),A={onMoveStart(){E.current=null,t.setDragging(true);},onMove({deltaX:le,deltaY:ie,pointerType:we,shiftKey:Ht}){let{incrementX:Yr,decrementX:Zr,incrementY:bt,decrementY:Tt,xChannelPageStep:$t,xChannelStep:ut,yChannelPageStep:Gi,yChannelStep:Xn,getThumbPosition:Qt,setColorFromPoint:Yn}=t;E.current==null&&(E.current=Qt());let{width:nt,height:ml}=i.current?.getBoundingClientRect()||{width:0,height:0},L1=le!==0||ie!==0;if(we==="keyboard"){let M1=Ht&&$t>ut?$t:ut,A1=Ht&&Gi>Xn?Gi:Xn;le>0&&m==="ltr"||le<0&&m==="rtl"?Yr(M1):le<0&&m==="ltr"||le>0&&m==="rtl"?Zr(M1):ie>0?Tt(A1):ie<0&&bt(A1),h(L1),y=L1&&Math.abs(ie)>Math.abs(le)?"y":"x",b(y);}else E.current.x+=(m==="rtl"?-1:1)*le/nt,E.current.y+=ie/ml,Yn(E.current.x,E.current.y);},onMoveEnd(){N.current=false,t.setDragging(false),g(y==="x"?o:n);}},{moveProps:D}=Ln(A),{focusWithinProps:O}=dt({onFocusWithinChange:le=>{le||(h(false),C(false));}}),R=useRef(void 0),N=useRef(false),{moveProps:F}=Ln({onMoveStart(){N.current&&A.onMoveStart();},onMove(le){N.current&&A.onMove(le);},onMoveEnd(){N.current&&A.onMoveEnd();}}),I=le=>{let ie=Y(i.current);t.isDragging||(R.current=le,h(false),g(),t.setDragging(true),typeof PointerEvent<"u"?d(ie,"pointerup",V,false):(d(ie,"mouseup",V,false),d(ie,"touchend",V,false)));},V=le=>{let ie=Y(i.current);(le.pointerId??le.changedTouches?.[0].identifier)===R.current&&(h(false),g(),t.setDragging(false),R.current=void 0,N.current=false,typeof PointerEvent<"u"?p(ie,"pointerup",V,false):(p(ie,"mouseup",V,false),p(ie,"touchend",V,false)));},H=(le,ie,we,Ht)=>{let Yr=le.getBoundingClientRect(),{width:Zr,height:bt}=Yr,Tt=(we-Yr.x)/Zr,$t=(Ht-Yr.y)/bt;m==="rtl"&&(Tt=1-Tt);let ut=Y(i.current);Tt>=0&&Tt<=1&&$t>=0&&$t<=1&&!t.isDragging&&R.current===void 0&&(N.current=true,h(false),R.current=ie,t.setColorFromPoint(Tt,$t),g(),t.setDragging(true),typeof PointerEvent<"u"?d(ut,"pointerup",K,false):(d(ut,"mouseup",K,false),d(ut,"touchend",K,false)));},K=le=>{let ie=le.pointerId??le.changedTouches?.[0].identifier;if(N.current&&ie===R.current){N.current=false,h(false),R.current=void 0,t.setDragging(false),g();let we=Y(i.current);typeof PointerEvent<"u"?p(we,"pointerup",K,false):(p(we,"mouseup",K,false),p(we,"touchend",K,false));}},L=r?{}:M({...typeof PointerEvent<"u"?{onPointerDown:le=>{le.pointerType==="mouse"&&(le.button!==0||le.altKey||le.ctrlKey||le.metaKey)||H(le.currentTarget,le.pointerId,le.clientX,le.clientY);}}:{onMouseDown:le=>{le.button!==0||le.altKey||le.ctrlKey||le.metaKey||H(le.currentTarget,void 0,le.clientX,le.clientY);},onTouchStart:le=>{H(le.currentTarget,le.changedTouches[0].identifier,le.changedTouches[0].clientX,le.changedTouches[0].clientY);}}},F),B=r?{}:M({...typeof PointerEvent<"u"?{onPointerDown:le=>{le.pointerType==="mouse"&&(le.button!==0||le.altKey||le.ctrlKey||le.metaKey)||I(le.pointerId);}}:{onMouseDown:le=>{le.button!==0||le.altKey||le.ctrlKey||le.metaKey||I(void 0);},onTouchStart:le=>{I(le.changedTouches[0].identifier);}}},O,z,D),{focusProps:G}=tr({onFocus:()=>{b("x");}}),{focusProps:q}=tr({onFocus:()=>{b("y");}}),W=le=>{let{target:ie}=le;C(true),ie===o.current?t.setXValue(parseFloat(ie.value)):ie===n.current&&t.setYValue(parseFloat(ie.value));},X=jt()||sr(),ce=t.getDisplayColor(),te=useCallback(le=>`${v||x?c.format("colorNameAndValue",{name:ce.getChannelName(le,f),value:ce.formatChannelValue(le,f)}):[c.format("colorNameAndValue",{name:ce.getChannelName(le,f),value:ce.formatChannelValue(le,f)}),c.format("colorNameAndValue",{name:ce.getChannelName(le===P?T:P,f),value:ce.formatChannelValue(le===P?T:P,f)}),c.format("colorNameAndValue",{name:ce.getChannelName(k,f),value:ce.formatChannelValue(k,f)})].join(", ")}, ${ce.getColorName(f)}`,[f,ce,c,v,x,T,P,k]),ue=c.format("colorPicker"),Ee=tt({...e,"aria-label":a?c.format("colorInputLabel",{label:a,channelLabel:ue}):ue}),Ce=tt({...e,"aria-label":a?c.format("colorInputLabel",{label:a,channelLabel:ue}):ue}),He=tt({...e,"aria-label":a?`${a}, ${ue}`:void 0},X?ue:void 0),Xe=c.format("twoDimensionalSlider"),{visuallyHiddenProps:be}=Ft({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}}),{colorAreaStyleProps:xe,thumbStyleProps:Fe}=Vk({direction:m,state:t,xChannel:T,yChannel:P,zChannel:k});return {colorAreaProps:{...He,...L,...xe,role:"group"},thumbProps:{...B,...Fe,role:"presentation"},xInputProps:{...Ee,...be,...G,type:"range",min:t.value.getChannelRange(T).minValue,max:t.value.getChannelRange(T).maxValue,step:S,"aria-roledescription":Xe,"aria-valuetext":te(T),"aria-orientation":"horizontal","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:r,value:t.value.getChannelValue(T),name:l,form:u,tabIndex:X||!y||y==="x"?void 0:-1,"aria-hidden":X||!y||y==="x"||x?void 0:"true",onChange:W},yInputProps:{...Ce,...be,...q,type:"range",min:t.value.getChannelRange(P).minValue,max:t.value.getChannelRange(P).maxValue,step:w,"aria-roledescription":Xe,"aria-valuetext":te(P),"aria-orientation":"vertical","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:r,value:t.value.getChannelValue(P),name:s,form:u,tabIndex:X||y==="y"?void 0:-1,"aria-hidden":X||y==="y"||x?void 0:"true",onChange:W}}}var U$=Le("#ffffff");function km(e){let{value:t,defaultValue:r,colorSpace:o,xChannel:n,yChannel:i,onChange:a,onChangeEnd:l}=e;!t&&!r&&(r=U$),t&&(t=di(t)),r&&(r=di(r));let[s,u]=ye(t,r,a),[c]=useState(s),d=useMemo(()=>o&&s?s.toFormat(o):s,[s,o]),p=useRef(d),m=R=>{p.current=R,u(R);},f=useMemo(()=>d.getColorSpaceAxes({xChannel:n,yChannel:i}),[d,n,i]),y=d.getChannelRange(f.xChannel),b=d.getChannelRange(f.yChannel),{minValue:g,maxValue:x,step:h,pageSize:v}=y,{minValue:C,maxValue:T,step:P,pageSize:k}=b,[S,w]=useState(false),E=useRef(false),z=d.getChannelValue(f.xChannel),A=d.getChannelValue(f.yChannel),D=R=>{if(R===z)return;let N=d.withChannelValue(f.xChannel,R);m(N);},O=R=>{if(R===A)return;let N=d.withChannelValue(f.yChannel,R);m(N);};return {channels:f,xChannelStep:h,yChannelStep:P,xChannelPageStep:v,yChannelPageStep:k,value:d,defaultValue:t!==void 0?c:r,setValue(R){m(di(R));},xValue:z,setXValue:D,yValue:A,setYValue:O,setColorFromPoint(R,N){let F=g+Ze(R,0,1)*(x-g),I=C+(1-Ze(N,0,1))*(T-C),V;F!==z&&(F=gt(F,g,x,h),V=d.withChannelValue(f.xChannel,F)),I!==A&&(I=gt(I,C,T,P),V=(V||d).withChannelValue(f.yChannel,I)),V&&m(V);},getThumbPosition(){let R=(z-g)/(x-g),N=1-(A-C)/(T-C);return {x:R,y:N}},incrementX(R=1){D(z+R>x?x:gt(z+R,g,x,h));},incrementY(R=1){O(A+R>T?T:gt(A+R,C,T,P));},decrementX(R=1){D(gt(z-R,g,x,h));},decrementY(R=1){O(gt(A-R,C,T,P));},setDragging(R){let N=E.current;E.current=R,l&&!R&&N&&l(p.current),w(R);},isDragging:S,getDisplayColor(){return d.withChannelValue("alpha",1)}}}function $r(e,t){let{inputElementType:r="input",isDisabled:o=false,isRequired:n=false,isReadOnly:i=false,type:a="text",validationBehavior:l="aria"}=e,[s,u]=ye(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=it(e,t),d=Kt({...e,value:s}),{isInvalid:p,validationErrors:m,validationDetails:f}=d.displayValidation,{labelProps:y,fieldProps:b,descriptionProps:g,errorMessageProps:x}=Br({...e,isInvalid:p,errorMessage:e.errorMessage||m,ref:t}),h=oe(e,{labelable:true}),v={type:a,pattern:e.pattern},[C]=useState(s);return Mt(t,e.defaultValue??C,u),Xo(e,d,t),{labelProps:y,inputProps:M(h,r==="input"?v:void 0,{disabled:o,readOnly:i,required:n&&l==="native","aria-required":n&&l==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:s,onChange:T=>u($(T).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(qn.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...b}),descriptionProps:g,errorMessageProps:x,isInvalid:p,validationErrors:m,validationDetails:f}}function Uk(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function Em(e,t,r){let o=De(d=>{let p=r.current;if(!p)return;let m=null;switch(d.inputType){case "historyUndo":case "historyRedo":return;case "insertLineBreak":return;case "deleteContent":case "deleteByCut":case "deleteByDrag":m=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case "deleteContentForward":m=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case "deleteContentBackward":m=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case "deleteSoftLineBackward":case "deleteHardLineBackward":m=p.value.slice(p.selectionStart);break;default:d.data!=null&&(m=p.value.slice(0,p.selectionStart)+d.data+p.value.slice(p.selectionEnd));break}(m==null||!t.validate(m))&&d.preventDefault();});useEffect(()=>{if(!Uk()||!r.current)return;let d=r.current;return d.addEventListener("beforeinput",o,false),()=>{d.removeEventListener("beforeinput",o,false);}},[r]);let n=Uk()?null:d=>{let p=$(d),m=p.value.slice(0,p.selectionStart)+d.data+p.value.slice(p.selectionEnd);t.validate(m)||d.preventDefault();},{labelProps:i,inputProps:a,descriptionProps:l,errorMessageProps:s,...u}=$r(e,r),c=useRef(null);return {inputProps:M(a,{onBeforeInput:n,onCompositionStart(){let{value:d,selectionStart:p,selectionEnd:m}=r.current;c.current={value:d,selectionStart:p,selectionEnd:m};},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:d,selectionStart:p,selectionEnd:m}=c.current;r.current.value=d,r.current.setSelectionRange(p,m),t.setInputValue(d);}}}),labelProps:i,descriptionProps:l,errorMessageProps:s,...u}}function zm(e,t){let{onScroll:r,isDisabled:o}=e,n=useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),r&&r({deltaX:i.deltaX,deltaY:i.deltaY}));},[r]);ct(t,"wheel",o?void 0:n);}var Wk={"ar-AE":{Empty:"\u0641\u0627\u0631\u063A"},"bg-BG":{Empty:"\u0418\u0437\u043F\u0440\u0430\u0437\u043D\u0438"},"cs-CZ":{Empty:"Pr\xE1zdn\xE9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"\u0386\u03B4\u03B5\u03B9\u03BF"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xEDo"},"et-EE":{Empty:"T\xFChjenda"},"fi-FI":{Empty:"Tyhj\xE4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"\u05E8\u05D9\u05E7"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xDCres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"\u7A7A"},"ko-KR":{Empty:"\uBE44\uC5B4 \uC788\uC74C"},"lt-LT":{Empty:"Tu\u0161\u010Dias"},"lv-LV":{Empty:"Tuk\u0161s"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"\u041D\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E"},"sk-SK":{Empty:"Pr\xE1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Bo\u015F"},"uk-UA":{Empty:"\u041F\u0443\u0441\u0442\u043E"},"zh-CN":{Empty:"\u7A7A"},"zh-TW":{Empty:"\u7A7A\u767D"}};var Yk=()=>{};function Ml(e){let t=useRef(void 0),{value:r,textValue:o,minValue:n,maxValue:i,isDisabled:a,isReadOnly:l,isRequired:s,onIncrement:u,onIncrementPage:c,onDecrement:d,onDecrementPage:p,onDecrementToMin:m,onIncrementToMax:f}=e,y=Te(Wk,"@react-aria/spinbutton"),b=useRef(false),g=useCallback(()=>{clearTimeout(t.current),b.current=false;},[]),x=De(()=>{g();});useEffect(()=>()=>x(),[]);let h=L=>{if(!(L.ctrlKey||L.metaKey||L.shiftKey||L.altKey||l||L.nativeEvent.isComposing))switch(L.key){case "PageUp":if(c){L.preventDefault(),c?.();break}case "ArrowUp":case "Up":u&&(L.preventDefault(),u?.());break;case "PageDown":if(p){L.preventDefault(),p?.();break}case "ArrowDown":case "Down":d&&(L.preventDefault(),d?.());break;case "Home":m&&(L.preventDefault(),m?.());break;case "End":f&&(L.preventDefault(),f?.());break}},v=useRef(false),C=()=>{v.current=true;},T=()=>{v.current=false;},P=o===""?y.format("Empty"):(o||`${r}`).replace("-","\u2212");useEffect(()=>{v.current&&(nm("assertive"),at(P,"assertive"));},[P]);let k=useCallback(()=>{g();},[g]),S=De(u??Yk),w=De(d??Yk),E=De(()=>{(i===void 0||isNaN(i)||r===void 0||isNaN(r)||r<i)&&(S(),z(60));}),z=De(L=>{x(),b.current=true,t.current=window.setTimeout(E,L);}),A=De(()=>{(n===void 0||isNaN(n)||r===void 0||isNaN(r)||r>n)&&(w(),D(60));}),D=De(L=>{x(),b.current=true,t.current=window.setTimeout(A,L);}),O=L=>{L.preventDefault();},{addGlobalListener:R,removeAllGlobalListeners:N}=It(),F=useRef(false),[I,V]=useState(null);useEffect(()=>{I==="touch"?z(600):I?z(400):I||x();},[I]);let[H,K]=useState(null);return useEffect(()=>{H==="touch"?D(600):H?D(400):H||x();},[H]),{spinButtonProps:{role:"spinbutton","aria-valuenow":r!==void 0&&!isNaN(r)?r:void 0,"aria-valuetext":P,"aria-valuemin":n,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":l||void 0,"aria-required":s||void 0,onKeyDown:h,onFocus:C,onBlur:T},incrementButtonProps:{onPressStart:L=>{g(),L.pointerType!=="touch"?(u?.(),V("mouse")):(R(window,"pointercancel",k,{capture:true}),F.current=false,V("touch")),R(window,"contextmenu",O);},onPressUp:L=>{g(),L.pointerType==="touch"&&(F.current=true),N(),V(null);},onPressEnd:L=>{g(),L.pointerType==="touch"&&!b.current&&F.current&&u?.(),F.current=false,V(null);},onFocus:C,onBlur:T},decrementButtonProps:{onPressStart:L=>{g(),L.pointerType!=="touch"?(d?.(),K("mouse")):(R(window,"pointercancel",k,{capture:true}),F.current=false,K("touch"));},onPressUp:L=>{g(),L.pointerType==="touch"&&(F.current=true),N(),K(null);},onPressEnd:L=>{g(),L.pointerType==="touch"&&!b.current&&F.current&&d?.(),F.current=false,K(null);},onFocus:C,onBlur:T}}}function Im(e,t,r){let{isDisabled:o,isReadOnly:n,isRequired:i,isWheelDisabled:a,validationBehavior:l="aria"}=e,{colorValue:s,inputValue:u,increment:c,decrement:d,incrementToMax:p,decrementToMin:m,commit:f}=t,y=ee(),{spinButtonProps:b}=Ml({isDisabled:o,isReadOnly:n,isRequired:i,maxValue:16777215,minValue:0,onIncrement:c,onIncrementToMax:p,onDecrement:d,onDecrementToMin:m,value:s?s.toHexInt():void 0,textValue:s?s.toString("hex"):void 0}),[g,x]=useState(false),{focusWithinProps:h}=dt({isDisabled:o,onFocusWithinChange:x}),v=useCallback(S=>{Math.abs(S.deltaY)<=Math.abs(S.deltaX)||(S.deltaY>0?c():S.deltaY<0&&d());},[d,c]);zm({onScroll:v,isDisabled:a||o||n||!g},r);let T=S=>{t.validate(S)&&t.setInputValue(S);},{inputProps:P,...k}=Em({...e,id:y,value:u,defaultValue:"!",validate:void 0,[Hr]:t,type:"text",autoComplete:"off",onChange:T},t,r);return Mt(r,t.defaultColorValue,t.setColorValue),P=M(P,b,h,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:f}),l==="native"&&(P["aria-required"]=void 0),{inputProps:P,...k}}var Zk={"ar-AE":{decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"},"bg-BG":{decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"},"cs-CZ":{decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"},"et-EE":{decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"},"fi-FI":{decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"},"ko-KR":{decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"},"lt-LT":{decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"},"ro-RO":{decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"},"ru-RU":{decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"},"sk-SK":{decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"},"uk-UA":{decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"},"zh-CN":{decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"},"zh-TW":{decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"}};function nc(e,t,r){let{id:o,decrementAriaLabel:n,incrementAriaLabel:i,isDisabled:a,isReadOnly:l,isRequired:s,minValue:u,maxValue:c,autoFocus:d,label:p,formatOptions:m,onBlur:f=()=>{},onFocus:y,onFocusChange:b,onKeyDown:g,onKeyUp:x,description:h,errorMessage:v,isWheelDisabled:C,...T}=e,{increment:P,incrementToMax:k,decrement:S,decrementToMin:w,numberValue:E,inputValue:z,commit:A,commitValidation:D}=t,O=Te(Zk,"@react-aria/numberfield"),R=useCallback(()=>{let nt=r.current?.value??"";flushSync(()=>{A();}),r.current?.value!==nt&&at(r.current?.value??"","assertive");},[A,r]),N=ee(o),{focusProps:F}=tr({onBlur(){R();}}),I=So(m),V=useMemo(()=>I.resolvedOptions(),[I]),H=So({...m,currencySign:void 0}),K=useMemo(()=>isNaN(E)?"":H.format(E),[H,E]),{spinButtonProps:L,incrementButtonProps:B,decrementButtonProps:G}=Ml({isDisabled:a,isReadOnly:l,isRequired:s,maxValue:c,minValue:u,onIncrement:P,onIncrementToMax:k,onDecrement:S,onDecrementToMin:w,value:E,textValue:K}),[q,W]=useState(false),{focusWithinProps:X}=dt({isDisabled:a,onFocusWithinChange:W}),ce=useCallback(nt=>{Math.abs(nt.deltaY)<=Math.abs(nt.deltaX)||(nt.deltaY>0?P():nt.deltaY<0&&S());},[S,P]);zm({onScroll:ce,isDisabled:C||a||l||!q},r);let ue=(V.maximumFractionDigits??0)>0,Ee=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Ce="numeric";Du()?Ee?Ce="text":ue&&(Ce="decimal"):sr()&&(Ee?Ce="numeric":ue&&(Ce="decimal"));let He=nt=>{t.validate(nt)&&t.setInputValue(nt);},Xe=nt=>{e.onPaste?.(nt);let ml=$(nt);ml&&(ml.selectionEnd??-1)-(ml.selectionStart??0)===ml.value.length&&(nt.preventDefault(),A(nt.clipboardData?.getData?.("text/plain")?.trim()??""));},be=oe(e),xe=useCallback(nt=>{nt.nativeEvent.isComposing||(nt.key==="Enter"?(flushSync(()=>{A();}),D()):nt.continuePropagation());},[A,D]),{isInvalid:Fe,validationErrors:le,validationDetails:ie}=t.displayValidation,{labelProps:we,inputProps:Ht,descriptionProps:Yr,errorMessageProps:Zr}=Em({...T,...be,name:void 0,form:void 0,label:p,autoFocus:d,isDisabled:a,isReadOnly:l,isRequired:s,validate:void 0,[Hr]:t,value:z,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:N,type:"text",inputMode:Ce,onChange:He,onBlur:f,onFocus:y,onFocusChange:b,onKeyDown:useMemo(()=>Ye(xe,g),[xe,g]),onKeyUp:x,onPaste:Xe,description:h,errorMessage:v},t,r);Mt(r,t.defaultNumberValue,t.setNumberValue),tj(t,e.validationBehavior,e.commitBehavior,r,t.minValue,t.maxValue,e.step,t.numberValue);let bt=M(L,F,Ht,{role:null,"aria-roledescription":jt()?null:O.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(bt["aria-required"]=void 0);let Tt=nt=>{de(U(r.current))!==r.current&&(nt.pointerType==="mouse"?r.current?.focus():nt.target.focus());},$t=e["aria-label"]||(typeof e.label=="string"?e.label:""),ut;$t||(ut=e.label!=null?we.id:e["aria-labelledby"]);let Gi=ee(),Xn=ee(),Qt=M(B,{"aria-label":i||O.format("increase",{fieldLabel:$t}).trim(),id:ut&&!i?Gi:null,"aria-labelledby":ut&&!i?`${Gi} ${ut}`:null,"aria-controls":N,excludeFromTabOrder:true,preventFocusOnPress:true,allowFocusWhenDisabled:true,isDisabled:!t.canIncrement,onPressStart:Tt}),Yn=M(G,{"aria-label":n||O.format("decrease",{fieldLabel:$t}).trim(),id:ut&&!n?Xn:null,"aria-labelledby":ut&&!n?`${Xn} ${ut}`:null,"aria-controls":N,excludeFromTabOrder:true,preventFocusOnPress:true,allowFocusWhenDisabled:true,isDisabled:!t.canDecrement,onPressStart:Tt});return {groupProps:{...X,role:"group","aria-disabled":a,"aria-invalid":Fe?"true":void 0},labelProps:we,inputProps:bt,incrementButtonProps:Qt,decrementButtonProps:Yn,errorMessageProps:Zr,descriptionProps:Yr,isInvalid:Fe,validationErrors:le,validationDetails:ie}}var vr=null;function tj(e,t,r,o,n,i,a,l){re(()=>{let s=o.current;if(r!=="validate"||e.realtimeValidation.isInvalid||!s||s.disabled||(!vr&&typeof document<"u"&&(vr=document.createElement("input"),vr.type="number"),!vr))return;vr.min=n!=null&&!isNaN(n)?String(n):"",vr.max=i!=null&&!isNaN(i)?String(i):"",vr.step=a!=null&&!isNaN(a)?String(a):"",vr.value=l!=null&&!isNaN(l)?String(l):"";let u=s.validity.valid&&vr.validity.valid,c=s.validationMessage||vr.validationMessage,d={isInvalid:!u,validationErrors:c?[c]:[],validationDetails:{badInput:s.validity.badInput,customError:s.validity.customError,patternMismatch:s.validity.patternMismatch,rangeOverflow:vr.validity.rangeOverflow,rangeUnderflow:vr.validity.rangeUnderflow,stepMismatch:vr.validity.stepMismatch,tooLong:s.validity.tooLong,tooShort:s.validity.tooShort,typeMismatch:s.validity.typeMismatch,valueMissing:s.validity.valueMissing,valid:u}};e.updateValidation(d),t==="native"&&!vr.validity.valid&&s.setCustomValidity(vr.validationMessage);});}function gv(e){return useMemo(()=>{if(typeof e=="string")try{return Le(e)}catch{return}return e},[e])}var _m=Le("#000000"),eE=Le("#FFFFFF"),nj=_m.toHexInt(),ij=eE.toHexInt();function Lm(e){let{value:t,defaultValue:r,onChange:o}=e,{step:n}=_m.getChannelRange("red"),i=gv(r),[a,l]=ye(gv(t),i,o),[s]=useState(a),[u,c]=useState(()=>(t||r)&&a?a.toString("hex"):""),d=Kt({...e,value:a}),p=T=>{if(!a||!T){l(T);return}if(T.toHexInt()!==a.toHexInt()){l(T);return}},[m,f]=useState(a);m!==a&&(c(a?a.toString("hex"):""),f(a));let y=useMemo(()=>{let T;try{T=Le(u.startsWith("#")?u:`#${u}`);}catch{T=null;}return T},[u]);return {...d,validate:T=>T===""||!!T.match(/^#?[0-9a-f]{0,6}$/i)?.[0],colorValue:a,defaultColorValue:i??s,setColorValue:l,inputValue:u,setInputValue:c,commit:()=>{if(!u.length){p(null),c(t===void 0||a===null?"":a.toString("hex"));return}if(y==null){c(a?a.toString("hex"):"");return}p(y);let T="";a&&(T=a.toString("hex")),c(T),d.commitValidation();},increment:()=>{let T=Qk(y,n);T===a&&c(T.toString("hex")),p(T),d.commitValidation();},incrementToMax:()=>p(eE),decrement:()=>{let T=Qk(y,-n);T===a&&c(T.toString("hex")),p(T),d.commitValidation();},decrementToMin:()=>p(_m)}}function Qk(e,t){let r=e||_m,o=r.toHexInt(),n=Math.min(Math.max(o+t,nj),ij);if(n!==o){let i=`#${n.toString(16).padStart(6,"0").toUpperCase()}`;r=Le(i);}return r}function ac(e){let{minValue:t,maxValue:r,step:o,formatOptions:n,value:i,defaultValue:a=NaN,onChange:l,locale:s,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;i===null&&(i=NaN);let p=useCallback(G=>o===void 0||isNaN(o)?Ze(G,t,r):gt(G,t,r,o),[o,t,r]);i!==void 0&&!isNaN(i)&&d==="snap"&&(i=p(i)),!isNaN(a)&&d==="snap"&&(a=p(a));let[m,f]=ye(i,isNaN(a)?NaN:a,l),[y]=useState(m),[b,g]=useState(()=>isNaN(m)?"":new Ut(s,n).format(m)),x=useMemo(()=>new ai(s,n),[s,n]),h=useMemo(()=>x.getNumberingSystem(b),[x,b]),v=useMemo(()=>new Ut(s,{...n,numberingSystem:h}),[s,n,h]),C=useMemo(()=>v.resolvedOptions(),[v]),T=useCallback(G=>isNaN(G)||G===null?"":v.format(G),[v]),P=Kt({...e,value:m}),k=o!==void 0&&!isNaN(o)?o:1;C.style==="percent"&&(o===void 0||isNaN(o))&&(k=.01);let[S,w]=useState(m),[E,z]=useState(s),[A,D]=useState(n);(!Object.is(m,S)||s!==E||!aj(n,A))&&(g(T(m)),w(m),z(s),D(n));let O=useMemo(()=>x.parse(b),[x,b]),R=G=>{let q=G===void 0?b:G,W=O;if(G!==void 0&&(W=x.parse(q)),!q.length){f(NaN),g(i===void 0?"":T(m));return}if(isNaN(W)){g(T(m));return}let X=d==="snap"?p(W):W;X=x.parse(T(X));let ce=X!==m;f(X),g(T(i===void 0?X:m)),ce&&P.commitValidation();},N=(G,q=0)=>{let W=O;if(isNaN(W)){let X=isNaN(q)?0:q;return gt(X,t,r,k)}else {let X=gt(W,t,r,k);return G==="+"&&X>W||G==="-"&&X<W?X:gt(vv(G,W,k),t,r,k)}},F=()=>{let G=N("+",t);G===m&&g(T(G)),f(G),P.commitValidation();},I=()=>{let G=N("-",r);G===m&&g(T(G)),f(G),P.commitValidation();},V=()=>{r!=null&&(f(gt(r,t,r,k)),P.commitValidation());},H=()=>{t!=null&&(f(t),P.commitValidation());},K=useMemo(()=>!u&&!c&&(isNaN(O)||r===void 0||isNaN(r)||gt(O,t,r,k)>O||vv("+",O,k)<=r),[u,c,t,r,k,O]),L=useMemo(()=>!u&&!c&&(isNaN(O)||t===void 0||isNaN(t)||gt(O,t,r,k)<O||vv("-",O,k)>=t),[u,c,t,r,k,O]);return {...P,validate:G=>x.isValidPartialNumber(G,t,r),increment:F,incrementToMax:V,decrement:I,decrementToMin:H,canIncrement:K,canDecrement:L,minValue:t,maxValue:r,numberValue:O,defaultNumberValue:isNaN(a)?y:a,setNumberValue:f,setInputValue:g,inputValue:b,commit:R}}function aj(e,t){if(e===t)return true;if(!e||!t)return false;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return false;for(let n of r)if(t[n]!==e[n])return false;return true}function vv(e,t,r){let o=e==="+"?t+r:t-r;if(t%1!==0||r%1!==0){let n=t.toString().split("."),i=r.toString().split("."),a=n[1]&&n[1].length||0,l=i[1]&&i[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),r=Math.round(r*s),o=e==="+"?t+r:t-r,o/=s;}return o}var sj=createContext({}),uj=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,...n}=e;return n},rE=zh(function(t,r){[t,r]=Ie(t,r,sj);let{hoverProps:o,isHovered:n}=ae({...t,isDisabled:t.disabled}),{isFocused:i,isFocusVisible:a,focusProps:l}=ne({isTextInput:true,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",u=Ve({...t,values:{isHovered:n,isFocused:i,isFocusVisible:a,isDisabled:t.disabled||false,isInvalid:s},defaultClassName:"react-aria-Input"});return jsx(Pe.input,{...M(uj(t),l,o),...u,ref:r,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":n||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})});var lc=new WeakMap;function sc(e,t){let r=lc.get(e);if(!r)throw new Error("Unknown slider state");return `${r.id}-${t}`}function uc(e,t,r){let{labelProps:o,fieldProps:n}=rr(e),i=e.orientation==="vertical";lc.set(t,{id:o.id??n.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=Q(),{addGlobalListener:l,removeGlobalListener:s}=It(),u=useRef(null),c=a==="rtl",d=useRef(null),{moveProps:p}=Ln({onMoveStart(){d.current=null;},onMove({deltaX:b,deltaY:g}){if(!r.current)return;let{height:x,width:h}=r.current.getBoundingClientRect(),v=i?x:h;d.current==null&&u.current!=null&&(d.current=t.getThumbPercent(u.current)*v);let C=i?g:b;if((i||c)&&(C=-C),d.current+=C,u.current!=null&&r.current){let T=Ze(d.current/v,0,1);t.setThumbPercent(u.current,T);}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,false),u.current=null);}}),m=useRef(void 0),f=(b,g,x,h)=>{if(r.current&&!e.isDisabled&&t.values.every((v,C)=>!t.isThumbDragging(C))){let v=Y(b.currentTarget),{height:C,width:T,top:P,left:k}=r.current.getBoundingClientRect(),S=i?C:T,A=((i?h:x)-(i?P:k))/S;(a==="rtl"||i)&&(A=1-A);let D=t.getPercentValue(A),O,R=t.values.findIndex(N=>D-N<0);if(R===0)O=R;else if(R===-1)O=t.values.length-1;else {let N=t.values[R-1],F=t.values[R];Math.abs(N-D)<Math.abs(F-D)?O=R-1:O=R;}O>=0&&t.isThumbEditable(O)?(b.preventDefault(),u.current=O,t.setFocusedThumb(O),m.current=g,t.setThumbDragging(u.current,true),t.setThumbValue(O,D),l(v,"mouseup",y,false),l(v,"touchend",y,false),l(v,"pointerup",y,false)):u.current=null;}},y=b=>{let g=b.pointerId??b.changedTouches?.[0].identifier,x=Y(b.currentTarget);g===m.current&&(u.current!=null&&(t.setThumbDragging(u.current,false),u.current=null),s(x,"mouseup",y,false),s(x,"touchend",y,false),s(x,"pointerup",y,false));};return "htmlFor"in o&&o.htmlFor&&(delete o.htmlFor,o.onClick=b=>{U(b.currentTarget).getElementById(sc(t,0))?.focus(),ur("keyboard");}),{labelProps:o,groupProps:{role:"group",...n},trackProps:M({onMouseDown(b){b.button!==0||b.altKey||b.ctrlKey||b.metaKey||f(b,void 0,b.clientX,b.clientY);},onPointerDown(b){b.pointerType==="mouse"&&(b.button!==0||b.altKey||b.ctrlKey||b.metaKey)||f(b,b.pointerId,b.clientX,b.clientY);},onTouchStart(b){f(b,b.changedTouches[0].identifier,b.changedTouches[0].clientX,b.changedTouches[0].clientY);},style:{position:"relative",touchAction:"none"}},p),outputProps:{htmlFor:t.values.map((b,g)=>sc(t,g)).join(" "),"aria-live":"off"}}}function cc(e,t){let{index:r=0,isRequired:o,validationState:n,isInvalid:i,trackRef:a,inputRef:l,orientation:s=t.orientation,name:u,form:c}=e,d=e.isDisabled||t.isDisabled,p=s==="vertical",{direction:m}=Q(),{addGlobalListener:f,removeGlobalListener:y}=It(),b=lc.get(t),{labelProps:g,fieldProps:x}=rr({...e,id:sc(t,r),"aria-labelledby":`${b.id} ${e["aria-labelledby"]??""}`.trim()}),h=t.values[r],v=useCallback(()=>{l.current&&$e(l.current);},[l]),C=t.focusedThumb===r;useEffect(()=>{C&&v();},[C,v]);let T=m==="rtl",P=useRef(null),{keyboardProps:k}=Ae({onKeyDown(R){let{getThumbMaxValue:N,getThumbMinValue:F,decrementThumb:I,incrementThumb:V,setThumbValue:H,setThumbDragging:K,pageSize:L}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(R.key)){R.continuePropagation();return}switch(R.preventDefault(),K(r,true),R.key){case "PageUp":V(r,L);break;case "PageDown":I(r,L);break;case "Home":H(r,F(r));break;case "End":H(r,N(r));break}K(r,false);}}),{moveProps:S}=Ln({onMoveStart(){P.current=null,t.setThumbDragging(r,true);},onMove({deltaX:R,deltaY:N,pointerType:F,shiftKey:I}){let{getThumbPercent:V,setThumbPercent:H,decrementThumb:K,incrementThumb:L,step:B,pageSize:G}=t;if(!a.current)return;let{width:q,height:W}=a.current.getBoundingClientRect(),X=p?W:q;if(P.current==null&&(P.current=V(r)*X),F==="keyboard")R>0&&T||R<0&&!T||N>0?K(r,I?G:B):L(r,I?G:B);else {let ce=p?N:R;(p||T)&&(ce=-ce),P.current+=ce,H(r,Ze(P.current/X,0,1));}},onMoveEnd(){t.setThumbDragging(r,false);}});t.setThumbEditable(r,!d);let{focusableProps:w}=it(M(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),l),E=useRef(void 0),z=R=>{v(),E.current=R,t.setThumbDragging(r,true);let N=Y(l.current);f(N,"mouseup",A,false),f(N,"touchend",A,false),f(N,"pointerup",A,false);},A=R=>{if((R.pointerId??R.changedTouches?.[0].identifier)===E.current){v(),t.setThumbDragging(r,false);let F=Y(l.current);y(F,"mouseup",A,false),y(F,"touchend",A,false),y(F,"pointerup",A,false);}},D=t.getThumbPercent(r);(p||m==="rtl")&&(D=1-D);let O=d?{}:M(k,S,{onMouseDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||z();},onPointerDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||z(R.pointerId);},onTouchStart:R=>{z(R.changedTouches[0].identifier);}});return Mt(l,t.defaultValues[r],R=>{t.setThumbValue(r,R);}),{inputProps:M(w,x,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:h,name:u,form:c,disabled:d,"aria-orientation":s,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":o||void 0,"aria-invalid":i||n==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[b["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[b["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:R=>{t.setThumbValue(r,parseFloat($(R).value));}}),thumbProps:{...O,style:{position:"absolute",[p?"top":"left"]:`${D*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:g,isDragging:t.isThumbDragging(r),isDisabled:d,isFocused:C}}function Mm(e,t){let{trackRef:r,inputRef:o,orientation:n,channel:i,"aria-label":a,name:l,form:s}=e,{locale:u,direction:c}=Q();!e.label&&!a&&!e["aria-labelledby"]&&(a=t.value.getChannelName(i,u));let{groupProps:d,trackProps:p,labelProps:m,outputProps:f}=uc({...e,"aria-label":a},t,r),{inputProps:y,thumbProps:b}=cc({index:0,orientation:n,isDisabled:e.isDisabled,name:l,form:s,trackRef:r,inputRef:o},t),g=t.getDisplayColor(),x=()=>{let C;switch(n==="vertical"?C="top":c==="ltr"?C="right":C="left",i){case "hue":{let T=[0,60,120,180,240,300,360].map(P=>g.withChannelValue("hue",P).toString("css")).join(", ");return `linear-gradient(to ${C}, ${T})`}case "lightness":{let T=t.getThumbMinValue(0),P=t.getThumbMaxValue(0),k=g.withChannelValue(i,T).toString("css"),S=g.withChannelValue(i,(P-T)/2).toString("css"),w=g.withChannelValue(i,P).toString("css");return `linear-gradient(to ${C}, ${k}, ${S}, ${w})`}case "saturation":case "brightness":case "red":case "green":case "blue":case "alpha":{let T=g.withChannelValue(i,t.getThumbMinValue(0)).toString("css"),P=g.withChannelValue(i,t.getThumbMaxValue(0)).toString("css");return `linear-gradient(to ${C}, ${T}, ${P})`}default:throw new Error("Unknown color channel: "+i)}},h={forcedColorAdjust:"none"};i==="hue"?y["aria-valuetext"]+=`, ${g.getHueName(u)}`:i!=="alpha"&&(y["aria-valuetext"]+=`, ${g.getColorName(u)}`);let{visuallyHiddenProps:v}=Ft({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}});return {trackProps:{...M(d,p),style:{...p.style,...h,background:x()}},inputProps:{...y,style:{...y.style,...v.style}},thumbProps:{...b,style:{...b.style,...h}},labelProps:m,outputProps:f}}var fj=0,yj=100,bj=1;function dc(e){let{isDisabled:t=false,minValue:r=fj,maxValue:o=yj,numberFormatter:n,step:i=bj,orientation:a="horizontal"}=e,l=useMemo(()=>{let L=(o-r)/10;return L=gt(L,0,L+i,i),Math.max(L,i)},[i,o,r]),s=useCallback(L=>L?.map((B,G)=>{let q=G===0?r:L[G-1],W=G===L.length-1?o:L[G+1];return gt(B,q,W,i)}),[r,o,i]),u=useMemo(()=>s(iE(e.value)),[e.value,s]),c=useMemo(()=>s(iE(e.defaultValue)??[r]),[e.defaultValue,r,s]),d=aE(e.value,e.defaultValue,e.onChange),p=aE(e.value,e.defaultValue,e.onChangeEnd),[m,f]=ye(u,c,d),[y]=useState(m),[b,g]=useState(new Array(m.length).fill(false)),x=useRef(new Array(m.length).fill(true)),[h,v]=useState(void 0),C=useRef(m),T=useRef(b),P=L=>{C.current=L,f(L);},k=L=>{T.current=L,g(L);};function S(L){return (L-r)/(o-r)}function w(L){return L===0?r:m[L-1]}function E(L){return L===m.length-1?o:m[L+1]}function z(L){return x.current[L]}function A(L,B){x.current[L]=B;}function D(L,B){if(t||!z(L))return;let G=w(L),q=E(L);B=gt(B,G,q,i);let W=nE(C.current,L,B);P(W);}function O(L,B){if(t||!z(L))return;B&&(C.current=m);let G=T.current[L];T.current=nE(T.current,L,B),k(T.current),p&&G&&!T.current.some(Boolean)&&p(C.current);}let R=useRef(null);function N(L=m){switch(typeof L=="number"&&(L=[L]),L.length){case 0:return "";case 1:return n.format(L[0]);case 2:return n.formatRange(L[0],L[1]);default:{let B=L.map(q=>n.format(q)),G=R.current;return (!G||G.resolvedOptions().locale!==n.resolvedOptions().locale)&&(G=R.current=new Intl.ListFormat(n.resolvedOptions().locale,{type:"unit"})),G.format(B)}}}function F(L,B){D(L,V(B));}function I(L){return Math.round((L-r)/i)*i+r}function V(L){let B=L*(o-r)+r;return Ze(I(B),r,o)}function H(L,B=1){let G=Math.max(B,i);D(L,gt(m[L]+G,r,o,i));}function K(L,B=1){let G=Math.max(B,i);D(L,gt(m[L]-G,r,o,i));}return {values:m,defaultValues:e.defaultValue!==void 0?c:y,getThumbValue:L=>m[L],setThumbValue:D,setThumbPercent:F,isThumbDragging:L=>b[L],setThumbDragging:O,focusedThumb:h,setFocusedThumb:v,getThumbPercent:L=>S(m[L]),getValuePercent:S,getThumbValueLabel:L=>N(m[L]),getFormattedValue:N,getThumbMinValue:w,getThumbMaxValue:E,getPercentValue:V,isThumbEditable:z,setThumbEditable:A,incrementThumb:H,decrementThumb:K,step:i,pageSize:l,orientation:a,isDisabled:t}}function nE(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function iE(e){if(e!=null)return Array.isArray(e)?e:[e]}function aE(e,t,r){return o=>{r?.(typeof e=="number"||typeof t=="number"?o[0]:o);}}function Om(e){let{channel:t,colorSpace:r,value:o,defaultValue:n,onChange:i,locale:a,...l}=e;if(o==null&&n==null)throw new Error("useColorSliderState requires a value or defaultValue");o&&(o=di(o)),n&&(n=di(n));let[s,u]=ye(o,n,i),c=useMemo(()=>r&&s?s.toFormat(r):s,[s,r]),[d]=useState(s),p=n??d,m=useMemo(()=>r&&p?p.toFormat(r):p,[p,r]),f=useMemo(()=>new Intl.NumberFormat,[]),y=dc({...c.getChannelRange(t),...l,numberFormatter:f,value:c.getChannelValue(t),defaultValue:m.getChannelValue(t),onChange(x){u(c.withChannelValue(t,x));},onChangeEnd(x){e.onChangeEnd&&e.onChangeEnd(c.withChannelValue(t,x));}}),{step:b,pageSize:g}=c.getChannelRange(t);return {...y,value:c,setValue(x){u(di(x));},getDisplayColor(){switch(t){case "hue":return Le(`hsl(${c.getChannelValue("hue")}, 100%, 50%)`);case "lightness":case "brightness":case "saturation":case "red":case "green":case "blue":return c.withChannelValue("alpha",1);case "alpha":return c;default:throw new Error("Unknown color channel: "+t)}},getThumbValueLabel(){return c.formatChannelValue(t,a)},getFormattedValue(){return c.formatChannelValue(t,a)},step:b,pageSize:g,isDragging:y.isThumbDragging(0)}}function Nm(e){let{color:t,colorName:r}=e,o=t||"#fff0",n=useMemo(()=>typeof o=="string"?Le(o):o,[o]),{locale:i}=Q(),a=oe(e,{labelable:true}),l=Te(Sm,"@react-aria/color"),s=ee(e.id);return r||(r=n.getChannelValue("alpha")===0?l.format("transparent"):n.getColorName(i)),{colorSwatchProps:{...a,role:"img","aria-roledescription":l.format("colorSwatch"),"aria-label":[r,e["aria-label"]||""].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]?`${s} ${e["aria-labelledby"]}`:void 0,id:s,style:{backgroundColor:n.toString("css"),forcedColorAdjust:"none"}},color:n||null}}var lE={"ar-AE":{colorSwatchPicker:"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0627\u0644\u0623\u0644\u0648\u0627\u0646",dropzoneLabel:"DropZone",selectPlaceholder:"\u062D\u062F\u062F \u0639\u0646\u0635\u0631\u064B\u0627",tableResizer:"\u0623\u062F\u0627\u0629 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645"},"bg-BG":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u0438 \u043C\u043E\u0441\u0442\u0440\u0438",dropzoneLabel:"DropZone",selectPlaceholder:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442",tableResizer:"\u041F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u0438\u0442\u0435\u043B"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"M\xEDsto pro p\u0159eta\u017Een\xED",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"Zm\u011Bna velikosti"},"da-DK":{colorSwatchPicker:"Farvepr\xF8ver",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE6lg et element",tableResizer:"St\xF8rrelses\xE6ndring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element w\xE4hlen",tableResizer:"Gr\xF6\xDFenanpassung"},"el-GR":{colorSwatchPicker:"\u03A7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03AC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1\u03C4\u03B1",dropzoneLabel:"DropZone",selectPlaceholder:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF",tableResizer:"\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un art\xEDculo",tableResizer:"Cambiador de tama\xF1o"},"et-EE":{colorSwatchPicker:"V\xE4rvin\xE4idised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige \xFCksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"V\xE4rimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"\xC9chantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"S\xE9lectionner un \xE9l\xE9ment",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05D5\u05EA \u05E6\u05D1\u05E2",dropzoneLabel:"DropZone",selectPlaceholder:"\u05D1\u05D7\u05E8 \u05E4\u05E8\u05D9\u05D8",tableResizer:"\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D2\u05D5\u05D3\u05DC"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spu\u0161tanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veli\u010Dine"},"hu-HU":{colorSwatchPicker:"Sz\xEDnt\xE1rak",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE1lasszon ki egy elemet",tableResizer:"\xC1tm\xE9retez\u0151"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",dropzoneLabel:"\u30C9\u30ED\u30C3\u30D7\u30BE\u30FC\u30F3",selectPlaceholder:"\u9805\u76EE\u3092\u9078\u629E",tableResizer:"\u30B5\u30A4\u30BA\u5909\u66F4\u30C4\u30FC\u30EB"},"ko-KR":{colorSwatchPicker:"\uC0C9\uC0C1 \uACAC\uBCF8",dropzoneLabel:"\uB4DC\uB86D \uC601\uC5ED",selectPlaceholder:"\uD56D\uBAA9 \uC120\uD0DD",tableResizer:"\uD06C\uAE30 \uC870\uC815\uAE30"},"lt-LT":{colorSwatchPicker:"Spalv\u0173 pavyzd\u017Eiai",dropzoneLabel:"\u201EDropZone\u201C",selectPlaceholder:"Pasirinkite element\u0105",tableResizer:"Dyd\u017Eio keitiklis"},"lv-LV":{colorSwatchPicker:"Kr\u0101su paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izv\u0113l\u0113ties vienumu",tableResizer:"Izm\u0113ra main\u012Bt\u0101js"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"St\xF8rrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Pr\xF3bki kolor\xF3w",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zon\u0103 de plasare",selectPlaceholder:"Selecta\u021Bi un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u044B\u0435 \u043E\u0431\u0440\u0430\u0437\u0446\u044B",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u0430"},"sk-SK":{colorSwatchPicker:"Vzorkovn\xEDky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"N\xE1stroj na zmenu ve\u013Ekosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veli\u010Dine"},"sv-SE":{colorSwatchPicker:"F\xE4rgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE4lj en artikel",tableResizer:"Storleks\xE4ndrare"},"tr-TR":{colorSwatchPicker:"Renk \xF6rnekleri",dropzoneLabel:"B\u0131rakma B\xF6lgesi",selectPlaceholder:"Bir \xF6\u011Fe se\xE7in",tableResizer:"Yeniden boyutland\u0131r\u0131c\u0131"},"uk-UA":{colorSwatchPicker:"\u0417\u0440\u0430\u0437\u043A\u0438 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0435\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0417\u0430\u0441\u0456\u0431 \u0437\u043C\u0456\u043D\u0435\u043D\u043D\u044F \u0440\u043E\u0437\u043C\u0456\u0440\u0443"},"zh-CN":{colorSwatchPicker:"\u989C\u8272\u8272\u677F",dropzoneLabel:"\u653E\u7F6E\u533A\u57DF",selectPlaceholder:"\u9009\u62E9\u4E00\u4E2A\u9879\u76EE",tableResizer:"\u5C3A\u5BF8\u8C03\u6574\u5668"},"zh-TW":{colorSwatchPicker:"\u8272\u7968",dropzoneLabel:"\u653E\u7F6E\u5340",selectPlaceholder:"\u9078\u53D6\u9805\u76EE",tableResizer:"\u5927\u5C0F\u8ABF\u6574\u5668"}};var ua=new WeakMap;function vj(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Fm(e,t){let r=ua.get(e);if(!r)throw new Error("Unknown list");return `${r.id}-option-${vj(t)}`}var Sv=class{filter;root;whatToShow;_doc;_walkerStack=[];_currentNode;_currentSetFor=new Set;constructor(t,r,o,n){this._doc=t,this.root=r,this.filter=n??null,this.whatToShow=o??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,o,this._acceptNode));let i=r.shadowRoot;if(i){let a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a);}}_acceptNode=t=>{if(t.nodeType===Node.ELEMENT_NODE){let r=t.shadowRoot;if(r){let o=this._doc.createTreeWalker(r,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(o),NodeFilter.FILTER_ACCEPT}else {if(typeof this.filter=="function")return this.filter(t);if(this.filter?.acceptNode)return this.filter.acceptNode(t);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP};get currentNode(){return this._currentNode}set currentNode(t){if(!Z(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");let r=[],o=t,n=t;for(this._currentNode=t;o&&o!==this.root;)if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let a=o,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=n,this._currentSetFor.add(l),o=n=a.host;}else o=o.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=n,this._currentSetFor.add(i),this._walkerStack=r;}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return Z(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){let t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(t):this.filter?.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let n=this.nextNode();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){let t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}let r=t.previousNode();if(r){if(r.shadowRoot){let n;if(typeof this.filter=="function"?n=this.filter(r):this.filter?.acceptNode&&(n=this.filter.acceptNode(r)),n===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let i=this.lastChild();return i&&(this.currentNode=i),i}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function Km(e,t,r,o){return lr()?new Sv(e,t,r,o):e.createTreeWalker(t,r,o)}var Ev=qn.createContext(null),zv="react-aria-focus-scope-restore",lt=null;function Rt(e){let{children:t,contain:r,restoreFocus:o,autoFocus:n,ownerDocument:i}=e,a=useRef(null),l=useRef(null),s=useRef([]),{parentNode:u}=useContext(Ev)||{},c=useMemo(()=>new mc({scopeRef:s}),[s]);re(()=>{let m=u||At.root;if(At.getTreeNode(m.scopeRef)&<&&!Vm(lt,m.scopeRef)){let f=At.getTreeNode(lt);f&&(m=f);}m.addChild(c),At.addNode(c);},[c,u]),re(()=>{let m=At.getTreeNode(s);m&&(m.contain=!!r);},[r]),re(()=>{let m=a.current?.nextSibling,f=[],y=b=>b.stopPropagation();for(;m&&m!==l.current;)f.push(m),m.addEventListener(zv,y),m=m.nextSibling;return s.current=f,()=>{for(let b of f)b.removeEventListener(zv,y);}},[t]),Dj(s,o,r),Pj(s,r),kj(s,o,r,i),Sj(s,n),useEffect(()=>{let m=de(U(s.current?s.current[0]:void 0)),f=null;if(lo(m,s.current)){for(let y of At.traverse())y.scopeRef&&lo(m,y.scopeRef.current)&&(f=y);f===At.getTreeNode(s)&&(lt=f.scopeRef);}},[s]),re(()=>()=>{let m=At.getTreeNode(s)?.parent?.scopeRef??null;(s===lt||Vm(s,lt))&&(!m||At.getTreeNode(m))&&(lt=m),At.removeTreeNode(s);},[s]);let d=useMemo(()=>xj(s),[]),p=useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return jsxs(Ev.Provider,{value:p,children:[jsx("span",{"data-focus-scope-start":true,hidden:true,ref:a}),t,jsx("span",{"data-focus-scope-end":true,hidden:true,ref:l})]})}function Ol(){return useContext(Ev)?.focusManager}function xj(e){return {focusNext(t={}){let r=e.current,{from:o,tabbable:n,wrap:i,accept:a}=t,l=o||de(U(r[0]??void 0)),s=r[0].previousElementSibling,u=ca(r),c=rt(u,{tabbable:n,accept:a},r);c.currentNode=lo(l,r)?l:s;let d=c.nextNode();return !d&&i&&(c.currentNode=s,d=c.nextNode()),d&&wr(d,true),d},focusPrevious(t={}){let r=e.current,{from:o,tabbable:n,wrap:i,accept:a}=t,l=o||de(U(r[0]??void 0)),s=r[r.length-1].nextElementSibling,u=ca(r),c=rt(u,{tabbable:n,accept:a},r);c.currentNode=lo(l,r)?l:s;let d=c.previousNode();return !d&&i&&(c.currentNode=s,d=c.previousNode()),d&&wr(d,true),d},focusFirst(t={}){let r=e.current,{tabbable:o,accept:n}=t,i=ca(r),a=rt(i,{tabbable:o,accept:n},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&wr(l,true),l},focusLast(t={}){let r=e.current,{tabbable:o,accept:n}=t,i=ca(r),a=rt(i,{tabbable:o,accept:n},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&wr(l,true),l}}}function ca(e){return e[0].parentElement}function pc(e){let t=At.getTreeNode(lt);for(;t&&t.scopeRef!==e;){if(t.contain)return false;t=t.parent;}return true}function Tj(e){if(!e.form)return Array.from(U(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(o=>!o.form);let t=e.form.elements.namedItem(e.name),r=Y(e);return t instanceof r.RadioNodeList?Array.from(t).filter(o=>o instanceof r.HTMLInputElement):t instanceof r.HTMLInputElement?[t]:[]}function Cj(e){if(e.checked)return true;let t=Tj(e);return t.length>0&&!t.some(r=>r.checked)}function Pj(e,t){let r=useRef(void 0),o=useRef(void 0);re(()=>{let n=e.current;if(!t){o.current&&(cancelAnimationFrame(o.current),o.current=void 0);return}let i=U(n?n[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!pc(e)||u.isComposing)return;let c=de(i),d=e.current;if(!d||!lo(c,d))return;let p=ca(d),m=rt(p,{tabbable:true},d);if(!c)return;m.currentNode=c;let f=u.shiftKey?m.previousNode():m.nextNode();f||(m.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,f=u.shiftKey?m.previousNode():m.nextNode()),u.preventDefault(),f&&(wr(f,true),f instanceof Y(f).HTMLInputElement&&f.select());},l=u=>{(!lt||Vm(lt,e))&&lo($(u),e.current)?(lt=e,r.current=$(u)):pc(e)&&!pi($(u),e)?r.current?r.current.focus():lt&<.current&&wv(lt.current):pc(e)&&(r.current=$(u));},s=u=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{let c=zt(),d=(c==="virtual"||c===null)&&sr()&&qi(),p=de(i);if(!d&&p&&pc(e)&&!pi(p,e)){lt=e;let m=$(u);m&&m.isConnected?(r.current=m,r.current?.focus()):lt.current&&wv(lt.current);}});};return i.addEventListener("keydown",a,false),i.addEventListener("focusin",l,false),n?.forEach(u=>u.addEventListener("focusin",l,false)),n?.forEach(u=>u.addEventListener("focusout",s,false)),()=>{i.removeEventListener("keydown",a,false),i.removeEventListener("focusin",l,false),n?.forEach(u=>u.removeEventListener("focusin",l,false)),n?.forEach(u=>u.removeEventListener("focusout",s,false));}},[e,t]),re(()=>()=>{o.current&&cancelAnimationFrame(o.current);},[o]);}function fE(e){return pi(e)}function lo(e,t){return !e||!t?false:t.some(r=>Z(r,e))}function pi(e,t=null){if(e instanceof Y(e).Element&&e.closest("[data-react-aria-top-layer]"))return true;for(let{scopeRef:r}of At.traverse(At.getTreeNode(t)))if(r&&lo(e,r.current))return true;return false}function yE(e){return pi(e,lt)}function Vm(e,t){let r=At.getTreeNode(t)?.parent;for(;r;){if(r.scopeRef===e)return true;r=r.parent;}return false}function wr(e,t=false){if(e!=null&&!t)try{qe(e);}catch{}else if(e!=null)try{e.focus();}catch{}}function bE(e,t=true){let r=e[0].previousElementSibling,o=ca(e),n=rt(o,{tabbable:t},e);n.currentNode=r;let i=n.nextNode();return t&&!i&&(o=ca(e),n=rt(o,{tabbable:false},e),n.currentNode=r,i=n.nextNode()),i}function wv(e,t=true){wr(bE(e,t));}function Sj(e,t){let r=qn.useRef(t);useEffect(()=>{if(r.current){lt=e;let o=U(e.current?e.current[0]:void 0);!lo(de(o),lt.current)&&e.current&&wv(e.current);}r.current=false;},[e]);}function Dj(e,t,r){re(()=>{if(t||r)return;let o=e.current,n=U(o?o[0]:void 0),i=a=>{let l=$(a);lo(l,e.current)?lt=e:fE(l)||(lt=null);};return n.addEventListener("focusin",i,false),o?.forEach(a=>a.addEventListener("focusin",i,false)),()=>{n.removeEventListener("focusin",i,false),o?.forEach(a=>a.removeEventListener("focusin",i,false));}},[e,t,r]);}function sE(e){let t=At.getTreeNode(lt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return false;t=t.parent;}return t?.scopeRef===e}function kj(e,t,r,o){let n=useRef(typeof document<"u"?de(o??U(e.current?e.current[0]:void 0)):null);re(()=>{let i=e.current,a=U(i?i[0]:void 0);if(!t||r)return;let l=()=>{(!lt||Vm(lt,e))&&lo(de(a),e.current)&&(lt=e);};return a.addEventListener("focusin",l,false),i?.forEach(s=>s.addEventListener("focusin",l,false)),()=>{a.removeEventListener("focusin",l,false),i?.forEach(s=>s.removeEventListener("focusin",l,false));}},[e,r]),re(()=>{let i=U(e.current?e.current[0]:void 0);if(!t)return;let a=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!pc(e)||l.isComposing)return;let s=de(i);if(!s||!pi(s,e)||!sE(e))return;let u=At.getTreeNode(e);if(!u)return;let c=u.nodeToRestore,d=rt(i.body,{tabbable:true});d.currentNode=s;let p=l.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,u.nodeToRestore=void 0),(!p||!pi(p,e))&&c){d.currentNode=c;do p=l.shiftKey?d.previousNode():d.nextNode();while(pi(p,e));l.preventDefault(),l.stopPropagation(),p?wr(p,true):fE(c)?wr(c,true):s.blur();}};return r||i.addEventListener("keydown",a,true),()=>{r||i.removeEventListener("keydown",a,true);}},[e,t,r]),re(()=>{let i=U(e.current?e.current[0]:void 0);if(!t)return;let a=At.getTreeNode(e);if(a)return a.nodeToRestore=n.current??void 0,()=>{let l=At.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=de(i);if(t&&s&&(u&&pi(u,e)||u===i.body&&sE(e))){let c=At.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){uE(d.nodeToRestore);return}d=d.parent;}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&At.getTreeNode(d.scopeRef)){let p=bE(d.scopeRef.current,true);uE(p);return}d=d.parent;}}});}}},[e,t]);}function uE(e){e.dispatchEvent(new CustomEvent(zv,{bubbles:true,cancelable:true}))&&wr(e);}function rt(e,t,r){let o=t?.tabbable?Ui:Jn,n=e?.nodeType===Node.ELEMENT_NODE?e:null,i=U(n),a=Km(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return Z(t?.from,l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!Cj(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:o(l)&&(!r||lo(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function mi(e,t={}){return {focusNext(r={}){let o=e.current;if(!o)return null;let{from:n,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=n||de(U(o)),u=rt(o,{tabbable:i,accept:l});Z(o,s)&&(u.currentNode=s);let c=u.nextNode();return !c&&a&&(u.currentNode=o,c=u.nextNode()),c&&wr(c,true),c},focusPrevious(r=t){let o=e.current;if(!o)return null;let{from:n,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=n||de(U(o)),u=rt(o,{tabbable:i,accept:l});if(Z(o,s))u.currentNode=s;else {let d=kv(u);return d&&wr(d,true),d??null}let c=u.previousNode();if(!c&&a){u.currentNode=o;let d=kv(u);if(!d)return null;c=d;}return c&&wr(c,true),c??null},focusFirst(r=t){let o=e.current;if(!o)return null;let{tabbable:n=t.tabbable,accept:i=t.accept}=r,l=rt(o,{tabbable:n,accept:i}).nextNode();return l&&wr(l,true),l},focusLast(r=t){let o=e.current;if(!o)return null;let{tabbable:n=t.tabbable,accept:i=t.accept}=r,a=rt(o,{tabbable:n,accept:i}),l=kv(a);return l&&wr(l,true),l??null}}}function kv(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var Rv=class e{root;fastMap=new Map;constructor(){this.root=new mc({scopeRef:null}),this.fastMap.set(null,this.root);}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let n=this.fastMap.get(r??null);if(!n)return;let i=new mc({scopeRef:t});n.addChild(i),i.parent=n,this.fastMap.set(t,i),o&&(i.nodeToRestore=o);}addNode(t){this.fastMap.set(t.scopeRef,t);}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&lo(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let n=r.children;o&&(o.removeChild(r),n.size>0&&n.forEach(i=>o&&o.addChild(i))),this.fastMap.delete(r.scopeRef);}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r);}clone(){let t=new e;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent?.scopeRef??null,r.nodeToRestore);return t}},mc=class{scopeRef;nodeToRestore;parent;children=new Set;contain=false;constructor(t){this.scopeRef=t.scopeRef;}addChild(t){this.children.add(t),t.parent=this;}removeChild(t){this.children.delete(t),t.parent=void 0;}},At=new Rv;function fc(e){return Qn()?e.altKey:e.ctrlKey}function Yo(e,t){let r=`[data-key="${CSS.escape(String(t))}"]`,o=e.current?.dataset.collection;return o&&(r=`[data-collection="${CSS.escape(o)}"]${r}`),e.current?.querySelector(r)}var gE=new WeakMap;function hE(e){let t=ee();return gE.set(e,t),t}function vE(e){return gE.get(e)}var xE=1e3;function Bm(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:o}=e,n=useRef({search:"",timeout:void 0}),i=l=>{if(n.current.search.length>0&&l.key===" "){if(l.preventDefault(),(!("continuePropagation"in l)||"continuePropagation"in l&&!l.isPropagationStopped())&&l.stopPropagation(),n.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(n.current.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(n.current.search)),s!=null&&(r.setFocusedKey(s),o&&o(s));}clearTimeout(n.current.timeout),n.current.timeout=setTimeout(()=>{n.current.search="";},xE);}},a=l=>{let s=Rj(l.key);if(!(!s||l.ctrlKey||l.metaKey||l.altKey||!Z(l.currentTarget,$(l))||n.current.search.length===0&&s===" ")){if(n.current.search+=s,t.getKeyForSearch!=null){let u=t.getKeyForSearch(n.current.search,r.focusedKey);if(u==null&&(u=t.getKeyForSearch(n.current.search)),u!=null)r.setFocusedKey(u),o&&o(u),l.preventDefault(),"continuePropagation"in l||l.stopPropagation();else {n.current.search="",clearTimeout(n.current.timeout),n.current.timeout=void 0;return}}clearTimeout(n.current.timeout),n.current.timeout=setTimeout(()=>{n.current.search="";},xE);}};return useEffect(()=>{let l=n.current.timeout;return ()=>{clearTimeout(l);}},[n]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0,onKeyDown:t.getKeyForSearch?a:void 0}}}function Rj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Iv(e,t){let r=useRef(true),o=useRef(null);re(()=>(r.current=true,()=>{r.current=false;}),[]),re(()=>{r.current?r.current=false:(!o.current||t.some((n,i)=>!Object.is(n,o[i])))&&e(),o.current=t;},t);}function fi(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:n=false,shouldFocusWrap:i=false,disallowEmptySelection:a=false,disallowSelectAll:l=false,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=false,shouldUseVirtualFocus:d,allowsTabNavigation:p=false,scrollRef:m=o,linkBehavior:f="action",UNSTABLE_focusOnEntry:y}=e,{direction:b}=Q(),g=Qr(),x=R=>{if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!o.current||!Z(o.current,$(R)))return;let N=(F,I)=>{if(F!=null){if(t.isLink(F)&&f==="selection"&&u&&!fc(R)){flushSync(()=>{t.setFocusedKey(F,I);});let V=Yo(o,F),H=t.getItemProps(F);V&&g.open(V,R,H.href,H.routerOptions);return}if(t.setFocusedKey(F,I),t.isLink(F)&&f==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(F):u&&!fc(R)&&t.replaceSelection(F);}};switch(R.key){case "ArrowDown":{if(r.getKeyBelow){let F=t.focusedKey!=null?r.getKeyBelow?.(t.focusedKey):r.getFirstKey?.();F==null&&i&&(F=r.getFirstKey?.(t.focusedKey)),F!=null&&(R.preventDefault(),N(F));}break}case "ArrowUp":{if(r.getKeyAbove){let F=t.focusedKey!=null?r.getKeyAbove?.(t.focusedKey):r.getLastKey?.();F==null&&i&&(F=r.getLastKey?.(t.focusedKey)),F!=null&&(R.preventDefault(),N(F));}break}case "ArrowLeft":{if(r.getKeyLeftOf){let F=t.focusedKey!=null?r.getKeyLeftOf?.(t.focusedKey):r.getFirstKey?.();F==null&&i&&(F=b==="rtl"?r.getFirstKey?.(t.focusedKey):r.getLastKey?.(t.focusedKey)),F!=null&&(R.preventDefault(),N(F,b==="rtl"?"first":"last"));}break}case "ArrowRight":{if(r.getKeyRightOf){let F=t.focusedKey!=null?r.getKeyRightOf?.(t.focusedKey):r.getFirstKey?.();F==null&&i&&(F=b==="rtl"?r.getLastKey?.(t.focusedKey):r.getFirstKey?.(t.focusedKey)),F!=null&&(R.preventDefault(),N(F,b==="rtl"?"last":"first"));}break}case "Home":if(r.getFirstKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let F=r.getFirstKey(t.focusedKey,$o(R));t.setFocusedKey(F),F!=null&&($o(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(F):u&&t.replaceSelection(F));}break;case "End":if(r.getLastKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let F=r.getLastKey(t.focusedKey,$o(R));t.setFocusedKey(F),F!=null&&($o(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(F):u&&t.replaceSelection(F));}break;case "PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let F=r.getKeyPageBelow(t.focusedKey);F!=null&&(R.preventDefault(),N(F));}break;case "PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let F=r.getKeyPageAbove(t.focusedKey);F!=null&&(R.preventDefault(),N(F));}break;case "a":$o(R)&&t.selectionMode==="multiple"&&l!==true&&(R.preventDefault(),t.selectAll());break;case "Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),t.clearSelection());break;case "Tab":if(!p){if(R.shiftKey)o.current.focus();else {let F=rt(o.current,{tabbable:true}),I,V;do V=F.lastChild(),V&&(I=V);while(V);let H=U(o.current),K=de(H);I&&(!Z(I,K)||K&&!Ui(K))&&$e(I);}break}}},h=useRef({top:0,left:0});ct(m,"scroll",()=>{h.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0};});let v=R=>{if(t.isFocused){Z(R.currentTarget,$(R))||t.setFocused(false);return}if(!Z(R.currentTarget,$(R)))return;let N=zt();t.setFocused(true);let F=I=>{I!=null&&(t.setFocusedKey(I),u&&!t.isSelected(I)&&t.replaceSelection(I));};if(y&&(N==="keyboard"||N==="virtual"))F(y==="first"?r.getFirstKey?.():r.getLastKey?.());else if(t.focusedKey==null){let I=R.relatedTarget;I&&R.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?F(t.lastSelectedKey??r.getLastKey?.()):F(t.firstSelectedKey??r.getFirstKey?.());}else m.current&&(m.current.scrollTop=h.current.top,m.current.scrollLeft=h.current.left);if(t.focusedKey!=null&&m.current){let I=Yo(o,t.focusedKey),V=Y(I);I instanceof V.HTMLElement&&(!Z(I,de(V.document))&&!d&&$e(I),(N==="keyboard"||y&&N==="virtual")&&wt(I,{containingElement:o.current}));}},C=R=>{Z(R.currentTarget,R.relatedTarget)||t.setFocused(false);},T=useRef(false);ct(o,Cu,d?R=>{let{detail:N}=R;R.stopPropagation(),t.setFocused(true),N?.focusStrategy==="first"&&(T.current=true);}:void 0);let P=r.getFirstKey?.()??null;Iv(()=>{if(T.current)if(P==null){let R=de();fl(o.current),Zn(R,null),t.collection.size>0&&(T.current=false);}else t.setFocusedKey(P),T.current=false;},[P,t.collection.size]),Iv(()=>{t.collection.size>0&&(T.current=false);},[t.focusedKey]),ct(o,Sp,d?R=>{R.stopPropagation(),t.setFocused(false),R.detail?.clearFocusKey&&t.setFocusedKey(null);}:void 0);let k=useRef(n),S=useRef(false);useEffect(()=>{if(k.current){let R=null;n==="first"&&(R=r.getFirstKey?.()??null),n==="last"&&(R=r.getLastKey?.()??null);let N=t.selectedKeys;if(N.size){for(let F of N)if(t.canSelectItem(F)){R=F;break}}t.setFocused(true),t.setFocusedKey(R),R==null&&!d&&o.current&&qe(o.current),t.collection.size>0&&(k.current=false,S.current=true);}});let w=useRef(t.focusedKey),E=useRef(null);useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==w.current||S.current)&&m.current&&o.current){let R=zt(),N=Yo(o,t.focusedKey),F=Y(N);if(!(N instanceof F.HTMLElement))return;(R==="keyboard"||S.current)&&(E.current&&cancelAnimationFrame(E.current),E.current=requestAnimationFrame(()=>{m.current&&(Hh(m.current,N),R!=="virtual"&&wt(N,{containingElement:o.current}));}));}!d&&t.isFocused&&t.focusedKey==null&&w.current!=null&&o.current&&qe(o.current),w.current=t.focusedKey,S.current=false;}),useEffect(()=>()=>{E.current&&cancelAnimationFrame(E.current);},[]),ct(o,"react-aria-focus-scope-restore",R=>{R.preventDefault(),t.setFocused(true);});let z={onKeyDown:x,onFocus:v,onBlur:C,onMouseDown(R){m.current===$(R)&&R.preventDefault();}},{typeSelectProps:A}=Bm({keyboardDelegate:r,selectionManager:t});c||(z=M(A,z));let D;d||(D=t.focusedKey==null?0:-1);let O=hE(t.collection);return {collectionProps:M(z,{tabIndex:D,"data-collection":O})}}var da=class{ref;constructor(t){this.ref=t;}getItemRect(t){let r=this.ref.current;if(!r)return null;let o=t!=null?Yo(this.ref,t):null;if(!o)return null;let n=r.getBoundingClientRect(),i=o.getBoundingClientRect();return {x:i.left-n.left-r.clientLeft+r.scrollLeft,y:i.top-n.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;return {width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return {x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}};var kt=class{collection;disabledKeys;disabledBehavior;ref;collator;layout;orientation;direction;layoutDelegate;constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new da(r.ref);}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new da(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0);}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,r,o=false){let n=t;for(;n!=null;){let i=this.collection.getItem(n);if(i?.type==="item"&&(o||!this.isDisabled(i)))return n;n=r(n);}return null}getNextKey(t,r){let o=t;return o=this.collection.getKeyAfter(o),this.findNextNonDisabled(o,n=>this.collection.getKeyAfter(n),r?.includeDisabled)}getPreviousKey(t,r){let o=t;return o=this.collection.getKeyBefore(o),this.findNextNonDisabled(o,n=>this.collection.getKeyBefore(n),r?.includeDisabled)}findKey(t,r,o){let n=t,i=this.layoutDelegate.getItemRect(n);if(!i||n==null)return null;let a=i;do{if(n=r(n),n==null)break;i=this.layoutDelegate.getItemRect(n);}while(i&&o(a,i)&&n!=null);return n}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}isReversed(t){let r=this.getNextKey(t),o=Yo(this.ref,t);if(r!=null){let i=Yo(this.ref,r);return !o||!i?false:o.getBoundingClientRect().top>i.getBoundingClientRect().top}let n=this.getPreviousKey(t);if(n!=null){let i=Yo(this.ref,n);return !o||!i?false:i.getBoundingClientRect().top>o.getBoundingClientRect().top}return false}getKeyBelow(t,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,o=>this.getNextKey(o,r),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,r):this.getNextKey(t,r):this.getNextKey(t,r)}getKeyAbove(t,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,o=>this.getPreviousKey(o,r),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,r):this.getPreviousKey(t,r):this.getPreviousKey(t,r)}getNextColumn(t,r,o){return r?this.getPreviousKey(t,o):this.getNextKey(t,o)}getKeyRightOf(t,r){let o=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[o]?(t=this.layoutDelegate[o](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[o](n),r?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",r):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",r):null}getKeyLeftOf(t,r){let o=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[o]?(t=this.layoutDelegate[o](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[o](n),r?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",r):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",r):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,o=this.layoutDelegate.getItemRect(t);if(!o)return null;let n=this.isReversed(t);if(r&&!Wt(r))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,o.x+o.width-this.layoutDelegate.getVisibleRect().width);for(;o&&o.x>a&&i!=null;)i=this.getKeyAbove(i),o=i==null?null:this.layoutDelegate.getItemRect(i);}else {let a=this.layoutDelegate.getVisibleRect(),l=n?o.y-a.height:Math.max(0,o.y+o.height-a.height);for(;o&&o.y>l&&i!=null;)i=this.getKeyAbove(i),o=i==null?null:this.layoutDelegate.getItemRect(i);}return i??(n?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let r=this.ref.current,o=this.layoutDelegate.getItemRect(t);if(!o)return null;let n=this.isReversed(t);if(r&&!Wt(r))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,o.x-o.width+this.layoutDelegate.getVisibleRect().width);for(;o&&o.x<a&&i!=null;)i=this.getKeyBelow(i),o=i==null?null:this.layoutDelegate.getItemRect(i);}else {let a=Math.min(this.layoutDelegate.getContentSize().height,o.y-o.height+this.layoutDelegate.getVisibleRect().height);for(;o&&o.y<a&&i!=null;)i=this.getKeyBelow(i),o=i==null?null:this.layoutDelegate.getItemRect(i);}return i??(n?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,r){if(!this.collator)return null;let o=this.collection,n=r||this.getFirstKey();for(;n!=null;){let i=o.getItem(n);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return n;n=this.getNextKey(n);}return null}};var Lv=new Map;function or(e){let{locale:t}=Q(),r=t+(e?Object.entries(e).sort((n,i)=>n[0]<i[0]?-1:1).join():"");if(Lv.has(r))return Lv.get(r);let o=new Intl.Collator(t,e);return Lv.set(r,o),o}function yi(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:i,layoutDelegate:a,orientation:l}=e,s=or({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=useMemo(()=>i||new kt({collection:r,disabledKeys:o,disabledBehavior:u,ref:n,collator:s,layoutDelegate:a,orientation:l}),[i,a,r,o,n,s,u,l]),{collectionProps:d}=fi({...e,ref:n,selectionManager:t,keyboardDelegate:c});return {listProps:d}}function Fl(e,t,r){let o=oe(e,{labelable:true}),n=e.selectionBehavior||"toggle",i=e.orientation||"vertical",a=e.linkBehavior||(n==="replace"?"action":"override");n==="toggle"&&a==="action"&&(a="override");let{listProps:l}=yi({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=dt({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=ee(e.id);ua.set(t,{id:u,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:d}=rr({...e,id:u,labelElementType:"span"});return {labelProps:c,listBoxProps:M(o,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":i,...M(d,l)})}}function Ge(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function xr(e){return pa(e,0)}function pa(e,t){if(t<0)return;let r=0;for(let o of e){if(r===t)return o;r++;}}function Zo(e){let t;for(let r of e)t=r;return t}function yc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let o=[...CE(e,t),t],n=[...CE(e,r),r],i=o.slice(0,n.length).findIndex((a,l)=>a!==n[l]);return i!==-1?(t=o[i],r=n[i],t.index-r.index):o.findIndex(a=>a===r)>=0?1:(n.findIndex(a=>a===t)>=0,-1)}function CE(e,t){let r=[],o=t;for(;o?.parentKey!=null;)o=e.getItem(o.parentKey),o&&r.unshift(o);return r}var PE=new WeakMap;function ma(e){let t=PE.get(e);if(t!=null)return t;let r=0,o=n=>{for(let i of n)i.type==="section"?o(Ge(i,e)):i.type==="item"&&r++;};return o(e),PE.set(e,r),r}var Mj=500;function Hm(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:n,threshold:i=Mj,accessibilityDescription:a}=e,l=useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=It(),{pressProps:c}=Oe({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true})),U(p.target).activeElement!==p.target&&$e(p.target),n&&n({...p,type:"longpress"}),l.current=void 0;},i),p.pointerType==="touch")){let m=y=>{y.preventDefault();},f=Y(p.target);s(p.target,"contextmenu",m,{once:true}),s(f,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",m);},30);},{once:true});}},onPressEnd(p){l.current&&clearTimeout(l.current),o&&(p.pointerType==="mouse"||p.pointerType==="touch")&&o({...p,type:"longpressend"});}}),d=Dt(n&&!t?a:void 0);return {longPressProps:M(c,d)}}function Rr(e){let{id:t,selectionManager:r,key:o,ref:n,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,p=Qr();t=ee(t);let m=V=>{if(V.pointerType==="keyboard"&&fc(V))r.toggleSelection(o);else {if(r.selectionMode==="none")return;if(r.isLink(o)){if(d==="selection"&&n.current){let H=r.getItemProps(o);p.open(n.current,V,H.href,H.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(o)&&!r.disallowEmptySelection?r.toggleSelection(o):r.replaceSelection(o):V&&V.shiftKey?r.extendSelection(o):r.selectionBehavior==="toggle"||V&&($o(V)||V.pointerType==="touch"||V.pointerType==="virtual")?r.toggleSelection(o):r.replaceSelection(o);}};useEffect(()=>{o===r.focusedKey&&r.isFocused&&(a?fl(n.current):l?l():de(U(n.current))!==n.current&&n.current&&qe(n.current));},[n,o,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(o);let f={};!a&&!s?f={tabIndex:o===r.focusedKey?0:-1,onFocus(V){$(V)===n.current&&r.setFocusedKey(o);}}:s&&(f.onMouseDown=V=>{V.preventDefault();}),useEffect(()=>{s&&r.focusedKey===o&&r.setFocusedKey(null);},[r,s,o]);let y=r.isLink(o)&&d==="override",b=u&&e.UNSTABLE_itemBehavior==="action",g=r.isLink(o)&&d!=="selection"&&d!=="none",x=!s&&r.canSelectItem(o)&&!y&&!b,h=(u||g)&&!s,v=h&&(r.selectionBehavior==="replace"?!x:!x||r.isEmpty),C=h&&x&&r.selectionBehavior==="replace",T=v||C,P=useRef(null),k=T&&x,S=useRef(false),w=useRef(false),E=r.getItemProps(o),z=V=>{u&&(u(),n.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:true}))),g&&n.current&&p.open(n.current,V,E.href,E.routerOptions);},A={ref:n};if(i?(A.onPressStart=V=>{P.current=V.pointerType,S.current=k,V.pointerType==="keyboard"&&(!T||kE(V.key))&&m(V);},c?(A.onPressUp=v?void 0:V=>{V.pointerType==="mouse"&&x&&m(V);},A.onPress=v?z:V=>{V.pointerType!=="keyboard"&&V.pointerType!=="mouse"&&x&&m(V);}):A.onPress=V=>{if(v||C&&V.pointerType!=="mouse"){if(V.pointerType==="keyboard"&&!DE(V.key))return;z(V);}else V.pointerType!=="keyboard"&&x&&m(V);}):(A.onPressStart=V=>{P.current=V.pointerType,S.current=k,w.current=v,x&&(V.pointerType==="mouse"&&!v||V.pointerType==="keyboard"&&(!h||kE(V.key)))&&m(V);},A.onPress=V=>{(V.pointerType==="touch"||V.pointerType==="pen"||V.pointerType==="virtual"||V.pointerType==="keyboard"&&T&&DE(V.key)||V.pointerType==="mouse"&&w.current)&&(T?z(V):x&&m(V));}),f["data-collection"]=vE(r.collection),f["data-key"]=o,A.preventFocusOnPress=a,a&&(A=M(A,{onPressStart(V){V.pointerType!=="touch"&&(r.setFocused(true),r.setFocusedKey(o));},onPress(V){V.pointerType==="touch"&&(r.setFocused(true),r.setFocusedKey(o));}})),E)for(let V of ["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])E[V]&&(A[V]=Ye(A[V],E[V]));let{pressProps:D,isPressed:O}=Oe(A),R=C?V=>{P.current==="mouse"&&(V.stopPropagation(),V.preventDefault(),z(V));}:void 0,{longPressProps:N}=Hm({isDisabled:!k,onLongPress(V){V.pointerType==="touch"&&(m(V),r.setSelectionBehavior("toggle"));}}),F=V=>{P.current==="touch"&&S.current&&V.preventDefault();},I=d!=="none"&&r.isLink(o)?V=>{Jr.isOpening||V.preventDefault();}:void 0;return {itemProps:M(f,x||v||a&&!s?D:{},k?N:{},{onDoubleClick:R,onDragStartCapture:F,onClick:I,id:t},a?{onMouseDown:V=>V.preventDefault()}:void 0),isPressed:O,isSelected:r.isSelected(o),isFocused:r.isFocused&&r.focusedKey===o,isDisabled:s,allowsSelection:x,hasAction:T}}function DE(e){return e==="Enter"}function kE(e){return e===" "}function Kl(e,t,r){let{key:o}=e,n=ua.get(t),i=e.isDisabled??t.selectionManager.isDisabled(o),a=e.isSelected??t.selectionManager.isSelected(o),l=e.shouldSelectOnPressUp??n?.shouldSelectOnPressUp,s=e.shouldFocusOnHover??n?.shouldFocusOnHover,u=e.shouldUseVirtualFocus??n?.shouldUseVirtualFocus,c=e.isVirtualized??n?.isVirtualized,d=Pt(void 0,r),p=Pt(void 0,r),m={role:"option","aria-disabled":i||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?a:void 0,"aria-label":e["aria-label"],"aria-labelledby":d,"aria-describedby":p},f=t.collection.getItem(o);if(c){let S=Number(f?.index);m["aria-posinset"]=Number.isNaN(S)?void 0:S+1,m["aria-setsize"]=ma(t.collection);}let y=n?.onAction?()=>n?.onAction?.(o):void 0,b=Fm(t,o),{itemProps:g,isPressed:x,isFocused:h,hasAction:v,allowsSelection:C}=Rr({selectionManager:t.selectionManager,key:o,ref:r,shouldSelectOnPressUp:l,allowsDifferentPressOrigin:l&&s,shouldUseVirtualFocus:u,isDisabled:i,onAction:y||f?.props?.onAction?Ye(f?.props?.onAction,y):void 0,linkBehavior:n?.linkBehavior,UNSTABLE_itemBehavior:n?.UNSTABLE_itemBehavior,id:b}),{hoverProps:T}=ae({isDisabled:i||!s,onHoverStart(){Nt()||(t.selectionManager.setFocused(true),t.selectionManager.setFocusedKey(o));}}),P=oe(f?.props);delete P.id;let k=ti(f?.props);return {optionProps:{...m,...M(P,g,T,k),id:b},labelProps:{id:d},descriptionProps:{id:p},isFocused:h,isFocusVisible:h&&t.selectionManager.isFocused&&Nt(),isSelected:a,isDisabled:i,isPressed:x,allowsSelection:C,hasAction:v}}function Vl(e){let{heading:t,"aria-label":r}=e,o=Pt([!!t]);return {itemProps:{role:"presentation"},headingProps:t?{id:o,role:"presentation",onMouseDown:n=>{n.preventDefault();}}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?o:void 0}}}var Vt=createContext({}),Mn=createContext(null),ko=forwardRef(function(t,r){let{render:o}=useContext(Mn);return jsx(Fragment,{children:o(t,r)})});function fa(e,t){let r=e?.renderDropIndicator,o=e?.isVirtualDragging?.(),n=useCallback(i=>{if(o||t?.isDropTarget(i))return r?r(i):jsx(ko,{target:i})},[t?.target,o,r]);return e?.useDropIndicator?n:void 0}function Bl(e,t,r){let o=e.focusedKey,n=null;if(t?.isVirtualDragging?.()&&r?.target?.type==="item"&&(n=r.target.key,r.target.dropPosition==="after")){let i=r.collection.getKeyAfter(n),a=null;if(i!=null){let l=r.collection.getItem(n)?.level??0;for(;i!=null;){let s=r.collection.getItem(i);if(!s)break;if(s.type!=="item"){i=r.collection.getKeyAfter(i);continue}if((s.level??0)<=l)break;a=i,i=r.collection.getKeyAfter(i);}}n=i??a??n;}return useMemo(()=>new Set([o,n].filter(i=>i!=null)),[o,n])}var Hl=createContext({}),$m=dr(Fu,function(t,r){return [t,r]=Ie(t,r,Hl),jsx(Pe.header,{className:"react-aria-Header",...t,ref:r,children:t.children})});function ya(e){let t=version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var ba=class{keyMap=new Map;iterable;firstKey=null;lastKey=null;_size;constructor(t){this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)r(l);};for(let a of t)r(a);let o=null,n=0,i=0;for(let[a,l]of this.keyMap)o?(o.nextKey=a,l.prevKey=o.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&i++,o=l,o.nextKey=void 0;this._size=i,this.lastKey=o?.key??null;}*[Symbol.iterator](){yield*this.iterable;}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}};var jr=class e extends Set{anchorKey;currentKey;constructor(t,r,o){super(t),t instanceof e?(this.anchorKey=r??t.anchorKey,this.currentKey=o??t.currentKey):(this.anchorKey=r??null,this.currentKey=o??null);}};function jj(e,t){if(e.size!==t.size)return false;for(let r of e)if(!t.has(r))return false;return true}function Eo(e){let{selectionMode:t="none",disallowEmptySelection:r=false,allowDuplicateSelectionEvents:o,selectionBehavior:n="toggle",disabledBehavior:i="all"}=e,a=useRef(false),[,l]=useState(false),s=useRef(null),u=useRef(null),[,c]=useState(null),d=useMemo(()=>wE(e.selectedKeys),[e.selectedKeys]),p=useMemo(()=>wE(e.defaultSelectedKeys,new jr),[e.defaultSelectedKeys]),[m,f]=ye(d,p,e.onSelectionChange),y=useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[b,g]=useState(n);n==="replace"&&b==="toggle"&&typeof m=="object"&&m.size===0&&g("replace");let x=useRef(n);return useEffect(()=>{n!==x.current&&(g(n),x.current=n);},[n]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:b,setSelectionBehavior:g,get isFocused(){return a.current},setFocused(h){a.current=h,l(h);},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(h,v="first"){s.current=h,u.current=v,c(h);},selectedKeys:m,setSelectedKeys(h){(o||!jj(h,m))&&f(h);},disabledKeys:y,disabledBehavior:i}}function wE(e,t){return e?e==="all"?"all":new jr(e):t}var zo=class e{collection;state;allowsCellSelection;_isSelectAll;layoutDelegate;fullCollection;constructor(t,r,o){this.collection=t,this.state=r,this.allowsCellSelection=o?.allowsCellSelection??false,this._isSelectAll=null,this.layoutDelegate=o?.layoutDelegate||null,this.fullCollection=o?.fullCollection||null;}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t);}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t);}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r);}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return false;let r=this.getKey(t);return r==null?false:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return false;if(this.state.selectedKeys==="all")return true;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(o=>r.has(o)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&yc(this.collection,o,t)<0)&&(t=o);}return t?.key??null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&yc(this.collection,o,t)>0)&&(t=o);}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let o;if(this.state.selectedKeys==="all")o=new jr([r],r,r);else {let n=this.state.selectedKeys,i=n.anchorKey??r;o=new jr(n,i,r);for(let a of this.getKeyRange(i,n.currentKey??r))o.delete(a);for(let a of this.getKeyRange(r,i))this.canSelectItem(a)&&o.add(a);}this.state.setSelectedKeys(o);}getKeyRange(t,r){let o=this.collection.getItem(t),n=this.collection.getItem(r);return o&&n?yc(this.collection,o,n)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],n=t;for(;n!=null;){let i=this.collection.getItem(n);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(n),n===r)return o;n=this.collection.getKeyAfter(n);}return []}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return !r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let o=new jr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);o.has(r)?o.delete(r):this.canSelectItem(r)&&(o.add(r),o.anchorKey=r,o.currentKey=r),!(this.disallowEmptySelection&&o.size===0)&&this.state.setSelectedKeys(o);}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let o=this.canSelectItem(r)?new jr([r],r,r):new jr;this.state.setSelectedKeys(o);}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new jr;for(let o of t){let n=this.getKey(o);if(n!=null&&(r.add(n),this.selectionMode==="single"))break}this.state.setSelectedKeys(r);}getSelectAllKeys(){let t=this.fullCollection??this.collection,r=[],o=n=>{for(;n!=null;){if(this.canSelectItemIn(n,t)){let i=t.getItem(n);i?.type==="item"&&r.push(n),i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&o(xr(Ge(i,t))?.key??null);}n=t.getKeyAfter(n);}};return o(t.getFirstKey()),r}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all");}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new jr);}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll();}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t));}isSelectionEqual(t){if(t===this.state.selectedKeys)return true;let r=this.selectedKeys;if(t.size!==r.size)return false;for(let o of t)if(!r.has(o))return false;for(let o of r)if(!t.has(o))return false;return true}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,r){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return false;let o=r.getItem(t);return !(!o||o?.props?.isDisabled||o.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let r=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!r?.props?.isDisabled)&&r?.props?.disabledBehavior!=="selection"}isLink(t){return !!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}};var Gm=class{context;cache=new WeakMap;build(t,r){return this.context=r,RE(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:o}=t;if(qn.isValidElement(r)&&r.type===qn.Fragment)yield*this.iterateCollection({children:r.props.children,items:o});else if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");let n=0;for(let i of o)yield*this.getFullNode({value:i,index:n},{renderer:r}),n++;}else {let n=[];qn.Children.forEach(r,a=>{a&&n.push(a);});let i=0;for(let a of n){let l=this.getFullNode({element:a,index:i},{});for(let s of l)i++,yield s;}}}getKey(t,r,o,n){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return `${n}${r.key}`;let i=r.value;if(i!=null){let a=i.key??i.id;if(a==null)throw new Error("No key found for item");return a}return n?`${n}.${r.index}`:`$.${r.index}`}getChildState(t,r){return {renderer:r.renderer||t.renderer}}*getFullNode(t,r,o,n){if(qn.isValidElement(t.element)&&t.element.type===qn.Fragment){let s=[];qn.Children.forEach(t.element.props.children,c=>{s.push(c);});let u=t.index??0;for(let c of s)yield*this.getFullNode({element:c,index:u++},r,o,n);return}let i=t.element;if(!i&&t.value&&r&&r.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=n?n.key:null,yield s;return}i=r.renderer(t.value);}if(qn.isValidElement(i)){let s=i.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let p=i.type;throw new Error(`Unknown element <${p}> in collection.`)}let u=s.getCollectionNode(i.props,this.context),c=t.index??0,d=u.next();for(;!d.done&&d.value;){let p=d.value;t.index=c;let m=p.key??null;m==null&&(m=p.element?null:this.getKey(i,t,r,o));let y=[...this.getFullNode({...p,key:m,index:c,wrapper:Gj(t.wrapper,p.wrapper)},this.getChildState(r,p),o?`${o}${i.key}`:i.key,n)];for(let b of y){if(b.value=p.value??t.value??null,b.value&&this.cache.set(b.value,b),t.type&&b.type!==t.type)throw new Error(`Unsupported type <${Nv(b.type)}> in <${Nv(n?.type??"unknown parent type")}>. Only <${Nv(t.type)}> is supported.`);c++,yield b;}d=u.next(y);}return}if(t.key==null||t.type==null)return;let a=this,l={type:t.type,props:t.props,key:t.key,parentKey:n?n.key:null,value:t.value??null,level:(n?.level??0)+(n?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||false,childNodes:RE(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`);let c=a.getFullNode({...u,index:s},a.getChildState(r,u),l.key,l);for(let d of c)s++,yield d;}})};yield l;}};function RE(e){let t=[],r=null;return {*[Symbol.iterator](){for(let o of t)yield o;r||(r=e());for(let o of r)t.push(o),yield o;}}}function Gj(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Nv(e){return e[0].toUpperCase()+e.slice(1)}function $l(e,t,r){let o=useMemo(()=>new Gm,[]),{children:n,items:i,collection:a}=e;return useMemo(()=>{if(a)return a;let s=o.build({children:n,items:i},r);return t(s)},[o,n,i,a,r,t])}function Ot(e){let{filter:t,layoutDelegate:r}=e,o=Eo(e),n=useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=useCallback(u=>t?new ba(t(u)):new ba(u),[t]),a=useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=$l(e,i,a),s=useMemo(()=>new zo(l,o,{layoutDelegate:r}),[l,o,r]);return _E(l,s),{collection:l,disabledKeys:n,selectionManager:s}}function Wm(e,t){let r=useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),o=e.selectionManager.withCollection(r);return _E(r,o),{collection:r,selectionManager:o,disabledKeys:e.disabledKeys}}function _E(e,t){let r=useRef(null);useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let o=r.current.getKeyAfter(t.focusedKey),n=null;for(;o!=null;){let i=e.getItem(o);if(i&&i.type==="item"&&!t.isDisabled(o)){n=o;break}o=r.current.getKeyAfter(o);}if(n==null)for(o=r.current.getKeyBefore(t.focusedKey);o!=null;){let i=e.getItem(o);if(i&&i.type==="item"&&!t.isDisabled(o)){n=o;break}o=r.current.getKeyBefore(o);}t.setFocusedKey(n);}r.current=e;},[e,t]);}function ha(e,t){let{collection:r,onLoadMore:o,scrollOffset:n=1}=e,i=useRef(null),a=De(l=>{for(let s of l)s.isIntersecting&&o&&o();});re(()=>(t.current&&(i.current=new IntersectionObserver(a,{root:Qe(t?.current),rootMargin:`0px ${100*n}% ${100*n}% ${100*n}%`}),i.current.observe(t.current)),()=>{i.current&&i.current.disconnect();}),[r,t,n]);}var ME=createContext(null);function bi(e){let t=useRef({});return jsx(ME.Provider,{value:t,children:e.children})}var AE=forwardRef(function(t,r){let{name:o,isVisible:n=true,children:i,className:a,style:l,render:s,...u}=t,[c,d]=useState(n?"visible":"hidden"),p=useContext(ME);if(!p)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");n&&c==="hidden"&&d("visible"),r=pe(r),re(()=>{let f=r.current,y=p.current,b=y?.[o],g=null;if(f&&n&&b){d("visible");let x=f.getAnimations(),h=b.style.map(([v,C])=>{let T=f.style[v];if(v==="translate"){let P=b.rect,k=f.getBoundingClientRect(),S=P.left-k?.left,w=P.top-k?.top;f.style.translate=`${S}px ${w}px`;}else f.style[v]=C;return [v,T]});for(let v of f.getAnimations())x.includes(v)||v.cancel();g=requestAnimationFrame(()=>{g=null;for(let[v,C]of h)f.style[v]=C;}),delete y?.[o];}else f&&n&&!b?(queueMicrotask(()=>flushSync(()=>d("entering"))),g=requestAnimationFrame(()=>{g=null,d("visible");})):f&&!n&&queueMicrotask(()=>{y?.[o]?(delete y?.[o],flushSync(()=>d("exiting")),Promise.all(f.getAnimations().map(x=>x.finished)).then(()=>d("hidden")).catch(()=>{})):d("hidden");});return ()=>{if(g!=null&&cancelAnimationFrame(g),f&&f.isConnected&&!f.hasAttribute("data-exiting")){let x=window.getComputedStyle(f);if(x.transitionProperty!=="none"){let h=x.transitionProperty.split(/\s*,\s*/);y[o]={rect:f.getBoundingClientRect(),style:h.map(v=>[v,x[v]])};}}}},[r,p,o,n]);let m=Ve({children:i,className:a,style:l,render:s,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:jsx(Pe.div,{...u,...m,ref:r,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})});var An=createContext({isSelected:false});forwardRef(function(t,r){[t,r]=Ie(t,r,An);let{isSelected:o,...n}=t;return jsx(AE,{...n,ref:r,className:t.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:o})});function Fv(e){let t=oe(e,{labelable:true}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var qm=createContext({});var On=createContext(null),so=createContext(null),Vv=forwardRef(function(t,r){[t,r]=Ie(t,r,On);let o=useContext(so);return o?jsx(BE,{state:o,props:t,listBoxRef:r}):jsx(no,{content:jsx(_t,{...t}),children:n=>jsx(i2,{props:t,listBoxRef:r,collection:n})})});function i2({props:e,listBoxRef:t,collection:r}){e={...e,collection:r,children:null,items:null};let{layoutDelegate:o}=useContext(Re),n=Ot({...e,layoutDelegate:o});return jsx(BE,{state:n,props:e,listBoxRef:t})}function BE({state:e,props:t,listBoxRef:r}){[t,r]=Ie(t,r,jo);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:a}=t,l=Wm(e,a),{collection:s,selectionManager:u}=l,c=!!o?.useDraggableCollectionState,d=!!o?.useDroppableCollectionState,{direction:p}=Q(),{disabledBehavior:m,disabledKeys:f}=u,y=or({usage:"search",sensitivity:"base"}),{isVirtualized:b,layoutDelegate:g,dropTargetDelegate:x,CollectionRoot:h}=useContext(Re),v=useMemo(()=>t.keyboardDelegate||new kt({collection:s,collator:y,ref:r,disabledKeys:f,disabledBehavior:m,layout:n,orientation:i,direction:p,layoutDelegate:g}),[s,y,r,m,f,i,p,t.keyboardDelegate,n,g]),{listBoxProps:C}=Fl({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:v,isVirtualized:b},l,r),T=useRef(c),P=useRef(d);useEffect(()=>{process.env.NODE_ENV!=="production"&&(T.current!==c&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),P.current!==d&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[c,d]);let k,S,w,E=false,z=null,A=useRef(null);if(c&&o){k=o.useDraggableCollectionState({collection:s,selectionManager:u,preview:o.renderDragPreview?A:void 0}),o.useDraggableCollection({},k,r);let K=o.DragPreview;z=o.renderDragPreview?jsx(K,{ref:A,children:o.renderDragPreview}):null;}if(d&&o){S=o.useDroppableCollectionState({collection:s,selectionManager:u});let K=o.dropTargetDelegate||x||new o.ListDropTargetDelegate(s,r,{orientation:i,layout:n,direction:p});w=o.useDroppableCollection({keyboardDelegate:v,dropTargetDelegate:K},S,r),E=S.isDropTarget({type:"root"});}let{focusProps:D,isFocused:O,isFocusVisible:R}=ne(),N=l.collection.size===0,F={isDropTarget:E,isEmpty:N,isFocused:O,isFocusVisible:R,layout:t.layout||"stack",orientation:i,state:l},I=Ve({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:F}),V=null;N&&t.renderEmptyState&&(V=jsx("div",{role:"option",style:{display:"contents"},children:t.renderEmptyState(F)}));let H=oe(t,{global:true});return jsx(Rt,{children:jsxs(Pe.div,{...M(H,I,C,D,w?.collectionProps),ref:r,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":N||void 0,"data-focused":O||void 0,"data-focus-visible":R||void 0,"data-layout":t.layout||"stack","data-orientation":i,children:[jsx(mt,{values:[[On,t],[so,l],[Vt,{dragAndDropHooks:o,dragState:k,dropState:S}],[qm,{elementType:"div"}],[Mn,{render:a2}],[tm,{name:"ListBoxSection",render:HE}]],children:jsx(bi,{children:jsx(h,{collection:s,scrollRef:r,persistedKeys:Bl(u,o,S),renderDropIndicator:fa(o,S)})})}),V,z]})})}function HE(e,t,r,o="react-aria-ListBoxSection"){let n=useContext(so),{dragAndDropHooks:i,dropState:a}=useContext(Vt),{CollectionBranch:l}=useContext(Re),[s,u]=Au(),{headingProps:c,groupProps:d}=Vl({heading:u,"aria-label":e["aria-label"]??void 0}),p=Ve({...e,children:void 0,defaultClassName:o,values:void 0}),m=oe(e,{global:true});return delete m.id,jsx(Pe.section,{...M(m,p,d),ref:t,children:jsx(Hl.Provider,{value:{...c,ref:s},children:jsx(l,{collection:n.collection,parent:r,renderDropIndicator:fa(i,a)})})})}var Bv=Vr(ni,HE),Hv=dr(ta,function(t,r,o){let n=pe(r),i=useContext(so),{dragAndDropHooks:a,dragState:l,dropState:s}=useContext(Vt),u=l&&!(l.isDisabled||l.selectionManager.isDisabled(o.key)),{optionProps:c,labelProps:d,descriptionProps:p,...m}=Kl({key:o.key,"aria-label":t?.["aria-label"]},i,n),{hoverProps:f,isHovered:y}=ae({isDisabled:!m.allowsSelection&&!m.hasAction&&!u,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:b}=Ae(t),{focusProps:g}=tr(t),x=null;l&&a&&(x=a.useDraggableItem({key:o.key,hasAction:m.hasAction},l,n));let h=null;s&&a&&(h=a.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},s,n));let v=l&&l.isDragging(o.key),C=Ve({...t,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...m,isHovered:y,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!l,isDragging:v,isDropTarget:h?.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 T=t.href?Pe.a:Pe.div,P=oe(t,{global:true});return delete P.id,delete P.onClick,t.href&&c.tabIndex==null&&(c.tabIndex=-1),jsx(T,{...M(P,C,c,f,b,g,x?.dragProps,h?.dropProps),ref:n,"data-allows-dragging":!!l||void 0,"data-selected":m.isSelected||void 0,"data-disabled":m.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":m.isFocusVisible||void 0,"data-pressed":m.isPressed||void 0,"data-dragging":v||void 0,"data-drop-target":h?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(mt,{values:[[Do,{slots:{[ro]:d,label:d,description:p}}],[An,{isSelected:m.isSelected}]],children:C.children})})});function a2(e,t){t=pe(t);let{dragAndDropHooks:r,dropState:o}=useContext(Vt),{dropIndicatorProps:n,isHidden:i,isDropTarget:a}=r.useDropIndicator(e,o,t);return i?null:jsx(s2,{...e,dropIndicatorProps:n,isDropTarget:a,ref:t})}function l2(e,t){let{dropIndicatorProps:r,isDropTarget:o,...n}=e,i=Ve({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(Pe.div,{...r,...i,role:"option",ref:t,"data-drop-target":o||void 0})})}var s2=forwardRef(l2);dr(En,function(t,r,o){let n=useContext(so),{isLoading:i,onLoadMore:a,scrollOffset:l,...s}=t,u=useRef(null),c=useMemo(()=>({onLoadMore:a,collection:n?.collection,sentinelRef:u,scrollOffset:l}),[a,l,n?.collection]);ha(c,u);let d=Ve({...s,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),p={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:ya(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(Pe.div,{...M(oe(t,{global:true}),p),...d,role:"option",ref:r,children:d.children})})]})});var c2=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function jE(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}var bc=new WeakMap,Ir=[];function gi(e,t){let r=Y(e?.[0]),o=t instanceof r.Element?{root:t}:t,n=o?.root??U(e?.[0]).body,i=o?.shouldUseInert&&c2,a=new Set(e),l=new Set,s=b=>i&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",u=(b,g)=>{i&&b instanceof r.HTMLElement?b.inert=g:g?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=false));},c=new Set;if(lr())for(let b of e){let g=b;for(;g&&g!==n;){let x=g.getRootNode();"shadowRoot"in x&&c.add(x.shadowRoot),g=x.parentNode;}}let d=b=>{for(let v of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(v);let g=v=>{if(l.has(v)||a.has(v)||v.parentElement&&l.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of a)if(Z(v,C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=Km(U(b),b,NodeFilter.SHOW_ELEMENT,{acceptNode:g}),h=g(b);if(h===NodeFilter.FILTER_ACCEPT&&p(b),h!==NodeFilter.FILTER_REJECT){let v=x.nextNode();for(;v!=null;)p(v),v=x.nextNode();}},p=b=>{let g=bc.get(b)??0;s(b)&&g===0||(g===0&&u(b,true),l.add(b),bc.set(b,g+1));};Ir.length&&Ir[Ir.length-1].disconnect(),d(n);let m=new MutationObserver(b=>{for(let g of b)if(g.type==="childList"){if(g.target.isConnected&&![...a,...l].some(x=>Z(x,g.target)))for(let x of g.addedNodes)(x instanceof r.HTMLElement||x instanceof r.SVGElement)&&jE(x)?a.add(x):x instanceof r.Element&&d(x);if(lr()){for(let x of c)if(!x.isConnected){m.disconnect();break}}}});m.observe(n,{childList:true,subtree:true});let f=new Set;if(lr())for(let b of c){let g=new MutationObserver(x=>{for(let h of x)if(h.type==="childList"){if(h.target.isConnected&&![...a,...l].some(v=>Z(v,h.target)))for(let v of h.addedNodes)(v instanceof r.HTMLElement||v instanceof r.SVGElement)&&jE(v)?a.add(v):v instanceof r.Element&&d(v);if(lr()){for(let v of c)if(!v.isConnected){m.disconnect();break}}}});g.observe(b,{childList:true,subtree:true}),f.add(g);}let y={visibleNodes:a,hiddenNodes:l,observe(){m.observe(n,{childList:true,subtree:true});},disconnect(){m.disconnect();}};return Ir.push(y),()=>{if(m.disconnect(),lr())for(let b of f)b.disconnect();for(let b of l){let g=bc.get(b);g!=null&&(g===1?(u(b,false),bc.delete(b)):bc.set(b,g-1));}y===Ir[Ir.length-1]?(Ir.pop(),Ir.length&&Ir[Ir.length-1].observe()):Ir.splice(Ir.indexOf(y),1);}}function GE(e){let t=Ir[Ir.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e);}}var UE={"ar-AE":{buttonLabel:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0642\u062A\u0631\u062D\u0627\u062A",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u062E\u064A\u0627\u0631`,other:()=>`${t.number(e.optionCount)} \u062E\u064A\u0627\u0631\u0627\u062A`})} \u0645\u062A\u0627\u062D\u0629.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0627\u0644\u0645\u062F\u062E\u0644\u0629 ${e.groupTitle}, \u0645\u0639 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u062E\u064A\u0627\u0631`,other:()=>`${t.number(e.groupCount)} \u062E\u064A\u0627\u0631\u0627\u062A`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u0645\u062D\u062F\u062F",other:""},e.isSelected)}`,listboxLabel:"\u0645\u0642\u062A\u0631\u062D\u0627\u062A",selectedAnnouncement:e=>`${e.optionText}\u060C \u0645\u062D\u062F\u062F`},"bg-BG":{buttonLabel:"\u041F\u043E\u043A\u0430\u0436\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u043E\u043F\u0446\u0438\u044F`,other:()=>`${t.number(e.optionCount)} \u043E\u043F\u0446\u0438\u0438`})} \u043D\u0430 \u0440\u0430\u0437\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0412\u044A\u0432\u0435\u0434\u0435\u043D\u0430 \u0433\u0440\u0443\u043F\u0430 ${e.groupTitle}, \u0441 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u043E\u043F\u0446\u0438\u044F`,other:()=>`${t.number(e.groupCount)} \u043E\u043F\u0446\u0438\u0438`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u0438\u0437\u0431\u0440\u0430\u043D\u0438",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",selectedAnnouncement:e=>`${e.optionText}, \u0438\u0437\u0431\u0440\u0430\u043D\u0438`},"cs-CZ":{buttonLabel:"Zobrazit doporu\u010Den\xED",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} mo\u017Enost`,other:()=>`jsou/je ${t.number(e.optionCount)} mo\u017Enosti/-\xED`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadan\xE1 skupina \u201E${e.groupTitle}\u201C ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} mo\u017Enost\xED`,other:()=>`se ${t.number(e.groupCount)} mo\u017Enostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybr\xE1no)",other:""},e.isSelected)}`,listboxLabel:"N\xE1vrhy",selectedAnnouncement:e=>`${e.optionText}, vybr\xE1no`},"da-DK":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilg\xE6ngelig`,other:()=>`${t.number(e.optionCount)} muligheder tilg\xE6ngelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"de-DE":{buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verf\xFCgbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgew\xE4hlt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgew\xE4hlt`},"el-GR":{buttonLabel:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03C0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03C9\u03BD",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE`,other:()=>`${t.number(e.optionCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 `})} \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B5\u03C2.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03BC\u03AD\u03BD\u03B7 \u03BF\u03BC\u03AC\u03B4\u03B1 ${e.groupTitle}, \u03BC\u03B5 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE`,other:()=>`${t.number(e.groupCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF",other:""},e.isSelected)}`,listboxLabel:"\u03A0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",selectedAnnouncement:e=>`${e.optionText}, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5`},"en-US":{focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"},"es-ES":{buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opci\xF3n`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opci\xF3n`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`},"et-EE":{buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud r\xFChm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`},"fi-FI":{buttonLabel:"N\xE4yt\xE4 ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhm\xE4\xE4n ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`},"fr-FR":{buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", s\xE9lectionn\xE9(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, s\xE9lectionn\xE9`},"he-IL":{buttonLabel:"\u05D4\u05E6\u05D2 \u05D4\u05E6\u05E2\u05D5\u05EA",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`\u05D0\u05E4\u05E9\u05E8\u05D5\u05EA ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA`})} \u05D1\u05DE\u05E6\u05D1 \u05D6\u05DE\u05D9\u05DF.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u05E0\u05DB\u05E0\u05E1 \u05DC\u05E7\u05D1\u05D5\u05E6\u05D4 ${e.groupTitle}, \u05E2\u05DD ${t.plural(e.groupCount,{one:()=>`\u05D0\u05E4\u05E9\u05E8\u05D5\u05EA ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u05E0\u05D1\u05D7\u05E8",other:""},e.isSelected)}`,listboxLabel:"\u05D4\u05E6\u05E2\u05D5\u05EA",selectedAnnouncement:e=>`${e.optionText}, \u05E0\u05D1\u05D7\u05E8`},"hr-HR":{buttonLabel:"Prika\u017Ei prijedloge",countAnnouncement:(e,t)=>`Dostupno jo\u0161: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`},"hu-HU":{buttonLabel:"Javaslatok megjelen\xEDt\xE9se",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehet\u0151s\xE9g`,other:()=>`${t.number(e.optionCount)} lehet\u0151s\xE9g`})} \xE1ll rendelkez\xE9sre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Bel\xE9pett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehet\u0151s\xE9get`,other:()=>`${t.number(e.groupCount)} lehet\u0151s\xE9get`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijel\xF6lve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijel\xF6lve`},"it-IT":{buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`},"ja-JP":{buttonLabel:"\u5019\u88DC\u3092\u8868\u793A",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`,other:()=>`${t.number(e.optionCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`})}\u3092\u5229\u7528\u3067\u304D\u307E\u3059\u3002`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u5165\u529B\u3055\u308C\u305F\u30B0\u30EB\u30FC\u30D7 ${e.groupTitle}\u3001${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`,other:()=>`${t.number(e.groupCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`})}\u3092\u542B\u3080\u3002`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"\u3001\u9078\u629E\u6E08\u307F",other:""},e.isSelected)}`,listboxLabel:"\u5019\u88DC",selectedAnnouncement:e=>`${e.optionText}\u3001\u9078\u629E\u6E08\u307F`},"ko-KR":{buttonLabel:"\uC81C\uC548 \uC0AC\uD56D \uD45C\uC2DC",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}\uAC1C \uC635\uC158`,other:()=>`${t.number(e.optionCount)}\uAC1C \uC635\uC158`})}\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\uC785\uB825\uD55C \uADF8\uB8F9 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}\uAC1C \uC635\uC158`,other:()=>`${t.number(e.groupCount)}\uAC1C \uC635\uC158`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \uC120\uD0DD\uB428",other:""},e.isSelected)}`,listboxLabel:"\uC81C\uC548",selectedAnnouncement:e=>`${e.optionText}, \uC120\uD0DD\uB428`},"lt-LT":{buttonLabel:"Rodyti pasi\u016Blymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-i\u0173)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u012Evesta grup\u0117 ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-i\u0173)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasi\u016Blymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`},"lv-LV":{buttonLabel:"R\u0101d\u012Bt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievad\u012Bta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcij\u0101m`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlas\u012Bta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlas\u012Bta`},"nb-NO":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"nl-NL":{buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`},"pl-PL":{buttonLabel:"Wy\u015Bwietlaj sugestie",countAnnouncement:(e,t)=>`dost\u0119pna/dost\u0119pne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Do\u0142\u0105czono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcj\u0105`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`},"pt-BR":{buttonLabel:"Mostrar sugest\xF5es",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\xE7\xE3o`,other:()=>`${t.number(e.optionCount)} op\xE7\xF5es`})} dispon\xEDvel.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\xE7\xE3o`,other:()=>`${t.number(e.groupCount)} op\xE7\xF5es`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugest\xF5es",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"pt-PT":{buttonLabel:"Apresentar sugest\xF5es",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\xE7\xE3o`,other:()=>`${t.number(e.optionCount)} op\xE7\xF5es`})} dispon\xEDvel.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\xE7\xE3o`,other:()=>`${t.number(e.groupCount)} op\xE7\xF5es`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugest\xF5es",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"ro-RO":{buttonLabel:"Afi\u0219are sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\u021Biune`,other:()=>`${t.number(e.optionCount)} op\u021Biuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\u021Biune`,other:()=>`${t.number(e.groupCount)} op\u021Biuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`},"ru-RU":{buttonLabel:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${t.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432`})} \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0412\u0432\u0435\u0434\u0435\u043D\u043D\u0430\u044F \u0433\u0440\u0443\u043F\u043F\u0430 ${e.groupTitle}, \u0441 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u043C`,other:()=>`${t.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u043C\u0438",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",selectedAnnouncement:e=>`${e.optionText}, \u0432\u044B\u0431\u0440\u0430\u043D\u043E`},"sk-SK":{buttonLabel:"Zobrazi\u0165 n\xE1vrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mo\u017Enos\u0165`,other:()=>`${t.number(e.optionCount)} mo\u017Enosti/-\xED`})} k dispoz\xEDcii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadan\xE1 skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mo\u017Enos\u0165ou`,other:()=>`${t.number(e.groupCount)} mo\u017Enos\u0165ami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybrat\xE9",other:""},e.isSelected)}`,listboxLabel:"N\xE1vrhy",selectedAnnouncement:e=>`${e.optionText}, vybrat\xE9`},"sl-SI":{buttonLabel:"Prika\u017Ei predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`},"sr-SP":{buttonLabel:"Prika\u017Ei predloge",countAnnouncement:(e,t)=>`Dostupno jo\u0161: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`},"sv-SE":{buttonLabel:"Visa f\xF6rslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillg\xE4ngliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"F\xF6rslag",selectedAnnouncement:e=>`${e.optionText}, valda`},"tr-TR":{buttonLabel:"\xD6nerileri g\xF6ster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} se\xE7enek`,other:()=>`${t.number(e.optionCount)} se\xE7enekler`})} kullan\u0131labilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} se\xE7enek`,other:()=>`${t.number(e.groupCount)} se\xE7enekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", se\xE7ildi",other:""},e.isSelected)}`,listboxLabel:"\xD6neriler",selectedAnnouncement:e=>`${e.optionText}, se\xE7ildi`},"uk-UA":{buttonLabel:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u043F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${t.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438(-\u0456\u0432)`})} \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0412\u0432\u0435\u0434\u0435\u043D\u0430 \u0433\u0440\u0443\u043F\u0430 ${e.groupTitle}, \u0437 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${t.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438(-\u0456\u0432)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u0432\u0438\u0431\u0440\u0430\u043D\u043E",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457",selectedAnnouncement:e=>`${e.optionText}, \u0432\u0438\u0431\u0440\u0430\u043D\u043E`},"zh-CN":{buttonLabel:"\u663E\u793A\u5EFA\u8BAE",countAnnouncement:(e,t)=>`\u6709 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u4E2A\u9009\u9879`,other:()=>`${t.number(e.optionCount)} \u4E2A\u9009\u9879`})}\u53EF\u7528\u3002`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u8FDB\u5165\u4E86 ${e.groupTitle} \u7EC4\uFF0C\u5176\u4E2D\u6709 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u4E2A\u9009\u9879`,other:()=>`${t.number(e.groupCount)} \u4E2A\u9009\u9879`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u5DF2\u9009\u62E9",other:""},e.isSelected)}`,listboxLabel:"\u5EFA\u8BAE",selectedAnnouncement:e=>`${e.optionText}, \u5DF2\u9009\u62E9`},"zh-TW":{buttonLabel:"\u986F\u793A\u5EFA\u8B70",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u9078\u9805`,other:()=>`${t.number(e.optionCount)} \u9078\u9805`})} \u53EF\u7528\u3002`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u8F38\u5165\u7684\u7FA4\u7D44 ${e.groupTitle}, \u6709 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u9078\u9805`,other:()=>`${t.number(e.groupCount)} \u9078\u9805`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u5DF2\u9078\u53D6",other:""},e.isSelected)}`,listboxLabel:"\u5EFA\u8B70",selectedAnnouncement:e=>`${e.optionText}, \u5DF2\u9078\u53D6`}};var WE={"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"}};var $v=new WeakMap;function qE(e){let{triggerRef:t,isOpen:r,onClose:o}=e;useEffect(()=>{if(!r||o===null)return;let n=Y(t.current),i=a=>{let l=$(a);if(!t.current||l instanceof n.Node&&!Z(l,t.current)||l instanceof n.HTMLInputElement||l instanceof n.HTMLTextAreaElement)return;let s=o||$v.get(t.current);s&&s();};return n.addEventListener("scroll",i,true),()=>{n.removeEventListener("scroll",i,true);}},[r,o,t]);}function Nn(e,t,r){let{type:o}=e,{isOpen:n}=t;useEffect(()=>{r&&r.current&&$v.set(r.current,t.close);});let i;o==="menu"?i=true:o==="listbox"&&(i="listbox");let a=ee();return {triggerProps:{"aria-haspopup":i,"aria-expanded":n,"aria-controls":n?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}function va(e,t,r){let{type:o="menu",isDisabled:n,trigger:i="press"}=e,a=ee(),{triggerProps:l,overlayProps:s}=Nn({type:o},t,r),u=m=>{if(!n&&!(i==="longPress"&&!m.altKey)&&r&&r.current)switch(m.key){case "Enter":case " ":if(i==="longPress"||m.isDefaultPrevented())return;case "ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("first");break;case "ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation();}},c=Te(WE,"@react-aria/menu"),{longPressProps:d}=Hm({isDisabled:n||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close();},onLongPress(){t.open("first");}}),p={preventFocusOnPress:true,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!n&&($e(m.target),t.open(m.pointerType==="virtual"?"first":null));},onPress(m){m.pointerType==="touch"&&!n&&($e(m.target),t.toggle());}};return delete l.onPress,{menuTriggerProps:{...l,...i==="press"?p:d,id:a,onKeyDown:u},menuProps:{...s,"aria-labelledby":a,autoFocus:t.focusStrategy||true,onClose:t.close}}}function hc(e,t){let{buttonRef:r,popoverRef:o,inputRef:n,listBoxRef:i,keyboardDelegate:a,layoutDelegate:l,shouldFocusWrap:s,isReadOnly:u,isDisabled:c}=e,d=useRef(null);r=r??d;let p=Te(UE,"@react-aria/combobox"),{menuTriggerProps:m,menuProps:f}=va({type:"listbox",isDisabled:c||u},t,r);ua.set(t,{id:f.id});let{collection:y}=t,{disabledKeys:b}=t.selectionManager,g=useMemo(()=>a||new kt({collection:y,disabledKeys:b,ref:i,layoutDelegate:l}),[a,l,y,b,i]),{collectionProps:x}=fi({selectionManager:t.selectionManager,keyboardDelegate:g,disallowTypeAhead:true,disallowEmptySelection:true,shouldFocusWrap:s,ref:n}),h=Qr(),v=te=>{if(!te.nativeEvent.isComposing)switch(te.key){case "Enter":case "Tab":if(t.isOpen&&te.key==="Enter"&&te.preventDefault(),t.isOpen&&i.current&&t.selectionManager.focusedKey!=null){let ue=t.collection.getItem(t.selectionManager.focusedKey);if(ue?.props.href){let Ee=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);te.key==="Enter"&&Ee instanceof HTMLAnchorElement&&h.open(Ee,te,ue.props.href,ue.props.routerOptions),t.close();break}else if(ue?.props.onAction){ue.props.onAction(),t.close();break}}(te.key==="Enter"||t.isOpen)&&t.commit(),te.key==="Tab"&&te.continuePropagation();break;case "Escape":(!t.selectionManager.isEmpty||t.inputValue===""||e.allowsCustomValue)&&te.continuePropagation(),t.revert();break;case "ArrowDown":t.open("first","manual");break;case "ArrowUp":t.open("last","manual");break;case "ArrowLeft":case "ArrowRight":t.selectionManager.setFocusedKey(null);break}},C=te=>{let ue=r?.current&&r.current===te.relatedTarget,Ee=Z(o.current,te.relatedTarget);ue||Ee||(e.onBlur&&e.onBlur(te),t.setFocused(false));},T=te=>{t.isFocused||(e.onFocus&&e.onFocus(te),t.setFocused(true));},P=f2([t.selectionManager.selectedKeys,t.selectionManager.selectionMode]),{isInvalid:k,validationErrors:S,validationDetails:w}=t.displayValidation,{labelProps:E,inputProps:z,descriptionProps:A,errorMessageProps:D}=$r({...e,isRequired:e.selectionMode==="multiple"?e.isRequired&&t.selectionManager.isEmpty:e.isRequired,onChange:t.setInputValue,onKeyDown:u?e.onKeyDown:Ye(t.isOpen&&x.onKeyDown,v,e.onKeyDown),onBlur:C,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:T,autoComplete:"off",validate:void 0,[Hr]:t,"aria-describedby":[P,e["aria-describedby"]].filter(Boolean).join(" ")||void 0},n);Mt(n,t.defaultValue,t.setValue);let O=te=>{te.pointerType==="touch"&&(n.current?.focus(),t.toggle(null,"manual"));},R=te=>{te.pointerType!=="touch"&&(n.current?.focus(),t.toggle(te.pointerType==="keyboard"||te.pointerType==="virtual"?"first":null,"manual"));},N=tt({id:m.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||E.id}),F=tt({id:f.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||E.id}),I=useRef(0),V=te=>{if(c||u)return;if(te.timeStamp-I.current<500){te.preventDefault(),n.current?.focus();return}let ue=$(te).getBoundingClientRect(),Ee=te.changedTouches[0],Ce=Math.ceil(ue.left+.5*ue.width),He=Math.ceil(ue.top+.5*ue.height);Ee.clientX===Ce&&Ee.clientY===He&&(te.preventDefault(),n.current?.focus(),t.toggle(null,"manual"),I.current=te.timeStamp);},H=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,K=H?.parentKey??null,L=t.selectionManager.focusedKey??null,B=useRef(K),G=useRef(L);useEffect(()=>{if(Qn()&&H!=null&&L!=null&&L!==G.current){let te=t.selectionManager.isSelected(L),ue=K!=null?t.collection.getItem(K):null,Ee=ue?.["aria-label"]||(typeof ue?.rendered=="string"?ue.rendered:"")||"",Ce=p.format("focusAnnouncement",{isGroupChange:(ue&&K!==B.current)??false,groupTitle:Ee,groupCount:ue?[...Ge(ue,t.collection)].length:0,optionText:H["aria-label"]||H.textValue||"",isSelected:te});at(Ce);}B.current=K,G.current=L;});let q=ma(t.collection),W=useRef(q),X=useRef(t.isOpen);useEffect(()=>{let te=t.isOpen!==X.current&&(t.selectionManager.focusedKey==null||Qn());if(t.isOpen&&(te||q!==W.current)){let ue=p.format("countAnnouncement",{optionCount:q});at(ue);}W.current=q,X.current=t.isOpen;});let ce=useRef(t.selectedKey);return useEffect(()=>{if(Qn()&&t.isFocused&&t.selectedItem&&t.selectedKey!==ce.current){let te=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ue=p.format("selectedAnnouncement",{optionText:te});at(ue);}ce.current=t.selectedKey;}),useEffect(()=>{if(t.isOpen)return gi([n.current,o.current].filter(te=>te!=null))},[t.isOpen,n,o]),Rn(()=>{!H&&n.current&&de(U(n.current))===n.current&&Zn(n.current,null);},[H]),ct(i,"react-aria-item-action",t.isOpen?()=>{t.close();}:void 0),{labelProps:E,buttonProps:{...m,...N,excludeFromTabOrder:true,preventFocusOnPress:true,onPress:O,onPressStart:R,isDisabled:c||u},inputProps:M(z,{role:"combobox","aria-expanded":m["aria-expanded"],"aria-controls":t.isOpen?f.id:void 0,"aria-autocomplete":"list","aria-activedescendant":H?Fm(t,H.key):void 0,onTouchEnd:V,autoCorrect:"off",spellCheck:"false"}),listBoxProps:M(f,F,{onAction:void 0,autoFocus:t.focusStrategy||true,shouldUseVirtualFocus:true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:P},descriptionProps:A,errorMessageProps:D,isInvalid:k,validationErrors:S,validationDetails:w}}function f2(e=[]){let t=ee(),[r,o]=useState(true),[n,i]=useState(e);return n.some((a,l)=>!Object.is(a,e[l]))&&(o(true),i(e)),useEffect(()=>{r&&!document.getElementById(t)&&o(false);},[t,r,n]),r?t:void 0}function Tr(e){let[t,r]=ye(e.isOpen,e.defaultOpen||false,e.onOpenChange),o=useCallback(()=>{r(true);},[r]),n=useCallback(()=>{r(false);},[r]),i=useCallback(()=>{r(!t);},[r,t]);return {isOpen:t,setOpen:r,open:o,close:n,toggle:i}}function xc(e){let{defaultFilter:t,menuTrigger:r="input",allowsEmptyCollection:o=false,allowsCustomValue:n,shouldCloseOnBlur:i=true,selectionMode:a="single"}=e,[l,s]=useState(false),[u,c]=useState(false),[d,p]=useState(null),m=useMemo(()=>e.defaultValue!==void 0?e.defaultValue:a==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,a]),f=useMemo(()=>e.value!==void 0?e.value:a==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,a]),[y,b]=ye(f,m,e.onChange),g=a==="single"&&Array.isArray(y)?y[0]:y,x=ie=>{if(a==="single"){let we=Array.isArray(ie)?ie[0]??null:ie;b(we),we!==g&&e.onSelectionChange?.(we);}else {let we=[];Array.isArray(ie)?we=ie:ie!=null&&(we=[ie]),b(we);}},{collection:h,selectionManager:v,disabledKeys:C}=Ot({...e,items:e.items??e.defaultItems,selectionMode:a,disallowEmptySelection:a==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>g2(g),[g]),onSelectionChange:ie=>{if(ie!=="all")if(a==="single"){let we=ie.values().next().value??null;we===g?(e.onSelectionChange?.(we),W(),L()):x(we);}else x([...ie]);}}),T=a==="single"?v.firstSelectedKey:null,P=useMemo(()=>[...v.selectedKeys].map(ie=>h.getItem(ie)).filter(ie=>ie!=null),[v.selectedKeys,h]),[k,S]=ye(e.inputValue,YE(e.defaultInputValue,T,h)||"",e.onInputChange),[w]=useState(g),[E]=useState(k),z=h,A=useMemo(()=>e.items!=null||!t?h:b2(h,k,t),[h,k,t,e.items]),[D,O]=useState(A),R=useRef("focus"),F=Tr({...e,onOpenChange:ie=>{e.onOpenChange&&e.onOpenChange(ie,ie?R.current:void 0),v.setFocused(ie),ie||v.setFocusedKey(null);},isOpen:void 0,defaultOpen:void 0}),I=(ie=null,we)=>{let Ht=we==="manual"||we==="focus"&&r==="focus";(o||A.size>0||Ht&&z.size>0||e.items)&&(Ht&&!F.isOpen&&e.items===void 0&&s(true),R.current=we,p(ie),F.open());},V=(ie=null,we)=>{let Ht=we==="manual"||we==="focus"&&r==="focus";!(o||A.size>0||Ht&&z.size>0||e.items)&&!F.isOpen||(Ht&&!F.isOpen&&e.items===void 0&&s(true),F.isOpen||(R.current=we),K(ie));},H=useCallback(()=>{O(l?z:A);},[l,z,A]),K=useCallback((ie=null)=>{F.isOpen&&H(),p(ie),F.toggle();},[F,H]),L=useCallback(()=>{F.isOpen&&(H(),F.close());},[F,H]),[B,G]=useState(k),q=useRef(false),W=()=>{let ie=T!=null?h.getItem(T)?.textValue??"":"";q.current=false,G(ie),S(ie);},X=useRef(g),ce=useRef(T!=null?h.getItem(T)?.textValue??"":"");useEffect(()=>{u&&(A.size>0||o)&&!F.isOpen&&k!==B&&r!=="manual"&&I(null,"input"),!l&&!o&&F.isOpen&&A.size===0&&L(),g!=null&&g!==X.current&&a==="single"&&L(),k!==B&&(q.current=true,v.setFocusedKey(null),s(false),a==="single"&&k===""&&(e.inputValue===void 0||f===void 0)&&x(null)),g!==X.current&&(e.inputValue===void 0||f===void 0)?W():B!==k&&G(k);let ie=T!=null?h.getItem(T)?.textValue??"":"";(!u||!q.current)&&T!=null&&e.inputValue===void 0&&T===X.current&&ce.current!==ie&&(q.current=false,G(ie),S(ie)),X.current=g,ce.current=ie;});let te=Kt({...e,value:useMemo(()=>Array.isArray(g)&&g.length===0?null:{inputValue:k,value:g,selectedKey:T},[k,T,g])}),ue=()=>{n&&T==null?Ee():Ce();},Ee=()=>{if(a==="multiple"){G(k),L();return}let ie=null;X.current=ie,x(ie),L();},Ce=(ie=false)=>{if(f!==void 0&&e.inputValue!==void 0){let we=T!=null?h.getItem(T)?.textValue??"":"";(ie||a==="multiple"||k!==we)&&(e.onSelectionChange?.(T),e.onChange?.(g)),G(we),L();}else W(),L();},He=()=>{if(n){let ie=T!=null?h.getItem(T)?.textValue??"":"";k===ie?Ce():Ee();}else Ce();},Xe=()=>{F.isOpen&&v.focusedKey!=null?v.isSelected(v.focusedKey)&&a==="single"?Ce(true):v.select(v.focusedKey):He();},be=useRef([k,g]),xe=ie=>{ie?(be.current=[k,g],r==="focus"&&!e.isReadOnly&&I(null,"focus")):(i&&He(),(k!==be.current[0]||g!==be.current[1])&&te.commitValidation()),c(ie);},Fe=useMemo(()=>F.isOpen?l?z:A:D,[F.isOpen,z,A,l,D]),le=e.defaultSelectedKey??(a==="single"?w:null);return {...te,...F,focusStrategy:d,toggle:V,open:I,close:He,selectionManager:v,value:g,defaultValue:m??w,setValue:x,selectedKey:T,selectedItems:P,defaultSelectedKey:le,setSelectedKey:x,disabledKeys:C,isFocused:u,setFocused:xe,selectedItem:P[0]??null,collection:Fe,inputValue:k,defaultInputValue:YE(e.defaultInputValue,le,h)??E,setInputValue:S,commit:Xe,revert:ue}}function b2(e,t,r){return new ba(ZE(e,e,t,r))}function ZE(e,t,r,o){let n=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=ZE(e,Ge(i,e),r,o);[...a].some(l=>l.type==="item")&&n.push({...i,childNodes:a});}else i.type==="item"&&o(i.textValue,r)?n.push({...i}):i.type!=="item"&&n.push({...i});return n}function YE(e,t,r){return e==null&&t!=null?r.getItem(t)?.textValue??"":e}function g2(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}var _r=qn.forwardRef(({children:e,...t},r)=>{let o=useRef(false),n=useContext(Zi),i=M(n||{},{...t,register(){o.current=true,n&&n.register();}});return i.ref=pe(r||n?.ref),xl(n,i.ref),useEffect(()=>{o.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=true);},[]),jsx(Zi.Provider,{value:i,children:e})});function Ym({children:e}){let t=useMemo(()=>({register:()=>{}}),[]);return jsx(Zi.Provider,{value:t,children:e})}var D2=createContext({});function QE(){return useContext(D2)??{}}var ez=qn.createContext(null);function Wv(e){let t=eo(),{portalContainer:r=t?null:U(null).body,isExiting:o}=e,[n,i]=useState(false),a=useMemo(()=>({contain:n,setContain:i}),[n,i]),{getContainer:l}=QE();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=jsx(Rt,{restoreFocus:true,contain:(e.shouldContainFocus||n)&&!o,ownerDocument:U(r),children:s})),s=jsx(ez.Provider,{value:a,children:jsx(Ym,{children:s})}),R2.createPortal(s,r)}function Zm(){let t=useContext(ez)?.setContain;re(()=>{t?.(true);},[t]);}function Tc(e,t){let{role:r="dialog"}=e,o=Pt([],t);o=e["aria-label"]?void 0:o;let n=useRef(false);useEffect(()=>{if(!t.current)return;let a=U(t.current),l=t.current&&de(a);if(t.current&&!Z(t.current,l)){qe(t.current);let s=setTimeout(()=>{let u=de(a);(u===t.current||u===a.body)&&(n.current=true,t.current&&(t.current.blur(),qe(t.current)),n.current=false);},500);return ()=>{clearTimeout(s);}}},[t]),Zm();let i=useRef(false);return useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!i.current&&t.current){let a=t.current,l=a.hasAttribute("aria-label"),s=a.hasAttribute("aria-labelledby");!l&&!s&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),i.current=true);}}),{dialogProps:{...oe(e,{labelable:true}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:a=>{n.current&&a.stopPropagation();}},titleProps:{id:o}}}var Pa=1e7;function oz(e,t,r){let o=Yv(t.body,r);return e==="left"?{...o,left:-Pa/2,width:Pa,totalWidth:Pa,scroll:{...o.scroll,left:0}}:{...o,top:-Pa/2,height:Pa,totalHeight:Pa,scroll:{...o.scroll,top:0}}}var uo={top:"top",bottom:"top",left:"left",right:"left"},Cc={top:"bottom",bottom:"top",left:"right",right:"left"},I2={top:"left",left:"top"},Xv={top:"height",left:"width"},lz={width:"totalWidth",height:"totalHeight"},Jm={};function _2(e){let t=Y(e);return typeof t<"u"&&t.visualViewport?t.visualViewport:null}function Yv(e,t){let r=U(e),o=0,n=0,i=0,a=0,l=0,s=0,u={},c=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let d=r.documentElement;i=d.clientWidth,a=d.clientHeight,o=t?.width??i,n=t?.height??a,u.top=d.scrollTop||e.scrollTop,u.left=d.scrollLeft||e.scrollLeft,t&&(l=t.offsetTop,s=t.offsetLeft);}else (({width:o,height:n,top:l,left:s}=Pc(e,false))),u.top=e.scrollTop,u.left=e.scrollLeft,i=o,a=n;return ei()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c&&(u.top=0,u.left=0,l=t?.pageTop??0,s=t?.pageLeft??0),{width:o,height:n,totalWidth:i,totalHeight:a,scroll:u,top:l,left:s}}function L2(e){return {top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Qm(e,t,r,o,n,i,a){let l=n.scroll[e]??0,s=o[Xv[e]],u=a[e]+o.scroll[uo[e]]+i,c=a[e]+o.scroll[uo[e]]+s-i,d=t-l+o.scroll[uo[e]]+a[e]-o[uo[e]],p=t-l+r+o.scroll[uo[e]]+a[e]-o[uo[e]];return d<u?u-d:p>c?Math.max(c-p,u-d):0}function M2(e){let r=Y(e).getComputedStyle(e);return {top:parseInt(r.marginTop,10)||0,bottom:parseInt(r.marginBottom,10)||0,left:parseInt(r.marginLeft,10)||0,right:parseInt(r.marginRight,10)||0}}function qv(e){if(Jm[e])return Jm[e];let[t,r]=e.split(" "),o=uo[t]||"right",n=I2[o];uo[r]||(r="center");let i=Xv[o],a=Xv[n];return Jm[e]={placement:t,crossPlacement:r,axis:o,crossAxis:n,size:i,crossSize:a},Jm[e]}function ef(e,t,r,o,n,i,a,l,s,u,c){let{placement:d,crossPlacement:p,axis:m,crossAxis:f,size:y,crossSize:b}=o,g={};g[f]=e[f]??0,p==="center"?g[f]+=((e[b]??0)-(r[b]??0))/2:p!==f&&(g[f]+=(e[b]??0)-(r[b]??0)),g[f]+=i;let x=e[f]-r[b]+s+u,h=e[f]+e[b]-s-u;if(g[f]=Ze(g[f],x,h),d===m){let v=l?c[y]:c[lz[y]];g[Cc[m]]=Math.floor(v-e[m]+n);}else g[m]=Math.floor(e[m]+e[y]+n);return g}function A2(e,t,r,o,n,i,a,l,s,u,c){let d=(e.top!=null?e.top:s[lz.height]-(e.bottom??0)-a)-(s.scroll.top??0),p=u?r.top:0,m={top:Math.max(t.top+p,(c?.offsetTop??t.top)+p),bottom:Math.min(t.top+t.height+p,(c?.offsetTop??0)+(c?.height??0))};return l!=="top"?Math.max(0,m.bottom-d-((n.top??0)+(n.bottom??0)+i)):Math.max(0,d+a-m.top-((n.top??0)+(n.bottom??0)+i))}function nz(e,t,r,o,n,i,a,l){let{placement:s,axis:u,size:c}=i;return s===u?Math.max(0,r[u]-(a.scroll[u]??0)-(e[u]+(l?t[u]:0))-(o[u]??0)-o[Cc[u]]-n):Math.max(0,e[c]+e[u]+(l?t[u]:0)-r[u]-r[c]+(a.scroll[u]??0)-(o[u]??0)-o[Cc[u]]-n)}function O2(e,t,r,o,n,i,a,l,s,u,c,d,p,m,f,y,b,g,x,h,v,C){let T=qv(e),{size:P,crossAxis:k,crossSize:S,placement:w,crossPlacement:E}=T,z=ef(t,l,r,T,c,d,u,p,f,y,s),A=c,D=x?Pa:nz(l,u,t,n,i+c,T,s,b);if(a&&r[P]>D){let te=qv(`${Cc[w]} ${E}`),ue=ef(t,l,r,te,c,d,u,p,f,y,s);nz(l,u,t,n,i+c,te,s,b)>D&&(T=te,z=ue,A=c);}if(C==="anchor"&&h&&(T.placement==="top"||T.placement==="bottom")){let te=x?0:Qm(k,z[k],r[S],l,s,i,u);if(te!==0){let ue=T.crossPlacement==="center"?te>0?"left":"right":Cc[T.crossPlacement];if(ue){let Ee=qv(`${T.placement} ${ue}`),Ce=ef(t,l,r,Ee,c,d,u,p,f,y,s),He=x?0:Qm(k,Ce[k],r[S],l,s,i,u);Math.abs(He)<Math.abs(te)&&(T=Ee,z=Ce);}}}let O="bottom";T.axis==="top"?T.placement==="top"?O="top":T.placement==="bottom"&&(O="bottom"):T.crossAxis==="top"&&(T.crossPlacement==="top"?O="bottom":T.crossPlacement==="bottom"&&(O="top"));let R=C==="anchor"&&h&&(T.placement==="top"||T.placement==="bottom")&&T.crossPlacement!=="center",N=R||x?0:Qm(k,z[k],r[S],l,s,i,u);z[k]+=N;let F=x||!v?void 0:A2(z,l,u,p,n,i,r.height,O,s,b,g);m&&(F==null||m<F)&&(F=m),r.height=F!=null?Math.min(r.height,F):r.height,z=ef(t,l,r,T,A,d,u,p,f,y,s),N=R||x?0:Qm(k,z[k],r[S],l,s,i,u),z[k]+=N;let I={},V=t[k]-z[k]-n[uo[k]],H=V+.5*t[S],K=f/2+y,L=uo[k]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),B=r[S]-L-f/2-y,G=t[k]+f/2-(z[k]+n[uo[k]]),q=t[k]+t[S]-f/2-(z[k]+n[uo[k]]),W=Ze(H,G,q);I[k]=Ze(W,K,B),{placement:w,crossPlacement:E}=T,f?V=I[k]:E==="right"?V+=t[S]:E==="center"&&(V+=t[S]/2);let X=w==="left"||w==="top"?r[P]:0,ce={x:w==="top"||w==="bottom"?V:X,y:w==="left"||w==="right"?V:X};return {position:z,maxHeight:F,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:w,triggerAnchorPoint:ce}}function sz(e){let{placement:t,targetNode:r,overlayNode:o,scrollNode:n,padding:i,shouldFlip:a,boundaryElement:l,boundaryAxis:s="both",horizontalBoundaryBehavior:u="shift",offset:c,crossOffset:d,maxHeight:p,arrowSize:m=0,arrowBoundaryOffset:f=0,targetRect:y}=e,b=U(o),g=Y(o),x=_2(o),h=o instanceof g.HTMLElement?N2(o):b.documentElement,v=h===b.documentElement,C=g.getComputedStyle(h).position,T=!!C&&C!=="static",P=v?Pc(r,false,y):iz(r,h,false,y);if(!v){let{marginTop:K,marginLeft:L}=g.getComputedStyle(r);P.top+=parseInt(K,10)||0,P.left+=parseInt(L,10)||0;}let k=Pc(o,true),S=M2(o);k.width+=(S.left??0)+(S.right??0),k.height+=(S.top??0)+(S.bottom??0);let w=L2(n),E=l===null,z=l??b.body,A=!E&&s!=="vertical",D=!E&&s!=="horizontal",O=Yv(z,x),R=A?O:oz("left",b,x),N=D?O:oz("top",b,x),F={...N,left:R.left,width:R.width,totalWidth:R.totalWidth,scroll:{top:N.scroll.top,left:R.scroll.left}},I=Yv(h,x);T&&!v&&(F.top-=I.top,F.left-=I.left,I.top=0,I.left=0);let V=E?{top:0,left:0,width:0,height:0}:iz(z,h,false),H=!E&&Z(z,h)&&h!==z;return O2(t,P,k,w,S,i,a,F,I,V,c,d,T,p,m,f,H,x,E,A,D,u)}function tf(e,t){let r=Y(e),{top:o,left:n,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof r.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:o,left:n,width:i,height:a}}function Pc(e,t,r){let o=U(e),{top:n,left:i,width:a,height:l}=r||tf(e,t),{scrollTop:s,scrollLeft:u,clientTop:c,clientLeft:d}=o.documentElement;return {top:n+s-c,left:i+u-d,width:a,height:l}}function iz(e,t,r,o){let n=Y(e),i=n.getComputedStyle(e),a;if(i.position==="fixed")a=o||tf(e,r);else {a=Pc(e,r,o);let l=Pc(t,r),s=n.getComputedStyle(t);l.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left;}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function N2(e){let t=U(e),r=Y(e),o=e.offsetParent;if(o&&o===t.body&&r.getComputedStyle(o).position==="static"&&!az(o)&&(o=t.documentElement),o==null)for(o=e.parentElement;o&&!az(o);)o=o.parentElement;return o||t.documentElement}function az(e){let r=Y(e).getComputedStyle(e);return r.transform!=="none"||/transform|perspective/.test(r.willChange)||r.filter!=="none"||r.contain==="paint"||"backdropFilter"in r&&r.backdropFilter!=="none"||"WebkitBackdropFilter"in r&&r.WebkitBackdropFilter!=="none"}function Gr(e){let{ref:t,box:r,onResize:o}=e,n=De(o);useEffect(()=>{let i=t?.current;if(!i)return;let a=Y(i);if(typeof a.ResizeObserver>"u")return a.addEventListener("resize",n,false),()=>{a.removeEventListener("resize",n,false);};{let l=new a.ResizeObserver(s=>{s.length&&n();});return l.observe(i,{box:r}),()=>{i&&l.unobserve(i);}}},[t,r]);}function Qv(e){return typeof document>"u"?null:Y(e).visualViewport??null}function Sa(e){let{direction:t}=Q(),{arrowSize:r,targetRef:o,overlayRef:n,arrowRef:i,scrollRef:a=n,placement:l="bottom",containerPadding:s=12,shouldFlip:u=true,boundaryElement:c,boundaryAxis:d="both",horizontalBoundaryBehavior:p="shift",offset:m=0,crossOffset:f=0,shouldUpdatePosition:y=true,shouldCloseOnScroll:b=true,isOpen:g=true,onClose:x,maxHeight:h,arrowBoundaryOffset:v=0,getTargetRect:C}=e,T=c??(typeof document<"u"?o.current?.ownerDocument.body??n.current?.ownerDocument.body??document.body:void 0),[P,k]=useState(null),S=[y,l,n.current,o.current,i?.current,a.current,s,u,T,d,p,m,f,g,t,h,v,r],w=useRef(Qv(n.current)?.scale);useEffect(()=>{g&&(w.current=Qv(n.current)?.scale);},[g,n]);let E=useCallback(()=>{if(y===false||!g||!n.current||!o.current||T===void 0||Qv(n.current)?.scale!==w.current)return;let N=U(n.current),F=de(N),I=Y(N.body),V=null;if(a.current&&Z(a.current,F)){let L=F?.getBoundingClientRect(),B=a.current.getBoundingClientRect();V={type:"top",offset:(L?.top??0)-B.top},V.offset>B.height/2&&(V.type="bottom",V.offset=(L?.bottom??0)-B.bottom);}let H=n.current;!h&&n.current&&(H.style.top="0px",H.style.bottom="",H.style.maxHeight=(I.visualViewport?.height??I.innerHeight)+"px");let K=sz({placement:B2(l,t),overlayNode:n.current,targetNode:o.current,scrollNode:a.current||n.current,padding:s,shouldFlip:u,boundaryElement:T,boundaryAxis:d,horizontalBoundaryBehavior:p,offset:m,crossOffset:f,maxHeight:h,arrowSize:r??(i?.current?tf(i.current,true).width:0),arrowBoundaryOffset:v,targetRect:C?.(o.current)});if(K.position){if(H.style.top="",H.style.bottom="",H.style.left="",H.style.right="",Object.keys(K.position).forEach(L=>H.style[L]=K.position[L]+"px"),H.style.maxHeight=K.maxHeight!=null?K.maxHeight+"px":"",V&&F&&a.current){let L=F.getBoundingClientRect(),B=a.current.getBoundingClientRect(),G=L[V.type]-B[V.type];a.current.scrollTop+=G-V.offset;}k(K);}},S);re(E,S);let z=T?Y(T):o.current?Y(o.current):n.current?Y(n.current):void 0;V2(E,z);let A=useRef(null),D=useCallback(()=>{A.current!==null&&cancelAnimationFrame(A.current),A.current=requestAnimationFrame(()=>{A.current=null,E();});},[E]);useEffect(()=>()=>{A.current!==null&&cancelAnimationFrame(A.current);},[]),Gr({ref:n,onResize:D}),Gr({ref:o,onResize:D});let O=useRef(false);re(()=>{let N,F=()=>{O.current=true,clearTimeout(N),N=setTimeout(()=>{O.current=false;},500),E();},V=Y(n.current).visualViewport,H=()=>{O.current&&F();};return V?.addEventListener("resize",F),V?.addEventListener("scroll",H),()=>{V?.removeEventListener("resize",F),V?.removeEventListener("scroll",H);}},[E]);let R=useCallback(()=>{O.current||x?.();},[x,O]);return qE({triggerRef:o,isOpen:g,onClose:b?x&&R:null}),{overlayProps:{style:{position:P?"absolute":"fixed",top:P?void 0:0,left:P?void 0:0,zIndex:1e5,...P?.position,maxHeight:P==null?"100vh":P.maxHeight!=null?`${P.maxHeight}px`:""}},placement:P?.placement??null,triggerAnchorPoint:P?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:P?.arrowOffsetLeft,top:P?.arrowOffsetTop}},updatePosition:E}}function V2(e,t=window){re(()=>(t?.addEventListener("resize",e,false),()=>{t?.removeEventListener("resize",e,false);}),[e,t]);}function B2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function wo(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:n}=e,i=useRef({isPointerDown:false,ignoreEmulatedMouseEvents:false}),a=De(s=>{r&&Sc(s,t)&&(n&&n(s),i.current.isPointerDown=true);}),l=De(s=>{r&&r(s);});useEffect(()=>{let s=i.current;if(o)return;let u=t.current,c=U(u);if(typeof PointerEvent<"u"){let d=m=>{m.pointerType==="pen"&&s.isPointerDown&&Sc(m,t)&&(l(m),s.isPointerDown=false);},p=m=>{s.isPointerDown&&Sc(m,t)&&(l(m),s.isPointerDown=false);};return c.addEventListener("pointerdown",a,true),c.addEventListener("pointerup",d,true),c.addEventListener("click",p,true),()=>{c.removeEventListener("pointerdown",a,true),c.removeEventListener("pointerup",d,true),c.removeEventListener("click",p,true);}}else if(process.env.NODE_ENV==="test"){let d=m=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=false:s.isPointerDown&&Sc(m,t)&&l(m),s.isPointerDown=false;},p=m=>{s.ignoreEmulatedMouseEvents=true,s.isPointerDown&&Sc(m,t)&&l(m),s.isPointerDown=false;};return c.addEventListener("mousedown",a,true),c.addEventListener("mouseup",d,true),c.addEventListener("touchstart",a,true),c.addEventListener("touchend",p,true),()=>{c.removeEventListener("mousedown",a,true),c.removeEventListener("mouseup",d,true),c.removeEventListener("touchstart",a,true),c.removeEventListener("touchend",p,true);}}},[t,o]);}function Sc(e,t){if(e.button>0)return false;let r=$(e);if(r){let o=r.ownerDocument;if(!o||!Z(o.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return false}return t.current?!e.composedPath().includes(t.current):false}var Qo=[];function rf(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:n,isDismissable:i=false,isKeyboardDismissDisabled:a=false,shouldCloseOnInteractOutside:l}=e,s=useRef();useEffect(()=>{if(n&&!Qo.includes(t))return Qo.push(t),()=>{let f=Qo.indexOf(t);f>=0&&Qo.splice(f,1);}},[n,t]);let u=()=>{Qo[Qo.length-1]===t&&r&&r();},c=f=>{let y=Qo[Qo.length-1];s.current=y,(!l||l($(f)))&&y===t&&f.stopPropagation();},d=f=>{(!l||l($(f)))&&(Qo[Qo.length-1]===t&&f.stopPropagation(),s.current===t&&u()),s.current=void 0;},p=f=>{f.key==="Escape"&&!a&&!f.nativeEvent.isComposing&&(f.stopPropagation(),f.preventDefault(),u());};wo({ref:t,onInteractOutside:i&&n?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:m}=dt({isDisabled:!o,onBlurWithin:f=>{!f.relatedTarget||yE(f.relatedTarget)||(!l||l(f.relatedTarget))&&r?.();}});return {overlayProps:{onKeyDown:p,...m},underlayProps:{}}}var of=new WeakMap;function af(e={},t){let{isDisabled:r,root:o}=e;re(()=>{if(r)return;let n=o?.ownerDocument??U(t?.current),i=of.get(n);return i||(i={count:0},of.set(n,i)),i.count++,i.count===1&&(jt()?i.restore=W2(n):i.restore=U2(o??n.documentElement)),()=>{let a=of.get(n);a&&(a.count--,a.count===0&&(a.restore?.(),of.delete(n)));}},[r,o]);}function U2(e){let r=(e.ownerDocument.defaultView??window).innerWidth-e.clientWidth,o=e===e.ownerDocument.documentElement;return Ye(o&&r>0&&("scrollbarGutter"in e.style?nf(e,"scrollbarGutter","stable"):nf(e,"paddingRight",`${r}px`)),nf(e,"overflow","hidden"))}function W2(e){let t=e.defaultView??window;t.visualViewport;let o=nf(e.documentElement,"overflow","hidden"),n,i=false,a=m=>{let f=$(m);n=Wt(f)?f:Qe(f,true),i=false;let y=f.ownerDocument.defaultView.getSelection();y&&!y.isCollapsed&&y.containsNode(f,true)&&(i=true);let b=Y(f);m.composedPath().some(g=>g instanceof b.HTMLInputElement&&g.type==="range")&&(i=true),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&de(U(f))===f&&(i=true);},l=e.createElement("style"),s=Yp(e);s&&(l.nonce=s),l.textContent=`
|
|
17
|
-
@layer {
|
|
18
|
-
* {
|
|
19
|
-
overscroll-behavior: contain;
|
|
20
|
-
}
|
|
21
|
-
}`.trim(),e.head.prepend(l);let u=m=>{if(!(m.touches.length===2||i)){if(!n||n===e.documentElement||n===e.body){m.preventDefault();return}n.scrollHeight===n.clientHeight&&n.scrollWidth===n.clientWidth&&m.preventDefault();}},c=m=>{let f=$(m),y=m.relatedTarget;y&&Fp(y)?(y.focus({preventScroll:true}),cz(y,Fp(f),e)):y||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:true});},d=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(m){let f=de(e),y=f!=null&&Fp(f);d.call(this,{...m,preventScroll:true}),(!m||!m.preventScroll)&&cz(this,y,e);};let p=Ye(ex(e,"touchstart",a,{passive:false,capture:true}),ex(e,"touchmove",u,{passive:false,capture:true}),ex(e,"blur",c,true));return ()=>{o(),p(),l.remove(),t.HTMLElement.prototype.focus=d;}}function nf(e,t,r){let o=e.style[t];return e.style[t]=r,()=>{e.style[t]=o;}}function ex(e,t,r,o){return e.addEventListener(t,r,o),()=>{e.removeEventListener(t,r,o);}}function cz(e,t,r){let o=r.defaultView?.visualViewport;t||!o?dz(e,r):o.addEventListener("resize",()=>dz(e,r),{once:true});}function dz(e,t){let r=t.scrollingElement||t.documentElement,o=e;for(;o&&o!==r;){let n=Qe(o);if(n!==t.documentElement&&n!==t.body&&n!==o){let i=n.getBoundingClientRect(),a=o.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+o.clientHeight){let l=i.bottom,s=t.defaultView?.visualViewport;s&&(l=Math.min(l,s.offsetTop+s.height));let u=a.top-i.top-((l-i.top)/2-a.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+u)),behavior:"smooth"});}}o=n.parentElement;}}function tx(e,t){let{triggerRef:r,popoverRef:o,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l,shouldCloseOnScroll:s=true,...u}=e,c=u.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:p}=rf({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:true,isDismissable:!i||c,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},n??o),{overlayProps:m,arrowProps:f,placement:y,triggerAnchorPoint:b,updatePosition:g}=Sa({...u,targetRef:r,overlayRef:o,isOpen:t.isOpen,shouldCloseOnScroll:s,onClose:i&&!c&&s?t.close:null}),x=o.current?.ownerDocument.documentElement??r.current?.ownerDocument.documentElement;return af({isDisabled:i||!t.isOpen,root:x},o),re(()=>{if(t.isOpen&&o.current)return i?GE(n?.current??o.current):gi([n?.current??o.current],{shouldUseInert:false,root:U(o.current)?.body})},[i,t.isOpen,o,n]),{popoverProps:M(d,m),arrowProps:f,underlayProps:p,placement:y,triggerAnchorPoint:b,updatePosition:g}}var pz={"ar-AE":{dismiss:"\u062A\u062C\u0627\u0647\u0644"},"bg-BG":{dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xDFen"},"el-GR":{dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xF5peta"},"fi-FI":{dismiss:"Hylk\xE4\xE4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xEDt\xE1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"\u9589\u3058\u308B"},"ko-KR":{dismiss:"\uBB34\uC2DC"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Ner\u0101d\u012Bt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"},"sk-SK":{dismiss:"Zru\u0161i\u0165"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-CN":{dismiss:"\u53D6\u6D88"},"zh-TW":{dismiss:"\u95DC\u9589"}};function lf(e){let{onDismiss:t,...r}=e,o=Te(pz,"@react-aria/overlays"),n=tt(r,o.format("dismiss"));return jsx(Ne,{children:jsx("button",{...n,tabIndex:-1,onClick:()=>{t&&t();},style:{width:1,height:1}})})}var jl=createContext(null);createContext(null);var sf=new WeakMap;function rx(e,t,r){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...a}=e;!e["aria-label"]&&!e["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=oe(e,{labelable:true}),{listProps:s}=yi({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return sf.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:M(l,{onKeyDown:n,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{(u.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(u);}})}}function ox(e,t,r){let{id:o,key:n,closeOnSelect:i,shouldCloseOnSelect:a,isVirtualized:l,"aria-haspopup":s,onPressStart:u,onPressUp:c,onPress:d,onPressChange:p,onPressEnd:m,onClick:f,onHoverStart:y,onHoverChange:b,onHoverEnd:g,onKeyDown:x,onKeyUp:h,onFocus:v,onFocusChange:C,onBlur:T,selectionManager:P=t.selectionManager}=e,k=!!s,S=k&&e["aria-expanded"]==="true",w=e.isDisabled??P.isDisabled(n),E=e.isSelected??P.isSelected(n),z=sf.get(t),A=t.collection.getItem(n),D=e.onClose||z.onClose,O=Qr(),R=()=>{if(!k&&(A?.props?.onAction?A.props.onAction():e.onAction&&e.onAction(n),z.onAction)){let be=z.onAction;be(n,A?.value);}},N="menuitem";k||(P.selectionMode==="single"?N="menuitemradio":P.selectionMode==="multiple"&&(N="menuitemcheckbox"));let F=Pt(),I=Pt(),V=Pt(),H={id:o,"aria-disabled":w||void 0,role:N,"aria-label":e["aria-label"],"aria-labelledby":F,"aria-describedby":[e["aria-describedby"],I,V].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};if(P.selectionMode!=="none"&&!k&&(H["aria-checked"]=E),l){let be=Number(A?.index);H["aria-posinset"]=Number.isNaN(be)?void 0:be+1,H["aria-setsize"]=ma(t.collection);}let K=useRef(false),L=be=>{p?.(be),K.current=be;},B=useRef(null),G=be=>{be.pointerType!=="keyboard"&&(B.current={pointerType:be.pointerType}),be.pointerType==="mouse"&&(K.current||be.target.click()),c?.(be);},q=be=>{f?.(be),R(),_p(be,O,A.props.href,A?.props.routerOptions);let xe=B.current?.pointerType==="keyboard"?B.current?.key==="Enter"||P.selectionMode==="none"||P.isLink(n):P.selectionMode!=="multiple"||P.isLink(n);xe=a??i??xe,D&&!k&&xe&&D(),B.current=null;},{itemProps:W,isFocused:X}=Rr({id:o,selectionManager:P,key:n,ref:r,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:z.shouldUseVirtualFocus}),{pressProps:ce,isPressed:te}=Oe({onPressStart:u,onPress:d,onPressUp:G,onPressChange:L,onPressEnd:m,isDisabled:w}),{hoverProps:ue}=ae({isDisabled:w,onHoverStart(be){!Nt()&&!(S&&s)&&(P.setFocused(true),P.setFocusedKey(n)),y?.(be);},onHoverChange:b,onHoverEnd:g}),{keyboardProps:Ee}=Ae({onKeyDown:be=>{if(be.repeat){be.continuePropagation();return}switch(be.key){case " ":B.current={pointerType:"keyboard",key:" "},$(be).click(),ur("keyboard");break;case "Enter":B.current={pointerType:"keyboard",key:"Enter"},$(be).tagName!=="A"&&$(be).click(),ur("keyboard");break;default:k||be.continuePropagation(),x?.(be);break}},onKeyUp:h}),{focusableProps:Ce}=it({onBlur:T,onFocus:v,onFocusChange:C},r),He=oe(A?.props);delete He.id;let Xe=ti(A?.props);return {menuItemProps:{...H,...M(He,Xe,k?{onFocus:W.onFocus,"data-collection":W["data-collection"],"data-key":W["data-key"]}:W,ce,ue,Ee,Ce,z.shouldUseVirtualFocus||k?{onMouseDown:be=>be.preventDefault()}:void 0,w?void 0:{onClick:q}),tabIndex:W.tabIndex!=null&&S&&!z.shouldUseVirtualFocus?-1:W.tabIndex},labelProps:{id:F},descriptionProps:{id:I},keyboardShortcutProps:{id:V},isFocused:X,isFocusVisible:X&&P.isFocused&&Nt()&&!S,isSelected:E,isPressed:te,isDisabled:w}}function nx(e){let{heading:t,"aria-label":r}=e,o=Pt([!!t]);return {itemProps:{role:"presentation"},headingProps:t?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?o:void 0}}}var uf=2,Y2=50,Z2=1e3,bz=Math.PI/12;function gz(e){let{menuRef:t,submenuRef:r,isOpen:o,isDisabled:n}=e,i=useRef(void 0),a=useRef(void 0),l=useRef(0),s=useRef(void 0),u=useRef(void 0),c=useRef(void 0),d=useRef(2),[p,m]=useState(false);Gr({ref:o?r:void 0,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0);}});let y=()=>{m(false),d.current=uf,i.current=void 0;},b=er(),g=De(x=>{p&&x.preventDefault();});useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents="";},[t,p]),re(()=>{let x=r.current,h=t.current;if(n||!x||!o||b!=="pointer"||!h){y();return}a.current=x.getBoundingClientRect();let v=T=>{if(T.pointerType==="touch"||T.pointerType==="pen")return;let P=Date.now();if(P-l.current<Y2)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:k,clientY:S}=T;if(!i.current){i.current={x:k,y:S};return}if(!a.current)return;if(c.current||(c.current=k>a.current.right?"left":"right"),k<h.getBoundingClientRect().left||k>h.getBoundingClientRect().right||S<h.getBoundingClientRect().top||S>h.getBoundingClientRect().bottom){y();return}let w=i.current.x,E=i.current.y,z=c.current==="right"?a.current.left-w:w-a.current.right,A=Math.atan2(E-a.current.top,z)+bz,D=Math.atan2(E-a.current.bottom,z)-bz,O=Math.atan2(E-S,c.current==="left"?-(k-w):k-w),R=O<A&&O>D;d.current=R?Math.min(d.current+1,uf):Math.max(d.current-1,0),d.current>=uf?m(true):m(false),l.current=P,i.current={x:k,y:S},R&&(s.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let N=U(h).elementFromPoint(k,S);N&&Z(h,N)&&N.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},Z2));},C=Y(h);return C.addEventListener("pointermove",v),process.env.NODE_ENV!=="test"&&C.addEventListener("pointerdown",g,true),()=>{C.removeEventListener("pointermove",v),process.env.NODE_ENV!=="test"&&C.removeEventListener("pointerdown",g,true),clearTimeout(s.current),clearTimeout(u.current),d.current=uf;}},[n,o,t,b,m,r]);}function ax(e,t,r){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=ee(),c=ee(),{direction:d}=Q(),p=useRef(void 0),m=useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0);},[p]),f=useCallback(P=>{m(),t.open(P);},[t,m]),y=useCallback(()=>{m(),t.close();},[t,m]);re(()=>()=>{m();},[m]);let b=P=>{if(Co(P.currentTarget))switch(P.key){case "ArrowLeft":d==="ltr"&&Z(P.currentTarget,$(P))&&(P.preventDefault(),P.stopPropagation(),y(),!s&&r.current&&$e(r.current));break;case "ArrowRight":d==="rtl"&&Z(P.currentTarget,$(P))&&(P.preventDefault(),P.stopPropagation(),y(),!s&&r.current&&$e(r.current));break;case "Escape":Z(n.current,$(P))&&(P.stopPropagation(),y(),!s&&r.current&&$e(r.current));break}},g={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:b}},x=P=>{switch(P.key){case "ArrowRight":a||(d==="ltr"?(P.preventDefault(),t.isOpen||f("first"),i==="menu"&&n?.current&&de()===r?.current&&$e(n.current)):t.isOpen?y():P.continuePropagation());break;case "ArrowLeft":a||(d==="rtl"?(P.preventDefault(),t.isOpen||f("first"),i==="menu"&&n?.current&&de()===r?.current&&$e(n.current)):t.isOpen?y():P.continuePropagation());break;default:P.continuePropagation();break}},h=P=>{!a&&(P.pointerType==="virtual"||P.pointerType==="keyboard")&&f("first");},v=P=>{!a&&(P.pointerType==="touch"||P.pointerType==="mouse")&&f();},C=P=>{a||(P&&!t.isOpen?p.current||(p.current=setTimeout(()=>{f();},l)):P||m());};ct(o,"focusin",P=>{t.isOpen&&Z(o.current,$(P))&&$(P)!==r.current&&y();});let T=P=>P!==r.current;return gz({menuRef:o,submenuRef:n,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:h,onPress:v,onHoverChange:C,onKeyDown:x,isOpen:t.isOpen},submenuProps:g,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:T}}}function cf(e){let t=Tr(e),[r,o]=useState(null),[n,i]=useState([]),a=()=>{i([]),t.close();};return {focusStrategy:r,...t,open(u=null){o(u),t.open();},toggle(u=null){o(u),t.toggle();},close(){a();},expandedKeysStack:n,openSubmenu:(u,c)=>{i(d=>c>d.length?d:[...d.slice(0,c),u]);},closeSubmenu:(u,c)=>{i(d=>d[c]===u?d.slice(0,c):d);}}}function sx(e,t){let{triggerKey:r}=e,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:a}=t,[l]=useState(o?.length),s=useMemo(()=>o[l]===r,[o,r,l]),[u,c]=useState(null),d=useCallback(f=>{c(f??null),n(r,l);},[n,l,r]),p=useCallback(()=>{c(null),i(r,l);},[i,l,r]),m=useCallback(f=>{c(f??null),s?p():d(f);},[p,d,s]);return useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:p,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:m}),[s,d,p,a,u,m,l])}var ux=createContext({});forwardRef(function(t,r){return [t,r]=Ie(t,r,ux),jsx(Pe.kbd,{dir:"ltr",...t,ref:r})});var df=class{keyMap=new Map;iterable;firstKey=null;lastKey=null;constructor(t,{expandedKeys:r}={}){this.iterable=t,r=r||new Set;let o=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||r.has(a.key)))for(let l of a.childNodes)o(l);};for(let a of t)o(a);let n=null,i=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=i++),n=l,n.nextKey=void 0;this.lastKey=n?.key??null;}*[Symbol.iterator](){yield*this.iterable;}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}};function Dc(e){let{onExpandedChange:t}=e,[r,o]=ye(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),n=Eo(e),i=useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=$l(e,useCallback(s=>new df(s,{expandedKeys:r}),[r]),null);return useEffect(()=>{n.focusedKey!=null&&!a.getItem(n.focusedKey)&&n.setFocusedKey(null);},[a,n.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:s=>{o(iG(r,s));},setExpandedKeys:o,selectionManager:new zo(a,n)}}function iG(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var mf=createContext(null),Ec=createContext(null),kc=createContext(null),pf=createContext(null);function mx(e){let t=cf(e),r=useRef(null),{menuTriggerProps:o,menuProps:n}=va({...e,type:"menu"},t,r),i=useRef(null);return wh()?null:jsx(mt,{values:[[mf,{...n,ref:i}],[ka,t],[kc,t],[jl,{trigger:"MenuTrigger",triggerRef:r,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"]}]],children:jsx(_r,{...o,ref:r,isPressed:t.isOpen,children:e.children})})}var Tz=createContext(null),dx=class extends Gt{static type="submenutrigger";filter(t,r,o){let n=t.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return r.addDescendants(i,t),i}return null}},fx=Vr(dx,(e,t,r)=>{let{CollectionBranch:o}=useContext(Re),n=useContext(Ec),i=useContext(kc),a=sx({triggerKey:r.key},i),l=useRef(null),s=pe(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=useContext(Tz),{submenuTriggerProps:d,submenuProps:p,popoverProps:m}=ax({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return jsxs(mt,{values:[[Gl,{...d,onAction:void 0,ref:s}],[mf,{ref:l,...p}],[ka,a],[jl,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":p["aria-labelledby"],...m}]],children:[jsx(o,{collection:n.collection,parent:r}),e.children[1]]})},e=>e.children[0]),ff=forwardRef(function(t,r){return [t,r]=Ie(t,r,mf),jsx(no,{content:jsx(_t,{...t}),children:o=>jsx(sG,{props:t,collection:o,menuRef:r})})});function sG({props:e,collection:t,menuRef:r}){[e,r]=Ie(e,r,jo);let{filter:o,...n}=e,i=useMemo(()=>o?t.filter(o):t,[t,o]),a=Dc({...e,collection:i,children:void 0}),l=useContext(kc),{isVirtualized:s,CollectionRoot:u}=useContext(Re),{menuProps:c}=rx({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,r),d=Ve({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=jsx("div",{role:"menuitem",style:{display:"contents"},children:e.renderEmptyState()}));let m=oe(e,{global:true});return jsx(Rt,{children:jsxs(Pe.div,{...M(m,d,c),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll,children:[jsx(mt,{values:[[Ec,a],[qm,{elementType:"div"}],[tm,{name:"MenuSection",render:Cz}],[Tz,{parentMenuRef:r,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[Gl,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[jo,null],[ri,null],[pf,a.selectionManager],[kc,l??cf({})]],children:jsx(bi,{children:jsx(u,{collection:a.collection,persistedKeys:GD(a.selectionManager.focusedKey),scrollRef:r})})}),p]})})}var px=class extends zo{parent;constructor(t,r){super(t.collection,r),this.parent=t;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,r){return this.parent.setFocusedKey(t,r)}setFocused(t){this.parent.setFocused(t);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function Cz(e,t,r,o="react-aria-MenuSection"){let n=useContext(Ec),{CollectionBranch:i}=useContext(Re),[a,l]=Au(),{headingProps:s,groupProps:u}=nx({heading:l,"aria-label":r.props["aria-label"]??void 0}),c=Ve({...e,children:void 0,defaultClassName:o,className:r.props?.className,style:r.props?.style,values:void 0}),d=useContext(pf),p=Eo(e),m=e.selectionMode!=null?new px(d,p):d,f=oo(Gl)?.shouldCloseOnSelect,y=oe(e,{global:true});return delete y.id,jsx(Pe.section,{...M(y,c,u),ref:t,children:jsx(mt,{values:[[Hl,{...s,ref:a}],[pf,m],[Gl,{shouldCloseOnSelect:e.shouldCloseOnSelect??f}]],children:jsx(i,{collection:n.collection,parent:r})})})}var yx=Vr(ni,Cz),Gl=createContext(null),bx=dr(ta,function(t,r,o){[t,r]=Ie(t,r,Gl);let n=oo(Gl)?.id,i=useContext(Ec),a=pe(r),l=useContext(pf),{isVirtualized:s}=useContext(Re),{menuItemProps:u,labelProps:c,descriptionProps:d,keyboardShortcutProps:p,...m}=ox({...t,id:n,key:o.key,selectionManager:l,isVirtualized:s},i,a),{hoverProps:f,isHovered:y}=ae({isDisabled:m.isDisabled}),b=Ve({...t,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...m,isHovered:y,isFocusVisible:m.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),g=t.href?Pe.a:Pe.div,x=oe(t,{global:true});return delete x.id,delete x.onClick,jsx(g,{...M(x,b,u,f),ref:a,"data-disabled":m.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":m.isFocusVisible||void 0,"data-pressed":m.isPressed||void 0,"data-selected":m.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0,children:jsx(mt,{values:[[Do,{slots:{[ro]:c,label:c,description:d}}],[ux,p],[An,{isSelected:m.isSelected}]],children:b.children})})});createContext(null);var ka=createContext(null);function hi(e){let t=or({usage:"search",...e}),r=useCallback((i,a)=>a.length===0?true:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),o=useCallback((i,a)=>a.length===0?true:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),n=useCallback((i,a)=>{if(a.length===0)return true;i=i.normalize("NFC"),a=a.normalize("NFC");let l=0,s=a.length;for(;l+s<=i.length;l++){let u=i.slice(l,l+s);if(t.compare(a,u)===0)return true}return false},[t]);return useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var yf={"ar-AE":{calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",selectedDateDescription:e=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${e.date}`,selectedRangeDescription:e=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.startDate} \u0625\u0644\u0649 ${e.endDate}`,selectedTimeDescription:e=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"},"bg-BG":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.startDate} \u0434\u043E ${e.endDate}`,selectedTimeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${e.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"},"cs-CZ":{calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:e=>`Vybran\xE9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xE9 obdob\xED: ${e.startDate} a\u017E ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xFD \u010Das: ${e.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xE4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xE4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xE4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF",selectedDateDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${e.date}`,selectedRangeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${e.startDate} \u03AD\u03C9\u03C2 ${e.endDate}`,selectedTimeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${e.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"},"et-EE":{calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xE4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xE4li: ${e.startDate} \u2013 ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xE9lectionn\xE9e\xA0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xE9lectionn\xE9e\xA0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xA0: ${e.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"},"he-IL":{calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:e=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${e.date}`,selectedRangeDescription:e=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${e.startDate} \u05E2\u05D3 ${e.endDate}`,selectedTimeDescription:e=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${e.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:e=>`Kijel\xF6lt d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xF6lt tartom\xE1ny: ${e.startDate}\u2013${e.endDate}`,selectedTimeDescription:e=>`Kijel\xF6lt id\u0151: ${e.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${e.date}`,selectedRangeDescription:e=>`\u9078\u629E\u7BC4\u56F2 : ${e.startDate} \u304B\u3089 ${e.endDate}`,selectedTimeDescription:e=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${e.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"},"ko-KR":{calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:e=>`\uC120\uD0DD \uC77C\uC790: ${e.date}`,selectedRangeDescription:e=>`\uC120\uD0DD \uBC94\uC704: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\uC120\uD0DD \uC2DC\uAC04: ${e.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"},"lv-LV":{calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:e=>`Atlas\u012Btais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u012Btais diapazons: no ${e.startDate} l\u012Bdz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u012Btais laiks: ${e.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xE5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"},"pt-BR":{calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:e=>`Dat\u0103 selectat\u0103: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xE2n\u0103 la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u0103: ${e.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"},"ru-RU":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: \u0441 ${e.startDate} \u043F\u043E ${e.endDate}`,selectedTimeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${e.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"},"sk-SK":{calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xFD d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xFD rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xFD \u010Das: ${e.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u010Dje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u010Das: ${e.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"},"tr-TR":{calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xE7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xE7ilen Aral\u0131k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xE7ilen Zaman: ${e.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"},"uk-UA":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${e.startDate} \u2014 ${e.endDate}`,selectedTimeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${e.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"},"zh-CN":{calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${e.startDate} \u81F3 ${e.endDate}`,selectedTimeDescription:e=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${e.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"},"zh-TW":{calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${e.startDate} \u81F3 ${e.endDate}`,selectedTimeDescription:e=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${e.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"}};function kz(e,t,r){let{direction:o}=Q(),n=useMemo(()=>mi(t),[t]),i=s=>{if(Z(s.currentTarget,$(s))&&(s.altKey&&(s.key==="ArrowDown"||s.key==="ArrowUp")&&"setOpen"in e&&(s.preventDefault(),s.stopPropagation(),e.setOpen(true)),!r))switch(s.key){case "ArrowLeft":if(s.preventDefault(),s.stopPropagation(),o==="rtl"){if(t.current){let u=$(s),c=Dz(t.current,u.getBoundingClientRect().left,-1);c&&c.focus();}}else n.focusPrevious();break;case "ArrowRight":if(s.preventDefault(),s.stopPropagation(),o==="rtl"){if(t.current){let u=$(s),c=Dz(t.current,u.getBoundingClientRect().left,1);c&&c.focus();}}else n.focusNext();break}},a=s=>{if(!t.current)return;let u=rt(t.current,{tabbable:true});if(s&&(u.currentNode=s,s=u.previousNode()),!s){let c;do c=u.lastChild(),c&&(s=c);while(c)}for(;s?.hasAttribute("data-placeholder");){let c=u.previousNode();if(c&&c.hasAttribute("data-placeholder"))s=c;else break}s&&s.focus();},{pressProps:l}=Oe({preventFocusOnPress:true,allowTextSelectionOnPress:true});return M(l,{onKeyDown:i,onPointerDown(s){s.pointerType==="mouse"&&a($(s));},onPointerUp(s){(s.pointerType==="touch"||s.pointerType==="pen")&&a($(s));},onMouseDown(s){typeof PointerEvent>"u"&&a($(s));},onTouchEnd(s){typeof PointerEvent>"u"&&a($(s));}})}function Dz(e,t,r){let o=rt(e,{tabbable:true}),n=o.nextNode(),i=null,a=1/0;for(;n;){let s=n.getBoundingClientRect().left-t,u=Math.abs(s);Math.sign(s)===r&&u<a&&(i=n,a=u),n=o.nextNode();}return i}var vx=new WeakMap,hx="__reactAriaDateFieldRole",fG="__reactAriaDateFieldFocusManager";function bf(e,t,r){let{isInvalid:o,validationErrors:n,validationDetails:i}=t.displayValidation,{labelProps:a,fieldProps:l,descriptionProps:s,errorMessageProps:u}=Br({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||n,ref:r}),c=useRef(null),{focusWithinProps:d}=dt({...e,onFocusWithin(S){c.current=t.value,e.onFocus?.(S);},onBlurWithin:S=>{t.confirmPlaceholder(),t.value!==c.current&&t.commitValidation(),e.onBlur?.(S);},onFocusWithinChange:e.onFocusChange}),p=Te(yf,"@react-aria/datepicker"),m=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",f=t.maxGranularity==="hour"?"time":"date",y=t.value?p.format(m,{[f]:t.formatValue({month:"long"})}):"",b=Dt(y,r),g=e[hx]==="presentation"?l["aria-describedby"]:[b["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[fG],h=useMemo(()=>x||mi(r),[x,r]),v=kz(t,r,e[hx]==="presentation");vx.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[a.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:g,focusManager:h});let C=useRef(e.autoFocus),T;e[hx]==="presentation"?T={role:"presentation"}:T=M(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":g}),useEffect(()=>{C.current&&h.focusFirst(),C.current=false;},[h]),Mt(e.inputRef,t.defaultValue,t.setValue),Xo({...e,focus(){h.focusFirst();}},t,e.inputRef);let P={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(P.type="text",P.hidden=true,P.required=e.isRequired,P.onChange=()=>{});let k=oe(e);return {labelProps:{...a,onClick:()=>{h.focusFirst();}},fieldProps:M(k,T,v,d,{onKeyDown(S){e.onKeyDown&&e.onKeyDown(S);},onKeyUp(S){e.onKeyUp&&e.onKeyUp(S);},style:{unicodeBidi:"isolate"}}),inputProps:P,descriptionProps:s,errorMessageProps:u,isInvalid:o,validationErrors:n,validationDetails:i}}function xx(e,t,r){let o=bf(e,t,r);return o.inputProps.value=t.timeValue?.toString()||"",o}function zz(){let{locale:e}=Q(),t=Bp(yf,"@react-aria/datepicker");return useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Tx(e,t)}},[e,t])}var Tx=class{locale;dictionary;constructor(t,r){this.locale=t,this.dictionary=r;}of(t){return this.dictionary.getStringForLocale(t,this.locale)}};function Px(e,t,r){let o=useRef(""),{locale:n,direction:i}=Q(),a=zz(),{ariaLabel:l,ariaLabelledBy:s,ariaDescribedBy:u,focusManager:c}=vx.get(t),[d,p]=useState(null),m=e.isPlaceholder?"":e.text,f=useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),y=Lt({month:"long",timeZone:f.timeZone}),b=Lt({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let K=y.format(t.dateValue);m=K!==m?`${m} \u2013 ${K}`:K;}else e.type==="hour"&&!e.isPlaceholder&&(m=b.format(t.dateValue));let{spinButtonProps:g}=Ml({value:e.value??void 0,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{o.current="",t.increment(e.type);},onDecrement:()=>{o.current="",t.decrement(e.type);},onIncrementPage:()=>{o.current="",t.incrementPage(e.type);},onDecrementPage:()=>{o.current="",t.decrementPage(e.type);},onIncrementToMax:()=>{o.current="",t.incrementToMax(e.type);},onDecrementToMin:()=>{o.current="",t.decrementToMin(e.type);}}),x=useMemo(()=>new ai(n,{maximumFractionDigits:0}),[n]),h=()=>{if(e.text===e.placeholder&&c.focusPrevious(),x.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let K=e.text.slice(0,-1),L=x.parse(K);K=L===0?"":K,K.length===0||L===0?t.clearSegment(e.type):t.setSegment(e.type,L),o.current=K;}else (e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type);},v=K=>{if(K.key==="a"&&(Ct()?K.metaKey:K.ctrlKey)&&K.preventDefault(),!(K.ctrlKey||K.metaKey||K.shiftKey||K.altKey))switch(K.key){case "Backspace":case "Delete":{K.preventDefault(),K.stopPropagation(),h();break}}},{startsWith:C}=hi({sensitivity:"base"}),T=Lt({hour:"numeric",hour12:true}),P=useMemo(()=>{let K=new Date;return K.setHours(0),T.formatToParts(K).find(L=>L.type==="dayPeriod").value},[T]),k=useMemo(()=>{let K=new Date;return K.setHours(12),T.formatToParts(K).find(L=>L.type==="dayPeriod").value},[T]),S=Lt({year:"numeric",era:"narrow",timeZone:"UTC"}),w=useMemo(()=>{if(e.type!=="era")return [];let K=toCalendar(new CalendarDate(1,1,1),t.calendar),L=t.calendar.getEras().map(G=>{let q=K.set({year:1,month:1,day:1,era:G}).toDate("UTC"),X=S.formatToParts(q).find(ce=>ce.type==="era").value;return {era:G,formatted:X}}),B=TG(L.map(G=>G.formatted));if(B)for(let G of L)G.formatted=G.formatted.slice(B);return L},[S,t.calendar,e.type]),E=K=>{if(t.isDisabled||t.isReadOnly)return;let L=o.current+K;switch(e.type){case "dayPeriod":if(C(P,K))t.setSegment("dayPeriod",0);else if(C(k,K))t.setSegment("dayPeriod",1);else break;c.focusNext();break;case "era":{let B=w.find(G=>C(G.formatted,K));B&&(t.setSegment("era",B.era),c.focusNext());break}case "day":case "hour":case "minute":case "second":case "month":case "year":{if(!x.isValidPartialNumber(L))return;let B=x.parse(L),G=B;if(e.maxValue!==void 0&&B>e.maxValue&&(G=x.parse(K)),isNaN(B))return;t.setSegment(e.type,G),e.maxValue!==void 0&&(+(B+"0")>e.maxValue||L.length>=String(e.maxValue).length)?(o.current="",c.focusNext()):o.current=L;break}}};useEffect(()=>{p(U(r.current));},[r]);let z=()=>{o.current="",r.current&&wt(r.current,{containingElement:Qe(r.current)}),d?.defaultView?.getSelection()?.collapse(r.current);},A=useRef(typeof document<"u"?document:null);A.current=d,ct(A,"selectionchange",()=>{let K=d?.defaultView?.getSelection();K?.anchorNode&&Z(r.current,K?.anchorNode)&&K.collapse(r.current);});let D=useRef("");ct(r,"beforeinput",K=>{if(r.current)switch(K.preventDefault(),K.inputType){case "deleteContentBackward":case "deleteContentForward":x.isValidPartialNumber(e.text)&&!t.isReadOnly&&h();break;case "insertCompositionText":D.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:K.data!=null&&E(K.data);break}}),ct(r,"input",K=>{let{inputType:L,data:B}=K;L==="insertCompositionText"&&(r.current&&(r.current.textContent=D.current),B!=null&&(C(P,B)||C(k,B))&&E(B));}),re(()=>{let K=r.current;return ()=>{de(U(K))===K&&(c.focusPrevious()||c.focusNext());}},[r,c]);let O=jt()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=useMemo(()=>t.segments.find(K=>K.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(u=void 0);let N=ee(),F=!t.isDisabled&&!t.isReadOnly&&e.isEditable,I=e.type==="literal"?"":a.of(e.type),V=tt({"aria-label":`${I}${l?`, ${l}`:""}${s?", ":""}`,"aria-labelledby":s});if(e.type==="literal")return {segmentProps:{"aria-hidden":true}};let H={caretColor:"transparent"};if(i==="rtl"){H.unicodeBidi="embed";let K=f[e.type];(K==="numeric"||K==="2-digit")&&(H.direction="ltr");}return {segmentProps:M(g,V,{id:N,...O,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:F,suppressContentEditableWarning:F,spellCheck:F?"false":void 0,autoCorrect:F?"off":void 0,[parseInt(qn.version,10)>=17?"enterKeyHint":"enterkeyhint"]:F?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!F?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:v,onFocus:z,style:H,onPointerDown(K){K.stopPropagation();},onMouseDown(K){K.stopPropagation();}})}}function TG(e){e.sort();let t=e[0],r=e[e.length-1];for(let o=0;o<t.length;o++)if(t[o]!==r[o])return o;return 0}var wz={"ar-AE":{rangeOverflow:e=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${e.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:e=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${e.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."},"bg-BG":{rangeOverflow:e=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${e.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:e=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${e.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xED b\xFDt ${e.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:e=>`Hodnota mus\xED b\xFDt ${e.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."},"da-DK":{rangeOverflow:e=>`V\xE6rdien skal v\xE6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:e=>`V\xE6rdien skal v\xE6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."},"el-GR":{rangeOverflow:e=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${e.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:e=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${e.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xE4\xE4rtus peab olema ${e.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:e=>`V\xE4\xE4rtus peab olema ${e.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xEAtre ${e.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xEAtre ${e.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."},"he-IL":{rangeOverflow:e=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${e.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:e=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${e.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xE9rt\xE9knek ${e.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:e=>`Az \xE9rt\xE9knek ${e.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u5024\u306F ${e.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:e=>`\u5024\u306F ${e.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"},"ko-KR":{rangeOverflow:e=>`\uAC12\uC740 ${e.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:e=>`\uAC12\uC740 ${e.minValue} \uC774\uD6C4\uC5EC\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},"lt-LT":{rangeOverflow:e=>`Reik\u0161m\u0117 turi b\u016Bti ${e.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:e=>`Reik\u0161m\u0117 turi b\u016Bti ${e.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${e.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:e=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${e.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xE5 v\xE6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xE5 v\xE6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${e.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:e=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${e.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u0103 fie ${e.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:e=>`Valoarea trebuie s\u0103 fie ${e.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."},"ru-RU":{rangeOverflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${e.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${e.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xED by\u0165 ${e.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:e=>`Hodnota mus\xED by\u0165 ${e.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xE4rdet m\xE5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:e=>`V\xE4rdet m\xE5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u011Fer, ${e.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:e=>`De\u011Fer, ${e.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."},"uk-UA":{rangeOverflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${e.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${e.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."},"zh-CN":{rangeOverflow:e=>`\u503C\u5FC5\u987B\u662F ${e.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:e=>`\u503C\u5FC5\u987B\u662F ${e.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"},"zh-TW":{rangeOverflow:e=>`\u503C\u5FC5\u9808\u662F ${e.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:e=>`\u503C\u5FC5\u9808\u662F ${e.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"}};var zG=new cr(wz);function wG(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return e}function Iz(e,t,r,o,n){let i=e!=null&&r!=null&&e.compare(r)>0,a=e!=null&&t!=null&&e.compare(t)<0,l=e!=null&&o?.(e)||false,s=i||a||l,u=[];if(s){let c=wG(),d=cr.getGlobalDictionaryForPackage("@react-stately/datepicker")||zG,p=new kn(c,d),m=new DateFormatter(c,zc({},n)),f=m.resolvedOptions().timeZone;a&&t!=null&&u.push(p.format("rangeUnderflow",{minValue:m.format(t.toDate(f))})),i&&r!=null&&u.push(p.format("rangeOverflow",{maxValue:m.format(r.toDate(f))})),l&&u.push(p.format("unavailableDate"));}return {isInvalid:s,validationErrors:u,validationDetails:{badInput:l,customError:false,patternMismatch:false,rangeOverflow:i,rangeUnderflow:a,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:false,valid:!s}}}var RG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},IG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function zc(e,t){e={...t.shouldForceLeadingZeros?IG:RG,...e};let o=t.granularity||"minute",n=Object.keys(e),i=n.indexOf(t.maxGranularity??"year");i<0&&(i=0);let a=n.indexOf(o);if(a<0&&(a=2),i>a)throw new Error("maxGranularity must be greater than granularity");let l=n.slice(i,a+1).reduce((u,c)=>(u[c]=e[c],u),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(o==="hour"||o==="minute"||o==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&i===0&&(l.era="short"),l}function Sx(e,t){if(e===null)return null;if(e)return toCalendar(e,t)}function _z(e,t,r,o){if(e)return Sx(e,r);let n=toCalendar(now(o??getLocalTimeZone()).set({hour:0,minute:0,second:0,millisecond:0}),r);return t==="year"||t==="month"||t==="day"?toCalendarDate(n):o?n:toCalendarDateTime(n)}function Lz(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,o=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[n,i]=useState([o,r]);e&&(n[0]!==o||n[1]!==r)&&i([o,r]),t||(t=e?o:n[0]);let a=e?r:n[1];return [t,a]}var _G=new cr({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"\xE1\xE1\xE1\xE1",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function Mz(e,t,r){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?_G.getStringForLocale(e,r):"\u2013\u2013"}var Ro=class e{calendar;era;year;month;day;hour;hourCycle;dayPeriod;minute;second;millisecond;offset;constructor(t,r,o){if(this.era=o?.era??null,this.calendar=t,this.year=o?.year??null,this.month=o?.month??null,this.day=o?.day??null,this.hour=o?.hour??null,this.hourCycle=r,this.dayPeriod=null,this.minute=o?.minute??null,this.second=o?.second??null,this.millisecond=o?.millisecond??null,this.offset="offset"in(o??{})?o.offset:null,this.hour!=null){let[n,i]=ql(this.hour,r);this.dayPeriod=n,this.hour=i;}}copy(){let t=new e(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(r=>this[r]!=null)}validate(t,r){return r.every(o=>{if((o==="hour"||o==="dayPeriod")&&"hour"in t){let[n,i]=ql(t.hour,this.hourCycle);return this.dayPeriod===n&&this.hour===i}return this[o]===t[o]})}isCleared(t){return t.every(r=>this[r]===null)}set(t,r,o){let n=this.copy();return n[t]=r,t==="hour"&&n.dayPeriod==null&&"hour"in o&&(n.dayPeriod=ql(o.hour,this.hourCycle)[0]),t==="year"&&n.era==null&&(n.era=o.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(n.offset=null),n}clear(t){let r=this.copy();return r[t]=null,t==="year"&&(r.era=null),r.offset=null,r}cycle(t,r,o,n){let i=this.copy();if(i[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in o){let[a,l]=ql(o.hour,this.hourCycle);i.dayPeriod=a,i.hour=l;}else i[t]=o[t];return t==="year"&&i.era==null&&(i.era=o.era),i}switch(t){case "era":{let a=this.calendar.getEras(),l=a.indexOf(i.era);l=Ea(l,r,0,a.length-1),i.era=a[l];break}case "year":{let a=new CalendarDate(this.calendar,this.era??o.era,this.year??o.year,this.month??1,this.day??1);a=a.cycle(t,r,{round:t==="year"}),i.era=a.era,i.year=a.year;break}case "month":i.month=Ea(i.month??1,r,1,this.calendar.getMaximumMonthsInYear());break;case "day":i.day=Ea(i.day??1,r,1,this.calendar.getMaximumDaysInMonth());break;case "hour":{let a=n.some(l=>["year","month","day"].includes(l));if("timeZone"in o&&(!a||i.year!=null&&i.month!=null&&i.day!=null)){let l=this.toValue(o);l=l.cycle("hour",r,{hourCycle:this.hourCycle==="h12"?12:24,round:false});let[s,u]=ql(l.hour,this.hourCycle);i.hour=u,i.dayPeriod=s,i.offset=l.offset;}else {let l=i.hour??0,s=this.getSegmentLimits("hour");i.hour=Ea(l,r,s.minValue,s.maxValue),i.dayPeriod==null&&"hour"in o&&(i.dayPeriod=ql(o.hour,this.hourCycle)[0]);}break}case "dayPeriod":i.dayPeriod=Ea(i.dayPeriod??0,r,0,1);break;case "minute":i.minute=Ea(i.minute??0,r,0,59,true);break;case "second":i.second=Ea(i.second??0,r,0,59,true);break}return i}toValue(t){if("hour"in t){let r=this.hour;r!=null?r=MG(r,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(r=this.dayPeriod===1?12:0);let o=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:r??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return "offset"in o&&this.offset!=null&&o.offset!==this.offset&&(o=o.add({milliseconds:o.offset-this.offset})),o}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case "era":{let r=this.calendar.getEras();return {value:this.era!=null?r.indexOf(this.era):r.length-1,minValue:0,maxValue:r.length-1}}case "year":return {value:this.year,minValue:1,maxValue:9999};case "month":return {value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case "day":return {value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case "dayPeriod":return {value:this.dayPeriod,minValue:0,maxValue:1};case "hour":{let r=0,o=23;return this.hourCycle==="h12"?(r=1,o=12):this.hourCycle==="h11"&&(r=0,o=11),{value:this.hour,minValue:r,maxValue:o}}case "minute":return {value:this.minute,minValue:0,maxValue:59};case "second":return {value:this.second,minValue:0,maxValue:59}}}};function Ea(e,t,r,o,n=false){if(n){e+=Math.sign(t),e<r&&(e=o);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>o&&(e=r);}else e+=t,e<r?e=o-(r-e-1):e>o&&(e=r+(e-o-1));return e}function ql(e,t){let r=e>=12?1:0;switch(t){case "h11":e>=12&&(e-=12);break;case "h12":e===0?e=12:e>12&&(e-=12);break;case "h23":r=null;break;case "h24":e+=1,r=null;}return [r,e]}function MG(e,t,r){switch(r){case "h11":t===1&&(e+=12);break;case "h12":e===12&&(e=0),t===1&&(e+=12);break;case "h24":e-=1;break}return e}var Ex={year:true,month:true,day:true,hour:true,minute:true,second:true,dayPeriod:true,era:true},Az={year:5,month:2,day:7,hour:2,minute:15,second:15},OG={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function Rc(e){let{locale:t,createCalendar:r,hideTimeZone:o,isDisabled:n=false,isReadOnly:i=false,isRequired:a=false,minValue:l,maxValue:s,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[d,p]=Lz(c,e.granularity),m=p||"UTC";if(c&&!(d in c))throw new Error("Invalid granularity "+d+" for value "+c.toString());let[f,y]=useMemo(()=>{let X=new DateFormatter(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return [r(X.calendar),X.hourCycle]},[t,e.hourCycle,r]),[b,g]=ye(e.value,e.defaultValue??null,e.onChange),[x]=useState(b),h=useMemo(()=>Sx(b,f)??null,[b,f]),[v,C]=useState(()=>new Ro(f,y,h)),T=f.identifier==="gregory"&&v.era==="BC",P=useMemo(()=>({granularity:d,maxGranularity:e.maxGranularity??"year",timeZone:p,hideTimeZone:o,hourCycle:e.hourCycle,showEra:T,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,p,o,T]),k=useMemo(()=>zc({},P),[P]),S=useMemo(()=>new DateFormatter(t,k),[t,k]),w=useMemo(()=>S.resolvedOptions(),[S]),E=useMemo(()=>_z(e.placeholderValue,d,f,p),[e.placeholderValue,d,f,p]),z=useMemo(()=>{let W=y==="h11"||y==="h12",X=["era","year","month","day","hour",...W?["dayPeriod"]:[],"minute","second"],ce=X.indexOf(e.maxGranularity||"era"),te=X.indexOf(d==="hour"&&W?"dayPeriod":d);return X.slice(ce,te+1)},[e.maxGranularity,d,y]),[A,D]=useState(h),[O,R]=useState(f),[N,F]=useState(y);(h!==A||y!==N||!isEqualCalendar(f,O))&&(v=new Ro(f,y,h),D(h),R(f),F(y),C(v));let I=W=>{if(!(e.isDisabled||e.isReadOnly))if(W==null||W instanceof Ro&&W.isCleared(z))C(new Ro(f,y,h)),g(null);else if(!(W instanceof Ro))W=toCalendar(W,c?.calendar||new GregorianCalendar),C(new Ro(f,y,h)),g(W);else {if(W.isComplete(z)){let X=W.toValue(h??E);if(W.validate(X,z)){let ce=toCalendar(X,c?.calendar||new GregorianCalendar);if(!b||ce.compare(b)!==0){C(new Ro(f,y,h)),g(ce);return}}}C(W);}},V=useMemo(()=>v.toValue(h??E).toDate(m),[v,m,h,E]),H=useMemo(()=>NG(V,v,S,w,f,t,d),[V,S,w,v,f,t,d]),K=(W,X)=>{I(v.cycle(W,X,E,z));},L=useMemo(()=>Iz(b,l,s,u,P),[b,l,s,u,P]),B=Kt({...e,value:b,builtinValidation:L}),G=B.displayValidation.isInvalid,q=e.validationState||(G?"invalid":null);return {...B,value:h,defaultValue:e.defaultValue??x,dateValue:V,calendar:f,setValue:I,segments:H,dateFormatter:S,validationState:q,isInvalid:G,granularity:d,maxGranularity:e.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:a,increment(W){K(W,1);},decrement(W){K(W,-1);},incrementPage(W){K(W,Az[W]||1);},decrementPage(W){K(W,-(Az[W]||1));},incrementToMax(W){let X=W==="hour"&&y==="h12"?11:v.getSegmentLimits(W).maxValue;I(v.set(W,X,E));},decrementToMin(W){let X=W==="hour"&&y==="h12"?12:v.getSegmentLimits(W).minValue;I(v.set(W,X,E));},setSegment(W,X){I(v.set(W,X,E));},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&v.isComplete(z)){let W=v.toValue(h??E),X=toCalendar(W,c?.calendar||new GregorianCalendar);(!b||X.compare(b)!==0)&&g(X),C(new Ro(f,y,h));}},clearSegment(W){let X=v;W!=="timeZoneName"&&W!=="literal"&&(X=v.clear(W)),I(X);},formatValue(W){if(!h)return "";let X=zc(W,P);return new DateFormatter(t,X).format(V)},getDateFormatter(W,X){let ce={...P,...X},te=zc({},ce);return new DateFormatter(W,te)}}}function NG(e,t,r,o,n,i,a){let l=["hour","minute","second"],s=r.formatToParts(e),u=new Ut(i,{useGrouping:false}),c=new Ut(i,{useGrouping:false,minimumIntegerDigits:2});for(let p of s)if(p.type==="year"||p.type==="month"||p.type==="day"||p.type==="hour"){let m=t[p.type]??0;o[p.type]==="2-digit"?p.value=c.format(m):p.value=u.format(m);}let d=[];for(let p of s){let m=OG[p.type]||p.type,f=Ex[m];m==="era"&&n.getEras().length===1&&(f=false);let y=Ex[m]&&t[p.type]==null,b=Ex[m]?Mz(m,p.value,i):null,g={type:m,text:y?b:p.value,...t.getSegmentLimits(m),isPlaceholder:y,placeholder:b,isEditable:f};m==="hour"?(d.push({type:"literal",text:"\u2066",isPlaceholder:false,placeholder:"",isEditable:false}),d.push(g),m===a&&d.push({type:"literal",text:"\u2069",isPlaceholder:false,placeholder:"",isEditable:false})):l.includes(m)&&m===a?(d.push(g),d.push({type:"literal",text:"\u2069",isPlaceholder:false,placeholder:"",isEditable:false})):d.push(g);}return d}function zx(e){let{placeholderValue:t=new Time,minValue:r,maxValue:o,defaultValue:n,granularity:i,validate:a}=e,[l,s]=ye(e.value,n??null,e.onChange),u=l||t,c=u&&"day"in u?u:void 0,d=n&&"timeZone"in n?n.timeZone:void 0,p=useMemo(()=>{let v=u&&"timeZone"in u?u.timeZone:void 0;return (v||d)&&t?toZoned(Yl(t),v||d):Yl(t)},[t,u,d]),m=useMemo(()=>Yl(r,c),[r,c]),f=useMemo(()=>Yl(o,c),[o,c]),y=useMemo(()=>l&&"day"in l?toTime(l):l,[l]),b=useMemo(()=>l==null?null:Yl(l),[l]),g=useMemo(()=>n==null?null:Yl(n),[n]);return {...Rc({...e,value:b,defaultValue:g,minValue:m,maxValue:f,onChange:v=>{s(c||d?v:v&&toTime(v));},granularity:i||"minute",maxGranularity:"hour",placeholderValue:p??void 0,createCalendar:()=>new GregorianCalendar,validate:useCallback(()=>a?.(l),[a,l])}),timeValue:y}}function Yl(e,t=today(getLocalTimeZone())){return e?"day"in e?e:toCalendarDateTime(t,e):null}function wx(e,t,r){let{isDisabled:o}=e,n=ee(),i=ee(),a=eo(),l=useRef(null),s=useCallback(()=>{l.current=requestAnimationFrame(()=>{r.current&&r.current.setAttribute("hidden","until-found");}),flushSync(()=>{t.toggle();});},[r,t]);ct(r,"beforematch",s);let u=useRef(null);return re(()=>{if(l.current&&cancelAnimationFrame(l.current),r.current&&!a){let c=r.current;u.current==null||typeof c.getAnimations!="function"?t.isExpanded?(c.removeAttribute("hidden"),c.style.setProperty("--disclosure-panel-width","auto"),c.style.setProperty("--disclosure-panel-height","auto")):(c.setAttribute("hidden","until-found"),c.style.setProperty("--disclosure-panel-width","0px"),c.style.setProperty("--disclosure-panel-height","0px")):t.isExpanded!==u.current&&(t.isExpanded?(c.removeAttribute("hidden"),c.style.setProperty("--disclosure-panel-width",c.scrollWidth+"px"),c.style.setProperty("--disclosure-panel-height",c.scrollHeight+"px"),Promise.all(c.getAnimations().map(d=>d.finished)).then(()=>{c.style.setProperty("--disclosure-panel-width","auto"),c.style.setProperty("--disclosure-panel-height","auto");}).catch(()=>{})):(c.style.setProperty("--disclosure-panel-width",c.scrollWidth+"px"),c.style.setProperty("--disclosure-panel-height",c.scrollHeight+"px"),window.getComputedStyle(c).height,c.style.setProperty("--disclosure-panel-width","0px"),c.style.setProperty("--disclosure-panel-height","0px"),Promise.all(c.getAnimations().map(d=>d.finished)).then(()=>c.setAttribute("hidden","until-found")).catch(()=>{}))),u.current=t.isExpanded;}},[o,r,t.isExpanded,a]),useEffect(()=>()=>{l.current&&cancelAnimationFrame(l.current);},[]),{buttonProps:{id:n,"aria-expanded":t.isExpanded,"aria-controls":i,onPress:c=>{!o&&c.pointerType!=="keyboard"&&t.toggle();},isDisabled:o,onPressStart(c){c.pointerType==="keyboard"&&!o&&t.toggle();}},panelProps:{id:i,role:"group","aria-labelledby":n,"aria-hidden":!t.isExpanded,hidden:a?!t.isExpanded:void 0}}}function Ix(e){let[t,r]=ye(e.isExpanded,e.defaultExpanded||false,e.onExpandedChange),o=useCallback(()=>{r(true);},[r]),n=useCallback(()=>{r(false);},[r]),i=useCallback(()=>{r(!t);},[r,t]);return {isExpanded:t,setExpanded:r,expand:o,collapse:n,toggle:i}}var za=(a=>(a[a.none=0]="none",a[a.cancel=0]="cancel",a[a.move=1]="move",a[a.copy=2]="copy",a[a.link=4]="link",a[a.all=7]="all",a))(za||{}),_x={...za,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Lx=Fz(_x);Lx[7]="all";var wa={none:"cancel",link:"link",copy:"copy",move:"move"},hf=Fz(wa);function Fz(e){let t={};for(let r in e)t[e[r]]=r;return t}var Kz=new Set(["text/plain","text/uri-list","text/html"]),Ic="application/vnd.react-aria.items+json",_c="application/octet-stream";var vf=new WeakMap,Ax=Symbol();function Vz(e){let{id:t}=vf.get(e)||{};if(!t)throw new Error("Droppable item outside a droppable collection");return t}function Bz(e){let{ref:t}=vf.get(e)||{};if(!t)throw new Error("Droppable item outside a droppable collection");return t}function en(e){let t=new Set;for(let r of e)for(let o of Object.keys(r))t.add(o);return t}function Hz(e){return e||(e="virtual"),e==="pointer"&&(e="virtual"),e==="virtual"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches&&(e="touch"),e}function Zl(){return Hz(er())}function Ox(){return Hz(zt())}function Lc(e,t){let r=new Map,o=false,n=[];for(let i of t){let a=Object.keys(i);a.length>1&&(o=true);let l={};for(let s of a){let u=r.get(s);u?o=true:(u=[],r.set(s,u));let c=i[s];l[s]=c,u.push(c);}n.push(l);}for(let[i,a]of r)if(Kz.has(i)){let l=a.join(`
|
|
22
|
-
`);e.items.add(l,i);}else e.items.add(a[0],i);if(o){let i=JSON.stringify(n);e.items.add(i,Ic);}}var Ra=class{types;includesUnknownTypes;constructor(t){this.types=new Set;let r=false;for(let o of t.items)o.type!==Ic&&(o.kind==="file"&&(r=true),o.type?this.types.add(o.type):this.types.add(_c));this.includesUnknownTypes=!r&&t.types.includes("Files");}has(t){if(Array.isArray(t))return t.some(r=>this.has(r));if(this.includesUnknownTypes||t===Ax&&this.types.has(_c)||t==="*/*")return true;if(typeof t=="string"){if(t.endsWith("/*")){for(let r of this.types)if(r.startsWith(t.slice(0,-2)))return true;return false}return this.types.has(t)}return false}};function xf(e){let t=[];if(!e)return t;let r=false;if(e.types.includes(Ic))try{let o=e.getData(Ic),n=JSON.parse(o);for(let i of n)t.push({kind:"text",types:new Set(Object.keys(i)),getText:a=>Promise.resolve(i[a])});r=!0;}catch{}if(!r){let o=new Map;for(let n of e.items)if(n.kind==="string")o.set(n.type||_c,e.getData(n.type));else if(n.kind==="file")if(typeof n.webkitGetAsEntry=="function"){let i=n.webkitGetAsEntry();if(!i)continue;i.isFile?t.push(Mx(n.getAsFile())):i.isDirectory&&t.push($z(i));}else t.push(Mx(n.getAsFile()));o.size>0&&t.push({kind:"text",types:new Set(o.keys()),getText:n=>Promise.resolve(o.get(n))});}return t}function qG(e){return typeof e.text=="function"?e.text():new Promise((t,r)=>{let o=new FileReader;o.onload=()=>{t(o.result);},o.onerror=r,o.readAsText(e);})}function Mx(e){if(!e)throw new Error("No file provided");return {kind:"file",type:e.type||_c,name:e.name,getText:()=>qG(e),getFile:()=>Promise.resolve(e)}}function $z(e){return {kind:"directory",name:e.name,getEntries:()=>XG(e)}}async function*XG(e){let t=e.createReader(),r;do{r=await new Promise((o,n)=>{t.readEntries(o,n);});for(let o of r)if(o.isFile){let n=await YG(o);yield Mx(n);}else o.isDirectory&&(yield $z(o));}while(r.length>0)}function YG(e){return new Promise((t,r)=>e.file(t,r))}var vt={draggingKeys:new Set};function jz(e){vt.draggingCollectionRef=e;}function Gz(e){vt.draggingKeys=e;}function Ia(e){vt.dropCollectionRef=e;}function Tf(){vt={draggingKeys:new Set};}function Uz(e){vt=e;}function Ur(e){let{draggingCollectionRef:t,dropCollectionRef:r}=vt;return t?.current!=null&&t.current===(e?.current||r?.current)}var Mc;function Jl(e){Mc=e;}var Cf=0;function Pf(e){Cf=e;}var Nx=new Map,Ac=new Map,_o=null,Sf=new Set;function Df(e){return Nx.set(e.element,e),_o?.updateValidDropTargets(),()=>{Nx.delete(e.element),_o?.updateValidDropTargets();}}function qz(e){return Ac.set(e.element,e),()=>{Ac.delete(e.element);}}function Xz(e,t){if(_o)throw new Error("Cannot begin dragging while already dragging");_o=new Fx(e,t),requestAnimationFrame(()=>{_o&&(_o.setup(),Ox()==="keyboard"&&_o.next());});for(let r of Sf)r();}function Ql(){let[e,t]=useState(_o);return useEffect(()=>{let r=()=>t(_o);return Sf.add(r),()=>{Sf.delete(r);}},[]),e}function Kx(){return !!_o}function QG(){_o=null;for(let e of Sf)e();}var Wz=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],eU=["pointerup","mouseup","touchend"],tU={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"},Fx=class{dragTarget;validDropTargets=[];currentDropTarget=null;currentDropItem=null;dropOperation=null;mutationObserver=null;restoreAriaHidden=null;stringFormatter;isVirtualClick=false;initialFocused;constructor(t,r){this.dragTarget=t,this.stringFormatter=r,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=false;}setup(){let t=Y(this.dragTarget.element),r=t.document;r.addEventListener("keydown",this.onKeyDown,true),r.addEventListener("keyup",this.onKeyUp,true),t.addEventListener("focus",this.onFocus,true),t.addEventListener("blur",this.onBlur,true),r.addEventListener("click",this.onClick,true),r.addEventListener("pointerdown",this.onPointerDown,true);for(let o of Wz)r.addEventListener(o,this.cancelEvent,true);this.mutationObserver=new MutationObserver(()=>this.updateValidDropTargets()),this.updateValidDropTargets(),at(this.stringFormatter.format(tU[Ox()]));}teardown(){let t=Y(this.dragTarget.element),r=t.document;r.removeEventListener("keydown",this.onKeyDown,true),r.removeEventListener("keyup",this.onKeyUp,true),t.removeEventListener("focus",this.onFocus,true),t.removeEventListener("blur",this.onBlur,true),r.removeEventListener("click",this.onClick,true),r.removeEventListener("pointerdown",this.onPointerDown,true);for(let o of Wz)r.removeEventListener(o,this.cancelEvent,true);this.mutationObserver?.disconnect(),this.restoreAriaHidden?.();}onKeyDown(t){if(this.cancelEvent(t),t.key==="Escape"){this.cancel();return}t.key==="Tab"&&!(t.metaKey||t.altKey||t.ctrlKey)&&(t.shiftKey?this.previous():this.next()),typeof this.currentDropTarget?.onKeyDown=="function"&&this.currentDropTarget.onKeyDown(t,this.dragTarget);}onKeyUp(t){this.cancelEvent(t),t.key==="Enter"&&(t.altKey||Z(this.getCurrentActivateButton(),$(t))?this.activate(this.currentDropTarget,this.currentDropItem):this.drop());}getCurrentActivateButton(){return this.currentDropItem?.activateButtonRef?.current??this.currentDropTarget?.activateButtonRef?.current??null}onFocus(t){let r=this.getCurrentActivateButton(),o=$(t);if(o===r){this.cancelEvent(t);return}o!==this.dragTarget.element&&this.cancelEvent(t);let n=Y(this.dragTarget.element);if(!(o instanceof n.HTMLElement)||o===this.dragTarget.element)return;let i=this.validDropTargets.find(l=>l.element===o)||this.validDropTargets.find(l=>Z(l.element,o));if(!i){this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus();return}let a=Ac.get(o);i&&this.setCurrentDropTarget(i,a);}onBlur(t){let r=this.getCurrentActivateButton();if(r&&t.relatedTarget===r){this.cancelEvent(t);return}$(t)!==this.dragTarget.element&&this.cancelEvent(t);let o=Y(this.dragTarget.element);(!t.relatedTarget||!(t.relatedTarget instanceof o.HTMLElement))&&(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus());}onClick(t){if(this.cancelEvent(t),Sn(t)||this.isVirtualClick){let r=Ac.values(),o=$(t),n=[...r].find(l=>l.element===o||Z(l.activateButtonRef?.current,o)),i=this.validDropTargets.find(l=>Z(l.element,o)),a=n?.activateButtonRef?.current??i?.activateButtonRef?.current;if(Z(a,o)&&i){this.activate(i,n);return}if($(t)===this.dragTarget.element){this.cancel();return}i&&(this.setCurrentDropTarget(i,n),this.drop(n));}}onPointerDown(t){this.cancelEvent(t),this.isVirtualClick=yl(t);}cancelEvent(t){let r=$(t);(t.type==="focusin"||t.type==="focusout")&&(r===this.dragTarget?.element||r===this.getCurrentActivateButton())||(eU.includes(t.type)||t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation());}updateValidDropTargets(){if(!this.mutationObserver)return;if(this.mutationObserver.disconnect(),this.restoreAriaHidden&&this.restoreAriaHidden(),this.validDropTargets=rU(this.dragTarget),this.validDropTargets.length>0){let n=this.findNearestDropTarget();this.validDropTargets=[...this.validDropTargets.slice(n),...this.validDropTargets.slice(0,n)];}this.currentDropTarget&&!this.validDropTargets.includes(this.currentDropTarget)&&this.setCurrentDropTarget(this.validDropTargets[0]);let t=en(this.dragTarget.items),r=[...Ac.values()].filter(n=>typeof n.getDropOperation=="function"?n.getDropOperation(t,this.dragTarget.allowedDropOperations)!=="cancel":true),o=this.validDropTargets.filter(n=>!r.some(i=>Z(n.element,i.element)));this.restoreAriaHidden=gi([this.dragTarget.element,...r.flatMap(n=>n.activateButtonRef?.current?[n.element,n.activateButtonRef?.current]:[n.element]),...o.flatMap(n=>n.activateButtonRef?.current?[n.element,n.activateButtonRef?.current]:[n.element])],{shouldUseInert:true}),this.mutationObserver.observe(U(this.dragTarget.element).body,{subtree:true,attributes:true,attributeFilter:["aria-hidden","inert"]});}next(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[0]);return}let t=this.validDropTargets.indexOf(this.currentDropTarget);if(t<0){this.setCurrentDropTarget(this.validDropTargets[0]);return}t===this.validDropTargets.length-1?this.dragTarget.element.closest('[aria-hidden="true"], [inert]')?this.setCurrentDropTarget(this.validDropTargets[0]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[t+1]);}previous(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}let t=this.validDropTargets.indexOf(this.currentDropTarget);if(t<0){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}t===0?this.dragTarget.element.closest('[aria-hidden="true"], [inert]')?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[t-1]);}findNearestDropTarget(){let t=this.dragTarget.element.getBoundingClientRect(),r=1/0,o=-1;for(let n=0;n<this.validDropTargets.length;n++){let a=this.validDropTargets[n].element.getBoundingClientRect(),l=a.left-t.left,s=a.top-t.top,u=l*l+s*s;u<r&&(r=u,o=n);}return o}setCurrentDropTarget(t,r){if(t!==this.currentDropTarget){if(this.currentDropTarget&&typeof this.currentDropTarget.onDropExit=="function"){let o=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropExit({type:"dropexit",x:o.left+o.width/2,y:o.top+o.height/2});}if(this.currentDropTarget=t,t){if(typeof t.onDropEnter=="function"){let o=t.element.getBoundingClientRect();t.onDropEnter({type:"dropenter",x:o.left+o.width/2,y:o.top+o.height/2},this.dragTarget);}r||t?.element.focus();}}if(r!=null&&r!==this.currentDropItem&&(this.currentDropTarget&&typeof this.currentDropTarget.onDropTargetEnter=="function"&&this.currentDropTarget.onDropTargetEnter(r.target),r.element.focus(),this.currentDropItem=r,!this.initialFocused)){let o=r?.element.getAttribute("aria-label");o&&at(o,"polite"),this.initialFocused=true;}}end(){if(this.teardown(),QG(),typeof this.dragTarget.onDragEnd=="function"){let o=(this.currentDropTarget&&this.dropOperation!=="cancel"?this.currentDropTarget:this.dragTarget).element.getBoundingClientRect();this.dragTarget.onDragEnd({type:"dragend",x:o.x+o.width/2,y:o.y+o.height/2,dropOperation:this.dropOperation||"cancel"});}let t=U(this.dragTarget.element);this.currentDropTarget&&!this.currentDropTarget.preventFocusOnDrop&&de(t)?.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),this.setCurrentDropTarget(null);}cancel(){this.setCurrentDropTarget(null),this.end(),this.dragTarget.element.closest('[aria-hidden="true"], [inert]')||this.dragTarget.element.focus(),de(U(this.dragTarget.element))?.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),at(this.stringFormatter.format("dropCanceled"));}drop(t){if(!this.currentDropTarget){this.cancel();return}if(typeof t?.getDropOperation=="function"){let r=en(this.dragTarget.items);this.dropOperation=t.getDropOperation(r,this.dragTarget.allowedDropOperations);}else if(typeof this.currentDropTarget.getDropOperation=="function"){let r=en(this.dragTarget.items);this.dropOperation=this.currentDropTarget.getDropOperation(r,this.dragTarget.allowedDropOperations);}else this.dropOperation=this.dragTarget.allowedDropOperations[0];if(typeof this.currentDropTarget.onDrop=="function"){let r=this.dragTarget.items.map(n=>({kind:"text",types:new Set(Object.keys(n)),getText:i=>Promise.resolve(n[i])})),o=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDrop({type:"drop",x:o.left+o.width/2,y:o.top+o.height/2,items:r,dropOperation:this.dropOperation},t?.target??null);}this.end(),at(this.stringFormatter.format("dropComplete"));}activate(t,r){if(t&&typeof t.onDropActivate=="function"){let o=r?.target??null,n=t.element.getBoundingClientRect();t.onDropActivate({type:"dropactivate",x:n.left+n.width/2,y:n.top+n.height/2},o);}}};function rU(e){let t=en(e.items);return [...Nx.values()].filter(r=>r.element.closest('[aria-hidden="true"], [inert]')?false:typeof r.getDropOperation=="function"?r.getDropOperation(t,e.allowedDropOperations)!=="cancel":true)}var vi={"ar-AE":{dragDescriptionKeyboard:"\u0627\u0636\u063A\u0637 Enter \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionKeyboardAlt:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + Enter \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionLongPress:"\u0627\u0636\u063A\u0637 \u0628\u0627\u0633\u062A\u0645\u0631\u0627\u0631 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionTouch:"\u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionVirtual:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragItem:e=>`\u0627\u0633\u062D\u0628 ${e.itemText}`,dragSelectedItems:(e,t)=>`\u0627\u0633\u062D\u0628 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`,other:()=>`${t.number(e.count)} \u0639\u0646\u0627\u0635\u0631 \u0645\u062D\u062F\u062F\u0629`})}`,dragSelectedKeyboard:(e,t)=>`\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Enter \u0644\u0644\u0633\u062D\u0628 ${t.plural(e.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D\u064A Alt + Enter \u0644\u0644\u0633\u062D\u0628 ${t.plural(e.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragSelectedLongPress:(e,t)=>`\u0627\u0636\u063A\u0637 \u0628\u0627\u0633\u062A\u0645\u0631\u0627\u0631 \u0644\u0644\u0633\u062D\u0628 ${t.plural(e.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragStartedKeyboard:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 Tab \u0644\u0644\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0645\u0648\u0636\u0639 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u0623\u0648 \u0627\u0636\u063A\u0637 Escape \u0644\u0644\u0625\u0644\u063A\u0627\u0621.",dragStartedTouch:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0645\u0648\u0636\u0639 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dragStartedVirtual:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0645\u0643\u0627\u0646 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0646\u0642\u0631 \u0623\u0648 \u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropCanceled:"\u062A\u0645 \u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0641\u0644\u0627\u062A.",dropComplete:"\u0627\u0643\u062A\u0645\u0644 \u0627\u0644\u0625\u0641\u0644\u0627\u062A.",dropDescriptionKeyboard:"\u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A. \u0627\u0636\u063A\u0637 Escape \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",dropDescriptionTouch:"\u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropDescriptionVirtual:"\u0627\u0646\u0642\u0631 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropIndicator:"\u0645\u0624\u0634\u0631 \u0627\u0644\u0625\u0641\u0644\u0627\u062A",dropOnItem:e=>`\u0625\u0641\u0644\u0627\u062A ${e.itemText}`,dropOnRoot:"\u0627\u0644\u0625\u0641\u0644\u0627\u062A",endDragKeyboard:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 Enter \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",endDragTouch:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",endDragVirtual:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u0642\u0631 \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",insertAfter:e=>`\u0623\u062F\u062E\u0644 \u0628\u0639\u062F ${e.itemText}`,insertBefore:e=>`\u0623\u062F\u062E\u0644 \u0642\u0628\u0644 ${e.itemText}`,insertBetween:e=>`\u0623\u062F\u062E\u0644 \u0628\u064A\u0646 ${e.beforeItemText} \u0648 ${e.afterItemText}`},"bg-BG":{dragDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt + Enter, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionLongPress:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionVirtual:"\u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragItem:e=>`\u041F\u043B\u044A\u0437\u043D\u0438 ${e.itemText}`,dragSelectedItems:(e,t)=>`\u041F\u043B\u044A\u0437\u043D\u0438 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430`})}`,dragSelectedKeyboard:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Enter, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt \u0438 Enter, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragSelectedLongPress:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragStartedKeyboard:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201ETab\u201C, \u0437\u0430 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0438\u0434\u0432\u0438\u0436\u0438\u0442\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435 \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEscape\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430.",dragStartedTouch:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041F\u0440\u0438\u0434\u0432\u0438\u0436\u0435\u0442\u0435 \u0441\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E, \u0437\u0430 \u0434\u0430 \u043F\u0443\u0441\u043D\u0435\u0442\u0435.",dragStartedVirtual:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041F\u0440\u0438\u0434\u0432\u0438\u0436\u0435\u0442\u0435 \u0441\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u0449\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropCanceled:"\u041F\u0443\u0441\u043A\u0430\u043D\u0435\u0442\u043E \u0435 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043E.",dropComplete:"\u041F\u0443\u0441\u043A\u0430\u043D\u0435\u0442\u043E \u0435 \u0437\u0430\u0432\u044A\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEscape\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",dropDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropDescriptionVirtual:"\u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropIndicator:"\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435",dropOnItem:e=>`\u041F\u0443\u0441\u043D\u0438 \u0432\u044A\u0440\u0445\u0443 ${e.itemText}`,dropOnRoot:"\u041F\u0443\u0441\u043D\u0438 \u0432\u044A\u0440\u0445\u0443",endDragKeyboard:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",endDragTouch:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",endDragVirtual:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430.",insertAfter:e=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u0441\u043B\u0435\u0434 ${e.itemText}`,insertBefore:e=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u043F\u0440\u0435\u0434\u0438 ${e.itemText}`,insertBetween:e=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u043C\u0435\u0436\u0434\u0443 ${e.beforeItemText} \u0438 ${e.afterItemText}`},"cs-CZ":{dragDescriptionKeyboard:"Stisknut\xEDm kl\xE1vesy Enter za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragDescriptionKeyboardAlt:"Stisknut\xEDm Alt + Enter zah\xE1j\xEDte p\u0159etahov\xE1n\xED.",dragDescriptionLongPress:"Dlouh\xFDm stisknut\xEDm zah\xE1j\xEDte p\u0159etahov\xE1n\xED.",dragDescriptionTouch:"Poklep\xE1n\xEDm za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragDescriptionVirtual:"Kliknut\xEDm za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragItem:e=>`P\u0159et\xE1hnout ${e.itemText}`,dragSelectedItems:(e,t)=>`P\u0159et\xE1hnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u017Eku`,few:()=>`${t.number(e.count)} vybran\xE9 polo\u017Eky`,other:()=>`${t.number(e.count)} vybran\xFDch polo\u017Eek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknut\xEDm kl\xE1vesy Enter p\u0159et\xE1hn\u011Bte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u017Eku`,other:()=>`${t.number(e.count)} vybran\xE9 polo\u017Eky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknut\xEDm Alt + Enter p\u0159et\xE1hn\u011Bte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u017Eku`,other:()=>`${t.number(e.count)} vybran\xE9 polo\u017Eky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouh\xFDm stisknut\xEDm p\u0159et\xE1hnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u017Eku`,other:()=>`${t.number(e.count)} vybran\xE9 polo\u017Eky`})}.`,dragStartedKeyboard:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Po stisknut\xED kl\xE1vesy Tab najd\u011Bte po\u017Eadovan\xFD c\xEDl a stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete nebo stisknut\xEDm kl\xE1vesy Esc akci zru\u0161te.",dragStartedTouch:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Najd\u011Bte po\u017Eadovan\xFD c\xEDl a poklep\xE1n\xEDm p\u0159eta\u017Een\xED dokon\u010Dete.",dragStartedVirtual:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Najd\u011Bte po\u017Eadovan\xFD c\xEDl a kliknut\xEDm nebo stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete.",dropCanceled:"P\u0159eta\u017Een\xED bylo zru\u0161eno.",dropComplete:"P\u0159eta\u017Een\xED bylo dokon\u010Deno.",dropDescriptionKeyboard:"Stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete nebo stisknut\xEDm kl\xE1vesy Esc akci zru\u0161te.",dropDescriptionTouch:"Poklep\xE1n\xEDm p\u0159eta\u017Een\xED dokon\u010Dete.",dropDescriptionVirtual:"Kliknut\xEDm objekt p\u0159et\xE1hn\u011Bte.",dropIndicator:"indik\xE1tor p\u0159eta\u017Een\xED",dropOnItem:e=>`P\u0159et\xE1hnout na ${e.itemText}`,dropOnRoot:"P\u0159et\xE1hnout na",endDragKeyboard:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED zru\u0161\xEDte.",endDragTouch:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Poklep\xE1n\xEDm p\u0159eta\u017Een\xED zru\u0161\xEDte.",endDragVirtual:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Kliknut\xEDm p\u0159eta\u017Een\xED zru\u0161\xEDte.",insertAfter:e=>`Vlo\u017Eit za ${e.itemText}`,insertBefore:e=>`Vlo\u017Eit p\u0159ed ${e.itemText}`,insertBetween:e=>`Vlo\u017Eit mezi ${e.beforeItemText} a ${e.afterItemText}`},"da-DK":{dragDescriptionKeyboard:"Tryk p\xE5 Enter for at starte med at tr\xE6kke.",dragDescriptionKeyboardAlt:"Tryk p\xE5 Alt + Enter for at starte med at tr\xE6kke.",dragDescriptionLongPress:"Tryk l\xE6nge for at starte med at tr\xE6kke.",dragDescriptionTouch:"Dobbelttryk for at starte med at tr\xE6kke.",dragDescriptionVirtual:"Klik for at starte med at tr\xE6kke.",dragItem:e=>`Tr\xE6k ${e.itemText}`,dragSelectedItems:(e,t)=>`Tr\xE6k ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk p\xE5 Enter for at tr\xE6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk p\xE5 Alt + Enter for at tr\xE6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk l\xE6nge for at tr\xE6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Startet med at tr\xE6kke. Tryk p\xE5 Tab for at g\xE5 til et slip-m\xE5l, tryk derefter p\xE5 Enter for at slippe, eller tryk p\xE5 Escape for at annullere.",dragStartedTouch:"Startet med at tr\xE6kke. G\xE5 til et slip-m\xE5l, og dobbelttryk derefter for at slippe.",dragStartedVirtual:"Startet med at tr\xE6kke. G\xE5 til et slip-m\xE5l, og klik eller tryk derefter p\xE5 enter for at slippe.",dropCanceled:"Slip annulleret.",dropComplete:"Slip fuldf\xF8rt.",dropDescriptionKeyboard:"Tryk p\xE5 Enter for at slippe. Tryk p\xE5 Escape for at annullere tr\xE6kning.",dropDescriptionTouch:"Dobbelttryk for at slippe.",dropDescriptionVirtual:"Klik for at slippe.",dropIndicator:"slip-indikator",dropOnItem:e=>`Slip p\xE5 ${e.itemText}`,dropOnRoot:"Slip p\xE5",endDragKeyboard:"Tr\xE6kning. Tryk p\xE5 enter for at annullere tr\xE6k.",endDragTouch:"Tr\xE6kning. Dobbelttryk for at annullere tr\xE6k.",endDragVirtual:"Tr\xE6kning. Klik for at annullere tr\xE6kning.",insertAfter:e=>`Inds\xE6t efter ${e.itemText}`,insertBefore:e=>`Inds\xE6t f\xF8r ${e.itemText}`,insertBetween:e=>`Inds\xE6t mellem ${e.beforeItemText} og ${e.afterItemText}`},"de-DE":{dragDescriptionKeyboard:"Dr\xFCcken Sie die Eingabetaste, um den Ziehvorgang zu starten.",dragDescriptionKeyboardAlt:"Alt + Eingabe dr\xFCcken, um den Ziehvorgang zu starten.",dragDescriptionLongPress:"Lang dr\xFCcken, um mit dem Ziehen zu beginnen.",dragDescriptionTouch:"Tippen Sie doppelt, um den Ziehvorgang zu starten.",dragDescriptionVirtual:"Zum Starten des Ziehvorgangs klicken.",dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xE4hltes Objekt`,other:()=>`${t.number(e.count)} ausgew\xE4hlte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste dr\xFCcken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xE4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste dr\xFCcken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xE4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang dr\xFCcken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xE4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragStartedKeyboard:"Ziehvorgang gestartet. Dr\xFCcken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und dr\xFCcken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.",dragStartedTouch:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.",dragStartedVirtual:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder dr\xFCcken Sie die Eingabetaste, um das Objekt abzulegen.",dropCanceled:"Ablegen abgebrochen.",dropComplete:"Ablegen abgeschlossen.",dropDescriptionKeyboard:"Dr\xFCcken Sie die Eingabetaste, um das Objekt abzulegen. Dr\xFCcken Sie Escape, um den Vorgang abzubrechen.",dropDescriptionTouch:"Tippen Sie doppelt, um das Objekt abzulegen.",dropDescriptionVirtual:"Zum Ablegen klicken.",dropIndicator:"Ablegeanzeiger",dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:"Ablegen auf",endDragKeyboard:"Ziehvorgang l\xE4uft. Dr\xFCcken Sie die Eingabetaste, um den Vorgang abzubrechen.",endDragTouch:"Ziehvorgang l\xE4uft. Tippen Sie doppelt, um den Vorgang abzubrechen.",endDragVirtual:"Ziehvorgang l\xE4uft. Klicken Sie, um den Vorgang abzubrechen.",insertAfter:e=>`Nach ${e.itemText} einf\xFCgen`,insertBefore:e=>`Vor ${e.itemText} einf\xFCgen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einf\xFCgen`},"el-GR":{dragDescriptionKeyboard:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionKeyboardAlt:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionLongPress:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC.",dragDescriptionTouch:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionVirtual:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC.",dragItem:e=>`\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC ${e.itemText}`,dragSelectedItems:(e,t)=>`\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}`,dragSelectedKeyboard:(e,t)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + Enter \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragSelectedLongPress:(e,t)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragStartedKeyboard:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C0\u03BB\u03AE\u03BA\u03C4\u03C1\u03BF Tab \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BC\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Escape \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7.",dragStartedTouch:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u039C\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dragStartedVirtual:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u039C\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03BA\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropCanceled:"\u0397 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03B1\u03BA\u03C5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5.",dropComplete:"\u0397 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5.",dropDescriptionKeyboard:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Escape \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dropDescriptionTouch:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropDescriptionVirtual:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropIndicator:"\u03B4\u03B5\u03AF\u03BA\u03C4\u03B7\u03C2 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2",dropOnItem:e=>`\u0391\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03C3\u03B5 ${e.itemText}`,dropOnRoot:"\u0391\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03C3\u03B5",endDragKeyboard:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",endDragTouch:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",endDragVirtual:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",insertAfter:e=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BC\u03B5\u03C4\u03AC \u03B1\u03C0\u03CC ${e.itemText}`,insertBefore:e=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC ${e.itemText}`,insertBetween:e=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BC\u03B5\u03C4\u03B1\u03BE\u03CD ${e.beforeItemText} \u03BA\u03B1\u03B9 ${e.afterItemText}`},"en-US":{dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:"Press Enter to start dragging.",dragDescriptionKeyboardAlt:"Press Alt + Enter to start dragging.",dragDescriptionTouch:"Double tap to start dragging.",dragDescriptionVirtual:"Click to start dragging.",dragDescriptionLongPress:"Long press to start dragging.",dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.",dragStartedTouch:"Started dragging. Navigate to a drop target, then double tap to drop.",dragStartedVirtual:"Started dragging. Navigate to a drop target, then click or press Enter to drop.",endDragKeyboard:"Dragging. Press Enter to cancel drag.",endDragTouch:"Dragging. Double tap to cancel drag.",endDragVirtual:"Dragging. Click to cancel drag.",dropDescriptionKeyboard:"Press Enter to drop. Press Escape to cancel drag.",dropDescriptionTouch:"Double tap to drop.",dropDescriptionVirtual:"Click to drop.",dropCanceled:"Drop canceled.",dropComplete:"Drop complete.",dropIndicator:"drop indicator",dropOnRoot:"Drop on",dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`},"es-ES":{dragDescriptionKeyboard:"Pulse Intro para empezar a arrastrar.",dragDescriptionKeyboardAlt:"Pulse Intro para empezar a arrastrar.",dragDescriptionLongPress:"Mantenga pulsado para comenzar a arrastrar.",dragDescriptionTouch:"Pulse dos veces para iniciar el arrastre.",dragDescriptionVirtual:"Haga clic para iniciar el arrastre.",dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:"Se ha empezado a arrastrar. Pulse el tabulador para ir al destino donde se vaya a colocar y, a continuaci\xF3n, pulse Intro para soltar, o pulse Escape para cancelar.",dragStartedTouch:"Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuaci\xF3n, pulse dos veces para soltar.",dragStartedVirtual:"Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuaci\xF3n, haga clic o pulse Intro para soltar.",dropCanceled:"Se ha cancelado la colocaci\xF3n.",dropComplete:"Colocaci\xF3n finalizada.",dropDescriptionKeyboard:"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.",dropDescriptionTouch:"Pulse dos veces para soltar.",dropDescriptionVirtual:"Haga clic para soltar.",dropIndicator:"indicador de colocaci\xF3n",dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:"Soltar en",endDragKeyboard:"Arrastrando. Pulse Intro para cancelar el arrastre.",endDragTouch:"Arrastrando. Pulse dos veces para cancelar el arrastre.",endDragVirtual:"Arrastrando. Haga clic para cancelar el arrastre.",insertAfter:e=>`Insertar despu\xE9s de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`},"et-EE":{dragDescriptionKeyboard:"Lohistamise alustamiseks vajutage klahvi Enter.",dragDescriptionKeyboardAlt:"Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",dragDescriptionLongPress:"Vajutage pikalt lohistamise alustamiseks.",dragDescriptionTouch:"Topeltpuudutage lohistamise alustamiseks.",dragDescriptionVirtual:"Kl\xF5psake lohistamise alustamiseks.",dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xFCksust`,other:()=>`${t.number(e.count)} valitud \xFCksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xFCksuse`,other:()=>`${t.number(e.count)} valitud \xFCksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xFCksuse`,other:()=>`${t.number(e.count)} valitud \xFCksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xFCksuse`,other:()=>`${t.number(e.count)} valitud \xFCksuse`})} lohistamiseks.`,dragStartedKeyboard:"Alustati lohistamist. Kukutamise sihtm\xE4rgi juurde navigeerimiseks vajutage klahvi Tab, seej\xE4rel vajutage kukutamiseks klahvi Enter v\xF5i loobumiseks klahvi Escape.",dragStartedTouch:"Alustati lohistamist. Navigeerige kukutamise sihtm\xE4rgi juurde ja topeltpuudutage kukutamiseks.",dragStartedVirtual:"Alustati lohistamist. Navigeerige kukutamise sihtm\xE4rgi juurde ja kukutamiseks kl\xF5psake v\xF5i vajutage klahvi Enter.",dropCanceled:"Lohistamisest loobuti.",dropComplete:"Lohistamine on tehtud.",dropDescriptionKeyboard:"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.",dropDescriptionTouch:"Kukutamiseks topeltpuudutage.",dropDescriptionVirtual:"Kukutamiseks kl\xF5psake.",dropIndicator:"lohistamise indikaator",dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:"Kukuta asukohta",endDragKeyboard:"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.",endDragTouch:"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.",endDragVirtual:"Lohistamine. Lohistamisest loobumiseks kl\xF5psake.",insertAfter:e=>`Sisesta ${e.itemText} j\xE4rele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`},"fi-FI":{dragDescriptionKeyboard:"Aloita vet\xE4minen painamalla Enter-n\xE4pp\xE4int\xE4.",dragDescriptionKeyboardAlt:"Aloita vet\xE4minen painamalla Alt + Enter -n\xE4pp\xE4inyhdistelm\xE4\xE4.",dragDescriptionLongPress:"Aloita vet\xE4minen pit\xE4m\xE4ll\xE4 painettuna.",dragDescriptionTouch:"Aloita vet\xE4minen kaksoisnapauttamalla.",dragDescriptionVirtual:"Aloita vet\xE4minen napsauttamalla.",dragItem:e=>`Ved\xE4 kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Ved\xE4 ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Ved\xE4 painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ved\xE4 painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Ved\xE4 pit\xE4m\xE4ll\xE4 painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen painamalla sarkainn\xE4pp\xE4int\xE4 ja sitten pudota painamalla Enter-n\xE4pp\xE4int\xE4 tai peruuta painamalla Escape-n\xE4pp\xE4int\xE4.",dragStartedTouch:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.",dragStartedVirtual:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-n\xE4pp\xE4int\xE4.",dropCanceled:"Pudotus peruutettu.",dropComplete:"Pudotus suoritettu.",dropDescriptionKeyboard:"Pudota painamalla Enter-n\xE4pp\xE4int\xE4. Peruuta vet\xE4minen painamalla Escape-n\xE4pp\xE4int\xE4.",dropDescriptionTouch:"Pudota kaksoisnapauttamalla.",dropDescriptionVirtual:"Pudota napsauttamalla.",dropIndicator:"pudotuksen ilmaisin",dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:"Pudota kohteeseen",endDragKeyboard:"Vedet\xE4\xE4n. Peruuta vet\xE4minen painamalla Enter-n\xE4pp\xE4int\xE4.",endDragTouch:"Vedet\xE4\xE4n. Peruuta vet\xE4minen kaksoisnapauttamalla.",endDragVirtual:"Vedet\xE4\xE4n. Peruuta vet\xE4minen napsauttamalla.",insertAfter:e=>`Lis\xE4\xE4 kohteen ${e.itemText} j\xE4lkeen`,insertBefore:e=>`Lis\xE4\xE4 ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lis\xE4\xE4 kohteiden ${e.beforeItemText} ja ${e.afterItemText} v\xE4liin`},"fr-FR":{dragDescriptionKeyboard:"Appuyez sur Entr\xE9e pour commencer le d\xE9placement.",dragDescriptionKeyboardAlt:"Appuyez sur Alt\xA0+\xA0Entr\xE9e pour commencer \xE0 faire glisser.",dragDescriptionLongPress:"Appuyez de mani\xE8re prolong\xE9e pour commencer \xE0 faire glisser.",dragDescriptionTouch:"Touchez deux fois pour commencer le d\xE9placement.",dragDescriptionVirtual:"Cliquez pour commencer le d\xE9placement.",dragItem:e=>`D\xE9placer ${e.itemText}`,dragSelectedItems:(e,t)=>`D\xE9placer ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entr\xE9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt\xA0+\xA0Entr\xE9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de mani\xE8re prolong\xE9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragStartedKeyboard:"D\xE9placement commenc\xE9. Appuyez sur Tabulation pour acc\xE9der \xE0 une cible de d\xE9p\xF4t, puis appuyez sur Entr\xE9e pour d\xE9poser, ou appuyez sur \xC9chap pour annuler.",dragStartedTouch:"D\xE9placement commenc\xE9. Acc\xE9dez \xE0 une cible de d\xE9p\xF4t, puis touchez deux fois pour d\xE9poser.",dragStartedVirtual:"D\xE9placement commenc\xE9. Acc\xE9dez \xE0 une cible de d\xE9p\xF4t, puis cliquez ou appuyez sur Entr\xE9e pour d\xE9poser.",dropCanceled:"D\xE9p\xF4t annul\xE9.",dropComplete:"D\xE9p\xF4t termin\xE9.",dropDescriptionKeyboard:"Appuyez sur Entr\xE9e pour d\xE9poser. Appuyez sur \xC9chap pour annuler le d\xE9placement.",dropDescriptionTouch:"Touchez deux fois pour d\xE9poser.",dropDescriptionVirtual:"Cliquez pour d\xE9poser.",dropIndicator:"indicateur de d\xE9p\xF4t",dropOnItem:e=>`D\xE9poser sur ${e.itemText}`,dropOnRoot:"D\xE9poser sur",endDragKeyboard:"D\xE9placement. Appuyez sur Entr\xE9e pour annuler le d\xE9placement.",endDragTouch:"D\xE9placement. Touchez deux fois pour annuler le d\xE9placement.",endDragVirtual:"D\xE9placement. Cliquez pour annuler le d\xE9placement.",insertAfter:e=>`Ins\xE9rer apr\xE8s ${e.itemText}`,insertBefore:e=>`Ins\xE9rer avant ${e.itemText}`,insertBetween:e=>`Ins\xE9rer entre ${e.beforeItemText} et ${e.afterItemText}`},"he-IL":{dragDescriptionKeyboard:"\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionKeyboardAlt:"\u05D4\u05E7\u05E9 Alt + Enter \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionLongPress:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionTouch:"\u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D2\u05E8\u05D9\u05E8\u05D4.",dragDescriptionVirtual:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragItem:e=>`\u05D2\u05E8\u05D5\u05E8 \u05D0\u05EA ${e.itemText}`,dragSelectedItems:(e,t)=>`\u05D2\u05E8\u05D5\u05E8 ${t.plural(e.count,{one:()=>`\u05E4\u05E8\u05D9\u05D8 \u05E0\u05D1\u05D7\u05E8 ${t.number(e.count)}`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}`,dragSelectedKeyboard:(e,t)=>`\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u05D4\u05E7\u05E9 Alt + Enter \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragSelectedLongPress:(e,t)=>`\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragStartedKeyboard:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Tab \u05DB\u05D3\u05D9 \u05DC\u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8 \u05D0\u05D5 \u05E2\u05DC Escape \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC.",dragStartedTouch:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dragStartedVirtual:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05DC\u05D7\u05E5 \u05D0\u05D5 \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropCanceled:"\u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D1\u05D5\u05D8\u05DC.",dropComplete:"\u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D4\u05D5\u05E9\u05DC\u05DD.",dropDescriptionKeyboard:"\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Escape \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",dropDescriptionTouch:"\u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropDescriptionVirtual:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropIndicator:"\u05DE\u05D7\u05D5\u05D5\u05DF \u05E9\u05D7\u05E8\u05D5\u05E8",dropOnItem:e=>`\u05E9\u05D7\u05E8\u05E8 \u05E2\u05DC ${e.itemText}`,dropOnRoot:"\u05E9\u05D7\u05E8\u05E8 \u05E2\u05DC",endDragKeyboard:"\u05D2\u05D5\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",endDragTouch:"\u05D2\u05D5\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",endDragVirtual:"\u05D2\u05D5\u05E8\u05E8. \u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",insertAfter:e=>`\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D7\u05E8\u05D9 ${e.itemText}`,insertBefore:e=>`\u05D4\u05D5\u05E1\u05E3 \u05DC\u05E4\u05E0\u05D9 ${e.itemText}`,insertBetween:e=>`\u05D4\u05D5\u05E1\u05E3 \u05D1\u05D9\u05DF ${e.beforeItemText} \u05DC\u05D1\u05D9\u05DF ${e.afterItemText}`},"hr-HR":{dragDescriptionKeyboard:"Pritisnite Enter da biste po\u010Deli povla\u010Diti.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter za po\u010Detak povla\u010Denja.",dragDescriptionLongPress:"Dugo pritisnite za po\u010Detak povla\u010Denja.",dragDescriptionTouch:"Dvaput dodirnite da biste po\u010Deli povla\u010Diti.",dragDescriptionVirtual:"Kliknite da biste po\u010Deli povla\u010Diti.",dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povla\u010Denje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povla\u010Denje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povla\u010Denje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:"Po\u010Deli ste povla\u010Diti. Pritisnite tipku tabulatora da biste do\u0161li do cilja ispu\u0161tanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povla\u010Denje.",dragStartedTouch:"Po\u010Deli ste povla\u010Diti. Do\u0111ite do cilja ispu\u0161tanja, a zatim dvaput dodirnite da biste ispustili stavku.",dragStartedVirtual:"Po\u010Deli ste povla\u010Diti. Do\u0111ite do cilja ispu\u0161tanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.",dropCanceled:"Povla\u010Denje je prekinuto.",dropComplete:"Ispu\u0161tanje je dovr\u0161eno.",dropDescriptionKeyboard:"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povla\u010Denje.",dropDescriptionTouch:"Dvaput dodirnite da biste ispustili stavku.",dropDescriptionVirtual:"Kliknite da biste ispustili stavku.",dropIndicator:"pokazatelj ispu\u0161tanja",dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:"Ispustite na",endDragKeyboard:"Povla\u010Denje. Pritisnite Enter da biste prekinuli povla\u010Denje.",endDragTouch:"Povla\u010Denje. Dvaput dodirnite da biste prekinuli povla\u010Denje.",endDragVirtual:"Povla\u010Denje. Kliknite da biste prekinuli povla\u010Denje.",insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite izme\u0111u stavki ${e.beforeItemText} i ${e.afterItemText}`},"hu-HU":{dragDescriptionKeyboard:"Nyomja le az Enter billenty\u0171t a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionKeyboardAlt:"Nyomja le az Alt + Enter billenty\u0171ket a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionLongPress:"Hosszan nyomja meg a h\xFAz\xE1s elind\xEDt\xE1s\xE1hoz.",dragDescriptionTouch:"Koppintson dupl\xE1n a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionVirtual:"Kattintson a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragItem:e=>`${e.itemText} h\xFAz\xE1sa`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xF6lt elem`,other:()=>`${t.number(e.count)} kijel\xF6lt elem`})} h\xFAz\xE1sa`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xF6lt elem`,other:()=>`${t.number(e.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billenty\u0171ket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xF6lt elem`,other:()=>`${t.number(e.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xF6lt elem`,other:()=>`${t.number(e.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragStartedKeyboard:"H\xFAz\xE1s megkezdve. Nyomja le a Tab billenty\u0171t az elenged\xE9si c\xE9lhoz navig\xE1l\xE1s\xE1hoz, majd nyomja le az Enter billenty\u0171t az elenged\xE9shez, vagy nyomja le az Escape billenty\u0171t a megszak\xEDt\xE1shoz.",dragStartedTouch:"H\xFAz\xE1s megkezdve. Navig\xE1ljon egy elenged\xE9si c\xE9lhoz, majd koppintson dupl\xE1n az elenged\xE9shez.",dragStartedVirtual:"H\xFAz\xE1s megkezdve. Navig\xE1ljon egy elenged\xE9si c\xE9lhoz, majd kattintson vagy nyomja le az Enter billenty\u0171t az elenged\xE9shez.",dropCanceled:"Elenged\xE9s megszak\xEDtva.",dropComplete:"Elenged\xE9s teljes\xEDtve.",dropDescriptionKeyboard:"Nyomja le az Enter billenty\u0171t az elenged\xE9shez. Nyomja le az Escape billenty\u0171t a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",dropDescriptionTouch:"Koppintson dupl\xE1n az elenged\xE9shez.",dropDescriptionVirtual:"Kattintson az elenged\xE9shez.",dropIndicator:"elenged\xE9sjelz\u0151",dropOnItem:e=>`Elenged\xE9s erre: ${e.itemText}`,dropOnRoot:"Elenged\xE9s erre:",endDragKeyboard:"H\xFAz\xE1s folyamatban. Nyomja le az Enter billenty\u0171t a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",endDragTouch:"H\xFAz\xE1s folyamatban. Koppintson dupl\xE1n a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",endDragVirtual:"H\xFAz\xE1s folyamatban. Kattintson a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",insertAfter:e=>`Besz\xFAr\xE1s ${e.itemText} ut\xE1n`,insertBefore:e=>`Besz\xFAr\xE1s ${e.itemText} el\xE9`,insertBetween:e=>`Besz\xFAr\xE1s ${e.beforeItemText} \xE9s ${e.afterItemText} k\xF6z\xE9`},"it-IT":{dragDescriptionKeyboard:"Premi Invio per iniziare a trascinare.",dragDescriptionKeyboardAlt:"Premi Alt + Invio per iniziare a trascinare.",dragDescriptionLongPress:"Premi a lungo per iniziare a trascinare.",dragDescriptionTouch:"Tocca due volte per iniziare a trascinare.",dragDescriptionVirtual:"Fai clic per iniziare a trascinare.",dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:"Hai iniziato a trascinare. Premi Tab per arrivare sull\u2019area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.",dragStartedTouch:"Hai iniziato a trascinare. Arriva sull\u2019area di destinazione, quindi tocca due volte per rilasciare.",dragStartedVirtual:"Hai iniziato a trascinare. Arriva sull\u2019area di destinazione, quindi fai clic o premi Invio per rilasciare.",dropCanceled:"Rilascio annullato.",dropComplete:"Rilascio completato.",dropDescriptionKeyboard:"Premi Invio per rilasciare. Premi Esc per annullare.",dropDescriptionTouch:"Tocca due volte per rilasciare.",dropDescriptionVirtual:"Fai clic per rilasciare.",dropIndicator:"indicatore di rilascio",dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:"Rilascia su",endDragKeyboard:"Trascinamento. Premi Invio per annullare.",endDragTouch:"Trascinamento. Tocca due volte per annullare.",endDragVirtual:"Trascinamento. Fai clic per annullare.",insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`},"ja-JP":{dragDescriptionKeyboard:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dragDescriptionKeyboardAlt:"Alt+Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionLongPress:"\u9577\u62BC\u3057\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionTouch:"\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionVirtual:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragItem:e=>`${e.itemText} \u3092\u30C9\u30E9\u30C3\u30B0`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u306E\u9078\u629E\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u306E\u9078\u629E\u9805\u76EE`})} \u3092\u30C9\u30E9\u30C3\u30B0`,dragSelectedKeyboard:(e,t)=>`Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u3001${t.plural(e.count,{one:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u3001${t.plural(e.count,{one:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragSelectedLongPress:(e,t)=>`\u9577\u62BC\u3057\u3057\u3066\u3001${t.plural(e.count,{one:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragStartedKeyboard:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002Tab \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u3044\u3069\u3046\u3057\u3001Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3059\u308B\u304B\u3001Esc \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",dragStartedTouch:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3057\u305F\u3002\u30C9\u30ED\u30C3\u30D7\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u79FB\u52D5\u3057\u3001\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dragStartedVirtual:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3057\u305F\u3002\u30C9\u30ED\u30C3\u30D7\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u79FB\u52D5\u3057\u3001\u30AF\u30EA\u30C3\u30AF\u307E\u305F\u306F Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropCanceled:"\u30C9\u30ED\u30C3\u30D7\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",dropComplete:"\u30C9\u30ED\u30C3\u30D7\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",dropDescriptionKeyboard:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002Esc \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",dropDescriptionTouch:"\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropDescriptionVirtual:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropIndicator:"\u30C9\u30ED\u30C3\u30D7\u30A4\u30F3\u30B8\u30B1\u30FC\u30BF\u30FC",dropOnItem:e=>`${e.itemText} \u306B\u30C9\u30ED\u30C3\u30D7`,dropOnRoot:"\u30C9\u30ED\u30C3\u30D7\u5834\u6240",endDragKeyboard:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",endDragTouch:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",endDragVirtual:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",insertAfter:e=>`${e.itemText} \u306E\u5F8C\u306B\u633F\u5165`,insertBefore:e=>`${e.itemText} \u306E\u524D\u306B\u633F\u5165`,insertBetween:e=>`${e.beforeItemText} \u3068 ${e.afterItemText} \u306E\u9593\u306B\u633F\u5165`},"ko-KR":{dragDescriptionKeyboard:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",dragDescriptionKeyboardAlt:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 Alt + Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.",dragDescriptionLongPress:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.",dragDescriptionTouch:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uB354\uBE14 \uD0ED\uD558\uC138\uC694.",dragDescriptionVirtual:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",dragItem:e=>`${e.itemText} \uB4DC\uB798\uADF8`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})} \uB4DC\uB798\uADF8`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 Alt + Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragStartedKeyboard:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. Tab\uC744 \uB20C\uB7EC \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C Enter\uB97C \uB20C\uB7EC \uB4DC\uB86D\uD558\uAC70\uB098 Esc\uB97C \uB20C\uB7EC \uCDE8\uC18C\uD558\uC138\uC694.",dragStartedTouch:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C \uB354\uBE14 \uD0ED\uD558\uC5EC \uB4DC\uB86D\uD558\uC138\uC694.",dragStartedVirtual:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C \uD074\uB9AD\uD558\uAC70\uB098 Enter\uB97C \uB20C\uB7EC \uB4DC\uB86D\uD558\uC138\uC694.",dropCanceled:"\uB4DC\uB86D\uC774 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",dropComplete:"\uB4DC\uB86D\uC774 \uC644\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",dropDescriptionKeyboard:"\uB4DC\uB86D\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 Esc\uB97C \uB204\uB974\uC138\uC694.",dropDescriptionTouch:"\uB354\uBE14 \uD0ED\uD558\uC5EC \uB4DC\uB86D\uD558\uC138\uC694.",dropDescriptionVirtual:"\uB4DC\uB86D\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",dropIndicator:"\uB4DC\uB86D \uD45C\uC2DC\uAE30",dropOnItem:e=>`${e.itemText}\uC5D0 \uB4DC\uB86D`,dropOnRoot:"\uB4DC\uB86D \uB300\uC0C1",endDragKeyboard:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",endDragTouch:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 \uB354\uBE14 \uD0ED\uD558\uC138\uC694.",endDragVirtual:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",insertAfter:e=>`${e.itemText} \uC774\uD6C4\uC5D0 \uC0BD\uC785`,insertBefore:e=>`${e.itemText} \uC774\uC804\uC5D0 \uC0BD\uC785`,insertBetween:e=>`${e.beforeItemText} \uBC0F ${e.afterItemText} \uC0AC\uC774\uC5D0 \uC0BD\uC785`},"lt-LT":{dragDescriptionKeyboard:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te vilkti.",dragDescriptionKeyboardAlt:"Paspauskite \u201EAlt + Enter\u201C, kad prad\u0117tum\u0117te vilkti.",dragDescriptionLongPress:"Palaikykite nuspaud\u0119, kad prad\u0117tum\u0117te vilkti.",dragDescriptionTouch:"Palieskite dukart, kad prad\u0117tum\u0117te vilkti.",dragDescriptionVirtual:"Spustel\u0117kite, kad prad\u0117tum\u0117te vilkti.",dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u0105 element\u0105`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite \u201EEnter\u201C, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u0105 element\u0105`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite \u201EAlt + Enter\u201C, kad nuvilktum\u0117te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u0105 element\u0105`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaud\u0119 palaikykite, kad nuvilktum\u0117te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u0105 element\u0105`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:"Prad\u0117ta vilkti. Paspauskite \u201ETab\u201C, kad pereitum\u0117te \u012F tiesiogin\u0119 paskirties viet\u0105, tada paspauskite \u201EEnter\u201C, kad numestum\u0117te, arba \u201EEscape\u201C, kad at\u0161auktum\u0117te.",dragStartedTouch:"Prad\u0117ta vilkti. Eikite \u012F tiesiogin\u0119 paskirties viet\u0105, tada palieskite dukart, kad numestum\u0117te.",dragStartedVirtual:"Prad\u0117ta vilkti. Eikite \u012F tiesiogin\u0119 paskirties viet\u0105 ir spustel\u0117kite arba paspauskite \u201EEnter\u201C, kad numestum\u0117te.",dropCanceled:"Numetimas at\u0161auktas.",dropComplete:"Numesta.",dropDescriptionKeyboard:"Paspauskite \u201EEnter\u201C, kad numestum\u0117te. Paspauskite \u201EEscape\u201C, kad at\u0161auktum\u0117te vilkim\u0105.",dropDescriptionTouch:"Palieskite dukart, kad numestum\u0117te.",dropDescriptionVirtual:"Spustel\u0117kite, kad numestum\u0117te.",dropIndicator:"numetimo indikatorius",dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:"Numesti ant",endDragKeyboard:"Velkama. Paspauskite \u201EEnter\u201C, kad at\u0161auktum\u0117te vilkim\u0105.",endDragTouch:"Velkama. Spustel\u0117kite dukart, kad at\u0161auktum\u0117te vilkim\u0105.",endDragVirtual:"Velkama. Spustel\u0117kite, kad at\u0161auktum\u0117te vilkim\u0105.",insertAfter:e=>`\u012Eterpti po ${e.itemText}`,insertBefore:e=>`\u012Eterpti prie\u0161 ${e.itemText}`,insertBetween:e=>`\u012Eterpti tarp ${e.beforeItemText} ir ${e.afterItemText}`},"lv-LV":{dragDescriptionKeyboard:"Nospiediet Enter, lai s\u0101ktu vilk\u0161anu.",dragDescriptionKeyboardAlt:"Nospiediet tausti\u0146u kombin\u0101ciju Alt+Enter, lai s\u0101ktu vilk\u0161anu.",dragDescriptionLongPress:"Turiet nospiestu, lai s\u0101ktu vilk\u0161anu.",dragDescriptionTouch:"Veiciet dubultsk\u0101rienu, lai s\u0101ktu vilk\u0161anu.",dragDescriptionVirtual:"Noklik\u0161\u0137iniet, lai s\u0101ktu vilk\u0161anu.",dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u012Bto vienumu`,other:()=>`${t.number(e.count)} atlas\u012Btos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet tausti\u0146u Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u012Bto vienumu`,other:()=>`${t.number(e.count)} atlas\u012Btos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet tausti\u0146u kombin\u0101ciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u012Bto vienumu`,other:()=>`${t.number(e.count)} atlas\u012Btos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u012Bto vienumu`,other:()=>`${t.number(e.count)} atlas\u012Btos vienumus`})}.`,dragStartedKeyboard:"Uzs\u0101kta vilk\u0161ana. Nospiediet tausti\u0146u Tab, lai p\u0101rietu uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.",dragStartedTouch:"Uzs\u0101kta vilk\u0161ana. P\u0101rejiet uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam veiciet dubultsk\u0101rienu, lai nomestu.",dragStartedVirtual:"Uzs\u0101kta vilk\u0161ana. P\u0101rejiet uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam nospiediet Enter, lai nomestu.",dropCanceled:"Nome\u0161ana atcelta.",dropComplete:"Nome\u0161ana pabeigta.",dropDescriptionKeyboard:"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilk\u0161anu.",dropDescriptionTouch:"Veiciet dubultsk\u0101rienu, lai nomestu.",dropDescriptionVirtual:"Noklik\u0161\u0137iniet, lai nomestu.",dropIndicator:"nome\u0161anas indikators",dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:"Nometiet uz",endDragKeyboard:"Notiek vilk\u0161ana. Nospiediet Enter, lai atceltu vilk\u0161anu.",endDragTouch:"Notiek vilk\u0161ana. Veiciet dubultsk\u0101rienu, lai atceltu vilk\u0161anu.",endDragVirtual:"Notiek vilk\u0161ana. Noklik\u0161\u0137iniet, lai atceltu vilk\u0161anu.",insertAfter:e=>`Ievietojiet p\u0113c ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`},"nb-NO":{dragDescriptionKeyboard:"Trykk p\xE5 Enter for \xE5 begynne \xE5 dra.",dragDescriptionKeyboardAlt:"Trykk p\xE5 Alt + Enter for \xE5 begynne \xE5 dra.",dragDescriptionLongPress:"Trykk lenge for \xE5 begynne \xE5 dra.",dragDescriptionTouch:"Dobbelttrykk for \xE5 begynne \xE5 dra.",dragDescriptionVirtual:"Klikk for \xE5 begynne \xE5 dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for \xE5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk p\xE5 Alt + Enter for \xE5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for \xE5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Begynte \xE5 dra. Trykk p\xE5 Tab for \xE5 navigere til et m\xE5l, og trykk deretter p\xE5 Enter for \xE5 slippe eller p\xE5 Esc for \xE5 avbryte.",dragStartedTouch:"Begynte \xE5 dra. Naviger til et m\xE5l, og dobbelttrykk for \xE5 slippe.",dragStartedVirtual:"Begynte \xE5 dra. Naviger til et m\xE5l, og klikk eller trykk p\xE5 Enter for \xE5 slippe.",dropCanceled:"Avbr\xF8t slipping.",dropComplete:"Slippingen er fullf\xF8rt.",dropDescriptionKeyboard:"Trykk p\xE5 Enter for \xE5 slippe. Trykk p\xE5 Esc hvis du vil avbryte draingen.",dropDescriptionTouch:"Dobbelttrykk for \xE5 slippe.",dropDescriptionVirtual:"Klikk for \xE5 slippe.",dropIndicator:"slippeindikator",dropOnItem:e=>`Slipp p\xE5 ${e.itemText}`,dropOnRoot:"Slipp p\xE5",endDragKeyboard:"Drar. Trykk p\xE5 Enter hvis du vil avbryte.",endDragTouch:"Drar. Dobbelttrykk hvis du vil avbryte.",endDragVirtual:"Drar. Klikk hvis du vil avbryte.",insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn f\xF8r ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`},"nl-NL":{dragDescriptionKeyboard:"Druk op Enter om te slepen.",dragDescriptionKeyboardAlt:"Druk op Alt + Enter om te slepen.",dragDescriptionLongPress:"Houd lang ingedrukt om te slepen.",dragDescriptionTouch:"Dubbeltik om te slepen.",dragDescriptionVirtual:"Klik om met slepen te starten.",dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.",dragStartedTouch:"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.",dragStartedVirtual:"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.",dropCanceled:"Neerzetten geannuleerd.",dropComplete:"Neerzetten voltooid.",dropDescriptionKeyboard:"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.",dropDescriptionTouch:"Dubbeltik om neer te zetten.",dropDescriptionVirtual:"Klik om neer te zetten.",dropIndicator:"aanwijzer voor neerzetten",dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:"Neerzetten op",endDragKeyboard:"Bezig met slepen. Druk op Enter om te annuleren.",endDragTouch:"Bezig met slepen. Dubbeltik om te annuleren.",endDragVirtual:"Bezig met slepen. Klik om te annuleren.",insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen v\xF3\xF3r ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`},"pl-PL":{dragDescriptionKeyboard:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionKeyboardAlt:"Naci\u015Bnij Alt + Enter, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionLongPress:"Naci\u015Bnij i przytrzymaj, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionTouch:"Dotknij dwukrotnie, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionVirtual:"Kliknij, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragItem:e=>`Przeci\u0105gnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeci\u0105gnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych element\xF3w`})}`,dragSelectedKeyboard:(e,t)=>`Naci\u015Bnij Enter, aby przeci\u0105gn\u0105\u0107 ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naci\u015Bnij Alt + Enter, aby przeci\u0105gn\u0105\u0107 ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragSelectedLongPress:(e,t)=>`Naci\u015Bnij i przytrzymaj, aby przeci\u0105gn\u0105\u0107 ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragStartedKeyboard:"Rozpocz\u0119to przeci\u0105ganie. Naci\u015Bnij Tab, aby wybra\u0107 miejsce docelowe, a nast\u0119pnie naci\u015Bnij Enter, aby upu\u015Bci\u0107, lub Escape, aby anulowa\u0107.",dragStartedTouch:"Rozpocz\u0119to przeci\u0105ganie. Wybierz miejsce, w kt\xF3rym chcesz upu\u015Bci\u0107 element, a nast\u0119pnie dotknij dwukrotnie, aby upu\u015Bci\u0107.F",dragStartedVirtual:"Rozpocz\u0119to przeci\u0105ganie. Wybierz miejsce, w kt\xF3rym chcesz upu\u015Bci\u0107 element, a nast\u0119pnie kliknij lub naci\u015Bnij Enter, aby upu\u015Bci\u0107.",dropCanceled:"Anulowano upuszczenie.",dropComplete:"Zako\u0144czono upuszczanie.",dropDescriptionKeyboard:"Naci\u015Bnij Enter, aby upu\u015Bci\u0107. Naci\u015Bnij Escape, aby anulowa\u0107 przeci\u0105gni\u0119cie.",dropDescriptionTouch:"Dotknij dwukrotnie, aby upu\u015Bci\u0107.",dropDescriptionVirtual:"Kliknij, aby upu\u015Bci\u0107.",dropIndicator:"wska\u017Anik upuszczenia",dropOnItem:e=>`Upu\u015B\u0107 na ${e.itemText}`,dropOnRoot:"Upu\u015B\u0107",endDragKeyboard:"Przeci\u0105ganie. Naci\u015Bnij Enter, aby anulowa\u0107 przeci\u0105gni\u0119cie.",endDragTouch:"Przeci\u0105ganie. Kliknij dwukrotnie, aby anulowa\u0107 przeci\u0105gni\u0119cie.",endDragVirtual:"Przeci\u0105ganie. Kliknij, aby anulowa\u0107 przeci\u0105ganie.",insertAfter:e=>`Umie\u015B\u0107 za ${e.itemText}`,insertBefore:e=>`Umie\u015B\u0107 przed ${e.itemText}`,insertBetween:e=>`Umie\u015B\u0107 mi\u0119dzy ${e.beforeItemText} i ${e.afterItemText}`},"pt-BR":{dragDescriptionKeyboard:"Pressione Enter para come\xE7ar a arrastar.",dragDescriptionKeyboardAlt:"Pressione Alt + Enter para come\xE7ar a arrastar.",dragDescriptionLongPress:"Pressione e segure para come\xE7ar a arrastar.",dragDescriptionTouch:"Toque duas vezes para come\xE7ar a arrastar.",dragDescriptionVirtual:"Clique para come\xE7ar a arrastar.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Comece a arrastar. Pressione Tab para navegar at\xE9 um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.",dragStartedTouch:"Comece a arrastar. Navegue at\xE9 um alvo e toque duas vezes para soltar.",dragStartedVirtual:"Comece a arrastar. Navegue at\xE9 um alvo e clique ou pressione Enter para soltar.",dropCanceled:"Libera\xE7\xE3o cancelada.",dropComplete:"Libera\xE7\xE3o conclu\xEDda.",dropDescriptionKeyboard:"Pressione Enter para soltar. Pressione Escape para cancelar.",dropDescriptionTouch:"Toque duas vezes para soltar.",dropDescriptionVirtual:"Clique para soltar.",dropIndicator:"indicador de libera\xE7\xE3o",dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:"Soltar",endDragKeyboard:"Arrastando. Pressione Enter para cancelar.",endDragTouch:"Arrastando. Toque duas vezes para cancelar.",endDragVirtual:"Arrastando. Clique para cancelar.",insertAfter:e=>`Inserir ap\xF3s ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`},"pt-PT":{dragDescriptionKeyboard:"Prima Enter para iniciar o arrasto.",dragDescriptionKeyboardAlt:"Prima Alt + Enter para iniciar o arrasto.",dragDescriptionLongPress:"Prima longamente para come\xE7ar a arrastar.",dragDescriptionTouch:"Fa\xE7a duplo toque para come\xE7ar a arrastar.",dragDescriptionVirtual:"Clique para iniciar o arrasto.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Arrasto iniciado. Prima a tecla de tabula\xE7\xE3o para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.",dragStartedTouch:"Arrasto iniciado. Navegue para um destino para largar, e em seguida fa\xE7a duplo toque para largar.",dragStartedVirtual:"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.",dropCanceled:"Largar cancelado.",dropComplete:"Largar completo.",dropDescriptionKeyboard:"Prima Enter para largar. Prima Escape para cancelar o arrasto.",dropDescriptionTouch:"Fa\xE7a duplo toque para largar.",dropDescriptionVirtual:"Clique para largar.",dropIndicator:"Indicador de largar",dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:"Largar em",endDragKeyboard:"A arrastar. Prima Enter para cancelar o arrasto.",endDragTouch:"A arrastar. Fa\xE7a duplo toque para cancelar o arrasto.",endDragVirtual:"A arrastar. Clique para cancelar o arrasto.",insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`},"ro-RO":{dragDescriptionKeyboard:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe glisarea.",dragDescriptionKeyboardAlt:"Ap\u0103sa\u021Bi pe Alt + Enter pentru a \xEEncepe glisarea.",dragDescriptionLongPress:"Ap\u0103sa\u021Bi lung pentru a \xEEncepe glisarea.",dragDescriptionTouch:"Atinge\u021Bi de dou\u0103 ori pentru a \xEEncepe s\u0103 glisa\u021Bi.",dragDescriptionVirtual:"Face\u021Bi clic pentru a \xEEncepe glisarea.",dragItem:e=>`Glisa\u021Bi ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisa\u021Bi ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Ap\u0103sa\u021Bi pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ap\u0103sa\u021Bi pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Ap\u0103sa\u021Bi lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:"A \xEEnceput glisarea. Ap\u0103sa\u021Bi pe Tab pentru a naviga la o \u021Bint\u0103 de fixare, apoi ap\u0103sa\u021Bi pe Enter pentru a fixa sau ap\u0103sa\u021Bi pe Escape pentru a anula glisarea.",dragStartedTouch:"A \xEEnceput glisarea. Naviga\u021Bi la o \u021Bint\u0103 de fixare, apoi atinge\u021Bi de dou\u0103 ori pentru a fixa.",dragStartedVirtual:"A \xEEnceput glisarea. Naviga\u021Bi la o \u021Bint\u0103 de fixare, apoi face\u021Bi clic sau ap\u0103sa\u021Bi pe Enter pentru a fixa.",dropCanceled:"Fixare anulat\u0103.",dropComplete:"Fixare finalizat\u0103.",dropDescriptionKeyboard:"Ap\u0103sa\u021Bi pe Enter pentru a fixa. Ap\u0103sa\u021Bi pe Escape pentru a anula glisarea.",dropDescriptionTouch:"Atinge\u021Bi de dou\u0103 ori pentru a fixa.",dropDescriptionVirtual:"Face\u021Bi clic pentru a fixa.",dropIndicator:"indicator de fixare",dropOnItem:e=>`Fixa\u021Bi pe ${e.itemText}`,dropOnRoot:"Fixare pe",endDragKeyboard:"Se gliseaz\u0103. Ap\u0103sa\u021Bi pe Enter pentru a anula glisarea.",endDragTouch:"Se gliseaz\u0103. Atinge\u021Bi de dou\u0103 ori pentru a anula glisarea.",endDragVirtual:"Se gliseaz\u0103. Face\u021Bi clic pentru a anula glisarea.",insertAfter:e=>`Insera\u021Bi dup\u0103 ${e.itemText}`,insertBefore:e=>`Insera\u021Bi \xEEnainte de ${e.itemText}`,insertBetween:e=>`Insera\u021Bi \xEEntre ${e.beforeItemText} \u0219i ${e.afterItemText}`},"ru-RU":{dragDescriptionKeyboard:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + Enter, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u0442\u044C.",dragDescriptionLongPress:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u0442\u044C.",dragDescriptionTouch:"\u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragDescriptionVirtual:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragItem:e=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C ${e.itemText}`,dragSelectedItems:(e,t)=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C`})}`,dragSelectedKeyboard:(e,t)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Enter \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + Enter \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragSelectedLongPress:(e,t)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragStartedKeyboard:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Tab \u0434\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0446\u0435\u043B\u0438, \u0437\u0430\u0442\u0435\u043C \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435, \u0438\u043B\u0438 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Escape \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F.",dragStartedTouch:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0446\u0435\u043B\u044C, \u0437\u0430\u0442\u0435\u043C \u0434\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dragStartedVirtual:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Tab \u0434\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0446\u0435\u043B\u0438, \u0437\u0430\u0442\u0435\u043C \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropCanceled:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043E.",dropComplete:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Escape \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",dropDescriptionTouch:"\u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropDescriptionVirtual:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropIndicator:"\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F",dropOnItem:e=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u043D\u0430 ${e.itemText}`,dropOnRoot:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u043D\u0430",endDragKeyboard:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",endDragTouch:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",endDragVirtual:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",insertAfter:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u0441\u043B\u0435 ${e.itemText}`,insertBefore:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0434 ${e.itemText}`,insertBetween:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0436\u0434\u0443 ${e.beforeItemText} \u0438 ${e.afterItemText}`},"sk-SK":{dragDescriptionKeyboard:"Stla\u010Den\xEDm kl\xE1vesu Enter za\u010Dnete pres\xFAvanie.",dragDescriptionKeyboardAlt:"Stla\u010Den\xEDm kl\xE1vesov Alt + Enter za\u010Dnete pres\xFAvanie.",dragDescriptionLongPress:"Dlh\xFDm stla\u010Den\xEDm za\u010Dnete pres\xFAvanie.",dragDescriptionTouch:"Dvojit\xFDm kliknut\xEDm za\u010Dnete pres\xFAvanie.",dragDescriptionVirtual:"Kliknut\xEDm za\u010Dnete pres\xFAvanie.",dragItem:e=>`Presun\xFA\u0165 polo\u017Eku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presun\xFA\u0165 ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xFA polo\u017Eku`,other:()=>`${t.number(e.count)} vybrat\xE9 polo\u017Eky`})}`,dragSelectedKeyboard:(e,t)=>`Stla\u010Den\xEDm kl\xE1vesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xFA polo\u017Eku`,other:()=>`${t.number(e.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stla\u010Den\xEDm kl\xE1vesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xFA polo\u017Eku`,other:()=>`${t.number(e.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragSelectedLongPress:(e,t)=>`Dlh\xFDm stla\u010Den\xEDm presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xFA polo\u017Eku`,other:()=>`${t.number(e.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragStartedKeyboard:"Pres\xFAvanie sa za\u010Dalo. Do cie\u013Eov\xE9ho umiestnenia prejdete stla\u010Den\xEDm kl\xE1vesu Tab. Ak chcete polo\u017Eku umiestni\u0165, stla\u010Dte kl\xE1ves Enter alebo stla\u010Dte kl\xE1ves Esc, ak chcete pres\xFAvanie zru\u0161i\u0165.",dragStartedTouch:"Pres\xFAvanie sa za\u010Dalo. Prejdite na cie\u013Eov\xE9 umiestnenie a dvojit\xFDm kliknut\xEDm umiestnite polo\u017Eku.",dragStartedVirtual:"Pres\xFAvanie sa za\u010Dalo. Prejdite na cie\u013Eov\xE9 umiestnenie a kliknut\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Enter umiestnite polo\u017Eku.",dropCanceled:"Umiestnenie zru\u0161en\xE9.",dropComplete:"Umiestnenie dokon\u010Den\xE9.",dropDescriptionKeyboard:"Stla\u010Den\xEDm kl\xE1vesu Enter umiestnite polo\u017Eku. Stla\u010Den\xEDm kl\xE1vesu Esc zru\u0161\xEDte pres\xFAvanie.",dropDescriptionTouch:"Dvojit\xFDm kliknut\xEDm umiestnite polo\u017Eku.",dropDescriptionVirtual:"Kliknut\xEDm umiestnite polo\u017Eku.",dropIndicator:"indik\xE1tor umiestnenia",dropOnItem:e=>`Umiestni\u0165 na polo\u017Eku ${e.itemText}`,dropOnRoot:"Umiestni\u0165 na",endDragKeyboard:"Prebieha pres\xFAvanie. Ak ho chcete zru\u0161i\u0165, stla\u010Dte kl\xE1ves Enter.",endDragTouch:"Prebieha pres\xFAvanie. Dvojit\xFDm kliknut\xEDm ho m\xF4\u017Eete zru\u0161i\u0165.",endDragVirtual:"Prebieha pres\xFAvanie.",insertAfter:e=>`Vlo\u017Ei\u0165 za polo\u017Eku ${e.itemText}`,insertBefore:e=>`Vlo\u017Ei\u0165 pred polo\u017Eku ${e.itemText}`,insertBetween:e=>`Vlo\u017Ei\u0165 medzi polo\u017Eky ${e.beforeItemText} a ${e.afterItemText}`},"sl-SI":{dragDescriptionKeyboard:"Pritisnite tipko Enter za za\u010Detek vle\u010Denja.",dragDescriptionKeyboardAlt:"Pritisnite tipki Alt + Enter za za\u010Detek vle\u010Denja.",dragDescriptionLongPress:"Pritisnite in zadr\u017Eite za za\u010Detek vle\u010Denja.",dragDescriptionTouch:"Dvotapnite za za\u010Detek vle\u010Denja.",dragDescriptionVirtual:"Kliknite za za\u010Detek vle\u010Denja.",dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povle\u010Dete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povle\u010Dete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadr\u017Eite, da povle\u010Dete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:"Vle\u010Denje se je za\u010Delo. Pritisnite tipko Tab za pomik na mesto, kamor \u017Eelite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekli\u010Dete postopek.",dragStartedTouch:"Vle\u010Denje se je za\u010Delo. Pomaknite se na mesto, kamor \u017Eelite spustiti elemente, in dvotapnite, da jih spustite.",dragStartedVirtual:"Vle\u010Denje se je za\u010Delo. Pomaknite se na mesto, kamor \u017Eelite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.",dropCanceled:"Spust je preklican.",dropComplete:"Spust je kon\u010Dan.",dropDescriptionKeyboard:"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekli\u010Dete vle\u010Denje.",dropDescriptionTouch:"Dvotapnite, da spustite.",dropDescriptionVirtual:"Kliknite, da spustite.",dropIndicator:"indikator spusta",dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:"Spusti na mesto",endDragKeyboard:"Vle\u010Denje. Pritisnite tipko Enter za preklic vle\u010Denja.",endDragTouch:"Vle\u010Denje. Dvotapnite za preklic vle\u010Denja.",endDragVirtual:"Vle\u010Denje. Kliknite, da prekli\u010Dete vle\u010Denje.",insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`},"sr-SP":{dragDescriptionKeyboard:"Pritisnite Enter da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionLongPress:"Pritisnite dugo da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionTouch:"Dvaput dodirnite da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionVirtual:"Kliknite da biste zapo\u010Deli prevla\u010Denje.",dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:"Prevla\u010Denje je zapo\u010Deto. Pritisnite Tab da biste oti\u0161li do cilja za otpu\u0161tanje, zatim pritisnite Enter za ispu\u0161tanje ili pritisnite Escape za otkazivanje.",dragStartedTouch:"Prevla\u010Denje je zapo\u010Deto. Idite do cilja za otpu\u0161tanje, a zatim dvaput dodirnite za otpu\u0161tanje.",dragStartedVirtual:"Prevla\u010Denje je zapo\u010Deto. Idite do cilja za otpu\u0161tanje, a zatim kliknite ili pritinite Enter za otpu\u0161tanje.",dropCanceled:"Otpu\u0161tanje je otkazano.",dropComplete:"Prevla\u010Denje je zavr\u0161eno.",dropDescriptionKeyboard:"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevla\u010Denje.",dropDescriptionTouch:"Dvaput dodirnite za otpu\u0161tanje.",dropDescriptionVirtual:"Kliknite za otpu\u0161tanje.",dropIndicator:"Indikator otpu\u0161tanja",dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:"Otpusti na",endDragKeyboard:"Prevla\u010Denje u toku. Pritisnite Enter da biste otkazali prevla\u010Denje.",endDragTouch:"Prevla\u010Denje u toku. Dvaput dodirnite da biste otkazali prevla\u010Denje.",endDragVirtual:"Prevla\u010Denje u toku. Kliknite da biste otkazali prevla\u010Denje.",insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite izme\u0111u ${e.beforeItemText} i ${e.afterItemText}`},"sv-SE":{dragDescriptionKeyboard:"Tryck p\xE5 enter f\xF6r att b\xF6rja dra.",dragDescriptionKeyboardAlt:"Tryck p\xE5 Alt + Retur f\xF6r att b\xF6rja dra.",dragDescriptionLongPress:"Tryck l\xE4nge f\xF6r att b\xF6rja dra.",dragDescriptionTouch:"Dubbeltryck f\xF6r att b\xF6rja dra.",dragDescriptionVirtual:"Klicka f\xF6r att b\xF6rja dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck p\xE5 Retur f\xF6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck p\xE5 Alt + Retur f\xF6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck l\xE4nge f\xF6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:"B\xF6rja dra. Tryck p\xE5 tabb f\xF6r att navigera till m\xE5let, tryck p\xE5 enter f\xF6r att sl\xE4ppa eller p\xE5 escape f\xF6r att avbryta.",dragStartedTouch:"B\xF6rja dra. Navigera till ett m\xE5l och dubbeltryck f\xF6r att sl\xE4ppa.",dragStartedVirtual:"B\xF6rja dra. Navigera till ett m\xE5l och klicka eller tryck p\xE5 enter f\xF6r att sl\xE4ppa.",dropCanceled:"Sl\xE4pp\xE5tg\xE4rd avbr\xF6ts.",dropComplete:"Sl\xE4pp\xE5tg\xE4rd klar.",dropDescriptionKeyboard:"Tryck p\xE5 enter f\xF6r att sl\xE4ppa. Tryck p\xE5 escape f\xF6r att avbryta drag\xE5tg\xE4rd.",dropDescriptionTouch:"Dubbeltryck f\xF6r att sl\xE4ppa.",dropDescriptionVirtual:"Klicka f\xF6r att sl\xE4ppa.",dropIndicator:"sl\xE4ppindikator",dropOnItem:e=>`Sl\xE4pp p\xE5 ${e.itemText}`,dropOnRoot:"Sl\xE4pp p\xE5",endDragKeyboard:"Drar. Tryck p\xE5 enter f\xF6r att avbryta drag\xE5tg\xE4rd.",endDragTouch:"Drar. Dubbeltryck f\xF6r att avbryta drag\xE5tg\xE4rd.",endDragVirtual:"Drar. Klicka f\xF6r att avbryta drag\xE5tg\xE4rd.",insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga f\xF6re ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`},"tr-TR":{dragDescriptionKeyboard:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in Enter'a bas\u0131n.",dragDescriptionKeyboardAlt:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in Alt + Enter'a bas\u0131n.",dragDescriptionLongPress:"S\xFCr\xFCklemeye ba\u015Flamak i\xE7in uzun bas\u0131n.",dragDescriptionTouch:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in \xE7ift t\u0131klay\u0131n.",dragDescriptionVirtual:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in t\u0131klay\u0131n.",dragItem:e=>`${e.itemText}\u2019i s\xFCr\xFCkle`,dragSelectedItems:(e,t)=>`S\xFCr\xFCkle ${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xE7ili \xF6ge`,other:()=>`${t.number(e.count)} se\xE7ili \xF6ge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in Enter'a bas\u0131n.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in Alt + Enter tu\u015Funa bas\u0131n.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in uzun bas\u0131n.`,dragStartedKeyboard:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gitmek i\xE7in Tab\u2019a bas\u0131n, ard\u0131ndan b\u0131rakmak i\xE7in Enter\u2019a bas\u0131n veya iptal etmek i\xE7in Escape\u2019e bas\u0131n.",dragStartedTouch:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gidin, ard\u0131ndan b\u0131rakmak i\xE7in \xE7ift t\u0131klay\u0131n.",dragStartedVirtual:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gidin, ard\u0131ndan b\u0131rakmak i\xE7in Enter\u2019a t\u0131klay\u0131n veya bas\u0131n.",dropCanceled:"B\u0131rakma iptal edildi.",dropComplete:"B\u0131rakma tamamland\u0131.",dropDescriptionKeyboard:"B\u0131rakmak i\xE7in Enter'a bas\u0131n. S\xFCr\xFCklemeyi iptal etmek i\xE7in Escape'e bas\u0131n.",dropDescriptionTouch:"B\u0131rakmak i\xE7in \xE7ift t\u0131klay\u0131n.",dropDescriptionVirtual:"B\u0131rakmak i\xE7in t\u0131klay\u0131n.",dropIndicator:"b\u0131rakma g\xF6stergesi",dropOnItem:e=>`${e.itemText} \xFCzerine b\u0131rak`,dropOnRoot:"B\u0131rak\u0131n",endDragKeyboard:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in Enter'a bas\u0131n.",endDragTouch:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in \xE7ift t\u0131klay\u0131n.",endDragVirtual:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in t\u0131klay\u0131n.",insertAfter:e=>`${e.itemText}\u2019den sonra gir`,insertBefore:e=>`${e.itemText}\u2019den \xF6nce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} aras\u0131na gir`},"uk-UA":{dragDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Alt + Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionLongPress:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0456 \u0443\u0442\u0440\u0438\u043C\u0443\u0439\u0442\u0435, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionVirtual:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragItem:e=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${e.itemText}`,dragSelectedItems:(e,t)=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C`})}`,dragSelectedKeyboard:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Alt + Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragSelectedLongPress:(e,t)=>`\u0423\u0442\u0440\u0438\u043C\u0443\u0439\u0442\u0435, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragStartedKeyboard:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Tab, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438, \u0430\u0431\u043E Escape, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438.",dragStartedTouch:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dragStartedVirtual:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropCanceled:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u0441\u043A\u0430\u0441\u043E\u0432\u0430\u043D\u043E.",dropComplete:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Escape, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dropDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropDescriptionVirtual:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropIndicator:"\u0456\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F",dropOnItem:e=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 \u043D\u0430 ${e.itemText}`,dropOnRoot:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 \u043D\u0430",endDragKeyboard:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",endDragTouch:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",endDragVirtual:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",insertAfter:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043F\u0456\u0441\u043B\u044F ${e.itemText}`,insertBefore:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043F\u0435\u0440\u0435\u0434 ${e.itemText}`,insertBetween:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043C\u0456\u0436 ${e.beforeItemText} \u0456 ${e.afterItemText}`},"zh-CN":{dragDescriptionKeyboard:"\u6309 Enter \u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionKeyboardAlt:"\u6309 Alt + Enter \u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionLongPress:"\u957F\u6309\u4EE5\u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionTouch:"\u53CC\u51FB\u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionVirtual:"\u5355\u51FB\u5F00\u59CB\u62D6\u52A8\u3002",dragItem:e=>`\u62D6\u52A8 ${e.itemText}`,dragSelectedItems:(e,t)=>`\u62D6\u52A8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u9009\u4E2D\u9879\u76EE`,other:()=>`${t.number(e.count)} \u9009\u4E2D\u9879\u76EE`})}`,dragSelectedKeyboard:(e,t)=>`\u6309 Enter \u4EE5\u62D6\u52A8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragSelectedKeyboardAlt:(e,t)=>`\u6309 Alt + Enter \u4EE5\u62D6\u52A8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragSelectedLongPress:(e,t)=>`\u957F\u6309\u4EE5\u62D6\u52A8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragStartedKeyboard:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u6309 Tab \u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u6309 Enter \u653E\u7F6E\u6216\u6309 Escape \u53D6\u6D88\u3002",dragStartedTouch:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u53CC\u51FB\u653E\u7F6E\u3002",dragStartedVirtual:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u5355\u51FB\u6216\u6309 Enter \u653E\u7F6E\u3002",dropCanceled:"\u653E\u7F6E\u5DF2\u53D6\u6D88\u3002",dropComplete:"\u653E\u7F6E\u5DF2\u5B8C\u6210\u3002",dropDescriptionKeyboard:"\u6309 Enter \u653E\u7F6E\u3002\u6309 Escape \u53D6\u6D88\u62D6\u52A8\u3002",dropDescriptionTouch:"\u53CC\u51FB\u653E\u7F6E\u3002",dropDescriptionVirtual:"\u5355\u51FB\u653E\u7F6E\u3002",dropIndicator:"\u653E\u7F6E\u6807\u8BB0",dropOnItem:e=>`\u653E\u7F6E\u4E8E ${e.itemText}`,dropOnRoot:"\u653E\u7F6E\u4E8E",endDragKeyboard:"\u6B63\u5728\u62D6\u52A8\u3002\u6309 Enter \u53D6\u6D88\u62D6\u52A8\u3002",endDragTouch:"\u6B63\u5728\u62D6\u52A8\u3002\u53CC\u51FB\u53D6\u6D88\u62D6\u52A8\u3002",endDragVirtual:"\u6B63\u5728\u62D6\u52A8\u3002\u5355\u51FB\u53D6\u6D88\u62D6\u52A8\u3002",insertAfter:e=>`\u63D2\u5165\u5230 ${e.itemText} \u4E4B\u540E`,insertBefore:e=>`\u63D2\u5165\u5230 ${e.itemText} \u4E4B\u524D`,insertBetween:e=>`\u63D2\u5165\u5230 ${e.beforeItemText} \u548C ${e.afterItemText} \u4E4B\u95F4`},"zh-TW":{dragDescriptionKeyboard:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionKeyboardAlt:"\u6309 Alt+Enter \u9375\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionLongPress:"\u9577\u6309\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionTouch:"\u8F15\u9EDE\u5169\u4E0B\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionVirtual:"\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragItem:e=>`\u62D6\u66F3\u300C${e.itemText}\u300D`,dragSelectedItems:(e,t)=>`\u62D6\u66F3 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}`,dragSelectedKeyboard:(e,t)=>`\u6309 Enter \u9375\u4EE5\u62D6\u66F3 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragSelectedKeyboardAlt:(e,t)=>`\u6309 Alt+Enter \u9375\u4EE5\u62D6\u66F3 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragSelectedLongPress:(e,t)=>`\u9577\u6309\u4EE5\u62D6\u66F3 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragStartedKeyboard:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u6309 Tab \u9375\u4EE5\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u6309 Enter \u9375\u4EE5\u653E\u7F6E\uFF0C\u6216\u6309 Escape \u9375\u4EE5\u53D6\u6D88\u3002",dragStartedTouch:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u8F15\u9EDE\u5169\u4E0B\u4EE5\u653E\u7F6E\u3002",dragStartedVirtual:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u6309\u4E00\u4E0B\u6ED1\u9F20\u6216\u6309 Enter \u9375\u4EE5\u653E\u7F6E\u3002",dropCanceled:"\u653E\u7F6E\u5DF2\u53D6\u6D88\u3002",dropComplete:"\u653E\u7F6E\u5DF2\u5B8C\u6210\u3002",dropDescriptionKeyboard:"\u6309 Enter \u9375\u4EE5\u653E\u7F6E\u3002\u6309 Escape \u9375\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",dropDescriptionTouch:"\u8F15\u9EDE\u5169\u4E0B\u4EE5\u653E\u7F6E\u3002",dropDescriptionVirtual:"\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u653E\u7F6E\u3002",dropIndicator:"\u653E\u7F6E\u6307\u793A\u5668",dropOnItem:e=>`\u653E\u7F6E\u5728\u300C${e.itemText}\u300D\u4E0A`,dropOnRoot:"\u653E\u7F6E\u5728",endDragKeyboard:"\u62D6\u66F3\u4E2D\u3002\u6309 Enter \u9375\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",endDragTouch:"\u62D6\u66F3\u4E2D\u3002\u8F15\u9EDE\u5169\u4E0B\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",endDragVirtual:"\u62D6\u66F3\u4E2D\u3002\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",insertAfter:e=>`\u63D2\u5165\u81F3\u300C${e.itemText}\u300D\u4E4B\u5F8C`,insertBefore:e=>`\u63D2\u5165\u81F3\u300C${e.itemText}\u300D\u4E4B\u524D`,insertBetween:e=>`\u63D2\u5165\u81F3\u300C${e.beforeItemText}\u300D\u548C\u300C${e.afterItemText}\u300D\u4E4B\u9593`}};var oU={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function kf(e){let t=Te(vi,"@react-aria/dnd"),r=Zl(),o=Ql();return {dropProps:{...Dt(o?t.format(oU[r]):"",e),onClick:()=>{}}}}var aU=800;function _a(e){let{hasDropButton:t,isDisabled:r}=e,[o,n]=useState(false),i=useRef({x:0,y:0,dragOverElements:new Set,dropEffect:"none",allowedOperations:7,dropActivateTimer:void 0}).current,a=h=>{if(n(true),typeof e.onDropEnter=="function"){let v=h.currentTarget.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:h.clientX-v.x,y:h.clientY-v.y});}},l=h=>{if(n(false),typeof e.onDropExit=="function"){let v=h.currentTarget.getBoundingClientRect();e.onDropExit({type:"dropexit",x:h.clientX-v.x,y:h.clientY-v.y});}},s=h=>{h.preventDefault(),h.stopPropagation();let v=Yz(h);if(h.clientX===i.x&&h.clientY===i.y&&v===i.allowedOperations){h.dataTransfer.dropEffect=i.dropEffect;return}i.x=h.clientX,i.y=h.clientY;let C=i.dropEffect;if(v!==i.allowedOperations){let T=Vx(v),P=T[0];if(typeof e.getDropOperation=="function"){let k=new Ra(h.dataTransfer);P=Ef(v,e.getDropOperation(k,T));}i.dropEffect=hf[P]||"none";}if(typeof e.getDropOperationForPoint=="function"){let T=new Ra(h.dataTransfer),P=h.currentTarget.getBoundingClientRect(),k=Ef(v,e.getDropOperationForPoint(T,Vx(v),i.x-P.x,i.y-P.y));i.dropEffect=hf[k]||"none";}if(i.allowedOperations=v,h.dataTransfer.dropEffect=i.dropEffect,i.dropEffect==="none"&&C!=="none"?l(h):i.dropEffect!=="none"&&C==="none"&&a(h),typeof e.onDropMove=="function"&&i.dropEffect!=="none"){let T=h.currentTarget.getBoundingClientRect();e.onDropMove({type:"dropmove",x:i.x-T.x,y:i.y-T.y});}if(clearTimeout(i.dropActivateTimer),e.onDropActivate&&typeof e.onDropActivate=="function"&&i.dropEffect!=="none"){let T=e.onDropActivate,P=h.currentTarget.getBoundingClientRect();i.dropActivateTimer=setTimeout(()=>{T({type:"dropactivate",x:i.x-P.x,y:i.y-P.y});},aU);}},u=h=>{if(h.preventDefault(),h.stopPropagation(),i.dragOverElements.add($(h)),i.dragOverElements.size>1)return;let v=Yz(h),C=Vx(v),T=C[0];if(typeof e.getDropOperation=="function"){let P=new Ra(h.dataTransfer);T=Ef(v,e.getDropOperation(P,C));}if(typeof e.getDropOperationForPoint=="function"){let P=new Ra(h.dataTransfer),k=h.currentTarget.getBoundingClientRect();T=Ef(v,e.getDropOperationForPoint(P,C,h.clientX-k.x,h.clientY-k.y));}i.x=h.clientX,i.y=h.clientY,i.allowedOperations=v,i.dropEffect=hf[T]||"none",h.dataTransfer.dropEffect=i.dropEffect,T!=="cancel"&&a(h);},c=h=>{h.preventDefault(),h.stopPropagation();let v=$(h);if(i.dragOverElements.delete(v),v===h.currentTarget)for(let C of i.dragOverElements)Z(h.currentTarget,C)||i.dragOverElements.delete(C);i.dragOverElements.size>0||(i.dropEffect!=="none"&&l(h),clearTimeout(i.dropActivateTimer));},d=h=>{if(h.preventDefault(),h.stopPropagation(),Jl(i.dropEffect),typeof e.onDrop=="function"){let C=wa[i.dropEffect],T=xf(h.dataTransfer),P=h.currentTarget.getBoundingClientRect(),k={type:"drop",x:h.clientX-P.x,y:h.clientY-P.y,items:T,dropOperation:C};e.onDrop(k);}let v={...vt};i.dragOverElements.clear(),l(h),clearTimeout(i.dropActivateTimer),v.draggingCollectionRef==null?Jl(void 0):Uz(v);},p=De(h=>{typeof e.onDropEnter=="function"&&e.onDropEnter(h);}),m=De(h=>{typeof e.onDropExit=="function"&&e.onDropExit(h);}),f=De(h=>{typeof e.onDropActivate=="function"&&e.onDropActivate(h);}),y=De(h=>{typeof e.onDrop=="function"&&e.onDrop(h);}),b=De((h,v)=>e.getDropOperation?e.getDropOperation(h,v):v[0]),{ref:g}=e;re(()=>{if(!(r||!g.current))return Df({element:g.current,getDropOperation:b,onDropEnter(h){n(true),p(h);},onDropExit(h){n(false),m(h);},onDrop:y,onDropActivate:f})},[r,g]);let{dropProps:x}=kf(g);return r?{dropProps:{},dropButtonProps:{isDisabled:true},isDropTarget:false}:{dropProps:{...!t&&x,onDragEnter:u,onDragOver:s,onDragLeave:c,onDrop:d},dropButtonProps:{...t&&x},isDropTarget:o}}function Yz(e){let t=_x[e.dataTransfer.effectAllowed];Cf&&(t&=Cf);let r=0;return Ct()?(e.altKey&&(r|=2),e.ctrlKey&&!Wi()&&(r|=4),e.metaKey&&(r|=1)):(e.altKey&&(r|=4),e.shiftKey&&(r|=1),e.ctrlKey&&(r|=2)),r?t&r:t}function Vx(e){let t=[];return e&1&&t.push("move"),e&2&&t.push("copy"),e&4&&t.push("link"),t}function Ef(e,t){let r=za[t];return e&r?t:"cancel"}var Bx=new Map;function ts(e,t,r){let o=Bx.get(e);o||(o=new Map,Bx.set(e,o));let n=o.get(t);if(!n){let i=new Set,a=l=>{for(let s of i)s(l);};n={listener:a,handlers:i},o.set(t,n),e.addEventListener(t,a);}return n.handlers.add(r),()=>{n.handlers.delete(r),n.handlers.size===0&&(e.removeEventListener(t,n.listener),o.delete(t),o.size===0&&Bx.delete(e));}}function Oc(e){let{isDisabled:t}=e,r=useRef(false),[o,n]=useState(null),{focusProps:i}=tr({onFocus:p=>{n(U($(p)));},onFocusChange:p=>{r.current=p;}}),a=De(p=>{r.current&&e.getItems&&p.preventDefault();}),l=De(p=>{!r.current||!e.getItems||(p.preventDefault(),p.clipboardData&&(Lc(p.clipboardData,e.getItems({action:"copy"})),e.onCopy?.()));}),s=De(p=>{r.current&&e.onCut&&e.getItems&&p.preventDefault();}),u=De(p=>{!r.current||!e.onCut||!e.getItems||(p.preventDefault(),p.clipboardData&&(Lc(p.clipboardData,e.getItems({action:"cut"})),e.onCut()));}),c=De(p=>{r.current&&e.onPaste&&p.preventDefault();}),d=De(p=>{if(!(!r.current||!e.onPaste)&&(p.preventDefault(),p.clipboardData)){let m=xf(p.clipboardData);e.onPaste(m);}});return useEffect(()=>{if(!(t||!o))return Ye(ts(o,"beforecopy",a),ts(o,"copy",l),ts(o,"beforecut",s),ts(o,"cut",u),ts(o,"beforepaste",c),ts(o,"paste",d))},[t,o]),{clipboardProps:i}}var rs=forwardRef(function(t,r){let{onSelect:o,acceptedFileTypes:n,allowsMultiple:i,defaultCamera:a,children:l,acceptDirectory:s,...u}=t,c=pe(r),d=oe(u,{global:true});return jsxs(Fragment,{children:[jsx(_r,{onPress:()=>{c.current?.value&&(c.current.value=""),c.current?.click();},children:l}),jsx(rE,{...d,className:"",type:"file",ref:c,style:{display:"none"},accept:n?.toString(),onChange:p=>o?.($(p).files),capture:a,multiple:i,webkitdirectory:s?"":void 0})]})});var Nc=new WeakMap;function Fc(e,t){let{id:r}=Nc.get(e)??{};if(!r)throw new Error("Unknown list");return `${r}-${mU(t)}`}function mU(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var os={"ar-AE":{deselectedItem:e=>`${e.item} \u063A\u064A\u0631 \u0627\u0644\u0645\u062D\u062F\u062F`,longPressToSelect:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u064B\u0627 \u0644\u0644\u062F\u062E\u0648\u0644 \u0625\u0644\u0649 \u0648\u0636\u0639 \u0627\u0644\u062A\u062D\u062F\u064A\u062F.",select:"\u062A\u062D\u062F\u064A\u062F",selectedAll:"\u062C\u0645\u064A\u0639 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062D\u062F\u062F\u0629.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u0644\u0645 \u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F \u0639\u0646\u0627\u0635\u0631",one:()=>`${t.number(e.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`,other:()=>`${t.number(e.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`})}.`,selectedItem:e=>`${e.item} \u0627\u0644\u0645\u062D\u062F\u062F`},"bg-BG":{deselectedItem:e=>`${e.item} \u043D\u0435 \u0435 \u0438\u0437\u0431\u0440\u0430\u043D.`,longPressToSelect:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0438 \u0437\u0430\u0434\u0440\u044A\u0436\u0442\u0435 \u0437\u0430 \u0434\u0430 \u0432\u043B\u0435\u0437\u0435\u0442\u0435 \u0432 \u0438\u0437\u0431\u0438\u0440\u0430\u0442\u0435\u043B\u0435\u043D \u0440\u0435\u0436\u0438\u043C.",select:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435",selectedAll:"\u0412\u0441\u0438\u0447\u043A\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u041D\u044F\u043C\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438",one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,selectedItem:e=>`${e.item} \u0438\u0437\u0431\u0440\u0430\u043D.`},"cs-CZ":{deselectedItem:e=>`Polo\u017Eka ${e.item} nen\xED vybr\xE1na.`,longPressToSelect:"Dlouh\xFDm stisknut\xEDm p\u0159ejdete do re\u017Eimu v\xFDb\u011Bru.",select:"Vybrat",selectedAll:"Vybr\xE1ny v\u0161echny polo\u017Eky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybr\xE1ny \u017E\xE1dn\xE9 polo\u017Eky",one:()=>`Vybr\xE1na ${t.number(e.count)} polo\u017Eka`,other:()=>`Vybr\xE1no ${t.number(e.count)} polo\u017Eek`})}.`,selectedItem:e=>`Vybr\xE1na polo\u017Eka ${e.item}.`},"da-DK":{deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"V\xE6lg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`},"de-DE":{deselectedItem:e=>`${e.item} nicht ausgew\xE4hlt.`,longPressToSelect:"Gedr\xFCckt halten, um Auswahlmodus zu \xF6ffnen.",select:"Ausw\xE4hlen",selectedAll:"Alle Elemente ausgew\xE4hlt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgew\xE4hlt",one:()=>`${t.number(e.count)} Element ausgew\xE4hlt`,other:()=>`${t.number(e.count)} Elemente ausgew\xE4hlt`})}.`,selectedItem:e=>`${e.item} ausgew\xE4hlt.`},"el-GR":{deselectedItem:e=>`\u0394\u03B5\u03BD \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 \u03C4\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF ${e.item}.`,longPressToSelect:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BC\u03C0\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2.",select:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",selectedAll:"\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u0394\u03B5\u03BD \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",one:()=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${t.number(e.count)} \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD ${t.number(e.count)} \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,selectedItem:e=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 \u03C4\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF ${e.item}.`},"en-US":{deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."},"es-ES":{deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selecci\xF3n.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ning\xFAn elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`},"et-EE":{deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikure\u017Eiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"K\xF5ik \xFCksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\xDCksusi pole valitud",one:()=>`${t.number(e.count)} \xFCksus valitud`,other:()=>`${t.number(e.count)} \xFCksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`},"fi-FI":{deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitk\xE4\xE4n.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yht\xE4\xE4n kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`},"fr-FR":{deselectedItem:e=>`${e.item} non s\xE9lectionn\xE9.`,longPressToSelect:"Appuyez de mani\xE8re prolong\xE9e pour passer en mode de s\xE9lection.",select:"S\xE9lectionner",selectedAll:"Tous les \xE9l\xE9ments s\xE9lectionn\xE9s.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun \xE9l\xE9ment s\xE9lectionn\xE9",one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,selectedItem:e=>`${e.item} s\xE9lectionn\xE9.`},"he-IL":{deselectedItem:e=>`${e.item} \u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8.`,longPressToSelect:"\u05D4\u05E7\u05E9\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DC\u05DB\u05E0\u05D9\u05E1\u05D4 \u05DC\u05DE\u05E6\u05D1 \u05D1\u05D7\u05D9\u05E8\u05D4.",select:"\u05D1\u05D7\u05E8",selectedAll:"\u05DB\u05DC \u05D4\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E0\u05D1\u05D7\u05E8\u05D5.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D5 \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",one:()=>`\u05E4\u05E8\u05D9\u05D8 ${t.number(e.count)} \u05E0\u05D1\u05D7\u05E8`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,selectedItem:e=>`${e.item} \u05E0\u05D1\u05D7\u05E8.`},"hr-HR":{deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u na\u010Din odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`},"hu-HU":{deselectedItem:e=>`${e.item} nincs kijel\xF6lve.`,longPressToSelect:"Nyomja hosszan a kijel\xF6l\xE9shez.",select:"Kijel\xF6l\xE9s",selectedAll:"Az \xF6sszes elem kijel\xF6lve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijel\xF6lve",one:()=>`${t.number(e.count)} elem kijel\xF6lve`,other:()=>`${t.number(e.count)} elem kijel\xF6lve`})}.`,selectedItem:e=>`${e.item} kijel\xF6lve.`},"it-IT":{deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalit\xE0 di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`},"ja-JP":{deselectedItem:e=>`${e.item} \u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,longPressToSelect:"\u9577\u62BC\u3057\u3057\u3066\u9078\u629E\u30E2\u30FC\u30C9\u3092\u958B\u304D\u307E\u3059\u3002",select:"\u9078\u629E",selectedAll:"\u3059\u3079\u3066\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F\u3002",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u9805\u76EE\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093",one:()=>`${t.number(e.count)} \u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F`,other:()=>`${t.number(e.count)} \u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F`})}\u3002`,selectedItem:e=>`${e.item} \u3092\u9078\u629E\u3057\u307E\u3057\u305F\u3002`},"ko-KR":{deselectedItem:e=>`${e.item}\uC774(\uAC00) \uC120\uD0DD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.`,longPressToSelect:"\uC120\uD0DD \uBAA8\uB4DC\uB85C \uB4E4\uC5B4\uAC00\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.",select:"\uC120\uD0DD",selectedAll:"\uBAA8\uB4E0 \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\uC120\uD0DD\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",one:()=>`${t.number(e.count)}\uAC1C \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4`,other:()=>`${t.number(e.count)}\uAC1C \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4`})}.`,selectedItem:e=>`${e.item}\uC774(\uAC00) \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.`},"lt-LT":{deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Nor\u0117dami \u012Fjungti pasirinkimo re\u017Eim\u0105, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas n\u0117 vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta element\u0173: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`},"lv-LV":{deselectedItem:e=>`Vienums ${e.item} nav atlas\u012Bts.`,longPressToSelect:"Ilgi turiet nospiestu. lai iesl\u0113gtu atlases re\u017E\u012Bmu.",select:"Atlas\u012Bt",selectedAll:"Atlas\u012Bti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlas\u012Bts neviens vienums",one:()=>`Atlas\u012Bto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlas\u012Bto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlas\u012Bts vienums ${e.item}.`},"nb-NO":{deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for \xE5 g\xE5 inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`},"nl-NL":{deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`},"pl-PL":{deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naci\u015Bnij i przytrzymaj, aby wej\u015B\u0107 do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono \u017Cadnych element\xF3w",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych element\xF3w`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`},"pt-BR":{deselectedItem:e=>`${e.item} n\xE3o selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de sele\xE7\xE3o.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"pt-PT":{deselectedItem:e=>`${e.item} n\xE3o selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de sele\xE7\xE3o.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"ro-RO":{deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Ap\u0103sa\u021Bi lung pentru a intra \xEEn modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`},"ru-RU":{deselectedItem:e=>`${e.item} \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043E.`,longPressToSelect:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0434\u043B\u044F \u0432\u0445\u043E\u0434\u0430 \u0432 \u0440\u0435\u0436\u0438\u043C \u0432\u044B\u0431\u043E\u0440\u0430.",select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",selectedAll:"\u0412\u044B\u0431\u0440\u0430\u043D\u044B \u0432\u0441\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u041D\u0435\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432",one:()=>`${t.number(e.count)} \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0432\u044B\u0431\u0440\u0430\u043D`,other:()=>`${t.number(e.count)} \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u0432\u044B\u0431\u0440\u0430\u043D\u043E`})}.`,selectedItem:e=>`${e.item} \u0432\u044B\u0431\u0440\u0430\u043D\u043E.`},"sk-SK":{deselectedItem:e=>`Nevybrat\xE9 polo\u017Eky: ${e.item}.`,longPressToSelect:"Dlh\u0161\xEDm stla\u010Den\xEDm prejdite do re\u017Eimu v\xFDberu.",select:"Vybra\u0165",selectedAll:"V\u0161etky vybrat\xE9 polo\u017Eky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u017Diadne vybrat\xE9 polo\u017Eky",one:()=>`${t.number(e.count)} vybrat\xE1 polo\u017Eka`,other:()=>`Po\u010Det vybrat\xFDch polo\u017Eiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybrat\xE9 polo\u017Eky: ${e.item}.`},"sl-SI":{deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni na\u010Din pritisnite in dlje \u010Dasa dr\u017Eite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`},"sr-SP":{deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u re\u017Eim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`},"sv-SE":{deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck l\xE4nge n\xE4r du vill \xF6ppna v\xE4ljarl\xE4ge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`},"tr-TR":{deselectedItem:e=>`${e.item} se\xE7ilmedi.`,longPressToSelect:"Se\xE7im moduna girmek i\xE7in uzun bas\u0131n.",select:"Se\xE7",selectedAll:"T\xFCm \xF6geler se\xE7ildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hi\xE7bir \xF6ge se\xE7ilmedi",one:()=>`${t.number(e.count)} \xF6ge se\xE7ildi`,other:()=>`${t.number(e.count)} \xF6ge se\xE7ildi`})}.`,selectedItem:e=>`${e.item} se\xE7ildi.`},"uk-UA":{deselectedItem:e=>`${e.item} \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E.`,longPressToSelect:"\u0412\u0438\u043A\u043E\u043D\u0430\u0439\u0442\u0435 \u0434\u043E\u0432\u0433\u0435 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u043D\u043D\u044F, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043C \u0432\u0438\u0431\u043E\u0440\u0443.",select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",selectedAll:"\u0423\u0441\u0456 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0432\u0438\u0431\u0440\u0430\u043D\u043E.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u0416\u043E\u0434\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E",one:()=>`${t.number(e.count)} \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u0432\u0438\u0431\u0440\u0430\u043D\u043E`,other:()=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} \u0432\u0438\u0431\u0440\u0430\u043D\u043E.`},"zh-CN":{deselectedItem:e=>`\u672A\u9009\u62E9 ${e.item}\u3002`,longPressToSelect:"\u957F\u6309\u4EE5\u8FDB\u5165\u9009\u62E9\u6A21\u5F0F\u3002",select:"\u9009\u62E9",selectedAll:"\u5DF2\u9009\u62E9\u6240\u6709\u9879\u76EE\u3002",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u672A\u9009\u62E9\u9879\u76EE",one:()=>`\u5DF2\u9009\u62E9 ${t.number(e.count)} \u4E2A\u9879\u76EE`,other:()=>`\u5DF2\u9009\u62E9 ${t.number(e.count)} \u4E2A\u9879\u76EE`})}\u3002`,selectedItem:e=>`\u5DF2\u9009\u62E9 ${e.item}\u3002`},"zh-TW":{deselectedItem:e=>`\u672A\u9078\u53D6\u300C${e.item}\u300D\u3002`,longPressToSelect:"\u9577\u6309\u4EE5\u9032\u5165\u9078\u64C7\u6A21\u5F0F\u3002",select:"\u9078\u53D6",selectedAll:"\u5DF2\u9078\u53D6\u6240\u6709\u9805\u76EE\u3002",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u672A\u9078\u53D6\u4EFB\u4F55\u9805\u76EE",one:()=>`\u5DF2\u9078\u53D6 ${t.number(e.count)} \u500B\u9805\u76EE`,other:()=>`\u5DF2\u9078\u53D6 ${t.number(e.count)} \u500B\u9805\u76EE`})}\u3002`,selectedItem:e=>`\u5DF2\u9078\u53D6\u300C${e.item}\u300D\u3002`}};function zf(e,t){let{getRowText:r=l=>t.collection.getTextValue?.(l)??t.collection.getItem(l)?.textValue}=e,o=Te(os,"@react-aria/grid"),n=t.selectionManager.rawSelection,i=useRef(n),a=useCallback(()=>{if(!t.selectionManager.isFocused||n===i.current){i.current=n;return}let l=Jz(n,i.current),s=Jz(i.current,n),u=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&u){let d=t.selectionManager.selectedKeys.keys().next().value;if(d!=null&&t.collection.getItem(d)){let p=r(d);p&&c.push(o.format("selectedItem",{item:p}));}}else if(l.size===1&&s.size===0){let d=l.keys().next().value;if(d!=null){let p=r(d);p&&c.push(o.format("selectedItem",{item:p}));}}else if(s.size===1&&l.size===0){let d=s.keys().next().value;if(d!=null&&t.collection.getItem(d)){let p=r(d);p&&c.push(o.format("deselectedItem",{item:p}));}}t.selectionManager.selectionMode==="multiple"&&(c.length===0||n==="all"||n.size>1||i.current==="all"||i.current?.size>1)&&c.push(n==="all"?o.format("selectedAll"):o.format("selectedCount",{count:n.size})),c.length>0&&at(c.join(" ")),i.current=n;},[n,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,r,o]);Rn(()=>{if(t.selectionManager.isFocused)a();else {let l=requestAnimationFrame(a);return ()=>cancelAnimationFrame(l)}},[n,t.selectionManager.isFocused]);}function Jz(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let o of e.keys())t.has(o)||r.add(o);return r}function ns(e,t){let r=t?.isDisabled,[o,n]=useState(false);return re(()=>{if(e?.current&&!r){let i=()=>{if(e.current){let l=rt(e.current,{tabbable:true});n(!!l.nextNode());}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:true,childList:true,attributes:true,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect();}}}),r?false:o}function wf(e){let t=Te(os,"@react-aria/grid"),r=er(),o=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,n=useMemo(()=>{let a=e.selectionManager.selectionMode,l=e.selectionManager.selectionBehavior,s;return o&&(s=t.format("longPressToSelect")),l==="replace"&&a!=="none"&&e.hasItemActions?s:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,o]);return Dt(n)}function La(e,t,r){let{isVirtualized:o,keyboardDelegate:n,layoutDelegate:i,onAction:a,disallowTypeAhead:l,linkBehavior:s="action",keyboardNavigationBehavior:u="arrow",escapeKeyBehavior:c="clearSelection",shouldSelectOnPressUp:d}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:p}=yi({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:r,keyboardDelegate:n,layoutDelegate:i,isVirtualized:o,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:l,autoFocus:e.autoFocus,escapeKeyBehavior:c,UNSTABLE_focusOnEntry:e.UNSTABLE_focusOnEntry}),m=ee(e.id);Nc.set(t,{id:m,onAction:a,linkBehavior:s,keyboardNavigationBehavior:u,shouldSelectOnPressUp:d});let f=wf({selectionManager:t.selectionManager,hasItemActions:!!a}),y=ns(r,{isDisabled:t.collection.size!==0}),b=oe(e,{labelable:true}),g=M(b,{role:"grid",id:m,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:y?-1:0}:p,f);return o&&(g["aria-rowcount"]=t.collection.size,g["aria-colcount"]=1),zf({},t),{gridProps:g}}var Qz={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ma(e,t,r){let{node:o,isVirtualized:n}=e,{direction:i}=Q(),{onAction:a,linkBehavior:l,keyboardNavigationBehavior:s,shouldSelectOnPressUp:u}=Nc.get(t),c=Pt(),d=useRef(null),p=()=>{r.current!==null&&(d.current!=null&&o.key!==d.current||!Co(r.current))&&qe(r.current);},m={},f=e.hasChildItems,y=t.selectionManager.isLink(o.key);if(o!=null&&"expandedKeys"in t){let z=t.collection.getChildren?.(o.key);f=f||[...z??[]].length>1,a==null&&!y&&t.selectionManager.selectionMode==="none"&&f&&(a=()=>t.toggleKey(o.key));let A=f?t.expandedKeys.has(o.key):void 0,D=1,O=o.index;if(o.level>=0&&o?.parentKey!=null){let R=t.collection.getItem(o.parentKey);if(R){let N=vU(R,t.collection);D=[...N].filter(F=>F.type==="item").length,O>0&&N[0].type!=="item"&&(O-=1);}}else D=[...t.collection].filter(R=>R.level===0&&R.type==="item").length;m={"aria-expanded":A,"aria-level":o.level+1,"aria-posinset":O+1,"aria-setsize":D};}let{itemProps:b,...g}=Rr({selectionManager:t.selectionManager,key:o.key,ref:r,shouldSelectOnPressUp:e.shouldSelectOnPressUp||u,onAction:a||o.props?.onAction?Ye(o.props?.onAction,a?()=>a(o.key):void 0):void 0,focus:p,linkBehavior:l}),x=z=>{let A=de(U(r.current));if(!Z(z.currentTarget,$(z))||!r.current||!A)return;let D=rt(r.current);if(D.currentNode=A,!ew(z,t,o,f,i,A,r.current))switch(z.key){case "ArrowLeft":{if(s==="arrow"){let O=i==="rtl"?D.nextNode():D.previousNode();if(O)z.preventDefault(),z.stopPropagation(),qe(O),wt(O,{containingElement:Qe(r.current)});else if(z.preventDefault(),z.stopPropagation(),i==="rtl")qe(r.current),wt(r.current,{containingElement:Qe(r.current)});else {D.currentNode=r.current;let R=tw(D);R&&(qe(R),wt(R,{containingElement:Qe(r.current)}));}}break}case "ArrowRight":{if(s==="arrow"){let O=i==="rtl"?D.previousNode():D.nextNode();if(O)z.preventDefault(),z.stopPropagation(),qe(O),wt(O,{containingElement:Qe(r.current)});else if(z.preventDefault(),z.stopPropagation(),i==="ltr")qe(r.current),wt(r.current,{containingElement:Qe(r.current)});else {D.currentNode=r.current;let R=tw(D);R&&(qe(R),wt(R,{containingElement:Qe(r.current)}));}}break}case "ArrowUp":case "ArrowDown":!z.altKey&&Z(r.current,$(z))&&(z.stopPropagation(),z.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(z.nativeEvent.type,z.nativeEvent)));break}},h=z=>{if(d.current=o.key,$(z)!==r.current){Nt()||t.selectionManager.setFocusedKey(o.key);return}},v=z=>{let A=de(U(r.current));if(!(!Z(z.currentTarget,$(z))||!r.current||!A)){if(s==="tab"){if($(z)!==r.current&&z.key!=="Tab"){z.stopPropagation();return}if(ew(z,t,o,f,i,A,r.current))return}switch(z.key){case "Tab":if(s==="tab"){let D=rt(r.current,{tabbable:true});D.currentNode=A,(z.shiftKey?D.previousNode():D.nextNode())&&z.stopPropagation();}}}},C=bl(o.props),T=g.hasAction?C:{},P=M(b,T,{role:"row",onKeyDownCapture:s==="arrow"?x:void 0,onFocus:h,"aria-label":o["aria-label"]||o.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(o.key)?t.selectionManager.isSelected(o.key):void 0,"aria-disabled":t.selectionManager.isDisabled(o.key)||void 0,"aria-labelledby":c&&(o["aria-label"]||o.textValue)?`${Fc(t,o.key)} ${c}`:void 0,id:Fc(t,o.key)}),k=P.onKeyDown;P.onKeyDown=z=>{v(z),z.isPropagationStopped()||k?.(z);};let S=P.onPointerDown;P.onPointerDown=z=>{let A=$(z);if(A&&A!==r.current&&Ui(A)){z.stopPropagation();return}S?.(z);};let w=P.onMouseDown;if(P.onMouseDown=z=>{let A=$(z);if(A&&A!==r.current&&Ui(A)){z.stopPropagation();return}w?.(z);},n){let{collection:z}=t,A=[...z];P["aria-rowindex"]=A.find(D=>D.type==="section")?[...z.getKeys()].filter(D=>z.getItem(D)?.type!=="section").findIndex(D=>D===o.key)+1:o.index+1;}let E={role:"gridcell","aria-colindex":1};return {rowProps:{...M(P,m)},gridCellProps:E,descriptionProps:{id:c},...g}}function ew(e,t,r,o,n,i,a){if(!("expandedKeys"in t)||i!==a)return false;if(e.key===Qz.expand[n]&&t.selectionManager.focusedKey===r.key&&o&&!t.expandedKeys.has(r.key))return t.toggleKey(r.key),e.stopPropagation(),true;if(e.key===Qz.collapse[n]&&t.selectionManager.focusedKey===r.key){if(o&&t.expandedKeys.has(r.key))return t.toggleKey(r.key),e.stopPropagation(),true;if(!t.expandedKeys.has(r.key)&&r.parentKey&&t.collection.getItem(r.parentKey)?.type==="item")return t.selectionManager.setFocusedKey(r.parentKey),e.stopPropagation(),true}return false}function tw(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function vU(e,t){let r=t.getChildren?.(e.key),o=r?Array.from(r):[],n=o.length>0?o[0]:null,i=[];for(;n;)i.push(n),n=n.nextKey!=null?t.getItem(n.nextKey):null;return i}function Rf(e,t){let{key:r}=e,o=t.selectionManager,n=ee(),i=!t.selectionManager.canSelectItem(r),a=t.selectionManager.isSelected(r),l=()=>o.toggleSelection(r),s=Te(os,"@react-aria/grid");return {checkboxProps:{id:n,"aria-label":s.format("select"),isSelected:a,isDisabled:i,onChange:l}}}function is(e,t){let{key:r}=e,{checkboxProps:o}=Rf(e,t);return {checkboxProps:{...o,"aria-labelledby":`${o.id} ${Fc(t,r)}`}}}function Hx(e,t,r){let{overlayProps:o,underlayProps:n}=rf({...e,isOpen:t.isOpen,onClose:t.close},r);return af({isDisabled:!t.isOpen,root:e.root},r),Zm(),useEffect(()=>{if(t.isOpen&&r.current)return gi([r.current],{shouldUseInert:e.shouldUseInert??false,root:e.root})},[t.isOpen,r,e.root,e.shouldUseInert]),{modalProps:M(o),underlayProps:n}}var If=new WeakMap;function $x(e,t,r){let{value:o,children:n,"aria-label":i,"aria-labelledby":a,onPressStart:l,onPressEnd:s,onPressChange:u,onPress:c,onPressUp:d,onClick:p}=e,m=e.isDisabled||t.isDisabled,f=n!=null,y=i!=null||a!=null;!f&&!y&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let b=t.selectedValue===o,g=R=>{R.stopPropagation(),t.setSelectedValue(o);},{pressProps:x,isPressed:h}=Oe({onPressStart:l,onPressEnd:s,onPressChange:u,onPress:c,onPressUp:d,onClick:p,isDisabled:m}),{pressProps:v,isPressed:C}=Oe({onPressStart:l,onPressEnd:s,onPressChange:u,onPressUp:d,onClick:p,isDisabled:m,onPress(R){c?.(R),t.setSelectedValue(o),r.current?.focus();}}),{focusableProps:T}=it(M(e,{onFocus:()=>t.setLastFocusedValue(o)}),r),P=M(x,T),k=oe(e,{labelable:true}),S=-1;t.selectedValue!=null?t.selectedValue===o&&(S=0):(t.lastFocusedValue===o||t.lastFocusedValue==null)&&(S=0),m&&(S=void 0);let{name:w,form:E,descriptionId:z,errorMessageId:A,validationBehavior:D}=If.get(t);Mt(r,t.defaultSelectedValue,t.setSelectedValue),Xo({validationBehavior:D},t,r);let O=Zu();return {labelProps:M(v,useMemo(()=>({onClick:R=>R.preventDefault(),onMouseDown:R=>R.preventDefault()}),[])),inputProps:M(k,{...P,type:"radio",name:w,form:E,tabIndex:S,disabled:m,required:t.isRequired&&D==="native",checked:b,value:o,onChange:g,"aria-describedby":[e["aria-describedby"],O.id,t.isInvalid?A:null,z].filter(Boolean).join(" ")||void 0}),descriptionProps:O,isDisabled:m,isSelected:b,isPressed:h||C}}function jx(e,t,r){let{name:o,form:n,isReadOnly:i,isRequired:a,isDisabled:l,orientation:s="vertical",validationBehavior:u="aria"}=e,{direction:c}=Q(),{isInvalid:d,validationErrors:p,validationDetails:m}=t.displayValidation,{labelProps:f,fieldProps:y,descriptionProps:b,errorMessageProps:g}=Br({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||p,ref:r}),x=oe(e,{labelable:true}),{focusWithinProps:h}=dt({onBlurWithin(T){e.onBlur?.(T),t.selectedValue||t.setLastFocusedValue(null);},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),v=T=>{let P;switch(T.key){case "ArrowRight":c==="rtl"&&s!=="vertical"?P="prev":P="next";break;case "ArrowLeft":c==="rtl"&&s!=="vertical"?P="next":P="prev";break;case "ArrowDown":P="next";break;case "ArrowUp":P="prev";break;default:return}T.preventDefault();let k=rt(T.currentTarget,{from:$(T),accept:w=>w instanceof Y(w).HTMLInputElement&&w.type==="radio"}),S;P==="next"?(S=k.nextNode(),S||(k.currentNode=T.currentTarget,S=k.firstChild())):(S=k.previousNode(),S||(k.currentNode=T.currentTarget,S=k.lastChild())),S&&(S.focus(),t.setSelectedValue(S.value));},C=ee(o);return If.set(t,{name:C,form:n,descriptionId:b.id,errorMessageId:g.id,validationBehavior:u}),{radioGroupProps:M(x,{role:"radiogroup",onKeyDown:v,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":i||void 0,"aria-required":a||void 0,"aria-disabled":l||void 0,"aria-orientation":s,...y,...h}),labelProps:f,descriptionProps:b,errorMessageProps:g,isInvalid:d,validationErrors:p,validationDetails:m}}var PU=Math.round(Math.random()*1e10),SU=0;function Gx(e){let t=useMemo(()=>e.name||`radio-group-${PU}-${++SU}`,[e.name]),[r,o]=ye(e.value,e.defaultValue??null,e.onChange),[n]=useState(r),[i,a]=useState(null),l=Kt({...e,value:r}),s=c=>{!e.isReadOnly&&!e.isDisabled&&(o(c),l.commitValidation());},u=l.displayValidation.isInvalid;return {...l,name:t,selectedValue:r,defaultSelectedValue:e.value!==void 0?n:e.defaultValue??null,setSelectedValue:s,lastFocusedValue:i,setLastFocusedValue:a,isDisabled:e.isDisabled||false,isReadOnly:e.isReadOnly||false,isRequired:e.isRequired||false,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}var ow={"ar-AE":{"Clear search":"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B"},"bg-BG":{"Clear search":"\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435"},"cs-CZ":{"Clear search":"Vymazat hled\xE1n\xED"},"da-DK":{"Clear search":"Ryd s\xF8gning"},"de-DE":{"Clear search":"Suche zur\xFCcksetzen"},"el-GR":{"Clear search":"\u0391\u03C0\u03B1\u03BB\u03BF\u03B9\u03C6\u03AE \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar b\xFAsqueda"},"et-EE":{"Clear search":"T\xFChjenda otsing"},"fi-FI":{"Clear search":"Tyhjenn\xE4 haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"\u05E0\u05E7\u05D4 \u05D7\u05D9\u05E4\u05D5\u05E9"},"hr-HR":{"Clear search":"Obri\u0161i pretragu"},"hu-HU":{"Clear search":"Keres\xE9s t\xF6rl\xE9se"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2"},"ko-KR":{"Clear search":"\uAC80\uC0C9 \uC9C0\uC6B0\uAE30"},"lt-LT":{"Clear search":"I\u0161valyti ie\u0161k\u0105"},"lv-LV":{"Clear search":"Not\u012Br\u012Bt mekl\u0113\u0161anu"},"nb-NO":{"Clear search":"T\xF8m s\xF8k"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczy\u015B\u0107 zawarto\u015B\u0107 wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"\u015Eterge\u0163i c\u0103utarea"},"ru-RU":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A"},"sk-SK":{"Clear search":"Vymaza\u0165 vyh\u013Ead\xE1vanie"},"sl-SI":{"Clear search":"Po\u010Disti iskanje"},"sr-SP":{"Clear search":"Obri\u0161i pretragu"},"sv-SE":{"Clear search":"Rensa s\xF6kning"},"tr-TR":{"Clear search":"Aramay\u0131 temizle"},"uk-UA":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A"},"zh-CN":{"Clear search":"\u6E05\u9664\u641C\u7D22"},"zh-TW":{"Clear search":"\u6E05\u9664\u641C\u5C0B\u689D\u4EF6"}};function Ux(e,t,r){let o=Te(ow,"@react-aria/searchfield"),{isDisabled:n,isReadOnly:i,onSubmit:a,onClear:l,type:s="search"}=e,u=g=>{let x=g.key;x==="Enter"&&(n||i)&&g.preventDefault(),!(n||i)&&(x==="Enter"&&a&&(g.preventDefault(),a(t.value)),x==="Escape"&&(t.value===""&&(!r.current||r.current.value==="")?g.continuePropagation():(g.preventDefault(),t.setValue(""),l&&l())));},c=()=>{t.setValue(""),l&&l();},d=()=>{r.current?.focus();},{labelProps:p,inputProps:m,descriptionProps:f,errorMessageProps:y,...b}=$r({...e,value:t.value,onChange:t.setValue,onKeyDown:i?e.onKeyDown:Ye(u,e.onKeyDown),type:s},r);return {labelProps:p,inputProps:{...m,defaultValue:void 0},clearButtonProps:{"aria-label":o.format("Clear search"),excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:n||i,onPress:c,onPressStart:d},descriptionProps:f,errorMessageProps:y,...b}}function Wx(e){let[t,r]=ye(nw(e.value),nw(e.defaultValue)||"",e.onChange);return {value:t,setValue:r}}function nw(e){if(e!=null)return e.toString()}var _f=new WeakMap;function qx(e,t,r){let{keyboardDelegate:o,isDisabled:n,isRequired:i,name:a,form:l,validationBehavior:s="aria"}=e,u=or({usage:"search",sensitivity:"base"}),c=useMemo(()=>o||new kt(t.collection,t.disabledKeys,r,u),[o,t.collection,t.disabledKeys,u,r]),{menuTriggerProps:d,menuProps:p}=va({isDisabled:n,type:"listbox"},t,r),m=S=>{if(t.selectionManager.selectionMode!=="multiple")switch(S.key){case "ArrowLeft":{S.preventDefault();let w=t.selectedKey!=null?c.getKeyAbove?.(t.selectedKey):c.getFirstKey?.();w!=null&&t.setSelectedKey(w);break}case "ArrowRight":{S.preventDefault();let w=t.selectedKey!=null?c.getKeyBelow?.(t.selectedKey):c.getFirstKey?.();w!=null&&t.setSelectedKey(w);break}}},{typeSelectProps:f}=Bm({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(S){t.setSelectedKey(S);}}),{isInvalid:y,validationErrors:b,validationDetails:g}=t.displayValidation,{labelProps:x,fieldProps:h,descriptionProps:v,errorMessageProps:C}=Br({...e,labelElementType:"span",isInvalid:y,errorMessage:e.errorMessage||b,ref:r});t.selectionManager.selectionMode==="multiple"&&(f={});let T=oe(e,{labelable:true}),P=M(f,d,h),k=ee();return _f.set(t,{isDisabled:n,isRequired:i,name:a,form:l,validationBehavior:s}),{labelProps:{...x,onClick:()=>{e.isDisabled||(r.current?.focus(),ur("keyboard"));}},triggerProps:M(T,{...P,isDisabled:n,onKeyDown:Ye(P.onKeyDown,m,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[k,P["aria-labelledby"],P["aria-label"]&&!P["aria-labelledby"]?P.id:null].filter(Boolean).join(" "),onFocus(S){t.isFocused||(e.onFocus&&e.onFocus(S),e.onFocusChange&&e.onFocusChange(true),t.setFocused(true));},onBlur(S){t.isOpen||(e.onBlur&&e.onBlur(S),e.onFocusChange&&e.onFocusChange(false),t.setFocused(false));}}),valueProps:{id:k},menuProps:{...p,onAction:void 0,autoFocus:t.focusStrategy||true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,disallowEmptySelection:true,linkBehavior:"selection",onBlur:S=>{Z(S.currentTarget,S.relatedTarget)||(e.onBlur&&e.onBlur(S),e.onFocusChange&&e.onFocusChange(false),t.setFocused(false));},"aria-labelledby":[h["aria-labelledby"],P["aria-label"]&&!h["aria-labelledby"]?P.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:C,isInvalid:y,validationErrors:b,validationDetails:g,hiddenSelectProps:{isDisabled:n,name:a,label:e.label,state:t,triggerRef:r,form:l}}}function lw(e,t,r){let o=_f.get(t)||{},{autoComplete:n,name:i=o.name,form:a=o.form,isDisabled:l=o.isDisabled}=e,{validationBehavior:s,isRequired:u}=o,{visuallyHiddenProps:c}=Ft({style:{position:"fixed",top:0,left:0}});Mt(e.selectRef,t.defaultValue,t.setValue),Xo({validationBehavior:s,focus:()=>r.current?.focus()},t,e.selectRef);let d=t.setValue,p=useCallback(m=>{let f=$(m);f.multiple?d(Array.from(f.selectedOptions,y=>y.value)):d(m.currentTarget.value);},[d]);return {containerProps:{...c,"aria-hidden":true,"data-react-aria-prevent-focus":true,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:n,disabled:l,multiple:t.selectionManager.selectionMode==="multiple",required:s==="native"&&u,name:i,form:a,value:t.value??"",onChange:p,onInput:p}}}function Xx(e){let{state:t,triggerRef:r,label:o,name:n,form:i,isDisabled:a}=e,l=useRef(null),s=useRef(null),{containerProps:u,selectProps:c}=lw({...e,selectRef:t.collection.size<=300?l:s},t,r),d=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return jsx("div",{...u,"data-testid":"hidden-select-container",children:jsxs("label",{children:[o,jsxs("select",{...c,ref:l,children:[jsx("option",{value:"",label:"\xA0",children:"\xA0"}),[...t.collection.getKeys()].map(p=>{let m=t.collection.getItem(p);if(m&&m.type==="item")return jsx("option",{value:m.key,children:m.textValue},m.key)}),t.collection.size===0&&n&&d.map((p,m)=>jsx("option",{value:p??""},m))]})]})});if(n){let p=_f.get(t)||{},{validationBehavior:m}=p;d.length===0&&(d=[null]);let f=d.map((y,b)=>{let g={type:"hidden",autoComplete:c.autoComplete,name:n,form:i,disabled:a,value:y??""};return m==="native"?jsx("input",{...g,ref:b===0?s:null,style:{display:"none"},type:"text",required:b===0?c.required:false,onChange:()=>{}},b):jsx("input",{...g,ref:b===0?s:null},b)});return jsx(Fragment,{children:f})}return null}function Kc(e){let{selectionMode:t="single",shouldCloseOnSelect:r=t==="single"}=e,o=Tr(e),[n,i]=useState(null),a=useMemo(()=>e.defaultValue!==void 0?e.defaultValue:t==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,t]),l=useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[s,u]=ye(l,a,e.onChange),c=t==="single"&&Array.isArray(s)?s[0]:s,d=h=>{if(t==="single"){let v=Array.isArray(h)?h[0]??null:h;u(v),v!==c&&e.onSelectionChange?.(v);}else {let v=[];Array.isArray(h)?v=h:h!=null&&(v=[h]),u(v);}},p=Ot({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>zU(c),[c]),onSelectionChange:h=>{if(h!=="all"){if(t==="single"){let v=h.values().next().value??null;d(v);}else d([...h]);r&&o.close(),y.commitValidation();}}}),m=p.selectionManager.firstSelectedKey,f=useMemo(()=>[...p.selectionManager.selectedKeys].map(h=>p.collection.getItem(h)).filter(h=>h!=null),[p.selectionManager.selectedKeys,p.collection]),y=Kt({...e,value:Array.isArray(c)&&c.length===0?null:c}),[b,g]=useState(false),[x]=useState(c);return {...y,...p,...o,value:c,defaultValue:a??x,setValue:d,selectedKey:m,setSelectedKey:d,selectedItem:f[0]??null,selectedItems:f,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode==="single"?x:null),focusStrategy:n,open(h=null){(p.collection.size!==0||e.allowsEmptyCollection)&&(i(h),o.open());},toggle(h=null){(p.collection.size!==0||e.allowsEmptyCollection)&&(i(h),o.toggle());},isFocused:b,setFocused:g}}function zU(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Vc(e,t,r){let{labelProps:o,inputProps:n,isSelected:i,...a}=Tm(e,t,r);return {labelProps:o,inputProps:{...n,role:"switch",checked:i},isSelected:i,...a}}var Mf=class{keyMap=new Map;columnCount;rows;constructor(t){this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let r=i=>{let a=this.keyMap.get(i.key);t.visitNode&&(i=t.visitNode(i)),this.keyMap.set(i.key,i);let l=new Set,s=null,u=false;if(i.type==="item"){for(let c of i.childNodes)if(c.props?.colSpan!==void 0){u=true;break}}for(let c of i.childNodes)c.type==="cell"&&u&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=s?(s.colIndex??s.index)+(s.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=i.key),l.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,r(c),s=c;if(s&&(s.nextKey=null),a)for(let c of a.childNodes)l.has(c.key)||o(c);},o=i=>{this.keyMap.delete(i.key);for(let a of i.childNodes)this.keyMap.get(a.key)===a&&o(a);},n=null;for(let[i,a]of t.items.entries()){let l={...a,level:a.level??0,key:a.key??"row-"+i,type:a.type??"row",value:a.value??null,hasChildNodes:true,childNodes:[...a.childNodes],rendered:a.rendered,textValue:a.textValue??"",index:a.index??i};n?(n.nextKey=l.key,l.prevKey=n.key):l.prevKey=null,this.rows.push(l),r(l),n=l;}n&&(n.nextKey=null);}*[Symbol.iterator](){yield*[...this.rows];}get size(){return [...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey??null:null}getFirstKey(){return [...this.rows][0]?.key}getLastKey(){let t=[...this.rows];return t[t.length-1]?.key}getItem(t){return this.keyMap.get(t)??null}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}};var sw="row-header-column-"+Math.random().toString(36).slice(2),Zx="row-header-column-"+Math.random().toString(36).slice(2);for(;sw===Zx;)Zx="row-header-column-"+Math.random().toString(36).slice(2);function Af(e,t){if(t.length===0)return [];let r=[],o=new Map;for(let s of t){let u=s.parentKey,c=[s];for(;u!=null;){let d=e.get(u);if(!d)break;if(o.has(d)){d.colSpan??=0,d.colSpan++,d.colspan=d.colSpan;let{column:p,index:m}=o.get(d);if(m>c.length)break;for(let f=m;f<c.length;f++)p.splice(f,0,null);for(let f=c.length;f<p.length;f++)p[f]&&o.has(p[f])&&(o.get(p[f]).index=f);}else d.colSpan=1,d.colspan=1,c.push(d),o.set(d,{column:c,index:c.length-1});u=d.parentKey;}r.push(c),s.index=r.length-1;}let n=Math.max(...r.map(s=>s.length)),i=Array(n).fill(0).map(()=>[]),a=0;for(let s of r){let u=n-1;for(let c of s){if(c){let d=i[u],p=d.reduce((m,f)=>m+(f.colSpan??1),0);if(p<a){let m={type:"placeholder",key:"placeholder-"+c.key,colspan:a-p,colSpan:a-p,index:p,value:null,rendered:null,level:u,hasChildNodes:false,childNodes:[],textValue:""};d.length>0&&(d[d.length-1].nextKey=m.key,m.prevKey=d[d.length-1].key),d.push(m);}d.length>0&&(d[d.length-1].nextKey=c.key,c.prevKey=d[d.length-1].key),c.level=u,c.colIndex=a,d.push(c);}u--;}a++;}let l=0;for(let s of i){let u=s.reduce((c,d)=>c+(d.colSpan??1),0);if(u<t.length){let c={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colSpan:t.length-u,colspan:t.length-u,index:u,value:null,rendered:null,level:l,hasChildNodes:false,childNodes:[],textValue:"",prevKey:s[s.length-1].key};s.push(c);}l++;}return i.map((s,u)=>({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:true,childNodes:s,textValue:""}))}var Bc=class extends Mf{headerRows;columns;rowHeaderColumnKeys;body;_size=0;constructor(t,r,o){let n=new Set,i=null,a=[];if(o?.showSelectionCheckboxes){let d={type:"column",key:sw,value:null,textValue:"",level:0,index:o?.showDragButtons?1:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isSelectionCell:true}};a.unshift(d);}if(o?.showDragButtons){let d={type:"column",key:Zx,value:null,textValue:"",level:0,index:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isDragButtonCell:true}};a.unshift(d);}let l=[],s=new Map,u=d=>{switch(d.type){case "body":i=d;break;case "column":s.set(d.key,d),d.hasChildNodes||(a.push(d),d.props.isRowHeader&&n.add(d.key));break;case "item":l.push(d);return}for(let p of d.childNodes)u(p);};for(let d of t)u(d);let c=Af(s,a);if(c.forEach((d,p)=>l.splice(p,0,d)),super({columnCount:a.length,items:l,visitNode:d=>(d.column=a[d.index],d)}),this.columns=a,this.rowHeaderColumnKeys=n,this.body=i,this.headerRows=c,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0){let d=this.columns.find(p=>!p.props?.isDragButtonCell&&!p.props?.isSelectionCell);d&&this.rowHeaderColumnKeys.add(d.key);}}*[Symbol.iterator](){yield*this.body.childNodes;}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey??null}getKeyAfter(t){return this.keyMap.get(t)?.nextKey??null}getFirstKey(){return xr(this.body.childNodes)?.key??null}getLastKey(){return Zo(this.body.childNodes)?.key??null}getItem(t){return t===this.body.key?this.body:this.keyMap.get(t)??null}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){if(t===this.body.key)return this.body.childNodes;let r=this.getItem(t);return r?.type==="item"?[...r.childNodes].filter(o=>o.type==="cell"):super.getChildren(t)}getTextValue(t){let r=this.getItem(t);if(!r)return "";if(r.textValue)return r.textValue;let o=this.rowHeaderColumnKeys;if(o){let n=[];for(let i of r.childNodes){let a=this.columns[i.index];if(o.has(a.key)&&i.textValue&&n.push(i.textValue),n.length===o.size)break}return n.join(" ")}return ""}};function wU(e){return e!=null&&(!isNaN(e)||String(e).match(/^(\d+)(?=%$)/)!==null)}function RU(e){if(!e||typeof e=="number")return 1;let t=e.match(/^(.+)(?=fr$)/);return t?parseFloat(t[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${e} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function Jx(e,t){if(typeof e=="string"){let r=e.match(/^(\d+)(?=%$)/);if(!r)throw new Error("Only percentages or numbers are supported for static column widths");return t*(parseFloat(r[0])/100)}return e}function Qx(e,t){return e!=null?Jx(e,t):Number.MAX_SAFE_INTEGER}function eT(e,t){return e!=null?Jx(e,t):0}function uw(e,t,r,o,n){let i=false,a=t.map((l,s)=>{let u=r.get(l.key)!=null?r.get(l.key)??"1fr":l.width??l.defaultWidth??o?.(s)??"1fr",c=false,d=0,p=0,m=0;wU(u)?(d=Jx(u,e),c=true):(p=RU(u),p<=0&&(c=true));let f=eT(l.minWidth??n?.(s)??0,e),y=Qx(l.maxWidth,e),b=Math.max(f,Math.min(d,y));return c?m=b:d>b&&(c=true,m=b),c||(i=true),{frozen:c,baseSize:d,hypotheticalMainSize:b,min:f,max:y,flex:p,targetMainSize:m,violation:0}});for(;i;){let l=0,s=0;a.forEach(d=>{d.frozen?l+=d.targetMainSize:(l+=d.baseSize,s+=d.flex);});let u=e-l;u>0&&a.forEach(d=>{if(!d.frozen){let p=d.flex/s;d.targetMainSize=d.baseSize+p*u;}});let c=0;a.forEach(d=>{if(d.violation=0,!d.frozen){let{min:p,max:m,targetMainSize:f}=d;d.targetMainSize=Math.max(p,Math.min(f,m)),d.violation=d.targetMainSize-f,c+=d.violation;}}),i=false,a.forEach(d=>{c===0||Math.sign(c)===Math.sign(d.violation)?d.frozen=true:d.frozen||(i=true);});}return IU(a)}function IU(e){let t=0,r=0,o=[];return e.forEach(function(n){let i=n.targetMainSize,a=Math.round(i+t)-r;t+=i,r+=a,o.push(a);}),o}var as=class{getDefaultWidth;getDefaultMinWidth;columnWidths=new Map;columnMinWidths=new Map;columnMaxWidths=new Map;constructor(t){this.getDefaultWidth=t?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=t?.getDefaultMinWidth??(()=>75);}splitColumnsIntoControlledAndUncontrolled(t){return t.reduce((r,o)=>(o.props.width!=null?r[0].set(o.key,o):r[1].set(o.key,o),r),[new Map,new Map])}recombineColumns(t,r,o,n){return new Map(t.map(i=>o.has(i.key)?[i.key,r.get(i.key)]:[i.key,n.get(i.key).props.width]))}getInitialUncontrolledWidths(t){return new Map(Array.from(t).map(([r,o])=>[r,o.props.defaultWidth??this.getDefaultWidth?.(o)??"1fr"]))}getColumnWidth(t){return this.columnWidths.get(t)??0}getColumnMinWidth(t){return this.columnMinWidths.get(t)??0}getColumnMaxWidth(t){return this.columnMaxWidths.get(t)??0}resizeColumnWidth(t,r,o,n){let i=this.columnWidths,a=true,l=new Map;return n=Math.max(this.getColumnMinWidth(o),Math.min(this.getColumnMaxWidth(o),Math.floor(n))),t.columns.forEach(s=>{s.key===o?(l.set(s.key,n),a=false):a?l.set(s.key,i.get(s.key)??0):l.set(s.key,s.props.width??r.get(s.key));}),l}buildColumnWidths(t,r,o){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,uw(t,r.columns.map(i=>({...i.props,key:i.key})),o,i=>this.getDefaultWidth(r.columns[i]),i=>this.getDefaultMinWidth(r.columns[i])).forEach((i,a)=>{let l=r.columns[a].key,s=r.columns[a];this.columnWidths.set(l,i),this.columnMinWidths.set(l,eT(s.props.minWidth??this.getDefaultMinWidth(s),t)),this.columnMaxWidths.set(l,Qx(s.props.maxWidth,t));}),this.columnWidths}};function oT(e,t){let{getDefaultWidth:r,getDefaultMinWidth:o,tableWidth:n=0}=e,[i,a]=useState(null),l=useMemo(()=>new as({getDefaultWidth:r,getDefaultMinWidth:o}),[r,o]),[s,u]=useMemo(()=>l.splitColumnsIntoControlledAndUncontrolled(t.collection.columns),[t.collection.columns,l]),[c,d]=useState(()=>l.getInitialUncontrolledWidths(u)),[p,m]=useState(t.collection.columns);if(t.collection.columns!==p){if(t.collection.columns.length!==p.length||t.collection.columns.some((h,v)=>h.key!==p[v].key)){let h=l.getInitialUncontrolledWidths(u);d(h);}m(t.collection.columns);}let f=useMemo(()=>l.recombineColumns(t.collection.columns,c,u,s),[t.collection.columns,c,u,s,l]),y=useCallback(h=>{a(h);},[a]),b=useCallback((h,v)=>{let C=l.resizeColumnWidth(t.collection,c,h,v),T=new Map(Array.from(u).map(([P])=>[P,C.get(P)]));return T.set(h,v),d(T),C},[u,d,l,t.collection,c]),g=useCallback(()=>{a(null);},[a]),x=useMemo(()=>l.buildColumnWidths(n,t.collection,f),[n,t.collection,f,l]);return useMemo(()=>({resizingColumn:i,updateResizedColumns:b,startResize:y,endResize:g,getColumnWidth:h=>l.getColumnWidth(h),getColumnMinWidth:h=>l.getColumnMinWidth(h),getColumnMaxWidth:h=>l.getColumnMaxWidth(h),tableState:t,columnWidths:x}),[l,x,i,b,y,g,t])}function dw(e){let{collection:t,focusMode:r}=e,o=e.UNSAFE_selectionState||Eo(e),n=useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=o.setFocusedKey;o.setFocusedKey=(s,u)=>{if(r==="cell"&&s!=null){let c=t.getItem(s);if(c?.type==="item"){let d=Ge(c,t);u==="last"?s=Zo(d)?.key??null:s=xr(d)?.key??null;}}i(s,u);};let a=useMemo(()=>new zo(t,o),[t,o]),l=useRef(null);return useEffect(()=>{if(o.focusedKey!=null&&l.current&&!t.getItem(o.focusedKey)){let s=l.current.getItem(o.focusedKey),u=s?.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?l.current.getItem(s.parentKey):s;if(!u){o.setFocusedKey(null);return}let c=l.current.rows,d=t.rows,p=c.length-d.length,m=Math.min(p>1?Math.max(u.index-p+1,0):u.index,d.length-1),f=null;for(;m>=0;){if(!a.isDisabled(d[m].key)&&d[m].type!=="headerrow"){f=d[m];break}m<d.length-1?m++:(m>u.index&&(m=u.index),m--);}if(f){let y=f.hasChildNodes?[...Ge(f,t)]:[],b=f.hasChildNodes&&u!==s&&s&&s.index<y.length?y[s.index].key:f.key;o.setFocusedKey(b);}else o.setFocusedKey(null);}l.current=t;},[t,a,o,o.focusedKey]),{collection:t,disabledKeys:n,isKeyboardNavigationDisabled:false,selectionManager:a}}var OU={ascending:"descending",descending:"ascending"};function nT(e){let[t,r]=useState(false),{selectionMode:o="none",showSelectionCheckboxes:n,showDragButtons:i,treeColumn:a=null}=e,l=useMemo(()=>({showSelectionCheckboxes:n&&o!=="none",showDragButtons:i,selectionMode:o,columns:[]}),[e.children,n,o,i]),s=$l(e,useCallback(m=>new Bc(m,null,l),[l]),l),{disabledKeys:u,selectionManager:c}=dw({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"}),[d,p]=ye(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return {collection:s,disabledKeys:u,selectionManager:c,showSelectionCheckboxes:e.showSelectionCheckboxes||false,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:s.size===0||t,setKeyboardNavigationDisabled:r,sort(m,f){e.onSortChange?.({column:m,direction:f??(e.sortDescriptor?.column===m?OU[e.sortDescriptor.direction]:"ascending")});},expandedKeys:d,toggleKey(m){p(f=>{let y=new Set(f);return y.has(m)?y.delete(m):y.add(m),y});},treeColumn:a}}function iT(e,t){let r=useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),o=e.selectionManager.withCollection(r);return {...e,collection:r,selectionManager:o}}var mw=10,fw=5,ls=class{delegate=null;state=null;direction="ltr";pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null};setup(t,r,o){this.delegate=t,this.state=r,this.direction=o;}getDropTargetFromPoint(t,r,o){let n=this.delegate.getDropTargetFromPoint(t,r,o);return !n||n.type==="root"?n:this.resolveDropTarget(n,t,r,o)}resolveDropTarget(t,r,o,n){let i=this.pointerTracking,a=o-i.lastY,l=r-i.lastX,s=i.yDirection,u=i.xDirection;if(Math.abs(a)>fw&&(s=a>0?"down":"up",i.yDirection=s,i.lastY=o),Math.abs(l)>mw&&(u=l>0?"right":"left",i.xDirection=u,i.lastX=r),t.dropPosition==="before"){let p=this.state.collection.getKeyBefore(t.key);for(;p!=null;){let m=this.state.collection.getItem(p);if(m?.type==="item")break;p=m?.parentKey??null;}if(p!=null){let m={type:"item",key:p,dropPosition:"after"};n(m)&&(t=m);}}let c=this.getPotentialTargets(t,n);if(c.length===0)return {type:"root"};let d;return c.length>1?d=this.selectTarget(c,t,r,o,s,u):(d=c[0],i.boundaryContext=null),d}getPotentialTargets(t,r){if(t.dropPosition==="on")return [t];let o=t,n=this.state.collection,i=n.getItem(o.key);for(;i&&i?.type!=="item"&&i.nextKey!=null;)o.key=i.nextKey,i=n.getItem(i.nextKey);let a=[o];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&n.getChildren&&o.dropPosition==="after"){let u=i.firstChildKey!=null?n.getItem(i.firstChildKey):null;for(;u&&u.type!=="item";)u=u.nextKey!=null?n.getItem(u.nextKey):null;if(u?.type==="item"){let c={type:"item",key:u.key,dropPosition:"before"};return r(c)?[c]:[]}}if(i?.nextKey!=null)return [t];let l=i?.parentKey,s=[];for(;l!=null;){let u=n.getItem(l),c=u?.nextKey!=null?n.getItem(u.nextKey):null;if(!c||c.parentKey!==l){let p={type:"item",key:l,dropPosition:"after"};if(r(p)&&s.push(p),c)break}l=u?.parentKey;}if(s.length>0&&a.push(...s),a.length===1){let u=n.getKeyAfter(o.key),c=u!=null?n.getItem(u):null;if(u!=null&&c&&i&&c.level!=null&&i.level!=null&&c.level>i.level){let d={type:"item",key:u,dropPosition:"before"};if(r(d))return [d]}}return a.filter(r)}selectTarget(t,r,o,n,i,a){if(t.length<2)return t[0];let l=this.pointerTracking,u=this.state.collection.getItem(r.key)?.parentKey;if(u==null)return t[0];if(!l.boundaryContext||l.boundaryContext.parentKey!==u){let f=l.yDirection==="up"?t.length-1:0;l.boundaryContext={parentKey:u,preferredTargetIndex:f,lastSwitchY:n,lastSwitchX:o};}let c=l.boundaryContext,d=Math.abs(o-c.lastSwitchX);if(Math.abs(n-c.lastSwitchY)>fw&&i){let f=c.preferredTargetIndex||0;i==="down"&&f===0?c.preferredTargetIndex=t.length-1:i==="up"&&f===t.length-1&&(c.preferredTargetIndex=0),l.xDirection=null;}if(d>mw&&a){let f=c.preferredTargetIndex||0;a==="left"?this.direction==="ltr"?f<t.length-1&&(c.preferredTargetIndex=f+1,c.lastSwitchX=o):f>0&&(c.preferredTargetIndex=f-1,c.lastSwitchX=o):a==="right"&&(this.direction==="ltr"?f>0&&(c.preferredTargetIndex=f-1,c.lastSwitchX=o):f<t.length-1&&(c.preferredTargetIndex=f+1,c.lastSwitchX=o)),l.yDirection=null;}let m=Math.max(0,Math.min(c.preferredTargetIndex||0,t.length-1));return t[m]}};var ss=class{collection;disabledKeys;disabledBehavior;direction;collator;layoutDelegate;focusMode;constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new aT(t.layout):new da(t.ref)),this.focusMode=t.focusMode??"row";}isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findPreviousKey(t,r,o=false){let n=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;n!=null;){let i=this.collection.getItem(n);if(!i)return null;if((o||!this.isDisabled(i))&&(!r||r(i)))return n;n=this.collection.getKeyBefore(n);}return null}findNextKey(t,r,o=false){let n=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;n!=null;){let i=this.collection.getItem(n);if(!i)return null;if((o||!this.isDisabled(i))&&(!r||r(i)))return n;if(n=this.collection.getKeyAfter(n),n==null)return null}return null}getKeyForItemInRowByIndex(t,r=0){if(r<0)return null;let o=this.collection.getItem(t);if(!o)return null;let n=0;for(let i of Ge(o,this.collection)){if(i.colSpan&&i.colSpan+n>r||(i.colSpan&&(n=n+i.colSpan-1),n===r))return i.key??null;n++;}return null}getKeyBelow(t,r){let o=t,n=this.collection.getItem(o);if(!n||(this.isCell(n)&&(o=n.parentKey??null),o==null))return null;if(o=this.findNextKey(o,i=>i.type==="item",r?.includeDisabled),o!=null){if(this.isCell(n)){let i=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(o,i)}if(this.focusMode==="row")return o}return null}getKeyAbove(t,r){let o=t,n=this.collection.getItem(o);if(!n||(this.isCell(n)&&(o=n.parentKey??null),o==null))return null;if(o=this.findPreviousKey(o,i=>i.type==="item",r?.includeDisabled),o!=null){if(this.isCell(n)){let i=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(o,i)}if(this.focusMode==="row")return o}return null}getKeyRightOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){let o=Ge(r,this.collection);return (this.direction==="rtl"?Zo(o)?.key:xr(o)?.key)??null}if(this.isCell(r)&&r.parentKey!=null){let o=this.collection.getItem(r.parentKey);if(!o)return null;let n=Ge(o,this.collection),i=(this.direction==="rtl"?pa(n,r.index-1):pa(n,r.index+1))??null;return i?i.key??null:this.focusMode==="row"?r.parentKey??null:(this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))??null}return null}getKeyLeftOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){let o=Ge(r,this.collection);return (this.direction==="rtl"?xr(o)?.key:Zo(o)?.key)??null}if(this.isCell(r)&&r.parentKey!=null){let o=this.collection.getItem(r.parentKey);if(!o)return null;let n=Ge(o,this.collection),i=(this.direction==="rtl"?pa(n,r.index+1):pa(n,r.index-1))??null;return i?i.key??null:this.focusMode==="row"?r.parentKey??null:(this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))??null}return null}getFirstKey(t,r){let o=t??null,n;if(o!=null){if(n=this.collection.getItem(o),!n)return null;if(this.isCell(n)&&!r&&n.parentKey!=null){let i=this.collection.getItem(n.parentKey);return i?xr(Ge(i,this.collection))?.key??null:null}}if(o=this.findNextKey(void 0,i=>i.type==="item"),o!=null&&(n&&this.isCell(n)&&r||this.focusMode==="cell")){let i=this.collection.getItem(o);if(!i)return null;o=xr(Ge(i,this.collection))?.key??null;}return o}getLastKey(t,r){let o=t??null,n;if(o!=null){if(n=this.collection.getItem(o),!n)return null;if(this.isCell(n)&&!r&&n.parentKey!=null){let i=this.collection.getItem(n.parentKey);if(!i)return null;let a=Ge(i,this.collection);return Zo(a)?.key??null}}if(o=this.findPreviousKey(void 0,i=>i.type==="item"),o!=null&&(n&&this.isCell(n)&&r||this.focusMode==="cell")){let i=this.collection.getItem(o);if(!i)return null;let a=Ge(i,this.collection);o=Zo(a)?.key??null;}return o}getKeyPageAbove(t){let r=t,o=this.layoutDelegate.getItemRect(r);if(!o)return null;let n=Math.max(0,o.y+o.height-this.layoutDelegate.getVisibleRect().height);for(;o&&o.y>n&&r!=null&&(r=this.getKeyAbove(r)??null,r!=null);)o=this.layoutDelegate.getItemRect(r);return r}getKeyPageBelow(t){let r=t,o=this.layoutDelegate.getItemRect(r);if(!o)return null;let n=this.layoutDelegate.getVisibleRect().height,i=Math.min(this.layoutDelegate.getContentSize().height,o.y+n);for(;o&&o.y+o.height<i;){let a=this.getKeyBelow(r);if(a==null)break;o=this.layoutDelegate.getItemRect(a),r=a;}return r}getKeyForSearch(t,r){let o=r??null;if(!this.collator)return null;let n=this.collection;if(o=r??this.getFirstKey(),o==null)return null;let i=n.getItem(o);if(!i)return null;i.type==="cell"&&(o=i.parentKey??null);let a=false;for(;o!=null;){let l=n.getItem(o);if(!l)return null;if(l.textValue){let s=l.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return this.isRow(l)&&this.focusMode==="cell"?xr(Ge(l,this.collection))?.key??null:l.key}o=this.findNextKey(o,s=>s.type==="item"),o==null&&!a&&(o=this.getFirstKey(),a=true);}return null}},aT=class{layout;constructor(t){this.layout=t;}getContentSize(){return this.layout.getContentSize()}getItemRect(t){return this.layout.getLayoutInfo(t)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}};var us=new WeakMap;function bw(e,t,r){let{isVirtualized:o,disallowTypeAhead:n,keyboardDelegate:i,focusMode:a,scrollRef:l,getRowText:s,onRowAction:u,onCellAction:c,escapeKeyBehavior:d="clearSelection",shouldSelectOnPressUp:p}=e,{selectionManager:m}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let f=or({usage:"search",sensitivity:"base"}),{direction:y}=Q(),b=t.selectionManager.disabledBehavior,g=useMemo(()=>i||new ss({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:b,ref:r,direction:y,collator:f,focusMode:a}),[i,t.collection,t.disabledKeys,b,r,y,f,a]),{collectionProps:x}=fi({ref:r,selectionManager:m,keyboardDelegate:g,scrollRef:l,disallowTypeAhead:n,escapeKeyBehavior:d}),h=ee(e.id);us.set(t,{keyboardDelegate:g,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:p});let v=wf({selectionManager:m,hasItemActions:!!(u||c)}),C=oe(e,{labelable:true}),T=useCallback(w=>{if(m.isFocused){Z(w.currentTarget,$(w))||m.setFocused(false);return}Z(w.currentTarget,$(w))&&m.setFocused(true);},[m]),P=useMemo(()=>({onBlur:x.onBlur,onFocus:T}),[T,x.onBlur]),k=ns(r,{isDisabled:t.collection.size!==0}),S=M(C,{role:"grid",id:h,"aria-multiselectable":m.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?P:x,t.collection.size===0&&{tabIndex:k?-1:0}||void 0,v);return o&&(S["aria-rowcount"]=t.collection.size,S["aria-colcount"]=t.collection.columnCount),zf({getRowText:s},t),{gridProps:S}}var Of=new WeakMap;function lT(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Nf(e,t){let r=Of.get(e);if(!r)throw new Error("Unknown grid");return `${r}-${lT(t)}`}function sT(e,t,r){let o=Of.get(e);if(!o)throw new Error("Unknown grid");return `${o}-${lT(t)}-${lT(r)}`}function $c(e,t){return [...e.collection.rowHeaderColumnKeys].map(r=>sT(e,t,r)).join(" ")}var tn={"ar-AE":{ascending:"\u062A\u0635\u0627\u0639\u062F\u064A",ascendingSort:e=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${e.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0635\u0627\u0639\u062F\u064A`,columnSize:e=>`${e.value} \u0628\u0627\u0644\u0628\u0643\u0633\u0644`,descending:"\u062A\u0646\u0627\u0632\u0644\u064A",descendingSort:e=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${e.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0646\u0627\u0632\u0644\u064A`,resizerDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D Enter \u0644\u0628\u062F\u0621 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645",select:"\u062A\u062D\u062F\u064A\u062F",selectAll:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",sortable:"\u0639\u0645\u0648\u062F \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0631\u062A\u064A\u0628",collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"},"bg-BG":{ascending:"\u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449",ascendingSort:e=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${e.columnName} \u0432\u044A\u0432 \u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,columnSize:e=>`${e.value} \u043F\u0438\u043A\u0441\u0435\u043B\u0430`,descending:"\u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449",descendingSort:e=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${e.columnName} \u0432 \u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u044F\u0432\u0430\u0442\u0435",select:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435",selectAll:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0432\u0441\u0438\u0447\u043A\u043E",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u0449\u0430 \u043A\u043E\u043B\u043E\u043D\u0430",collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"},"cs-CZ":{ascending:"vzestupn\u011B",ascendingSort:e=>`\u0159azeno vzestupn\u011B podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixel\u016F`,descending:"sestupn\u011B",descendingSort:e=>`\u0159azeno sestupn\u011B podle sloupce ${e.columnName}`,resizerDescription:"Stisknut\xEDm kl\xE1vesy Enter za\u010Dnete m\u011Bnit velikost",select:"Vybrat",selectAll:"Vybrat v\u0161e",sortable:"sloupec s mo\u017Enost\xED \u0159azen\xED",collapse:"Sbalit",expand:"Rozt\xE1hnout"},"da-DK":{ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende r\xE6kkef\xF8lge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende r\xE6kkef\xF8lge`,resizerDescription:"Tryk p\xE5 Enter for at \xE6ndre st\xF8rrelse",select:"V\xE6lg",selectAll:"V\xE6lg alle",sortable:"sorterbar kolonne",collapse:"Skjul",expand:"Udvid"},"de-DE":{ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Gr\xF6\xDFen\xE4nderung dr\xFCcken",select:"Ausw\xE4hlen",selectAll:"Alles ausw\xE4hlen",sortable:"sortierbare Spalte",collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{ascending:"\u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1",ascendingSort:e=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${e.columnName} \u03C3\u03B5 \u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,columnSize:e=>`${e.value} pixel`,descending:"\u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1",descendingSort:e=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${e.columnName} \u03C3\u03B5 \u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,resizerDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE\u03C2 \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2",select:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",selectAll:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03CC\u03BB\u03C9\u03BD",sortable:"\u03A3\u03C4\u03AE\u03BB\u03B7 \u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE\u03C2",collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"},"en-US":{select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"},"es-ES":{ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} p\xEDxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable",collapse:"Contraer",expand:"Ampliar"},"et-EE":{ascending:"t\xF5usev j\xE4rjestus",ascendingSort:e=>`sorditud veeru j\xE4rgi ${e.columnName} t\xF5usvas j\xE4rjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv j\xE4rjestus",descendingSort:e=>`sorditud veeru j\xE4rgi ${e.columnName} laskuvas j\xE4rjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali k\xF5ik",sortable:"sorditav veerg",collapse:"Ahenda",expand:"Laienda"},"fi-FI":{ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xE4rjestyksess\xE4`,columnSize:e=>`${e.value} pikseli\xE4`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa j\xE4rjestyksess\xE4`,resizerDescription:"Aloita koon muutos painamalla Enter-n\xE4pp\xE4int\xE4",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake",collapse:"Pienenn\xE4",expand:"Laajenna"},"fr-FR":{ascending:"croissant",ascendingSort:e=>`tri\xE9 en fonction de la colonne\xA0${e.columnName} par ordre croissant`,columnSize:e=>`${e.value}\xA0pixels`,descending:"d\xE9croissant",descendingSort:e=>`tri\xE9 en fonction de la colonne\xA0${e.columnName} par ordre d\xE9croissant`,resizerDescription:"Appuyez sur Entr\xE9e pour commencer le redimensionnement.",select:"S\xE9lectionner",selectAll:"S\xE9lectionner tout",sortable:"colonne triable",collapse:"R\xE9duire",expand:"D\xE9velopper"},"he-IL":{ascending:"\u05E2\u05D5\u05DC\u05D4",ascendingSort:e=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${e.columnName} \u05D1\u05E1\u05D3\u05E8 \u05E2\u05D5\u05DC\u05D4`,columnSize:e=>`${e.value} \u05E4\u05D9\u05E7\u05E1\u05DC\u05D9\u05DD`,descending:"\u05D9\u05D5\u05E8\u05D3",descendingSort:e=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${e.columnName} \u05D1\u05E1\u05D3\u05E8 \u05D9\u05D5\u05E8\u05D3`,resizerDescription:"\u05D4\u05E7\u05E9 Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05E0\u05D5\u05EA \u05D0\u05EA \u05D4\u05D2\u05D5\u05D3\u05DC",select:"\u05D1\u05D7\u05E8",selectAll:"\u05D1\u05D7\u05E8 \u05D4\u05DB\u05D5\u05DC",sortable:"\u05E2\u05DE\u05D5\u05D3\u05D4 \u05E9\u05E0\u05D9\u05EA\u05DF \u05DC\u05DE\u05D9\u05D9\u05DF",collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"},"hr-HR":{ascending:"rastu\u0107i",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastu\u0107em redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padaju\u0107i",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padaju\u0107im redoslijedom`,resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se mo\u017Ee razvrstati",collapse:"Sa\u017Emi",expand:"Pro\u0161iri"},"hu-HU":{ascending:"n\xF6vekv\u0151",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, n\xF6vekv\u0151 sorrendben`,columnSize:e=>`${e.value} k\xE9ppont`,descending:"cs\xF6kken\u0151",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, cs\xF6kken\u0151 sorrendben`,resizerDescription:"Nyomja le az Enter billenty\u0171t az \xE1tm\xE9retez\xE9s megkezd\xE9s\xE9hez",select:"Kijel\xF6l\xE9s",selectAll:"\xD6sszes kijel\xF6l\xE9se",sortable:"rendezend\u0151 oszlop",collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"},"it-IT":{ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile",collapse:"Comprimi",expand:"Espandi"},"ja-JP":{ascending:"\u6607\u9806",ascendingSort:e=>`\u5217 ${e.columnName} \u3092\u6607\u9806\u3067\u4E26\u3079\u66FF\u3048`,columnSize:e=>`${e.value} \u30D4\u30AF\u30BB\u30EB`,descending:"\u964D\u9806",descendingSort:e=>`\u5217 ${e.columnName} \u3092\u964D\u9806\u3067\u4E26\u3079\u66FF\u3048`,resizerDescription:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30B5\u30A4\u30BA\u5909\u66F4\u3092\u958B\u59CB",select:"\u9078\u629E",selectAll:"\u3059\u3079\u3066\u9078\u629E",sortable:"\u4E26\u3079\u66FF\u3048\u53EF\u80FD\u306A\u5217",collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"},"ko-KR":{ascending:"\uC624\uB984\uCC28\uC21C",ascendingSort:e=>`${e.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uC624\uB984\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,columnSize:e=>`${e.value} \uD53D\uC140`,descending:"\uB0B4\uB9BC\uCC28\uC21C",descendingSort:e=>`${e.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uB0B4\uB9BC\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,resizerDescription:"\uD06C\uAE30 \uC870\uC815\uC744 \uC2DC\uC791\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",select:"\uC120\uD0DD",selectAll:"\uBAA8\uB450 \uC120\uD0DD",sortable:"\uC815\uB82C \uAC00\uB2A5\uD55C \uC5F4",collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},"lt-LT":{ascending:"did\u0117jan\u010Dia tvarka",ascendingSort:e=>`surikiuota pagal stulpel\u012F ${e.columnName} did\u0117jan\u010Dia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"ma\u017E\u0117jan\u010Dia tvarka",descendingSort:e=>`surikiuota pagal stulpel\u012F ${e.columnName} ma\u017E\u0117jan\u010Dia tvarka`,resizerDescription:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te keisti dyd\u012F",select:"Pasirinkti",selectAll:"Pasirinkti visk\u0105",sortable:"rikiuojamas stulpelis",collapse:"Sutraukti",expand:"I\u0161skleisti"},"lv-LV":{ascending:"augo\u0161\u0101 sec\u012Bb\u0101",ascendingSort:e=>`k\u0101rtots p\u0113c kolonnas ${e.columnName} augo\u0161\u0101 sec\u012Bb\u0101`,columnSize:e=>`${e.value} pikse\u013Ci`,descending:"dilsto\u0161\u0101 sec\u012Bb\u0101",descendingSort:e=>`k\u0101rtots p\u0113c kolonnas ${e.columnName} dilsto\u0161\u0101 sec\u012Bb\u0101`,resizerDescription:"Nospiediet Enter, lai s\u0101ktu izm\u0113ru main\u012B\u0161anu",select:"Atlas\u012Bt",selectAll:"Atlas\u012Bt visu",sortable:"k\u0101rtojam\u0101 kolonna",collapse:"Sak\u013Caut",expand:"Izv\u0113rst"},"nb-NO":{ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkef\xF8lge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkef\xF8lge`,resizerDescription:"Trykk p\xE5 Enter for \xE5 starte st\xF8rrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres",collapse:"Skjul",expand:"Utvid"},"nl-NL":{ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom",collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{ascending:"rosn\u0105co",ascendingSort:e=>`posortowano wed\u0142ug kolumny ${e.columnName} w porz\u0105dku rosn\u0105cym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malej\u0105co",descendingSort:e=>`posortowano wed\u0142ug kolumny ${e.columnName} w porz\u0105dku malej\u0105cym`,resizerDescription:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z mo\u017Cliwo\u015Bci\u0105 sortowania",collapse:"Zwi\u0144",expand:"Rozwi\u0144"},"pt-BR":{ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para come\xE7ar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classific\xE1vel",collapse:"Recolher",expand:"Expandir"},"pt-PT":{ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna orden\xE1vel",collapse:"Colapsar",expand:"Expandir"},"ro-RO":{ascending:"cresc\u0103toare",ascendingSort:e=>`sortate dup\u0103 coloana ${e.columnName} \xEEn ordine cresc\u0103toare`,columnSize:e=>`${e.value} pixeli`,descending:"descresc\u0103toare",descendingSort:e=>`sortate dup\u0103 coloana ${e.columnName} \xEEn ordine descresc\u0103toare`,resizerDescription:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe redimensionarea",select:"Selectare",selectAll:"Selectare total\u0103",sortable:"coloan\u0103 sortabil\u0103",collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"},"ru-RU":{ascending:"\u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u0435",ascendingSort:e=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${e.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044F`,columnSize:e=>`${e.value} \u043F\u0438\u043A\u0441.`,descending:"\u0443\u0431\u044B\u0432\u0430\u043D\u0438\u0435",descendingSort:e=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${e.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044F`,resizerDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u043E\u0432",select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439 \u0441\u0442\u043E\u043B\u0431\u0435\u0446",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},"sk-SK":{ascending:"vzostupne",ascendingSort:e=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${e.columnName}`,columnSize:e=>`Po\u010Det pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${e.columnName}`,resizerDescription:"Stla\u010Den\xEDm kl\xE1vesu Enter za\u010Dnete zmenu ve\u013Ekosti",select:"Vybra\u0165",selectAll:"Vybra\u0165 v\u0161etko",sortable:"zoradite\u013En\xFD st\u013Apec",collapse:"Zbali\u0165",expand:"Rozbali\u0165"},"sl-SI":{ascending:"nara\u0161\u010Dajo\u010De",ascendingSort:e=>`razvr\u0161\u010Deno po stolpcu ${e.columnName} v nara\u0161\u010Dajo\u010Dem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajo\u010De",descendingSort:e=>`razvr\u0161\u010Deno po stolpcu ${e.columnName} v padajo\u010Dem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da za\u010Dnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec",collapse:"Strni",expand:"Raz\u0161iri"},"sr-SP":{ascending:"rastu\u0107i",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastu\u0107im redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padaju\u0107i",descendingSort:e=>`sortirano po kolonama ${e.columnName} padaju\u0107im redosledom`,resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se mo\u017Ee sortirati",collapse:" Skupi",expand:"Pro\u0161iri"},"sv-SE":{ascending:"stigande",ascendingSort:e=>`sorterat p\xE5 kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat p\xE5 kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck p\xE5 Retur f\xF6r att b\xF6rja \xE4ndra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn",collapse:"D\xF6lj",expand:"Expandera"},"tr-TR":{ascending:"artan s\u0131rada",ascendingSort:e=>`${e.columnName} s\xFCtuna g\xF6re artan d\xFCzende s\u0131rala`,columnSize:e=>`${e.value} piksel`,descending:"azalan s\u0131rada",descendingSort:e=>`${e.columnName} s\xFCtuna g\xF6re azalan d\xFCzende s\u0131rala`,resizerDescription:"Yeniden boyutland\u0131rmak i\xE7in Enter'a bas\u0131n",select:"Se\xE7",selectAll:"T\xFCm\xFCn\xFC Se\xE7",sortable:"S\u0131ralanabilir s\xFCtun",collapse:"Daralt",expand:"Geni\u015Flet"},"uk-UA":{ascending:"\u0432\u0438\u0441\u0445\u0456\u0434\u043D\u0438\u0439",ascendingSort:e=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${e.columnName} \u0443 \u0432\u0438\u0441\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,columnSize:e=>`${e.value} \u043F\u0456\u043A\u0441.`,descending:"\u043D\u0438\u0437\u0445\u0456\u0434\u043D\u0438\u0439",descendingSort:e=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${e.columnName} \u0443 \u043D\u0438\u0437\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0437\u043C\u0456\u043D\u0443 \u0440\u043E\u0437\u043C\u0456\u0440\u0443",select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",selectAll:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0443\u0432\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u043E\u0432\u043F\u0435\u0446\u044C",collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"},"zh-CN":{ascending:"\u5347\u5E8F",ascendingSort:e=>`\u6309\u5217 ${e.columnName} \u5347\u5E8F\u6392\u5E8F`,columnSize:e=>`${e.value} \u50CF\u7D20`,descending:"\u964D\u5E8F",descendingSort:e=>`\u6309\u5217 ${e.columnName} \u964D\u5E8F\u6392\u5E8F`,resizerDescription:"\u6309\u201C\u8F93\u5165\u201D\u952E\u5F00\u59CB\u8C03\u6574\u5927\u5C0F\u3002",select:"\u9009\u62E9",selectAll:"\u5168\u9009",sortable:"\u53EF\u6392\u5E8F\u7684\u5217",collapse:"\u6298\u53E0",expand:"\u6269\u5C55"},"zh-TW":{ascending:"\u905E\u589E",ascendingSort:e=>`\u5DF2\u4F9D\u64DA\u300C${e.columnName}\u300D\u6B04\u905E\u589E\u6392\u5E8F`,columnSize:e=>`${e.value} \u50CF\u7D20`,descending:"\u905E\u6E1B",descendingSort:e=>`\u5DF2\u4F9D\u64DA\u300C${e.columnName}\u300D\u6B04\u905E\u6E1B\u6392\u5E8F`,resizerDescription:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u8ABF\u6574\u5927\u5C0F",select:"\u9078\u53D6",selectAll:"\u5168\u9078",sortable:"\u53EF\u6392\u5E8F\u7684\u6B04",collapse:"\u6536\u5408",expand:"\u5C55\u958B"}};var Ff=class extends ss{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t,r){let o=this.collection.getItem(t);if(!o)return null;if(o.type==="column"){let n=xr(Ge(o,this.collection));if(n)return n.key;let i=this.getFirstKey();return i==null||!this.collection.getItem(i)?null:super.getKeyForItemInRowByIndex(i,o.index)}return super.getKeyBelow(t,r)}getKeyAbove(t,r){let o=this.collection.getItem(t);if(!o)return null;if(o.type==="column"){let a=o.parentKey!=null?this.collection.getItem(o.parentKey):null;return a&&a.type==="column"?a.key:null}let n=super.getKeyAbove(t,r),i=n!=null?this.collection.getItem(n):null;return i&&i.type!=="headerrow"?n:this.isCell(o)?this.collection.columns[o.index].key:this.collection.columns[0].key}findNextColumnKey(t){let r=this.findNextKey(t.key,n=>n.type==="column");if(r!=null)return r;let o=this.collection.headerRows[t.level];for(let n of Ge(o,this.collection))if(n.type==="column")return n.key;return null}findPreviousColumnKey(t){let r=this.findPreviousKey(t.key,i=>i.type==="column");if(r!=null)return r;let o=this.collection.headerRows[t.level],n=[...Ge(o,this.collection)];for(let i=n.length-1;i>=0;i--){let a=n[i];if(a.type==="column")return a.key}return null}getKeyRightOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(r):this.findNextColumnKey(r):super.getKeyRightOf(t):null}getKeyLeftOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findNextColumnKey(r):this.findPreviousColumnKey(r):super.getKeyLeftOf(t):null}getKeyForSearch(t,r){if(!this.collator)return null;let o=this.collection,n=r??this.getFirstKey();if(n==null)return null;let i=o.getItem(n);i?.type==="cell"&&(n=i.parentKey??null);let a=false;for(;n!=null;){let l=o.getItem(n);if(!l)return null;if(l.textValue){let s=l.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return l.key}for(let s of Ge(l,this.collection)){let u=o.columns[s.index];if(o.rowHeaderColumnKeys.has(u.key)&&s.textValue){let c=s.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return (r!=null?o.getItem(r):i)?.type==="cell"?s.key:l.key}}n=this.getKeyBelow(n),n==null&&!a&&(n=this.getFirstKey(),a=true);}return null}};function uT(e,t,r){let{keyboardDelegate:o,isVirtualized:n,layoutDelegate:i,layout:a}=e,l=or({usage:"search",sensitivity:"base"}),{direction:s}=Q(),u=t.selectionManager.disabledBehavior,c=useMemo(()=>o||new Ff({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:u,ref:r,direction:s,collator:l,layoutDelegate:i,layout:a}),[o,t.collection,t.disabledKeys,u,r,s,l,i,a]),d=ee(e.id);Of.set(t,d);let{gridProps:p}=bw({...e,id:d,keyboardDelegate:c},t,r);n&&(p["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(p.role="treegrid");let{column:m,direction:f}=t.sortDescriptor||{},y=Te(tn,"@react-aria/table"),b=useMemo(()=>{let x=t.collection.columns.find(h=>h.key===m)?.textValue??"";return f&&m?y.format(`${f}Sort`,{columnName:x}):void 0},[f,m,t.collection.columns]),g=Dt(b);return Rn(()=>{b&&at(b,"assertive",500);},[b]),{gridProps:M(p,g,{"aria-describedby":[g["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function Kf(e,t,r){let{node:o,isVirtualized:n,focusMode:i="child",shouldSelectOnPressUp:a,onAction:l}=e,{direction:s}=Q(),{keyboardDelegate:u,actions:{onCellAction:c}}=us.get(t),d=useRef(null),p=()=>{if(r.current){let x=rt(r.current);if(i==="child"){if(Co(r.current)&&r.current!==de(U(r.current)))return;let h=t.selectionManager.childFocusStrategy==="last"?cT(x):x.firstChild();if(h){qe(h);return}}(d.current!=null&&o.key!==d.current||!Co(r.current))&&qe(r.current);}},{itemProps:m,isPressed:f}=Rr({selectionManager:t.selectionManager,key:o.key,ref:r,focus:p,shouldSelectOnPressUp:a,onAction:c?()=>c(o.key):l,isDisabled:t.collection.size===0}),y=x=>{let h=de(U(r.current));if(!Z(x.currentTarget,$(x))||t.isKeyboardNavigationDisabled||!r.current||!h)return;let v=rt(r.current);switch(v.currentNode=h,x.key){case "ArrowLeft":{let C=s==="rtl"?v.nextNode():v.previousNode();if(i==="child"&&C===r.current&&(C=null),x.preventDefault(),x.stopPropagation(),C)qe(C),wt(C,{containingElement:Qe(r.current)});else {if(u.getKeyLeftOf?.(o.key)!==o.key){r.current.parentElement?.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent));break}i==="cell"&&s==="rtl"?(qe(r.current),wt(r.current,{containingElement:Qe(r.current)})):(v.currentNode=r.current,C=s==="rtl"?v.firstChild():cT(v),C&&(qe(C),wt(C,{containingElement:Qe(r.current)})));}break}case "ArrowRight":{let C=s==="rtl"?v.previousNode():v.nextNode();if(i==="child"&&C===r.current&&(C=null),x.preventDefault(),x.stopPropagation(),C)qe(C),wt(C,{containingElement:Qe(r.current)});else {if(u.getKeyRightOf?.(o.key)!==o.key){r.current.parentElement?.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent));break}i==="cell"&&s==="ltr"?(qe(r.current),wt(r.current,{containingElement:Qe(r.current)})):(v.currentNode=r.current,C=s==="rtl"?cT(v):v.firstChild(),C&&(qe(C),wt(C,{containingElement:Qe(r.current)})));}break}case "ArrowUp":case "ArrowDown":!x.altKey&&Z(r.current,$(x))&&(x.stopPropagation(),x.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent)));break}},b=x=>{if(d.current=o.key,$(x)!==r.current){Nt()||t.selectionManager.setFocusedKey(o.key);return}requestAnimationFrame(()=>{i==="child"&&de(U(r.current))===r.current&&p();});},g=M(m,{role:"gridcell",onKeyDownCapture:y,"aria-colspan":o.colSpan,"aria-colindex":o.colIndex!=null?o.colIndex+1:void 0,colSpan:n?void 0:o.colSpan,onFocus:b});return n&&(g["aria-colindex"]=(o.colIndex??o.index)+1),a&&g.tabIndex!=null&&g.onPointerDown==null&&(g.onPointerDown=x=>{let h=x.currentTarget,v=h.getAttribute("tabindex");h.removeAttribute("tabindex"),requestAnimationFrame(()=>{v!=null&&h.setAttribute("tabindex",v);});}),{gridCellProps:g,isPressed:f}}function cT(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function dT(e,t,r){let{node:o}=e,n=o.props.allowsSorting,{gridCellProps:i}=Kf({...e,focusMode:"child"},t,r),a=o.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:l,isPressed:s}=Oe({isDisabled:!n||a,onPress(){t.sort(o.key);},ref:r}),{focusableProps:u}=it({},r),c,d=t.sortDescriptor?.column===o.key,p=t.sortDescriptor?.direction;o.props.allowsSorting&&!sr()&&(c=d?p:"none");let m=Te(tn,"@react-aria/table"),f;n&&(f=`${m.format("sortable")}`,d&&p&&sr()&&(f=`${f}, ${m.format(p)}`));let y=Dt(f),b=t.collection.size===0;return useEffect(()=>{b&&t.selectionManager.focusedKey===o.key&&t.selectionManager.setFocusedKey(null);},[b,t.selectionManager,o.key]),{columnHeaderProps:{...M(u,i,l,y,b?{tabIndex:-1}:null),role:"columnheader",id:Nf(t,o.key),"aria-colspan":o.colSpan&&o.colSpan>1?o.colSpan:void 0,"aria-sort":c},isPressed:s}}function hw(e,t,r){let{node:o,isVirtualized:n,shouldSelectOnPressUp:i,onAction:a}=e,{actions:l,shouldSelectOnPressUp:s}=us.get(t),u=l.onRowAction?()=>l.onRowAction?.(o.key):a,{itemProps:c,...d}=Rr({selectionManager:t.selectionManager,key:o.key,ref:r,shouldSelectOnPressUp:s||i,onAction:u||o?.props?.onAction?Ye(o?.props?.onAction,u):void 0,isDisabled:t.collection.size===0}),p=t.selectionManager.isSelected(o.key),m={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?p:void 0,"aria-disabled":d.isDisabled||void 0,...c};return n&&(m["aria-rowindex"]=o.index+1),{rowProps:m,...d}}var vw={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function pT(e,t,r){let{node:o,isVirtualized:n}=e,{rowProps:i,...a}=hw(e,t,r),{direction:l}=Q();n&&t.treeColumn==null?i["aria-rowindex"]=o.index+1+t.collection.headerRows.length:delete i["aria-rowindex"];let s=t.treeColumn!=null&&(t.expandedKeys==="all"||t.expandedKeys.has(o.key)),u=Te(tn,"@react-aria/table"),c=tt({"aria-label":s?u.format("collapse"):u.format("expand"),"aria-labelledby":$c(t,o.key)}),d={},p={};if(t.treeColumn!=null){let y=t.collection.getItem(o.key);if(y!=null){let b=xw(t.collection,o),g=y.props?.hasChildRows||y.props?.UNSTABLE_childItems||b?.type!=="cell",x=t.collection.getItem(o.parentKey),h=x.type==="tablebody"||x.type==="body",v=xw(t.collection,x);for(;v&&v.type!=="item"&&v.prevKey!=null;)v=t.collection.getItem(v.prevKey);d={onKeyDown:C=>{C.key===vw.expand[l]&&t.selectionManager.focusedKey===y.key&&g&&t.expandedKeys!=="all"&&!t.expandedKeys.has(y.key)?(t.toggleKey(y.key),C.stopPropagation()):C.key===vw.collapse[l]&&t.selectionManager.focusedKey===y.key&&(t.expandedKeys!=="all"?g&&t.expandedKeys.has(y.key)?(t.toggleKey(y.key),C.stopPropagation()):!t.expandedKeys.has(y.key)&&y.parentKey!=null&&y.level>0&&(t.selectionManager.setFocusedKey(y.parentKey),C.stopPropagation()):t.expandedKeys==="all"&&(t.toggleKey(y.key),C.stopPropagation()));},"aria-expanded":g?t.expandedKeys==="all"||t.expandedKeys.has(o.key):void 0,"aria-level":y.level+1,"aria-posinset":y.index-(h?0:t.collection.columnCount)+1,"aria-setsize":v.index-(h?0:t.collection.columnCount)+1},p={isDisabled:a.isDisabled,onPress:()=>{a.isDisabled||(t.toggleKey(o.key),t.selectionManager.setFocused(true),t.selectionManager.setFocusedKey(o.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...c};}}let m=bl(o.props),f=a.hasAction?m:{};return {rowProps:{...M(i,d,f),"aria-labelledby":$c(t,o.key)},expandButtonProps:p,...a}}function xw(e,t){return "lastChildKey"in t?t.lastChildKey!=null?e.getItem(t.lastChildKey):null:Array.from(t.childNodes).findLast(r=>r.parentKey===t.key)}function mT(e,t,r){let{node:o,isVirtualized:n}=e,i={role:"row"};return n&&t.treeColumn==null&&(i["aria-rowindex"]=o.index+1),{rowProps:i}}function fT(e,t,r){let{gridCellProps:o,isPressed:n}=Kf(e,t,r),i=e.node.column?.key;return i!=null&&t.collection.rowHeaderColumnKeys.has(i)&&(o.role="rowheader",o.id=sT(t,e.node.parentKey,i)),{gridCellProps:o,isPressed:n}}function yT(e,t){let{key:r}=e,{checkboxProps:o}=Rf(e,t);return {checkboxProps:{...o,"aria-labelledby":`${o.id} ${$c(t,r)}`}}}function bT(e){let{isEmpty:t,isSelectAll:r,selectionMode:o}=e.selectionManager;return {checkboxProps:{"aria-label":Te(tn,"@react-aria/table").format(o==="single"?"select":"selectAll"),isSelected:r,isDisabled:o!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function gT(e,t,r){let{column:o,triggerRef:n,isDisabled:i,onResizeStart:a,onResize:l,onResizeEnd:s,"aria-label":u}=e,c=Te(tn,"@react-aria/table"),d=ee(),p=t.resizingColumn===o.key,m=useRef(p),f=useRef(null),y=useRef(false),b=t.tableState.isKeyboardNavigationDisabled,{direction:g}=Q(),x=useCallback(L=>{m.current||(f.current=t.updateResizedColumns(L.key,t.getColumnWidth(L.key)),t.startResize(L.key),t.tableState.setKeyboardNavigationDisabled(true),a?.(f.current)),m.current=true;},[t,a]),h=useCallback((L,B)=>{let G=t.updateResizedColumns(L.key,B);l?.(G),f.current=G;},[t,l]),v=useCallback(L=>{m.current&&(f.current==null&&(f.current=t.updateResizedColumns(L.key,t.getColumnWidth(L.key))),t.endResize(),t.tableState.setKeyboardNavigationDisabled(false),s?.(f.current),m.current=false,n?.current&&!y.current&&qe(n.current)),f.current=null;},[t,n,s]),{keyboardProps:C}=Ae({onKeyDown:L=>{b?(L.key==="Escape"||L.key==="Enter"||L.key===" "||L.key==="Tab")&&(L.preventDefault(),v(o)):(L.continuePropagation(),L.key==="Enter"&&x(o));}}),T=useRef(0),{moveProps:P}=Ln({onMoveStart(){T.current=t.getColumnWidth(o.key),x(o);},onMove(L){let{deltaX:B,deltaY:G,pointerType:q}=L;g==="rtl"&&(B*=-1),q==="keyboard"&&(G!==0&&B===0&&(B=G*-1),B*=10),B!==0&&(T.current+=B,h(o,T.current));},onMoveEnd(L){let{pointerType:B}=L;T.current=0,(B==="mouse"||B==="touch"&&y.current)&&v(o);}}),k=useCallback(L=>{b&&P.onKeyDown?.(L);},[b,P]),S=Math.floor(t.getColumnMinWidth(o.key)),w=Math.floor(t.getColumnMaxWidth(o.key));w===1/0&&(w=Number.MAX_SAFE_INTEGER);let E=Math.floor(t.getColumnWidth(o.key)),z=er();z==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(z="touch");let A=n?.current==null&&(z==="keyboard"||z==="virtual")&&!p?c.format("resizerDescription"):void 0,D=Dt(A),O={"aria-label":u,"aria-orientation":"horizontal","aria-labelledby":`${d} ${Nf(t.tableState,o.key)}`,"aria-valuetext":c.format("columnSize",{value:E}),type:"range",min:S,max:w,value:E,...D},R=useCallback(()=>{r.current&&qe(r.current);},[r]),N=t.resizingColumn,F=useRef(null),I=De(x);useEffect(()=>{if(F.current!==N&&N!=null&&N===o.key){y.current=de(U(r.current))===r.current,I(o);let L=setTimeout(()=>R(),0),B=setTimeout(R,400);return ()=>{clearTimeout(L),clearTimeout(B);}}F.current=N;},[N,o,R,r]);let V=L=>{let B=t.getColumnWidth(o.key),G=parseFloat($(L).value);G>B?G=B+10:G=B-10,h(o,G);},{pressProps:H}=Oe({preventFocusOnPress:true,onPressStart:L=>{if(!(L.ctrlKey||L.altKey||L.metaKey||L.shiftKey||L.pointerType==="keyboard")){if(L.pointerType==="virtual"&&t.resizingColumn!=null){v(o);return}R(),L.pointerType!=="virtual"&&x(o);}},onPress:L=>{(L.pointerType==="touch"&&y.current||L.pointerType==="mouse")&&t.resizingColumn!=null&&v(o);}}),{visuallyHiddenProps:K}=Ft();return {resizerProps:M(C,{...P,onKeyDown:k},H,{style:{touchAction:"none"}}),inputProps:M(K,{id:d,onBlur:()=>{v(o);},onChange:V,disabled:i},O),isResizing:p}}function Tw(){return {rowGroupProps:{role:"rowgroup"}}}function Vf(){return Tw()}var hT=class extends zn{headerRows=[];columns=[];rows=[];rowHeaderColumnKeys=new Set;head=new Hf(-1);columnsDirty=true;expandedKeys=new Set;withExpandedKeys(t){let r=this.clone();return r.expandedKeys=t,r.frozen=this.frozen,r.rows=Array.from(r.getRows()),r}addNode(t){super.addNode(t),this.columnsDirty||=t.type==="column",t.type==="tableheader"&&(this.head=t);}getRows(){let t=[];for(let r of this)(r.type==="tablebody"||r.type==="tablefooter")&&t.push(...this.getChildren(r.key));return t}get body(){for(let t of this)if(t.type==="tablebody")return t;return new $f(-2)}commit(t,r,o=false){this.updateColumns(o),this.firstKey=t,this.lastKey=r,this.rows=[];for(let n of this.getRows()){let i=n.lastChildKey;if(i!=null){let a=this.getItem(i);for(;a&&a.type!=="cell";)a=a.prevKey!=null?this.getItem(a.prevKey):null;if(a){let l=(a.colIndex??a.index)+(a.colSpan??1);if(l!==this.columns.length&&!o)throw new Error(`Cell count must match column count. Found ${l} cells and ${this.columns.length} columns.`)}}this.rows.push(n);}super.commit(t,r,o);}updateColumns(t){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let r=new Map,o=n=>{n.type==="column"&&(r.set(n.key,n),n.hasChildNodes||(n.index=this.columns.length,this.columns.push(n),n.props.isRowHeader&&this.rowHeaderColumnKeys.add(n.key)));for(let i of this.getChildren(n.key))o(i);};for(let n of this.getChildren(this.head.key))o(n);if(this.headerRows=Af(r,this.columns),this.columnsDirty=false,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!t)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let t=this.firstKey;for(;t!=null;){let r=this.getItem(t);r&&(yield r),t=r?.nextKey??null;}}getFirstKey(){for(let t of this)if(t.type==="tablebody")return t.firstChildKey??null;return null}getLastKey(){let t=this.lastKey;if(t==null)return null;let r=this.getItem(t);for(;r?.lastChildKey!=null&&(r.type!=="item"||this.expandedKeys.has(r.key));)r=this.getItem(r.lastChildKey);return r?.key}getKeyAfter(t){let r=this.getItem(t);if(r?.type==="column")return r.nextKey??null;if(!r)return null;if(r.type==="item"&&r.firstChildKey!=null&&this.expandedKeys.has(r.key)){let o=this.getItem(r.firstChildKey);for(;o;){if(o.type==="item")return o.key;o=o.nextKey!=null?this.getItem(o.nextKey):null;}}return super.getKeyAfter(t)}getKeyBefore(t){let r=this.getItem(t);if(r?.type==="column")return r.prevKey??null;if(!r)return null;let o=null;if(r.prevKey!=null){for(r=this.getItem(r.prevKey);r&&(r.type!=="item"||this.expandedKeys.has(r.key))&&r.lastChildKey!=null;)r=this.getItem(r.lastChildKey);o=r?.key??null;}return o==null&&(o=r.parentKey),o!=null&&this.getItem(o)?.type==="tableheader"?null:o}getChildren(t){let r=this.getItem(t);if(!r){for(let n of this.headerRows)if(n.key===t)return n.childNodes}let o=this;return r?.type==="tablebody"||r?.type==="tablefooter"?{*[Symbol.iterator](){let n=r.firstChildKey,i=n!=null?o.getItem(n):null;for(;i;){yield i;let a=o.getKeyAfter(i.key);if(i=a!=null?o.getItem(a):null,i&&i.parentKey===r.parentKey)break}}}:{*[Symbol.iterator](){let n=o.getItem(t),i=n?.firstChildKey!=null?o.getItem(n.firstChildKey):null;for(;i&&(yield i,i=i.nextKey!=null?o.getItem(i.nextKey):null,!(n?.type==="item"&&i?.type!=="cell")););}}}clone(){let t=super.clone();return t.headerRows=this.headerRows,t.columns=this.columns,t.rows=this.rows,t.rowHeaderColumnKeys=this.rowHeaderColumnKeys,t.head=this.head,t}getTextValue(t){let r=this.getItem(t);if(!r)return "";if(r.textValue)return r.textValue;let o=this.rowHeaderColumnKeys,n=[];for(let i of this.getChildren(t)){let a=this.columns[i.index];if(o.has(a.key)&&i.textValue&&n.push(i.textValue),n.length===o.size)break}return n.join(" ")}},PT=createContext(null);forwardRef(function(t,r){let o=pe(r),n=useRef(null),i=useRef(null),[a,l]=useState(0);re(()=>{let u=n.current;for(;u&&u!==o.current&&!Wt(u);)u=u.parentElement;i.current=u;},[o]),Gr({ref:i,box:"border-box",onResize(){l(i.current?.clientWidth??0);}}),re(()=>{l(i.current?.clientWidth??0);},[]);let s=useMemo(()=>({tableRef:n,scrollRef:i,tableWidth:a,useTableColumnResizeState:oT,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd}),[n,a,t.onResizeStart,t.onResize,t.onResizeEnd]);return jsx(Pe.div,{render:t.render,...oe(t,{global:true}),ref:o,className:t.className||"react-aria-ResizableTableContainer",style:t.style,onScroll:t.onScroll,children:jsx(PT.Provider,{value:s,children:t.children})})});var Pw=createContext(null),Lo=createContext(null),ps=createContext(null),ST=forwardRef(function(t,r){[t,r]=Ie(t,r,Pw);let o=Eo(t),{selectionBehavior:n,selectionMode:i,disallowEmptySelection:a}=o,l=!!t.dragAndDropHooks?.useDraggableCollectionState,s=useMemo(()=>({selectionBehavior:i==="none"?null:n,selectionMode:i,disallowEmptySelection:a,allowsDragging:l}),[n,i,a,l]),u=jsx(UU.Provider,{value:s,children:jsx(_t,{...t})});return jsx(no,{content:u,createCollection:()=>new hT,children:c=>jsx(GU,{props:t,forwardedRef:r,selectionState:o,collection:c})})}),jU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.table,{...t,ref:r})}),Cw={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function GU({props:e,forwardedRef:t,selectionState:r,collection:o}){[e,t]=Ie(e,t,jo);let{shouldUseVirtualFocus:n,disallowTypeAhead:i,filter:a,...l}=e,s=useContext(PT);t=pe(useMemo(()=>se(t,s?.tableRef),[t,s?.tableRef]));let[u,c]=ye(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);o=useMemo(()=>o.withExpandedKeys(u),[o,u]);let d=nT({...l,collection:o,children:void 0,UNSAFE_selectionState:r,expandedKeys:u,onExpandedChange:c}),p=iT(d,a),{isVirtualized:m,layoutDelegate:f,dropTargetDelegate:y,CollectionRoot:b}=useContext(Re),{dragAndDropHooks:g}=e,{gridProps:x}=uT({...l,layoutDelegate:f,isVirtualized:m},p,t),h=p.selectionManager,v=!!g?.useDraggableCollectionState,C=!!g?.useDroppableCollectionState,T=useRef(v),P=useRef(C);useEffect(()=>{process.env.NODE_ENV!=="production"&&(T.current!==v&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),P.current!==C&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[v,C]);let k,S,w,E=false,z=null,A=useRef(null),{direction:D}=Q(),[O]=useState(()=>new ls);if(v&&g){k=g.useDraggableCollectionState({collection:p.collection,selectionManager:h,preview:g.renderDragPreview?A:void 0}),g.useDraggableCollection({},k,t);let B=g.DragPreview;z=g.renderDragPreview?jsx(B,{ref:A,children:g.renderDragPreview}):null;}if(C&&g){S=g.useDroppableCollectionState({collection:p.collection,selectionManager:h});let B=new kt({collection:p.collection,disabledKeys:h.disabledKeys,disabledBehavior:h.disabledBehavior,ref:t,layoutDelegate:f}),G=g.dropTargetDelegate||y||new g.ListDropTargetDelegate(o.rows,t);O.setup(G,d,D),w=g.useDroppableCollection({keyboardDelegate:B,dropTargetDelegate:O,onDropActivate:q=>{if(q.target.type==="item"){let W=q.target.key,X=d.collection.getItem(W),ce=u.has(W);X&&X.hasChildNodes&&(!ce||g?.isVirtualDragging?.())&&d.toggleKey(W);}},onKeyDown:q=>{let W=S?.target;if(W&&W.type==="item"&&W.dropPosition==="on"){let X=d.collection.getItem(W.key);(q.key===Cw.expand[D]&&X?.hasChildNodes&&!d.expandedKeys.has(W.key)||q.key===Cw.collapse[D]&&X?.hasChildNodes&&d.expandedKeys.has(W.key))&&d.toggleKey(W.key);}}},S,t),E=S.isDropTarget({type:"root"});}let{focusProps:R,isFocused:N,isFocusVisible:F}=ne(),I=Ve({...e,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:E,isFocused:N,isFocusVisible:F,state:p}}),V=!!(v&&!k?.isDisabled),H=I.style,K=null;s&&(K=s.useTableColumnResizeState({tableWidth:s.tableWidth},p),m||(H={...H,tableLayout:"fixed",width:"min-content"}));let L=oe(e,{global:true});return jsxs(mt,{values:[[Lo,p],[ps,K],[Vt,{dragAndDropHooks:g,dragState:k,dropState:S}],[Mn,{render:QU}],[jo,null],[ri,null]],children:[jsx(Rt,{children:jsx(jU,{...M(L,I,x,R,w?.collectionProps),style:H,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":V||void 0,"data-drop-target":E||void 0,"data-focused":N||void 0,"data-focus-visible":F||void 0,children:jsx(bi,{children:jsx(b,{collection:p.collection,scrollRef:s?.scrollRef??t,persistedKeys:Bl(h,g,S)})})})}),z]})}var UU=createContext(null);var Hf=class extends Gt{static type="tableheader"},WU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.thead,{...t,ref:r})}),DT=Vr(Hf,(e,t)=>{let r=useContext(Lo).collection,o=wn({items:r.headerRows,children:useCallback(s=>{if(s.type==="headerrow")return jsx(XU,{item:s});throw new Error("Unsupported node type in TableHeader: "+s.type)},[])}),{rowGroupProps:n}=Vf(),{hoverProps:i,isHovered:a}=ae({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),l=Ve({...e,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:a}});return jsx(WU,{...M(oe(e,{global:true}),n,i),...l,ref:t,"data-hovered":a||void 0,children:o})},e=>jsx(_t,{dependencies:e.dependencies,items:e.columns,children:e.children})),qU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx("div",{...t,ref:r}):jsx("tr",{...t,ref:r})});function XU({item:e}){let t=useRef(null),r=useContext(Lo),{isVirtualized:o,CollectionBranch:n}=useContext(Re),{rowProps:i}=mT({node:e,isVirtualized:o},r),{checkboxProps:a}=bT(r);return jsx(qU,{...i,ref:t,children:jsx(mt,{values:[[la,{slots:{selection:a}}],[Ll,{slots:{selection:a}}]],children:jsx(n,{collection:r.collection,parent:e})})})}var vT=class extends Gt{static type="column"},YU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.th,{...t,ref:r})}),kT=dr(vT,(e,t,r)=>{let o=pe(t),n=useContext(Lo),{isVirtualized:i}=useContext(Re),{columnHeaderProps:a,isPressed:l}=dT({node:r,isVirtualized:i},n,o),{isFocused:s,isFocusVisible:u,focusProps:c}=ne(),d=useContext(ps),p=false;if(d)p=d.resizingColumn===r.key;else if(process.env.NODE_ENV!=="production")for(let x in ["width","defaultWidth","minWidth","maxWidth"])x in r.props&&console.warn(`The ${x} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:m,isHovered:f}=ae({isDisabled:!e.allowsSorting}),y=Ve({...e,children:r.rendered,defaultClassName:"react-aria-Column",values:{isHovered:f,isPressed:l,isFocused:s,isFocusVisible:u,allowsSorting:r.props.allowsSorting,sortDirection:n.sortDescriptor?.column===r.key?n.sortDescriptor.direction:void 0,isResizing:p,startResize:()=>{if(d)d.startResize(r.key),n.setKeyboardNavigationDisabled(true);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{n.sort(r.key,x);}}}),b=y.style;d&&(b={...b,width:d.getColumnWidth(r.key)});let g=oe(e,{global:true});return delete g.id,jsx(YU,{...M(g,a,c,m),...y,style:b,ref:o,"data-hovered":f||void 0,"data-pressed":l||void 0,"data-focused":s||void 0,"data-focus-visible":u||void 0,"data-resizing":p||void 0,"data-allows-sorting":r.props.allowsSorting||void 0,"data-sort-direction":n.sortDescriptor?.column===r.key?n.sortDescriptor.direction:void 0,children:jsx(mt,{values:[[Sw,{column:r,triggerRef:o}],[Re,oa]],children:y.children})})}),Sw=createContext(null);forwardRef(function(t,r){let o=useContext(ps);if(!o)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let n=Te(lE,"react-aria-components"),{onResizeStart:i,onResize:a,onResizeEnd:l}=useContext(PT),{column:s,triggerRef:u}=useContext(Sw),c=useRef(null),{resizerProps:d,inputProps:p,isResizing:m}=gT({column:s,"aria-label":t["aria-label"]||n.format("tableResizer"),onResizeStart:i,onResize:a,onResizeEnd:l,triggerRef:u},o,c),{focusProps:f,isFocused:y,isFocusVisible:b}=ne(),{hoverProps:g,isHovered:x}=ae(t),h=o.getColumnMinWidth(s.key)>=o.getColumnWidth(s.key),v=o.getColumnMaxWidth(s.key)<=o.getColumnWidth(s.key),{direction:C}=Q(),T="both";h?T=C==="rtl"?"right":"left":v?T=C==="rtl"?"left":"right":T="both";let P=pe(r),[k,S]=useState("");useEffect(()=>{if(!P.current)return;let O=Y(P.current).getComputedStyle(P.current);S(O.cursor);},[P,T]);let w=Ve({...t,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:y,isFocusVisible:b,isResizing:m,isHovered:x,resizableDirection:T}}),[E,z]=useState(false),A=O=>{O.pointerType==="mouse"&&z(true);};!m&&E&&z(false);let D=oe(t,{global:true});return jsxs(Pe.div,{ref:P,role:"presentation",...M(D,w,d,{onPointerDown:A},g),"data-hovered":x||void 0,"data-focused":y||void 0,"data-focus-visible":b||void 0,"data-resizing":m||void 0,"data-resizable-direction":T,children:[w.children,jsx("input",{ref:c,...M(p,f)}),m&&E&&R2.createPortal(jsx("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:k}}),U(P.current).body)]})});var $f=class extends ea{static type="tablebody"},JU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.tbody,{...t,ref:r})}),ET=Vr($f,(e,t,r)=>{let o=useContext(Lo),{isVirtualized:n}=useContext(Re),i=o.collection,{CollectionBranch:a}=useContext(Re),{dragAndDropHooks:l,dropState:s}=useContext(Vt),u=!!l?.useDroppableCollectionState&&!s?.isDisabled,c=u&&!!s&&(s.isDropTarget({type:"root"})??false),d=i.size===0,p={isDropTarget:c,isEmpty:d},m=Ve({...e,children:void 0,defaultClassName:"react-aria-TableBody",values:p}),f,y=i.columnCount;if(d&&e.renderEmptyState&&o){let x={},h={},v={};n?(h["aria-colspan"]=y,v={display:"contents"}):h.colSpan=y,f=jsx(cs,{role:"row",...x,style:v,children:jsx(ds,{role:"rowheader",...h,style:v,children:e.renderEmptyState(p)})});}let{rowGroupProps:b}=Vf(),g=oe(e,{global:true});return jsxs(JU,{...M(g,m,b),ref:t,"data-empty":d||void 0,children:[u&&jsx(nW,{}),jsx(a,{collection:i,parent:r,renderDropIndicator:fa(l,s)}),f]})});forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.tfoot,{...t,ref:r})});var Dw=createContext({isFocusVisibleWithinRow:false}),xT=class extends Gt{static type="item";filter(t,r,o){let n=t.getChildren(this.key);for(let i of n)if(o(i.textValue,i)){let a=this.clone();return r.addDescendants(a,t),a}return null}},cs=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.tr,{...t,ref:r})}),zT=Vr(xT,(e,t,r)=>{let o=pe(t),n=useContext(Lo),{dragAndDropHooks:i,dragState:a,dropState:l}=useContext(Vt),{isVirtualized:s,CollectionBranch:u}=useContext(Re),c=a&&!(a.isDisabled||a.selectionManager.isDisabled(r.key)),{rowProps:d,expandButtonProps:p,...m}=pT({node:r,shouldSelectOnPressUp:!!a,isVirtualized:s},n,o),{isFocused:f,isFocusVisible:y,focusProps:b}=ne(),{isFocusVisible:g,focusProps:x}=ne({within:true}),{hoverProps:h,isHovered:v}=ae({isDisabled:!m.allowsSelection&&!m.hasAction&&!c,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:C}=yT({key:r.key},n),T;a&&i&&(T=i.useDraggableItem({key:r.key,hasDragButton:true},a,o));let P,k=useRef(null),{visuallyHiddenProps:S}=Ft();l&&i&&(P=i.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"}},l,k));let w=useRef(null);useEffect(()=>{a&&!w.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let E=a&&a.isDragging(r.key),{children:z,...A}=e,D=e.hasChildItems||n.collection.getItem(r.lastChildKey)?.type!=="cell",O=D&&n.expandedKeys.has(r.key),R=Ve({...A,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":r.level+1},values:{...m,state:n,isHovered:v,isFocused:f,isFocusVisible:y,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,isDragging:E,isDropTarget:P?.isDropTarget,isFocusVisibleWithin:g,id:r.key,hasChildItems:D,isExpanded:O,level:r.level+1}}),N=oe(e,{global:true});return delete N.id,delete N.onClick,jsxs(Fragment,{children:[P&&!P.isHidden&&jsx(cs,{role:"row",style:{height:0},children:jsx(ds,{role:"gridcell",colSpan:n.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...S,...P.dropIndicatorProps,ref:k})})}),jsx(cs,{...M(N,R,d,b,h,T?.dragProps,x),ref:o,"data-disabled":m.isDisabled||void 0,"data-selected":m.isSelected||void 0,"data-hovered":v||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":y||void 0,"data-pressed":m.isPressed||void 0,"data-dragging":E||void 0,"data-drop-target":P?.isDropTarget||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode,"data-focus-visible-within":g||void 0,"data-expanded":O||void 0,"data-has-child-items":D||void 0,"data-level":r.level+1,children:jsx(mt,{values:[[la,{slots:{[ro]:{},selection:C}}],[Ll,{slots:{[ro]:{},selection:C}}],[io,{slots:{[ro]:{},chevron:p,drag:{...T?.dragButtonProps,ref:w,style:{pointerEvents:"none"}}}}],[An,{isSelected:m.isSelected}],[Dw,{isFocusVisibleWithinRow:g}]],children:jsx(u,{collection:n.collection,parent:r})})})]})},e=>{if(e.id==null&&typeof e.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let t=[e.value].concat(e.dependencies);return jsx(_t,{dependencies:t,items:e.columns,idScope:e.id,children:e.children})}),TT=class extends Gt{static type="cell"},ds=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.td,{...t,ref:r})}),wT=dr(TT,(e,t,r)=>{let o=pe(t),n=useContext(Lo),{dragState:i}=useContext(Vt),{isVirtualized:a}=useContext(Re);r.column=n.collection.columns[r.index];let{gridCellProps:l,isPressed:s}=fT({node:r,shouldSelectOnPressUp:!!i,isVirtualized:a},n,o),{isFocused:u,isFocusVisible:c,focusProps:d}=ne(),{hoverProps:p,isHovered:m}=ae({}),{isFocusVisibleWithinRow:f}=useContext(Dw),y=r.parentKey!=null?n.selectionManager.isSelected(r.parentKey):false,b=r.colIndex||r.index,g=n.collection.getItem(r.parentKey),x=g.props.hasChildItems||n.collection.getItem(g.lastChildKey)?.type!=="cell",h=x&&n.expandedKeys.has(r.parentKey),v=n.selectionManager.isDisabled(r.parentKey),C=Ve({...e,defaultClassName:"react-aria-Cell",values:{isFocused:u,isFocusVisible:c,isFocusVisibleWithinRow:f,isPressed:s,isHovered:m,isSelected:y,id:r.key,columnIndex:b,hasChildItems:x,isExpanded:h,isDisabled:v,level:g.level+1,isTreeColumn:r.column.key===n.treeColumn}}),T=oe(e,{global:true});return delete T.id,jsx(ds,{...M(T,C,l,d,p),ref:o,"data-focused":u||void 0,"data-focus-visible":c||void 0,"data-focus-visible-within-row":f||void 0,"data-pressed":s||void 0,"data-selected":y||void 0,"data-column-index":b,"data-expanded":h||void 0,"data-has-child-items":x||void 0,"data-level":g.level+1,"data-tree-column":r.column.key===n.treeColumn||void 0,"data-disabled":v||void 0,children:jsx(Re.Provider,{value:oa,children:C.children})})});function QU(e,t){t=pe(t);let{dragAndDropHooks:r,dropState:o}=useContext(Vt),n=useRef(null),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=r.useDropIndicator(e,o,n);if(a)return null;let s=o&&e.target.type==="item"?(o.collection.getItem(e.target.key)?.level||0)+1:1;return jsx(oW,{...e,dropIndicatorProps:i,isDropTarget:l,buttonRef:n,level:s,ref:t})}var eW=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.tr,{...t,ref:r})}),tW=forwardRef(function(t,r){let{isVirtualized:o}=useContext(Re);return o?jsx(Pe.div,{...t,ref:r}):jsx(Pe.td,{...t,ref:r})});function rW(e,t){let{dropIndicatorProps:r,isDropTarget:o,buttonRef:n,level:i,...a}=e,l=useContext(Lo),{visuallyHiddenProps:s}=Ft(),u=Ve({...a,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":i+1},values:{isDropTarget:o}});return jsx(eW,{...oe(e,{global:true}),...u,role:"row",ref:t,"data-drop-target":o||void 0,"aria-level":i,children:jsxs(tW,{role:"gridcell",colSpan:l.collection.columnCount,style:{padding:0},children:[jsx("div",{...s,role:"button",...r,ref:n}),u.children]})})}var oW=forwardRef(rW);function nW(){let e=useContext(Lo),{dragAndDropHooks:t,dropState:r}=useContext(Vt),o=useRef(null),{dropIndicatorProps:n}=t.useDropIndicator({target:{type:"root"}},r,o),i=r.isDropTarget({type:"root"}),{visuallyHiddenProps:a}=Ft();return !i&&n["aria-hidden"]?null:jsx(cs,{role:"row","aria-hidden":n["aria-hidden"],style:{height:0},children:jsx(ds,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...a,...n,ref:o})})})}var RT=dr(En,function(t,r,o){let n=useContext(Lo),{isVirtualized:i}=useContext(Re),{isLoading:a,onLoadMore:l,scrollOffset:s,...u}=t,c=n.collection.columns.length,d=useRef(null),p=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:d,scrollOffset:s}),[l,s,n?.collection]);ha(p,d);let m=Ve({...u,children:o.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":o.level+1},values:void 0}),f={},y={},b={};return i?(y["aria-colspan"]=c,b={display:"contents"}):y.colSpan=c,jsxs(Fragment,{children:[jsx(cs,{style:{height:0},inert:ya(true),children:jsx(ds,{style:{padding:0,border:0},children:jsx("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"relative",height:1,width:1}})})}),a&&m.children&&jsx(cs,{...M(oe(t,{global:true}),f),...m,role:"row",ref:r,"aria-level":o.level+1,"data-level":o.level+1,children:jsx(ds,{role:"rowheader",...y,style:b,children:m.children})})]})});var qt=class e{x;y;constructor(t=0,r=0){this.x=t,this.y=r;}copy(){return new e(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return this.x===0&&this.y===0}};var ke=class e{x;y;width;height;constructor(t=0,r=0,o=0,n=0){this.x=t,this.y=r,this.width=o,this.height=n;}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new qt(this.x,this.y)}get topRight(){return new qt(this.maxX,this.y)}get bottomLeft(){return new qt(this.x,this.maxY)}get bottomRight(){return new qt(this.maxX,this.maxY)}intersects(t){return (process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&t.area>0)&&this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let r of ["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[r]))return r;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let r=Math.min(this.x,t.x),o=Math.min(this.y,t.y),n=Math.max(this.maxX,t.maxX)-r,i=Math.max(this.maxY,t.maxY)-o;return new e(r,o,n,i)}intersection(t){if(!this.intersects(t))return new e(0,0,0,0);let r=Math.max(this.x,t.x),o=Math.max(this.y,t.y);return new e(r,o,Math.min(this.maxX,t.maxX)-r,Math.min(this.maxY,t.maxY)-o)}copy(){return new e(this.x,this.y,this.width,this.height)}};var _e=class e{width;height;constructor(t=0,r=0){this.width=Math.max(t,0),this.height=Math.max(r,0);}copy(){return new e(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}};var iW=0,jf=class{virtualizer;layoutInfo;content;rendered;viewType;key;children;reusableViews;constructor(t,r){this.virtualizer=t,this.key=++iW,this.viewType=r,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null;}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null;}getReusableView(t){let r=this.reusableViews.get(t);return r&&r.length>0?r.shift():new IT(this.virtualizer,this,t)}reuseChild(t){t.prepareForReuse();let r=this.reusableViews.get(t.viewType);r||(r=[],this.reusableViews.set(t.viewType,r)),r.push(t);}},Gf=class extends jf{constructor(t){super(t,"root");}},IT=class extends jf{parent;constructor(t,r,o){super(t,o),this.parent=r;}};function Ew(e,t){if(e===t)return true;if(e.size!==t.size)return false;for(let r of e)if(!t.has(r))return false;return true}var Uf=class{startTime=0;velocity=new qt(0,0);visibleRect=new ke;setVisibleRect(t){let r=performance.now()-this.startTime;r<500&&(t.x!==this.visibleRect.x&&r>0&&(this.velocity.x=(t.x-this.visibleRect.x)/r),t.y!==this.visibleRect.y&&r>0&&(this.velocity.y=(t.y-this.visibleRect.y)/r)),this.startTime=performance.now(),this.visibleRect=t;}getOverscannedRect(){let t=this.visibleRect.copy(),r=this.visibleRect.height/3;t.height+=r,this.velocity.y<0&&(t.y-=r);let o=this.visibleRect.width/3;return t.width+=o,this.velocity.x<0&&(t.x-=o),t}};var Wf=class{delegate;collection;layout;contentSize;visibleRect;size;persistedKeys;_visibleViews;_renderedContent;_rootView;_isScrolling;_invalidationContext;_overscanManager;constructor(t){this.delegate=t.delegate,this.collection=t.collection,this.layout=t.layout,this.contentSize=new _e,this.visibleRect=new ke,this.size=new _e,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new Gf(this),this._isScrolling=false,this._invalidationContext={},this._overscanManager=new Uf;}isPersistedKey(t){if(this.persistedKeys.has(t))return true;for(let r of this.persistedKeys)for(;r!=null;){let o=this.layout.getLayoutInfo(r);if(!o||o.parentKey==null)break;if(r=o.parentKey,r===t)return true}return false}getParentView(t){return t.parentKey!=null?this._visibleViews.get(t.parentKey):this._rootView}getReusableView(t){let o=this.getParentView(t).getReusableView(t.type);return o.layoutInfo=t,this._renderView(o),o}_renderView(t){if(t.layoutInfo){let{type:r,key:o,content:n}=t.layoutInfo;t.content=n||this.collection.getItem(o),t.rendered=this._renderContent(r,t.content);}}_renderContent(t,r){let o=r!=null?this._renderedContent.get(r):null;if(o!=null)return o;let n=this.delegate.renderView(t,r);return r&&this._renderedContent.set(r,n),n}keyAtPoint(t){let r=new ke(t.x,t.y,1,1),o=r.area===0?[]:this.layout.getVisibleLayoutInfos(r);for(let n of o)if(n.rect.intersects(r))return n.key;return null}relayout(t={}){this.layout.update(t),this.contentSize=this.layout.getContentSize();let r=this.visibleRect,o=t.contentChanged?0:r.x,n=t.contentChanged?0:r.y;if(o=Math.max(0,Math.min(this.contentSize.width-r.width,o)),n=Math.max(0,Math.min(this.contentSize.height-r.height,n)),o!==r.x||n!==r.y){let i=new ke(o,n,r.width,r.height);this.delegate.setVisibleRect(i);}else this.updateSubviews();}getVisibleLayoutInfos(){let t=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,r=t&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),o=t&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),n;t&&!(r&&o)?n=new ke(0,0,this.contentSize.width,this.contentSize.height):n=this._overscanManager.getOverscannedRect();let i=this.layout.getVisibleLayoutInfos(n),a=new Map;for(let l of i)a.set(l.key,l);return a}updateSubviews(){let t=this.getVisibleLayoutInfos(),r=new Set;for(let[o,n]of this._visibleViews){let i=t.get(o);(!i||n.parent!==this.getParentView(i))&&(this._visibleViews.delete(o),n.parent.reuseChild(n),r.add(n));}for(let[o,n]of t){let i=this._visibleViews.get(o);if(!i)i=this.getReusableView(n),i.parent.children.add(i),this._visibleViews.set(o,i),r.delete(i);else {i.layoutInfo=n;let a=this.collection.getItem(n.key);i.content!==a&&(i.content!=null&&this._renderedContent.delete(i.content),this._renderView(i));}}for(let o of r)o.parent.children.delete(o),o.parent.reusableViews.clear();if(!this._isScrolling)for(let o of t.keys()){let n=this._visibleViews.get(o);n.parent.children.delete(n),n.parent.children.add(n);}}render(t){let r=this,o=false,n=false,i=false,a=false,l=false,s=false;if(t.collection!==this.collection&&(r.collection=t.collection,o=true),(t.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),t.layout.virtualizer=this,r.layout=t.layout,o=true),t.persistedKeys&&!Ew(t.persistedKeys,this.persistedKeys)&&(r.persistedKeys=t.persistedKeys,s=true),!this.visibleRect.equals(t.visibleRect)||!this.size.equals(t.size)){this._overscanManager.setVisibleRect(t.visibleRect);let u=new ke(this.visibleRect.x,this.visibleRect.y,this.size.width,this.size.height),c=new ke(t.visibleRect.x,t.visibleRect.y,t.size.width,t.size.height);this.layout.shouldInvalidate(c,u)?(n=!t.visibleRect.pointEquals(this.visibleRect),i=!this.size.equals(t.size),o=true):s=true,r.visibleRect=t.visibleRect,r.size=t.size;}return t.invalidationContext!==this._invalidationContext&&(t.invalidationContext&&(i||=t.invalidationContext.sizeChanged||false,n||=t.invalidationContext.offsetChanged||false,a||=t.invalidationContext.itemSizeChanged||false,l||=t.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&t.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(t.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions),o||=a||i||n||l),this._invalidationContext=t.invalidationContext),t.isScrolling!==this._isScrolling&&(this._isScrolling=t.isScrolling,t.isScrolling||(s=true)),o?this.relayout({offsetChanged:n,sizeChanged:i,itemSizeChanged:a,layoutOptionsChanged:l,layoutOptions:this._invalidationContext.layoutOptions}):s&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(t){return this._visibleViews.get(t)}invalidate(t){this.delegate.invalidate(t);}updateItemSize(t,r){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(t,r)&&this.invalidate({itemSizeChanged:true});}};var sW=typeof document<"u"?qn.useLayoutEffect:()=>{};function _T(e){let[t,r]=useState(new ke(0,0,0,0)),[o,n]=useState(new _e),[i,a]=useState(false),[l,s]=useState({}),u=useRef(false),[c]=useState(()=>new Wf({collection:e.collection,layout:e.layout,delegate:{setVisibleRect(g){r(g),u.current=true;},renderView:e.renderView,invalidate:s}}));sW(()=>{u.current&&(u.current=false,e.onVisibleRectChange(t));});let d=useMemo(()=>e.layoutOptions!=null?{...l,layoutOptions:e.layoutOptions}:l,[l,e.layoutOptions]),p=c.render({layout:e.layout,collection:e.collection,persistedKeys:e.persistedKeys,layoutOptions:e.layoutOptions,visibleRect:t,size:o,invalidationContext:d,isScrolling:i}),m=c.contentSize,f=useCallback(()=>{a(true);},[]),y=useCallback(()=>{a(false);},[]);return useMemo(()=>({virtualizer:c,visibleViews:p,setVisibleRect:r,size:o,setSize:n,contentSize:m,isScrolling:i,startScrolling:f,endScrolling:y}),[c,p,r,o,n,m,i,f,y])}var Fn=class{virtualizer=null;shouldInvalidate(t,r){return t.width!==r.width||t.height!==r.height}shouldInvalidateLayoutOptions(t,r){return t!==r}update(t){}getItemRect(t){return this.getLayoutInfo(t)?.rect??null}getVisibleRect(){return this.virtualizer.visibleRect}};var xt=class e{type;key;parentKey;content;rect;estimatedSize;isSticky;opacity;transform;zIndex;allowOverflow;constructor(t,r,o){this.type=t,this.key=r,this.parentKey=null,this.content=null,this.rect=o,this.estimatedSize=false,this.isSticky=false,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=false;}copy(){let t=new e(this.type,this.key,this.rect.copy());return t.estimatedSize=this.estimatedSize,t.opacity=this.opacity,t.transform=this.transform,t.parentKey=this.parentKey,t.content=this.content,t.isSticky=this.isSticky,t.zIndex=this.zIndex,t.allowOverflow=this.allowOverflow,t}};var Cr={minItemSize:new _e(200,200),maxItemSize:new _e(1/0,1/0),preserveAspectRatio:false,minSpace:new _e(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48},qc=class extends Fn{gap=Cr.minSpace;dropIndicatorThickness=2;numColumns=0;direction="ltr";contentSize=new _e;layoutInfos=new Map;margin=0;shouldInvalidateLayoutOptions(t,r){return t.maxColumns!==r.maxColumns||t.dropIndicatorThickness!==r.dropIndicatorThickness||t.preserveAspectRatio!==r.preserveAspectRatio||!(t.minItemSize||Cr.minItemSize).equals(r.minItemSize||Cr.minItemSize)||!(t.maxItemSize||Cr.maxItemSize).equals(r.maxItemSize||Cr.maxItemSize)||!(t.minSpace||Cr.minSpace).equals(r.minSpace||Cr.minSpace)||t.maxHorizontalSpace!==r.maxHorizontalSpace||t.loaderHeight!==r.loaderHeight||t.direction!==r.direction}update(t){let{minItemSize:r=Cr.minItemSize,maxItemSize:o=Cr.maxItemSize,preserveAspectRatio:n=Cr.preserveAspectRatio,minSpace:i=Cr.minSpace,maxHorizontalSpace:a=Cr.maxSpace,maxColumns:l=Cr.maxColumns,dropIndicatorThickness:s=Cr.dropIndicatorThickness,loaderHeight:u=Cr.loaderHeight,direction:c="ltr"}=t.layoutOptions||{};this.dropIndicatorThickness=s,this.direction=c;let d=this.virtualizer.size.width,p=Math.min(o.width,d),m=Number.isFinite(o.height)?o.height:Math.floor(r.height/r.width*p),f=Math.floor(d/(r.width+i.width)),y=Math.max(1,Math.min(l,f));this.numColumns=y;let b=d-i.width*Math.max(0,y),g=Math.floor(b/y);g=Math.max(r.width,Math.min(p,g));let x=(g-r.width)/Math.max(1,p-r.width),h=r.height+Math.floor((m-r.height)*x);h=Math.max(r.height,Math.min(m,h));let v=Math.min(Math.max(a,i.width),Math.floor((d-y*g)/(y+1)));this.gap=new _e(v,i.height),this.margin=Math.floor((d-y*g-v*(y+1))/2);let C=this.virtualizer.collection,T=C.size,P=C.getLastKey();for(let O=0;O<2&&P!=null;O++){if(C.getItem(P)?.type==="skeleton"){T++;break}P=C.getKeyBefore(P);}let k=Math.ceil(T/y),S=C[Symbol.iterator](),w=k>0?i.height:0,E=new Map,z=null,A=0;for(let O=0;O<k;O++){let R=0,N=[];for(let F=0;F<y;F++){let I=z||S.next().value;if(!I)break;if(I.type==="loader")continue;I.type==="skeleton"&&(z=I);let V=z?`${z.key}-${A++}`:I.key,H=this.layoutInfos.get(V),K=I;z&&(K=H&&H.content.key===V?H.content:{...z,key:V});let L=v+F*(g+v)+this.margin,B=h,G=!n;H&&G&&(B=H.rect.height,G=t.layoutOptionsChanged||t.sizeChanged||H.estimatedSize||H.content!==K);let q=new ke(L,w,g,B),W=new xt(I.type,V,q);W.estimatedSize=G,W.allowOverflow=true,W.content=K,E.set(V,W),N.push(W),R=Math.max(R,W.rect.height);}for(let F of N)F.rect.height=R;w+=R+i.height,z&&O===k-1&&w<this.virtualizer.size.height&&k++;}let D=C.getItem(C.getLastKey());if(D?.type==="loader"){(A>0||!D.props.isLoading)&&(u=0);let O=d-v*2,R=new ke(v,w,O,u),N=new xt("loader",D.key,R);E.set(D.key,N),w=N.rect.maxY;}this.layoutInfos=E,this.contentSize=new _e(this.virtualizer.size.width,w);}getLayoutInfo(t){return this.layoutInfos.get(t)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(t){let r=[];for(let o of this.layoutInfos.values())(o.rect.intersects(t)||this.virtualizer.isPersistedKey(o.key)||o.type==="loader")&&r.push(o);return r}updateItemSize(t,r){let o=this.layoutInfos.get(t);if(!r||!o)return false;if(r.height!==o.rect.height){let n=o.copy();return n.rect.height=r.height,n.estimatedSize=false,this.layoutInfos.set(t,n),true}return false}getDropTargetFromPoint(t,r,o){if(this.layoutInfos.size===0)return {type:"root"};t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y,this.direction==="rtl"&&this.numColumns>1&&(t=this.contentSize.width-t);let n=null;if(this.numColumns===1){let c=new ke(t,Math.max(0,r-this.gap.height),1,Math.max(1,this.gap.height*2)),d=this.getVisibleLayoutInfos(c),p=1/0;for(let m of d){if(!m.rect.intersects(c))continue;let f=Math.abs(m.rect.y-r),y=Math.abs(m.rect.maxY-r),b=Math.min(f,y);b<p&&(p=b,n=m.key);}}else {let c=new ke(Math.max(0,t-this.gap.width),r,this.gap.width*2,1),d=this.getVisibleLayoutInfos(c),p=1/0;for(let m of d){if(!m.rect.intersects(c))continue;let f=Math.abs(m.rect.x-t),y=Math.abs(m.rect.maxX-t),b=Math.min(f,y);b<p&&(p=b,n=m.key);}}let i=n!=null?this.getLayoutInfo(n):null;if(!i)return {type:"root"};let a={type:"item",key:i.key,dropPosition:"on"},l=this.numColumns===1?r:t,s=this.numColumns===1?i.rect.y:i.rect.x,u=this.numColumns===1?i.rect.height:i.rect.width;if(o(a))l<s+5?a.dropPosition="before":l>s+u-5&&(a.dropPosition="after");else {let c=s+u/2;l<=c&&o({...a,dropPosition:"before"})?a.dropPosition="before":l>=c&&o({...a,dropPosition:"after"})&&(a.dropPosition="after");}return a}getDropTargetLayoutInfo(t){let r=this.getLayoutInfo(t.key),o;return this.numColumns===1?o=new ke(r.rect.x,t.dropPosition==="before"?r.rect.y-this.gap.height/2-this.dropIndicatorThickness/2:r.rect.maxY+this.gap.height/2-this.dropIndicatorThickness/2,r.rect.width,this.dropIndicatorThickness):o=new ke(t.dropPosition==="before"?r.rect.x-this.gap.width/2-this.dropIndicatorThickness/2:r.rect.maxX+this.gap.width/2-this.dropIndicatorThickness/2,r.rect.y,this.dropIndicatorThickness,r.rect.height),new xt("dropIndicator",t.key+":"+t.dropPosition,o)}};var Na=48,rn=class extends Fn{rowSize;orientation;estimatedRowSize;headingSize;estimatedHeadingSize;loaderSize;dropIndicatorThickness;gap;padding;layoutNodes;contentSize;lastCollection;rootNodes;invalidateEverything;validRect;requestedRect;constructor(t={}){super(),this.rowSize=t?.rowSize??t?.rowHeight??null,this.orientation=t.orientation??"vertical",this.estimatedRowSize=t?.estimatedRowSize??t?.estimatedRowHeight??null,this.headingSize=t?.headingSize??t?.headingHeight??null,this.estimatedHeadingSize=t?.estimatedHeadingSize??t?.estimatedHeadingHeight??null,this.loaderSize=t?.loaderSize??t?.loaderHeight??null,this.dropIndicatorThickness=t.dropIndicatorThickness||2,this.gap=t.gap||0,this.padding=t.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=false,this.validRect=new ke,this.requestedRect=new ke,this.contentSize=new _e;}get collection(){return this.virtualizer.collection}get rowHeight(){return this.rowSize}get estimatedRowHeight(){return this.estimatedRowSize}get headingHeight(){return this.headingSize}get estimatedHeadingHeight(){return this.estimatedHeadingSize}get loaderHeight(){return this.loaderSize}getLayoutInfo(t){return this.ensureLayoutInfo(t),this.layoutNodes.get(t)?.layoutInfo||null}getVisibleLayoutInfos(t){let r=this.orientation==="horizontal"?"x":"y",o=this.orientation==="horizontal"?"width":"height";if(t[o]>1){let a=(this.rowSize??this.estimatedRowSize??Na)+this.gap;t=t.copy();let l=Math.floor(t[r]/a)*a,s=t[o]+t[r]-l;t[r]=l,t[o]=Math.ceil(s/a)*a;}this.layoutIfNeeded(t);let n=[],i=a=>{for(let l of a)this.isVisible(l,t)&&(n.push(l.layoutInfo),l.children&&i(l.children));};return i(this.rootNodes),n}layoutIfNeeded(t){if(this.lastCollection){this.requestedRect.containsRect(t)||(this.requestedRect=this.requestedRect.union(t),this.rootNodes=this.buildCollection());for(let r of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(r))return}}ensureLayoutInfo(t){return !this.layoutNodes.has(t)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new ke(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new ke(0,0,this.contentSize.width,this.contentSize.height),true):false}isVisible(t,r){return t.layoutInfo.rect.intersects(r)||t.layoutInfo.isSticky||t.layoutInfo.type==="header"||t.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(t.layoutInfo.key)}shouldInvalidateEverything(t){let r=t.layoutOptions;return t.sizeChanged||this.rowSize!==(r?.rowSize??r?.rowHeight??this.rowSize)||this.orientation!==(r?.orientation??this.orientation)||this.headingSize!==(r?.headingSize??r?.headingHeight??this.headingSize)||this.loaderSize!==(r?.loaderSize??r?.loaderHeight??this.loaderSize)||this.gap!==(r?.gap??this.gap)||this.padding!==(r?.padding??this.padding)}shouldInvalidateLayoutOptions(t,r){return (t?.rowSize??t?.rowHeight)!==(r?.rowSize??r?.rowHeight)||t.orientation!==r.orientation||(t?.estimatedRowSize??t?.estimatedRowHeight)!==(r?.estimatedRowSize??r?.estimatedRowHeight)||(t?.headingSize??t?.headingHeight)!==(r?.headingSize??r?.headingHeight)||(t?.estimatedHeadingSize??t?.estimatedHeadingHeight)!==(r?.estimatedHeadingSize??r?.estimatedHeadingHeight)||(t?.loaderSize??t?.loaderHeight)!==(r?.loaderSize??r?.loaderHeight)||t.dropIndicatorThickness!==r.dropIndicatorThickness||t.gap!==r.gap||t.padding!==r.padding}update(t){let r=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(t),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let o=t.layoutOptions;if(this.rowSize=o?.rowSize??o?.rowHeight??this.rowSize,this.orientation=o?.orientation??this.orientation,this.estimatedRowSize=o?.estimatedRowSize??o?.estimatedRowHeight??this.estimatedRowSize,this.headingSize=o?.headingSize??o?.headingHeight??this.headingSize,this.estimatedHeadingSize=o?.estimatedHeadingSize??o?.estimatedHeadingHeight??this.estimatedHeadingSize,this.loaderSize=o?.loaderSize??o?.loaderHeight??this.loaderSize,this.dropIndicatorThickness=o?.dropIndicatorThickness??this.dropIndicatorThickness,this.gap=o?.gap??this.gap,this.padding=o?.padding??this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&r!==this.lastCollection)for(let n of this.lastCollection.getKeys())r.getItem(n)||this.layoutNodes.get(n)&&this.layoutNodes.delete(n);this.lastCollection=r,this.invalidateEverything=false,this.validRect=this.requestedRect.copy();}buildCollection(t=this.padding){let r=this.virtualizer.collection,o=this.orientation==="horizontal"?"x":"y",n=this.orientation==="horizontal"?"maxX":"maxY",i=uW(r,u=>u.type!=="content"),a=i.filter(u=>u.type==="loader"),l=[],s=r?.size===0;s&&(t=0);for(let u of i){let c=(this.rowSize??this.estimatedRowSize??Na)+this.gap;if(u.type==="item"&&t+c<this.requestedRect[o]&&!this.isValid(u,t)){t+=c;continue}let d=this.orientation==="horizontal"?this.buildChild(u,t,this.padding,null):this.buildChild(u,this.padding,t,null);if(t=d.layoutInfo.rect[n]+this.gap,l.push(d),u.type==="loader"){let p=a.indexOf(u);a.splice(p,1);}if((u.type==="item"||u.type==="loader")&&t>this.requestedRect[n]){let p=i.indexOf(u);for(let m of a){let f=i.indexOf(m);t+=(f-p-1)*c;let y=this.orientation==="horizontal"?this.buildChild(m,t,this.padding,null):this.buildChild(m,this.padding,t,null);l.push(y),t=y.layoutInfo.rect[n],p=f;}t+=(i.length-p-1)*c;break}}return t=Math.max(t-this.gap,0),t+=s?0:this.padding,this.contentSize=this.orientation==="horizontal"?new _e(t,this.virtualizer.size.height):new _e(this.virtualizer.size.width,t),l}isValid(t,r){let o=this.layoutNodes.get(t.key),n=this.orientation==="horizontal"?"x":"y";return !this.invalidateEverything&&!!o&&o.node===t&&r===o.layoutInfo.rect[n]&&o.layoutInfo.rect.intersects(this.validRect)&&o.validRect.containsRect(o.layoutInfo.rect.intersection(this.requestedRect))}buildChild(t,r,o,n){if(this.isValid(t,this.orientation==="horizontal"?r:o))return this.layoutNodes.get(t.key);let i=this.buildNode(t,r,o);return i.layoutInfo.parentKey=n??null,i.layoutInfo.allowOverflow=true,this.layoutNodes.set(t.key,i),i}buildNode(t,r,o){switch(t.type){case "section":return this.buildSection(t,r,o);case "item":return this.buildItem(t,r,o);case "header":return this.buildSectionHeader(t,r,o);case "loader":return this.buildLoader(t,r,o);case "separator":return this.buildItem(t,r,o);default:throw new Error("Unsupported node type: "+t.type)}}buildLoader(t,r,o){let n=new ke(r,o,this.padding,0),i=new xt(t.type,t.key,n);return this.orientation==="horizontal"?(n.height=this.virtualizer.contentSize.height-this.padding-o,n.width=t.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??Na:0):(n.width=this.virtualizer.contentSize.width-this.padding-r,n.height=t.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??Na:0),{layoutInfo:i,validRect:n.intersection(this.requestedRect)}}buildSection(t,r,o){let n=this.virtualizer.collection,i=this.virtualizer.size.width-this.padding-r,a=this.virtualizer.size.height-this.padding-o,l=this.orientation==="horizontal"?new ke(r,o,0,a):new ke(r,o,i,0),s=new xt(t.type,t.key,l),u=this.orientation==="horizontal"?r:o,c=this.orientation==="horizontal"?"x":"y",d=this.orientation==="horizontal"?"maxX":"maxY",p=this.orientation==="horizontal"?"width":"height",m=0,f=[];for(let y of Ge(t,n)){if(y.type==="content")continue;let b=(this.rowSize??this.estimatedRowSize??Na)+this.gap;if(u+b<this.requestedRect[c]&&!this.isValid(t,u)){u+=b,m++;continue}let g=this.orientation==="horizontal"?this.buildChild(y,u,o,s.key):this.buildChild(y,r,u,s.key);if(u=g.layoutInfo.rect[d]+this.gap,f.push(g),u>this.requestedRect[d]){u+=([...Ge(t,n)].length-(f.length+m))*b;break}}return u-=this.gap,l[p]=u-(this.orientation==="horizontal"?r:o),{layoutInfo:s,children:f,validRect:s.rect.intersection(this.requestedRect),node:t}}buildSectionHeader(t,r,o){let n=this.orientation==="horizontal"?"height":"width",i=this.orientation==="horizontal"?"width":"height",a=this.virtualizer.size[n]-this.padding-(this.orientation==="horizontal"?o:r),l=this.headingSize,s=false;if(l==null){let d=this.layoutNodes.get(t.key),p=d?.layoutInfo;if(p){let m=this.virtualizer.collection.getItem(t.key),f=this.lastCollection?this.lastCollection.getItem(t.key):null;l=d.layoutInfo.rect[i],s=a!==p.rect[n]||m!==f||p.estimatedSize;}else l=t.rendered?this.estimatedHeadingSize:0,s=true;}l==null&&(l=Na);let u=this.orientation==="horizontal"?new ke(r,o,l,a-o):new ke(r,o,a-r,l),c=new xt("header",t.key,u);return c.estimatedSize=s,{layoutInfo:c,children:[],validRect:c.rect.intersection(this.requestedRect),node:t}}buildItem(t,r,o){let n=this.orientation==="horizontal"?"height":"width",i=this.orientation==="horizontal"?"width":"height",a=this.virtualizer.size[n]-this.padding-(this.orientation==="horizontal"?o:r),l=this.rowSize,s=false;if(l==null){let d=this.layoutNodes.get(t.key);d?(l=d.layoutInfo.rect[i],s=a!==d.layoutInfo.rect[n]||t!==d.node||d.layoutInfo.estimatedSize):(l=this.estimatedRowSize,s=true);}l==null&&(l=Na);let u=this.orientation==="horizontal"?new ke(r,o,l,a):new ke(r,o,a,l),c=new xt(t.type,t.key,u);return c.estimatedSize=s,{layoutInfo:c,children:[],validRect:c.rect.intersection(this.requestedRect),node:t}}updateItemSize(t,r){let o=this.layoutNodes.get(t);if(!o)return false;let n=this.virtualizer.collection,i=o.layoutInfo,a=this.orientation==="horizontal"?"x":"y",l=this.orientation==="horizontal"?"width":"height";if(i.estimatedSize=false,i.rect[l]!==r[l]){let s=i.copy();s.rect[l]=r[l],o.layoutInfo=s,this.validRect[l]=Math.min(this.validRect[l],i.rect[a]-this.validRect[a]),o.node?.type==="item"&&(this.requestedRect[l]+=s.rect[l]-i.rect[l]),this.updateLayoutNode(t,i,s);let u=i.parentKey!=null?n.getItem(i.parentKey):null;for(;u;)this.updateLayoutNode(u.key,i,s),u=u.parentKey!=null?n.getItem(u.parentKey):null;return true}return false}updateLayoutNode(t,r,o){let n=this.layoutNodes.get(t);n&&(n.validRect=n.validRect.intersection(this.validRect),n.layoutInfo===r&&(n.layoutInfo=o));}getContentSize(){return this.contentSize}getDropTargetFromPoint(t,r,o){t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y;let n=new ke(t,Math.max(0,r-this.gap),1,Math.max(1,this.gap*2)),i=this.getVisibleLayoutInfos(n),a=null,l=1/0;for(let d of i){if(!d.rect.intersects(n))continue;let p=Math.abs(d.rect.y-r),m=Math.abs(d.rect.maxY-r),f=Math.min(p,m);f<l&&(l=f,a=d.key);}if(a==null||this.virtualizer.collection.size===0)return {type:"root"};let s=this.getLayoutInfo(a);if(!s)return null;let u=s.rect,c={type:"item",key:s.key,dropPosition:"on"};return o(c)?r<=u.y+10&&o({...c,dropPosition:"before"})?c.dropPosition="before":r>=u.maxY-10&&o({...c,dropPosition:"after"})&&(c.dropPosition="after"):r<=u.y+u.height/2&&o({...c,dropPosition:"before"})?c.dropPosition="before":o({...c,dropPosition:"after"})&&(c.dropPosition="after"),c}getDropTargetLayoutInfo(t){let r=this.getLayoutInfo(t.key),o;if(t.dropPosition==="before")o=this.orientation==="horizontal"?new ke(Math.max(0,r.rect.x-this.dropIndicatorThickness/2),r.rect.y,this.dropIndicatorThickness,r.rect.height):new ke(r.rect.x,Math.max(0,r.rect.y-this.dropIndicatorThickness/2),r.rect.width,this.dropIndicatorThickness);else if(t.dropPosition==="after"){let n=this.collection.getItem(t.key);if(n){let i=n.level??0,a=this.collection.getKeyAfter(t.key);for(;a!=null;){let l=this.collection.getItem(a);if(!l||l.level<=i)break;r=this.getLayoutInfo(a)||r,a=this.collection.getKeyAfter(a);}}o=this.orientation==="horizontal"?new ke(r.rect.maxX-this.dropIndicatorThickness/2,r.rect.y,this.dropIndicatorThickness,r.rect.height):new ke(r.rect.x,r.rect.maxY-this.dropIndicatorThickness/2,r.rect.width,this.dropIndicatorThickness);}else o=r.rect;return new xt("dropIndicator",t.key+":"+t.dropPosition,o)}};function uW(e,t){let r=[];for(let o of e)t(o)&&r.push(o);return r}var Rw=48,Xc=class extends rn{lastCollection=null;columnWidths=new Map;stickyColumnIndices;lastPersistedKeys=null;persistedIndices=new Map;constructor(t){super(t),this.stickyColumnIndices=[];}get collection(){return this.virtualizer.collection}get rowHeight(){return super.rowHeight}get estimatedRowHeight(){return super.estimatedRowHeight}get headingHeight(){return super.headingHeight}get estimatedHeadingHeight(){return super.estimatedHeadingHeight}get loaderHeight(){return super.loaderHeight}columnsChanged(t,r){return !r||t.columns!==r.columns&&t.columns.length!==r.columns.length||t.columns.some((o,n)=>o.key!==r.columns[n].key||o.props.width!==r.columns[n].props.width||o.props.minWidth!==r.columns[n].props.minWidth||o.props.maxWidth!==r.columns[n].props.maxWidth)}shouldInvalidateLayoutOptions(t,r){return t.columnWidths!==r.columnWidths||super.shouldInvalidateLayoutOptions(t,r)}update(t){let r=this.virtualizer.collection;if(t.layoutOptions?.columnWidths){for(let[o,n]of t.layoutOptions.columnWidths)if(this.columnWidths.get(o)!==n){this.columnWidths=t.layoutOptions.columnWidths,t.sizeChanged=true;break}}else if(t.sizeChanged||this.columnsChanged(r,this.lastCollection)){let o=new as({});this.columnWidths=o.buildColumnWidths(this.virtualizer.size.width-this.padding*2,r,new Map),t.sizeChanged=true;}super.update(t);}buildCollection(){this.stickyColumnIndices=[];let t=this.virtualizer.collection;for(let i of t.columns)(this.isStickyColumn(i)||t.rowHeaderColumnKeys.has(i.key))&&this.stickyColumnIndices.push(i.index);let r=[],o=0,n=0;if(t.head){for(let i of t)switch(i.type){case "tableheader":{let a=this.buildTableHeader();o=a.layoutInfo.rect.maxY+this.gap,n=Math.max(n,a.layoutInfo.rect.width),this.layoutNodes.set(a.layoutInfo.key,a),r.push(a);break}case "tablebody":case "tablefooter":{let a=this.buildRowGroup(o,i);o=a.layoutInfo.rect.maxY+this.gap,n=Math.max(n,a.layoutInfo.rect.width),this.layoutNodes.set(a.layoutInfo.key,a),r.push(a);break}}o>0&&(o-=this.gap);for(let i of r)i.layoutInfo.rect.width=n;}else {let i=this.buildTableHeader();this.layoutNodes.set(i.layoutInfo.key,i);let a=this.buildBody(i.layoutInfo.rect.maxY+this.gap);a.layoutInfo.rect.width=Math.max(i.layoutInfo.rect.width,a.layoutInfo.rect.width),o=a.layoutInfo.rect.maxY,n=a.layoutInfo.rect.width,r=[i,a];}return this.lastPersistedKeys=null,this.contentSize=new _e(n+this.padding*2,o+this.padding),r}buildTableHeader(){let t=this.virtualizer.collection,r=new ke(this.padding,this.padding,0,0),o=new xt("header",t.head?.key??"header",r);o.isSticky=true,o.zIndex=1;let n=this.padding,i=0,a=[];for(let l of t.headerRows){let s=this.buildChild(l,this.padding,n,o.key);s.layoutInfo.parentKey=o.key,n=s.layoutInfo.rect.maxY,i=Math.max(i,s.layoutInfo.rect.width),s.index=a.length,a.push(s);}return r.width=i,r.height=n-this.padding,{layoutInfo:o,children:a,validRect:o.rect,node:t.head}}buildHeaderRow(t,r,o){let n=new ke(r,o,0,0),i=new xt("headerrow",t.key,n),a=0,l=[];for(let s of Ge(t,this.virtualizer.collection)){let u=this.buildChild(s,r,o,i.key);u.layoutInfo.parentKey=i.key,r=u.layoutInfo.rect.maxX,a=Math.max(a,u.layoutInfo.rect.height),u.index=l.length,l.push(u);}for(let[s,u]of l.entries())u.layoutInfo.zIndex=l.length-s+1;return this.setChildHeights(l,a),n.height=a,n.width=r-n.x,{layoutInfo:i,children:l,validRect:n,node:t}}setChildHeights(t,r){for(let o of t)o.layoutInfo.rect.height!==r&&(o.layoutInfo=o.layoutInfo.copy(),o.layoutInfo.rect.height=r);}getRenderedColumnWidth(t){let r=this.virtualizer.collection,o=t.colSpan??1,n=t.colIndex??t.index,i=0;for(let a=n;a<n+o;a++){let l=r.columns[a];l?.key!=null&&(i+=this.columnWidths.get(l.key)??0);}return i}getEstimatedHeight(t,r,o,n){let i=false;if(o==null){let a=this.layoutNodes.get(t.key);a?(o=a.layoutInfo.rect.height,i=t!==a.node||r!==a.layoutInfo.rect.width||a.layoutInfo.estimatedSize):(o=n??Rw,i=true);}return {height:o,isEstimated:i}}getEstimatedRowHeight(){return this.rowHeight??this.estimatedRowHeight??Rw}buildColumn(t,r,o){let n=this.getRenderedColumnWidth(t),{height:i,isEstimated:a}=this.getEstimatedHeight(t,n,this.headingHeight??this.rowHeight,this.estimatedHeadingHeight??this.estimatedRowHeight),l=new ke(r,o,n,i),s=new xt(t.type,t.key,l);return s.isSticky=this.isStickyColumn(t),s.zIndex=s.isSticky?2:1,s.estimatedSize=a,{layoutInfo:s,children:[],validRect:s.rect,node:t}}isStickyColumn(t){return false}buildBody(t){let r=this.virtualizer.collection;return this.buildRowGroup(t,r.body)}buildRowGroup(t,r){let o=this.virtualizer.collection,n=new ke(this.padding,t,0,0),i=new xt("rowgroup",r.key,n),a=t,l=0,s=[],u=this.getEstimatedRowHeight()+this.gap,c=Ge(r,o);for(let p of c){if(t+u<this.requestedRect.y&&!this.isValid(p,t)||t>this.requestedRect.maxY&&p.type!=="loader"){t+=u;continue}let m=this.buildChild(p,this.padding,t,i.key);m.layoutInfo.parentKey=i.key,m.index=s.length,t=m.layoutInfo.rect.maxY+this.gap,l=Math.max(l,m.layoutInfo.rect.width),s.push(m);}return o?.size===0?t=this.virtualizer.size.height:t-=this.gap,n.width=l,n.height=t-a,{layoutInfo:i,children:s,validRect:i.rect.intersection(this.requestedRect),node:r}}buildLoader(t,r,o){let n=super.buildLoader(t,r,o),i=this.virtualizer.collection;return n.layoutInfo.rect.width=this.layoutNodes.get(i.head?.key??"header").layoutInfo.rect.width,n.validRect=n.layoutInfo.rect.intersection(this.requestedRect),n}buildNode(t,r,o){switch(t.type){case "headerrow":return this.buildHeaderRow(t,r,o);case "item":return this.buildRow(t,r,o);case "column":case "placeholder":return this.buildColumn(t,r,o);case "cell":return this.buildCell(t,r,o);case "loader":return this.buildLoader(t,r,o);default:throw new Error("Unknown node type "+t.type)}}buildRow(t,r,o){let n=this.virtualizer.collection,i=new ke(r,o,0,0),a=new xt("row",t.key,i),l=[],s=0;for(let u of Ge(t,n))if(u.type==="cell")if(r>this.requestedRect.maxX){let c=this.layoutNodes.get(u.key);if(c)c.layoutInfo.rect.x=r,r+=c.layoutInfo.rect.width;else break}else {let c=this.buildChild(u,r,o,a.key);r=c.layoutInfo.rect.maxX,s=Math.max(s,c.layoutInfo.rect.height),c.index=l.length,l.push(c);}return this.setChildHeights(l,s),i.width=this.layoutNodes.get(n.head?.key??"header").layoutInfo.rect.width,i.height=s,{layoutInfo:a,children:l,validRect:i.intersection(this.requestedRect),node:t}}buildCell(t,r,o){let n=this.getRenderedColumnWidth(t),{height:i,isEstimated:a}=this.getEstimatedHeight(t,n,this.rowHeight,this.estimatedRowHeight),l=new ke(r,o,n,i),s=new xt(t.type,t.key,l);return s.isSticky=this.isStickyColumn(t),s.zIndex=s.isSticky?2:1,s.estimatedSize=a,{layoutInfo:s,children:[],validRect:l,node:t}}getVisibleLayoutInfos(t){if(t.height>1){let o=this.getEstimatedRowHeight();t.y=Math.floor(t.y/o)*o,t.height=Math.ceil(t.height/o)*o;}this.layoutIfNeeded(t);let r=[];this.buildPersistedIndices();for(let o of this.rootNodes)r.push(o.layoutInfo),this.addVisibleLayoutInfos(r,o,t);return r}addVisibleLayoutInfos(t,r,o){if(!(!r.children||r.children.length===0))switch(r.layoutInfo.type){case "header":{for(let n of r.children)t.push(n.layoutInfo),this.addVisibleLayoutInfos(t,n,o);break}case "rowgroup":{let n=this.binarySearch(r.children,o.topLeft,"y"),i=this.binarySearch(r.children,o.bottomRight,"y"),a=this.persistedIndices.get(r.layoutInfo.key),l=0;for(;a&&l<a.length&&a[l]<n;){let u=a[l];u<r.children.length&&(t.push(r.children[u].layoutInfo),this.addVisibleLayoutInfos(t,r.children[u],o)),l++;}for(let u=n;u<=i;u++){for(;a&&l<a.length&&a[l]<u;)l++;t.push(r.children[u].layoutInfo),this.addVisibleLayoutInfos(t,r.children[u],o);}for(;a&&l<a.length;){let u=a[l++];u<r.children.length&&(t.push(r.children[u].layoutInfo),this.addVisibleLayoutInfos(t,r.children[u],o));}let s=r.children.at(-1);s?.layoutInfo.type==="loader"&&t.push(s.layoutInfo);break}case "headerrow":case "row":{let n=this.binarySearch(r.children,o.topLeft,"x"),i=this.binarySearch(r.children,o.topRight,"x"),a=0,l=this.persistedIndices.get(r.layoutInfo.key)||this.stickyColumnIndices;for(;a<l.length&&l[a]<n;){let s=l[a];s<r.children.length&&t.push(r.children[s].layoutInfo),a++;}for(let s=n;s<=i;s++){for(;a<l.length&&l[a]<s;)a++;t.push(r.children[s].layoutInfo);}for(;a<l.length;){let s=l[a++];s<r.children.length&&t.push(r.children[s].layoutInfo);}break}default:throw new Error("Unknown node type "+r.layoutInfo.type)}}binarySearch(t,r,o){let n=0,i=t.length-1;for(;n<=i;){let a=n+i>>1,l=t[a];if(o==="x"&&l.layoutInfo.rect.maxX<=r.x||o==="y"&&l.layoutInfo.rect.maxY<=r.y)n=a+1;else if(o==="x"&&l.layoutInfo.rect.x>r.x||o==="y"&&l.layoutInfo.rect.y>r.y)i=a-1;else return a}return Math.max(0,Math.min(t.length-1,n))}buildPersistedIndices(){if(this.virtualizer.persistedKeys!==this.lastPersistedKeys){this.lastPersistedKeys=this.virtualizer.persistedKeys,this.persistedIndices.clear();for(let t of this.virtualizer.persistedKeys){let r=this.layoutNodes.get(t)?.layoutInfo;for(;r&&r.parentKey;){let o=this.virtualizer.collection.getItem(r.key),n=this.persistedIndices.get(r.parentKey);n||(n=o?.type==="cell"||o?.type==="column"?[...this.stickyColumnIndices]:[],this.persistedIndices.set(r.parentKey,n));let i=this.layoutNodes.get(r.key)?.index;i!=null&&!n.includes(i)&&n.push(i),r=this.layoutNodes.get(r.parentKey)?.layoutInfo;}}for(let t of this.persistedIndices.values())t.sort((r,o)=>r-o);}}getDropTargetFromPoint(t,r,o){t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y;let n=new ke(t,Math.max(0,r-this.gap),1,Math.max(1,this.gap*2)),i=this.getVisibleLayoutInfos(n),a=null,l=1/0;for(let d of i){if(d.type!=="row"||!d.rect.intersects(n))continue;let p=Math.abs(d.rect.y-r),m=Math.abs(d.rect.maxY-r),f=Math.min(p,m);f<l&&(l=f,a=d.key);}if(a==null||this.virtualizer.collection.size===0)return {type:"root"};let s=this.getLayoutInfo(a);if(!s)return null;let u=s.rect,c={type:"item",key:s.key,dropPosition:"on"};return o(c)?r<=u.y+10&&o({...c,dropPosition:"before"})?c.dropPosition="before":r>=u.maxY-10&&o({...c,dropPosition:"after"})&&(c.dropPosition="after"):r<=u.y+u.height/2&&o({...c,dropPosition:"before"})?c.dropPosition="before":o({...c,dropPosition:"after"})&&(c.dropPosition="after"),c}getDropTargetLayoutInfo(t){let r=super.getDropTargetLayoutInfo(t);return r.parentKey=this.virtualizer.collection.getItem(t.key)?.parentKey??null,r}};var LT=class extends xt{column=0;index=0;copy(){let t=super.copy();return t.column=this.column,t.index=this.index,t}},Wr={minItemSize:new _e(200,200),maxItemSize:new _e(1/0,1/0),minSpace:new _e(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48},Yc=class extends Fn{contentSize=new _e;layoutInfos=new Map;numColumns=0;dropIndicatorThickness=2;margin=0;shouldInvalidateLayoutOptions(t,r){return t.maxColumns!==r.maxColumns||t.dropIndicatorThickness!==r.dropIndicatorThickness||!(t.minItemSize||Wr.minItemSize).equals(r.minItemSize||Wr.minItemSize)||!(t.maxItemSize||Wr.maxItemSize).equals(r.maxItemSize||Wr.maxItemSize)||!(t.minSpace||Wr.minSpace).equals(r.minSpace||Wr.minSpace)||t.maxHorizontalSpace!==r.maxHorizontalSpace||t.loaderHeight!==r.loaderHeight}update(t){let{minItemSize:r=Wr.minItemSize,maxItemSize:o=Wr.maxItemSize,minSpace:n=Wr.minSpace,maxHorizontalSpace:i=Wr.maxSpace,maxColumns:a=Wr.maxColumns,dropIndicatorThickness:l=Wr.dropIndicatorThickness,loaderHeight:s=Wr.loaderHeight}=t.layoutOptions||{};this.dropIndicatorThickness=l;let u=this.virtualizer.size.width,c=Math.min(o.width,u),d=Number.isFinite(o.height)?o.height:Math.floor(r.height/r.width*c),p=Math.floor(u/(r.width+n.width)),m=Math.max(1,Math.min(a,p)),f=u-n.width*Math.max(0,m),y=Math.floor(f/m);y=Math.max(r.width,Math.min(c,y));let b=(y-r.width)/Math.max(1,c-r.width),g=r.height+Math.floor((d-r.height)*b);g=Math.max(r.height,Math.min(d,g));let x=Math.min(Math.max(i,n.width),Math.floor((u-m*y)/(m+1)));this.margin=Math.floor((u-m*y-x*(m+1))/2);let h=Array(m).fill(n.height),v=new Map,C=0,T=(z,A)=>{let D=this.layoutInfos.get(z),O=g,R=true;D&&(O=D.rect.height/D.rect.width*y,R=t.sizeChanged||D.estimatedSize||D.content!==A);let F=(m===this.numColumns&&D&&D.index===C&&D.rect.y<this.virtualizer.visibleRect.maxY?D.column:void 0)??h.reduce((L,B,G)=>B<h[L]?G:L,0),I=x+F*(y+x)+this.margin,V=h[F],H=new ke(I,V,y,O),K=new LT(A.type,z,H);K.estimatedSize=R,K.allowOverflow=true,K.content=A,K.column=F,K.index=C++,v.set(z,K),h[F]+=K.rect.height+n.height;},P=this.virtualizer.collection,k=0;for(let z of P)if(z.type==="skeleton"){let A=[...h];for(;!h.every((D,O)=>D!==A[O])||Math.min(...h)<this.virtualizer.size.height;){let D=`${z.key}-${k++}`,O=this.layoutInfos.get(D)?.content||{...z};T(D,O);}break}else z.type!=="loader"&&T(z.key,z);let w=P?.size===0&&P.getItem(P.getFirstKey())?.type!=="skeleton"?0:Math.max(...h),E=P.getItem(P.getLastKey());if(E?.type==="loader"){(k>0||!E.props.isLoading)&&(s=0);let z=u-x*2,A=new ke(x,w,z,s),D=new xt("loader",E.key,A);v.set(E.key,D),w=D.rect.maxY;}this.contentSize=new _e(this.virtualizer.size.width,w),this.layoutInfos=v,this.numColumns=m;}getLayoutInfo(t){return this.layoutInfos.get(t)}getContentSize(){return this.contentSize}getVisibleLayoutInfos(t){let r=[];for(let o of this.layoutInfos.values())(o.rect.intersects(t)||this.virtualizer.isPersistedKey(o.key)||o.type==="loader")&&r.push(o);return r}updateItemSize(t,r){let o=this.layoutInfos.get(t);if(!r||!o)return false;if(r.height!==o.rect.height){let n=o.copy();return n.rect.height=r.height,n.estimatedSize=false,this.layoutInfos.set(t,n),true}return false}getKeyRightOf(t){let r=this.getLayoutInfo(t);if(!r)return null;let o=new ke(r.rect.maxX,r.rect.y,this.virtualizer.visibleRect.maxX-r.rect.maxX,r.rect.height),n=this.getVisibleLayoutInfos(o),i=null,a=1/0;for(let l of n){if(l.key===t)continue;let s=l.rect.x-o.x,u=Math.min(l.rect.maxY,o.maxY)-Math.max(l.rect.y,o.y),c=s-u;c<a&&(a=c,i=l.key);}return i}getKeyLeftOf(t){let r=this.getLayoutInfo(t);if(!r)return null;let o=new ke(0,r.rect.y,r.rect.x,r.rect.height),n=this.getVisibleLayoutInfos(o),i=null,a=1/0;for(let l of n){if(l.key===t)continue;let s=o.maxX-l.rect.maxX,u=Math.min(l.rect.maxY,o.maxY)-Math.max(l.rect.y,o.y),c=s-u;c<a&&(a=c,i=l.key);}return i}getKeyRange(t,r){let o=this.getLayoutInfo(t),n=this.getLayoutInfo(r);if(!o||!n)return [];let i=o.rect.union(n.rect),a=[];for(let l of this.layoutInfos.values())i.intersection(l.rect).area>l.rect.area/2&&a.push(l.key);return a}getDropTargetFromPoint(t,r){if(this.layoutInfos.size===0)return {type:"root"};t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y;let o=this.virtualizer.keyAtPoint(new qt(t,r));return o==null?{type:"root"}:{type:"item",key:o,dropPosition:"on"}}};var fs=class extends Xc{useLayoutOptions(){let t=useContext(ps);return useMemo(()=>({columnWidths:t?.columnWidths}),[t?.columnWidths])}};var MT=new WeakMap;function ys(e,t,r){if(!e)return "";typeof t=="string"&&(t=t.replace(/\s+/g,""));let o=MT.get(e);return process.env.NODE_ENV!=="production"&&!o&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${o}-${r}-${t}`}function AT(e,t,r){let{key:o,isDisabled:n,shouldSelectOnPressUp:i}=e,{selectionManager:a,selectedKey:l}=t,s=o===l,u=n||t.isDisabled||t.selectionManager.isDisabled(o),c=t.collection.getItem(o),{itemProps:d,isPressed:p}=Rr({selectionManager:a,key:o,ref:r,isDisabled:u,shouldSelectOnPressUp:i??c?.props.href!=null,linkBehavior:"selection"}),m=ys(t,o,"tab"),f=ys(t,o,"tabpanel"),{tabIndex:y}=d,b=oe(c?.props,{labelable:true});delete b.id;let g=ti(c?.props),{focusableProps:x}=it({...c?.props,isDisabled:u},r);return {tabProps:M(b,x,g,d,{id:m,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?f:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:s,isDisabled:u,isPressed:p}}function OT(e,t,r){let o=ns(r)?void 0:0,n=ys(t,e.id??t?.selectedKey,"tabpanel"),i=tt({...e,id:n,"aria-labelledby":ys(t,t?.selectedKey,"tab")});return {tabPanelProps:M(i,{tabIndex:o,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var qf=class{collection;flipDirection;disabledKeys;tabDirection;constructor(t,r,o,n=new Set){this.collection=t,this.flipDirection=r==="rtl"&&o==="horizontal",this.disabledKeys=n,this.tabDirection=o==="horizontal";}getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){return this.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let r=t;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r)&&r!==t);return r}getPreviousKey(t){let r=t;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r)&&r!==t);return r}};function NT(e,t,r){let{orientation:o="horizontal",keyboardActivation:n="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:l}=t,{direction:s}=Q(),u=useMemo(()=>new qf(i,s,o,l),[i,l,o,s]),{collectionProps:c}=fi({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:n==="automatic",disallowEmptySelection:true,scrollRef:r,linkBehavior:"selection"}),d=ee();MT.set(t,d);let p=tt({...e,id:d});return {tabListProps:{...M(c,p),role:"tablist","aria-orientation":o,tabIndex:void 0}}}function Xf(e){let[t,r]=ye(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),o=useMemo(()=>t!=null?[t]:[],[t]),{collection:n,disabledKeys:i,selectionManager:a}=Ot({...e,selectionMode:"single",disallowEmptySelection:true,allowDuplicateSelectionEvents:true,selectedKeys:o,onSelectionChange:s=>{if(s==="all")return;let u=s.values().next().value??null;u===t&&e.onSelectionChange&&e.onSelectionChange(u),r(u);}}),l=t!=null?n.getItem(t):null;return {collection:n,disabledKeys:i,selectionManager:a,selectedKey:t,setSelectedKey:r,selectedItem:l}}function FT(e){let t=Xf({...e,onSelectionChange:e.onSelectionChange?a=>{a!=null&&e.onSelectionChange?.(a);}:void 0,suppressTextValueWarning:true,defaultSelectedKey:e.defaultSelectedKey??Iw(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:r,collection:o,selectedKey:n}=t,i=useRef(n);return useEffect(()=>{let a=n;e.selectedKey==null&&(r.isEmpty||a==null||!o.getItem(a))&&(a=Iw(o,t.disabledKeys),a!=null&&r.setSelectedKeys([a])),(a!=null&&r.focusedKey==null||!r.isFocused&&a!==i.current)&&r.setFocusedKey(a),i.current=a;}),{...t,isDisabled:e.isDisabled||false}}function Iw(e,t){let r=null;if(e){for(r=e.getFirstKey();r!=null&&(t.has(r)||e.getItem(r)?.props?.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||e.getItem(r)?.props?.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey());}return r}var KT=new WeakMap;function VT(e,t,r){let{direction:o}=Q(),n=e.keyboardDelegate||new kt({collection:t.collection,ref:r,orientation:"horizontal",direction:o,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:i,fieldProps:a,descriptionProps:l,errorMessageProps:s}=Br({...e,labelElementType:"span",ref:r}),{gridProps:u}=La({...e,...a,keyboardDelegate:n,shouldFocusWrap:true,linkBehavior:"override",keyboardNavigationBehavior:"tab"},t,r),[c,d]=useState(false),{focusWithinProps:p}=dt({onFocusWithinChange:d}),m=oe(e),f=useRef(t.collection.size);return useEffect(()=>{r.current&&f.current>0&&t.collection.size===0&&c&&r.current.focus(),f.current=t.collection.size;},[t.collection.size,c,r]),KT.set(t,{onRemove:e.onRemove}),{gridProps:M(u,m,{role:t.collection.size?"grid":"group","aria-atomic":false,"aria-relevant":"additions","aria-live":c?"polite":"off",...p,...a}),labelProps:i,descriptionProps:l,errorMessageProps:s}}var _w={"ar-AE":{removeButtonLabel:"\u0625\u0632\u0627\u0644\u0629",removeDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D DELETE \u0644\u0625\u0632\u0627\u0644\u0629 \u0639\u0644\u0627\u0645\u0629."},"bg-BG":{removeButtonLabel:"\u041F\u0440\u0435\u043C\u0430\u0445\u0432\u0430\u043D\u0435",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Delete, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043C\u0430\u0440\u043A\u0435\u0440\u0430."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xEDm kl\xE1vesy Delete odeberete zna\u010Dku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xE5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf \u201EL\xF6schen\u201C dr\xFCcken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7",removeDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03C1\u03B3\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B9\u03BA\u03AD\u03C4\u03B1."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l\u2019\xE9tiquette."},"he-IL":{removeButtonLabel:"\u05D4\u05E1\u05E8",removeDescription:"\u05DC\u05D7\u05E5 \u05E2\u05DC \u05DE\u05D7\u05E7 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E1\u05D9\u05E8 \u05EA\u05D2."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xE1vol\xEDt\xE1s",removeDescription:"Nyomja meg a Delete billenty\u0171t a c\xEDmke elt\xE1vol\xEDt\xE1s\xE1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"\u524A\u9664",removeDescription:"\u30BF\u30B0\u3092\u524A\u9664\u3059\u308B\u306B\u306F\u3001Delete \u30AD\u30FC\u3092\u62BC\u3057\u307E\u3059\u3002"},"ko-KR":{removeButtonLabel:"\uC81C\uAC70",removeDescription:"\uD0DC\uADF8\uB97C \uC81C\uAC70\uD558\uB824\uBA74 Delete \uD0A4\uB97C \uB204\uB974\uC2ED\uC2DC\uC624."},"lt-LT":{removeButtonLabel:"Pa\u0161alinti",removeDescription:"Nor\u0117dami pa\u0161alinti \u017Eym\u0105, paspauskite \u201EDelete\u201C klavi\u0161\u0105."},"lv-LV":{removeButtonLabel:"No\u0146emt",removeDescription:"Nospiediet Delete [Dz\u0113st], lai no\u0146emtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xE5 Slett for \xE5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usu\u0144",removeDescription:"Naci\u015Bnij Usu\u0144, aby usun\u0105\u0107 znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xCEndep\u0103rta\u0163i",removeDescription:"Ap\u0103sa\u021Bi pe Delete (\u0218tergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",removeDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 DELETE, \u0447\u0442\u043E\u0431\u044B \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u0433."},"sk-SK":{removeButtonLabel:"Odstr\xE1ni\u0165",removeDescription:"Ak chcete odstr\xE1ni\u0165 zna\u010Dku, stla\u010Dte kl\xE1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obri\u0161i da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xE5 Radera f\xF6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kald\u0131r",removeDescription:"Etiketi kald\u0131rmak i\xE7in Sil tu\u015Funa bas\u0131n."},"uk-UA":{removeButtonLabel:"\u0412\u0438\u043B\u0443\u0447\u0438\u0442\u0438",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Delete, \u0449\u043E\u0431 \u0432\u0438\u043B\u0443\u0447\u0438\u0442\u0438 \u0442\u0435\u0433."},"zh-CN":{removeButtonLabel:"\u5220\u9664",removeDescription:"\u6309\u4E0B\u201C\u5220\u9664\u201D\u4EE5\u5220\u9664\u6807\u8BB0\u3002"},"zh-TW":{removeButtonLabel:"\u79FB\u9664",removeDescription:"\u6309 Delete \u9375\u4EE5\u79FB\u9664\u6A19\u8A18\u3002"}};function BT(e,t,r){let{item:o}=e,n=Te(_w,"@react-aria/tag"),i=ee(),{onRemove:a}=KT.get(t)||{},{rowProps:l,gridCellProps:s,...u}=Ma({node:o},t,r),{descriptionProps:c,...d}=u,p=t.disabledKeys.has(o.key)||o.props.isDisabled,m=P=>{if(P.key==="Delete"||P.key==="Backspace"){if(p)return;P.preventDefault(),t.selectionManager.isSelected(o.key)?a?.(new Set(t.selectionManager.selectedKeys)):a?.(new Set([o.key]));}},f=er();f==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(f="pointer");let y=a&&(f==="keyboard"||f==="virtual")?n.format("removeDescription"):"",b=Dt(y,r),g=o.key===t.selectionManager.focusedKey,x=t.selectionManager.focusedKey!=null,h=-1;!p&&(g||!x)&&(h=0);let v=oe(o.props),C=bl(o.props),{focusableProps:T}=it({...o.props,isDisabled:p},r);return {removeButtonProps:{"aria-label":n.format("removeButtonLabel"),"aria-labelledby":`${i} ${l.id}`,isDisabled:p,id:i,onPress:()=>a?a(new Set([o.key])):null},rowProps:M(T,l,v,C,{tabIndex:h,onKeyDown:a?m:void 0,"aria-describedby":b["aria-describedby"]}),gridCellProps:M(s,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...d,allowsRemoving:!!a}}var Yf={"ar-AE":{close:"\u0625\u063A\u0644\u0627\u0642",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0625\u0634\u0639\u0627\u0631`,other:()=>`${t.number(e.count)} \u0625\u0634\u0639\u0627\u0631\u0627\u062A`})}.`},"bg-BG":{close:"\u0417\u0430\u0442\u0432\u043E\u0440\u0438",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u0435`,other:()=>`${t.number(e.count)} \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u044F`})}.`},"cs-CZ":{close:"Zav\u0159\xEDt",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xE1men\xED`,other:()=>`${t.number(e.count)} ozn\xE1men\xED`})}.`},"da-DK":{close:"Luk",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`},"de-DE":{close:"Schlie\xDFen",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`},"el-GR":{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7`,other:()=>`${t.number(e.count)} \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2`})}.`},"en-US":{close:"Close",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`},"es-ES":{close:"Cerrar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xF3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`},"et-EE":{close:"Sule",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`},"fi-FI":{close:"Sulje",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`},"fr-FR":{close:"Fermer",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`},"he-IL":{close:"\u05E1\u05D2\u05D5\u05E8",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u05D4\u05EA\u05E8\u05D0\u05D4`,other:()=>`${t.number(e.count)} \u05D4\u05EA\u05E8\u05D0\u05D5\u05EA`})}.`},"hr-HR":{close:"Zatvori",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`},"hu-HU":{close:"Bez\xE1r\xE1s",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9rtes\xEDt\xE9s`,other:()=>`${t.number(e.count)} \xE9rtes\xEDt\xE9s`})}.`},"it-IT":{close:"Chiudi",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`},"ja-JP":{close:"\u9589\u3058\u308B",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u306E\u901A\u77E5`,other:()=>`${t.number(e.count)} \u500B\u306E\u901A\u77E5`})}\u3002`},"ko-KR":{close:"\uB2EB\uAE30",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC54C\uB9BC`,other:()=>`${t.number(e.count)}\uAC1C \uC54C\uB9BC`})}.`},"lt-LT":{close:"U\u017Edaryti",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} prane\u0161imas`,other:()=>`${t.number(e.count)} prane\u0161imai`})}.`},"lv-LV":{close:"Aizv\u0113rt",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} pazi\u0146ojums`,other:()=>`${t.number(e.count)} pazi\u0146ojumi`})}.`},"nb-NO":{close:"Lukk",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`},"nl-NL":{close:"Sluiten",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`},"pl-PL":{close:"Zamknij",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} powiadomienie`,few:()=>`${t.number(e.count)} powiadomienia`,many:()=>`${t.number(e.count)} powiadomie\u0144`,other:()=>`${t.number(e.count)} powiadomienia`})}.`},"pt-BR":{close:"Fechar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xE7\xE3o`,other:()=>`${t.number(e.count)} notifica\xE7\xF5es`})}.`},"pt-PT":{close:"Fechar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xE7\xE3o`,other:()=>`${t.number(e.count)} notifica\xE7\xF5es`})}.`},"ro-RO":{close:"\xCEnchide\u0163i",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificare`,other:()=>`${t.number(e.count)} notific\u0103ri`})}.`},"ru-RU":{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435`,other:()=>`${t.number(e.count)} \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F`})}.`},"sk-SK":{close:"Zatvori\u0165",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xE1menie`,few:()=>`${t.number(e.count)} ozn\xE1menia`,other:()=>`${t.number(e.count)} ozn\xE1men\xED`})}.`},"sl-SI":{close:"Zapri",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obvestilo`,two:()=>`${t.number(e.count)} obvestili`,few:()=>`${t.number(e.count)} obvestila`,other:()=>`${t.number(e.count)} obvestil`})}.`},"sr-SP":{close:"Zatvori",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obave\u0161tenje`,other:()=>`${t.number(e.count)} obave\u0161tenja`})}.`},"sv-SE":{close:"St\xE4ng",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`},"tr-TR":{close:"Kapat",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`},"uk-UA":{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F`,other:()=>`${t.number(e.count)} \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F`})}.`},"zh-CN":{close:"\u5173\u95ED",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u4E2A\u901A\u77E5`,other:()=>`${t.number(e.count)} \u4E2A\u901A\u77E5`})}\u3002`},"zh-TW":{close:"\u95DC\u9589",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u901A\u77E5`,other:()=>`${t.number(e.count)} \u500B\u901A\u77E5`})}\u3002`}};function HT(e,t,r){let{key:o,timer:n,timeout:i}=e.toast;useEffect(()=>{if(!(n==null||i==null))return n.reset(i),()=>{n.pause();}},[n,i]);let a=ee(),l=Pt(),s=Te(Yf,"@react-aria/toast"),[u,c]=useState(false);return re(()=>{c(true);},[]),{toastProps:{...oe(e,{labelable:true}),role:"alertdialog","aria-modal":"false","aria-labelledby":e["aria-labelledby"]||a,"aria-describedby":e["aria-describedby"]||l,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":u?void 0:"true"},titleProps:{id:a},descriptionProps:{id:l},closeButtonProps:{"aria-label":s.format("close"),onPress:()=>t.close(o)}}}var Aw=1,$T=Symbol.for("react-aria-landmark-manager");function SW(e){return document.addEventListener("react-aria-landmark-manager-change",e),()=>document.removeEventListener("react-aria-landmark-manager-change",e)}function Mw(){if(typeof document>"u")return null;let e=document[$T];return e&&e.version>=Aw?e:(document[$T]=new jT,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[$T])}function DW(){return useSyncExternalStore(SW,Mw,Mw)}var jT=class{landmarks=[];isListening=false;refCount=0;version=Aw;constructor(){this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this);}setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:true}),document.addEventListener("focusin",this.focusinHandler,{capture:true}),document.addEventListener("focusout",this.focusoutHandler,{capture:true}),this.isListening=true);}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:true}),document.removeEventListener("focusin",this.focusinHandler,{capture:true}),document.removeEventListener("focusout",this.focusoutHandler,{capture:true}),this.isListening=false);}focusLandmark(t,r){this.landmarks.find(o=>o.ref.current===t)?.focus?.(r);}getLandmarksByRole(t){return new Set(this.landmarks.filter(r=>r.role===t))}getLandmarkByRole(t){return this.landmarks.find(r=>r.role===t)}addLandmark(t){if(this.setupIfNeeded(),this.landmarks.find(n=>n.ref===t.ref)||!t.ref.current)return;if(this.landmarks.filter(n=>n.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[t],this.checkLabels(t.role);return}let r=0,o=this.landmarks.length-1;for(;r<=o;){let n=Math.floor((r+o)/2),i=t.ref.current.compareDocumentPosition(this.landmarks[n].ref.current);!!(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)?r=n+1:o=n-1;}this.landmarks.splice(r,0,t),this.checkLabels(t.role);}updateLandmark(t){let r=this.landmarks.findIndex(o=>o.ref===t.ref);r>=0&&(this.landmarks[r]={...this.landmarks[r],...t},this.checkLabels(this.landmarks[r].role));}removeLandmark(t){this.landmarks=this.landmarks.filter(r=>r.ref!==t),this.teardownIfNeeded();}checkLabels(t){let r=this.getLandmarksByRole(t);if(r.size>1){let o=[...r].filter(n=>!n.label);if(o.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${t}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,o.map(n=>n.ref.current));else if(process.env.NODE_ENV!=="production"){let n=[...r].map(a=>a.label);n.filter((a,l)=>n.indexOf(a)!==l).forEach(a=>{console.warn(`Page contains more than one landmark with the '${t}' role and '${a}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...r].filter(l=>l.label===a).map(l=>l.ref.current));});}}}closestLandmark(t){let r=new Map(this.landmarks.map(n=>[n.ref.current,n])),o=t;for(;o&&!r.has(o)&&o!==document.body&&o.parentElement;)o=o.parentElement;return r.get(o)}getNextLandmark(t,{backward:r}){let o=this.closestLandmark(t),n=r?this.landmarks.length-1:0;o&&(n=this.landmarks.indexOf(o)+(r?-1:1));let i=()=>{if(n<0){if(!t.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:true,cancelable:true})))return true;n=this.landmarks.length-1;}else if(n>=this.landmarks.length){if(!t.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:true,cancelable:true})))return true;n=0;}return n<0||n>=this.landmarks.length};if(i())return;let a=n;for(;this.landmarks[n].ref.current?.closest("[aria-hidden=true]");){if(n+=r?-1:1,i())return;if(n===a)break}return this.landmarks[n]}f6Handler(t){t.key==="F6"&&(t.altKey?this.focusMain():this.navigate($(t),t.shiftKey))&&(t.preventDefault(),t.stopPropagation());}focusMain(){let t=this.getLandmarkByRole("main");return t&&t.ref.current&&t.ref.current.isConnected?(this.focusLandmark(t.ref.current,"forward"),true):false}navigate(t,r){let o=this.getNextLandmark(t,{backward:r});if(!o)return false;if(o.lastFocused){let n=o.lastFocused;if(Z(document.body,n))return n.focus(),true}return o.ref.current&&o.ref.current.isConnected?(this.focusLandmark(o.ref.current,r?"backward":"forward"),true):false}focusinHandler(t){let r=this.closestLandmark($(t));r&&r.ref.current!==$(t)&&this.updateLandmark({ref:r.ref,lastFocused:$(t)});let o=t.relatedTarget;if(o){let n=this.closestLandmark(o);n&&n.ref.current===o&&n.blur();}}focusoutHandler(t){let r=$(t),o=t.relatedTarget;if(!o||o===document){let n=this.closestLandmark(r);n&&n.ref.current===r&&n.blur();}}createLandmarkController(){let t=this;return t.refCount++,t.setupIfNeeded(),{navigate(r,o){let n=o?.from||document.activeElement;return t.navigate(n,r==="backward")},focusNext(r){let o=r?.from||document.activeElement;return t.navigate(o,false)},focusPrevious(r){let o=r?.from||document.activeElement;return t.navigate(o,true)},focusMain(){return t.focusMain()},dispose(){t&&(t.refCount--,t.teardownIfNeeded(),t=null);}}}registerLandmark(t){return this.landmarks.find(r=>r.ref===t.ref)?this.updateLandmark(t):this.addLandmark(t),()=>this.removeLandmark(t.ref)}};function Ow(e,t){let{role:r,"aria-label":o,"aria-labelledby":n,focus:i}=e,a=DW(),l=o||n,[s,u]=useState(false),c=useCallback(()=>{u(true);},[u]),d=useCallback(()=>{u(false);},[u]);return re(()=>{if(a)return a.registerLandmark({ref:t,label:l,role:r,focus:i||c,blur:d})},[a,l,t,r,i,c,d]),useEffect(()=>{s&&t.current?.focus();},[s,t]),{landmarkProps:{role:r,tabIndex:s?-1:void 0,"aria-label":o,"aria-labelledby":n}}}function GT(e,t,r){let o=Te(Yf,"@react-aria/toast"),{landmarkProps:n}=Ow({role:"region","aria-label":e["aria-label"]||o.format("notifications",{count:t.visibleToasts.length})},r),i=useRef(false),a=useRef(false),l=useCallback(()=>{i.current||a.current?t.pauseAll():t.resumeAll();},[t]),{hoverProps:s}=ae({onHoverStart:()=>{i.current=true,l();},onHoverEnd:()=>{i.current=false,l();}}),u=useRef([]),c=useRef(t.visibleToasts),d=useRef(null);re(()=>{if(d.current===-1||t.visibleToasts.length===0||!r.current){u.current=[],c.current=t.visibleToasts;return}if(u.current=[...r.current.querySelectorAll('[role="alertdialog"]')],c.current.length===t.visibleToasts.length&&t.visibleToasts.every((b,g)=>b.key===c.current[g].key)){c.current=t.visibleToasts;return}let f=c.current.map((b,g)=>({...b,i:g,isRemoved:!t.visibleToasts.some(x=>b.key===x.key)})),y=f.findIndex(b=>b.i===d.current&&b.isRemoved);if(y>-1)if(zt()==="pointer"&&p.current?.isConnected)$e(p.current);else {let b=0,g,x;for(;b<=y;)f[b].isRemoved||(x=Math.max(0,b-1)),b++;for(;b<f.length;){if(!f[b].isRemoved){g=b-1;break}b++;}x===void 0&&g===void 0&&(x=0),x>=0&&x<u.current.length?$e(u.current[x]):g>=0&&g<u.current.length&&$e(u.current[g]);}c.current=t.visibleToasts;},[t.visibleToasts,r]);let p=useRef(null),{focusWithinProps:m}=dt({onFocusWithin:f=>{a.current=true,p.current=f.relatedTarget,l();},onBlurWithin:()=>{a.current=false,p.current=null,l();}});return useEffect(()=>{t.visibleToasts.length===0&&p.current?.isConnected&&(zt()==="pointer"?$e(p.current):p.current.focus(),p.current=null);},[r,t.visibleToasts.length]),useEffect(()=>()=>{p.current?.isConnected&&(zt()==="pointer"?$e(p.current):p.current.focus(),p.current=null);},[r]),{regionProps:M(n,s,m,{tabIndex:-1,"data-react-aria-top-layer":true,onFocus:f=>{let y=$(f).closest('[role="alertdialog"]');d.current=u.current.findIndex(b=>b===y);},onBlur:()=>{d.current=-1;}})}}function WT(e){let t=useCallback(n=>e.subscribe(n),[e]),r=useCallback(()=>e.visibleToasts,[e]);return {visibleToasts:useSyncExternalStore(t,r,r),add:(n,i)=>e.add(n,i),close:n=>e.close(n),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var Zf=class{queue=[];subscriptions=new Set;maxVisibleToasts;wrapUpdate;visibleToasts=[];constructor(t){this.maxVisibleToasts=t?.maxVisibleToasts??1/0,this.wrapUpdate=t?.wrapUpdate;}runWithWrapUpdate(t,r){this.wrapUpdate?this.wrapUpdate(t,r):t();}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}add(t,r={}){let o="_"+Math.random().toString(36).slice(2),n={...r,content:t,key:o,timer:r.timeout?new UT(()=>this.close(o),r.timeout):void 0};return this.queue.unshift(n),this.updateVisibleToasts("add"),o}close(t){let r=this.queue.findIndex(o=>o.key===t);r>=0&&(this.queue[r].onClose?.(),this.queue.splice(r,1)),this.updateVisibleToasts("remove");}updateVisibleToasts(t){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let r of this.subscriptions)r();},t);}pauseAll(){for(let t of this.visibleToasts)t.timer&&t.timer.pause();}resumeAll(){for(let t of this.visibleToasts)t.timer&&t.timer.resume();}clear(){this.queue=[],this.updateVisibleToasts("clear");}},UT=class{timerId;startTime=null;remaining;callback;constructor(t,r){this.remaining=r,this.callback=t;}reset(t){this.remaining=t,this.resume();}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime);}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback();},this.remaining));}};function qT(e,t,r){let{isSelected:o}=t,{isPressed:n,buttonProps:i}=ft({...e,onPress:Ye(t.toggle,e.onPress)},r);return {isPressed:n,isSelected:o,isDisabled:e.isDisabled||false,buttonProps:M(i,{"aria-pressed":o})}}function Jf(e,t){let{"aria-label":r,"aria-labelledby":o,orientation:n="horizontal",isSingleTabStop:i=true}=e,[a,l]=useState(false);re(()=>{l(!!(t.current&&t.current.parentElement?.closest('[role="toolbar"]')));});let{direction:s}=Q(),u=s==="rtl"&&n==="horizontal",c=mi(t),d=y=>{if(Z(y.currentTarget,$(y))){if(n==="horizontal"&&y.key==="ArrowRight"||n==="vertical"&&y.key==="ArrowDown")u?c.focusPrevious():c.focusNext();else if(n==="horizontal"&&y.key==="ArrowLeft"||n==="vertical"&&y.key==="ArrowUp")u?c.focusNext():c.focusPrevious();else if(y.key==="Tab"){if(!i)return;y.stopPropagation();let b=U(t.current);p.current=de(b),y.shiftKey?c.focusFirst():c.focusLast();return}else return;y.stopPropagation(),y.preventDefault();}},p=useRef(null),m=y=>{let b=y.relatedTarget;(b===null||!Z(y.currentTarget,b))&&!p.current&&(p.current=$(y));},f=y=>{let b=y.relatedTarget,g=b===null||!Z(y.currentTarget,b),x=Z(t.current,$(y));p.current&&g&&x&&(p.current?.focus(),p.current=null);};return {toolbarProps:{...oe(e,{labelable:true}),role:a?"group":"toolbar","aria-orientation":n,"aria-label":r,"aria-labelledby":r==null?o:void 0,onKeyDownCapture:a?void 0:d,onFocusCapture:a?void 0:f,onBlurCapture:a?void 0:m}}}var IW=1500,Bw=500,Fa={},_W=0,Zc=false,on=null,Ka=null;function XT(e={}){let{delay:t=IW,closeDelay:r=Bw}=e,{isOpen:o,open:n,close:i}=Tr(e),a=useMemo(()=>`${++_W}`,[]),l=useRef(null),s=useRef(i),u=()=>{Fa[a]=p;},c=()=>{for(let f in Fa)f!==a&&(Fa[f](true),delete Fa[f]);},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),Zc=true,n(),on&&(clearTimeout(on),on=null),Ka&&(clearTimeout(Ka),Ka=null);},p=f=>{f||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current();},r)),on&&(clearTimeout(on),on=null),Zc&&(Ka&&clearTimeout(Ka),Ka=setTimeout(()=>{delete Fa[a],Ka=null,Zc=false;},Math.max(Bw,r)));},m=()=>{c(),u(),!o&&!Zc?(on&&clearTimeout(on),on=setTimeout(()=>{on=null,Zc=true,d();},t)):o||d();};return useEffect(()=>{s.current=i;},[i]),useEffect(()=>()=>{l.current&&clearTimeout(l.current),Fa[a]&&delete Fa[a];},[a]),{isOpen:o,open:f=>{!f&&t>0&&!l.current?m():d();},close:p}}function YT(e,t,r){let o=oe(e,{labelable:true}),{hoverProps:n}=ae({onHoverStart:()=>t?.open(true),onHoverEnd:()=>t?.close()},r);return {tooltipProps:M(o,n,{role:"tooltip"})}}function ZT(e,t,r){let{isDisabled:o,trigger:n,shouldCloseOnPress:i=true}=e,a=ee(),l=useRef(false),s=useRef(false),u=()=>{(l.current||s.current)&&t.open(s.current);},c=x=>{!l.current&&!s.current&&t.close(x);};useEffect(()=>{let x=v=>{r&&r.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(true));},h=U(r?.current);if(t.isOpen)return h.addEventListener("keydown",x,true),()=>{h.removeEventListener("keydown",x,true);}},[r,t]);let d=()=>{n!=="focus"&&(zt()==="pointer"?l.current=true:l.current=false,u());},p=()=>{n!=="focus"&&(s.current=false,l.current=false,c());},m=()=>{i&&(s.current=false,l.current=false,c(true));},f=()=>{Nt()&&(s.current=true,u());},y=()=>{s.current=false,l.current=false,c(true);},{hoverProps:b}=ae({isDisabled:o,onHoverStart:d,onHoverEnd:p}),{focusableProps:g}=it({isDisabled:o,onFocus:f,onBlur:y},r);return {triggerProps:{"aria-describedby":t.isOpen?a:void 0,...M(g,b,{onPointerDown:m,onKeyDown:m}),tabIndex:void 0},tooltipProps:{id:a}}}function JT(e,t,r){let{gridProps:o}=La(e,t,r);return o.role="treegrid",{gridProps:o}}var $w={"ar-AE":{collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"},"bg-BG":{collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"},"cs-CZ":{collapse:"Sbalit",expand:"Rozt\xE1hnout"},"da-DK":{collapse:"Skjul",expand:"Udvid"},"de-DE":{collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"},"en-US":{expand:"Expand",collapse:"Collapse"},"es-ES":{collapse:"Contraer",expand:"Ampliar"},"et-EE":{collapse:"Ahenda",expand:"Laienda"},"fi-FI":{collapse:"Pienenn\xE4",expand:"Laajenna"},"fr-FR":{collapse:"R\xE9duire",expand:"D\xE9velopper"},"he-IL":{collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"},"hr-HR":{collapse:"Sa\u017Emi",expand:"Pro\u0161iri"},"hu-HU":{collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"},"it-IT":{collapse:"Comprimi",expand:"Espandi"},"ja-JP":{collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"},"ko-KR":{collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},"lt-LT":{collapse:"Sutraukti",expand:"I\u0161skleisti"},"lv-LV":{collapse:"Sak\u013Caut",expand:"Izv\u0113rst"},"nb-NO":{collapse:"Skjul",expand:"Utvid"},"nl-NL":{collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{collapse:"Zwi\u0144",expand:"Rozwi\u0144"},"pt-BR":{collapse:"Recolher",expand:"Expandir"},"pt-PT":{collapse:"Colapsar",expand:"Expandir"},"ro-RO":{collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"},"ru-RU":{collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},"sk-SK":{collapse:"Zbali\u0165",expand:"Rozbali\u0165"},"sl-SI":{collapse:"Strni",expand:"Raz\u0161iri"},"sr-SP":{collapse:" Skupi",expand:"Pro\u0161iri"},"sv-SE":{collapse:"D\xF6lj",expand:"Expandera"},"tr-TR":{collapse:"Daralt",expand:"Geni\u015Flet"},"uk-UA":{collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"},"zh-CN":{collapse:"\u6298\u53E0",expand:"\u6269\u5C55"},"zh-TW":{collapse:"\u6536\u5408",expand:"\u5C55\u958B"}};function Qf(e,t,r){let{node:o}=e,n=Ma(e,t,r),i=n.rowProps["aria-expanded"]===true,a=Te($w,"@react-aria/tree"),l=tt({"aria-label":i?a.format("collapse"):a.format("expand"),"aria-labelledby":n.rowProps.id}),s={onPress:()=>{n.isDisabled||(t.toggleKey(o.key),t.selectionManager.setFocused(true),t.selectionManager.setFocusedKey(o.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...l};return {...n,expandButtonProps:s}}var QT=class e extends zn{expandedKeys=new Set;withExpandedKeys(t,r){let o=this.clone();return o.expandedKeys=r,e.cloneAncestorSections(r,t,o),e.cloneAncestorSections(t,r,o),o.frozen=this.frozen,o}static cloneAncestorSections(t,r,o){for(let n of t)if(!r.has(n)){let i=n;for(;i!=null;){let a=o.getItem(i);if(a?.type==="section"){o.keyMap.set(i,a.clone());break}else i=a?.parentKey??null;}}}*[Symbol.iterator](){let t=this.getFirstKey(),r=t!=null?this.getItem(t):null;for(;r;)if(yield r,r.type==="section")r=r.nextKey!=null?this.getItem(r.nextKey):null;else {let o=this.getKeyAfter(r.key);r=o!=null?this.getItem(o):null;}}getLastKey(){let t=this.lastKey;if(t==null)return null;let r=this.getItem(t);for(;r?.lastChildKey!=null&&(r.type!=="item"||this.expandedKeys.has(r.key));)r=this.getItem(r.lastChildKey);return r?.key}getKeyAfter(t){let r=this.getItem(t);if(!r)return null;if((this.expandedKeys.has(r.key)||r.type!=="item")&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.getItem(r.parentKey);else return null}return null}getKeyBefore(t){let r=this.getItem(t);if(!r)return null;if(r.prevKey!=null){for(r=this.getItem(r.prevKey);r&&(r.type!=="item"||this.expandedKeys.has(r.key))&&r.lastChildKey!=null;)r=this.getItem(r.lastChildKey);return r?.key??null}return r.parentKey}getChildren(t){let r=this;return {*[Symbol.iterator](){let o=r.getItem(t),n=o?.firstChildKey!=null?r.getItem(o.firstChildKey):null;if(o&&o.type==="section"&&n)for(;n&&n.key!==o.nextKey;){yield r.getItem(n.key);let i=r.getKeyAfter(n.key);n=i!=null?r.getItem(i):null;}else for(;n;)yield n,n=n.nextKey!=null?r.getItem(n.nextKey):null;}}}getTextValue(t){let r=this.getItem(t);return r?r.textValue:""}},Uw=createContext(null),oy=createContext(null),oC=forwardRef(function(t,r){return [t,r]=Ie(t,r,Uw),jsx(no,{content:jsx(_t,{...t}),createCollection:()=>new QT,children:o=>jsx(OW,{props:t,collection:o,treeRef:r})})}),jw={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function OW({props:e,collection:t,treeRef:r}){let{dragAndDropHooks:o}=e,{direction:n}=Q(),i=or({usage:"search",sensitivity:"base"}),a=!!o?.useDraggableCollectionState,l=!!o?.useDroppableCollectionState,s=useRef(a),u=useRef(l);useEffect(()=>{s.current!==a&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),u.current!==l&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");},[a,l]);let{selectionMode:c="none",expandedKeys:d,defaultExpandedKeys:p,onExpandedChange:m,disabledBehavior:f="all"}=e,{CollectionRoot:y,isVirtualized:b,layoutDelegate:g,dropTargetDelegate:x}=useContext(Re),[h,v]=ye(d?new Set(d):void 0,p?new Set(p):new Set,m),[C,T]=useState(t),[P,k]=useState(h),[S,w]=useState(()=>t.withExpandedKeys(P,h));(!HW(P,h)||t!==C)&&(w(t.withExpandedKeys(P,h)),T(t),k(h));let E=Dc({...e,selectionMode:c,expandedKeys:h,onExpandedChange:v,collection:S,children:void 0,disabledBehavior:f}),{gridProps:z}=JT({...e,isVirtualized:b,layoutDelegate:g},E,r),A,D,O,R=false,N=null,F=useRef(null);if(a&&o){A=o.useDraggableCollectionState({collection:E.collection,selectionManager:E.selectionManager,preview:o.renderDragPreview?F:void 0}),o.useDraggableCollection({},A,r);let X=o.DragPreview;N=o.renderDragPreview?jsx(X,{ref:F,children:o.renderDragPreview}):null;}let[I]=useState(()=>new ls);if(l&&o){D=o.useDroppableCollectionState({collection:E.collection,selectionManager:E.selectionManager});let X=o.dropTargetDelegate||x||new o.ListDropTargetDelegate(E.collection,r,{direction:n});I.setup(X,E,n);let ce=new kt({collection:E.collection,collator:i,ref:r,disabledKeys:E.selectionManager.disabledKeys,disabledBehavior:E.selectionManager.disabledBehavior,direction:n,layoutDelegate:g});O=o.useDroppableCollection({keyboardDelegate:ce,dropTargetDelegate:I,onDropActivate:te=>{if(te.target.type==="item"){let ue=te.target.key,Ee=E.collection.getItem(ue),Ce=h.has(ue);Ee&&Ee.hasChildNodes&&(!Ce||o?.isVirtualDragging?.())&&E.toggleKey(ue);}},onKeyDown:te=>{let ue=D?.target;if(ue&&ue.type==="item"&&ue.dropPosition==="on"){let Ee=E.collection.getItem(ue.key);(te.key===jw.expand[n]&&Ee?.hasChildNodes&&!E.expandedKeys.has(ue.key)||te.key===jw.collapse[n]&&Ee?.hasChildNodes&&E.expandedKeys.has(ue.key))&&E.toggleKey(ue.key);}}},D,r),R=D.isDropTarget({type:"root"});}let V=!!(a&&!A?.isDisabled),{focusProps:H,isFocused:K,isFocusVisible:L}=ne(),B={isEmpty:E.collection.size===0,isFocused:K,isFocusVisible:L,isDropTarget:R,selectionMode:E.selectionManager.selectionMode,allowsDragging:!!V,state:E},G=Ve({...e,children:void 0,defaultClassName:"react-aria-Tree",values:B}),q=null;if(E.collection.size===0&&e.renderEmptyState){let{isEmpty:X,...ce}=B,te=e.renderEmptyState({...ce});q=jsx("div",{role:"row",style:{display:"contents"},...{"aria-level":1},children:jsx("div",{role:"gridcell",style:{display:"contents"},children:te})});}let W=oe(e,{global:true});return jsxs(Fragment,{children:[jsx(Rt,{children:jsxs(Pe.div,{...M(W,G,z,H,O?.collectionProps),ref:r,slot:e.slot||void 0,"data-empty":E.collection.size===0||void 0,"data-focused":K||void 0,"data-drop-target":R||void 0,"data-focus-visible":L||void 0,"data-selection-mode":E.selectionManager.selectionMode==="none"?void 0:E.selectionManager.selectionMode,"data-allows-dragging":!!V||void 0,children:[jsxs(mt,{values:[[oy,E],[Vt,{dragAndDropHooks:o,dragState:A,dropState:D}],[Mn,{render:FW}]],children:[l&&jsx(BW,{}),jsx(bi,{children:jsx(y,{collection:E.collection,persistedKeys:Bl(E.selectionManager,o,D),scrollRef:r,renderDropIndicator:fa(o,D)})})]}),q]})}),N]})}var eC=class extends Gt{static type="content"},nC=dr(eC,function(t){let r=useContext(Ww),o=Ve({children:t.children,values:r});return jsx(Re.Provider,{value:oa,children:o.children})}),Ww=createContext(null),tC=class extends Gt{static type="item"},iC=Vr(tC,(e,t,r)=>{let o=useContext(oy);t=pe(t);let{dragAndDropHooks:n,dragState:i,dropState:a}=useContext(Vt),l=i&&!(i.isDisabled||i.selectionManager.isDisabled(r.key)),{rowProps:s,gridCellProps:u,expandButtonProps:c,descriptionProps:d,...p}=Qf({node:r,shouldSelectOnPressUp:!!i},o,t),m=s["aria-expanded"]===true,f=e.hasChildItems||[...o.collection.getChildren(r.key)].length>1,y=s["aria-level"]||1,{hoverProps:b,isHovered:g}=ae({isDisabled:!p.allowsSelection&&!p.hasAction&&!l,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{isFocusVisible:x,focusProps:h}=ne(),{isFocusVisible:v,focusProps:C}=ne({within:true}),{checkboxProps:T}=is({key:r.key},o),P=null;i&&n&&(P=n.useDraggableItem({key:r.key,hasDragButton:true},i,t));let k=null,S=useRef(null),w=useRef(null),E=useRef(null),{visuallyHiddenProps:z}=Ft();a&&n&&(k=n.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"},activateButtonRef:E},a,w));let A=i&&i.isDragging(r.key),D=k?.isDropTarget,O=o.selectionManager.selectionMode,R=o.selectionManager.selectionBehavior,N=qn.useMemo(()=>({...p,isHovered:g,isFocusVisible:x,isExpanded:m,hasChildItems:f,level:y,selectionMode:O,selectionBehavior:R,isFocusVisibleWithin:v,state:o,id:r.key,allowsDragging:!!i,isDragging:A,isDropTarget:D}),[p,g,x,m,f,y,v,o,r.key,i,A,D,R,O]),F=Ve({...e,children:r.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":y},values:N});useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.");},[r.textValue]),useEffect(()=>{f&&!S.current&&process.env.NODE_ENV!=="production"&&console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.");},[]);let I=useRef(null);useEffect(()=>{i&&!I.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Tree must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let V=wn({items:o.collection.getChildren(r.key),children:L=>{switch(L.type){case "content":return L.render(L);case "loader":case "item":return jsx(Fragment,{});default:throw new Error("Unsupported element type in TreeRow: "+L.type)}}}),H=ee(),K=oe(e,{global:true});return delete K.id,delete K.onClick,jsxs(Fragment,{children:[k&&!k.isHidden&&jsx("div",{role:"row","aria-level":s["aria-level"],"aria-expanded":s["aria-expanded"],"aria-label":k.dropIndicatorProps["aria-label"],children:jsxs("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"},children:[jsx("div",{role:"button",...z,...k.dropIndicatorProps,ref:w}),s["aria-expanded"]!=null?jsx("div",{role:"button",...z,id:H,"aria-label":c["aria-label"],"aria-labelledby":`${H} ${s.id}`,tabIndex:-1,ref:E}):null]})}),jsx(Pe.div,{...M(K,s,h,b,C,P?.dragProps),...F,ref:t,"data-expanded":f&&m||void 0,"data-has-child-items":f||void 0,"data-level":y,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":x||void 0,"data-pressed":p.isPressed||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-allows-dragging":!!i||void 0,"data-dragging":A||void 0,"data-drop-target":D||void 0,children:jsx("div",{...u,style:{display:"contents"},children:jsx(mt,{values:[[la,{slots:{selection:T}}],[Ll,{slots:{selection:T}}],[io,{slots:{[ro]:{},chevron:{...c,ref:S},drag:{...P?.dragButtonProps,ref:I,style:{pointerEvents:"none"}}}}],[Ww,{...N}],[An,{isSelected:p.isSelected}]],children:V})})})]})});dr(En,function(t,r,o){let{isVirtualized:n}=useContext(Re),i=useContext(oy),{isLoading:a,onLoadMore:l,scrollOffset:s,...u}=t,c=useRef(null),d=useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:c,scrollOffset:s}),[l,s,i?.collection]);ha(d,c),r=pe(r);let{rowProps:p,gridCellProps:m}=Qf({node:o},i,r),f=p["aria-level"]||1,y={role:"row","aria-level":p["aria-level"]},b=Ve({...u,children:o.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:f}}),g={};return n&&(g={display:"contents"}),jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:ya(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:c,style:{position:"absolute",height:1,width:1}})}),a&&b.children&&jsx(Pe.div,{ref:r,...M(oe(t),y),...b,"data-level":f,children:jsx("div",{...m,style:g,children:b.children})})]})});function FW(e,t){t=pe(t);let{dragAndDropHooks:r,dropState:o}=useContext(Vt),n=useRef(null),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=r.useDropIndicator(e,o,n);if(a)return null;let s=o&&e.target.type==="item"?(o.collection.getItem(e.target.key)?.level||0)+1:1;return jsx(VW,{...e,dropIndicatorProps:i,isDropTarget:l,ref:t,buttonRef:n,level:s})}function KW(e,t){let{dropIndicatorProps:r,isDropTarget:o,buttonRef:n,level:i,...a}=e,{visuallyHiddenProps:l}=Ft(),s=Ve({...a,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":i},values:{isDropTarget:o}});return jsx(Pe.div,{...s,role:"row","aria-level":i,ref:t,"data-drop-target":o||void 0,children:jsxs("div",{role:"gridcell",children:[jsx("div",{...l,role:"button",...r,ref:n}),s.children]})})}var VW=forwardRef(KW);function BW(){let{dragAndDropHooks:e,dropState:t}=useContext(Vt),r=useRef(null),{dropIndicatorProps:o}=e.useDropIndicator({target:{type:"root"}},t,r),n=t.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=Ft();return !n&&o["aria-hidden"]?null:jsx("div",{role:"row","aria-hidden":o["aria-hidden"],style:{position:"absolute"},children:jsx("div",{role:"gridcell",children:jsx("div",{role:"button",...i,...o,ref:r})})})}function HW(e,t){if(e.size!==t.size)return false;for(let r of e)if(!t.has(r))return false;return true}var qw={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function Xw(e){let{hasDragButton:t,isDisabled:r,elementRef:o}=e,n=Te(vi,"@react-aria/dnd"),i=useRef({options:e,x:0,y:0}).current;i.options=e;let a=useRef(null),[l,s]=useState(false),u=T=>{a.current=T,s(!!T);},{addGlobalListener:c,removeAllGlobalListeners:d}=It(),p=useRef(null),m=T=>{if(T.defaultPrevented)return;if(T.stopPropagation(),p.current==="virtual"){T.preventDefault(),g($(T)),p.current=null;return}typeof e.onDragStart=="function"&&e.onDragStart({type:"dragstart",x:T.clientX,y:T.clientY});let P=e.getItems();T.dataTransfer.clearData?.(),Lc(T.dataTransfer,P);let k=7;if(typeof e.getAllowedDropOperations=="function"){let E=e.getAllowedDropOperations();k=0;for(let z of E)k|=za[z]||0;}Pf(k);let S=Lx[k]||"none";T.dataTransfer.effectAllowed=S==="cancel"?"none":S,typeof e.preview?.current=="function"&&e.preview.current(P,(E,z,A)=>{if(!E)return;let D=E.getBoundingClientRect(),O=T.currentTarget.getBoundingClientRect(),R=T.clientX-O.x,N=T.clientY-O.y;(R>D.width||N>D.height)&&(R=D.width/2,N=D.height/2);let F=R,I=N;typeof z=="number"&&typeof A=="number"&&(F=z,I=A),F=Math.max(0,Math.min(F,D.width)),I=Math.max(0,Math.min(I,D.height));let V=2*Math.round(D.height/2);E.style.height=`${V}px`,T.dataTransfer.setDragImage(E,F,I);}),c(Y($(T)),"drop",E=>{E.preventDefault(),E.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");},{once:true}),i.x=T.clientX,i.y=T.clientY;let w=$(T);requestAnimationFrame(()=>{u(w);});},f=T=>{T.stopPropagation(),!(T.clientX===i.x&&T.clientY===i.y)&&(typeof e.onDragMove=="function"&&e.onDragMove({type:"dragmove",x:T.clientX,y:T.clientY}),i.x=T.clientX,i.y=T.clientY);},y=T=>{if(T.stopPropagation(),typeof e.onDragEnd=="function"){let P={type:"dragend",x:T.clientX,y:T.clientY,dropOperation:wa[T.dataTransfer.dropEffect]};Mc&&(P.dropOperation=wa[Mc]),e.onDragEnd(P);}u(null),d(),Pf(0),Jl(void 0);};useEffect(()=>()=>{if(a.current&&(!a.current.isConnected||parseInt(version,10)<17)){if(typeof i.options.onDragEnd=="function"){let T={type:"dragend",x:0,y:0,dropOperation:wa[Mc||"none"]};i.options.onDragEnd(T);}u(null),Pf(0),Jl(void 0);}},[i]);let b=T=>{T.pointerType!=="keyboard"&&T.pointerType!=="virtual"||g(T.target);},g=T=>{if(typeof i.options.onDragStart=="function"){let P=T.getBoundingClientRect();i.options.onDragStart({type:"dragstart",x:P.x+P.width/2,y:P.y+P.height/2});}Xz({element:T,items:i.options.getItems(),allowedDropOperations:typeof i.options.getAllowedDropOperations=="function"?i.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(P){u(null),typeof i.options.onDragEnd=="function"&&i.options.onDragEnd(P);}},n),u(T);},x=Zl(),h=l?qw[x].end:qw[x].start,v=Dt(n.format(h),o),C={};return t||(C={...v,onPointerDown(T){if(p.current=yl(T.nativeEvent)?"virtual":T.pointerType,T.width<1&&T.height<1)p.current="virtual";else {let P=T.currentTarget.getBoundingClientRect(),k=T.clientX-P.x,S=T.clientY-P.y,w=P.width/2,E=P.height/2;Math.abs(k-w)<=.5&&Math.abs(S-E)<=.5?p.current="virtual":p.current=T.pointerType;}},onKeyDownCapture(T){$(T)===T.currentTarget&&T.key==="Enter"&&(T.preventDefault(),T.stopPropagation());},onKeyUpCapture(T){$(T)===T.currentTarget&&T.key==="Enter"&&(T.preventDefault(),T.stopPropagation(),g($(T)));},onClick(T){(Sn(T.nativeEvent)||p.current==="virtual")&&(T.preventDefault(),T.stopPropagation(),g($(T)));}}),r?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:false}:{dragProps:{...C,draggable:"true",onDragStart:m,onDrag:f,onDragEnd:y},dragButtonProps:{...v,onPress:b},isDragging:l}}var Ti=qn.forwardRef(function(t,r){let o=t.children,[n,i]=useState(null),a=useRef(null),l=useRef(void 0);return useImperativeHandle(r,()=>(s,u)=>{let c=o(s),d,p,m;c&&typeof c=="object"&&"element"in c?(d=c.element,p=c.x,m=c.y):d=c,flushSync(()=>{i(d);}),u(a.current,p,m),l.current=requestAnimationFrame(()=>{i(null);});},[o]),useEffect(()=>()=>{l.current&&cancelAnimationFrame(l.current);},[]),n?jsx("div",{style:{zIndex:-100,position:"fixed",top:0,left:-1e5},ref:a,children:n}):null});function Jw(e,t,r,o,n=false,i=false){switch(o){case "left":return n?lC(e,t,r,i,"left"):sC(e,t,r,i,"left");case "right":return n?sC(e,t,r,i,"right"):lC(e,t,r,i,"right");case "up":return sC(e,t,r,i);case "down":return lC(e,t,r,i)}}function lC(e,t,r,o=false,n=null){if(!r)return {type:"root"};if(r.type==="root"){let i=e.getFirstKey?.()??null;return i!=null?{type:"item",key:i,dropPosition:"before"}:null}if(r.type==="item"){let i=null;n?i=n==="right"?e.getKeyRightOf?.(r.key,{includeDisabled:true}):e.getKeyLeftOf?.(r.key,{includeDisabled:true}):i=e.getKeyBelow?.(r.key,{includeDisabled:true});let a=uC(t,r.key,l=>t.getKeyAfter(l));if(i!=null&&i!==a)return {type:"item",key:i,dropPosition:r.dropPosition};switch(r.dropPosition){case "before":return {type:"item",key:r.key,dropPosition:"on"};case "on":{let l=t.getItem(r.key),s=i!=null?t.getItem(i):null;return l&&s&&s.level>=l.level?{type:"item",key:s.key,dropPosition:"before"}:{type:"item",key:r.key,dropPosition:"after"}}case "after":{let l=t.getItem(r.key),s=l?.nextKey!=null?t.getItem(l.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?t.getItem(s.nextKey):null;if(l&&s==null&&l.parentKey!=null){let u=t.getItem(l.parentKey),c=u?.nextKey!=null?t.getItem(u.nextKey):null;if(c?.type==="item")return {type:"item",key:c.key,dropPosition:"before"};if(u?.type==="item")return {type:"item",key:u.key,dropPosition:"after"}}if(s)return {type:"item",key:s.key,dropPosition:"on"}}}}return o?{type:"root"}:null}function sC(e,t,r,o=false,n=null){if(!r||o&&r.type==="root"){let i=null,a=e.getLastKey?.();for(;a!=null;){let l=t.getItem(a);if(l?.type!=="item")break;i=a,a=l?.parentKey;}return i!=null?{type:"item",key:i,dropPosition:"after"}:null}if(r.type==="item"){let i=null;n?i=n==="left"?e.getKeyLeftOf?.(r.key,{includeDisabled:true}):e.getKeyRightOf?.(r.key,{includeDisabled:true}):i=e.getKeyAbove?.(r.key,{includeDisabled:true});let a=uC(t,r.key,l=>t.getKeyBefore(l));if(i!=null&&i!==a)return {type:"item",key:i,dropPosition:r.dropPosition};switch(r.dropPosition){case "before":{let l=t.getItem(r.key);if(l&&l.prevKey!=null){let s=Zw(t,l.prevKey);if(s)return s}return i!=null?{type:"item",key:i,dropPosition:"on"}:{type:"root"}}case "on":return {type:"item",key:r.key,dropPosition:"before"};case "after":{let l=Zw(t,r.key);return l||{type:"item",key:r.key,dropPosition:"on"}}}}return r.type!=="root"?{type:"root"}:null}function Zw(e,t){let r=e.getItem(t),o=uC(e,t,i=>e.getKeyAfter(i)),n=o!=null?e.getItem(o):null;if(r&&n&&n.level>r.level){let i=null;if("lastChildKey"in r)for(i=r.lastChildKey!=null?e.getItem(r.lastChildKey):null;i&&i.type!=="item"&&i.prevKey!=null;)i=e.getItem(i.prevKey);else i=Array.from(r.childNodes).findLast(a=>a.type==="item")||null;if(i)return {type:"item",key:i.key,dropPosition:"after"}}return null}function uC(e,t,r){let o=r(t),n=o!=null?e.getItem(o):null;for(;n&&n.type!=="item";)o=r(n.key),n=o!=null?e.getItem(o):null;return o}var iy=20;function eR(e){let t=useRef(null),r=useRef(true),o=useRef(true);useEffect(()=>{if(e.current){t.current=Wt(e.current)?e.current:Qe(e.current);let a=window.getComputedStyle(t.current);r.current=/(auto|scroll)/.test(a.overflowX),o.current=/(auto|scroll)/.test(a.overflowY);}},[e]);let n=useRef({timer:void 0,dx:0,dy:0}).current;useEffect(()=>()=>{n.timer&&(cancelAnimationFrame(n.timer),n.timer=void 0);},[n]);let i=useCallback(()=>{r.current&&t.current&&(t.current.scrollLeft+=n.dx),o.current&&t.current&&(t.current.scrollTop+=n.dy),n.timer&&(n.timer=requestAnimationFrame(i));},[t,n]);return {move(a,l){if(!ei()||jt()||!t.current)return;let s=t.current.getBoundingClientRect(),u=iy,c=iy,d=s.height-iy,p=s.width-iy;a<u||a>p||l<c||l>d?(a<u?n.dx=a-u:a>p&&(n.dx=a-p),l<c?n.dy=l-c:l>d&&(n.dy=l-d),n.timer||(n.timer=requestAnimationFrame(i))):this.stop();},stop(){n.timer&&(cancelAnimationFrame(n.timer),n.timer=void 0);}}}function gs(e,t,r){let o=useRef({props:e,state:t,nextTarget:null,dropOperation:null}).current;o.props=e,o.state=t;let n=useCallback(async p=>{let{onInsert:m,onRootDrop:f,onItemDrop:y,onReorder:b,onMove:g,acceptedDragTypes:x="all",shouldAcceptItemDrop:h}=o.props,{draggingKeys:v}=vt,C=Ur(r),{target:T,dropOperation:P,items:k}=p,S=k;(x!=="all"||h)&&(S=k.filter(w=>{let E;return w.kind==="directory"?E=new Set([Ax]):E=w.kind==="file"?new Set([w.type]):w.types,x==="all"||x.some(z=>E.has(z))?T.type==="item"&&T.dropPosition==="on"&&h?h(T,E):true:false})),S.length>0&&(T.type==="root"&&f&&await f({items:S,dropOperation:P}),T.type==="item"&&(T.dropPosition==="on"&&y&&await y({items:S,dropOperation:P,isInternal:C,target:T}),g&&C&&await g({keys:v,dropOperation:P,target:T}),T.dropPosition!=="on"&&(!C&&m&&await m({items:S,dropOperation:P,target:T}),C&&b&&await b({keys:v,dropOperation:P,target:T}))));},[o,r]),i=eR(r),{dropProps:a}=_a({ref:r,onDropEnter(){o.nextTarget!=null&&t.setTarget(o.nextTarget);},onDropMove(p){o.nextTarget!=null&&t.setTarget(o.nextTarget);},getDropOperationForPoint(p,m,f,y){let{draggingKeys:b,dropCollectionRef:g}=vt,x=Ur(r),h=C=>t.getDropOperation({target:C,types:p,allowedOperations:m,isInternal:x,draggingKeys:b})!=="cancel",v=e.dropTargetDelegate.getDropTargetFromPoint(f,y,h);if(!v)return o.dropOperation="cancel",o.nextTarget=null,"cancel";if(o.dropOperation=t.getDropOperation({target:v,types:p,allowedOperations:m,isInternal:x,draggingKeys:b}),o.dropOperation==="cancel"){let C={type:"root"},T=t.getDropOperation({target:C,types:p,allowedOperations:m,isInternal:x,draggingKeys:b});T!=="cancel"&&(v=C,o.dropOperation=T);}return v&&o.dropOperation!=="cancel"&&r?.current!==g?.current&&Ia(r),o.nextTarget=o.dropOperation==="cancel"?null:v,o.dropOperation},onDropExit(){Ia(void 0),t.setTarget(null),i.stop();},onDropActivate(p){t.target?.type==="item"&&typeof e.onDropActivate=="function"&&e.onDropActivate({type:"dropactivate",x:p.x,y:p.y,target:t.target});},onDrop(p){Ia(r),t.target&&u(p,t.target);let{draggingCollectionRef:m}=vt;m==null&&Tf();}}),l=useRef(null),s=useCallback(()=>{let{state:p}=o;if(l.current){let{target:m,collection:f,selectedKeys:y,focusedKey:b,isInternal:g,draggingKeys:x}=l.current;if(p.collection.size>f.size&&p.selectionManager.isSelectionEqual(y)){let h=new Set,v=p.collection.getFirstKey();for(;v!=null;){let C=p.collection.getItem(v);C?.type==="item"&&!f.getItem(C.key)&&h.add(C.key),C?.hasChildNodes&&p.collection.getItem(C.lastChildKey)?.type==="item"?v=C.firstChildKey:v=p.collection.getKeyAfter(v);}if(p.selectionManager.setSelectedKeys(h),p.selectionManager.focusedKey===b){let C=h.keys().next().value;if(C!=null){let T=p.collection.getItem(C),P=l.current.target,k=p.collection.expandedKeys?p.collection.expandedKeys.has(T?.parentKey):false;T&&(T?.type==="cell"||P.type==="item"&&P.dropPosition==="on"&&!k)&&(C=T.parentKey),C!=null&&p.selectionManager.setFocusedKey(C),p.selectionManager.selectionMode==="none"&&ur("keyboard");}}}else b!=null&&p.selectionManager.focusedKey===b&&g&&m.type==="item"&&m.dropPosition!=="on"&&x.has(p.collection.getItem(b)?.parentKey)?(p.selectionManager.setFocusedKey(p.collection.getItem(b)?.parentKey??null),ur("keyboard")):p.selectionManager.focusedKey===b&&m.type==="item"&&m.dropPosition==="on"&&p.collection.getItem(m.key)!=null?(p.selectionManager.setFocusedKey(m.key),ur("keyboard")):p.selectionManager.focusedKey!=null&&!p.selectionManager.isSelected(p.selectionManager.focusedKey)&&ur("keyboard");p.selectionManager.setFocused(true);}},[o]),u=useCallback((p,m)=>{let{state:f}=o;l.current={timeout:void 0,focusedKey:f.selectionManager.focusedKey,collection:f.collection,selectedKeys:f.selectionManager.selectedKeys,draggingKeys:vt.draggingKeys,isInternal:Ur(r),target:m},(o.props.onDrop||n)({type:"drop",x:p.x,y:p.y,target:m,items:p.items,dropOperation:p.dropOperation}),l.current.timeout=setTimeout(()=>{s(),l.current=null;},50);},[o,n,r,s]);useEffect(()=>()=>{l.current&&clearTimeout(l.current.timeout);},[]),re(()=>{l.current&&t.collection!==l.current.collection&&s();});let{direction:c}=Q();useEffect(()=>{if(!r.current)return;let p=(y,b=true,g="down")=>Jw(o.props.keyboardDelegate,o.state.collection,y,g,c==="rtl",b),m=(y,b=true)=>p(y,b,"up"),f=(y,b,g,x,h=true)=>{let v=0,C,{draggingKeys:T}=vt,P=Ur(r);do{let k=x(y,h);if(!k)return null;y=k,C=o.state.getDropOperation({target:k,types:b,allowedOperations:g,isInternal:P,draggingKeys:T}),y.type==="root"&&v++;}while(C==="cancel"&&!o.state.isDropTarget(y)&&v<2);return C==="cancel"?null:y};return Df({element:r.current,preventFocusOnDrop:true,getDropOperation(y,b){if(o.state.target){let{draggingKeys:x}=vt,h=Ur(r);return o.state.getDropOperation({target:o.state.target,types:y,allowedOperations:b,isInternal:h,draggingKeys:x})}return f(null,y,b,p)?"move":"cancel"},onDropEnter(y,b){let g=en(b.items),x=o.state.selectionManager,h=null;Ia(r);let v=x.focusedKey,C="after",T=v!=null?o.state.collection.getItem(v):null;if(T?.type==="cell"&&(v=T.parentKey),v!=null&&x.isSelected(v)&&(x.selectedKeys.size>1&&x.firstSelectedKey===v?C="before":v=x.lastSelectedKey),v!=null){h={type:"item",key:v,dropPosition:C};let{draggingKeys:P}=vt,k=Ur(r);o.state.getDropOperation({target:h,types:g,allowedOperations:b.allowedDropOperations,isInternal:k,draggingKeys:P})==="cancel"&&(h=f(h,g,b.allowedDropOperations,p,false)??f(h,g,b.allowedDropOperations,m,false));}h||(h=f(null,g,b.allowedDropOperations,p)),o.state.setTarget(h);},onDropExit(){Ia(void 0),o.state.setTarget(null);},onDropTargetEnter(y){o.state.setTarget(y);},onDropActivate(y,b){b?.type==="item"&&b?.dropPosition==="on"&&typeof o.props.onDropActivate=="function"&&o.props.onDropActivate({type:"dropactivate",x:y.x,y:y.y,target:b});},onDrop(y,b){Ia(r),o.state.target&&u(y,b||o.state.target);},onKeyDown(y,b){let{keyboardDelegate:g}=o.props,x=en(b.items);switch(y.key){case "ArrowDown":{if(g.getKeyBelow){let h=f(o.state.target,x,b.allowedDropOperations,(v,C)=>p(v,C,"down"));o.state.setTarget(h);}break}case "ArrowUp":{if(g.getKeyAbove){let h=f(o.state.target,x,b.allowedDropOperations,(v,C)=>p(v,C,"up"));o.state.setTarget(h);}break}case "ArrowLeft":{if(g.getKeyLeftOf){let h=f(o.state.target,x,b.allowedDropOperations,(v,C)=>p(v,C,"left"));o.state.setTarget(h);}break}case "ArrowRight":{if(g.getKeyRightOf){let h=f(o.state.target,x,b.allowedDropOperations,(v,C)=>p(v,C,"right"));o.state.setTarget(h);}break}case "Home":{if(g.getFirstKey){let h=f(null,x,b.allowedDropOperations,p);o.state.setTarget(h);}break}case "End":{if(g.getLastKey){let h=f(null,x,b.allowedDropOperations,m);o.state.setTarget(h);}break}case "PageDown":{if(g.getKeyPageBelow){let h=o.state.target;if(!h)h=f(null,x,b.allowedDropOperations,p);else {let v=g.getFirstKey?.();h.type==="item"&&(v=h.key);let C=null;v!=null&&(C=g.getKeyPageBelow(v));let T=h.type==="item"?h.dropPosition:"after";if((C==null||h.type==="item"&&h.key===g.getLastKey?.())&&(C=g.getLastKey?.()??null,T="after"),C==null)break;h={type:"item",key:C,dropPosition:T};let{draggingCollectionRef:P,draggingKeys:k}=vt,S=P?.current===r?.current;o.state.getDropOperation({target:h,types:x,allowedOperations:b.allowedDropOperations,isInternal:S,draggingKeys:k})==="cancel"&&(h=f(h,x,b.allowedDropOperations,p,false)??f(h,x,b.allowedDropOperations,m,false));}o.state.setTarget(h??o.state.target);}break}case "PageUp":{if(!g.getKeyPageAbove)break;let h=o.state.target;if(!h)h=f(null,x,b.allowedDropOperations,m);else if(h.type==="item"){if(h.key===g.getFirstKey?.())h={type:"root"};else {let P=g.getKeyPageAbove(h.key),k=h.dropPosition;if(P==null&&(P=g.getFirstKey?.(),k="before"),P==null)break;h={type:"item",key:P,dropPosition:k};}let{draggingKeys:v}=vt,C=Ur(r);o.state.getDropOperation({target:h,types:x,allowedOperations:b.allowedDropOperations,isInternal:C,draggingKeys:v})==="cancel"&&(h=f(h,x,b.allowedDropOperations,m,false)??f(h,x,b.allowedDropOperations,p,false));}o.state.setTarget(h??o.state.target);break}}o.props.onKeyDown?.(y);}})},[o,r,u,c]);let d=ee();return vf.set(t,{id:d,ref:r}),{collectionProps:M(a,{id:d,"aria-describedby":null})}}function Jc(e,t,r){let{dropProps:o}=kf(r),n=Bz(t);useEffect(()=>{if(r.current)return qz({element:r.current,target:e.target,getDropOperation(c,d){let{draggingKeys:p}=vt,m=Ur(n);return t.getDropOperation({target:e.target,types:c,allowedOperations:d,isInternal:m,draggingKeys:p})},activateButtonRef:e.activateButtonRef})},[r,e.target,t,n,e.activateButtonRef]);let i=Ql(),{draggingKeys:a}=vt,l=Ur(n),s=i&&t.getDropOperation({target:e.target,types:en(i.dragTarget.items),allowedOperations:i.dragTarget.allowedDropOperations,isInternal:l,draggingKeys:a})!=="cancel",u=t.isDropTarget(e.target);return useEffect(()=>{i&&u&&r.current&&r.current.focus();},[u,i,r]),{dropProps:{...o,"aria-hidden":!i||s?void 0:"true"},isDropTarget:u}}function hs(e,t,r){let{target:o}=e,{collection:n}=t,i=Te(vi,"@react-aria/dnd"),a=Ql(),{dropProps:l}=Jc(e,t,r),s=ee(),u=f=>f==null?"":n.getTextValue?.(f)??n.getItem(f)?.textValue??"",c="",d;if(o.type==="root")c=i.format("dropOnRoot"),d=`${s} ${Vz(t)}`;else if(o.dropPosition==="on")c=i.format("dropOnItem",{itemText:u(o.key)});else {let f,y;if(o.dropPosition==="before"){let b=n.getItem(o.key)?.prevKey,g=b!=null?n.getItem(b):null;f=g?.type==="item"?g.key:null;}else f=o.key;if(o.dropPosition==="after"){let b=n.getItem(o.key)?.nextKey,g=b!=null?n.getItem(b):null;y=g?.type==="item"?g.key:null;}else y=o.key;f!=null&&y!=null?c=i.format("insertBetween",{beforeItemText:u(f),afterItemText:u(y)}):f!=null?c=i.format("insertAfter",{itemText:u(f)}):y!=null&&(c=i.format("insertBefore",{itemText:u(y)}));}let p=t.isDropTarget(o),m=a?l["aria-hidden"]:"true";return {dropIndicatorProps:{...l,id:s,"aria-roledescription":i.format("dropIndicator"),"aria-label":c,"aria-labelledby":d,"aria-hidden":m,tabIndex:-1},isDropTarget:p,isHidden:!p&&!!m}}var QW={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function Ci(e,t,r){let o=Te(vi,"@react-aria/dnd"),n=t.isDisabled||t.selectionManager.isDisabled(e.key),{dragProps:i,dragButtonProps:a}=Xw({elementRef:r,getItems(){return t.getItems(e.key)},preview:t.preview,getAllowedDropOperations:t.getAllowedDropOperations,hasDragButton:e.hasDragButton,onDragStart(f){t.startDrag(e.key,f),Gz(t.draggingKeys);},onDragMove(f){t.moveDrag(f);},onDragEnd(f){let{dropOperation:y}=f,b=y==="cancel"?false:Ur();t.endDrag({...f,keys:t.draggingKeys,isInternal:b}),Tf();}}),l=t.collection.getItem(e.key),s=t.getKeysForDrag(e.key).size,u=s>1&&t.selectionManager.isSelected(e.key),c,d,p=Zl();if(!e.hasDragButton&&t.selectionManager.selectionMode!=="none"){let f=QW[p][u?"selected":"notSelected"];e.hasAction&&p==="keyboard"&&(f+="Alt"),u?d=o.format(f,{count:s}):d=o.format(f),delete i.onClick;}else if(u)c=o.format("dragSelectedItems",{count:s});else {let f=t.collection.getTextValue?.(e.key)??l?.textValue??"";c=o.format("dragItem",{itemText:f});}let m=Dt(d,r);if(d&&Object.assign(i,m),!e.hasDragButton&&e.hasAction){let{onKeyDownCapture:f,onKeyUpCapture:y}=i;p==="touch"&&delete i["aria-describedby"],i.onKeyDownCapture=b=>{b.altKey&&f?.(b);},i.onKeyUpCapture=b=>{b.altKey&&y?.(b);};}return {dragProps:n?{}:i,dragButtonProps:{...a,isDisabled:n,"aria-label":c}}}function vs(e,t,r){let{draggingCollectionRef:o}=vt;t.draggingKeys.size>0&&o?.current!==r.current&&jz(r);}function xs(e){let{getItems:t,isDisabled:r,collection:o,selectionManager:n,onDragStart:i,onDragMove:a,onDragEnd:l,preview:s,getAllowedDropOperations:u}=e,[,c]=useState(false),d=useRef(new Set),p=useRef(null),m=f=>{let y=new Set;if(n.isSelected(f))for(let b of n.selectedKeys){let g=o.getItem(b);if(g){let x=false,h=g.parentKey;for(;h!=null;){if(n.selectedKeys.has(h)){x=true;break}let v=o.getItem(h);h=v?v.parentKey:null;}x||y.add(b);}}else y.add(f);return y};return {collection:o,selectionManager:n,get draggedKey(){return p.current},get draggingKeys(){return d.current},isDragging(f){return d.current.has(f)},getKeysForDrag:m,getItems(f){let y=m(f),b=[];for(let g of y){let x=o.getItem(g)?.value;x!=null&&b.push(x);}return t(m(f),b)},isDisabled:r,preview:s,getAllowedDropOperations:u,startDrag(f,y){let b=m(f);d.current=b,p.current=f,n.setFocused(false),c(true),typeof i=="function"&&i({...y,keys:b});},moveDrag(f){typeof a=="function"&&a({...f,keys:d.current});},endDrag(f){let{isInternal:y}=f;typeof l=="function"&&l({...f,keys:d.current,isInternal:y}),d.current=new Set,p.current=null,c(false);}}}function Ts(e){let{acceptedDragTypes:t="all",isDisabled:r,onInsert:o,onRootDrop:n,onItemDrop:i,onReorder:a,onMove:l,shouldAcceptItemDrop:s,collection:u,selectionManager:c,onDropEnter:d,getDropOperation:p,onDrop:m}=e,[f,y]=useState(null),b=useRef(null),g=h=>{if(h.dropPosition==="before"){let v=u.getItem(h.key);return v&&v.prevKey!=null?{type:"item",key:v.prevKey,dropPosition:"after"}:null}else if(h.dropPosition==="after"){let v=u.getItem(h.key);return v&&v.nextKey!=null?{type:"item",key:v.nextKey,dropPosition:"before"}:null}return null},x=useCallback(h=>{let{target:v,types:C,allowedOperations:T,isInternal:P,draggingKeys:k}=h;if(r||!v)return "cancel";if(t==="all"||t.some(S=>C.has(S))){let S=o&&v.type==="item"&&!P&&(v.dropPosition==="before"||v.dropPosition==="after"),w=a&&v.type==="item"&&P&&(v.dropPosition==="before"||v.dropPosition==="after")&&n8(u,v,k),E=v.type!=="item"||v.dropPosition!=="on"||!s||s(v,C),z=l&&v.type==="item"&&P&&E,A=n&&v.type==="root"&&!P,D=i&&v.type==="item"&&v.dropPosition==="on"&&!(P&&v.key!=null&&k.has(v.key))&&E;if(m||S||w||z||A||D)return p?p(v,C,T):T[0]}return "cancel"},[r,u,t,p,o,n,i,s,a,l,m]);return {collection:u,selectionManager:c,isDisabled:r,target:f,setTarget(h){if(this.isDropTarget(h))return;let v=b.current;v&&typeof e.onDropExit=="function"&&e.onDropExit({type:"dropexit",x:0,y:0,target:v}),h&&typeof d=="function"&&d({type:"dropenter",x:0,y:0,target:h}),b.current=h??null,y(h??null);},isDropTarget(h){let v=b.current;return !v||!h?false:dC(h,v)?true:h?.type==="item"&&v?.type==="item"&&h.key!==v.key&&h.dropPosition!==v.dropPosition&&h.dropPosition!=="on"&&v.dropPosition!=="on"?dC(g(h),v)||dC(h,g(v)):false},getDropOperation(h){let{target:v,isInternal:C,draggingKeys:T}=h;if(C&&v.type==="item"&&T.size>0){if(T.has(v.key)&&v.dropPosition==="on")return "cancel";let P=v.key;for(;P!=null;){let S=u.getItem(P)?.parentKey;if(S!=null&&T.has(S))return "cancel";P=S??null;}}return x(h)}}}function dC(e,t){if(!e)return !t;switch(e.type){case "root":return t?.type==="root";case "item":return t?.type==="item"&&t?.key===e.key&&t?.dropPosition===e.dropPosition}}function n8(e,t,r){let o=e.getItem(t.key);for(let n of r)if(e.getItem(n)?.parentKey!==o?.parentKey)return false;return true}var Pi=class{collection;ref;layout;orientation;direction;constructor(t,r,o){this.collection=t,this.ref=r,this.layout=o?.layout||"stack",this.orientation=o?.orientation||"vertical",this.direction=o?.direction||"ltr";}getPrimaryStart(t){return this.orientation==="horizontal"?t.left:t.top}getPrimaryEnd(t){return this.orientation==="horizontal"?t.right:t.bottom}getSecondaryStart(t){return this.orientation==="horizontal"?t.top:t.left}getSecondaryEnd(t){return this.orientation==="horizontal"?t.bottom:t.right}getFlowStart(t){return this.layout==="stack"?this.getPrimaryStart(t):this.getSecondaryStart(t)}getFlowEnd(t){return this.layout==="stack"?this.getPrimaryEnd(t):this.getSecondaryEnd(t)}getFlowSize(t){return this.getFlowEnd(t)-this.getFlowStart(t)}getDropTargetFromPoint(t,r,o){if(this.collection[Symbol.iterator]().next().done||!this.ref.current)return {type:"root"};let n=this.ref.current.getBoundingClientRect(),i=this.orientation==="horizontal"?t:r,a=this.orientation==="horizontal"?r:t;i+=this.getPrimaryStart(n),a+=this.getSecondaryStart(n);let l=this.layout==="stack"?i:a,s=this.orientation==="horizontal"&&this.direction==="rtl",u=this.layout==="grid"&&this.orientation==="vertical"&&this.direction==="rtl",c=this.layout==="stack"?s:u,d=this.ref.current?.dataset.collection,p=this.ref.current.querySelectorAll(d?`[data-collection="${CSS.escape(d)}"]`:"[data-key]"),m=new Map,f=Y(this.ref.current);for(let v of p)v instanceof f.HTMLElement&&v.dataset.key!=null&&m.set(v.dataset.key,v);let y=[...this.collection].filter(v=>v.type==="item");if(y.length<1)return {type:"root"};let b=0,g=y.length;for(;b<g;){let v=Math.floor((b+g)/2),C=y[v],T=m.get(String(C.key));if(!T)break;let P=T.getBoundingClientRect(),k=S=>{S?b=v+1:g=v;};if(i<this.getPrimaryStart(P))k(s);else if(i>this.getPrimaryEnd(P))k(!s);else if(a<this.getSecondaryStart(P))k(u);else if(a>this.getSecondaryEnd(P))k(!u);else {let S={type:"item",key:C.key,dropPosition:"on"};if(o(S))l<=this.getFlowStart(P)+5&&o({...S,dropPosition:"before"})?S.dropPosition=c?"after":"before":l>=this.getFlowEnd(P)-5&&o({...S,dropPosition:"after"})&&(S.dropPosition=c?"before":"after");else {let w=this.getFlowStart(P)+this.getFlowSize(P)/2;l<=w&&o({...S,dropPosition:"before"})?S.dropPosition=c?"after":"before":l>=w&&o({...S,dropPosition:"after"})&&(S.dropPosition=c?"before":"after");}return S}}let x=y[Math.min(b,y.length-1)];return n=m.get(String(x.key))?.getBoundingClientRect(),n&&(i<this.getPrimaryStart(n)||Math.abs(l-this.getFlowStart(n))<Math.abs(l-this.getFlowEnd(n)))?{type:"item",key:x.key,dropPosition:c?"after":"before"}:{type:"item",key:x.key,dropPosition:c?"before":"after"}}};function Ba(e){return {dragAndDropHooks:useMemo(()=>{let{onDrop:r,onInsert:o,onItemDrop:n,onReorder:i,onMove:a,onRootDrop:l,getItems:s,renderDragPreview:u,renderDropIndicator:c,dropTargetDelegate:d}=e,p=!!s,m=!!(r||o||n||i||a||l),f={};return p&&(f.useDraggableCollectionState=function(b){return xs({...b,...e})},f.useDraggableCollection=vs,f.useDraggableItem=Ci,f.DragPreview=Ti,f.renderDragPreview=u,f.isVirtualDragging=Kx),m&&(f.useDroppableCollectionState=function(b){return Ts({...b,...e})},f.useDroppableItem=Jc,f.useDroppableCollection=function(b,g,x){return gs({...b,...e},g,x)},f.useDropIndicator=hs,f.renderDropIndicator=c,f.dropTargetDelegate=d,f.ListDropTargetDelegate=Pi),f},[e])}}var pC=new WeakMap;function a8(e=false,t=document){if(!pC.has(t)||e){let r=t.createElement("div"),o=r.style;o.width="50px",o.height="50px",o.overflow="scroll",o.direction="rtl";let n=t.createElement("div"),i=n.style;i.width="100px",i.height="100px",r.appendChild(n),t.body.appendChild(r);let a;r.scrollLeft>0?a="positive-descending":(r.scrollLeft=1,r.scrollLeft===0?a="negative":a="positive-ascending"),t.body.removeChild(r),pC.set(t,a);}return pC.get(t)}function iR(e,t){let{scrollLeft:r}=e;if(t==="rtl"){let{scrollWidth:o,clientWidth:n}=e;switch(a8(false,U(e))){case "negative":r=-r;break;case "positive-descending":r=o-n-r;break}}return r}function u8(e,t){t=pe(t);let{scrollViewProps:r,contentProps:o}=sy(e,t);return jsx("div",{role:"presentation",...r,ref:t,children:jsx("div",{...o,children:e.children})})}qn.forwardRef(u8);function sy(e,t){let{contentSize:r,onVisibleRectChange:o,onSizeChange:n,innerStyle:i,onScrollStart:a,onScrollEnd:l,scrollDirection:s="both",onScroll:u,allowsWindowScrolling:c,...d}=e,p=useRef({scrollPosition:new qt,size:new _e,viewportOffset:new qt,viewportSize:new _e,scrollEndTime:0,scrollTimeout:null,isScrolling:false,lastVisibleRect:new ke}).current,{direction:m}=Q(),f=useCallback(()=>{let w=c?new ke(p.viewportOffset.x+p.scrollPosition.x,p.viewportOffset.y+p.scrollPosition.y,Math.max(0,Math.min(p.size.width-p.viewportOffset.x,p.viewportSize.width)),Math.max(0,Math.min(p.size.height-p.viewportOffset.y,p.viewportSize.height))):new ke(p.scrollPosition.x,p.scrollPosition.y,p.size.width,p.size.height);(w.area>0||p.lastVisibleRect.area>0)&&(o(w),p.lastVisibleRect=w);},[p,c,o]),[y,b]=useState(false),g=useCallback(w=>{let E=$(w);if(!Z(E,t.current))return;if(u&&E===t.current&&u(w),E!==t.current){let A=t.current.getBoundingClientRect(),D=A.x<0?-A.x:0,O=A.y<0?-A.y:0;if(D===p.viewportOffset.x&&O===p.viewportOffset.y)return;p.viewportOffset=new qt(D,O);}else {let A=E.scrollTop,D=iR(E,m);p.scrollPosition=new qt(Math.max(0,Math.min(D,r.width-p.size.width)),Math.max(0,Math.min(A,r.height-p.size.height)));}let z=Y(w.currentTarget);flushSync(()=>{f(),p.isScrolling||(p.isScrolling=true,b(true),z.dispatchEvent(new z.Event("tk.disconnect-observer")),a&&a());let A=Date.now();p.scrollEndTime<=A+50&&(p.scrollEndTime=A+300,p.scrollTimeout!=null&&clearTimeout(p.scrollTimeout),p.scrollTimeout=setTimeout(()=>{p.isScrolling=false,b(false),p.scrollTimeout=null,z.dispatchEvent(new z.Event("tk.connect-observer")),l&&l();},300));});},[u,t,m,p,r,f,a,l]);ct(t,"scroll",g),useEffect(()=>()=>{if(p.scrollTimeout!=null&&clearTimeout(p.scrollTimeout),p.isScrolling){let w=Y(t.current);w.dispatchEvent(new w.Event("tk.connect-observer"));}},[]);let x=useRef(false),h=useCallback(w=>{let E=t.current;if(!E||x.current)return;x.current=true;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,A=Y(E),D=Object.getOwnPropertyNames(A.HTMLElement.prototype).includes("clientWidth"),O=Object.getOwnPropertyNames(A.HTMLElement.prototype).includes("clientHeight"),R=E.clientWidth,N=E.clientHeight,F=z&&!D?1/0:R,I=z&&!O?1/0:N,V=window.innerWidth,H=window.innerHeight,K=p.viewportSize.width!==V||p.viewportSize.height!==H;K&&(p.viewportSize=new _e(V,H)),(p.size.width!==F||p.size.height!==I||K)&&(p.size=new _e(F,I),w(()=>{f(),n?.(p.size);}),(!z&&R!==E.clientWidth||N!==E.clientHeight)&&(p.size=new _e(E.clientWidth,E.clientHeight),w(()=>{f(),n?.(p.size);}))),x.current=false;},[t,p,f,n]),v=De(h);re(()=>{p.viewportSize=new _e(window.innerWidth,window.innerHeight);let w=()=>{v(flushSync);};return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[p]);let C=useRef(null),[T,P]=useState({});re(()=>{if(!x.current&&(C.current==null||!r.equals(C.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){P({}),C.current=r;return}else queueMicrotask(()=>v(flushSync));C.current=r;}),re(()=>{v(w=>w());},[T]);let k=useCallback(()=>{h(flushSync);},[h]);Gr({ref:t,box:"border-box",onResize:k});let S={padding:0,...d.style};return s==="horizontal"?(S.overflowX="auto",S.overflowY="hidden"):s==="vertical"||r.width===p.size.width?(S.overflowY="auto",S.overflowX="hidden"):S.overflow="auto",i={width:Number.isFinite(r.width)?r.width:void 0,height:Number.isFinite(r.height)?r.height:void 0,pointerEvents:y?"none":"auto",position:"relative",...i},{isScrolling:y,scrollViewProps:{...d,style:S},contentProps:{role:"presentation",style:i}}}function sR(e){let{layoutInfo:t,virtualizer:r,ref:o}=e,n=t?.key,i=useCallback(()=>{if(n!=null&&o.current){let a=p8(o.current);r.updateItemSize(n,a);}},[r,n,o]);return re(()=>{t?.estimatedSize&&i();}),{updateSize:i}}function p8(e){let t=e.style.height;e.style.height="";let r=new _e(e.scrollWidth,e.scrollHeight);return e.style.height=t,r}function uy(e){let{style:t,className:r,layoutInfo:o,virtualizer:n,parent:i,children:a}=e,{direction:l}=Q(),s=useRef(null);return sR({layoutInfo:o,virtualizer:n,ref:s}),jsx("div",{role:"presentation",ref:s,className:r,style:{...cR(o,l,i),...t},children:a})}var uR=new WeakMap;function cR(e,t,r){let o=t==="rtl"?"right":"left",n=uR.get(e);if(n&&n[o]!=null){if(!r)return n;let l=e.rect.y-r.rect.y,s=e.rect.x-r.rect.x;if(n.top===l&&n[o]===s)return n}let i={top:e.rect.y-(r&&!(r.allowOverflow&&e.isSticky)?r.rect.y:0),[o]:e.rect.x-(r&&!(r.allowOverflow&&e.isSticky)?r.rect.x:0),width:e.rect.width,height:e.rect.height};Object.entries(i).forEach(([l,s])=>{Number.isFinite(s)||(i[l]=void 0);});let a={position:e.isSticky?"sticky":"absolute",display:e.isSticky?"inline-block":void 0,overflow:e.allowOverflow?"visible":"hidden",opacity:e.opacity,zIndex:e.zIndex,transform:e.transform??void 0,contain:"size layout style",...i};return uR.set(e,a),a}var fR=createContext(null),yR=createContext(null);function cy(e){let{children:t,layout:r,layoutOptions:o}=e,n=useMemo(()=>typeof r=="function"?new r:r,[r]),i=useMemo(()=>({isVirtualized:true,layoutDelegate:n,dropTargetDelegate:n.getDropTargetFromPoint?n:void 0,CollectionRoot:b8,CollectionBranch:g8}),[n]);return jsx(Re.Provider,{value:i,children:jsx(yR.Provider,{value:{layout:n,layoutOptions:o},children:t})})}function b8({collection:e,persistedKeys:t,scrollRef:r,renderDropIndicator:o}){let{layout:n,layoutOptions:i}=useContext(yR),a=n.useLayoutOptions?.(),l=_T({allowsWindowScrolling:true,layout:n,collection:e,renderView:(u,c)=>c?.render?.(c),onVisibleRectChange(u){let c=r?.current;c&&(c.scrollLeft=u.x,c.scrollTop=u.y);},persistedKeys:t,layoutOptions:useMemo(()=>i&&a?{...i,...a}:i||a,[i,a])}),{contentProps:s}=sy({onVisibleRectChange:l.setVisibleRect,onSizeChange:l.setSize,contentSize:l.contentSize,onScrollStart:l.startScrolling,onScrollEnd:l.endScrolling,allowsWindowScrolling:true},r);return jsx("div",{...s,children:jsx(fR.Provider,{value:l,children:bR(null,l.visibleViews,o)})})}function g8({parent:e,renderDropIndicator:t}){let o=useContext(fR).virtualizer.getVisibleView(e.key);return bR(o,Array.from(o.children),t)}function bR(e,t,r){return t.map(o=>h8(e,o,r))}function h8(e,t,r){let o=jsx(uy,{layoutInfo:t.layoutInfo,virtualizer:t.virtualizer,parent:e?.layoutInfo,children:t.rendered},t.key),{collection:n,layout:i}=t.virtualizer,a=t.content;return a?.type==="item"&&r&&i.getDropTargetLayoutInfo&&(o=jsxs(qn.Fragment,{children:[dR(e,t,{type:"item",key:t.content.key,dropPosition:"before"},r),o,Ih(n,a,l=>dR(e,t,l,r))]},t.key)),o}function dR(e,t,r,o){let n=o(r);if(n){let i=t.virtualizer.layout.getDropTargetLayoutInfo(r);n=jsx(uy,{layoutInfo:i,virtualizer:t.virtualizer,parent:e?.layoutInfo,children:n});}return n}var Ps=qn.forwardRef(({children:e,...t},r)=>{r=pe(r);let{pressProps:o}=Oe({...t,ref:r}),{focusableProps:n}=it(t,r),i=qn.Children.only(e);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let l=r.current;if(!l||!(l instanceof Y(l).Element)){console.error("<Pressable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!Jn(l)){console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(l.localName!=="button"&&l.localName!=="input"&&l.localName!=="select"&&l.localName!=="textarea"&&l.localName!=="a"&&l.localName!=="area"&&l.localName!=="summary"){let s=l.getAttribute("role");s?s!=="application"&&s!=="button"&&s!=="checkbox"&&s!=="combobox"&&s!=="gridcell"&&s!=="link"&&s!=="menuitem"&&s!=="menuitemcheckbox"&&s!=="menuitemradio"&&s!=="option"&&s!=="radio"&&s!=="searchbox"&&s!=="separator"&&s!=="slider"&&s!=="spinbutton"&&s!=="switch"&&s!=="tab"&&s!=="textbox"&&s!=="treeitem"&&console.warn(`<Pressable> child must have an interactive ARIA role. Got "${s}".`):console.warn("<Pressable> child must have an interactive ARIA role.");}},[r,t.isDisabled]);let a=parseInt(qn.version,10)<19?i.ref:i.props.ref;return qn.cloneElement(i,{...M(o,n,i.props),ref:se(a,r)})});function py(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:o=u=>u.id??u.key,filter:n,initialFilterText:i=""}=e,[a,l]=useState({items:t,selectedKeys:r==="all"?"all":new Set(r||[]),filterText:i}),s=useMemo(()=>n?a.items.filter(u=>n(u,a.filterText)):a.items,[a.items,a.filterText,n]);return {...a,items:s,...P8({getKey:o},l),getItem(u){return a.items.find(c=>o(c)===u)}}}function P8(e,t){let{cursor:r,getKey:o}=e;return {setSelectedKeys(n){t(i=>({...i,selectedKeys:n}));},addKeysToSelection(n){t(i=>i.selectedKeys==="all"?i:n==="all"?{...i,selectedKeys:"all"}:{...i,selectedKeys:new Set([...i.selectedKeys,...n])});},removeKeysFromSelection(n){t(i=>{if(n==="all")return {...i,selectedKeys:new Set};let a=i.selectedKeys==="all"?new Set(i.items.map(o)):new Set(i.selectedKeys);for(let l of n)a.delete(l);return {...i,selectedKeys:a}});},setFilterText(n){t(i=>({...i,filterText:n}));},insert(n,...i){t(a=>Qc(a,n,...i));},insertBefore(n,...i){t(a=>{let l=a.items.findIndex(s=>o?.(s)===n);if(l===-1)if(a.items.length===0)l=0;else return a;return Qc(a,l,...i)});},insertAfter(n,...i){t(a=>{let l=a.items.findIndex(s=>o?.(s)===n);if(l===-1)if(a.items.length===0)l=0;else return a;return Qc(a,l+1,...i)});},prepend(...n){t(i=>Qc(i,0,...n));},append(...n){t(i=>Qc(i,i.items.length,...n));},remove(...n){t(i=>{let a=new Set(n),l=i.items.filter(u=>!a.has(o(u))),s="all";if(i.selectedKeys!=="all"){s=new Set(i.selectedKeys);for(let u of n)s.delete(u);}return r==null&&l.length===0&&(s=new Set),{...i,items:l,selectedKeys:s}});},removeSelectedItems(){t(n=>{if(n.selectedKeys==="all")return {...n,items:[],selectedKeys:new Set};let i=n.selectedKeys,a=n.items.filter(l=>!i.has(o(l)));return {...n,items:a,selectedKeys:new Set}});},move(n,i){t(a=>{let l=a.items.findIndex(c=>o(c)===n);if(l===-1)return a;let s=a.items.slice(),[u]=s.splice(l,1);return s.splice(i,0,u),{...a,items:s}});},moveBefore(n,i){t(a=>{let l=a.items.findIndex(c=>o(c)===n);if(l===-1)return a;let u=(Array.isArray(i)?i:[...i]).map(c=>a.items.findIndex(d=>o(d)===c)).sort((c,d)=>c-d);return gR(a,u,l)});},moveAfter(n,i){t(a=>{let l=a.items.findIndex(c=>o(c)===n);if(l===-1)return a;let u=(Array.isArray(i)?i:[...i]).map(c=>a.items.findIndex(d=>o(d)===c)).sort((c,d)=>c-d);return gR(a,u,l+1)});},update(n,i){t(a=>{let l=a.items.findIndex(u=>o(u)===n);if(l===-1)return a;let s;return typeof i=="function"?s=i(a.items[l]):s=i,{...a,items:[...a.items.slice(0,l),s,...a.items.slice(l+1)]}});}}}function Qc(e,t,...r){return {...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function gR(e,t,r){r-=t.filter(i=>i<r).length;let o=t.map(i=>({from:i,to:r++}));for(let i=0;i<o.length;i++){let a=o[i].from;for(let l=i;l<o.length;l++)o[l].from>a&&o[l].from--;}for(let i=0;i<o.length;i++){let a=o[i];for(let l=o.length-1;l>i;l--){let s=o[l];s.from<a.to?a.to++:s.from++;}}let n=e.items.slice();for(let i of o){let[a]=n.splice(i.from,1);n.splice(i.to,0,a);}return {...e,items:n}}function yC(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:o=y=>y.id??y.key,getChildren:n=y=>y.children}=e,[i,a]=useState(()=>d(t,new Map)),{items:l,nodeMap:s}=i,[u,c]=useState(new Set(r||[]));function d(y=[],b,g){return y==null&&(y=[]),{items:y.map(x=>{let h={key:o(x),parentKey:g??null,value:x,children:null};return h.children=d(n(x),b,h.key).items,b.set(h.key,h),h}),nodeMap:b}}function p(y,b,g,x){let h=b==null?null:x.get(b);if(h==null)return {items:y,nodeMap:x};let v=new Map(x),C=g(h);for(C==null?f(h,v):m(C,v);h&&h.parentKey;){let T=v.get(h.parentKey),P={key:T.key,parentKey:T.parentKey,value:T.value,children:null},k=T.children;C==null&&k&&(k=k.filter(S=>S!==h)),P.children=k?.map(S=>S===h?C:S)??null,v.set(P.key,P),C=P,h=T;}return C==null&&(y=y.filter(T=>T!==h)),{items:y.map(T=>T===h?C:T),nodeMap:v}}function m(y,b){if(b.set(y.key,y),y.children)for(let g of y.children)m(g,b);}function f(y,b){if(b.delete(y.key),y.children)for(let g of y.children)f(g,b);}return {items:l,selectedKeys:u,setSelectedKeys:c,getItem(y){return s.get(y)},insert(y,b,...g){a(({items:x,nodeMap:h})=>{let{items:v,nodeMap:C}=d(g,new Map(h),y);return y==null?{items:[...x.slice(0,b),...v,...x.slice(b)],nodeMap:C}:p(x,y,T=>({key:T.key,parentKey:T.parentKey,value:T.value,children:[...T.children.slice(0,b),...v,...T.children.slice(b)]}),C)});},insertBefore(y,...b){let g=s.get(y);if(!g)return;let x=s.get(g.parentKey),v=(x?x.children:l).indexOf(g);this.insert(x?.key??null,v,...b);},insertAfter(y,...b){let g=s.get(y);if(!g)return;let x=s.get(g.parentKey),v=(x?x.children:l).indexOf(g);this.insert(x?.key??null,v+1,...b);},prepend(y,...b){this.insert(y,0,...b);},append(y,...b){if(y==null)this.insert(null,l.length,...b);else {let g=s.get(y);if(!g)return;this.insert(y,g.children.length,...b);}},remove(...y){if(y.length===0)return;let b=l,g=s,x;for(let v of y)x=p(b,v,()=>null,g),g=x.nodeMap,b=x.items;a(x);let h=new Set(u);for(let v of u)x.nodeMap.has(v)||h.delete(v);c(h);},removeSelectedItems(){this.remove(...u);},move(y,b,g){a(({items:x,nodeMap:h})=>{let v=h.get(y);if(!v)return {items:x,nodeMap:h};let{items:C,nodeMap:T}=p(x,y,()=>null,h),P={...v,parentKey:b};return b==null?(m(P,T),{items:[...C.slice(0,g),P,...C.slice(g)],nodeMap:T}):p(C,b,k=>({key:k.key,parentKey:k.parentKey,value:k.value,children:[...k.children.slice(0,g),P,...k.children.slice(g)]}),T)});},moveBefore(y,b){a(g=>{let{items:x,nodeMap:h}=g,v=h.get(y);if(!v)return g;let C=v.parentKey??null,T=null;C!=null&&(T=h.get(C)??null);let P=T?.children?T.children.indexOf(v):x.indexOf(v);return vR(g,b,T,P,p,m)});},moveAfter(y,b){a(g=>{let{items:x,nodeMap:h}=g,v=h.get(y);if(!v)return g;let C=v.parentKey??null,T=null;C!=null&&(T=h.get(C)??null);let P=T?.children?T.children.indexOf(v):x.indexOf(v);return P++,vR(g,b,T,P,p,m)});},update(y,b){a(({items:g,nodeMap:x})=>p(g,y,h=>{let v={key:h.key,parentKey:h.parentKey,value:b,children:null},C=d(n(b),x,v.key);return v.children=C.items,v},x));}}}function vR(e,t,r,o,n,i){let{items:a,nodeMap:l}=e,s=r,u=new Set(t);for(;s?.parentKey!=null;){if(u.has(s.key))throw new Error("Cannot move an item to be a child of itself.");s=l.get(s.parentKey)??null;}let c=o,d=Array.isArray(t)?t:[...t],p=new Map,m=[],f=a,y=l,b=0;function g(C,{inorder:T,postorder:P}){if(T?.(C),C!=null)for(let k of C.children??[])g(k,{inorder:T,postorder:P}),P?.(k);}function x(C){d.includes(C.key)&&p.set(C.key,b++);}function h(C){if(d.includes(C.key)){m.push({...y.get(C.key),parentKey:r?.key??null});let{items:T,nodeMap:P}=n(f,C.key,()=>null,y);f=T,y=P;}(C.parentKey===r||C.parentKey===r?.key)&&d.includes(C.key)&&(r?.children?r.children.indexOf(C):a.indexOf(C))<c&&o--;}g({children:a},{inorder:x,postorder:h});let v=m.sort((C,T)=>p.get(C.key)>p.get(T.key)?1:-1);return !r||r.key==null?(v.forEach(C=>{i(C,y);}),{items:[...f.slice(0,o),...v,...f.slice(o)],nodeMap:y}):n(f,r.key,C=>({key:C.key,parentKey:C.parentKey,value:C.value,children:[...C.children.slice(0,o),...v,...C.children.slice(o)]}),y)}var Ss=class extends qc{useLayoutOptions(){let{direction:t}=Q();return useMemo(()=>({direction:t}),[t])}};function TR(e){return null}TR.getCollectionNode=function*(t,r){let{childItems:o,title:n,children:i}=t,a=t.title||t.children,l=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!l&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield {type:"item",props:t,rendered:a,textValue:l,"aria-label":t["aria-label"],hasChildNodes:D8(t),*childNodes(){if(o)for(let s of o)yield {type:"item",value:s};else if(n){let s=[];qn.Children.forEach(i,u=>{s.push({type:"item",element:u});}),yield*s;}}};};function D8(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&qn.Children.count(e.children)>0)}var mo=TR;function CR(e){return null}CR.getCollectionNode=function*(t){let{children:r,title:o,items:n}=t;yield {type:"section",props:t,hasChildNodes:true,rendered:o,"aria-label":t["aria-label"],*childNodes(){if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let i of n)yield {type:"item",value:i,renderer:r};}else {let i=[];qn.Children.forEach(r,a=>{i.push({type:"item",element:a});}),yield*i;}}};};var bC=CR;function PGe(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function PR(e){return typeof e=="object"&&typeof e.left=="number"&&typeof e.top=="number"&&(typeof e.width=="number"||e.width===void 0)&&(typeof e.height=="number"||e.height===void 0)}function he(e,t){if(!e)throw new Error(t||"Invariant failed")}function _(...e){let t=e.filter(Boolean),r=[];for(let o of t)if(Array.isArray(o))r.push(_(...o));else if(typeof o=="object"){let n=Object.keys(o);for(let i of n)o[i]&&r.push(i);}else typeof o=="string"&&r.push(o);return r.join(" ")}function wGe(e,t){if(!e)return null;if(typeof e=="string")return t.querySelector(e);if(e instanceof HTMLElement)return e;if("current"in e)return e.current}function my({text:e,fontSize:t=16,fontFamily:r="Arial",fontWeight:o="normal",fontStyle:n="normal",font:i,element:a}){let s=U(a).createElement("canvas").getContext("2d");if(!s)return {width:0,height:0};s.font=i||`${n} ${o} ${t}px ${r}`;let u=s.measureText(e);return {width:u.width,height:u.actualBoundingBoxAscent+u.actualBoundingBoxDescent}}function RGe({text:e,maxWidth:t,initialFontSize:r=50,fontFamily:o="Arial",fontWeight:n="normal",fontStyle:i="normal",element:a}){let{width:l}=my({text:e,fontSize:r,fontFamily:o,fontWeight:n,fontStyle:i,element:a}),s=r,u=l;for(;u>t;)s-=.5,u=my({text:e,fontSize:s,fontFamily:o,fontWeight:n,fontStyle:i,element:a}).width;return Math.max(s,1)}var SR=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'];function IGe(e){return SR.some(t=>e.matches(t))}function DR(e){return e.querySelectorAll(SR.join(", "))}function E8(e){return e.nodeType===Node.DOCUMENT_NODE||kr(e)}function ed(e=document.documentElement){let t=e.getRootNode();if(!E8(t))return null;let r=t.activeElement;for(;r?.shadowRoot?.activeElement;)r=r.shadowRoot.activeElement;return r}var z8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kR(e){return e instanceof HTMLInputElement&&!z8.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function fy(e){let t=e.getBoundingClientRect(),r=Y(e),o=e.getRootNode();if(o instanceof r.ShadowRoot){let i=o.host,a=0,l=0,s=e;for(;s&&s!==i;){a+=s.offsetLeft,l+=s.offsetTop;let u=s.offsetParent;if(!u||!i.contains(u))break;s=u;}return {x:a,y:l,width:t.width,height:t.height}}return {x:t.left+r.scrollX,y:t.top+r.scrollY,width:t.width,height:t.height}}function _Ge(e,t){let r=fy(e);return {x:r.x+(t?.x??0),y:r.y+(t?.y??0)}}var yy=(e,t)=>(e+t)/2;function by(e,t=true){if(!e.length)return "";let r=e.length;if(r<4)return "";let o=e[0],n=e[1],i=e[2],a=`M${o[0].toFixed(2)},${o[1].toFixed(2)} Q${n[0].toFixed(2)},${n[1].toFixed(2)} ${yy(n[0],i[0]).toFixed(2)},${yy(n[1],i[1]).toFixed(2)} T`;for(let l=2,s=r-1;l<s;l++)o=e[l],n=e[l+1],a+=`${yy(o[0],n[0]).toFixed(2)},${yy(o[1],n[1]).toFixed(2)} `;return t&&(a+="Z"),a}function w8(e){return e.split("/").pop()?.split(".").shift()}function ER(e){let t={};for(let r of Object.keys(e)){let o=w8(r)??"";t[o]=e[r];}return t}function ve(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>!!t))}function gC(e,t){return typeof e=="boolean"?e?t:void 0:{...t,...e}}function zR(e){if(e===void 0)return null;try{return Le(e)}catch{return null}}function hC(e){return e.toString(16).padStart(2,"0")}function GGe(e,t){he(t>=0&&t<=100,"Percent must be between 0 and 100");let r=Le(e),o=r.getChannelValue("red"),n=r.getChannelValue("green"),i=r.getChannelValue("blue"),a=Math.round(o+(255-o)*t/100),l=Math.round(n+(255-n)*t/100),s=Math.round(i+(255-i)*t/100);return `#${hC(a)}${hC(l)}${hC(s)}`}function Si(e,t){if(e===t)return true;let r=zR(e),o=zR(t);return r===null||o===null?false:r.toString("rgba")===o.toString("rgba")}function vC(e,t){if(e=e.trim(),e.includes(" "))return false;try{return new URL(e),!0}catch{return t?vC(`https://${e}`):false}}function gy(e,t=false){return Ct()?e.replace("Ctrl+",t?"\u2318":"Cmd+").replace("Alt+",t?"\u2325":"Option+").replace("Shift+",t?"\u21E7":"Shift+").replace("Enter+",t?"\u21A9":"Enter+").replace("Space+",t?"\u2423":"Space+").replace("Enter",t?"\u21A9":"Enter"):e}var Xt=(e,t,r)=>Math.min(Math.max(e,t),r);var wR=e=>e.charAt(0).toUpperCase()+e.slice(1),RR=e=>new DOMParser().parseFromString(R8__default.sanitize(e),"text/html").body.textContent||"";function QGe(e){try{let t=e.ownerDocument;return t?.defaultView?t.defaultView!==window.top:!1}catch{return true}}function IR(e){return e?kr(e.getRootNode()):false}var oUe=["onBeforeInput","children"],_R=new Set;function LR(e){let{onBeforeInput:t,children:r,...o}=e;if(typeof t=="function"){let n=new Error("safeSpreadProps onBeforeInput drop").stack??"unknown";_R.has(n)||(_R.add(n),console.error("[safeSpreadProps] dropping onBeforeInput handler from React Aria props; verify this is intentional after the next subtree sync."));}return o}var MR=new Set;function Ds(e,t){process.env.NODE_ENV!=="production"&&(MR.has(e)||(MR.add(e),console.warn(t)));}function I8(e,t,r){let o=r.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean);if(!o.length)return true;let n=e.toLowerCase(),i=t.toLowerCase();return o.some(a=>a.startsWith(".")?n.endsWith(a):a.endsWith("/*")?i.startsWith(a.slice(0,-1)):i===a)}async function ks({items:e,accept:t}){return (await Promise.allSettled(e.filter(o=>o.kind==="file"&&(!t||I8(o.name,o.type,t))).map(async o=>o.getFile()))).filter(o=>o.status==="fulfilled").map(o=>o.value)}function hy(e){return !!e&&"label"in e&&!!e.label}function vy(e){return !!e&&"children"in e&&!!e.children&&"title"in e}function L8(e){return vy(e)?jsx(bC,{items:e.children,title:e.title,"aria-label":e.title,children:t=>jsx(mo,{textValue:t.label,children:t.label},t.id)},e.id):jsx(mo,{textValue:e.label,children:e.label},e.id)}function Di(){return useCallback(e=>L8(e),[])}var M8=16,xy=50,OR=30;function Es({ref:e,isDisabled:t}){let r=useRef(null),o=useRef({isScrollableX:true,isScrollableY:true}),n=useRef({x:0,y:0}),i=useRef(),a=useRef(0);useEffect(()=>{if(t||!e.current)return;let l=e.current,s=Y(l),u=Wt(l)?l:Qe(l),c=s.getComputedStyle(u);r.current=u,o.current={isScrollableX:/(auto|scroll)/.test(c.overflowX),isScrollableY:/(auto|scroll)/.test(c.overflowY)};},[t,e]),useEffect(()=>{if(t||!e.current||!r.current)return;let l=r.current,s=()=>{if(!l)return;let{isScrollableX:m,isScrollableY:f}=o.current,{x:y,y:b}=n.current;m&&y!==0&&(l.scrollLeft+=y),f&&b!==0&&(l.scrollTop+=b),i.current=requestAnimationFrame(s);},u=(m,f)=>m<xy?-OR*(1-m/xy):m>f-xy?OR*(1-(f-m)/xy):0,c=(m,f,y,b)=>{let g=performance.now();if(g-a.current<M8)return;let x=u(m,y),h=u(f,b);(x!==n.current.x||h!==n.current.y)&&(n.current={x,y:h},a.current=g,(x!==0||h!==0)&&!i.current&&(i.current=requestAnimationFrame(s)));},d=m=>{if(m.preventDefault(),!l)return;let f=m,y=l.getBoundingClientRect(),b=f.clientX-y.left,g=f.clientY-y.top;c(b,g,y.width,y.height);},p=()=>{n.current={x:0,y:0},i.current&&(cancelAnimationFrame(i.current),i.current=void 0);};return l.addEventListener("dragover",d),l.addEventListener("dragend",p),l.addEventListener("drop",p),()=>{l.removeEventListener("dragover",d),l.removeEventListener("dragend",p),l.removeEventListener("drop",p),i.current&&cancelAnimationFrame(i.current);}},[t,e]);}function Ty(e,t,r){let{direction:o}=Q(),n=xs({...e,collection:t.collection,selectionManager:t.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(l=>[...l].map(s=>{let u=t.collection.getItem(s);return he(u,"Expected item to be defined."),{"text/plain":u.textValue}}))});vs(e,n,r);let i=Ts({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:a}=gs({...e,keyboardDelegate:new kt({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,orientation:e.orientation,layout:e.layout,direction:o}),dropTargetDelegate:new Pi(t.collection,r)},i,r);return {collectionProps:a,dragState:n,dropState:i}}function Cy({type:e="listbox",handle:t},r,o){let n=useCallback(a=>e==="listbox"?o.current?.querySelector(`[data-key="${a}"][role="option"]`):o.current?.querySelector(`[data-key="${a}"][role="row"]`),[e,o]),i=useCallback((a,l)=>{let s=n(a);s&&s?.scrollIntoView({block:"nearest",inline:"nearest",...l});},[n]);useImperativeHandle(t,()=>({scrollIntoView:i,setFocusedKey:a=>{r.selectionManager.setFocused(true),r.selectionManager.setFocusedKey(a),i(a),n(a)?.focus();}}),[i,r.selectionManager,n]),useGranularEffect(()=>{let a=r.selectionManager.focusedKey;IR(o.current)&&a&&i(a);},[r.selectionManager.focusedKey],[i,o]);}function N8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function F8(e){var t=N8(e,"string");return typeof t=="symbol"?t:String(t)}function K8(e,t,r){return t=F8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true}):e[t]=r,e}function FR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o);}return r}function KR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FR(Object(r),true).forEach(function(o){K8(e,o,r[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FR(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o));});}return e}function VR(e,t){var r={};for(var o in e)r[o]=t(e[o],o);return r}var V8=(e,t,r)=>{for(var o of Object.keys(e)){var n;if(e[o]!==((n=t[o])!==null&&n!==void 0?n:r[o]))return false}return true},j=e=>{var t=r=>{var o=e.defaultClassName,n=KR(KR({},e.defaultVariants),r);for(var i in n){var a,l=(a=n[i])!==null&&a!==void 0?a:e.defaultVariants[i];if(l!=null){var s=l;typeof s=="boolean"&&(s=s===true?"true":"false");var u=e.variantClassNames[i][s];u&&(o+=" "+u);}}for(var[c,d]of e.compoundVariants)V8(c,n,e.defaultVariants)&&(o+=" "+d);return o};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return VR(e.variantClassNames,r=>VR(r,o=>o.split(" ")[0]))}},t};var Py=j({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),BR="_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",HR=j({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),$R=j({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup82 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),jR="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",GR="_6n12k90";function $8(e){return sprinkles.properties.has(e)}var J=qn.forwardRef(({elementType:e="div",children:t,...r},o)=>{let n=e,{sprinkleProps:i,domProps:a}=useMemo(()=>{let l={},s={};for(let u in r)$8(u)?l[u]=r[u]:s[u]=r[u];return {sprinkleProps:l,domProps:s}},[r]);return jsx(n,{...a,className:_(sprinkles(i),"BaselineUI-Box",a.className),ref:o,children:t})});J.displayName="Box";var WR=j({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var ze=qn.forwardRef(({className:e,style:t,variant:r="primary",orientation:o="horizontal",UNSAFE_omitRole:n,elementType:i="div","data-block-id":a,"data-block-class":l,...s},u)=>{let{separatorProps:c}=Fv({...s,orientation:o,elementType:i});return jsx(i,{...c,className:_(WR({isVertical:o==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":o,"data-block-id":a,"data-block-class":l,style:t,role:n?void 0:c.role,ref:u})});ze.displayName="Separator";function Ha(e,t,r){return typeof e=="function"?e(t,r):e}function Sy(e,t,r){return typeof e=="function"?e(t,r):e}function rd(e,t){return typeof e=="function"?e(t):e}function Dy(e,t){return typeof e=="function"?e(t):e}var ky=qn.forwardRef(({item:e,isDisabled:t,isFocusVisible:r,isSelected:o,liProps:n,showSelectedIcon:i,description:a,descriptionProps:l,labelProps:s,isFocused:u,isPressed:c,_state:d},p)=>{he(e.value&&hy(e.value),"Item cannot be a section");let m=useRef(null),{icon:f,label:y}=e.value,{hoverProps:b,isHovered:g}=ae({isDisabled:t},m),x=ve({"data-selected":o,"data-disabled":t,"data-focused":u,"data-hovered":g,"data-pressed":c,"data-focus-visible":r,"data-selection-mode":d.selectionManager.selectionMode});return jsxs("li",{...M(n,b,x),className:_($R({isHovered:g,isFocused:r,isFirstChild:d.collection.getFirstKey()===e.key,isLastChild:d.collection.getLastKey()===e.key,isDisabled:t}),n.className,"BaselineUI-ListBox-Option"),style:n.style,ref:se(p,m),children:[jsxs(J,{display:"flex",alignItems:"center",gap:"lg",children:[i?jsx("span",{"aria-hidden":true,style:{height:24,width:24},children:o?jsx(CheckmarkIcon,{size:24}):null}):null,f?jsx(f,{size:24}):null,jsx("span",{...s,children:y})]}),a?jsx("span",{className:HR({isDisabled:t}),...l,children:a}):null]})});ky.displayName="DefaultListOption";var zs=({dropState:e,orientation:t="vertical",dropIndicatorStyle:r,dropIndicatorClassName:o,renderDropIndicator:n=({isDropTarget:a,isHidden:l,dropIndicatorProps:s,orientation:u},c)=>l?null:jsx("li",{...s,ref:c,"data-drop-target":a,className:_(Py({isDropTarget:a,orientation:u}),"BaselineUI-DropIndicator",o),style:r}),...i})=>{let a=qn.useRef(null),{dropIndicatorProps:l,isHidden:s,isDropTarget:u}=hs(i,e,a);return n({dropIndicatorProps:{...l,role:"option"},isHidden:s,isDropTarget:u,orientation:t},a)};var YR=({item:e,children:t,state:r,dragState:o,elementRef:n,...i})=>{let{dragProps:a}=Ci({key:e.key},o,n);return jsxs(Fragment,{children:[jsx(zs,{target:{type:"item",key:e.key,dropPosition:"before"},...i}),t(a),r.collection.getKeyAfter(e.key)==null&&jsx(zs,{target:{type:"item",key:e.key,dropPosition:"after"},...i})]})};YR.displayName="DraggableListOption";var nd=qn.forwardRef(({item:e,renderOption:t=(p,m,f)=>jsx(ky,{item:p,liProps:m.optionProps,...m,ref:f}),showSelectedIcon:r,state:o,dragState:n,dropState:i,orientation:a,dropIndicatorStyle:l,dropIndicatorClassName:s,optionStyle:u,optionClassName:c},d)=>{let p=qn.useRef(null),m=Kl({key:e.key},o,p),{value:f}=e;he(f&&hy(f),"ListSection should not be passed to ListOption");let y={isFocusVisible:m.isFocusVisible,isSelected:m.isSelected,isFocused:m.isFocused,isDisabled:m.isDisabled,isPressed:m.isPressed},b={style:Sy(u,f,y),className:Ha(c,f,y)};return n&&i?jsx(YR,{orientation:a,state:o,item:e,dropState:i,dragState:n,elementRef:p,dropIndicatorStyle:l,dropIndicatorClassName:s,children:g=>t(e,{...m,showSelectedIcon:r,_state:o,optionProps:{...M(m.optionProps,g),...b}},se(p,d))}):t(e,{...m,showSelectedIcon:r,_state:o,optionProps:{...m.optionProps,...b}},se(p,d))});nd.displayName="Option";var JR=({section:e,state:t,sectionClassName:r,sectionStyle:o,showSectionHeader:n,renderSectionHeader:i,withSectionHeaderPadding:a=false,...l})=>{let s=qn.useRef(null),{itemProps:u,groupProps:c,headingProps:d}=Vl({heading:n?i?.(e,s)||e.rendered:void 0,"aria-label":e["aria-label"]}),p=t.collection.getChildren?.(e.key);he(p,"children must be defined");let{value:m}=e;he(m&&vy(m),"section must be a ListSection");let f=typeof o=="function"?o(m):o,y=typeof r=="function"?r(m):r;return jsxs(Fragment,{children:[e.key===t.collection.getFirstKey()?null:jsx(ze,{UNSAFE_omitRole:true}),jsxs("li",{...u,style:{...u.style,...f},className:_(GR,y,"BaselineUI-ListBox-Section"),children:[e.rendered&&n?i?.(e,s,d)||jsx(J,{...d,className:_("BaselineUI-ListBox-SectionHeader",jR),ref:s,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:a?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,jsx("ul",{...c,children:[...p].map(b=>jsx(nd,{item:b,state:t,...l},b.key))})]})]})};var TC=qn.createContext(null),CC=qn.forwardRef(({className:e,layout:t="stack",orientation:r="vertical",showSelectedIcon:o=true,style:n,renderOption:i,enableReorder:a=false,"data-block-id":l,"data-block-class":s,renderDragPreview:u,onReorder:c,state:d,listBoxHandle:p,...m},f)=>{let y=qn.useRef(null),{direction:b}=Q(),g=qn.useRef(null),{listBoxProps:x}=Fl({...m,shouldSelectOnPressUp:a,keyboardDelegate:new kt({collection:d.collection,ref:g,layout:t,orientation:r,direction:b,disabledKeys:d.disabledKeys})},d,g);Cy({handle:p},d,g);let{collectionProps:h,dragState:v,dropState:C}=Ty({...m,onReorder:c,layout:t,orientation:r,enableReorder:a,preview:y},d,g),{isFocusVisible:T,isFocused:P,focusProps:k}=ne(),S=ve({"data-block-id":l,"data-block-class":s,"data-layout":t,"data-empty":d.collection.size===0,"data-focused":P,"data-focus-visible":T,"data-orientation":r});return Es({ref:g,isDisabled:!a}),jsxs("ul",{...M(x,k,S,h),className:_(BR,"BaselineUI-ListBox",e),style:n,ref:se(f,g),children:[[...d.collection].map(w=>{let E={key:w.key,state:d,dragState:v,dropState:C,renderOption:i,renderDropIndicator:m.renderDropIndicator,renderSectionHeader:m.renderSectionHeader,showSelectedIcon:o,orientation:r,dropIndicatorStyle:m.dropIndicatorStyle,dropIndicatorClassName:m.dropIndicatorClassName,optionStyle:m.optionStyle,optionClassName:m.optionClassName,sectionClassName:m.sectionClassName,sectionStyle:m.sectionStyle,showSectionHeader:m.showSectionHeader,withSectionHeaderPadding:m.withSectionHeaderPadding};return w.type==="section"?createElement(JR,{...E,key:w.key,section:w}):createElement(nd,{...E,key:w.key,item:w})}),u?jsx(Ti,{ref:y,children:u}):null]})});CC.displayName="ListBoxCore";var eI=qn.forwardRef((e,t)=>{let r=Di(),o=Ot({...e,children:r});return jsx(CC,{...e,ref:t,state:o})});eI.displayName="ListBoxStandalone";var an=qn.forwardRef((e,t)=>{let r=useContext(TC);return useEffect(()=>{if(!e.items&&!r)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[e.items,r]),r?jsx(CC,{...e,ref:t,state:r}):jsx(eI,{...e,ref:t})});an.displayName="ListBox";var Ry="uf19bsf _1yep5z6la",tI=j({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lp _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk z9nup8a",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z611a"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8",popover:"uf19bse _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6vr _1yep5z6vs _1yep5z6vt"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"primary",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"secondary",isHovered:true,isFocusVisible:false},"_1yep5z61nc"],[{variant:"tertiary",isHovered:true,isFocusVisible:false},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:true,isFocusVisible:false},"_1yep5z61nh"],[{variant:"popover",isHovered:true,isFocusVisible:false},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:false},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]});var id=qn.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Mo=({children:e,...t})=>{let r=qn.useRef(null),o=Tr(t),n=Nn(t,o),i=useMemo(()=>({state:o,overlayTriggerAria:n,triggerRef:r}),[o,n]);return jsx(id.Provider,{value:i,children:e})};var oI=j({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),nI=j({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),iI="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",aI="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",lI="_1gzftthd",sI="_1gzftthc",uI="var(--_1gzftth0)";var Iy=qn.createContext({isSelected:false,ref:void 0}),Ao=({children:e,anchorRect:t})=>{let{state:r,overlayTriggerAria:o,triggerRef:n}=useContext(id);he(r,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=o;he(!t&&e||t&&!e,"Either one of anchorRect or children has to be provided."),he(!t||PR(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height.");let a=useMemo(()=>({...i,isSelected:r.isOpen,ref:n}),[i,r.isOpen,n]);return t?jsx("div",{className:_(lI,"BaselineUI-PopoverTrigger-Hidden"),style:t,ref:n,tabIndex:-1},JSON.stringify(t)):typeof e=="function"?e({isOpen:r.isOpen,triggerProps:i,triggerRef:n}):qn.isValidElement(e)?jsx(Iy.Provider,{value:a,children:e}):null};var mr=({label:e,tooltip:t,...r})=>({tooltipProps:useMemo(()=>{let n={size:"sm",variant:"inverse",text:e,includeArrow:false,placement:"bottom start",offset:4,...r};if(typeof t=="object")return {...n,...t};if(t)return n},[e,r,t])});function _y({tooltip:e,"aria-label":t,"aria-labelledby":r},o){let[n,i]=useState(t||"");useEffect(()=>{if(r){let s=U(o.current).querySelector(`#${r}`);s&&i(s.textContent||"");}else t&&i(t);},[r,o,t]);let{tooltipProps:a}=mr({label:n,tooltip:e});return {tooltipProps:a}}var Ly=e=>{let t=qn.useRef(null),{ref:r,...o}=useContext(Iy)||{},{buttonProps:n,isPressed:i}=ft({...e,...o},t),{isFocusVisible:a,isFocused:l,focusProps:s}=ne(),{hoverProps:u,isHovered:c}=ae({isDisabled:e.isDisabled});return {buttonProps:M(n,s,u),isPressed:i,ref:se(t,r||null),isFocusVisible:a,isFocused:l,isHovered:c,uiStateOptions:{isHovered:c,isFocused:l,isPressed:i,isDisabled:e.isDisabled,isFocusVisible:a}}},My=(e,t)=>{let r=qn.useRef(null),{ref:o,...n}=useContext(Iy)||{},{buttonProps:i,isPressed:a}=qT({...e,...n},t,r);(i.role==="radio"||i.role==="checkbox")&&(i["aria-pressed"]=void 0);let{isFocusVisible:l,isFocused:s,focusProps:u}=ne(),{hoverProps:c,isHovered:d}=ae({isDisabled:e.isDisabled});return {buttonProps:M(i,u,c),isPressed:a,ref:se(r,o||null),isFocusVisible:l,isFocused:s,isHovered:d,uiStateOptions:{isHovered:d,isFocused:s,isPressed:a,isDisabled:e.isDisabled,isFocusVisible:l,isSelected:t.isSelected}}};var Ay=j({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6dy _1yep5z6la z9nup88",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9","success-secondary":"oom8bsa","warning-secondary":"oom8bsb","error-secondary":"oom8bsc","success-tertiary":"oom8bsd","warning-tertiary":"oom8bse","error-tertiary":"oom8bsf"},isDisabled:{true:"oom8bsg"},isFocusVisible:{true:"oom8bsh"},isHovered:{true:"oom8bsi"},size:{sm:"oom8bsj",md:"oom8bsk",lg:"oom8bsl"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"oom8bsm"],[{variant:"secondary",isHovered:true},"oom8bsn"],[{variant:"tertiary",isHovered:true},"oom8bso"],[{variant:"ghost",isHovered:true},"oom8bsp"],[{variant:"success",isHovered:true},"oom8bsq"],[{variant:"warning",isHovered:true},"oom8bsr"],[{variant:"error",isHovered:true},"oom8bss"],[{variant:"primary",isFocusVisible:true},"oom8bst"],[{variant:"tertiary",isFocusVisible:true},"oom8bsu"],[{variant:"success",isFocusVisible:true},"oom8bsv"],[{variant:"success-secondary",isHovered:true},"oom8bsw"],[{variant:"success-secondary",isFocusVisible:true},"oom8bsx"],[{variant:"success-tertiary",isHovered:true},"oom8bsy"],[{variant:"success-tertiary",isFocusVisible:true},"oom8bsz"],[{variant:"warning",isFocusVisible:true},"oom8bs10"],[{variant:"warning-secondary",isHovered:true},"oom8bs11"],[{variant:"warning-secondary",isFocusVisible:true},"oom8bs12"],[{variant:"warning-tertiary",isHovered:true},"oom8bs13"],[{variant:"warning-tertiary",isFocusVisible:true},"oom8bs14"],[{variant:"error",isFocusVisible:true},"oom8bs15"],[{variant:"error-secondary",isHovered:true},"oom8bs16"],[{variant:"error-secondary",isFocusVisible:true},"oom8bs17"],[{variant:"error-tertiary",isHovered:true},"oom8bs18"],[{variant:"error-tertiary",isFocusVisible:true},"oom8bs19"]]}),PC=j({defaultClassName:"oom8bs1a _1yep5z6la",variantClassNames:{isDisabled:{true:"oom8bs1b"},isFocusVisible:{true:"oom8bs1c"},isHovered:{true:"_1yep5z6115"},variant:{primary:"_1yep5z611c",secondary:"_1yep5z6118",tertiary:"_1yep5z611d",ghost:"_1yep5z611d",popover:"_1yep5z6118",toolbar:"_1yep5z6118",success:"_1yep5z611b",warning:"_1yep5z611b",error:"_1yep5z611b","success-secondary":"_1yep5z610m","warning-secondary":"_1yep5z610q","error-secondary":"_1yep5z610i","success-tertiary":"_1yep5z610l","warning-tertiary":"_1yep5z610p","error-tertiary":"_1yep5z610h"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:true},"_1yep5z61nf"],[{variant:"ghost",isHovered:true},"_1yep5z61nh"],[{variant:"tertiary",isFocusVisible:true},"_1yep5z61nf"],[{variant:"success-tertiary",isHovered:true},"_1yep5z61ne"],[{variant:"success-tertiary",isFocusVisible:true},"_1yep5z61ne"],[{variant:"warning-tertiary",isHovered:true},"_1yep5z61ne"],[{variant:"warning-tertiary",isFocusVisible:true},"_1yep5z61ne"],[{variant:"error-tertiary",isHovered:true},"_1yep5z61ne"],[{variant:"error-tertiary",isFocusVisible:true},"_1yep5z61ne"],[{variant:"secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"tertiary",isDisabled:true},"_1yep5z61nd"],[{variant:"ghost",isDisabled:true},"_1yep5z61nd"],[{variant:"popover",isDisabled:true},"_1yep5z61nd"],[{variant:"toolbar",isDisabled:true},"_1yep5z61nd"],[{variant:"success-secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"success-tertiary",isDisabled:true},"_1yep5z61nd"],[{variant:"warning-secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"warning-tertiary",isDisabled:true},"_1yep5z61nd"],[{variant:"error-secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"error-tertiary",isDisabled:true},"_1yep5z61nd"]]});var f3={sm:16,md:20,lg:24},Me=qn.forwardRef((e,t)=>{let[r,o]=Ie(e,t,io),{label:n,style:i,className:a,iconStart:l,iconEnd:s,variant:u="primary",elementType:c="button",isDisabled:d,size:p="sm","data-block-id":m,"data-block-class":f,slot:y,...b}=r,{buttonProps:g,isPressed:x,ref:h,isFocusVisible:v,isFocused:C,isHovered:T,uiStateOptions:P}=Ly({...b,elementType:c,isDisabled:d}),k=f3[p],S=ve({"data-block-id":m,"data-block-class":f,"data-disabled":d,"data-focused":C,"data-focus-visible":v,"data-hovered":T,"data-pressed":x});return jsxs(c,{...M(g,S),className:_(Ay({isDisabled:!!d,isFocusVisible:v,isHovered:T,variant:u,size:p}),"BaselineUI-ActionButton",typeof a=="function"?a(P):a),style:typeof i=="function"?i(P):i,ref:se(o,h),children:[!!l&&jsx(l,{size:k,className:PC({variant:u,isDisabled:d,isFocusVisible:v,isHovered:T})}),n,!!s&&jsx(s,{size:k,className:PC({variant:u,isDisabled:d,isFocusVisible:v,isHovered:T})}),u==="popover"&&jsx(CaretDownIcon,{size:8,className:Ry})]})});Me.displayName="ActionButton";var fI=qn.forwardRef(({className:e,style:t,node:r,"data-block-id":o,"data-block-class":n,...i},a)=>{let l=qn.useRef(null);qn.useEffect(()=>{let c=l.current;return c?.append(r),()=>{c?.contains(r)&&r.remove();}},[r]);let{pressProps:s,isPressed:u}=Oe(i);return jsx("div",{...s,className:e,style:t,"data-block-id":o,"data-block-class":n,"data-pressed":u,"data-testid":"dom-node-renderer",ref:se(a,l)})});fI.displayName="DomNodeRenderer";var yI=j({defaultClassName:"z9nup83",variantClassNames:{size:{xs:"z9nup84",sm:"z9nup85"}},defaultVariants:{},compoundVariants:[]}),bI="z9nup80",Rs="z9nup82",gI="z9nup86";function hI({ref:e,onIntersect:t,isDisabled:r,threshold:o,rootMargin:n,root:i}){let a=qn.useRef(t);re(()=>{a.current=t;}),useEffect(()=>{let l=e.current;if(r||!l)return;let s=new IntersectionObserver(([u])=>{a.current(u);},{root:i?.current,rootMargin:n,threshold:o});return s.observe(l),()=>{s.disconnect();}},[e,r,i,n,o]);}function Oy({ref:e,onResize:t,isDisabled:r}){let[o,n]=qn.useState(),i=qn.useRef(t);return re(()=>{i.current=t;}),qn.useEffect(()=>{let a=e.current;if(r||!a)return;let l=new ResizeObserver(([s])=>{n(s.contentRect),i.current?.(s);});return l.observe(a),()=>{l.disconnect();}},[e,r]),{size:o}}function Ny({src:e,alt:t}){let[r,o]=useState(false),[n,i]=useState(false),[a,l]=useState(false);return useEffect(()=>{if(!e){o(false),i(false),l(false);return}o(false),i(false),l(true);let s=new Image,u=()=>{o(true),l(false);},c=()=>{i(true),l(false);};return s.addEventListener("load",u),s.addEventListener("error",c),s.src=e,s.complete&&s.naturalWidth>0&&u(),()=>{s.removeEventListener("load",u),s.removeEventListener("error",c);}},[e]),{isLoaded:r,hasError:n,isLoading:a,imgProps:{src:a?void 0:e,alt:t}}}function Fy(){let e=useRef(true);return useEffect(()=>{e.current=false;},[]),e.current}var vI="SET_STATE",Ky="UNDO",Vy="REDO",D3=(e,t)=>{let{past:r,present:o,future:n}=e;switch(t.type){case vI:return {past:[...r,o],present:t.data,future:[]};case Ky:return {past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[o,...n]};case Vy:return {past:[...r,o],present:n[0],future:n.slice(1)};default:throw new Error("Invalid action type")}},xI=(e={},{isDisabled:t,onAction:r})=>{let o=Fy(),[n,i]=useReducer(D3,{past:[],present:e,future:[]}),{past:a,present:l,future:s}=n,u=y=>{i({type:vI,data:y});},c=useRef(),d=()=>{a.length&&(c.current=Ky,i({type:Ky}));},p=()=>{s.length&&(c.current=Vy,i({type:Vy}));},m=!!a?.length,f=!!s?.length;return useGranularEffect(()=>{(c.current===Ky||c.current===Vy)&&(r?.(l,c.current),c.current=void 0);},[l],[r,o]),{state:l,push:t?()=>{}:u,undo:t?()=>{}:d,redo:t?()=>{}:p,pastStates:a,futureStates:s,canUndo:m,canRedo:f}};var ad=class{messages;defaultLocale;constructor(t,r="en-US"){this.messages=Object.fromEntries(Object.entries(t).filter(([,o])=>o)),this.defaultLocale=r;}getStringForLocale(t,r){let o=this.messages[r];o||(o=k3(r,this.messages,this.defaultLocale),this.messages[r]=o);let n=o[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}};function k3(e,t,r="en-US"){if(t[e])return t[e];let o=E3(e);if(t[o])return t[o];for(let n in t)if(n.startsWith(o+"-"))return t[n];return t[r]}function E3(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var zC=function(e,t){return zC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o;}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n]);},zC(e,t)};function ld(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zC(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var je=function(){return je=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);}return t},je.apply(this,arguments)};function TI(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function By(e,t,r){if(arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function Hy(e,t){var r=t&&t.cache?t.cache:M3,o=t&&t.serializer?t.serializer:_3,n=t&&t.strategy?t.strategy:w3;return n(e,{cache:r,serializer:o})}function z3(e){return e==null||typeof e=="number"||typeof e=="boolean"}function CI(e,t,r,o){var n=z3(o)?o:r(o),i=t.get(n);return typeof i>"u"&&(i=e.call(this,o),t.set(n,i)),i}function PI(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),i=t.get(n);return typeof i>"u"&&(i=e.apply(this,o),t.set(n,i)),i}function wC(e,t,r,o,n){return r.bind(t,e,o,n)}function w3(e,t){var r=e.length===1?CI:PI;return wC(e,this,r,t.cache.create(),t.serializer)}function R3(e,t){return wC(e,this,PI,t.cache.create(),t.serializer)}var _3=function(){return JSON.stringify(arguments)},L3=(function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e})(),M3={create:function(){return new L3}},$y={variadic:R3};var Be;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(Be||(Be={}));var st;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(st||(st={}));var $a;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})($a||($a={}));function RC(e){return e.type===st.literal}function IC(e){return e.type===st.argument}function sd(e){return e.type===st.number}function ud(e){return e.type===st.date}function cd(e){return e.type===st.time}function dd(e){return e.type===st.select}function pd(e){return e.type===st.plural}function SI(e){return e.type===st.pound}function md(e){return e.type===st.tag}function jy(e){return !!(e&&typeof e=="object"&&e.type===$a.number)}function fd(e){return !!(e&&typeof e=="object"&&e.type===$a.dateTime)}var _C=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var A3=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function DI(e){var t={};return e.replace(A3,function(r){var o=r.length;switch(r[0]){case "G":t.era=o===4?"long":o===5?"narrow":"short";break;case "y":t.year=o===2?"2-digit":"numeric";break;case "Y":case "u":case "U":case "r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case "q":case "Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case "M":case "L":t.month=["numeric","2-digit","short","long","narrow"][o-1];break;case "w":case "W":throw new RangeError("`w/W` (week) patterns are not supported");case "d":t.day=["numeric","2-digit"][o-1];break;case "D":case "F":case "g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case "E":t.weekday=o===4?"long":o===5?"narrow":"short";break;case "e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][o-4];break;case "c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][o-4];break;case "a":t.hour12=true;break;case "b":case "B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case "h":t.hourCycle="h12",t.hour=["numeric","2-digit"][o-1];break;case "H":t.hourCycle="h23",t.hour=["numeric","2-digit"][o-1];break;case "K":t.hourCycle="h11",t.hour=["numeric","2-digit"][o-1];break;case "k":t.hourCycle="h24",t.hour=["numeric","2-digit"][o-1];break;case "j":case "J":case "C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case "m":t.minute=["numeric","2-digit"][o-1];break;case "s":t.second=["numeric","2-digit"][o-1];break;case "S":case "A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case "z":t.timeZoneName=o<4?"short":"long";break;case "Z":case "O":case "v":case "V":case "X":case "x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var kI=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function RI(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(kI).filter(function(p){return p.length>0}),r=[],o=0,n=t;o<n.length;o++){var i=n[o],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],s=a.slice(1),u=0,c=s;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:s});}return r}function O3(e){return e.replace(/^(.*?)-/,"")}var EI=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,II=/^(@+)?(\+|#+)?[rs]?$/g,N3=/(\*)(0+)|(#+)(0+)|(0+)/g,_I=/^(0+)$/;function zI(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(II,function(r,o,n){return typeof n!="string"?(t.minimumSignificantDigits=o.length,t.maximumSignificantDigits=o.length):n==="+"?t.minimumSignificantDigits=o.length:o[0]==="#"?t.maximumSignificantDigits=o.length:(t.minimumSignificantDigits=o.length,t.maximumSignificantDigits=o.length+(typeof n=="string"?n.length:0)),""}),t}function LI(e){switch(e){case "sign-auto":return {signDisplay:"auto"};case "sign-accounting":case "()":return {currencySign:"accounting"};case "sign-always":case "+!":return {signDisplay:"always"};case "sign-accounting-always":case "()!":return {signDisplay:"always",currencySign:"accounting"};case "sign-except-zero":case "+?":return {signDisplay:"exceptZero"};case "sign-accounting-except-zero":case "()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case "sign-never":case "+_":return {signDisplay:"never"}}}function F3(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!_I.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function wI(e){var t={},r=LI(e);return r||t}function MI(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r];switch(n.stem){case "percent":case "%":t.style="percent";continue;case "%x100":t.style="percent",t.scale=100;continue;case "currency":t.style="currency",t.currency=n.options[0];continue;case "group-off":case ",_":t.useGrouping=false;continue;case "precision-integer":case ".":t.maximumFractionDigits=0;continue;case "measure-unit":case "unit":t.style="unit",t.unit=O3(n.options[0]);continue;case "compact-short":case "K":t.notation="compact",t.compactDisplay="short";continue;case "compact-long":case "KK":t.notation="compact",t.compactDisplay="long";continue;case "scientific":t=je(je(je({},t),{notation:"scientific"}),n.options.reduce(function(s,u){return je(je({},s),wI(u))},{}));continue;case "engineering":t=je(je(je({},t),{notation:"engineering"}),n.options.reduce(function(s,u){return je(je({},s),wI(u))},{}));continue;case "notation-simple":t.notation="standard";continue;case "unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case "unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case "unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case "unit-width-iso-code":t.currencyDisplay="symbol";continue;case "scale":t.scale=parseFloat(n.options[0]);continue;case "rounding-mode-floor":t.roundingMode="floor";continue;case "rounding-mode-ceiling":t.roundingMode="ceil";continue;case "rounding-mode-down":t.roundingMode="trunc";continue;case "rounding-mode-up":t.roundingMode="expand";continue;case "rounding-mode-half-even":t.roundingMode="halfEven";continue;case "rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case "rounding-mode-half-up":t.roundingMode="halfExpand";continue;case "integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(N3,function(s,u,c,d,p,m){if(u)t.minimumIntegerDigits=c.length;else {if(d&&p)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(_I.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(EI.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(EI,function(s,u,c,d,p,m){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:p&&m?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=n.options[0];i==="w"?t=je(je({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=je(je({},t),zI(i)));continue}if(II.test(n.stem)){t=je(je({},t),zI(n.stem));continue}var a=LI(n.stem);a&&(t=je(je({},t),a));var l=F3(n.stem);l&&(t=je(je({},t),l));}return t}var yd={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function AI(e,t){for(var r="",o=0;o<e.length;o++){var n=e.charAt(o);if(n==="j"){for(var i=0;o+1<e.length&&e.charAt(o+1)===n;)i++,o++;var a=1+(i&1),l=i<2?1:3+(i>>1),s="a",u=K3(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;a-- >0;)r=u+r;}else n==="J"?r+="H":r+=n;}return r}function K3(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case "h24":return "k";case "h23":return "H";case "h12":return "h";case "h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,o;r!=="root"&&(o=e.maximize().region);var n=yd[o||""]||yd[r||""]||yd["".concat(r,"-001")]||yd["001"];return n[0]}var LC,V3=new RegExp("^".concat(_C.source,"*")),B3=new RegExp("".concat(_C.source,"*$"));function Ue(e,t){return {start:e,end:t}}var H3=!!String.prototype.startsWith&&"_a".startsWith("a",1),$3=!!String.fromCodePoint,j3=!!Object.fromEntries,G3=!!String.prototype.codePointAt,U3=!!String.prototype.trimStart,W3=!!String.prototype.trimEnd,q3=!!Number.isSafeInteger,X3=q3?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},AC=true;try{OI=VI("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),AC=((LC=OI.exec("a"))===null||LC===void 0?void 0:LC[0])==="a";}catch{AC=false;}var OI,NI=H3?function(t,r,o){return t.startsWith(r,o)}:function(t,r,o){return t.slice(o,o+r.length)===r},OC=$3?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var o="",n=t.length,i=0,a;n>i;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");o+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320);}return o},FI=j3?Object.fromEntries:function(t){for(var r={},o=0,n=t;o<n.length;o++){var i=n[o],a=i[0],l=i[1];r[a]=l;}return r},KI=G3?function(t,r){return t.codePointAt(r)}:function(t,r){var o=t.length;if(!(r<0||r>=o)){var n=t.charCodeAt(r),i;return n<55296||n>56319||r+1===o||(i=t.charCodeAt(r+1))<56320||i>57343?n:(n-55296<<10)+(i-56320)+65536}},Y3=U3?function(t){return t.trimStart()}:function(t){return t.replace(V3,"")},Z3=W3?function(t){return t.trimEnd()}:function(t){return t.replace(B3,"")};function VI(e,t){return new RegExp(e,t)}var NC;AC?(MC=VI("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),NC=function(t,r){var o;MC.lastIndex=r;var n=MC.exec(t);return (o=n[1])!==null&&o!==void 0?o:""}):NC=function(t,r){for(var o=[];;){var n=KI(t,r);if(n===void 0||HI(n)||e9(n))break;o.push(n),r+=n>=65536?2:1;}return OC.apply(void 0,o)};var MC,BI=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",false)},e.prototype.parseMessage=function(t,r,o){for(var n=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,o);if(a.err)return a;n.push(a.val);}else {if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),n.push({type:st.pound,location:Ue(l,this.clonePosition())});}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(Be.UNMATCHED_CLOSING_TAG,Ue(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&FC(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;n.push(a.val);}else {var a=this.parseLiteral(t,r);if(a.err)return a;n.push(a.val);}}}return {val:n,err:null}},e.prototype.parseTag=function(t,r){var o=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:st.literal,value:"<".concat(n,"/>"),location:Ue(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,true);if(i.err)return i;var a=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!FC(this.char()))return this.error(Be.INVALID_TAG,Ue(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(Be.UNMATCHED_CLOSING_TAG,Ue(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:st.tag,value:n,children:a,location:Ue(o,this.clonePosition())},err:null}:this.error(Be.INVALID_TAG,Ue(l,this.clonePosition())))}else return this.error(Be.UNCLOSED_TAG,Ue(o,this.clonePosition()))}else return this.error(Be.INVALID_TAG,Ue(o,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Q3(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var o=this.clonePosition(),n="";;){var i=this.tryParseQuote(r);if(i){n+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){n+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){n+=l;continue}break}var s=Ue(o,this.clonePosition());return {val:{type:st.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!J3(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(o);this.bump();}return OC.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(r==="plural"||r==="selectordinal")||o===125&&t>0?null:(this.bump(),OC(o))},e.prototype.parseArgument=function(t,r){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Be.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Be.EMPTY_ARGUMENT,Ue(o,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Be.MALFORMED_ARGUMENT,Ue(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Be.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:st.argument,value:n,location:Ue(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Be.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(o,this.clonePosition())):this.parseArgumentOptions(t,r,n,o);default:return this.error(Be.MALFORMED_ARGUMENT,Ue(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),o=NC(this.message,r),n=r+o.length;this.bumpTo(n);var i=this.clonePosition(),a=Ue(t,i);return {value:o,location:a}},e.prototype.parseArgumentOptions=function(t,r,o,n){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case "":return this.error(Be.EXPECT_ARGUMENT_TYPE,Ue(a,s));case "number":case "date":case "time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=Z3(d.val);if(p.length===0)return this.error(Be.EXPECT_ARGUMENT_STYLE,Ue(this.clonePosition(),this.clonePosition()));var m=Ue(c,this.clonePosition());u={style:p,styleLocation:m};}var f=this.tryParseArgumentClose(n);if(f.err)return f;var y=Ue(n,this.clonePosition());if(u&&NI(u?.style,"::",0)){var b=Y3(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(b,u.styleLocation);return d.err?d:{val:{type:st.number,value:o,location:y,style:d.val},err:null}}else {if(b.length===0)return this.error(Be.EXPECT_DATE_TIME_SKELETON,y);var g=b;this.locale&&(g=AI(b,this.locale));var p={type:$a.dateTime,pattern:g,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?DI(g):{}},x=l==="date"?st.date:st.time;return {val:{type:x,value:o,location:y,style:p},err:null}}}return {val:{type:l==="number"?st.number:l==="date"?st.date:st.time,value:o,location:y,style:(i=u?.style)!==null&&i!==void 0?i:null},err:null}}case "plural":case "selectordinal":case "select":{var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Be.EXPECT_SELECT_ARGUMENT_OPTIONS,Ue(h,je({},h)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),C=0;if(l!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(Be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ue(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Be.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),v=this.parseIdentifierIfPossible(),C=d.val;}var T=this.tryParsePluralOrSelectOptions(t,l,r,v);if(T.err)return T;var f=this.tryParseArgumentClose(n);if(f.err)return f;var P=Ue(n,this.clonePosition());return l==="select"?{val:{type:st.select,value:o,options:FI(T.val),location:P},err:null}:{val:{type:st.plural,value:o,options:FI(T.val),offset:C,pluralType:l==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(Be.INVALID_ARGUMENT_TYPE,Ue(a,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Be.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(t,this.clonePosition())):(this.bump(),{val:true,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Be.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ue(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var o=[];try{o=RI(t);}catch{return this.error(Be.INVALID_NUMBER_SKELETON,r)}return {val:{type:$a.number,tokens:o,location:r,parsedOptions:this.shouldParseSkeletons?MI(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,o,n){for(var i,a=false,l=[],s=new Set,u=n.value,c=n.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(Be.EXPECT_PLURAL_ARGUMENT_SELECTOR,Be.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=Ue(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset());}else break}if(s.has(u))return this.error(r==="select"?Be.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Be.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(a=true),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Be.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Be.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ue(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,o);if(f.err)return f;var y=this.tryParseArgumentClose(m);if(y.err)return y;l.push([u,{value:f.val,location:Ue(m,this.clonePosition())}]),s.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location;}return l.length===0?this.error(r==="select"?Be.EXPECT_SELECT_ARGUMENT_SELECTOR:Be.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ue(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Be.MISSING_OTHER_CLAUSE,Ue(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var o=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var i=false,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=true,a=a*10+(l-48),this.bump();else break}var s=Ue(n,this.clonePosition());return i?(a*=o,X3(a)?{val:a,err:null}:this.error(r,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=KI(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(NI(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return true}return false},e.prototype.bumpUntil=function(t){var r=this.offset(),o=this.message.indexOf(t,r);return o>=0?(this.bumpTo(o),true):(this.bumpTo(this.message.length),false)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&HI(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),o=this.message.charCodeAt(r+(t>=65536?2:1));return o??null},e})();function FC(e){return e>=97&&e<=122||e>=65&&e<=90}function J3(e){return FC(e)||e===47}function Q3(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function HI(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function e9(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function KC(e){e.forEach(function(t){if(delete t.location,dd(t)||pd(t))for(var r in t.options)delete t.options[r].location,KC(t.options[r].value);else sd(t)&&jy(t.style)||(ud(t)||cd(t))&&fd(t.style)?delete t.style.location:md(t)&&KC(t.children);});}function $I(e,t){t===void 0&&(t={}),t=je({shouldParseSkeletons:true,requiresOtherClause:true},t);var r=new BI(e,t).parse();if(r.err){var o=SyntaxError(Be[r.err.kind]);throw o.location=r.err.location,o.originalMessage=r.err.message,o}return t?.captureLocation||KC(r.val),r.val}var ja;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(ja||(ja={}));var bd=(function(e){ld(t,e);function t(r,o,n){var i=e.call(this,r)||this;return i.code=o,i.originalMessage=n,i}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error);var VC=(function(e){ld(t,e);function t(r,o,n,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(o,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ja.INVALID_VALUE,i)||this}return t})(bd);var jI=(function(e){ld(t,e);function t(r,o,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(o),ja.INVALID_VALUE,n)||this}return t})(bd);var GI=(function(e){ld(t,e);function t(r,o){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(o,'"'),ja.MISSING_VALUE,o)||this}return t})(bd);var fr;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(fr||(fr={}));function t9(e){return e.length<2?e:e.reduce(function(t,r){var o=t[t.length-1];return !o||o.type!==fr.literal||r.type!==fr.literal?t.push(r):o.value+=r.value,t},[])}function r9(e){return typeof e=="function"}function gd(e,t,r,o,n,i,a){if(e.length===1&&RC(e[0]))return [{type:fr.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(RC(c)){l.push({type:fr.literal,value:c.value});continue}if(SI(c)){typeof i=="number"&&l.push({type:fr.literal,value:r.getNumberFormat(t).format(i)});continue}var d=c.value;if(!(n&&d in n))throw new GI(d,a);var p=n[d];if(IC(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?fr.literal:fr.object,value:p});continue}if(ud(c)){var m=typeof c.style=="string"?o.date[c.style]:fd(c.style)?c.style.parsedOptions:void 0;l.push({type:fr.literal,value:r.getDateTimeFormat(t,m).format(p)});continue}if(cd(c)){var m=typeof c.style=="string"?o.time[c.style]:fd(c.style)?c.style.parsedOptions:o.time.medium;l.push({type:fr.literal,value:r.getDateTimeFormat(t,m).format(p)});continue}if(sd(c)){var m=typeof c.style=="string"?o.number[c.style]:jy(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(p=p*(m.scale||1)),l.push({type:fr.literal,value:r.getNumberFormat(t,m).format(p)});continue}if(md(c)){var f=c.children,y=c.value,b=n[y];if(!r9(b))throw new jI(y,"function",a);var g=gd(f,t,r,o,n,i),x=b(g.map(function(C){return C.value}));Array.isArray(x)||(x=[x]),l.push.apply(l,x.map(function(C){return {type:typeof C=="string"?fr.literal:fr.object,value:C}}));}if(dd(c)){var h=c.options[p]||c.options.other;if(!h)throw new VC(c.value,p,Object.keys(c.options),a);l.push.apply(l,gd(h.value,t,r,o,n));continue}if(pd(c)){var h=c.options["=".concat(p)];if(!h){if(!Intl.PluralRules)throw new bd(`Intl.PluralRules is not available in this environment.
|
|
23
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
24
|
-
`,ja.MISSING_INTL_API,a);var v=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));h=c.options[v]||c.options.other;}if(!h)throw new VC(c.value,p,Object.keys(c.options),a);l.push.apply(l,gd(h.value,t,r,o,n,p-(c.offset||0)));continue}}return t9(l)}function o9(e,t){return t?je(je(je({},e||{}),t||{}),Object.keys(e).reduce(function(r,o){return r[o]=je(je({},e[o]),t[o]||{}),r},{})):e}function n9(e,t){return t?Object.keys(e).reduce(function(r,o){return r[o]=o9(e[o],t[o]),r},je({},e)):e}function BC(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function i9(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Hy(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.NumberFormat).bind.apply(t,By([void 0],r,false)))},{cache:BC(e.number),strategy:$y.variadic}),getDateTimeFormat:Hy(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.DateTimeFormat).bind.apply(t,By([void 0],r,false)))},{cache:BC(e.dateTime),strategy:$y.variadic}),getPluralRules:Hy(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.PluralRules).bind.apply(t,By([void 0],r,false)))},{cache:BC(e.pluralRules),strategy:$y.variadic})}}var UI=(function(){function e(t,r,o,n){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var c=i.formatToParts(u);if(c.length===1)return c[0].value;var d=c.reduce(function(p,m){return !p.length||m.type!==fr.literal||typeof p[p.length-1]!="string"?p.push(m.value):p[p.length-1]+=m.value,p},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(u){return gd(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return {locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=n||{};a.formatters;var s=TI(a,["formatters"]);this.ast=e.__parse(t,je(je({},s),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=n9(e.formats,o),this.formatters=n&&n.formatters||i9(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:false,configurable:true}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=$I,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var WI=UI;var hd=class{locale;messages;cache;constructor(t,r){this.locale=t,this.messages=r,this.cache={};}format(t,r){let o=this.cache[t];if(!o){let i=this.messages.getStringForLocale(t,this.locale);if(!i)throw new Error(`Could not find intl message ${t} in ${this.locale} locale`);o=new WI(i,this.locale),this.cache[t]=o;}let n;return r&&(n=Object.keys(r).reduce((i,a)=>(i[a]=r[a]==null?false:r[a],i),{})),o.format(n)}};var XI=new WeakMap;function l9(e){let t=XI.get(e);return t||(t=new ad(e),XI.set(e,t)),t}function Gy(e){let{locale:t}=Q(),r=useMemo(()=>l9(e),[e]),o=useMemo(()=>new hd(t,r),[t,r]);return useCallback((n,i)=>o.format(n,i),[o])}var QI=process.env.NODE_ENV!=="production",HC=qn.createContext({messages:{},shouldLogMissingMessages:QI,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),e_=({children:e,messages:t={},shouldLogMissingMessages:r=QI,...o})=>{let n=useRef(new Set),i=useRef(false),[a,l]=useState(o.locale||"");useEffect(()=>{i.current?n.current.clear():i.current=true;},[a,o.locale]);let s=qn.useMemo(()=>({messages:t,shouldLogMissingMessages:r,hasMissingErrorLoggedFor:n,setLang:l}),[t,r,l]);return jsx(Lu,{...o,children:jsx(HC.Provider,{value:s,children:e})})};e_.displayName="I18nProvider";var a4e=["bui.alertDialog.close","bui.audioPlayer.audioTimeline","bui.audioPlayer.pause","bui.audioPlayer.play","bui.buttonSelect.more","bui.buttonSelect.moreWithLabel","bui.calendar.nextMonth","bui.calendar.nextYear","bui.calendar.previousMonth","bui.calendar.previousYear","bui.calendar.selectMonth","bui.calendar.selectYear","bui.colorInput.add","bui.colorInput.addColor","bui.colorInput.cancel","bui.colorInput.colorFormat","bui.colorInput.colorPresets","bui.colorInput.customColors","bui.colorInput.indeterminate","bui.colorInput.newColor","bui.colorInput.noColor","bui.colorInput.removeColor","bui.colorInput.transparent","bui.colorSwatch.none","bui.dateField.openCalendar","bui.drawer.close","bui.editor.action","bui.editor.addLink","bui.editor.backgroundColor","bui.editor.bold","bui.editor.cancel","bui.editor.close","bui.editor.copy","bui.editor.cut","bui.editor.editLink","bui.editor.fontColor","bui.editor.help","bui.editor.italic","bui.editor.linkAnnotation","bui.editor.mention","bui.editor.openHelpDialog","bui.editor.paste","bui.editor.redo","bui.editor.removeLink","bui.editor.save","bui.editor.selectAll","bui.editor.shortcut","bui.editor.submit","bui.editor.toolbarFocus","bui.editor.underline","bui.editor.undo","bui.fileList.loading","bui.fileList.removeHint","bui.freehandCanvas.redo","bui.freehandCanvas.undo","bui.imageDropZone.selectImage","bui.imageGallery.cancel","bui.imageGallery.delete","bui.imageGallery.loading","bui.inlineAlert.close","bui.pagination.goToPage","bui.pagination.nextPage","bui.pagination.pageXofY","bui.pagination.prevPage","bui.select.clear","bui.select.more","bui.select.search","bui.select.selectAll","bui.stepper.completed","bui.stepper.label","bui.stepper.step","bui.table.loading","bui.toolbar.more","bui.treeView.collapse","bui.treeView.expand","bui.treeView.rename","bui.useMedia.paused","bui.useMedia.playing"],t_={close:["bui.alertDialog.close","bui.drawer.close","bui.editor.close","bui.inlineAlert.close"],audioTimeline:["bui.audioPlayer.audioTimeline"],pause:["bui.audioPlayer.pause"],play:["bui.audioPlayer.play"],more:["bui.buttonSelect.more","bui.select.more","bui.toolbar.more"],moreWithLabel:["bui.buttonSelect.moreWithLabel"],nextMonth:["bui.calendar.nextMonth"],nextYear:["bui.calendar.nextYear"],previousMonth:["bui.calendar.previousMonth"],previousYear:["bui.calendar.previousYear"],selectMonth:["bui.calendar.selectMonth"],selectYear:["bui.calendar.selectYear"],add:["bui.colorInput.add"],addColor:["bui.colorInput.addColor"],cancel:["bui.colorInput.cancel","bui.editor.cancel","bui.imageGallery.cancel"],colorFormat:["bui.colorInput.colorFormat"],colorPresets:["bui.colorInput.colorPresets"],customColors:["bui.colorInput.customColors"],indeterminate:["bui.colorInput.indeterminate"],newColor:["bui.colorInput.newColor"],noColor:["bui.colorInput.noColor"],removeColor:["bui.colorInput.removeColor"],transparent:["bui.colorInput.transparent"],none:["bui.colorSwatch.none"],openCalendar:["bui.dateField.openCalendar"],action:["bui.editor.action"],addLink:["bui.editor.addLink"],backgroundColor:["bui.editor.backgroundColor"],bold:["bui.editor.bold"],copy:["bui.editor.copy"],cut:["bui.editor.cut"],editLink:["bui.editor.editLink"],fontColor:["bui.editor.fontColor"],help:["bui.editor.help"],italic:["bui.editor.italic"],linkAnnotation:["bui.editor.linkAnnotation"],mention:["bui.editor.mention"],openHelpDialog:["bui.editor.openHelpDialog"],paste:["bui.editor.paste"],redo:["bui.editor.redo","bui.freehandCanvas.redo"],removeLink:["bui.editor.removeLink"],save:["bui.editor.save"],selectAll:["bui.editor.selectAll","bui.select.selectAll"],shortcut:["bui.editor.shortcut"],submit:["bui.editor.submit"],toolbarFocus:["bui.editor.toolbarFocus"],underline:["bui.editor.underline"],undo:["bui.editor.undo","bui.freehandCanvas.undo"],loading:["bui.fileList.loading","bui.imageGallery.loading","bui.table.loading"],removeHint:["bui.fileList.removeHint"],selectImage:["bui.imageDropZone.selectImage"],delete:["bui.imageGallery.delete"],goToPage:["bui.pagination.goToPage"],nextPage:["bui.pagination.nextPage"],pageXofY:["bui.pagination.pageXofY"],prevPage:["bui.pagination.prevPage"],clear:["bui.select.clear"],search:["bui.select.search"],completed:["bui.stepper.completed"],label:["bui.stepper.label"],step:["bui.stepper.step"],collapse:["bui.treeView.collapse"],expand:["bui.treeView.expand"],rename:["bui.treeView.rename"],paused:["bui.useMedia.paused"],playing:["bui.useMedia.playing"]};var Uy={},d9={"en-US":Uy};function p9(e,t){let{language:r}=new Intl.Locale(t);return !!(e[t]||e[r]||Object.entries(e).some(([o,n])=>n&&o.startsWith(`${r}-`)))}function m9(e){return Object.values(e).some(Boolean)}function f9(e,t,r){let o=t.lastIndexOf(".");if(o===-1)return;let n=t.slice(o+1);try{return e(n,r)}catch{return}}function y9(e){return e instanceof Error&&e.message.startsWith("Could not find intl message")}function b9(e,t){if(process.env.NODE_ENV==="production")return "";let r=(t_[t]??[]).filter(o=>o!==e);return r.length===0?"":` Note that \`${t}\` also answers for ${r.map(o=>`\`${o}\``).join(", ")}, so this one entry translates all of them.`}function o_(e){let t;for(let r of Object.keys(e)){let o=r.replaceAll("_","-");o!==r&&(t??={...e},t[o]={...e[r],...t[o]});}return t??e}function n_(e,t,r){if(t)for(let o of Object.keys(e)){let n=o.replaceAll("_","-");if(n!==o&&Object.prototype.hasOwnProperty.call(e,n)){let i=`locale-alias:${o}:${n}`;r.current.has(i)||(console.warn(`BUI \u{1F30D}: Locale supplied in multiple formats ("${o}" and "${n}"). Using the hyphenated entry; provide a single locale ID format to avoid ambiguity.`),r.current.add(i));}}}function fe(e){let{messages:t,shouldLogMissingMessages:r,hasMissingErrorLoggedFor:o,setLang:n}=useContext(HC),i=useMemo(()=>e?ER(e):void 0,[e]);useEffect(()=>{i&&n_(i,r,o),n_(t,r,o);},[i,t,o,r]);let a=useMemo(()=>{let g=i?o_(i):void 0,x=o_(t);if(!g)return x;if(Object.keys(x).length===0)return g;let h=new Set([...Object.keys(g),...Object.keys(x)]),v={};for(let C of h)v[C]={...g[C],...x[C]};return v},[i,t]),l=Gy(a),s=Q();useEffect(()=>{n(s.locale);},[s.locale,n]);let u=useMemo(()=>p9(a,s.locale),[a,s.locale]),c=useMemo(()=>!u&&m9(a)&&new Intl.Locale(s.locale).language!=="en",[u,a,s.locale]),d=useCallback(g=>{if(!c||!g.startsWith("bui."))return;let x=`no-catalog:${s.locale}`;if(r&&!o.current.has(x)){let h=Object.keys(a).filter(v=>a[v]).map(v=>`\`${v}\``).join(", ");console.warn(`BUI \u{1F30D}: No supplied catalog covers locale: \`${s.locale}\` (catalogs supplied for ${h}). Every message will use its English \`defaultMessage\`. File the catalog under a key that matches the active locale.`),o.current.add(x);}},[c,o,s.locale,r,a]),p=useCallback(g=>{g.startsWith("bui.")&&r&&!o.current.has(g)&&(console.warn(`BUI \u{1F30D}: Translation not found for key: \`${g}\` for locale: \`${s.locale}\`. The message's \`defaultMessage\` will be used instead.`),o.current.add(g));},[o,s.locale,r]),m=useCallback(g=>{let x=`legacy:${g}`;if(r&&!o.current.has(x)){let h=g.slice(g.lastIndexOf(".")+1);console.warn(`BUI \u{1F30D}: Translation for \`${g}\` resolved via the deprecated bare id \`${h}\` for locale: \`${s.locale}\`. Regenerate your translation catalog with namespaced keys; the bare-id fallback will be removed in a future major.${b9(g,h)}`),o.current.add(x);}},[o,s.locale,r]),f=Gy(d9),y=useCallback((g,x,h)=>{let v=x?.defaultMessage??Uy[g];if(!v)return g;if(!v.includes("{")||Uy[g]!==v)return v;try{return f(g,h)}catch{return v}},[f]),b=useCallback((g,x)=>{let h=typeof g=="object"?g:void 0,v=h?.id??g;if(!u)return d(v),y(v,h,x);try{return l(v,x)}catch(C){if(y9(C)&&v.startsWith("bui.")){let T=f9(l,v,x);if(T!==void 0)return m(v),T}return p(v),y(v,h,x)}},[l,y,u,m,d,p]);return useMemo(()=>({formatMessage:b,locale:s}),[b,s])}var Se=e=>{for(let{id:t,defaultMessage:r}of Object.values(e))r&&(Uy[t]=r);return e};function g4e(e,t,r){let o=qn.useRef(null),n=qn.useRef(r);re(()=>{n.current=r;});let i=JSON.stringify(t);return qn.useEffect(()=>{if(!e)return;let a=new MutationObserver((l,s)=>{n.current(l,s);});return o.current=a,a.observe(e,t),()=>{a.disconnect(),o.current=null;}},[e,i]),o.current}function i_(e,t){let[r,o]=useState(()=>{try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.log(i),t}});return [r,i=>{try{let a=typeof i=="function"?i(r):i;o(a),window.localStorage.setItem(e,JSON.stringify(a));}catch(a){console.log(a);}}]}function S4e({ref:e,onSelectionChange:t,onSelectionEnd:r,isDisabled:o}){let n=qn.useRef(null);Oe({ref:e,isDisabled:o,onPressEnd(){let a=Y(e.current).getSelection();a&&e.current?.contains(a.anchorNode)&&r?.(a);},onPressStart(){let i=Y(e.current);n.current=i.getSelection(),n.current&&n.current.removeAllRanges();}}),useEffect(()=>{let i=e.current;if(!i||o)return;function a(){let u=Y(i).getSelection();u&&e.current?.contains(u.anchorNode)&&t(u);}let l=U(i);return l.addEventListener("selectionchange",a),()=>{l.removeEventListener("selectionchange",a);}},[e,t,o]);}var Wy=qn.createContext({breakpoints:breakpoints}),C9=({children:e,breakpoints:t=breakpoints})=>{let r=useMemo(()=>({breakpoints:t}),[t]);return jsx(Wy.Provider,{value:r,children:e})};function ki(e){let{breakpoints:t=breakpoints}=useContext(Wy),r=useMemo(()=>({tablet:`screen and (min-width: ${t.tablet}px)`,desktop:`screen and (min-width: ${t.desktop}px)`}),[t]),o=useCallback(()=>{let a=Y(typeof window>"u"?void 0:e),l=a.matchMedia(r.tablet);return a.matchMedia(r.desktop).matches?"desktop":l.matches?"tablet":"mobile"},[e,r]),[n,i]=qn.useState(o);return re(()=>{let a=Y(e),l=()=>{i(o());};return a.addEventListener("resize",l),l(),()=>{a.removeEventListener("resize",l);}},[e,o]),n}var jC=qn.createContext(void 0),qy=({portalContainer:e,children:t})=>jsx(jC.Provider,{value:e,children:t});qy.displayName="PortalContainerProvider";function L9(e){return e?.nodeType===Node.DOCUMENT_NODE}function M9(){let{containerWidth:e,containerHeight:t}=qn.useContext(fo);return {width:e,height:t}}var fo=qn.createContext({container:null,portalContainer:null,shouldContainOverlays:false,isContainerPositioned:false,containerWidth:void 0,containerHeight:void 0,shouldUseContainerAsBoundary:false}),A9=({children:e,container:t,portalContainer:r,shouldContainOverlays:o="auto",shouldUseContainerAsBoundary:n=false})=>{let i=ki(),[a,l]=useState(),[s,u]=useState(),[c,d]=useState(document),p=t??c.body;useEffect(()=>{let v=p?.getRootNode(),C;return L9(v)&&v!==document&&(C=zu(v.body)),()=>{C?.();}},[p]);let m=useMemo(()=>{let v=p===p.ownerDocument.body,C=p===document.body;return v||C||o==="never"?false:o==="always"?true:i!=="mobile"},[o,i,p]),[f,y]=useState(false),b=useRef(new WeakMap),g=Fy();useEffect(()=>{if(!p||g&&b.current.get(p))return;b.current.set(p,true);let C=Y(p).getComputedStyle(p),T=!!C.position&&C.position!=="static";T||console.warn("FrameProvider: container is not positioned. Please ensure the container is non-static."),y(T);let P=p.getBoundingClientRect();(P.width===0||P.height===0)&&console.error("FrameProvider: container does not have a width or height. Please ensure that the container is visible and has a width and height.");function k({width:w,height:E}){p&&(l(w),u(E));}let S=new ResizeObserver(w=>{for(let E of w)k({width:E.contentRect.width,height:E.contentRect.height});});return m&&(k({width:P.width,height:P.height}),S.observe(p)),p.dataset.shouldContainOverlays=m.toString(),()=>{S.disconnect(),p.dataset.shouldContainOverlays="";}},[p,m,g]);let x=r||p||c.body,h=useMemo(()=>({container:p,portalContainer:x,shouldContainOverlays:m,isContainerPositioned:f,containerWidth:a,containerHeight:s,shouldUseContainerAsBoundary:n}),[p,x,m,f,a,s,n]);return jsx(fo.Provider,{value:h,children:jsxs(qy,{portalContainer:h.portalContainer||void 0,children:[e,jsx("div",{ref:v=>{v&&d(v.ownerDocument);},className:sprinkles({display:"none"})})]})})};function yr(e){let t=useContext(jC),{portalContainer:r}=useContext(fo);return e||t||r||void 0}function Yy({ownerDocument:e=document}){let t=er(),[r,o]=useState(t==="keyboard"?"keyboard":"pointer");return useEffect(()=>{let n=()=>{o("pointer");},i=()=>{o("keyboard");};return e.addEventListener("pointermove",n,{passive:true,capture:true}),e.addEventListener("pointerdown",n,{passive:true,capture:true}),e.addEventListener("keydown",i,true),()=>{e.removeEventListener("pointermove",n,{capture:true}),e.removeEventListener("pointerdown",n,{capture:true}),e.removeEventListener("keydown",i,true);}},[e]),r}function V9(){return Object.prototype.hasOwnProperty.call(HTMLElement.prototype,"inert")}function Zy({ref:e,isDisabled:t}){useEffect(()=>{if(!e.current||t)return;let r=e.current;if(V9())return r.setAttribute("inert","true"),()=>{r.removeAttribute("inert");};let o=new Map,n=r.hasAttribute("aria-hidden")?r.getAttribute("aria-hidden")==="true":null;r.setAttribute("aria-hidden","true");let i=()=>{if(!e.current)return;let l=DR(e.current);for(let s of l)o.has(s)||(o.set(s,s.getAttribute("tabindex")),s.setAttribute("tabindex","-1"));};i();let a=new MutationObserver(l=>{for(let s of l)if(s.type==="childList"){for(let u of s.removedNodes)u instanceof Element&&o.delete(u);i();}});return a.observe(e.current,{childList:true,subtree:true,attributes:false}),()=>{a.disconnect();for(let[l,s]of o.entries())l.isConnected&&(s===null?l.removeAttribute("tabindex"):l.setAttribute("tabindex",s));n===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n?"true":"false");}},[e,t]);}var GC="var(--_1hotumh0)";function UC(e=typeof window>"u"?void 0:window){let[t,r]=useState("light"),[o,n]=useState(false),[i,a]=useState(false),[l,s]=useState(false);return useEffect(()=>{if(!e)return;let u=e.matchMedia("(prefers-color-scheme: dark)"),c=d=>{r(d.matches?"dark":"light");};return u.matches&&r("dark"),u.addEventListener("change",c),()=>{u.removeEventListener("change",c);}},[e]),useEffect(()=>{if(!e)return;let u=e.matchMedia("(prefers-contrast: more)"),c=d=>{n(d.matches);};return n(u.matches),u.addEventListener("change",c),()=>{u.removeEventListener("change",c);}},[e]),useEffect(()=>{if(!e)return;let u=e.matchMedia("(prefers-reduced-motion: reduce)"),c=d=>{a(d.matches);};return u.matches&&a(true),u.addEventListener("change",c),()=>{u.removeEventListener("change",c);}},[e]),useEffect(()=>{if(!e)return;let u=e.matchMedia("(prefers-reduced-transparency: reduce)"),c=d=>{s(d.matches);};return u.matches&&s(true),u.addEventListener("change",c),()=>{u.removeEventListener("change",c);}},[e]),{colorScheme:t,highContrast:o,reducedMotion:i,transparency:l}}var Is=createContext({theme:lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true});var p_="var(--hj25q10)";var eb={LIGHT:themes.base.light,DARK:themes.base.dark},tb=qn.forwardRef(({theme:e="system",children:t,setTheme:r,onThemeChange:o,className:n,style:i,UNSAFE_domProps:a,"data-block-id":l,"data-block-class":s,reducedMotion:u="user",shouldHandleVirtualKeyboard:c=true,minTouchTargetSize:d=24},p)=>{let{direction:m}=Q(),{colorScheme:f,reducedMotion:y,highContrast:b,transparency:g}=UC(),{name:x,...h}=useMemo(()=>{switch(e){case "system":return f==="light"?eb.LIGHT:eb.DARK;case "light":return eb.LIGHT;case "dark":return eb.DARK;default:return e}},[f,e]),v=ki(),C={"data-theme":x,"data-block-id":l,"data-block-class":s,"data-reduced-motion":u==="user"?y:u==="always","data-high-contrast":b,"data-transparency":g,"data-device":v},T=useMemo(()=>({theme:h,setTheme:P=>{r?.(P),o?.(P);},shouldHandleVirtualKeyboard:c}),[h,r,o,c]);return useEffect(()=>{r&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[r]),jsx(Is.Provider,{value:T,children:jsx(MotionConfig,{reducedMotion:u,children:jsx("div",{...M(a,C),className:_(bI,"BaselineUI-ThemeProvider",n),style:{...assignInlineVars(themeVars,h),...assignInlineVars({[GC]:m==="rtl"?"-1":"1",[p_]:`${d}px`}),...i},dir:m,ref:p,children:t})})})});tb.displayName="ThemeProvider";function Z7e(){MotionGlobalConfig.skipAnimations=true;}function J7e(){MotionGlobalConfig.skipAnimations=false;}var Mr=qn.forwardRef(({className:e,style:t,children:r,"data-block-id":o,"data-block-class":n,portalContainer:i,...a},l)=>{let{theme:s,shouldHandleVirtualKeyboard:u}=useContext(Is),c=yr();return jsx(Wv,{...a,portalContainer:i??c,children:jsx(tb,{ref:l,theme:s,shouldHandleVirtualKeyboard:u,style:t,className:_("BaselineUI-Portal",e),"data-block-id":o,"data-block-class":n,children:r})})});Mr.displayName="Portal";function rb({placement:e,isDisabled:t}){let r=useMemo(()=>{if(t)return {x:0,y:0};switch(e){case "top":return {x:0,y:-4};case "bottom":return {x:0,y:4};case "left":return {x:-4,y:0};case "right":return {x:4,y:0};default:return {x:0,y:4}}},[e,t]);return {transitionProps:{initial:t?{opacity:1,scale:1,...r}:{opacity:0,scale:.98,...r},animate:{opacity:1,scale:1,x:0,y:0},transition:{ease:"easeOut"}}}}var h_=j({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),v_=j({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var qC=qn.forwardRef(({children:e,state:t,overlayProps:r,arrowProps:o,placement:n="bottom",variant:i,size:a,tooltipProps:l,includeArrow:s},u)=>{let c=useRef(null),{tooltipProps:d}=YT({isOpen:t.isOpen},t,c),p=n==="center"?"bottom":n,{transitionProps:m}=rb({placement:n});return jsxs(motion.span,{...M(r,m),ref:se(u,c),"data-placement":p,children:[s?jsx("div",{className:h_({placement:p,variant:i}),...o}):null,jsx("div",{...M(d,l),className:v_({variant:i,size:a}),children:e})]})});qC.displayName="TooltipContent";var ot=qn.forwardRef(({children:e,placement:t="bottom",delay:r=1e3,closeDelay:o=500,variant:n="default",size:i="md",includeArrow:a=true,portalContainer:l,className:s,style:u,"data-block-id":c,"data-block-class":d,...p},m)=>{let f=qn.useRef(null),y=qn.useRef(null),b=!p.text||p.isDisabled,g=XT({...p,delay:r,closeDelay:o}),{triggerProps:x,tooltipProps:h}=ZT({...p,isDisabled:b},g,f),v=yr(l),{overlayProps:C,arrowProps:T,placement:P,updatePosition:k}=Sa({arrowSize:a?13:0,targetRef:f,arrowBoundaryOffset:a?8:0,offset:a?12:2,overlayRef:y,placement:t,isOpen:g.isOpen,...p});hI({ref:y,threshold:1,onIntersect:k,isDisabled:!g.isOpen}),Oy({ref:f,onResize:k,isDisabled:!g.isOpen});let S=qn.isValidElement(e)?jsx(qp,{...x,ref:f,children:e}):typeof e=="function"?e({triggerProps:x,triggerRef:f}):null;return jsxs(Fragment,{children:[S,g.isOpen?jsx(Mr,{disableFocusManagement:true,portalContainer:v,className:s,style:u,"data-block-id":c,"data-block-class":d,children:jsx(qC,{ref:se(m,y),state:g,arrowProps:T,overlayProps:C,placement:P??"bottom",tooltipProps:h,variant:n,size:i,includeArrow:a,children:p.text})}):null]})});ot.displayName="Tooltip";var n4={xxs:8,xs:12,sm:16,md:20,lg:24},me=qn.forwardRef((e,t)=>{let r=pe(t),{tooltipProps:o}=_y(e,r);return o?jsx(ot,{...o,children:jsx(YC,{...e,ref:r})}):jsx(YC,{...e,ref:r})});me.displayName="ActionIconButton";var YC=qn.forwardRef((e,t)=>{let[r,o]=Ie(e,t,io),{className:n,style:i,icon:a,size:l="md",variant:s="primary",UNSAFE_isVisuallyInteractiveOnly:u,elementType:c=u?"div":"button",isExcludedFromRovingFocus:d,isDisabled:p,"data-block-id":m,"data-block-class":f,"aria-label":y,"aria-labelledby":b,slot:g,...x}=r;useEffect(()=>{!y&&!b&&!u&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[y,b,u]);let{buttonProps:h,isPressed:v,ref:C,isFocusVisible:T,isFocused:P,isHovered:k,uiStateOptions:S}=Ly({...x,"aria-label":y,"aria-labelledby":b,isDisabled:p,excludeFromTabOrder:x.excludeFromTabOrder??d,elementType:c}),w=ve({"data-block-id":m,"data-block-class":f,"data-focused":P,"data-focus-visible":T,"data-disabled":p,"data-hovered":k,"data-pressed":v,"data-bui-avoid-focus":d});return jsxs(c,{...M(h,w),className:_(tI({variant:s,size:l,isDisabled:!!p,isFocusVisible:T,isHovered:k}),"BaselineUI-ActionIconButton",typeof n=="function"?n(S):n),ref:se(o,C),style:typeof i=="function"?i(S):i,...u&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsx(a,{role:"presentation",size:n4[l]}),s==="popover"&&jsx(CaretDownIcon,{size:8,className:Ry})]})});YC.displayName="ActionIconButtonCore";var _s=j({defaultClassName:"nrh1ehy _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasError:{true:"_1yep5z610h"},labelPosition:{start:"nrh1eh11",top:"nrh1eh12"}},defaultVariants:{},compoundVariants:[]}),C_="nrh1ehx _1yep5z6iv _1yep5z6iw _1yep5z6ix",nb=j({defaultClassName:"nrh1ehm _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"nrh1ehn"},labelPosition:{top:"nrh1eho",start:"nrh1ehp"},isMultiLine:{true:"nrh1ehq"}},defaultVariants:{},compoundVariants:[]}),Ei=j({defaultClassName:"nrh1ehr _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"nrh1ehs",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"},isMultiLine:{true:"_1yep5z6qx _1yep5z6qy _1yep5z6qz _1yep5z615v _1yep5z615w _1yep5z615x"}},defaultVariants:{},compoundVariants:[]}),zi="_1yep5z6ev _1yep5z6dy",ln=j({defaultClassName:"nrh1eh3 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"nrh1eh6"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),sn=j({defaultClassName:"nrh1eh0 _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),wi=j({defaultClassName:"nrh1eh7 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"nrh1eh8",error:"_1yep5z612q",warning:"nrh1eha"},isHovered:{true:"nrh1ehb"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"nrh1ehd"},variant:{primary:"nrh1ehe",ghost:"nrh1ehf"},isReadOnly:{true:"_1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"},isMultiLine:{true:"nrh1ehh _1yep5z615g _1yep5z615h _1yep5z615i"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61pa _1yep5z61u5 _1yep5z61u7"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_1yep5z61pm"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61pb"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61pb"],[{isReadOnly:true,variant:"primary",isFocused:false},"nrh1ehi"],[{isReadOnly:true,isFocused:true},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"],[{isHovered:true,isFocused:false,isDisabled:false,isReadOnly:false},"nrh1ehj"],[{isMultiLine:true,isReadOnly:true},"nrh1ehk"],[{isMultiLine:true,isDisabled:true},"nrh1ehl"]]});function JC({description:e,errorMessage:t,warningMessage:r}){return e?"description":t?"errorMessage":r?"warningMessage":null}function br({description:e,errorMessageProps:t,descriptionProps:r,warningMessage:o,warningMessageProps:n,errorMessage:i,labelPosition:a,isDisabled:l}){switch(JC({description:e,errorMessage:i,warningMessage:o})){case "description":return jsx("div",{...r,className:_s({isDisabled:l,labelPosition:a}),"aria-disabled":l,children:e});case "errorMessage":return jsx("div",{...t,className:_s({hasError:true,labelPosition:a}),"aria-disabled":l,children:i});case "warningMessage":return jsx("div",{...n,className:_s({isDisabled:l,labelPosition:a}),"aria-disabled":l,children:o});default:return null}}var P_=j({defaultClassName:"_1lnwne1 z9nup81",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup82"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:true,isInteractive:true},"_1lnwne4"]]}),S_="_1lnwne0";var Kn=qn.forwardRef(({className:e,style:t,labelPosition:r="top",variant:o="primary",showStepper:n=true,...i},a)=>{let l=qn.useRef(null),{locale:s}=Q(),u=ac({...i,locale:s}),{hoverProps:c,isHovered:d}=ae({isDisabled:i.isDisabled}),{focusProps:p,isFocusVisible:m,isFocused:f}=ne(),{labelProps:y,decrementButtonProps:b,inputProps:g,incrementButtonProps:x,groupProps:h,descriptionProps:v,errorMessageProps:C}=nc(i,u,l),T=useMemo(()=>i.isReadOnly?ReadOnlyIcon:i.isInvalid?ErrorCircleFilledIcon:null,[i.isInvalid,i.isReadOnly]),P=br({description:i.description,errorMessageProps:C,descriptionProps:v,errorMessage:i.errorMessage,labelPosition:r,isDisabled:i.isDisabled}),k=ve({"data-disabled":i.isDisabled,"data-readonly":i.isReadOnly,"data-hovered":d,"data-focused":f,"data-focus-visible":m,"data-invalid":i.isInvalid,"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"]});return jsxs("div",{style:t,className:_(sn({labelPosition:r}),"BaselineUI-NumberInput",e),...k,ref:a,children:[i.label?jsxs("div",{className:ln({labelPosition:r,hasMessage:!!P}),children:[jsx("label",{...y,className:zi,children:i.label}),r==="start"&&P]}):null,jsxs("div",{className:_({[Rs]:i.isDisabled}),children:[jsxs("div",{...M(h,c),className:_(wi({isHovered:d,isDisabled:!!i.isDisabled,isReadOnly:!!i.isReadOnly,validationState:i.isInvalid?"error":"valid",isFocused:f,variant:o}),{[S_]:r==="start"},"BaselineUI-NumberInput-Container"),children:[jsx("input",{...M(g,p),ref:l,className:_("BaselineUI-NumberInput-Input",nb({isDisabled:i.isDisabled,labelPosition:r}))}),T?jsx(T,{className:Ei({validationState:"error",isReadOnly:i.isReadOnly}),size:16}):null,n?jsxs("div",{className:P_({isHoveredOrFocused:d||f,isInteractive:!i.isReadOnly&&!i.isDisabled}),children:[jsx(me,{variant:"secondary",size:"xxs",icon:MinusIcon,...b,className:"BaselineUI-NumberInput-DecrementButton",isExcludedFromRovingFocus:true}),jsx(ze,{style:{height:16},orientation:"vertical"}),jsx(me,{variant:"secondary",size:"xxs",icon:PlusIcon,...x,className:"BaselineUI-NumberInput-DecrementButton",isExcludedFromRovingFocus:true})]}):null]}),r==="top"&&P]})]})});Kn.displayName="NumberInput";var k_="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",E_="_14uvjig3 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",z_="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",w_=j({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasNumberInput:{false:"_1yep5z6ol _1yep5z6om _1yep5z6on"}},defaultVariants:{},compoundVariants:[]}),R_=j({defaultClassName:"_14uvjigb _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g9 _1yep5z6lp _1yep5z6la",variantClassNames:{active:{true:"_14uvjigc _1yep5z612i _1yep5z6181 _1yep5z617t"},isDisabled:{true:"_14uvjigd _1yep5z612m"},isReadOnly:{true:"_1yep5z614p _1yep5z614q _1yep5z614r"},isFocusVisible:{true:"_14uvjigf _1yep5z612i _1yep5z617d"},isHovered:{true:"_14uvjigg _1yep5z612i"}},defaultVariants:{},compoundVariants:[]}),I_="z9nup8a _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",__="_14uvjig4 z9nup87 _1yep5z6g5 _1yep5z6ln",L_=j({defaultClassName:"_14uvjig5 _1yep5z6g9 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lo",variantClassNames:{active:{true:"_1yep5z612i"},isFocusVisible:{true:"_1yep5z612i"},isDisabled:{true:"_1yep5z612m"},isHovered:{true:"_1yep5z612i"}},defaultVariants:{},compoundVariants:[]});var Ms=qn.forwardRef(({className:e,style:t,onChange:r,onChangeEnd:o,numberFormatOptions:n,isDisabled:i,step:a,minValue:l,maxValue:s,value:u,"aria-label":c,"aria-labelledby":d,"aria-details":p,"aria-describedby":m,"data-block-id":f,"data-block-class":y,defaultValue:b,isReadOnly:g,label:x,id:h,includeNumberInput:v,numberInputClassName:C,numberInputStyle:T},P)=>{let k=qn.useRef(null),S={onChange:r===void 0?void 0:R=>{r(R[0]);},isDisabled:i||g,step:a,minValue:l,maxValue:s,onChangeEnd:o===void 0?void 0:R=>{o(R[0]);},value:u===void 0?void 0:[u],defaultValue:b===void 0?void 0:[b],"aria-label":c,"aria-labelledby":d,"aria-details":p,"aria-describedby":m,id:h,label:x},w=So(n),E=dc({...S,numberFormatter:w}),{trackProps:z,groupProps:A,labelProps:D}=uc(S,E,k),O=jsx(Kn,{variant:"ghost",showStepper:false,className:C,"aria-label":c,"aria-labelledby":D.id,isDisabled:i,isReadOnly:g,value:E.getThumbValue(0),formatOptions:n,onChange:R=>{E.setThumbValue(0,R);},style:{width:60,textAlign:"right",flexShrink:0,...T}});return jsxs("div",{...A,style:t,"data-block-id":f,"data-block-class":y,className:_(k_,"BaselineUI-Slider",e),children:[x?jsxs("div",{className:z_,children:[jsx("label",{...D,className:_(w_({isDisabled:i,hasNumberInput:!!v}),"BaselineUI-Slider-Label"),children:x}),v?O:null]}):null,jsxs("div",{className:E_,children:[jsx("div",{...z,className:_(__,"BaselineUI-Slider-Track"),ref:se(k,P),"data-testid":"track",children:jsx(d4,{state:E,trackRef:k,isDisabled:i,isReadOnly:g})}),v&&!x?O:null]})]})});Ms.displayName="Slider";function d4({state:e,trackRef:t,isDisabled:r,isReadOnly:o}){let n=qn.useRef(null),{thumbProps:i,inputProps:a,isDragging:l}=cc({trackRef:t,inputRef:n},e),{focusProps:s,isFocused:u,isFocusVisible:c}=ne(),{hoverProps:d,isHovered:p}=ae({isDisabled:r}),{direction:m}=Q(),f=ve({"data-disabled":r,"data-readonly":o,"data-hovered":p,"data-focus-visible":c,"data-dragging":l,"data-focused":u});return jsxs(Fragment,{children:[jsx("div",{className:_(L_({isDisabled:r,isFocusVisible:c,active:l,isHovered:p}),"BaselineUI-Slider-TrackHighlight"),style:{width:m==="rtl"?`calc(100% - ${i.style?.left})`:i.style?.left},"data-testid":"track-highlight"}),jsxs("div",{...M(i,d,f),className:_(I_,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsx("div",{className:_(R_({isDisabled:r,isFocusVisible:c,active:l,isReadOnly:o,isHovered:p}),"BaselineUI-Slider-Thumb")}),jsx(Ne,{children:jsx("input",{ref:n,...M(a,s)})})]})]})}var M_=j({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610x",title:"_1yep5z610x",label:"_1yep5z610y",value:"_1yep5z610y",helper:"_1yep5z610z",body:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61lj"],[{type:"title",size:"md"},"_1yep5z61lm"],[{type:"title",size:"lg"},"_1yep5z61lp"],[{type:"body",size:"sm"},"_1yep5z61m9"],[{type:"body",size:"md"},"_1yep5z61mc"],[{type:"body",size:"lg"},"_1yep5z61mc"],[{type:"subtitle",size:"sm"},"_1yep5z61m5"],[{type:"subtitle",size:"md"},"_1yep5z61m8"],[{type:"subtitle",size:"lg"},"_1yep5z61m8"],[{type:"label",size:"md"},"_1yep5z61m7"],[{type:"label",size:"lg"},"_1yep5z61m7"],[{type:"value",size:"md"},"_1yep5z61m7"],[{type:"value",size:"lg"},"_1yep5z61m7"],[{type:"helper",size:"sm"},"_1yep5z61m1"]]});var Je=qn.forwardRef((e,t)=>{let[r,o]=Ie({...e,slot:e.slot??null},t,Do),{elementType:n="span",type:i="title",children:a,size:l="md",...s}=r;return jsx(n,{...s,className:_(M_({size:l,type:i}),"BaselineUI-Text",s.className),ref:o,children:a})});Je.displayName="Text";var A_=j({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6124",medium:"_1yep5z6125"},isFocusVisible:{true:"_1yep5z617u _1yep5z617w _1yep5z617x _1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),O_="siobe24";var ib=qn.forwardRef(({className:e,style:t,children:r,background:o="medium",title:n,action:i,"data-block-id":a,"data-block-class":l,onCloseRequest:s,contentStyle:u,contentClassName:c,closeLabel:d,...p},m)=>{let{formatMessage:f}=fe(),y=qn.useRef(null),{dialogProps:b,titleProps:g}=Tc(p,y),{focusProps:x,isFocusVisible:h}=ne();return jsxs("div",{...M(b,x),className:_(A_({background:o,isFocusVisible:h}),"BaselineUI-Drawer",e),"data-block-id":a,"data-block-class":l,style:t,ref:se(m,y),children:[jsxs(J,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:O_,children:[jsx(Je,{type:"title",size:"sm",...g,className:gI,children:n}),jsxs(J,{children:[i?jsx(me,{...i,variant:"secondary"}):null,jsx(me,{variant:"secondary",size:"md",icon:XIcon,onPress:s,"aria-label":d??f(b4.close)})]})]}),jsx(ze,{variant:o==="subtle"?"primary":"secondary"}),jsx(J,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...u},className:_(c,"BaselineUI-Drawer-Content"),children:r})]})});ib.displayName="Drawer";var b4=Se({close:{id:"bui.drawer.close",defaultMessage:"Close"}});var Vn=qn.createContext({state:null,triggerProps:{},overlayProps:{}}),un=({children:e,...t})=>{let r=Tr(t),{triggerProps:o,overlayProps:n}=Nn({type:"dialog"},r),i=useMemo(()=>({state:r,triggerProps:o,overlayProps:n}),[r,o,n]);return jsx(Vn.Provider,{value:i,children:e})};un.displayName="Modal";function H_(e,t,r){let[o,n]=useState({}),i=useRef(false),[a,l]=useState(null),{container:s,shouldContainOverlays:u,isContainerPositioned:c,containerHeight:d,portalContainer:p}=useContext(fo);useEffect(()=>{if(!e)return;let b=Y(e),g=b.visualViewport,x=()=>{let h=r?g?.height??b.innerHeight:b.innerHeight,v=b.innerHeight-h;if(i.current=r?v>60:false,i.current){let C=de(e.ownerDocument);C&&kR(C)&&C.scrollIntoView({behavior:"smooth",block:"center"});}if(t)n({maxHeight:(h||0)*.8,bottom:v});else {let C=`${h||0}px`,T=u?`min(${C}, ${d?d+"px":C})`:C;n({maxHeight:`calc(${T} - (2 * ${themeVars.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:i.current?`calc(env(safe-area-inset-top) + ${themeVars.spacing.xl})`:void 0});}};return x(),g?.addEventListener("resize",x),b.addEventListener("resize",x),()=>{g?.removeEventListener("resize",x),b.removeEventListener("resize",x);}},[e,t,u,r,d]);let m=p&&!Z(s,p);useEffect(()=>{if(!s||!u||c&&!m)return;let b=()=>{s&&l(fy(s));};b();let g=new ResizeObserver(()=>{b();});return g.observe(s),()=>{g.disconnect();}},[s,u,c,m]);let f=useMemo(()=>({...o,overflow:"auto",position:"relative"}),[o]),y=useMemo(()=>{if(!t&&i.current)return {alignItems:"flex-start"};if(u&&(!c||m)){let b=a||(s?fy(s):{x:0,y:0,height:0,width:0});return {position:"absolute",left:b.x,top:b.y,height:b.height,width:b.width}}return {}},[t,i.current,s,c,u,a,m]);return {dialogStyle:f,containerStyle:y}}var $_="aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il",j_="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",G_=j({defaultClassName:"aml2vl3 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6is _1yep5z6it _1yep5z6iu",variantClassNames:{enableDrawer:{false:"_1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),U_=j({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var rP=qn.forwardRef(({children:e,className:t,style:r,isDismissable:o=true,isKeyboardDismissDisabled:n=false,portalContainer:i,disableAnimation:a,enableDrawer:l=false,"data-block-id":s,"data-block-class":u,shouldCloseOnInteractOutside:c,UNSAFE_enableInert:d,disableFocusManagement:p},m)=>{let{state:f}=qn.useContext(Vn),[y,b]=qn.useState(true),g=qn.useRef(null),[x,h]=qn.useState(null),{shouldHandleVirtualKeyboard:v}=useContext(Is),{shouldContainOverlays:C,container:T,portalContainer:P}=useContext(fo),k=ki(),S=typeof l=="boolean"&&l||l==="auto"&&k==="mobile";he(f,"ModalContent must be a child of Modal");let w=qn.useRef(null),E=typeof o=="function"?o(S):o,z=typeof n=="function"?n(S):n,A=typeof d=="function"?d(S):d??false,D=i||P,O=useMemo(()=>C&&T?T:D?.ownerDocument?.body??T?.ownerDocument?.body??document.body,[C,T,D]),{modalProps:R,underlayProps:N}=Hx({isDismissable:y&&E,shouldCloseOnInteractOutside:G=>!T?.contains(G)&&C&&!D?.contains(G)?false:c?.(G)??true,isKeyboardDismissDisabled:z,root:O,shouldUseInert:A},f,w),{dialogStyle:F,containerStyle:I}=H_(x,S,v),V=useMemo(()=>({isDrawer:S,closeDrawer:f.close,dialogStyle:F,dialogRef:g,setDialogElement:h,isWithinModal:true}),[S,f.close,F,g,h]),H=useMemo(()=>({setIsPopoverSafelyClosed:b}),[b]),K={duration:.3,type:"tween",ease:"easeOut"},L={type:"spring",duration:.3},B={open:{opacity:1,transform:S?"translateY(0%)":"scale(1)"},closed:a?{opacity:1,transform:S?"translateY(0%)":"scale(1)"}:{opacity:0,transform:S?"translateY(100%)":"scale(0.95)"}};return jsx(lb.Provider,{value:V,children:jsx(sb.Provider,{value:H,children:jsxs(Mr,{className:_(G_({enableDrawer:S,shouldContainOverlays:C}),t),"data-block-id":s,"data-block-class":u,style:{...r,...I},portalContainer:i,disableFocusManagement:p,ref:m,children:[jsx(motion.div,{...N,variants:{open:{opacity:1},closed:{opacity:a?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:K,className:_(U_({shouldContainOverlays:C}),"BaselineUI-Modal-Underlay")}),jsx(motion.div,{...R,ref:w,"data-drawer":S,className:_(S?$_:j_,"BaselineUI-Modal-Content"),variants:B,transition:S?K:L,initial:"closed",animate:"open",exit:"closed",children:typeof e=="function"?e(f):e})]})})})});rP.displayName="ModalContentCore";var lb=qn.createContext({isDrawer:false,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:false}),sb=qn.createContext({setIsPopoverSafelyClosed:()=>{}}),cn=qn.forwardRef(({shouldAnimateOnMount:e=true,disableAnimation:t,...r},o)=>{let{state:n}=qn.useContext(Vn);return jsx(AnimatePresence,{initial:e&&!t,children:n?.isOpen?jsx(rP,{...r,disableAnimation:t,ref:o}):null})});cn.displayName="ModalContent";var Y_="var(--cjv3et0)",Z_=j({defaultClassName:"cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1",variantClassNames:{size:{sm:"cjv3et2",md:"cjv3et3",lg:"cjv3et4",content:"cjv3et5"},variant:{primary:"_1yep5z6137",ghost:"cjv3et7"},overlayType:{modal:"cjv3et8",popover:"cjv3et9"},isDrawer:{true:"cjv3eta _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8 _1yep5z617q"},isFocusVisible:{true:"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u1"}},defaultVariants:{},compoundVariants:[]});function J_(e,t){let r=e["aria-label"],o=e["aria-labelledby"],[n,i]=useState(()=>r||"");return useEffect(()=>{if(r){i(r);return}if(!o){i("");return}let a=t?.current?.getRootNode()??U(null),l=o.replaceAll(":",String.raw`\:`),s=a.querySelector(`#${l}`);if(s?.textContent){i(s.textContent);return}let u=U(null),c=a===u?u.body:a,d=new MutationObserver(()=>{let p=a.querySelector(`#${l}`);p?.textContent&&(i(p.textContent),d.disconnect());});return d.observe(c,{childList:true,subtree:true}),()=>{d.disconnect();}},[r,o,t]),n}var nP=qn.createContext({titleProps:{}}),Ar=qn.forwardRef(({children:e,className:t,style:r,inheritDrawer:o,size:n="md",variant:i="primary","data-block-id":a,"data-block-class":l,drawerBackground:s,...u},c)=>{let d=qn.useRef(null),p=qn.useRef(null),{containerWidth:m,shouldContainOverlays:f}=useContext(fo),{isDrawer:y,closeDrawer:b,dialogStyle:g,setDialogElement:x,isWithinModal:h}=useContext(lb),v=J_(u,p),{focusProps:C,isFocusVisible:T}=ne(),{dialogProps:P,titleProps:k}=Tc(u,d),S=useMemo(()=>({titleProps:k}),[k]);return y&&o?jsx(ib,{title:v,onCloseRequest:b,className:t,style:g,...u,"data-drawer":true,"data-block-id":a,"data-block-class":l,ref:se(c,p,w=>{x(w);}),background:s,children:e}):jsx(nP.Provider,{value:S,children:jsx("section",{...M(P,C),"data-block-id":a,"data-block-class":l,"data-focus-visible":T,"data-overlay-type":h?"modal":"popover",ref:se(d,c,w=>{x(w);}),style:{...g,...r,...assignInlineVars({[Y_]:m&&f?`${m}px`:"100vw"})},className:_(Z_({size:y?"content":n,variant:i,isDrawer:y,isFocusVisible:T,overlayType:h?"modal":"popover"}),"BaselineUI-Dialog",t),children:e})})});Ar.displayName="Dialog";var eL=qn.forwardRef(({children:e,className:t,style:r},o)=>{let{titleProps:n}=useContext(nP);return qn.isValidElement(e)?qn.cloneElement(e,{...n,ref:o,className:_(e.props.className,t),style:{...e.props.style,...r}}):jsx("h3",{...n,ref:o,className:t,style:r,children:e})});eL.displayName="DialogTitle";var oL=({children:e,isOpen:t,popoverContentRef:r,portalContainer:o,style:n})=>{let[i,a]=useState(false),[l,s]=useState(null),u=useRef(null),{setIsPopoverSafelyClosed:c}=useContext(sb);useEffect(()=>{t?(a(true),u.current&&clearTimeout(u.current)):u.current=setTimeout(()=>{a(false);},300);},[t]),useEffect(()=>()=>{u.current&&clearTimeout(u.current);},[]);let d=r.current,p=useRef(null);return o?p.current=o:d&&(p.current=U(d).body),useEffect(()=>{d&&s(d.getBoundingClientRect());},[d]),useEffect(()=>{c(!i);},[i,c]),jsxs(Fragment,{children:[i?R2.createPortal(jsx("div",{"aria-hidden":true,style:{position:"absolute",left:n?.left,top:n?.top,width:l?.width,height:l?.height,zIndex:n?.zIndex?+n.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer","data-testid":"event-leak-prevention-layer"}),p.current??U(d).body):null,e]})};var{color:Os}=themeVars,nL=({placement:e,arrowProps:t})=>jsxs(Fragment,{children:[jsxs("svg",{...t,className:_(t.className,oI({placement:e}),"BaselineUI-PopoverContent-Arrow"),style:{...t.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"arrow",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:Os.border.medium}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Os.background.primary.subtle,stroke:Os.background.primary.subtle})]}),jsxs("svg",{...t,className:_(t.className,nI({placement:e}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t.style,position:"absolute"},"data-testid":"arrow-focused",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.543371 2H0V0H1.45663L7.5 6.97312L13.5434 0H15V2H14.4566L7.5 10.0269L0.543371 2Z",fill:Os.border.interactive.enabled}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Os.background.primary.subtle,stroke:Os.background.primary.subtle})]})]});function aL({triggerRef:e,updatePosition:t,isOpen:r,boundaryElement:o,isDisabled:n=false}){let i=useRef(null),a=useRef(t);a.current=t;let l=useCallback(()=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{a.current(),i.current=null;});},[]);useGranularEffect(()=>{if(!r||n||!e.current)return;let s=U(e.current),u=Y(s.body),c=[];u.addEventListener("scroll",l,true),c.push([u,"scroll"]);let d=new Set;o&&d.add(o);let p=zl(e.current),m=new Set([...d,...p]);for(let f of m)f!==s.body&&(f.addEventListener("scroll",l,true),c.push([f,"scroll"]));return ()=>{i.current&&(cancelAnimationFrame(i.current),i.current=null);for(let[f,y]of c)f.removeEventListener(y,l,true);}},[r,n,o],[l,e]);}var W4=["top","bottom","left","right"],lP=qn.forwardRef(({portalClassName:e,portalStyle:t,className:r,style:o,state:n,overlayProps:i,underlayClassName:a,children:l,includeArrow:s=false,offset:u=2,portalContainer:c,contentContainerClassName:d,contentContainerStyle:p,setPopoverStyle:m,"data-block-id":f,"data-block-class":y,disableAnimation:b,popoverContainerRef:g,shouldContainFocus:x,arrowClassName:h,arrowStyle:v,disableFocusManagement:C,boundaryElement:T,boundaryAxis:P,horizontalBoundaryBehavior:k,shouldRepositionOnScroll:S=false,elementHandle:w,...E},z)=>{let A=pe(g),D=yr(c),{container:O,shouldUseContainerAsBoundary:R}=useContext(fo),N=useMemo(()=>T===void 0?R&&O?O:void 0:T,[T,R,O]),F=s?8:0,{underlayProps:I,popoverProps:V,placement:H,arrowProps:K,updatePosition:L}=tx({...E,offset:u+F,popoverRef:A,containerPadding:E.containerPadding||0,boundaryElement:N,boundaryAxis:P,horizontalBoundaryBehavior:k,shouldCloseOnScroll:!S},n);aL({triggerRef:E.triggerRef,updatePosition:L,isOpen:n.isOpen,boundaryElement:N,isDisabled:!S}),useImperativeHandle(w,()=>({updatePosition:L}),[L]),delete V.style?.position;let[B,G]=useState();re(()=>{let Ee=E.triggerRef.current;Ee&&G(Ee.offsetWidth);},[E.triggerRef]);let q=useCallback(Ee=>{G(Ee.target.offsetWidth);},[]);Oy({ref:E.triggerRef,isDisabled:!n.isOpen,onResize:q});let W=(H==="center"?"bottom":H)||"bottom",X=useMemo(()=>({isOpen:n.isOpen}),[n.isOpen]),{transitionProps:ce}=rb({placement:H||"bottom",isDisabled:b}),te=useMemo(()=>({...V.style,...assignInlineVars({[uI]:`${B??0}px`}),...Dy(o,X)}),[V.style,B,o,X]);useEffect(()=>{m({left:V.style?.left,top:V.style?.top,zIndex:te.zIndex});},[V.style?.left,V.style?.top,m,te.zIndex]);let ue=useMemo(()=>({...K,className:_(K.className,rd(h,X)),style:{...K.style,...Dy(v,X)}}),[K,h,v,X]);return jsxs(Mr,{portalContainer:D,style:t,className:e,ref:z,"data-block-id":f,"data-block-class":y,shouldContainFocus:x,disableFocusManagement:C,children:[!E.isNonModal&&jsx("div",{...I,className:_(sI,rd(a,X),"BaselineUI-Popover-Underlay")}),jsxs(motion.div,{...M(V,ce),style:te,ref:A,className:_(iI,rd(r,X),"BaselineUI-Popover-ContentContainer"),"data-placement":W4.find(Ee=>H?.includes(Ee))??"",children:[s?jsx(nL,{placement:W,arrowProps:ue}):null,jsx(lf,{onDismiss:n.close}),jsx("div",{...i,style:Dy(p,X),className:_(aI,rd(d,X),"BaselineUI-Popover-Content"),children:typeof l=="function"?l(n):l}),jsx(lf,{onDismiss:n.close})]})]})});lP.displayName="PopoverContentCore";var Et=qn.forwardRef(({state:e,overlayProps:t,portalContainer:r,...o},n)=>{let{state:i,overlayTriggerAria:{overlayProps:a},triggerRef:l}=useContext(id),[s,u]=useState({}),c=yr(r),d=e||i,p=o.triggerRef||l,m=t||a;he(p);let f=qn.useRef(null);return jsx(oL,{isOpen:d?.isOpen??false,popoverContentRef:f,portalContainer:c,style:s,children:d?.isOpen?jsx(lP,{ref:n,...o,triggerRef:p,overlayProps:m,state:d,portalContainer:c,setPopoverStyle:u,popoverContainerRef:f}):null})});Et.displayName="PopoverContent";var Ns=({icon:e,tooltip:t,label:r,isFocusable:o=true,...n})=>{let{tooltipProps:i}=mr({label:r,tooltip:t,offset:9});return jsx(ot,{...i,children:({triggerProps:a,triggerRef:l})=>jsx(J,{display:"inline-flex",...a,ref:l,tabIndex:o?0:void 0,"data-testid":"icon-with-tooltip",children:jsx(e,{...n})})})};var pL=qn.forwardRef(({className:e,style:t,onChange:r,"data-block-id":o,icon:n,formatValue:i=m=>m,tooltip:a=true,iconTooltip:l=true,popoverContentProps:s,isDisabled:u,onTriggerPress:c,...d},p)=>{let m=pe(p),[f,y]=ye(d.value,d.defaultValue||0,r),[b,g]=qn.useState(false),{keyboardProps:x}=Ae({onKeyDown:T=>{(T.key==="Enter"||T.key==="Escape")&&g(false);}}),{tooltipProps:h}=mr({label:d["aria-label"],tooltip:a}),v=i(f||0),C=h?.isDisabled||d["aria-label"]?`${d["aria-label"]}, ${v}`:v.toString();return jsxs(J,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:_("BaselineUI-IconSlider",e),"data-block-id":o,style:t,ref:m,children:[n?jsx(Ns,{icon:n,label:d["aria-label"],tooltip:l,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsxs(Mo,{type:"dialog",isOpen:b,onOpenChange:g,children:[jsx(Ao,{children:jsx(ot,{...h,children:jsx(Me,{label:v,variant:"popover","aria-label":C,isDisabled:u,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"},onPressStart:c})})}),jsx(Et,{placement:"bottom start",...s,children:jsx(Ar,{size:"content","aria-label":C,children:jsx(Rt,{autoFocus:true,children:jsx(J,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...x,children:jsx(Ms,{...d,onChange:T=>{y(T),r?.(T);},value:f})})})})})]})]})});pL.displayName="IconSlider";var mL=j({defaultClassName:"bpklwa7 z9nup88",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"bpklwac"]]}),fL=j({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),yL="bpklwad",bL=j({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),gL="bpklwa6",hL=j({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var TL=qn.forwardRef(({className:e,label:t,labelPosition:r="top",statusLabel:o,style:n,"data-block-id":i,"data-block-class":a,...l},s)=>{let u=qn.useRef(null),c=zr(l),{inputProps:d,isPressed:p,labelProps:m}=Vc({...l,children:t},c,u),{isFocusVisible:f,focusProps:y}=ne(),{hoverProps:b,isHovered:g}=ae({isDisabled:l.isDisabled}),x=ve({"data-block-id":i,"data-block-class":a,"data-focused":f,"data-disabled":l.isDisabled,"data-focus-visible":f,"data-selected":c.isSelected,"data-readonly":l.isReadOnly,"data-hovered":g,"data-pressed":p}),h=jsx("div",{className:_(mL({isSelected:c.isSelected,isDisabled:!!l.isDisabled,isFocused:f,isReadOnly:!!l.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:_(fL({isSelected:c.isSelected,isDisabled:l.isDisabled,isReadOnly:l.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxs("label",{...M(x,m,b),className:_(bL({labelPosition:r}),"BaselineUI-Switch",e),style:n,ref:s,children:[t?jsx("span",{className:_(yL,"BaselineUI-Switch-Label"),children:t}):null,jsx(Ne,{children:jsx("input",{...M(d,y),ref:u})}),o?jsxs("div",{className:hL({labelPosition:r}),children:[jsx("span",{className:_("BaselineUI-Switch-Status-Label",gL),children:c.isSelected?o.on:o.off}),h]}):h]})});TL.displayName="Switch";function Ks(e){let t=/^(data-.*)$/,r={};for(let o in e)t.test(o)||(r[o]=e[o]);return r}var CL="_19n40yy9 _1yep5z6ly _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6eu",PL=j({defaultClassName:"_19n40yy0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6g1 _1yep5z6m1 _1yep5z6lz _1yep5z6hg _1yep5z6f5 _1yep5z6ln _1yep5z6e6",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3 _1yep5z6106"},variant:{primary:"_1yep5z6137",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_1yep5z6oc _1yep5z6od _1yep5z6oe"},isDisabled:{true:"_19n40yy8 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var e7={sm:SearchIcon$1,md:SearchIcon,lg:SearchIcon},fb=qn.forwardRef(({className:e,size:t="md",variant:r="primary","data-block-id":o,"data-block-class":n,style:i,isClearFocusable:a=false,...l},s)=>{let u=qn.useRef(null);[l,u]=Ie(l,u,ri);let c=Wx(l),{inputProps:d,clearButtonProps:p}=Ux({...Ks(l),"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},c,u),{focusProps:m,isFocusVisible:f,isFocused:y}=ne({within:true,isTextInput:true}),b=e7[t],g=t==="sm"?XIcon$1:XIcon$2,x=ve({"data-block-id":o,"data-block-class":n,"data-focused":y,"data-disabled":l.isDisabled,"data-focus-visible":f}),h=oe(l,{global:true});return delete h.id,jsxs("div",{...h,...x,className:_(PL({size:t,isFocused:y,variant:r,hasText:!!c.value,isDisabled:l.isDisabled}),"BaselineUI-SearchInput",e),style:i,ref:s,children:[jsx(b,{size:t==="sm"?20:24}),jsx("input",{...M(d,m),className:CL,ref:u}),c.value!==""&&jsx(me,{icon:g,...p,size:t==="sm"?"xs":"sm",variant:"secondary",isExcludedFromRovingFocus:!a,excludeFromTabOrder:!a,...a?{onPressStart:v=>{p.onPressStart?.(v),p.onPress?.(v);}}:{}})]})});fb.displayName="SearchInput";var yb=j({defaultClassName:"_16vugd0b _1yep5z6ev _1yep5z6dy",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),bb=j({defaultClassName:"_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if z9nup88",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),Vs=j({defaultClassName:"_16vugd03 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6m1 _1yep5z6lz _1yep5z6h6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6f8 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lp _1yep5z6la _1yep5z6lk",variantClassNames:{isIndeterminate:{true:"_1yep5z6181 _1yep5z612c"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd06"},isHovered:{true:"_1yep5z613a"},isDisabled:{true:"_16vugd08 _1yep5z613e"},isReadOnly:{true:"_16vugd09 _1yep5z6118 _1yep5z6184 _1yep5z6182 _1yep5z613e"},hasError:{true:"_1yep5z612q _1yep5z6184 _1yep5z6182"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61of"],[{isSelected:true,isDisabled:false,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isSelected:true,isDisabled:true},"_1yep5z61op _1yep5z61nf"],[{isSelected:true,isDisabled:true,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:true,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false,hasError:false},"_1yep5z61u4"]]});var gb=({renderOption:e,optionClassName:t,optionStyle:r,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:a,withSectionHeaderPadding:l}={})=>Object.values({renderOption:e,optionClassName:t,optionStyle:r,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:a,withSectionHeaderPadding:l});var kL=j({defaultClassName:"_1fjxa6ld _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),EL="_1fjxa6la _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",zL=j({defaultClassName:"_1fjxa6lb _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),wL=j({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isDisabled:{true:"z9nup82 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),RL="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",IL="_1fjxa6l1",_L="_1fjxa6l2",LL="_1fjxa6l0";var OL=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),vb=qn.createContext({}),dn=qn.forwardRef(({withSectionHeaderPadding:e=false,showSectionHeader:t=false,renderSectionHeader:r,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:a,renderOption:l,className:s,dragAndDropHooks:u,listBoxHandle:c,"data-block-id":d,"data-block-class":p,...m},f)=>{let y=pe(f),b=qn.useRef(false),g=qn.useRef(null),x=useContext(so),{isVirtualized:h,layoutDelegate:v}=useContext(Re);useEffect(()=>{x&&(l||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.");},[x,l,o,n,i,a,r]),Es({ref:y,isDisabled:!u});let C=useCallback(S=>y.current?.querySelector(`[data-key="${S}"][role="option"]`),[y]);useEffect(()=>{if(!h)return;let S=y.current,w=S?.ownerDocument,E=w?.defaultView;if(S==null||w==null||E==null)return;let z=()=>{let L=ed(S);return L==null||L===w.body||L===w.documentElement},A=()=>S.querySelector('[role="option"][tabindex="0"]')??S.querySelector('[role="option"][data-focused="true"]'),D=()=>{let L=ed(S);return L!=null&&Z(S,L)},O=L=>L.composedPath().some(B=>B instanceof E.Node&&Z(S,B)),R=()=>{b.current=false;},N=()=>{g.current!=null&&E.cancelAnimationFrame(g.current),g.current=E.requestAnimationFrame(()=>{if(g.current=null,D())return;if(!z()){R();return}let L=A();L?.focus({preventScroll:true});});},F=L=>{OL.has(L.key)&&(b.current=true);},I=L=>{!OL.has(L.key)||!z()||!b.current||N();},V=L=>{O(L)||D()||R();},H=L=>{O(L)||R();},K=new MutationObserver(L=>{L.some(({addedNodes:B,removedNodes:G})=>B.length>0||G.length>0)&&b.current&&N();});return S.addEventListener("keydown",F),w.addEventListener("keydown",I,true),w.addEventListener("focusin",V,true),w.addEventListener("pointerdown",H,true),K.observe(S,{childList:true,subtree:true}),()=>{S.removeEventListener("keydown",F),w.removeEventListener("keydown",I,true),w.removeEventListener("focusin",V,true),w.removeEventListener("pointerdown",H,true),K.disconnect(),g.current!=null&&E.cancelAnimationFrame(g.current),R(),g.current=null;}},[h,y]);let T=useCallback((S,w)=>{if(!y.current)return;let E=C(S);if(E)E.scrollIntoView({block:"nearest",inline:"nearest",...w});else if(h&&v){let z=v.getItemRect(S);if(!z)return;v.virtualizer.delegate.setVisibleRect(z);}},[C,h,v,y]);useImperativeHandle(c,()=>({scrollIntoView:T,setFocusedKey:S=>{let w=C(S);!y.current||!w||(w.focus(),T(S));}}),[T,C,y]);let P={renderOption:l,optionClassName:n,optionStyle:o,renderSectionHeader:r,sectionClassName:a,sectionStyle:i,showSectionHeader:t,withSectionHeaderPadding:e},k=m.items?.[0]?.id;return jsx(Vv,{...m,dependencies:[...m.dependencies??[],k,...gb(P)],"data-block-id":d,"data-block-class":p,dragAndDropHooks:u,ref:y,className:_(EL,"BaselineUI-ListBox",s),children:S=>jsx(dP,{item:S,isFirstCollectionItem:k===S.id,...P},S.id)})});dn.displayName="UNSAFE_ListBox";var o7=qn.createContext({}),dP=e=>{let t=useContext(o7),{item:r,isFirstCollectionItem:o,id:n,value:i,...a}={...t,...e};return he(r,"Item is required"),"children"in r?jsx(Ed,{section:r,componentName:"ListBox",isFirstCollectionItem:o,...a}):jsx(Ga,{item:r,componentName:"ListBox",...a})};var Ed=qn.forwardRef(({section:e,isFirstCollectionItem:t,showSectionHeader:r,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:a,componentName:l="ListBox",selectionMode:s,selectedKeys:u,defaultSelectedKeys:c,onSelectionChange:d,disabledKeys:p,disallowEmptySelection:m,...f},y)=>{let{isVirtualized:b}=useContext(Re),g=o?.(e),x=l==="ListBox"?Bv:yx,h=s==null?{}:{selectionMode:s,selectedKeys:u,defaultSelectedKeys:c,onSelectionChange:d,disabledKeys:p,disallowEmptySelection:m};return jsxs(x,{id:e.id,"aria-label":e.title,...h,className:_(`BaselineUI-${l}-Section`,IL,b&&!t&&_L,typeof a=="function"?a(e):a),style:typeof i=="function"?i(e):i,ref:y,children:[r?g?jsx($m,{className:`BaselineUI-${l}-SectionHeader`,children:g}):jsx($m,{className:`BaselineUI-${l}-SectionHeader`,children:jsx(J,{className:_(RL,`BaselineUI-${l}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:e.title})}):null,jsx(_t,{items:e.children,children:v=>jsx(Ga,{componentName:l,item:v,...f},v.id)})]})});Ed.displayName="ListSection";var l7=({componentName:e})=>{let{direction:t}=Q();return jsx(J,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${e}-SubmenuChevron`,style:t==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},zd=({item:e,isSelected:t,isHovered:r,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:a,componentName:l="ListBox",hasSubmenu:s=false})=>{let u=e.icon,c=a!=="none",d="keyboardShortcut"in e?e.keyboardShortcut:e.description;return jsxs(J,{display:"flex",alignItems:"center",gap:"lg",className:_(wL({isHovered:r,isFocused:o,isDisabled:n}),`BaselineUI-${l}-OptionDefault`),children:[jsxs(J,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[c&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${l}-SelectionIndicator`,children:t?jsx(CheckmarkIcon,{size:24}):null}):null,c&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:Vs({isSelected:t,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:t?jsx(CheckmarkIcon$3,{size:12}):null})}):null,u?jsx(u,{size:24}):null,jsx(si,{slot:"label",elementType:"span",children:e.label})]}),s?jsx(l7,{componentName:l}):d?jsx(si,{slot:"description",className:_(zL({isDisabled:n}),`BaselineUI-${l}-OptionDescription`),children:d}):null]})},Ga=qn.forwardRef(({item:e,optionStyle:t,optionClassName:r,renderOption:o,componentName:n="ListBox",...i},a)=>{let{onPress:l,onKeyDown:s}=useContext(vb);return jsx(n==="ListBox"?Hv:bx,{...M(Ks(i),{onPress:c=>l?.(c,e.id),onKeyDown:s?c=>{s(c,e.id),c.continuePropagation();}:void 0}),id:e.id,value:e,className:c=>_(LL,`BaselineUI-${n}-Option`,typeof r=="function"?r(e,c):r),style:c=>typeof t=="function"?t(e,c):t,textValue:e.label,ref:a,children:c=>o?o(e,c):jsx(zd,{componentName:n,...c,item:e})})});Ga.displayName="ListOption";var mP="xyd2ss0 _1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6ru _1yep5z6rv _1yep5z6rw _1yep5z6u6 _1yep5z6u7 _1yep5z6u8 _1yep5z6vc _1yep5z6vd _1yep5z6ve _1yep5z6t0 _1yep5z6t1 _1yep5z6t2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z617v _1yep5z617u _1yep5z6143 _1yep5z617y _1yep5z6124";var xb=e=>e!=null&&typeof e=="object"&&!(Symbol.iterator in e);function KL(e,t,r){let o=xb(t)||xb(r),n=t!=null&&!xb(t)||r!=null&&!xb(r);return e&&n?"Menu: an object `selectionMode` expects `selectedKeys`/`defaultSelectedKeys` to be records keyed by section id.":!e&&o?"Menu: a per-section `selectedKeys`/`defaultSelectedKeys` record requires the object form of `selectionMode`.":null}var Tb=qn.forwardRef(({defaultOpen:e,onOpenChange:t,isOpen:r,isDisabled:o,contentClassName:n,placement:i="bottom start",isNonModal:a,shouldFlip:l,shouldUpdatePosition:s,boundaryElement:u,boundaryAxis:c,horizontalBoundaryBehavior:d,crossOffset:p,offset:m,triggerLabel:f,renderTrigger:y=({buttonProps:S,ref:w})=>jsx(Me,{...S,variant:"popover",ref:w,"data-testid":"menu-trigger"}),portalContainer:b,selectionMode:g,selectedKeys:x,defaultSelectedKeys:h,onSelectionChange:v,disabledKeys:C,disallowEmptySelection:T,...P},k)=>{let S=yr(b),w=g!=null&&typeof g=="object",E=qn.useMemo(()=>C==null?void 0:new Set(C),[C]),z=KL(w,x,h);if(z)throw new Error(z);return useEffect(()=>{!f&&!y&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[y,f]),jsxs(mx,{defaultOpen:e,onOpenChange:t,isOpen:r,children:[jsx(HL,{isDisabled:o,renderTrigger:y,triggerLabel:f}),jsx($L,{placement:i,isNonModal:a,shouldFlip:l,shouldUpdatePosition:s,boundaryElement:u,boundaryAxis:c,horizontalBoundaryBehavior:d,crossOffset:p,offset:m||2,className:"BaselineUI-Menu-Popover",portalContainer:S,children:jsx(ff,{...P,disabledKeys:E,...w?{}:{selectionMode:g,selectedKeys:x,defaultSelectedKeys:h,onSelectionChange:v,disallowEmptySelection:T},className:_(mP,n),ref:k,children:BL(P.items,S,{onAction:P.onAction,disabledKeys:E,contentClassName:n,selection:w?{modes:g,selectedKeys:x,defaultSelectedKeys:h,onSelectionChange:v,disallowEmptySelection:T}:void 0})})})]})});function BL(e,t,r){return e.map((o,n)=>{if("children"in o){let i=o,a=r.selection?.modes[i.id],l=r.selection;return jsx(Ed,{section:i,componentName:"Menu",isFirstCollectionItem:n===0,showSectionHeader:!!i.title,...a?{selectionMode:a,selectedKeys:l?.selectedKeys?.[i.id],defaultSelectedKeys:l?.defaultSelectedKeys?.[i.id],disabledKeys:r.disabledKeys,disallowEmptySelection:l?.disallowEmptySelection,onSelectionChange:s=>{l?.onSelectionChange?.(s,{sectionId:i.id});}}:{}},i.id)}return o.items?jsxs(fx,{children:[jsx(Ga,{item:o,componentName:"Menu"}),jsx($L,{className:"BaselineUI-Menu-SubmenuPopover",portalContainer:t,children:jsx(ff,{className:_(mP,r.contentClassName),onAction:r.onAction,disabledKeys:r.disabledKeys,children:BL(o.items,t,r)})})]},o.id):jsx(Ga,{item:o,componentName:"Menu"},o.id)})}var HL=qn.forwardRef(({renderTrigger:e,triggerLabel:t,isDisabled:r,...o},n)=>{let i=useContext(ka);return e?.({buttonProps:{...o,isDisabled:r,label:typeof t=="function"?t(i?.isOpen||false):t,isOpen:i?.isOpen||false,className:"BaselineUI-Menu-Trigger"},ref:n})});HL.displayName="MyTrigger";var $L=({children:e,...t})=>{let r=useContext(ka),[o]=Ie(t,void 0,jl);return r?.isOpen?jsx(Et,{...o,state:r,children:e}):null};Tb.displayName="Menu";var Cb=j({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:true,isDisabled:false},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var UL=qn.forwardRef(({className:e,style:t,children:r,variant:o="default",size:n="md",elementType:i="a",type:a="body","data-block-id":l,"data-block-class":s,title:u,role:c,...d},p)=>{let m=qn.useRef(null),{linkProps:f,isPressed:y}=Sh({...d,elementType:d.onPress?"span":i},m),{isFocusVisible:b,isFocused:g,focusProps:x}=ne(),{hoverProps:h,isHovered:v}=ae({isDisabled:d.isDisabled}),C=i,T=ve({"data-block-id":l,"data-block-class":s,"data-disabled":d.isDisabled,"data-focused":g,"data-pressed":y,"data-focus-visible":b,"data-hovered":v,role:c,title:u});return jsx(C,{...M(f,x,h,T),className:_(Cb({variant:o,isFocusVisible:b,isHovered:v,isDisabled:d.isDisabled,size:n,isActive:y,type:a}),"BaselineUI-Link",e),ref:se(m,p),style:t,children:r})});UL.displayName="Link";function Ii({isReadOnly:e,validationState:t}){return e?ReadOnlyIcon:t==="error"?ErrorCircleFilledIcon:t==="warning"?WarningFilledIcon$1:null}var WL="_1hgzo20",qL=j({defaultClassName:"_1hgzo22 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6dy",variantClassNames:{isPlaceholder:{true:"_1hgzo23"},isDisabled:{true:"_1hgzo24"}},defaultVariants:{},compoundVariants:[]}),XL="_1hgzo21 _1yep5z69c _1yep5z69d _1yep5z69e";var m7="Choose file",f7="No file chosen";function y7(e,t){return e.length===0?t:e.length===1?e[0].name:`${e.length} files`}var ZL=qn.forwardRef(({className:e,style:t,label:r,buttonLabel:o=m7,placeholder:n=f7,description:i,errorMessage:a,warningMessage:l,validationState:s,labelPosition:u="top",isDisabled:c,autoFocus:d,buttonStyle:p,buttonClassName:m,onValueChange:f,onSelect:y,acceptedFileTypes:b,allowsMultiple:g,defaultCamera:x,acceptDirectory:h,"aria-label":v,"aria-describedby":C,...T},P)=>{let[k,S]=qn.useState([]),w=ee(),E=ee(),z=ee(),A=ee(),D=ee(),O=ee(),{isFocusVisible:R,focusProps:N}=ne({within:true}),F=a?"error":s,I=F==="warning"&&!!l,V=a?A:I?D:i?z:void 0,H=br({description:a||I?void 0:i,errorMessage:a,warningMessage:I?l:void 0,descriptionProps:{id:z},errorMessageProps:{id:A},warningMessageProps:{id:D},labelPosition:u,isDisabled:c}),K=te=>te.filter(Boolean).join(" ")||void 0,L=v?void 0:K([r?w:void 0,E]),B=K([C,V,O]),G=te=>{let ue=te?[...te]:[];S(ue),f?.(ue),y?.(te);},q=y7(k,n),W=k.length===0,X=Ii({validationState:F}),ce=ve({"data-disabled":c,"data-validation-state":F});return jsx(rs,{acceptedFileTypes:b,allowsMultiple:g,defaultCamera:x,acceptDirectory:h,onSelect:G,children:jsxs("div",{ref:P,...T,...ce,className:_("BaselineUI-FileInput",sn({labelPosition:u}),e),style:t,children:[r||u==="start"&&H?jsxs("div",{className:ln({labelPosition:u,hasMessage:!!H}),children:[jsx(J,{id:w,elementType:"span",className:zi,children:r}),u==="start"&&H]}):null,jsxs("div",{...N,className:_(wi({validationState:F,isDisabled:c,variant:"primary",isFocused:R,isHovered:false,isReadOnly:false}),XL),children:[jsx(Me,{id:E,label:o,variant:"primary",size:"sm",autoFocus:d,isDisabled:c,"aria-label":v,"aria-labelledby":L,"aria-describedby":B,style:p,className:_(WL,m)}),jsx("span",{id:O,className:qL({isPlaceholder:W,isDisabled:c}),children:q}),X?jsx(X,{className:Ei({validationState:F}),size:16}):null]}),u==="top"&&H]})})});ZL.displayName="FileInput";var JL="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",QL="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl",eM=j({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z611s",error:"_1yep5z611o",active:"_1yep5z6120"}},defaultVariants:{},compoundVariants:[]}),tM="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ev _1yep5z6dy",rM="_12vfhl43 _1yep5z6g5 _1yep5z6ln",oM="_12vfhl42 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",nM="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",iM=j({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6eu",variantClassNames:{hasLabel:{false:"_1yep5z6pi _1yep5z6pj _1yep5z6pk"}},defaultVariants:{},compoundVariants:[]});var aM=qn.forwardRef(({className:e,style:t,variant:r="active",showValue:o,description:n,errorMessage:i,"data-block-id":a,"data-block-class":l,...s},u)=>{let c=ee(),{labelProps:d,progressBarProps:p}=Hu({...s,"aria-describedby":n?c:s["aria-describedby"]}),{minValue:m=0,maxValue:f=100,value:y=0,label:b}=s,g=(y-m)/(f-m),x=`${Math.round(g*100)}%`,h=jsx("output",{className:iM({hasLabel:!!b}),children:p["aria-valuetext"]}),v=r==="error"?i:n;return jsxs("div",{...p,style:t,className:_(JL,"BaselineUI-ProgressBar",e),"data-block-id":a,"data-block-class":l,ref:u,children:[b?jsxs("div",{className:QL,children:[jsx("label",{...d,className:tM,children:b}),o?h:null]}):null,jsxs("div",{className:nM,children:[jsxs("div",{className:oM,children:[jsx("div",{className:rM,children:jsx("div",{style:{width:x},className:eM({variant:r})})}),!b&&o?h:null]}),v?jsx("div",{className:_s({hasError:r==="error"}),id:c,children:v}):null]})]})});aM.displayName="ProgressBar";function lM({className:e}){return jsx("span",{className:e,"aria-hidden":"true","data-testid":"textinput-resize-grip",children:jsxs("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M4.72031 3.71962C5.01321 3.42683 5.488 3.42676 5.78086 3.71962C6.07352 4.01249 6.07358 4.48733 5.78086 4.78016L4.78086 5.78016C4.48803 6.07299 4.01322 6.07286 3.72031 5.78016C3.42742 5.48727 3.42742 5.01251 3.72031 4.71962L4.72031 3.71962Z",fill:"currentColor"}),jsx("path",{d:"M4.22031 0.219616C4.51321 -0.0731691 4.988 -0.0732413 5.28086 0.219616C5.57352 0.512488 5.57358 0.987325 5.28086 1.28016L1.27988 5.28016C0.986955 5.57268 0.512099 5.57293 0.219333 5.28016C-0.073139 4.98737 -0.0730827 4.51244 0.219333 4.21962L4.22031 0.219616Z",fill:"currentColor"})]})})}var Ua=qn.forwardRef(({labelPosition:e="top",className:t,style:r,labelProps:o,isDisabled:n=false,isReadOnly:i=false,label:a,message:l,"data-block-id":s,validationState:u="valid",isFocused:c=false,variant:d="primary",children:p,fieldProps:m,wrapperRef:f,wrapperClassName:y,isInvalid:b,isMultiLine:g=false},x)=>{let{hoverProps:h,isHovered:v}=ae({isDisabled:n}),C=Ii({isReadOnly:i,validationState:u});return jsxs("div",{className:_(sn({labelPosition:e}),t),"data-block-id":s,style:r,ref:x,children:[a||e==="start"&&l?jsxs("div",{className:ln({labelPosition:e,hasMessage:!!l}),children:[jsx(J,{...o,elementType:"label",color:"text.secondary",typography:"label.md.medium",children:a}),e==="start"&&l]}):null,jsxs("div",{className:_({[Rs]:n}),children:[jsxs("div",{...M(m,h),className:_(wi({validationState:b?"error":u,isHovered:v,isFocused:c,variant:d,isReadOnly:i,isDisabled:n,isMultiLine:g}),y),ref:f,children:[p,C?jsx(C,{className:Ei({validationState:u,isReadOnly:i,isMultiLine:g}),size:16}):null,g&&!i&&!n?jsx(lM,{className:C_}):null]}),e==="top"&&l]})]})});Ua.displayName="SharedInput";var _i=qn.forwardRef(({className:e,validationState:t,variant:r="primary",labelPosition:o="top",inputStyle:n,inputClassName:i,isMultiLine:a=false,rows:l,"data-block-id":s,"data-block-class":u,...c},d)=>{let p=qn.useRef(null),{inputProps:m,labelProps:f,descriptionProps:y,errorMessageProps:b,validationErrors:g}=$r({...c,inputElementType:a?"textarea":"input",validationState:t?t==="error"?"invalid":"valid":void 0},p),x=c.errorMessage||g.join(" "),h=br({...c,errorMessage:x,descriptionProps:y,errorMessageProps:b,labelPosition:o});x&&(t="error");let{isFocused:v,focusProps:C,isFocusVisible:T}=ne(),P=ve({"data-readonly":c.isReadOnly,"data-disabled":c.isDisabled,"data-validation-state":t,"data-focused":v,"data-focus-visible":T}),k=_(nb({isDisabled:c.isDisabled,labelPosition:o,isMultiLine:a}),"BaselineUI-TextInput-Input",i);return jsx(Ua,{variant:r,labelProps:f,isFocused:v,message:h,ref:d,labelPosition:o,className:_("BaselineUI-TextInput",e),validationState:t,isMultiLine:a,"data-block-id":s,"data-block-class":u,...c,children:a?jsx("textarea",{...M(m,C,P),className:k,style:n,rows:l,ref:p}):jsx("input",{...M(m,C,P),className:k,style:n,ref:p})})});_i.displayName="TextInput";var Bs=({value:e,...t})=>{let r=So(t);return jsx(Fragment,{children:r.format(e)})};Bs.displayName="NumberFormat";var uM="_1yep5z6iv _1yep5z6iw _1yep5z6ix",cM=j({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),dM=j({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6eu _1yep5z6la _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61n6"],[{isSelected:true,isDisabled:true},"_1yep5z61n6"],[{isSelected:false,isDisabled:true},"_1yep5z61n4"]]}),pM=j({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var yM=qn.forwardRef(({className:e,count:t,style:r,size:o="md",icon:n,"data-block-id":i,"data-block-class":a,...l},s)=>{let u={isRequired:false},c=n||(o==="md"?CheckmarkIcon$1:CheckmarkIcon$2);!l["aria-label"]&&!l["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let d=qn.useRef(null),p=zr({...l,...u}),{inputProps:m,isPressed:f,isDisabled:y,isReadOnly:b,isSelected:g}=Vc({...l,...u},p,d),{focusProps:x,isFocused:h,isFocusVisible:v}=ne(),{hoverProps:C,isHovered:T}=ae({}),P=ve({"data-block-id":i,"data-block-class":a,"data-focused":h,"data-focus-visible":v,"data-disabled":y,"data-hovered":T,"data-pressed":f,"data-selected":g});return jsxs("label",{ref:s,style:r,className:_(uM,"BaselineUI-Reaction",e),...P,children:[jsx(Ne,{children:jsx("input",{...m,...x,ref:d})}),jsxs("div",{...C,className:cM({isSelected:g,isFocusVisible:v,isHovered:T,isReadOnly:b,isDisabled:y}),children:[jsx("div",{className:pM({isDisabled:y,isReadOnly:b}),children:jsx(c,{size:o==="md"?20:16})}),jsx("div",{className:dM({isSelected:p.isSelected,isDisabled:y,isReadOnly:b,size:o}),children:jsx(Bs,{value:t})})]})]})});yM.displayName="Reaction";var bM="_1azy5686",gM="_1azy5685",hM="var(--_1azy5680)",vM="_1azy5688",xM="_1azy5689",TM="_1azy5681 z9nup81",CM="_1azy5682";var PM="_1azy5687";var w7={sm:16,md:20},R7={sm:[CheckmarkCircleFilledIcon,ErrorAltCircleFilledIcon$1],md:[CheckCircleFilledIcon,ErrorAltCircleFilledIcon]},mn=qn.forwardRef(({className:e,style:t,size:r="md",variant:o="active","data-block-id":n,"data-block-class":i,...a},l)=>{let{labelProps:s,progressBarProps:u}=Hu({...a,isIndeterminate:true}),c=w7[r],d=c/2-2,p=2*d*Math.PI,m=R7[r][o==="success"?0:1];return jsxs("div",{className:_(TM,"BaselineUI-ProgressSpinner",e),ref:l,style:{...assignInlineVars({[hM]:`${p}px`}),...t},"data-block-id":n,"data-block-class":i,children:[jsxs("div",{...u,className:CM,children:[(o==="active"||o==="inactive")&&jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsx("circle",{role:"presentation",className:bM,cx:c/2,cy:c/2,r:d,fill:"none",stroke:"none"}),o==="active"&&jsx("circle",{role:"presentation",className:gM,cx:c/2,cy:c/2,r:d,fill:"none",stroke:"none"})]}),o==="success"&&jsx(m,{className:PM,size:c}),o==="error"&&jsx(m,{className:vM,size:c})]}),a.label?jsx("span",{...s,className:xM,children:a.label}):null]})});mn.displayName="ProgressSpinner";var Db=j({defaultClassName:"_5uw3kp0 oom8bs0 z9nup81",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true},"_5uw3kpa"],[{isSelected:true,isDisabled:true},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),SM=j({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var _7={sm:16,md:20,lg:24},kb=qn.forwardRef(({className:e,style:t,iconStart:r,size:o="md",elementType:n="button",variant:i="toolbar",...a},l)=>{let s=zr(a),{buttonProps:u,isPressed:c,ref:d,isFocusVisible:p,isFocused:m,isHovered:f,uiStateOptions:y}=My(a,s),b=ve({"data-block-id":a["data-block-id"],"data-block-class":a["data-block-class"],"data-focused":m,"data-focus-visible":p,"data-disabled":a.isDisabled,"data-hovered":f,"data-pressed":c,"data-selected":s.isSelected});return jsxs(n,{...M(u,b),className:_(Db({isHovered:f,isFocusVisible:p,isSelected:s.isSelected,size:o,isDisabled:a.isDisabled,variant:i}),"BaselineUI-ToggleButton",typeof e=="function"?e(y):e),style:typeof t=="function"?t(y):t,ref:se(d,l),children:[r?jsx(r,{size:_7[o],className:SM({isDisabled:a.isDisabled,isSelected:s.isSelected})}):null,a.label]})});kb.displayName="ToggleButton";var DM=j({defaultClassName:"_1lo17ci9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6dy _1yep5z6eu",variantClassNames:{size:{xs:"_1lo17cia",sm:"_1lo17cib"},isSelected:{true:"_1yep5z612i _1yep5z6112"},isSelectionStart:{true:"_1yep5z6112"},isSelectionEnd:{true:"_1yep5z6112"},isInRange:{true:"_1lo17cif"},isToday:{true:"_1lo17cig"},isOutsideMonth:{true:"_1yep5z6111"},isDisabled:{true:"_1lo17cii _1yep5z6111"},isReadOnly:{true:"_1lo17cij"},isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1lo17cil"},isUnavailable:{true:"_1lo17cim"}},defaultVariants:{},compoundVariants:[[{isToday:true,isSelected:true},"_1yep5z61n5"],[{isToday:true,isSelectionStart:true},"_1yep5z61n5"],[{isToday:true,isSelectionEnd:true},"_1yep5z61n5"],[{isHovered:true,isReadOnly:true},"_1lo17cin"],[{isHovered:true,isUnavailable:true},"_1lo17cio"],[{isSelected:true,isHovered:true,isReadOnly:false},"_1yep5z61om"],[{isSelectionStart:true,isHovered:true,isReadOnly:false},"_1yep5z61om"],[{isSelectionEnd:true,isHovered:true,isReadOnly:false},"_1yep5z61om"],[{isInRange:true,isHovered:true,isReadOnly:false},"_1lo17cip"],[{isInRange:true,isFocusVisible:true},"_1lo17ciq"]]}),Eb="_1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",zb=j({defaultClassName:"_1lo17ci0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6m1 _1yep5z6lz _1yep5z6h3 _1yep5z6g1",variantClassNames:{size:{xs:"_1lo17ci1",sm:"_1lo17ci2"}},defaultVariants:{},compoundVariants:[]}),wb="_1lo17ci4",Rb="_1lo17ci5",Ib=j({defaultClassName:"_1lo17ci6 _1yep5z6eu _1yep5z6dy",variantClassNames:{size:{xs:"_1lo17ci7",sm:"_1lo17ci8"}},defaultVariants:{},compoundVariants:[]}),kM="_1lo17ci3 _1yep5z6ev _1yep5z6e1";function _b({date:e,size:t,isRange:r}){let o=useContext(Wo),n=useContext(qo),a=(o??n)?.isReadOnly??false;return jsx(ev,{date:e,className:({isSelected:l,isSelectionStart:s,isSelectionEnd:u,isOutsideMonth:c,isDisabled:d,isFocusVisible:p,isHovered:m,isUnavailable:f,isToday:y})=>DM({size:t,isSelected:r?void 0:l,isSelectionStart:r?s:void 0,isSelectionEnd:r?u:void 0,isInRange:r?l&&!s&&!u:void 0,isOutsideMonth:c,isDisabled:d,isFocusVisible:p,isHovered:m,isUnavailable:f,isToday:y,isReadOnly:a})})}var $s=({children:e,listBoxProps:t,...r})=>jsx(On.Provider,{value:useMemo(()=>({items:r.items}),[r.items]),children:jsx(no,{content:jsx(_t,{items:r.items,dependencies:[r.items?.[0]?.id,...gb(t)],children:o=>createElement(dP,{...t,key:o.id,item:o,isFirstCollectionItem:r.items?.[0]?.id===o.id})}),children:e})});var F7=e=>Ba({getItems:(t,r)=>r.map(o=>({"text/plain":o.label})),renderDropIndicator(t){return jsx(ko,{target:t,className:({isDropTarget:r})=>_(kL({isDropTarget:r}),"BaselineUI-DropIndicator")})},...e});var TP="_1mdhlqvd _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",zM=j({defaultClassName:"_1mdhlqv9",variantClassNames:{isOpen:{true:"_1mdhlqva"}},defaultVariants:{},compoundVariants:[]}),wM="_1mdhlqvi",RM=j({defaultClassName:"_1mdhlqve _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isVirtualized:{true:"_1mdhlqvf"}},defaultVariants:{},compoundVariants:[]}),js="_1mdhlqvc cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et5",IM="_1mdhlqvg",_M="_1mdhlqvh _1yep5z64x _1yep5z64y _1yep5z64z _1yep5z679 _1yep5z67a _1yep5z67b _1yep5z68f _1yep5z68g _1yep5z68h _1yep5z663 _1yep5z664 _1yep5z665",LM=j({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup82 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"},isReadOnly:{true:"_1mdhlqv7"},areTagsVisible:{true:"_1mdhlqv8 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z6k4 _1yep5z6k5 _1yep5z6k6"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6h5"],[{isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6la"]]}),MM="_1yep5z66x _1yep5z66y _1yep5z66z",CP="_1mdhlqvb _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";var _d=j({defaultClassName:"vi3slum",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),Lb=j({defaultClassName:"vi3slu0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ax _1yep5z6ay _1yep5z6az _1yep5z6bl _1yep5z6bm _1yep5z6bn _1yep5z6c9 _1yep5z6ca _1yep5z6cb _1yep5z6cx _1yep5z6cy _1yep5z6cz _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6la _1yep5z6lq _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"vi3slu1"},variant:{neutral:"_1yep5z6128",red:"_1yep5z611n",green:"_1yep5z611r",blue:"_1yep5z611z","high-contrast":"_1yep5z612c"},isDisabled:{true:"vi3slu7 _1yep5z6127"},allowsRemoving:{true:"vi3slu8"},isSelected:{true:"_1yep5z612i"},allowsSelection:{true:"vi3slua"},isHovered:{true:"vi3slub"},size:{md:"vi3sluc",sm:"vi3slud"}},defaultVariants:{},compoundVariants:[[{allowsSelection:true,isHovered:true,variant:"neutral"},"_1yep5z61oa"],[{allowsSelection:true,isHovered:true,variant:"red"},"_1yep5z61np"],[{allowsSelection:true,isHovered:true,variant:"blue"},"_1yep5z61o1"],[{allowsSelection:true,isHovered:true,variant:"green"},"_1yep5z61nt"],[{allowsSelection:true,isHovered:true,variant:"high-contrast"},"_1yep5z61oe"],[{allowsSelection:true,isSelected:true,isHovered:true},"_1yep5z61om"],[{variant:"high-contrast",isDisabled:true},"_1yep5z61oa"],[{allowsRemoving:true,size:"md"},"_1yep5z619c _1yep5z619d _1yep5z619e"],[{allowsRemoving:true,size:"sm"},"_1yep5z61af _1yep5z61ag _1yep5z61ah"]]}),AM="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",OM=j({defaultClassName:"vi3sluu _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lp _1yep5z6ly _1yep5z6f5 z9nup8a",variantClassNames:{variant:{neutral:"vi3sluv",red:"vi3sluw",green:"vi3slux",blue:"vi3sluy","high-contrast":"vi3sluz"},isHovered:{true:"vi3slu10"}},defaultVariants:{},compoundVariants:[[{isHovered:true,variant:"neutral"},"vi3slu11"],[{isHovered:true,variant:"red"},"vi3slu12"],[{isHovered:true,variant:"blue"},"vi3slu13"],[{isHovered:true,variant:"green"},"vi3slu14"],[{isHovered:true,variant:"high-contrast"},"vi3slu15"]]}),Mb=j({defaultClassName:"vi3slue",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z6112"},isDisabled:{true:"_1yep5z61n4"},isSelected:{true:"_1yep5z6113"}},defaultVariants:{},compoundVariants:[]});var Ab=qn.createContext(null),Ob=qn.createContext(null);var Nb=qn.forwardRef((e,t)=>{let r=qn.useContext(Ab),o=qn.useContext(Ob);return r&&o?jsx(KM,{...e,ref:t,groupCtx:r,itemCtx:o}):jsx(FM,{...e,ref:t})});Nb.displayName="Tag";var FM=qn.forwardRef(({children:e,variant:t="neutral",size:r="md",icon:o,isDisabled:n=false,isSelected:i=false,onRemove:a,className:l,style:s,"data-block-id":u,"data-block-class":c},d)=>{let{focusProps:p,isFocusVisible:m}=ne({within:true}),{hoverProps:f,isHovered:y}=ae({isDisabled:n}),{hoverProps:b,isHovered:g}=ae({isDisabled:n}),x=!!a;return jsx(PP,{ref:d,outerProps:M(p,b),variant:t,size:r,Icon:o,isDisabled:n,isSelected:i,isFocusVisible:m,isTagHovered:g,allowsRemoving:x,allowsSelection:false,removeButtonProps:f,defaultRemoveProps:{"aria-label":"Remove",disabled:n,onClick:a},isRemoveHovered:y,className:l,style:s,"data-block-id":u,"data-block-class":c,children:e})});FM.displayName="TagStandalone";var KM=qn.forwardRef(({groupCtx:e,itemCtx:t,variant:r,...o},n)=>{let{state:i,variant:a,size:l}=e,{item:s}=t,u=qn.useRef(null),{rowProps:c,gridCellProps:d,removeButtonProps:p,allowsRemoving:m,isDisabled:f,isSelected:y,allowsSelection:b}=BT({item:s},i,u),g=qn.useRef(null),{buttonProps:x}=ft({...p,excludeFromTabOrder:true},g),{focusProps:h,isFocusVisible:v}=ne({within:true}),{hoverProps:C,isHovered:T}=ae({isDisabled:f}),{hoverProps:P,isHovered:k}=ae({isDisabled:f}),S=s.value?.icon,w=s.value?.data?.variant??r??a,E=o.size??l??"md";return jsx(PP,{ref:z=>{u.current=z,typeof n=="function"?n(z):n&&(n.current=z);},outerProps:M(c,h,P),gridCellProps:d,variant:w,size:E,Icon:S,isDisabled:f,isSelected:y,isFocusVisible:v,isTagHovered:k,allowsRemoving:m,allowsSelection:b,removeButtonProps:M(x,C),isRemoveHovered:T,children:s.rendered})});KM.displayName="TagInGroup";var PP=qn.forwardRef(({children:e,outerProps:t,gridCellProps:r,variant:o="neutral",size:n,Icon:i,isDisabled:a,isSelected:l,isFocusVisible:s,isTagHovered:u,allowsRemoving:c,allowsSelection:d,removeButtonProps:p,defaultRemoveProps:m,isRemoveHovered:f,className:y,style:b,"data-block-id":g,"data-block-class":x},h)=>{let v=n==="md"?XIcon$1:XIcon$3,C=n==="md"?CheckmarkIcon$2:CheckmarkIcon$3;return jsx("div",{...t,ref:h,"aria-disabled":a||void 0,className:_(Lb({isFocusVisible:s,variant:o,isDisabled:a,allowsRemoving:c,isSelected:l,allowsSelection:d,isHovered:u,size:n}),Mb({variant:o,isDisabled:a,isSelected:l}),"BaselineUI-Tag",y),style:b,"data-block-id":g,"data-block-class":x,children:jsxs("div",{...r,className:AM,children:[l?jsx(C,{size:n==="md"?16:12,className:_(_d({variant:o,isDisabled:a,isSelected:l}),"BaselineUI-Tag-Icon")}):null,!l&&i?jsx(i,{size:n==="md"?16:12,className:_(_d({variant:o,isDisabled:a,isSelected:l}),"BaselineUI-Tag-Icon")}):null,jsx(J,{paddingY:n==="md"?"sm":"none",typography:n==="sm"?"label.sm.medium":"label.md.medium",children:e}),c?jsx("button",{type:"button",...M(p,m??{}),className:OM({variant:o,isHovered:f}),children:jsx(v,{size:n==="md"?12:8})}):null]})})});PP.displayName="TagView";var VM="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k";var G7=({item:e})=>{let t=useMemo(()=>({item:e}),[e]);return jsx(Ob.Provider,{value:t,children:jsx(Nb,{children:e.rendered})})},Fb=qn.forwardRef(({className:e,style:t,"data-block-id":r,"data-block-class":o,items:n,size:i="md",isDisabled:a=false,...l},s)=>{let u=useMemo(()=>n.map(y=>({...y,data:{variant:y.variant}})),[n]),c=Di(),d=qn.useRef(null),p=Ot({...l,items:u,children:c,disabledKeys:a?n.map(y=>y.id):l.disabledKeys}),{gridProps:m}=VT(l,p,d),f=useMemo(()=>({state:p,variant:l.variant,size:i}),[p,l.variant,i]);return jsx("div",{...m,className:_(VM,"BaselineUI-TagGroup",e),style:t,"data-block-id":r,"data-block-class":o,ref:se(s,d),children:jsx(Ab.Provider,{value:f,children:[...p.collection].map(y=>jsx(G7,{item:y},y.key))})})});Fb.displayName="TagGroup";var Md=qn.forwardRef(({variant:e,isOpen:t,validationState:r="valid",valueProps:o,className:n,style:i,value:a,"data-block-id":l,"data-block-class":s,fallbackValue:u,selectionMode:c="single",onRemove:d,maxCount:p=2,moreLabel:m,...f},y)=>{let{formatMessage:b}=fe(),g=a?.[0]??null,x=g?.label??u,h=g?.icon??null,v=qn.useRef(null),C=!!(c==="multiple"&&a&&a?.length>0),{buttonProps:T,isPressed:P}=ft({...f,elementType:"div",isDisabled:f.isDisabled||f.isReadOnly},v),{hoverProps:k,isHovered:S}=ae({isDisabled:f.isDisabled}),{focusProps:w,isFocused:E,isFocusVisible:z}=ne(),A=Ii({isReadOnly:f.isReadOnly,validationState:r});f.isReadOnly&&(T.disabled=false);let D=ve({"data-disabled":f.isDisabled,"data-readonly":f.isReadOnly,"data-focused":E,"data-focus-visible":z,"data-hovered":S,"data-pressed":P,"data-open":t,"data-block-id":l,"data-block-class":s}),O=f["aria-labelledby"],R=useCallback(()=>{he(Array.isArray(a),"value must be an array");let F=a.slice(0,p),I=a.slice(p),V=[...F,...I.length>0?[{label:(typeof m=="function"?m({count:I.length}):m)??b(q7.more,{count:I.length}),id:"remaining-value"}]:[]];return jsx(Fb,{items:V,onRemove:f.isReadOnly?void 0:H=>{H.has("remaining-value")?d?.(new Set(I.map(K=>K.id))):d?.(H);},"aria-labelledby":O,className:CP,isDisabled:f.isDisabled})},[a,p,b,m,O,f.isDisabled,d,f.isReadOnly]),N=c==="multiple";return jsxs("div",{...M(N?Object.fromEntries(Object.entries(T).filter(([F])=>F.startsWith("on"))):M(T,w),k,D),ref:N?y:se(y,v),className:_(LM({isFocused:z,isDisabled:!!f.isDisabled,isOpen:t,isHovered:S,variant:e,isReadOnly:!!f.isReadOnly,areTagsVisible:C}),wi({variant:e,isHovered:S,isFocused:z,validationState:r,isDisabled:!!f.isDisabled,isReadOnly:f.isReadOnly}),n,"BaselineUI-Select-Button"),"data-testid":"select-button",style:i,children:[jsxs(J,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",flex:1,paddingRight:"md",children:[c==="multiple"&&a&&a.length>0?R():jsxs("span",{className:CP,children:[h?jsx(h,{size:24}):null,jsx("span",{...o,children:x})]}),A?jsx("span",{"aria-hidden":true,className:_(Ei({validationState:r,isReadOnly:!!f.isReadOnly}),MM),children:jsx(A,{size:16})}):null]}),jsx("div",{...N?{...M(T,w),ref:v}:{},className:IM,children:jsx(CaretDownIcon,{size:8,className:zM({isOpen:t})})})]})});Md.displayName="SelectButton";var q7=Se({more:{id:"bui.select.more",defaultMessage:"+{count} more"}});var Vb=qn.createContext({state:null,popoverAnchorRef:null}),EP=qn.forwardRef(({className:e,style:t,labelPosition:r="top",variant:o="primary","data-block-id":n,"data-block-class":i,onTriggerPress:a,placement:l="bottom start",triggerClassName:s,triggerStyle:u,state:c,optionStyle:d,optionClassName:p,showSectionHeader:m,hideSelectAll:f,hideClear:y,clearLabel:b,searchLabel:g,selectAllLabel:x,moreLabel:h,renderTrigger:v=({buttonProps:P,selectedValue:k,valueProps:S,isOpen:w,ref:E,selectionMode:z,onRemove:A,maxCount:D})=>jsx(Md,{...P,className:s,style:u,isOpen:w,isReadOnly:C.isReadOnly,ref:E,variant:o,validationState:C.validationState,valueProps:S,value:k,fallbackValue:C.placeholder,selectionMode:z,onRemove:A,maxCount:D,moreLabel:h}),...C},T)=>{let{popoverAnchorRef:P}=useContext(Vb),k=qn.useRef(null),{formatMessage:S}=fe(),w=g??S(kP.search),E=useContext(Up),{isVirtualized:z}=useContext(Re),A=yr(C.portalContainer),{labelProps:D,triggerProps:O,valueProps:R,menuProps:N,descriptionProps:F,errorMessageProps:I}=qx({...Ks(C),validationState:C.validationState==="error"?"invalid":"valid"},c,k),V=ee(),H=JC(C)==="warningMessage",K=br({...C,descriptionProps:F,errorMessageProps:I,warningMessageProps:{id:V},labelPosition:r}),L=c.selectedItems?.map(B=>B.value)??null;return jsxs(Fragment,{children:[jsxs("div",{style:t,className:_(sn({labelPosition:r}),"BaselineUI-Select",e),"data-block-id":n,"data-block-class":i,ref:T,children:[C.label||K?jsxs("div",{className:ln({labelPosition:r,hasMessage:!!K}),children:[C.label?jsx("div",{...D,className:_(zi,"BaselineUI-Select-Label"),children:C.label}):null,r==="start"&&K]}):null,jsx(Xx,{state:c,triggerRef:k,isDisabled:C.isDisabled,label:C.label,name:C.name}),v({buttonProps:M({onPressStart:a,"aria-labelledby":D.id},O,H?{"aria-describedby":[O["aria-describedby"],V].filter(Boolean).join(" ")}:null),selectedValue:L,valueProps:R,isOpen:c.isOpen,ref:k,selectionMode:C.selectionMode??"single",onRemove:B=>{c.selectionManager.setSelectedKeys(new Set([...c.selectionManager.selectedKeys].filter(G=>!B.has(G))));},maxCount:C.maxCount??2}),r==="top"&&K]}),c?jsx(so.Provider,{value:c,children:jsx(Et,{placement:l,state:c,portalContainer:A,offset:2,triggerRef:P||k,style:t,className:"BaselineUI-Select-Popover",...C,children:jsxs(J,{display:"flex",flex:1,flexDirection:"column",className:js,children:[E?jsxs(Fragment,{children:[jsx(fb,{size:"sm","aria-label":w,placeholder:w,className:_(_M,"BaselineUI-Select-SearchInput"),autoFocus:true}),jsx(ze,{})]}):null,jsx(On.Provider,{value:N,children:jsx(dn,{label:C.label,escapeKeyBehavior:"none",className:RM({isVirtualized:z}),optionStyle:d,optionClassName:p,showSectionHeader:m})}),c.selectionManager.selectionMode==="multiple"&&(!f||!y)&&jsxs(J,{display:"flex",flexDirection:"row",className:wM,children:[!f&&jsx(Me,{variant:"ghost",size:"md",label:x??S(kP.selectAll),"data-testid":"select-all-button",onPress:()=>{if(c.selectionManager.isSelectAll)return;let G=[...c.collection.getKeys()].filter(q=>!c.selectionManager.disabledKeys.has(q)&&c.selectionManager.canSelectItem(q));c.selectionManager.setSelectedKeys(new Set(G));},className:TP}),!f&&!y&&jsx(ze,{orientation:"vertical"}),!y&&jsx(Me,{variant:"ghost",label:b??S(kP.clear),size:"md","data-testid":"select-clear-button",onPress:()=>{c.selectionManager.isEmpty||c.selectionManager.clearSelection();},className:TP})]})]})})}):null]})});EP.displayName="SelectCore";var jM=qn.forwardRef(({collection:e,...t},r)=>{let o=Kc({...t,collection:e,validationState:t.validationState==="error"?"invalid":"valid",children:void 0});return jsx(EP,{...t,ref:r,state:o})});jM.displayName="SelectStandalone";var yo=qn.forwardRef(({optionStyle:e,optionClassName:t,showSectionHeader:r,...o},n)=>{let{state:i}=useContext(Vb);useEffect(()=>{he(i||o.items,"Select: A `state` that can be passed via context or `items` are required.");},[o.items,i]);let a=useMemo(()=>({renderOption:(l,s)=>jsx(zd,{...s,item:l,selectionIcon:s.selectionMode==="multiple"?"checkbox":"checkmark"}),optionStyle:e,optionClassName:t,showSectionHeader:r}),[e,t,r]);return i?jsx(EP,{...o,optionStyle:e,optionClassName:t,showSectionHeader:r,ref:n,state:i}):jsx($s,{items:o.items,listBoxProps:a,children:l=>jsx(jM,{collection:l,...o,ref:n})})});yo.displayName="Select";var kP=Se({selectAll:{id:"bui.select.selectAll",defaultMessage:"Select All"},clear:{id:"bui.select.clear",defaultMessage:"Clear"},search:{id:"bui.select.search",defaultMessage:"Search"}});var UM=qn.forwardRef(({className:e,style:t,variant:r,"data-block-id":o,icon:n,tooltip:i=true,iconTooltip:a=true,...l},s)=>{let u=qn.useRef(null),{tooltipProps:c}=mr({label:l["aria-label"],tooltip:i}),d=useCallback(({buttonProps:p,selectedValue:m,valueProps:f,isOpen:y,ref:b})=>jsx(ot,{...c,children:jsx(Md,{...p,isOpen:y,isReadOnly:l.isReadOnly,ref:b,variant:r,validationState:l.validationState,value:m,fallbackValue:l.placeholder,valueProps:f,moreLabel:l.moreLabel})}),[l,c,r]);return jsxs(J,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:_("BaselineUI-IconSelect",e),"data-block-id":o,style:t,ref:se(s,u),children:[n?jsx(Ns,{icon:n,label:l["aria-label"],tooltip:a,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsx(yo,{...l,renderTrigger:d})]})});UM.displayName="IconSelect";var Od=class extends Ss{useLayoutOptions(){let{direction:t}=Q();return {direction:t}}};var WM={LIST_BOX:{layout:rn,layoutOptions:{rowHeight:36}},TREE_VIEW:{layout:rn,layoutOptions:{rowHeight:44}},IMAGE_GALLERY:{layout:Od,layoutOptions:{minItemSize:new _e(114,167),maxItemSize:new _e(114,167),dropIndicatorThickness:2,maxHorizontalSpace:0,minSpace:new _e(4,16),preserveAspectRatio:true}},TABLE:{layout:fs,layoutOptions:{rowHeight:48,headingHeight:48}}};function rA(){let e=useContext(Wo),t=useContext(qo),r=e??t;if(!r)throw new Error("CalendarHeader must be used inside a Calendar or RangeCalendar");return r}function eq(e,t){let r=new CalendarDate(e,t,1);return r.calendar.getDaysInMonth(r)}function Nd(e,t,r){return Math.min(r,eq(e,t))}function tq({nextMonthLabel:e,previousMonthLabel:t}){let{formatMessage:r}=fe();return jsxs(J,{display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsx(me,{slot:"previous",icon:CaretLeftIcon$3,size:"xs","aria-label":t??r(Oo.previousMonth)}),jsx(qu,{className:kM}),jsx(me,{slot:"next",icon:CaretRightIcon$3,size:"xs","aria-label":e??r(Oo.nextMonth)})]})}var Hb=5,QM=5;function rq(e,t,r){let o=[];for(let n=e;n<=t;n++)for(let i=0;i<12;i++){let a=new Date(2024,i,1);o.push({id:`${i+1}-${n}`,label:`${r.format(a)} ${n}`});}return o}function oq({nextMonthLabel:e,previousMonthLabel:t,selectMonthLabel:r}){let o=rA(),{formatMessage:n}=fe(),{locale:i}=Q(),a=o.focusedDate,l=useMemo(()=>new Intl.DateTimeFormat(i,{month:"long"}),[i]),s=o.minValue?o.minValue.year:1900,u=o.maxValue?o.maxValue.year:2100,c=useRef(Math.max(s,a.year-Hb)),d=useRef(Math.min(u,a.year+Hb)),[p,m]=useState(c.current),[f,y]=useState(d.current),b=useMemo(()=>rq(p,f,l),[p,f,l]);if(a.year<p){let v=Math.max(s,a.year-QM);m(v);}else if(a.year>f){let v=Math.min(u,a.year+QM);y(v);}let g=useCallback(v=>{if(v==null)return;let[C,T]=String(v).split("-").map(Number),P=Nd(T,C,a.day);o.setFocusedDate(new CalendarDate(T,C,P));},[a.day,o]),x=a.year,h=useCallback(()=>{let v=Math.max(s,x-Hb),C=Math.min(u,x+Hb);v<p&&m(v),C>f&&y(C);},[s,u,x,p,f]);return jsxs(J,{display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsx(cy,{...WM.LIST_BOX,children:jsx(yo,{"aria-label":r??n(Oo.selectMonth),items:b,variant:"ghost",value:`${a.month}-${a.year}`,onSelectionChange:g,onTriggerPress:h,maxHeight:300,style:{width:"fit-content"}})}),jsxs(J,{display:"flex",alignItems:"center",gap:"2xl",children:[jsx(me,{slot:"previous",icon:CaretLeftIcon$3,size:"xs","aria-label":t??n(Oo.previousMonth)}),jsx(me,{slot:"next",icon:CaretRightIcon$3,size:"xs","aria-label":e??n(Oo.nextMonth)})]})]})}function nq({nextMonthLabel:e,previousMonthLabel:t,nextYearLabel:r,previousYearLabel:o,selectMonthLabel:n,selectYearLabel:i}){let a=rA(),{formatMessage:l}=fe(),{locale:s}=Q(),u=a.focusedDate,c=a.isDisabled,d=useMemo(()=>{let C=new Intl.DateTimeFormat(s,{month:"short"});return Array.from({length:12},(T,P)=>{let k=new Date(2024,P,1);return {id:String(P+1),label:C.format(k)}})},[s]),p=useMemo(()=>{let C=u.year,T=a.minValue?a.minValue.year:C-50,P=a.maxValue?a.maxValue.year:C+50;return Array.from({length:P-T+1},(k,S)=>{let w=T+S;return {id:String(w),label:String(w)}})},[u.year,a.minValue,a.maxValue]),{month:m,year:f,day:y}=u,b=a.setFocusedDate,g=useCallback(C=>{let T=m+C,P=f;T<1?(T=12,P-=1):T>12&&(T=1,P+=1);let k=Nd(P,T,y);b(new CalendarDate(P,T,k));},[m,f,y,b]),x=useCallback(C=>{let T=f+C,P=Nd(T,m,y);b(new CalendarDate(T,m,P));},[f,m,y,b]),h=useCallback(C=>{if(C==null)return;let T=Number(C),P=Nd(f,T,y);b(new CalendarDate(f,T,P));},[f,y,b]),v=useCallback(C=>{if(C==null)return;let T=Number(C),P=Nd(T,m,y);b(new CalendarDate(T,m,P));},[m,y,b]);return jsxs(J,{display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsxs(J,{display:"flex",alignItems:"center",justifyContent:"space-between",paddingX:"xs",style:{flex:"1 0 0"},children:[jsx(me,{slot:null,icon:CaretLeftIcon$4,size:"xxs",variant:"primary",isDisabled:c,onPress:()=>{g(-1);},"aria-label":t??l(Oo.previousMonth)}),jsx(yo,{"aria-label":n??l(Oo.selectMonth),items:d,variant:"ghost",value:String(u.month),onSelectionChange:h,isDisabled:c,style:{width:"fit-content"}}),jsx(me,{slot:null,icon:CaretRightIcon$4,size:"xxs",variant:"primary",isDisabled:c,onPress:()=>{g(1);},"aria-label":e??l(Oo.nextMonth)})]}),jsx(ze,{orientation:"vertical",style:{alignSelf:"center",height:32}}),jsxs(J,{display:"flex",alignItems:"center",justifyContent:"space-between",paddingX:"xs",style:{flex:"1 0 0"},children:[jsx(me,{slot:null,icon:CaretLeftIcon$4,size:"xxs",variant:"primary",isDisabled:c,onPress:()=>{x(-1);},"aria-label":o??l(Oo.previousYear)}),jsx(yo,{"aria-label":i??l(Oo.selectYear),items:p,variant:"ghost",value:String(u.year),onSelectionChange:v,isDisabled:c,style:{width:"fit-content"}}),jsx(me,{slot:null,icon:CaretRightIcon$4,size:"xxs",variant:"primary",isDisabled:c,onPress:()=>{x(1);},"aria-label":r??l(Oo.nextYear)})]})]})}function jb({headerVariant:e,...t}){switch(e){case "selectMonth":return jsx(oq,{...t});case "selectMonthAndYear":return jsx(nq,{...t});default:return jsx(tq,{...t})}}var Oo=Se({selectMonth:{defaultMessage:"Select month",id:"bui.calendar.selectMonth"},previousMonth:{defaultMessage:"Previous month",id:"bui.calendar.previousMonth"},nextMonth:{defaultMessage:"Next month",id:"bui.calendar.nextMonth"},selectYear:{defaultMessage:"Select year",id:"bui.calendar.selectYear"},previousYear:{defaultMessage:"Previous year",id:"bui.calendar.previousYear"},nextYear:{defaultMessage:"Next year",id:"bui.calendar.nextYear"}});var Gb=qn.forwardRef(({className:e,style:t,size:r="sm",title:o,headerVariant:n="title",nextMonthLabel:i,previousMonthLabel:a,nextYearLabel:l,previousYearLabel:s,selectMonthLabel:u,selectYearLabel:c,...d},p)=>{let m=ee();return jsxs("div",{className:_(zb({size:r}),"BaselineUI-Calendar",e),style:t,ref:p,children:[o?jsxs(Fragment,{children:[jsxs(J,{display:"flex",alignItems:"center",gap:"lg",paddingX:"lg",style:{height:56},children:[jsx(J,{color:"text.primary",flexShrink:0,display:"inline-flex",alignItems:"center",children:jsx(CalendarIcon,{})}),jsx(Je,{id:m,type:"title",size:r==="xs"?"sm":"md",children:o})]}),jsx(ze,{})]}):null,jsxs(Jh,{...d,"aria-labelledby":o?m:void 0,className:Eb,children:[jsx(jb,{headerVariant:n,nextMonthLabel:i,previousMonthLabel:a,nextYearLabel:l,previousYearLabel:s,selectMonthLabel:u,selectYearLabel:c}),jsx(ze,{}),jsxs(Yu,{className:Rb,style:{borderSpacing:0},children:[jsx(Rl,{children:f=>jsx(Il,{className:Ib({size:r}),children:f})}),jsx(_l,{className:wb,children:f=>jsx(_b,{date:f,size:r})})]})]})]})});Gb.displayName="Calendar";var oA=qn.forwardRef(({className:e,style:t,size:r="sm",title:o,headerVariant:n="title",nextMonthLabel:i,previousMonthLabel:a,nextYearLabel:l,previousYearLabel:s,selectMonthLabel:u,selectYearLabel:c,...d},p)=>{let m=ee();return jsxs("div",{className:_(zb({size:r}),"BaselineUI-RangeCalendar",e),style:t,ref:p,children:[o?jsxs(Fragment,{children:[jsxs(J,{display:"flex",alignItems:"center",gap:"lg",paddingX:"lg",style:{height:56},children:[jsx(J,{color:"text.primary",flexShrink:0,display:"inline-flex",alignItems:"center",children:jsx(CalendarIcon,{})}),jsx(Je,{id:m,type:"title",size:r==="xs"?"sm":"md",children:o})]}),jsx(ze,{})]}):null,jsxs(Qh,{...d,"aria-labelledby":o?m:void 0,className:Eb,children:[jsx(jb,{headerVariant:n,nextMonthLabel:i,previousMonthLabel:a,nextYearLabel:l,previousYearLabel:s,selectMonthLabel:u,selectYearLabel:c}),jsx(ze,{}),jsxs(Yu,{className:Rb,style:{borderSpacing:0},children:[jsx(Rl,{children:f=>jsx(Il,{className:Ib({size:r}),children:f})}),jsx(_l,{className:wb,children:f=>jsx(_b,{date:f,size:r,isRange:true})})]})]})]})});oA.displayName="RangeCalendar";var fq=({label:e,...t})=>{let{isSelected:r,isIndeterminate:o,isFocusVisible:n,isDisabled:i,isReadOnly:a,isHovered:l,isInvalid:s}=t;return jsxs(Fragment,{children:[jsxs("div",{className:Vs({isSelected:r&&!o,isIndeterminate:o,isFocusVisible:n,isDisabled:i,isReadOnly:a,hasError:s,isHovered:l}),children:[r&&!o?jsx(CheckmarkIcon$3,{size:12}):null,o?jsx(MinusIcon$1,{size:12}):null]}),e?jsx("span",{className:yb({isDisabled:i}),children:e}):null]})},iA=qn.forwardRef(({className:e,style:t,label:r,labelPosition:o="end",slot:n,...i},a)=>jsx(sv,{...i,className:_(bb({labelPosition:o}),"BaselineUI-Checkbox",e),style:t,slot:n,ref:a,children:l=>jsx(fq,{label:r,...l})}));iA.displayName="Checkbox";var aA=j({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),lA="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",sA=j({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6zy",sm:"_1nsi9h12 _1yep5z6101",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6za _1yep5z6184 _1yep5z6182 _1yep5z6136",pinned:"_1yep5z617q"}},defaultVariants:{},compoundVariants:[]}),uA=j({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var Sq={style:"decimal"},Dq={xs:[CaretLeftIcon$3,CaretRightIcon$3],sm:[CaretLeftIcon$2,CaretRightIcon$2],md:[CaretLeftIcon$1,CaretRightIcon$1],lg:[CaretLeftIcon,CaretRightIcon]},pA=qn.forwardRef(({className:e,style:t,minValue:r=1,defaultValue:o=1,incrementAriaLabel:n,decrementAriaLabel:i,"aria-label":a,size:l="md",variant:s="floating",hideActions:u,isDisabled:c,pageXofYLabel:d,...p},m)=>{let{locale:f}=Q(),y=fe(),b={...p,formatOptions:Sq,minValue:r,incrementAriaLabel:n||y.formatMessage(Ub.nextPage),decrementAriaLabel:i||y.formatMessage(Ub.prevPage),defaultValue:o,"aria-label":a||y.formatMessage(Ub.goToPage)},g=qn.useRef(null),x=ac({...b,locale:f}),{inputProps:h,decrementButtonProps:v,incrementButtonProps:C,groupProps:T}=nc({...b,onKeyDown:R=>{R.key==="Enter"&&g.current?.blur(),p.onKeyDown?.(R);},isDisabled:c},x,g),{hoverProps:P,isHovered:k}=ae({}),{focusProps:S,isFocused:w,isFocusVisible:E}=ne(),z=s==="floating",[A,D]=Dq[l],O=ve({"data-focus-visible":E,"data-focused":w,"data-hovered":k,"data-block-id":p["data-block-id"],"data-block-class":p["data-block-class"]});return jsxs("div",{...M(T,P,O),className:_(sA({size:l,variant:s}),"BaselineUI-Pagination",e),style:t,ref:m,children:[u?null:jsxs(Fragment,{children:[jsx(me,{icon:A,...v,elementType:"div",size:l,style:{height:"100%",...z&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:c||v.isDisabled}),s==="floating"&&jsx(ze,{orientation:"vertical"})]}),jsxs("div",{className:aA({isFocused:w,variant:s,size:l}),"aria-label":(typeof d=="function"?d({page:x.numberValue,totalPages:x.maxValue}):d)??y.formatMessage(Ub.pageXofY,{arg0:h.value,arg1:x.maxValue}),children:[jsx("input",{...M(h,S),ref:g,className:_("BaselineUI-Pagination-Input",lA),style:{width:`${h.value?.toString().length||1}ch`}}),jsxs("span",{className:uA({isDisabled:c}),children:["/ ",jsx(Bs,{value:x.maxValue})]})]}),u?null:jsxs(Fragment,{children:[s==="floating"&&jsx(ze,{orientation:"vertical"}),jsx(me,{icon:D,...C,elementType:"div",size:l,style:{height:"100%",...z&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:c||C.isDisabled})]})]})});pA.displayName="Pagination";var Ub=Se({nextPage:{defaultMessage:"Next Page",id:"bui.pagination.nextPage"},prevPage:{defaultMessage:"Previous Page",id:"bui.pagination.prevPage"},goToPage:{defaultMessage:"Go to Page",id:"bui.pagination.goToPage"},pageXofY:{defaultMessage:"Page {arg0} of {arg1}",id:"bui.pagination.pageXofY"}});var mA=({date:e,...t})=>{let r=Lt(t);return jsx(Fragment,{children:r.format(e)})};mA.displayName="DateFormat";var fA="_1yep5z6ln",yA=j({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),bA=j({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),gA="_1kvz17de",hA="_1yep5z6ev _1yep5z6dy",vA=j({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6la _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup82"}},defaultVariants:{},compoundVariants:[]}),xA="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",TA=j({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var wP=qn.forwardRef(({children:e,className:t,style:r},o)=>{let{headers:n}=useContext(Mi),{disabledKeys:i}=useContext(Mi),{keyboardProps:a}=Ae({onKeyDown:l=>{let s=de(U(l.target)),u=[...n?.keys()||[]].findIndex(f=>{let y=n?.get(f)?.current;return y?y===s:false}),c=n?.get(u||0),d=n?.size||0,p=f=>{let y=n.get(f-1<0?d-1:f-1);i?.has(y?.current?.dataset.key||"")?p(f-1):y?.current?.focus();},m=f=>{let y=n.get((f+1)%d);i?.has(y?.current?.dataset.key||"")?m(f+1):y?.current?.focus();};if(c)switch(l.key){case "Home":{l.preventDefault(),m(-1);break}case "End":{l.preventDefault(),p(d);break}case "ArrowDown":{l.preventDefault(),m(u);break}case "ArrowUp":{l.preventDefault(),p(u);break}default:l.continuePropagation();}}});return jsx("div",{...LR(a),style:r,className:_(fA,t),ref:o,children:qn.Children.map(e,(l,s)=>qn.cloneElement(l,{index:s}))})});wP.displayName="AccordionBase";var Mi=qn.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),SA=qn.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:r=new Set,expandedKeys:o,expansionMode:n="multiple",onChange:i,className:a,style:l},s)=>{let[u,c]=qn.useState(r),d=qn.useRef(new Map).current,[p,m]=qn.useState(n);useEffect(()=>{m(n);},[n]),useEffect(()=>{i?.(u);},[u,i]);let f=useMemo(()=>({expandedKeys:o||u,setExpandedKeys:o?()=>{}:c,disabledKeys:t,headers:d,expansionMode:p}),[o,u,t,d,p]);return jsx(Mi.Provider,{value:f,children:jsx(Rt,{children:jsx(wP,{className:a,style:l,ref:s,children:e})})})});SA.displayName="Accordion";var IP=qn.forwardRef(({title:e,actions:t,controlId:r,value:o,id:n,index:i,subLabel:a,showActionsOnTriggerOnly:l},s)=>{let u=qn.useRef(null),{expandedKeys:c,setExpandedKeys:d,expansionMode:p,disabledKeys:m,headers:f}=useContext(Mi),y=m?.has(o),b=Ol();he(b);let{focusNext:g,focusPrevious:x}=b,{keyboardProps:h}=Ae({onKeyDown:D=>{D.key==="ArrowRight"?g({wrap:true}):D.key==="ArrowLeft"?x({wrap:true}):D.continuePropagation();},isDisabled:y});useEffect(()=>{he(typeof i=="number","AccordionItem must have an index"),f?.set(i,u);},[i,f]);let v=()=>{d(D=>{let O=new Set(D);return O.has(o)?O.delete(o):(p==="single"&&O.clear(),O.add(o)),O});},{buttonProps:C}=ft({"aria-expanded":c.has(o),"aria-controls":r,onPress:v,isDisabled:y},u),{pressProps:T}=Oe({onPress:v,isDisabled:y}),{focusProps:P,isFocusVisible:k}=ne(),{hoverProps:S,isHovered:w}=ae({isDisabled:y}),{focusProps:E,isFocusVisible:z}=ne({within:true}),A=c.has(o);return jsxs("h3",{...M(h,T,S,E),className:vA({isFocusVisible:k,isHovered:w,isDisabled:y}),ref:s,children:[jsxs("div",{className:TA({isDisabled:!!y}),children:[jsx(ChevronRightIcon,{className:bA({isExpanded:A}),size:8}),jsx("button",{...M(C,P),id:n,"data-key":o,className:xA,ref:u,children:e})]}),t?.length?jsx("div",{"data-testid":"action-buttons",className:yA({showActionsOnTriggerOnly:l,isTriggered:z||w}),children:t.map((D,O)=>jsx(me,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:y,...D},O))}):null,a?jsx("div",{className:hA,children:a}):null]})});IP.displayName="AccordionHeader";var EA=qn.forwardRef(({title:e,actions:t,children:r,value:o,index:n,subLabel:i,style:a,className:l,showActionsOnTriggerOnly:s},u)=>{let c=ee(),d=ee(),{expandedKeys:p}=useContext(Mi),m=p.has(o);return jsxs(Fragment,{children:[jsx(Rt,{children:jsx(IP,{value:o,actions:t,id:d,title:e,controlId:c,ref:u,index:n,subLabel:i,showActionsOnTriggerOnly:s})}),jsx(AnimatePresence,{initial:false,children:m?jsx(motion.section,{role:"region","aria-labelledby":d,id:c,className:gA,variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:jsx("div",{style:a,className:l,children:r})}):null})]})});EA.displayName="AccordionItem";var zA="_1017q4c5",wA=j({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),RA="_1017q4c4";var Hq={sm:AvatarIcon$1,md:AvatarIcon},Ys=qn.forwardRef(({className:e,style:t,size:r="md",icon:o=Hq[r],name:n,imgSrc:i,showInitials:a,isDisabled:l,hasNotifications:s,imgLoading:u,"data-block-id":c,"data-block-class":d},p)=>{let m=n?.split(" ").map(f=>f[0]).join("");return jsxs("span",{className:_(wA({size:r,isDisabled:l}),"BaselineUI-Avatar",e),"data-disabled":l,ref:p,style:t,"aria-disabled":l,"data-block-id":c,"data-block-class":d,children:[i?jsx("img",{src:i,alt:n,loading:u,className:RA}):null,!a&&!i&&jsx(o,{size:r==="sm"?16:24}),a&&!i?r==="sm"?m[0]:m:null,s?jsx("div",{"data-testid":"notification",className:zA}):null]})});Ys.displayName="Avatar";var IA="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",_A=j({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6111"},variant:{primary:"_1x62fhbb _1yep5z6zy",ghost:"_1yep5z6101"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61n0"],[{variant:"primary",isSelected:true},"_1yep5z61o7"],[{variant:"ghost",isSelected:true,isFocusVisible:false},"_1x62fhbd"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61n7"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:true},"_1yep5z61o8"]]}),LA=j({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),MA="_1x62fhbl",LP=j({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6118"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611a"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61nb"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61ng"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1yep5z61nd"]]}),AA="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",OA=j({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var NA=({state:e,...t})=>{let r=qn.useRef(null),{tabPanelProps:o}=OT(t,e,r),{selectedItem:n}=e,{focusProps:i,isFocusVisible:a}=ne();if(!n?.value)return null;let{className:l,style:s,"data-block-id":u}=n.value;return jsx("div",{...M(o,i),ref:r,className:_({[AA]:a},"Baseline-Tabs-TabPanel",l),"data-block-id":u,style:s,children:n?.props.children})};var OP=qn.forwardRef(({className:e,style:t,tabHeaderStyle:r,tabHeaderClassName:o,variant:n="primary",actions:i,onRemove:a,"data-block-id":l,...s},u)=>{let c=FT({...s,selectedKey:s.selectedValue,defaultSelectedKey:s.defaultSelectedValue,disabledKeys:s.disabledValues}),d=qn.useRef(null),{tabListProps:p}=NT({...s,selectedKey:s.selectedValue,defaultSelectedKey:s.defaultSelectedValue,disabledKeys:s.disabledValues},c,d);return jsxs("div",{className:_("BaselineUI-Tabs",e),style:t,ref:u,"data-block-id":l,children:[jsxs("div",{className:_(OA({variant:n}),o),style:r,children:[jsx("div",{...p,className:LA({variant:n}),ref:d,children:[...c.collection].map(m=>(he(m.value,"TabItem requires a value prop"),jsx(FA,{item:m,state:c,onRemove:a,variant:n},m.key)))}),i?.map((m,f)=>jsx("div",{className:IA,children:jsx(me,{...m,variant:"secondary",size:"sm",className:_(MA,m.className)})},f))]}),jsx(NA,{state:c},c.selectedItem?.key)]})});OP.displayName="TabsBase";var FA=({item:e,onRemove:t,state:r,variant:o})=>{let{key:n,value:i}=e,a=qn.useRef(null),{tabProps:l,isSelected:s,isDisabled:u}=AT({key:n},r,a),{hoverProps:c,isHovered:d}=ae({});he(i,"TabButton requires a value prop");let{title:p,icon:m,titleStyle:f,titleClassName:y}=i,{focusProps:b,isFocusVisible:g,isFocused:x}=ne(),{keyboardProps:h}=Ae({onKeyDown:C=>{C.key==="Backspace"&&t?t(n):C.continuePropagation();}}),v=ve({"data-selected":s,"data-disabled":u,"data-focused":x,"data-hovered":d,"data-focus-visible":g});return jsxs("div",{...M(h,l,c,b,v),className:_(_A({isHovered:d,isSelected:s,isFocusVisible:g,isDisabled:u,variant:o}),"BaselineUI-Tabs-TabButton",y),style:f,ref:a,children:[m?jsx(m,{size:20,className:LP({isHovered:d,isSelected:s,isDisabled:u,variant:o})}):null,p,t?jsx(me,{variant:"secondary",elementType:"div",icon:XIcon$3,size:"xxs",onPress:()=>{t(n);},excludeFromTabOrder:true,UNSAFE_isVisuallyInteractiveOnly:true,style:{display:"inline-flex",opacity:s||x||d?1:0},className:LP({isHovered:d,isSelected:s,isDisabled:u,variant:o})}):null]})};FA.displayName="TabButton";var VA=qn.forwardRef(function({children:t,...r},o){let n=useMemo(()=>qn.Children.map(t,i=>!i||!qn.isValidElement(i)||typeof i.type=="string"?null:{...i.props,id:i.props.value}).filter(Boolean),[t]);return jsx(OP,{...r,ref:o,items:n,children:i=>jsx(mo,{title:i.title,children:i.children},i.key)})});VA.displayName="Tabs";var BA=({children:e,title:t,value:r})=>(he(r,"TabItem requires a value prop"),he(t,"TabItem requires a title prop"),he(e,"TabItem requires children"),e);BA.displayName="TabItem";var HA=j({defaultClassName:"kfun6yt _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vi _1yep5z6vj _1yep5z6vk",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),$A=j({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",variantClassNames:{variant:{info:"_1yep5z611y",warning:"_1yep5z611u",error:"_1yep5z611m",success:"_1yep5z611q"},arrangement:{single:"kfun6y5 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z615m _1yep5z615n _1yep5z615o",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z615d _1yep5z615e _1yep5z615f _1yep5z6wi _1yep5z6wj _1yep5z6wk"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:false,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:true,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:true,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),jA=j({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),GA=j({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z615j _1yep5z615k _1yep5z615l",compact:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6161 _1yep5z6162 _1yep5z6163"}},defaultVariants:{},compoundVariants:[]}),UA=j({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),WA=j({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),qA=j({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{arrangement:{single:"_1yep5z615m _1yep5z615n _1yep5z615o",multi:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2 _1yep5z6tc _1yep5z6td _1yep5z6te",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]});var nX={error:{sm:ErrorAltCircleFilledIcon$1,md:ErrorAltCircleFilledIcon},info:{sm:InfoCircleFilledIcon$1,md:InfoCircleFilledIcon},success:{sm:CheckmarkCircleFilledIcon,md:CheckCircleFilledIcon},warning:{sm:WarningFilledIcon$1,md:WarningFilledIcon}},qb=qn.forwardRef(({className:e,description:t,actionLabel:r,onAction:o,style:n,variant:i="info",title:a,arrangement:l="single",onClose:s,closeLabel:u,size:c="sm","data-block-id":d,"data-block-class":p,elementProps:m},f)=>{let y=fe(),b=r&&jsx(Me,{variant:l==="compact"?"tertiary":"ghost",label:r,onPress:o}),g=nX[i][c];return jsxs("div",{className:_($A({variant:i,arrangement:l,hasButton:!!r||!!s,hasCloseButton:!!s}),"BaselineUI-InlineAlert",e),"data-block-id":d,"data-block-class":p,style:n,role:"alert",ref:f,...m?.root,children:[jsxs("div",{className:qA({arrangement:l}),children:[jsx(g,{className:UA({variant:i}),size:16}),jsxs("div",{className:HA({arrangement:l}),...m?.content,children:[jsx("h3",{className:WA({size:c}),...m?.title,children:a}),jsx("section",{className:jA({size:c}),...m?.description,children:t})]}),l==="compact"&&b]}),jsxs("div",{className:GA({arrangement:l}),children:[l!=="compact"&&b,s?jsx(me,{variant:"secondary",icon:XIcon$2,size:"sm",onPress:s,"aria-label":u??y.formatMessage(iX.close),...m?.close}):null]})]})});qb.displayName="InlineAlert";var iX=Se({close:{defaultMessage:"Close",id:"bui.inlineAlert.close"}});var XA="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",YA="_1dbkl5e",ZA=j({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6ly _1yep5z6lq _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6lp _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup82 _1yep5z6111"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),JA="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",QA=j({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Xb="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",e5="_1dbkl5f z9nup86",Yb="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",t5="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",r5="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",Zb=j({defaultClassName:"_1dbkl5h _1dbkl5g _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),FP="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",o5=j({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z6134"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z617q"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocused:false},"_1yep5z61pb"]]}),n5=j({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6lp _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6ld",variantClassNames:{isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z617w _1yep5z617u _1yep5z617x _1yep5z6140"},isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),Jb="_1dbkl5g",Ud="_1dbkl5u",Qb="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",KP="_1dbkl5x",i5="_1dbkl5w",VP="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",eg=j({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lu _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lz _1yep5z6m2",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z617u _1yep5z6140 _1yep5z617w"}},defaultVariants:{},compoundVariants:[]}),BP="z9nup83 z9nup85 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var l5=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Wd=Le("#000000").toFormat("hsla"),bo="hsla",go="hexa";function lX(e){let t=document.createElement("canvas").getContext("2d");return he(t,"Failed to get canvas context"),t.fillStyle=e,t.fillStyle}function Xa(e){if(typeof e=="string")try{return Le(e).toFormat(bo)}catch{return Le(lX(e)).toFormat(bo)}else if(e)return e.toFormat(bo);return null}function s5(e,t){return e?.getChannelValue("alpha")?t?.toString(go)===e.toString(go):!t?.getChannelValue("alpha")}function u5(e,t,r){return t?.label?t.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var gn="NONE";function c5(e,t){let r=t?.map(n=>({id:Le(n.color).toString(go),label:n.label}))||[],o={id:gn,label:e};return [...r,o]}var tg=(e,{optionProps:t,isFocusVisible:r,isSelected:o},n)=>(he(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...t,ref:n,className:t5,children:jsx(Ai,{color:e.value.id,isFocusVisible:r,isSelected:o,"aria-label":e.value.label,isInteractive:true})})),d5=(e,t=4)=>{let r=e.getChannelValue("alpha")===0,o=`repeating-conic-gradient(transparent 0% 25%, ${themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:r?o:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${o}`,backgroundSize:`${t}px ${t}px`}};var p5=j({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6lk _1yep5z6ic _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf z9nup8a",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617z"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isFocusVisible:true},"_1344e9q6"],[{isSelected:true,isFocusVisible:true},"_1344e9q7 _1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2"],[{isSelected:true,isDisabled:true},"_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2 _1yep5z61qd"],[{isHovered:true,isSelected:false},"_1yep5z61u2 _1yep5z61tz _1yep5z61tx _1yep5z61q7"]]}),m5="_1yep5z6f6",f5="_1344e9q9 _1yep5z6fl";var Ai=qn.forwardRef(({color:e,isFocusVisible:t,isSelected:r,isInteractive:o,isDisabled:n,style:i,className:a,id:l,tooltip:s,isIndeterminate:u,indeterminateIcon:c=HelpIcon,noneLabel:d,"data-block-id":p,"data-block-class":m,...f},y)=>{let b=e&&e!==gn&&(typeof e=="string"?Le(e):e),{formatMessage:g}=fe(),x=!b,{colorSwatchProps:h}=Nm({color:x?"#000000":e}),{hoverProps:v,isHovered:C}=ae({isDisabled:n||!o}),T=ve({"data-focus-visible":t,"data-selected":r,"data-hovered":C,"data-block-id":p,"data-block-class":m,"data-disabled":n,"data-interactive":o,"data-indeterminate":u}),P=x?d??g(y5.none):h["aria-label"],k=f["aria-label"]??P,{tooltipProps:S}=mr({tooltip:s,label:k}),w=jsx("div",{...M(v,T,x?{}:h),style:i,"aria-label":x?d??g(y5.none):h["aria-label"],role:"img",className:_(p5({removeBlendMode:x,isFocusVisible:t,isDisabled:!!n,isSelected:!!r,isHovered:C}),"BaselineUI-ColorSwatch",a),ref:y,id:l,...f,children:jsxs(J,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:n?"medium":void 0,style:b&&!u?d5(b,4):void 0,children:[x&&!u?jsx("div",{className:f5}):null,u&&c?jsx(c,{role:"presentation",size:16,className:m5,"aria-hidden":"true"}):null]})});return S&&!n?jsx(ot,{...S,children:jsx(Cl,{children:w})}):w});Ai.displayName="ColorSwatch";var y5=Se({none:{id:"bui.colorSwatch.none",defaultMessage:"None"}});var Yd=qn.forwardRef(({color:e,colorLabel:t,colorName:r,isIndeterminate:o,indeterminateIcon:n,noneLabel:i,...a},l)=>{let s=qn.useRef(null),{hoverProps:u,isHovered:c}=ae({isDisabled:a.isDisabled}),{buttonProps:d,isPressed:p}=ft(a,s),{isFocusVisible:m,focusProps:f}=ne(),y=ve({"data-block-id":a["data-block-id"],"data-focused":m,"data-focus-visible":m,"data-disabled":a.isDisabled,"data-hovered":c,"data-pressed":p}),b=ee(),g=ee();return jsxs("button",{...M(d,u,f,y),style:a.style,className:_(ZA({isHovered:c,isFocusVisible:m||a.isOpen,isDisabled:a.isDisabled,labelPosition:a.labelPosition}),"BaselineUI-ColorInputButton",a.className),ref:se(l,s),id:b,"aria-labelledby":a["aria-labelledby"]||`${b} ${g}`,children:[jsx(Ai,{color:e?.toString("hexa"),isIndeterminate:o,indeterminateIcon:n,noneLabel:i}),t?jsx("div",{className:e5,id:g,"aria-hidden":"true",children:r}):typeof r=="string"&&jsx(Ne,{children:r})]})});Yd.displayName="ColorInputButton";var og=qn.forwardRef(({className:e,style:t,icon:r,...o},n)=>{let i=qn.useRef(null),{hoverProps:a,isHovered:l}=ae({isDisabled:o.isDisabled}),{buttonProps:s,isPressed:u}=ft(o,i),{isFocusVisible:c,focusProps:d}=ne(),p=ve({"data-block-id":o["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":o.isDisabled,"data-hovered":l,"data-pressed":u});return jsxs("button",{...M(s,a,d,p),ref:se(n,i),style:t,className:_(n5({isHovered:l||u||o.isOpen,isFocusVisible:c,isDisabled:o.isDisabled}),"BaselineUI-IconColorInputButton","BaselineUI-IconColorInput-Button",e),children:[jsx(r,{size:16}),jsx("div",{className:YA,style:{backgroundColor:o.color||void 0}})]})});og.displayName="IconColorInputButton";var HP=qn.forwardRef(({setColor:e,color:t,triggerRef:r,autoFocus:o,presets:n,state:i,isIndeterminate:a,colorPresetsLabel:l},s)=>{let{formatMessage:u}=fe(),c=useCallback(d=>{if(d instanceof Set&&d.size){let p=[...d][0],m=n.find(f=>f.id===p);he(m,"Preset not found"),e(m.id===gn?null:Le(m.id).toFormat(bo)),i.close();}},[i,n,e]);return jsx("div",{className:_(Qb,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:s,children:jsx(an,{autoFocus:o,items:n,layout:"grid","aria-label":l??u(mX.colorPresets),className:Xb,renderOption:tg,selectionMode:"single",selectedKeys:a?[]:[t?.toString(go)||gn],onSelectionChange:c,escapeKeyBehavior:"none"})})});HP.displayName="ColorPresetList";var mX=Se({colorPresets:{defaultMessage:"Color Presets",id:"bui.colorInput.colorPresets"}});var ng=({children:e})=>{let{triggerProps:t}=qn.useContext(Vn);return jsx(_r,{...t,children:e})};ng.displayName="ModalTrigger";var gX=({children:e})=>{let{state:t}=qn.useContext(Vn);return jsx(_r,{onPress:()=>{t?.close();},children:e})};var h5=({value:e,...t})=>{let r=qn.useRef(null),o=qn.useRef(null),n=qn.useRef(null),i=km({...t,value:e}),{colorAreaProps:a,xInputProps:l,yInputProps:s,thumbProps:u}=Dm({...t,value:e,inputXRef:r,inputYRef:o,containerRef:n},i);useEffect(()=>{r.current?.focus();},[]);let{focusProps:c,isFocusVisible:d}=ne();return jsx("div",{ref:n,...a,className:_(XA,"BaselineUI-ColorInput-ColorArea"),children:jsxs("div",{...u,className:_(eg({isFocusVisible:d}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...u.style,transform:"translate(-50%, -50%)",backgroundColor:Xa(e)?.withChannelValue("alpha",1).toString("css")},children:[jsx("input",{ref:r,...l,...c}),jsx("input",{ref:o,...s,...c})]})})};var v5=({color:e,setColor:t,allowAlpha:r,...o})=>{let n=Lm({value:e,onChange:d=>{t(Xa(d)?.toFormat(bo).withChannelValue("alpha",e.getChannelValue("alpha")??1)||Wd);}}),i=qn.useRef(null),{inputProps:a}=Im({...o,"aria-label":"Hex"},n,i),{focusProps:l,isFocused:s}=ne({isTextInput:true}),{hoverProps:u,isHovered:c}=ae({});return jsxs("div",{className:_(FP,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[jsx("input",{...M(a,l,u),ref:i,className:o5({isFocused:s,isHovered:c,allowAlpha:r})}),r?jsx(T5,{color:e,setColor:t}):null]})},x5=({color:e,setColor:t,allowAlpha:r})=>{let o=e.toFormat("rgba"),{locale:n}=Q();return jsxs("div",{className:_(FP,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[jsx(Kn,{"aria-label":e.getChannelName("red",n),value:o.getChannelValue("red"),showStepper:false,className:Ud,onChange:i=>{t(o.withChannelValue("red",i).toFormat(bo));},step:1,minValue:0,maxValue:255}),jsx(Kn,{"aria-label":e.getChannelName("green",n),value:o.getChannelValue("green"),showStepper:false,className:Ud,onChange:i=>{t(o.withChannelValue("green",i).toFormat(bo));},step:1,minValue:0,maxValue:255}),jsx(Kn,{"aria-label":e.getChannelName("blue",n),value:o.getChannelValue("blue"),showStepper:false,className:Ud,onChange:i=>{t(o.withChannelValue("blue",i).toFormat(bo));},step:1,minValue:0,maxValue:255}),r?jsx(T5,{color:e,setColor:t}):null]})},PX={style:"percent",maximumFractionDigits:0},T5=({color:e,setColor:t})=>{let{locale:r}=Q(),o=useCallback(n=>{t(e.withChannelValue("alpha",n));},[e,t]);return jsx(Kn,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:PX,className:Ud,showStepper:false,onChange:o,minValue:0,maxValue:1})};var GP=({channel:e,...t})=>{let{locale:r}=Q(),o=Om({...t,channel:e,locale:r}),n=qn.useRef(null),i=qn.useRef(null),{trackProps:a,thumbProps:l,inputProps:s}=Mm({...t,channel:e,trackRef:n,inputRef:i,"aria-label":o.value.getChannelName(e,r)},o),{focusProps:u,isFocusVisible:c}=ne();return jsxs("div",{className:_(Yb,{[yI({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...a,ref:n,children:[e==="alpha"&&jsx("div",{className:BP}),jsx("div",{className:Yb,style:a.style}),jsxs("div",{className:_(eg({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...l,children:[jsx("div",{className:BP,style:{backgroundColor:"#ffffff"}}),jsx("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:Yb}),jsx(Ne,{children:jsx("input",{ref:i,...s,...u})})]})]})};var ig=({color:e,setColor:t,allowAlpha:r,colorFormatLabel:o,onChangeEnd:n})=>{let[i,a]=qn.useState("hex"),{formatMessage:l}=fe();return jsxs(Fragment,{children:[jsx(h5,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:n}),jsxs("div",{className:VP,children:[jsx(GP,{channel:"hue",value:e,onChange:t,onChangeEnd:n}),r?jsx(GP,{channel:"alpha",value:e,onChange:t,onChangeEnd:n}):null]}),jsxs("div",{className:_(VP,sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsx(yo,{label:o??l(kX.colorFormat),labelPosition:"start",variant:"ghost",items:l5,selectedKey:i,onSelectionChange:s=>{a(s);}}),i==="hex"&&jsx(v5,{color:e,setColor:s=>{t(s),n?.(s);},allowAlpha:r}),i==="rgb"&&jsx(x5,{color:e,setColor:s=>{t(s),n?.(s);},allowAlpha:r})]})]})},kX=Se({colorFormat:{defaultMessage:"Color Format",id:"bui.colorInput.colorFormat"}});var D5=({color:e,setColor:t,storePickedColorKey:r,addColorButtonLabel:o,removeColorButtonLabel:n,customColorsLabel:i,addLabel:a,cancelLabel:l,newColorLabel:s,colorFormatLabel:u,pickerMode:c,allowAlpha:d,isIndeterminate:p})=>{let{locale:m}=Q(),{formatMessage:f}=fe(),y=qn.useRef(null),b=ki(y.current),[g,x]=i_(r,[]),h=qn.useRef(null),[v,C]=qn.useState(e),T=qn.useMemo(()=>g.map(z=>({id:z,label:Le(z).getColorName(m),description:z})),[g,m]),P=useCallback(()=>{let z=c==="active"?e:v;if(g.includes(z.toString(go))){h.current?.querySelector(`[data-key='${z.toString(go)}']`)?.classList.add(KP);return}x([...g,z.toString(go)]);},[g,e,x,v,c]);useEffect(()=>{let z=h.current;function A(D){D.animationName===i5&&$(D)?.classList.remove(KP);}return z?.addEventListener("animationend",A),()=>{z?.removeEventListener("animationend",A);}},[]);let k=ee(),S=jsx(me,{ref:y,variant:"secondary",size:"md","aria-label":o,icon:PlusIcon$2,onPress:c==="active"?P:void 0}),w=useCallback(z=>jsxs(Ar,{size:"content",className:Zb({includesCustomColorPicker:true}),style:{paddingBlockEnd:0},"aria-label":s??f(qP.newColor),children:[jsx(ig,{color:v,setColor:C,allowAlpha:d,colorFormatLabel:u}),jsx(ze,{}),jsx(J,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxs(J,{display:"inline-flex",gap:"lg",children:[jsx(Me,{label:l??f(qP.cancel),size:"sm",variant:"secondary",onPress:z}),jsx(Me,{label:a??f(qP.add),variant:"primary",onPress:()=>{P(),z();},size:"sm"})]})})]}),[v,P,f,d,s,u,l,a]),E=useCallback(z=>{he(z instanceof Set,"Key must be a set");let A=[...z][0];A&&t(Le(A).toFormat(bo));},[t]);return jsxs(Fragment,{children:[jsx(ze,{}),jsxs("div",{className:_(r5,"BaselineUI-ColorInput-CustomColors"),children:[jsx("span",{id:k,children:i}),jsxs(J,{display:"flex",children:[!!g.length&&g.includes(e.toString(go))&&jsx(me,{variant:"secondary",size:"md",elementType:"div",icon:MinusIcon$2,"aria-label":n,onPress:()=>{x(g.filter(z=>z!==e.toString(go)));}}),c==="active"&&S,c==="lazy"&&(b==="mobile"?jsxs(un,{children:[jsx(ng,{children:S}),jsx(cn,{style:{zIndex:1e5},children:({close:z})=>w(z)})]}):jsxs(Mo,{type:"dialog",children:[jsx(Ao,{children:S}),jsx(Et,{placement:"right top",className:Jb,offset:6,children:({close:z})=>w(z)})]}))]})]}),!!g.length&&jsx(an,{items:T,layout:"grid","aria-labelledby":k,className:_(Xb,Qb,sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:tg,ref:h,autoFocus:false,selectionMode:"single",selectedKeys:p?[]:[e.toString(go)],onSelectionChange:E})]})},qP=Se({newColor:{defaultMessage:"New Custom Color",id:"bui.colorInput.newColor"},cancel:{defaultMessage:"Cancel",id:"bui.colorInput.cancel"},add:{defaultMessage:"Add",id:"bui.colorInput.add"}});function E5({colorLabel:e,color:t,presets:r,isIndeterminate:o,indeterminateLabel:n,transparentLabel:i}){let{formatMessage:a}=fe(),{locale:l}=Q(),s=useMemo(()=>o?{id:"indeterminate",label:n??a(k5.indeterminate)}:r.find(d=>d.id===gn?!t:t?s5(t,Le(d.id)):false),[r,t,o,a,n]),u=useMemo(()=>{if(typeof e=="function")return e?.(t,{isIndeterminate:!!o});if(typeof e=="boolean")return e?u5(t,s,i??a(k5.transparent)):false;throw new TypeError("`colorLabel` must be a function or a boolean")},[t,e,a,s,o,i]),c=useMemo(()=>{if(s?.label)return s.label;t?.getColorName(l);},[t,l,s?.label]);return {colorName:u,humanReadableName:c}}var k5=Se({transparent:{defaultMessage:"Transparent",id:"bui.colorInput.transparent"},indeterminate:{defaultMessage:"Indeterminate",id:"bui.colorInput.indeterminate"}});var Qs=qn.forwardRef(({className:e,style:t,allowRemoval:r,allowAlpha:o=true,presets:n,labelPosition:i="top",colorLabel:a=true,includePicker:l=true,onChange:s,onChangeEnd:u,defaultValue:c,storePickedColorKey:d="baselinePickedColor",value:p,addColorButtonLabel:m,removeColorButtonLabel:f,customColorsLabel:y,addLabel:b,cancelLabel:g,newColorLabel:x,colorFormatLabel:h,colorPresetsLabel:v,noColorLabel:C,indeterminateLabel:T,transparentLabel:P,onTriggerPress:k,renderTriggerButton:S=({isOpen:I,color:V,ref:H,colorName:K,triggerProps:L,labelId:B,isIndeterminate:G,indeterminateIcon:q,noneLabel:W})=>jsx(Yd,{...M(L,{...N.label?{"aria-labelledby":B}:{"aria-label":N["aria-label"]}}),ref:H,isOpen:I,isDisabled:N.isDisabled,labelPosition:i,color:V,colorLabel:a,colorName:K,isIndeterminate:G,indeterminateIcon:q,noneLabel:W}),pickerMode:w="active",offset:E=2,placement:z=i==="start"?"bottom end":"bottom start","data-block-id":A,"data-block-class":D,isIndeterminate:O,indeterminateIcon:R,...N},F)=>{let I=qn.useRef(null),V=qn.useRef(null),H=Tr(N),{triggerProps:K,overlayProps:L}=Nn({type:"listbox"},H,I),B=yr(N.portalContainer),[G,q]=ye(p===void 0?void 0:Xa(p),Xa(c),be=>s?.(be?.toFormat("rgba")||null)),{formatMessage:W}=fe(),X=useMemo(()=>c5(C??W(lg.noColor),n),[n,W,C]),ce=ee(),{colorName:te}=E5({colorLabel:a,color:G,presets:X,isIndeterminate:O,indeterminateLabel:T,transparentLabel:P}),ue=useMemo(()=>X.filter(be=>r||be.id!==gn),[X,r]),Ee=m||W(lg.addColor),Ce=f||W(lg.removeColor),He=y||W(lg.customColors),Xe=jsx(D5,{color:G||Wd,setColor:be=>{q(be),u?.(be?.toFormat("rgba")||null);},storePickedColorKey:d,addColorButtonLabel:Ee,removeColorButtonLabel:Ce,customColorsLabel:He,addLabel:b,cancelLabel:g,newColorLabel:x,colorFormatLabel:h,pickerMode:w,allowAlpha:o,isIndeterminate:!!O});return jsxs(Fragment,{children:[jsxs("div",{className:_({[JA]:i==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":A,"data-block-class":D,style:t,ref:F,children:[N.label?jsx("label",{id:ce,className:QA({labelPosition:i}),children:N.label}):null,S({isOpen:H.isOpen,color:G,ref:I,colorName:te,triggerProps:M(K,{onPress:k}),labelId:ce,isIndeterminate:O,indeterminateIcon:R,noneLabel:C})]}),jsx(Et,{...N,portalContainer:B,placement:z,state:H,offset:E,className:_(Jb,"BaselineUI-ColorInput-Popover"),triggerRef:I,overlayProps:L,children:jsxs(Ar,{size:"content",className:Zb({includesCustomColorPicker:l}),ref:V,"aria-labelledby":N.label?ce:void 0,"aria-label":N["aria-label"],children:[l&&w==="active"?jsxs(Fragment,{children:[jsx(ig,{color:G||Wd,setColor:q,allowAlpha:o,colorFormatLabel:h,onChangeEnd:be=>{u?.(be?.toFormat("rgba")||null);}}),Xe]}):null,!!ue.length&&jsxs(Fragment,{children:[l&&w==="active"?jsx(ze,{}):null,jsx(HP,{autoFocus:l&&w==="active"?false:"first",state:H,triggerRef:I,presets:ue,colorPresetsLabel:v,color:G,setColor:be=>{q(be),u?.(be?.toFormat("rgba")||null);},isIndeterminate:!!O})]}),l&&w==="lazy"?Xe:null]})})]})});Qs.displayName="ColorInput";var lg=Se({addColor:{defaultMessage:"Add Color",id:"bui.colorInput.addColor"},removeColor:{defaultMessage:"Remove Color",id:"bui.colorInput.removeColor"},customColors:{defaultMessage:"Custom Colors",id:"bui.colorInput.customColors"},noColor:{defaultMessage:"None",id:"bui.colorInput.noColor"}});var R5=qn.forwardRef(({className:e,style:t,icon:r,variant:o="standard","data-block-id":n,tooltip:i=true,iconTooltip:a=true,...l},s)=>{let u=qn.useRef(null),{tooltipProps:c}=mr({label:l["aria-label"],tooltip:i}),d=useCallback(({isOpen:p,color:m,ref:f,colorName:y,triggerProps:b,isIndeterminate:g,indeterminateIcon:x,noneLabel:h})=>jsx(ot,{...c,children:o==="standard"?jsx(Yd,{...b,"aria-label":l["aria-label"],ref:f,isOpen:p,isDisabled:l.isDisabled,color:m,colorLabel:false,colorName:y,isIndeterminate:g,indeterminateIcon:x,noneLabel:h}):jsx(og,{...b,isOpen:p,icon:TextIcon,color:m?.toString("hexa"),ref:f,isDisabled:l.isDisabled,"aria-label":l["aria-label"],isIndeterminate:g,indeterminateIcon:x})}),[l,c,o]);return jsxs(J,{display:"flex",flexDirection:"row",gap:"md",paddingX:o==="standard"?"md":"none",alignItems:"center",className:_("BaselineUI-IconColorInput",e),"data-block-id":n,style:t,ref:se(s,u),children:[o==="standard"&&r?jsx(Ns,{icon:r,label:l["aria-label"],tooltip:a,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsx(Qs,{...l,colorLabel:false,renderTriggerButton:d})]})});R5.displayName="IconColorInput";var sg=j({defaultClassName:"mnnh5s1 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6la _1yep5z6ld _1yep5z6lp _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6138 _1yep5z6183 _1yep5z6184",false:"_1yep5z617q _1yep5z6127"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6126"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 _1yep5z6zd"}},defaultVariants:{},compoundVariants:[[{isHovered:true,hasLoadedImage:false},"_1yep5z61oh"],[{isHovered:true,hasLoadedImage:true},"mnnh5s9"],[{isInline:true,isDisabled:true},"_1yep5z61pb"],[{hasLoadedImage:true,includeCheckeredBackground:true},"_1yep5z61o9"]]}),I5="_1yep5z6d8",ug=j({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var _5=j({defaultClassName:"_1i0ytqa3 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6lo _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z612f",false:"_1yep5z612h"},isDisabled:{true:"_1i0ytqa7 _1yep5z6zd",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:true,isFocusVisible:true},"_1i0ytqa9 _1yep5z61p7 _1yep5z61u5 _1yep5z61u7"],[{isInline:false,isFocusVisible:true},"_1i0ytqaa"],[{isInline:true,isDisabled:true},"_1yep5z61oi"],[{isInline:false,isDisabled:true},"_1yep5z61ok"]]}),L5="_1i0ytqa0",cg=j({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqad _1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),M5=j({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});function A5({line:e,options:t}){let r=useRef([]),o=useMemo(()=>{let n=Math.ceil(e.length/eu),i;for(let a=0;a<n;a++)if(!(!(a===n-1)&&!!r.current[a])){let u=e.slice(a*eu-(a>0?1:0),a*eu+eu);i=by(getStroke(u.map(([c,d,p])=>({x:c,y:d,pressure:p})),t)),u.length>=(a>0?eu+1:eu)&&(r.current[a]=i);}return i},[e,t]);return [...r.current,o]}var eu=180;var UX={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:true},end:{taper:0,easing:e=>e,cap:true},simulatePressure:false},F5=qn.forwardRef(({className:e,style:t,canvasClassName:r,canvasStyle:o,isBound:n=true,strokeWidth:i=2,strokeColor:a="#3A87FD",onChange:l,defaultValue:s,onChangeEnd:u,enableHistory:c=false,isInline:d=true,isDisabled:p,placeholder:m,clearLabel:f,undoLabel:y,redoLabel:b,footerClassName:g,canvasRef:x,value:h,footerStyle:v,"data-block-id":C,"data-block-class":T,"aria-label":P="Drawing canvas",description:k="This is a canvas for drawing using a mouse or touch input.",...S},w)=>{let E=fe(),z=qn.useRef(null),[A,D]=qn.useState(h||s||[]),O=qn.useMemo(()=>({...UX,...S}),[S]),[R,N]=qn.useState(),F=ee(),{labelProps:I,fieldProps:V}=rr({...S,"aria-label":P,labelElementType:"span"}),{isFocusVisible:H,focusProps:K}=ne({within:true}),{hoverProps:L,isHovered:B}=ae({isDisabled:p}),{undo:G,redo:q,canRedo:W,canUndo:X,push:ce}=xI(A,{onAction:xe=>{xe&&(D(xe),u?.(xe));},isDisabled:!c}),{keyboardProps:te}=Ae({onKeyDown:xe=>{xe.key==="Backspace"?be():xe.key==="z"&&(xe.metaKey||xe.ctrlKey)&&(xe.shiftKey?W&&q():X&&G());}}),[ue,Ee]=useState(false),Ce=useCallback(xe=>{let Fe=xe.currentTarget.getBoundingClientRect();N(Fe),xe.target.setPointerCapture(xe.pointerId);let le=[xe.clientX-Fe.x,xe.clientY-Fe.y,xe.pressure];D(ie=>[...ie,[le]]),Ee(true);},[]),He=useCallback(xe=>{if(xe.buttons!==1||!R)return;let le=B5(xe.nativeEvent).map(ie=>[n?Ze(ie.clientX-R.left,0,R.width):ie.clientX-R.left,n?Ze(ie.clientY-R.top,0,R.height):ie.clientY-R.top,ie.pressure]);D(ie=>{let we=[...ie];return we[ie.length-1]=[...we[ie.length-1],...le],we});},[R,n]),Xe=()=>{R&&(u?.(A),ce(A),Ee(false),N(void 0));};useEffect(()=>{l?.(A);},[A,l]);let be=()=>{D([]),l?.([]),ce([]);};return jsxs("div",{ref:se(z,w),className:_(L5,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":p,"data-block-id":C,"data-block-class":T,children:[S.label||c?jsxs("div",{className:M5({isInline:d}),children:[S.label?jsx(Je,{type:"label",size:"sm",...I,children:S.label}):jsx("span",{}),c?jsxs("div",{children:[jsx(me,{variant:"secondary",size:"sm",isDisabled:!X||p,icon:UndoIcon,onPress:G,"aria-label":y||E.formatMessage(N5.undo)}),jsx(me,{variant:"secondary",size:"sm",isDisabled:!W||p,icon:RedoIcon,onPress:q,"aria-label":b||E.formatMessage(N5.redo)})]}):null]}):null,jsxs("div",{role:"application",...M(K,te,L,V),tabIndex:p?void 0:0,className:_(sg({isInline:d,isHovered:B}),_5({isFocusVisible:H,isInline:d,isDisabled:!!p}),r),"aria-describedby":S["aria-describedby"]||F,style:o,ref:x,children:[jsx(Ne,{children:jsx("div",{id:F,children:k})}),jsx("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:Ce,onPointerMove:He,onPointerUp:Xe,children:(h||A).map((xe,Fe,le)=>Fe<le.length-1||!ue?jsx(K5,{line:xe,options:O,strokeColor:a,strokeWidth:i},Fe):jsx(V5,{line:xe,options:O,strokeColor:a,strokeWidth:i},Fe))})]}),m||f?jsx("div",{style:v,className:_(cg({isInline:d,isDisabled:p}),g),children:(A.length||!m)&&f?jsx(Me,{size:"sm",variant:"ghost",label:f,isDisabled:p,onPress:be}):jsx(Me,{size:"sm",variant:"ghost",label:m,isDisabled:true})}):null]})});F5.displayName="FreehandCanvas";var K5=qn.memo(({line:e,options:t,strokeColor:r,strokeWidth:o})=>{let n=useMemo(()=>by(getStroke(e.map(([i,a,l])=>({x:i,y:a,pressure:l})),t)),[e,t]);return jsx("path",{d:n,stroke:r,strokeWidth:o})});K5.displayName="Stroke";var V5=qn.memo(({line:e,options:t,strokeColor:r,strokeWidth:o})=>{let n=A5({line:e,options:t});return jsx(Fragment,{children:n.map((i,a)=>jsx("path",{d:i,stroke:r,strokeWidth:o},a))})});V5.displayName="SplitStroke";function B5(e){if(typeof e.getCoalescedEvents=="function"){let t=e.getCoalescedEvents();return t.length>0?t.flatMap(r=>B5(r)):[e]}return [e]}var N5=Se({undo:{defaultMessage:"Undo",id:"bui.freehandCanvas.undo"},redo:{defaultMessage:"Redo",id:"bui.freehandCanvas.redo"}});var $5=qn.forwardRef(({className:e,style:t,isInline:r=true,accept:o="image/*",defaultImageSrc:n,imageSrc:i,imageAlt:a,pickerButtonLabel:l,isDisabled:s,onDrop:u,onPaste:c,includeCheckeredBackground:d=true,"data-block-id":p,"data-block-class":m,pickerButtonStyle:f,pickerButtonClassName:y,footerClassName:b,footerStyle:g,clearLabel:x,placeholder:h,labelStyle:v,labelClassName:C,maxFileSize:T,onFileSizeError:P,onFileTypeError:k,...S},w)=>{let E=qn.useRef(null),z=qn.useRef(null),{formatMessage:A}=fe(),D=xe=>!T||xe.size<=T?true:(P?.(xe),false),O=xe=>YX(xe,o)?true:(k?.(xe),false),R=xe=>O(xe)&&D(xe),[N,F]=ye(i,n||null,xe=>{he(typeof xe!="string"),S.onValueChange?.(xe?[xe]:[]);}),I=useMemo(()=>XX(N||void 0),[N]),{fieldProps:V,labelProps:H}=Br({...S,ref:E}),{dropProps:K,isDropTarget:L}=_a({ref:E,onDrop:async xe=>{if(s)return;let Fe=await ks({items:xe.items});Fe.length&&R(Fe[0])&&F(Fe[0]),u?.(xe);},...S}),{clipboardProps:B}=Oc({onPaste:async xe=>{if(s)return;let Fe=await ks({items:xe});Fe.length&&R(Fe[0])&&F(Fe[0]),c?.(xe);},...S}),G=()=>{F(null),z.current&&(z.current.value="");},q={type:"file",onChange:xe=>{let Fe=[...xe.target.files];Fe.length&&R(Fe[0])?F(Fe[0]):Fe.length&&(xe.target.value=""),S.onChange?.(xe);},accept:o,disabled:s},{focusProps:W,isFocused:X,isFocusVisible:ce}=ne({within:true}),{hoverProps:te,isHovered:ue}=ae({isDisabled:s}),{imgProps:Ee,isLoading:Ce,isLoaded:He}=Ny({src:I,alt:a||""}),Xe={label:l||A(ZX.selectImage),onPress:()=>E.current?.click(),variant:"secondary",isDisabled:s,excludeFromTabOrder:true,className:_(Ay({isFocusVisible:ce}),{[I5]:L&&!s},y),style:f},be=ve({"data-loaded":He,"data-block-id":p,"data-block-class":m,"data-hovered":ue,"data-focused":X,"data-drop-target":L,"data-disabled":s,"data-focus-visible":ce});return jsxs(J,{...be,className:_("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:w,children:[jsxs("label",{...M(K,te,W,H),className:_(sg({isInline:r,isHovered:ue,isDisabled:s,hasLoadedImage:!!I&&He,showFocusRing:L||!!I&&ce}),C),style:v,ref:E,children:[jsx(Ne,{children:jsx("input",{...M(V,B,q),ref:z})}),!I&&jsx(Me,{...Xe}),!!I&&(Ce?jsx(mn,{}):jsx("img",{className:ug({isInline:r,isDisabled:s,hasLoadedImage:!!I&&He&&d}),...Ee}))]}),h||x?jsx("div",{style:g,className:_(cg({isInline:r,isDisabled:s}),b),children:(I||!h)&&x?jsx(Me,{size:"sm",variant:"ghost",label:x,isDisabled:s,onPress:G}):jsx(Me,{size:"sm",variant:"ghost",label:h,isDisabled:true})}):null]})});$5.displayName="ImageDropZone";function XX(e){return !e||typeof e=="string"?e:URL.createObjectURL(e)}function YX(e,t){if(!t)return true;let r=t.split(",").map(i=>i.trim().toLowerCase()).filter(Boolean);if(r.length===0)return true;let o=e.type.toLowerCase(),n=e.name.toLowerCase();return r.some(i=>i==="*/*"?true:i.startsWith(".")?n.endsWith(i):o?i.endsWith("/*")?o.startsWith(i.slice(0,-1)):o===i:true)}var ZX=Se({selectImage:{defaultMessage:"Select Image",id:"bui.imageDropZone.selectImage"}});var j5="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",QP="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",G5=j({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6lt _1yep5z6lr _1yep5z6ic _1yep5z6lu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6lp _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6137 _1yep5z6182 _1yep5z6184",false:"_1yep5z612h"},isFocusVisible:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 z9nup82 _1yep5z6zd"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:true},"_1yep5z61oi"],[{accent:"theme",isInline:true},"_1yep5z61o7"],[{accent:"positive",isInline:false},"_1yep5z61ok"],[{accent:"theme",isInline:false},"_1yep5z61o9"],[{isFocusVisible:true,isInline:true},"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u0"],[{isHovered:true,isInline:true},"_1yep5z61u0 _1yep5z61q3 _1yep5z61tx _1yep5z61tz"],[{isHovered:true,isInline:false,accent:"positive"},"_1yep5z61oj"],[{isHovered:true,isInline:false,accent:"theme"},"_1yep5z61ob"],[{isHovered:true,isInline:true,accent:"theme"},"_1yep5z61o8"]]});var W5=qn.forwardRef(({className:e,style:t,isDisabled:r,isInline:o=true,imageAlt:n,imageSrc:i,svgSrc:a,textValue:l,textStyle:s,onPress:u,onDelete:c,deleteAriaLabel:d,addAriaLabel:p,accent:m="positive","data-block-id":f,"data-block-class":y,...b},g)=>{let{focusProps:x,isFocused:h,isFocusVisible:v}=ne({within:true}),{isHovered:C,hoverProps:T}=ae({isDisabled:r}),{pressProps:P}=Oe({isDisabled:r,onPress:u});he(i||a||l,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let k=ve({"data-hovered":C,"data-focus-visible":v,"data-focused":h,"data-disabled":r});return jsxs("div",{...b,className:_(G5({isInline:o,isFocusVisible:v,isDisabled:r,isHovered:C,accent:m}),"BaselineUI-Preview",e),"data-block-id":f,"data-block-class":y,"aria-label":b["aria-label"]||n||l,style:t,ref:g,children:[typeof a=="string"?jsx("button",{disabled:r,...M(T,x,P,k),className:QP,"aria-label":p,dangerouslySetInnerHTML:{__html:a}}):jsxs("button",{...M(T,x,P,k),disabled:r,style:s,"aria-label":p,className:QP,children:[i?jsx("img",{src:i,alt:n,className:ug({isInline:o,isDisabled:r})}):null,!!a&&typeof a=="object"&&a,l]}),c?jsx(me,{isDisabled:r,className:j5,"aria-label":d,size:"xs",icon:TrashIcon,onPress:c}):null]})});W5.displayName="Preview";var q5="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",X5=j({defaultClassName:"cw3m0n5 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Y5="cw3m0n4",Z5="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",J5=j({defaultClassName:"cw3m0n0 _1yep5z61j6 _1yep5z61j7 _1yep5z61j8 _1yep5z61ju _1yep5z61jv _1yep5z61jw _1yep5z61ki _1yep5z61kj _1yep5z61kk _1yep5z61l6 _1yep5z61l7 _1yep5z61l8 _1yep5z61nb _1yep5z61tg",variantClassNames:{isHovered:{true:"cw3m0n1"},isReadOnly:{true:"cw3m0n2"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isReadOnly:false},"cw3m0n3"]]});var tY=({label:e,description:t},{isSelected:r,isFocusVisible:o,isDisabled:n,optionLabelPosition:i,isHovered:a,isReadOnly:l})=>jsxs("div",{className:bb({labelPosition:i}),children:[jsx("div",{className:_(Vs({isSelected:r,isFocusVisible:o,isDisabled:n,isReadOnly:l,isHovered:a}),J5({isHovered:a})),children:r?jsx("div",{className:Y5}):null}),e?jsxs("div",{className:q5,children:[jsx("span",{className:yb({isDisabled:n}),children:e}),t?jsx("span",{className:X5({isDisabled:n}),children:t}):null]}):null]}),Q5=({state:e,renderOption:t=tY,item:r,optionLabelPosition:o="end",optionStyle:n,optionClassName:i,isReadOnly:a,...l})=>{let s=!!l.isDisabled||!!l.disabledValues?.includes(r.id),u=qn.useRef(null),{inputProps:c,isPressed:d,isSelected:p,labelProps:m}=$x({...l,isDisabled:s,children:r.label,value:r.id},e,u),{focusProps:f,isFocusVisible:y,isFocused:b}=ne(),{hoverProps:g,isHovered:x}=ae({isDisabled:s},u),h=ve({"data-selected":p,"data-focused":b,"data-focus-visible":y,"data-hovered":x,"data-disabled":s,"data-pressed":d,"data-read-only":a});return jsxs("label",{...M(m,g,h),style:n,className:_("BaselineUI-Radio-Item",i),children:[jsx(Ne,{children:jsx("input",{...M(c,f),ref:u})}),t(r,{isFocusVisible:y,isSelected:p,isFocused:b,isHovered:x,isDisabled:s,optionLabelPosition:o,isReadOnly:a})]})};var t6=qn.forwardRef(({className:e,style:t,optionsContainerClassName:r,optionsContainerStyle:o,items:n,labelPosition:i="top",renderOption:a,"aria-label":l,"aria-labelledby":s,"aria-describedby":u,"aria-details":c,"data-block-id":d,"data-block-class":p,...m},f)=>{let y=pe(f),b=Gx(m),{radioGroupProps:g,labelProps:x,descriptionProps:h,errorMessageProps:v}=jx({...m,"aria-label":l,"aria-labelledby":s,"aria-describedby":u,"aria-details":c},b,y),C=br({...m,descriptionProps:h,errorMessageProps:v,labelPosition:i}),T=ve({"data-orientation":m.orientation,"data-block-id":d,"data-block-class":p,"data-disabled":m.isDisabled,"data-readonly":m.isReadOnly});return jsxs("div",{...M(g,T),className:_(sn({labelPosition:i}),"BaselineUI-RadioGroup",e),style:t,ref:y,children:[m.label||C?jsxs("div",{className:ln({labelPosition:i,hasMessage:!!C}),children:[jsx("span",{...x,className:_(zi,"BaselineUI-RadioGroup-Label"),children:m.label}),i==="start"&&C]}):null,jsx("div",{className:_(Z5,{[Rs]:m.isDisabled},r),style:o,children:n.map(P=>jsx(Q5,{state:b,renderOption:a,item:P,...m,value:P.id},P.id))}),i==="top"&&C]})});t6.displayName="RadioGroup";var r6=({id:e,defaultMessage:t,elementType:r=Fragment$1})=>{he(e||t,"`id` or `defaultMessage` is required.");let n=fe().formatMessage({id:e,defaultMessage:t});return jsx(r,{children:n})};r6.displayName="MessageFormat";var o6=qn.forwardRef(({className:e,style:t,children:r,"data-block-id":o,"data-block-class":n,role:i="group",isDisabled:a,...l},s)=>{let{hoverProps:u,isHovered:c}=ae({isDisabled:a});return jsx("div",{...u,role:i,"data-hovered":c,"data-disabled":a,"data-block-id":o,"data-block-class":n,className:e,style:t,...l,ref:s,children:r})});o6.displayName="Group";var sY=0,nS="UNSUPPORTED_IN_MENU";function i6(e){return useMemo(()=>qn.Children.toArray(e).map(t=>{let r=t,o=`item${++sY}`,n=ru(r,Mo),i=n6(r),a,l;if(n){let g=ru(n,Ao);he(g),a=n6(g),l=ru(n,Et).props.children;}else i?a=i:a=r;let{onPress:s,label:u,"aria-label":c,iconStart:d,isDisabled:p,icon:m}=a.props,f=u||c||nS;he(typeof f=="string","ActionGroup children must have a string label");let y=`${o}-${f}`;return createElement(mo,{...{key:y,onPress:s,textValue:f,"aria-label":c,icon:d||m,dialogContent:l,isDisabled:p},key:y},r)}),[e])}function ru(e,t){if(t){for(let r of qn.Children.toArray(e))if(qn.isValidElement(r)){if(r.type===t)return r;if(r.props.children){let o=ru(r.props.children,t);if(o)return o}}}}function n6(e){return ru(e,Me)||ru(e,me)}var cY=new Set(["text","search","password","tel","url"]);function pg({props:e,ref:t}){let{toolbarProps:r}=Jf(e,t),{direction:o}=Q(),n=o==="rtl";return {toolbarProps:{...r,onKeyDownCapture:i=>{let a=i.target,l=i.key,s=()=>{let u=t.current;if(!u)return;let c=de(U(u));if(!c||!Z(u,c)||c.dataset.buiAvoidFocus!=="true")return;let d=mY(u),p=d.indexOf(c);if(p===-1)return;let m=dY({key:l,orientation:e.orientation??"horizontal",isRTL:n});if(!m)return;let f=p+m;for(;f>=0&&f<d.length;){let y=d[f];if(y.dataset.buiAvoidFocus!=="true"&&!y.matches('[disabled], [aria-disabled="true"]')){y.focus();return}f+=m;}};if(fY(a)&&cY.has(a.type)){let u=a.selectionStart===0,c=a.selectionEnd===a.value.length;(u&&(n&&i.key==="ArrowRight"||!n&&i.key==="ArrowLeft")||c&&(n&&i.key==="ArrowLeft"||!n&&i.key==="ArrowRight"))&&(r.onKeyDownCapture?.(i),s());return}r.onKeyDownCapture?.(i),s();}}}}function dY({key:e,orientation:t,isRTL:r}){return t==="vertical"?e==="ArrowUp"?-1:e==="ArrowDown"?1:null:e==="ArrowLeft"?r?1:-1:e==="ArrowRight"?r?-1:1:null}var pY='button, [role="button"], input, [tabindex]';function mY(e){let t=[],r=o=>{t.push(...o.querySelectorAll(pY));for(let n of o.querySelectorAll("*"))n.shadowRoot&&r(n.shadowRoot);};return r(e),t}function fY(e){return e.tagName.toLowerCase()==="input"}var a6="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",l6={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var aS=qn.forwardRef(({className:e,style:t,children:r,collapsibleMenuProps:o,"data-block-id":n,"data-block-class":i,renderSpacer:a,onKeyDown:l,isSingleTabStop:s=true,moreLabel:u,...c},d)=>{let{formatMessage:p}=fe(),[m,f]=useState(),y=i6(r),b=Ot({...c,children:y}),g=pe(d),x=useRef(null),[{visibleItems:h,isMeasuring:v},C]=hl({visibleItems:b.collection.size,isMeasuring:false}),T=useCallback(()=>{let D=O=>{if(x.current&&g.current){let R=[...x.current.children],N=g.current.getBoundingClientRect().width,F=O<b.collection.size,I=0,V=0;if(F){let H=R.pop();H&&(I+=c6(H,false,true));}for(let[H,K]of R.entries())if(I+=c6(K,H===0,H===R.length-1),Math.round(I)<=Math.round(N))V++;else break;return V}return O};C(function*(){yield {visibleItems:b.collection.size,isMeasuring:true};let O=D(b.collection.size),R=O<b.collection.size&&O>0;yield {visibleItems:O,isMeasuring:R},R&&(yield {visibleItems:D(O),isMeasuring:false});});},[C,g,b.collection.size]),P=useMemo(()=>({get current(){return g.current?.parentElement}}),[g]);Gr({ref:P,onResize:T}),re(T,[b.collection,T]);let{toolbarProps:k}=pg({props:{...c,isSingleTabStop:s},ref:g}),S=[...b.collection],w=S.slice(0,h),E=S.slice(h).filter(D=>D.textValue!==nS),z=E.length>0;useEffect(()=>{f(void 0);},[E.length]),useEffect(()=>{c.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[c.orientation]);let{keyboardProps:A}=Ae({onKeyDown:l});return jsxs(Rt,{children:[jsx("div",{...M(k,A),className:e,"data-block-id":n,"data-block-class":i,"data-collapse":true,style:{...t,flexBasis:v?"100%":void 0},ref:g,children:jsxs("div",{ref:x,className:a6,children:[w.map(D=>D.rendered),z?jsxs(Fragment,{children:[!v&&a?jsx(J,{flexGrow:1}):null,jsx(Tb,{placement:"bottom end",renderTrigger:({buttonProps:D,ref:O})=>jsx(me,{...D,size:"md",icon:MoreIcon,"aria-label":u??p(xY.more),variant:"toolbar",ref:O,tooltip:true}),...o,disabledKeys:E.filter(D=>D.props?.isDisabled).map(D=>D.key),items:E.map(D=>{let O=D.textValue||D["aria-label"];return he(O,"ActionItem must have a label"),{id:D.key,label:O,icon:D.props.icon}}),onAction:D=>{let O=b.collection.getItem(D);he(O,"Item not found");let{onPress:R,dialogContent:N}=O.props;R?.(),f(N);}})]}):null]})}),jsx(un,{isOpen:!!m,onOpenChange:D=>{D||f(void 0);},children:jsx(cn,{enableDrawer:"auto",style:{zIndex:1e5},children:m?qn.cloneElement(m,{inheritDrawer:true}):null})})]})});aS.displayName="CollapsibleToolbar";function c6(e,t,r){let n=Y(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:d6(n.marginLeft))+(r?0:d6(n.marginRight))}function d6(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var xY=Se({more:{id:"bui.toolbar.more",defaultMessage:"More"}});var lS=qn.forwardRef(({className:e,style:t,isSingleTabStop:r=true,"data-block-id":o,"data-block-class":n,"aria-controls":i,onKeyDown:a,...l},s)=>{let u=qn.useRef(null),{toolbarProps:c}=pg({props:{...l,isSingleTabStop:r},ref:u}),{keyboardProps:d}=Ae({onKeyDown:a});return jsx("div",{...M(c,d),...i?{"aria-controls":i}:{},className:_(l6[l.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":o,"data-block-class":n,ref:se(s,u),children:l.children})});lS.displayName="WrappedToolbar";var mg=qn.forwardRef((e,t)=>{let r=e.isCollapsible?aS:lS;return jsx(r,{...e,ref:t})});mg.displayName="Toolbar";var m6=j({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),f6=j({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup82 _1yep5z611a"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61tx _1yep5z61qd _1yep5z61nd"],[{isSelected:false,isHovered:true,isDisabled:false},"_1yep5z6g3"],[{isSelected:false,isFocusVisible:true,isDisabled:false},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true,isDisabled:false},"_1j5skr7k _1yep5z61ty _1yep5z61tx _1yep5z61q4 _1yep5z61ne"],[{isSelected:true,isFocusVisible:false,isDisabled:false},"_1yep5z61tx _1yep5z61tz _1yep5z61q3 _1yep5z61u0"]]}),y6=j({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1yep5z6119"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61nc"]]}),b6=j({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:true,isDisabled:false},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:true,isDisabled:true},"_1yep5z61o9 _1yep5z61nd"]]}),g6=j({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup82 _1yep5z611c"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false},"_1j5skr7c _1yep5z61nf"],[{isSelected:false,isDisabled:true},"_1j5skr7d _1yep5z61nd"],[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:false,isFocusVisible:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true},"_1j5skr7e _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]});var kY={xxs:8,xs:12,sm:16,md:20,lg:24},qr=qn.forwardRef((e,t)=>{let r=pe(t),{tooltipProps:o}=_y(e,r);return o?jsx(ot,{...o,children:jsx(sS,{...e,ref:t})}):jsx(sS,{...e,ref:t})});qr.displayName="ToggleIconButton";var sS=qn.forwardRef(({className:e,style:t,icon:r,size:o="md",variant:n="primary","data-block-id":i,"data-block-class":a,...l},s)=>{let u=zr(l),{buttonProps:c,isPressed:d,ref:p,isFocusVisible:m,isFocused:f,isHovered:y,uiStateOptions:b}=My(l,u),g=useMemo(()=>typeof r=="function"?r:u.isSelected?r.selected:r.unselected,[r,u.isSelected]),x={isSelected:u.isSelected,isHovered:y,isFocusVisible:m,isDisabled:!!l.isDisabled},h=ve({"data-hovered":y,"data-selected":u.isSelected,"data-focus-visible":m,"data-disabled":l.isDisabled,"data-block-id":i,"data-block-class":a,"data-focused":f,"data-pressed":d});return jsx("button",{...M(c,h),className:_(n==="toolbar"&&g6(x),n==="primary"&&f6(x),n==="secondary"&&y6(x),n==="tertiary"&&b6(x),m6({size:o}),"BaselineUI-ToggleIconButton",typeof e=="function"?e(b):e),style:typeof t=="function"?t(b):t,ref:se(p,s),children:jsx(g,{size:kY[o]})})});sS.displayName="ToggleIconButtonCore";var v6="f6jv6bm",x6="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",nu="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",T6=j({defaultClassName:"f6jv6b0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vo _1yep5z6vp _1yep5z6vq _1yep5z615m _1yep5z615n _1yep5z615o",false:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[[{isInline:true,isMinimal:false},"_1yep5z61ir _1yep5z61is _1yep5z61it _1yep5z61jf _1yep5z61jg _1yep5z61jh _1yep5z61k3 _1yep5z61k4 _1yep5z61k5 _1yep5z61kr _1yep5z61ks _1yep5z61kt _1yep5z61u7 _1yep5z61u5 _1yep5z61pa"]]}),ep=j({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lq",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),C6="f6jv6b6",P6="f6jv6bj _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",S6="f6jv6bk";var D6="f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6ly _1yep5z6lt _1yep5z6lr _1yep5z6hx _1yep5z6eu",k6=j({defaultClassName:"f6jv6bg _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6lp",variantClassNames:{isHovered:{true:"_1yep5z6126"},isDisabled:{true:"_1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),E6="_1yep5z6jy _1yep5z6jz _1yep5z6k0",z6="f6jv6bf f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",w6=j({defaultClassName:"f6jv6bc _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isInline:{true:"_1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6184 _1yep5z6182 _1yep5z6137",false:"_1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[]}),R6="f6jv6bl",I6="f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",fg=j({defaultClassName:"f6jv6b7",variantClassNames:{isInline:{true:"f6jv6b8",false:"f6jv6b9"}},defaultVariants:{},compoundVariants:[]}),yg="f6jv6ba _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",tp="f6jv6bo";var bg=qn.forwardRef(({value:e,defaultValue:t,onChange:r,placeholder:o,spellCheck:n,textBoxRef:i,isInline:a,isMinimal:l,isDisabled:s,editableContentAriaLabel:u,editorHandle:c,autoFocus:d,saveOnEnter:p,onSave:m},f)=>{let y=qn.useRef(null),[b,g]=ye(e,t||"",r),x=useCallback(A=>{g(A.currentTarget.value||"");},[g]),h=useCallback(A=>{(p&&A.key==="Enter"&&!A.shiftKey||(A.ctrlKey||A.metaKey)&&A.key==="Enter")&&(A.preventDefault(),m());},[p,m]);useImperativeHandle(f,()=>({clear:()=>{g("");}}));let v=useCallback(A=>{A.currentTarget.style.height="16px",A.currentTarget.style.height=A.currentTarget.scrollHeight+"px";},[]);useGranularLayoutEffect(()=>{let A=y.current;A&&(A.style.height="16px",A.style.height=A.scrollHeight+"px");},[l],[b]),useImperativeHandle(c,()=>({setCaretPosition:A=>{y.current&&(y.current.focus(),y.current.setSelectionRange(A,A));},focus:()=>{y.current&&y.current.focus();}}));let C=d===true||d==="start"||d==="end",T=typeof d=="string"?d:void 0;useEffect(()=>{if(T&&y.current){let A=T==="start"?0:T==="end"?y.current.value.length:void 0;A!==void 0&&y.current.setSelectionRange(A,A);}},[T]);let{focusProps:P,isFocused:k,isFocusVisible:S}=ne(),{hoverProps:w,isHovered:E}=ae({}),z=ve({"data-focus-visible":S,"data-hovered":E,"data-focused":k});return jsx("textarea",{...M(P,w,z),ref:se(y,i),className:_({[ep()]:!l,[fg({isInline:a})]:!l,[I6]:!l,[z6]:l},"BaselineUI-Editor-PlainEditorEditingArea"),autoFocus:C,onChange:x,disabled:s,onInput:v,value:b,placeholder:o,spellCheck:n,"aria-label":u,onKeyDown:h})});bg.displayName="PlainEditor";var A6=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:rp}}=layoutSprinkleValues,O6=({isOpen:e,onClose:t,toolbarFocusLabel:r,helpLabel:o,closeLabel:n,actionLabel:i,shortcutLabel:a,boldLabel:l,italicLabel:s,underlineLabel:u,selectAllLabel:c,cutLabel:d,copyLabel:p,pasteLabel:m,undoLabel:f,redoLabel:y,openHelpDialogLabel:b,submitLabel:g})=>{let{formatMessage:x}=fe(),h=ee(),v={toolbarFocus:r,help:o,close:n,action:i,shortcut:a,bold:l,italic:s,underline:u,selectAll:c,cut:d,copy:p,paste:m,undo:f,redo:y,openHelpDialog:b,submit:g},C=T=>v[T]??x(MY[T]);return jsx(un,{isOpen:e,onOpenChange:T=>{T||t();},children:jsx(cn,{enableDrawer:"auto",style:{zIndex:999999},children:jsxs(Ar,{"aria-labelledby":h,className:P6,drawerBackground:"subtle",children:[jsxs(J,{paddingLeft:rp.padding.horizontal.lg,paddingRight:rp.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:S6,children:[jsx(Je,{id:h,elementType:"h3",type:"title",size:"md",children:C("help")}),jsx(me,{icon:XIcon,size:"md",variant:"secondary","aria-label":C("close"),"data-testid":"editor-help-dialog-close-button",onPress:t})]}),jsx(ze,{className:R6}),jsxs(J,{paddingX:rp.padding.horizontal.lg,role:"table","aria-labelledby":h,backgroundColor:"background.primary.subtle",children:[jsx("div",{role:"rowgroup",children:jsxs(J,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:rp.padding.vertical.md,color:"text.primary",children:[jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:C("action")}),jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:C("shortcut")})]})}),jsx("div",{role:"rowgroup",children:A6.map(([T,P],k)=>jsxs(Fragment$1,{children:[jsxs(J,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:rp.padding.vertical.xs,style:{minHeight:40},children:[jsx(Je,{type:"subtitle",size:"sm",role:"cell",children:C(oF(T))}),jsx(Je,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:gy(P,true)})]}),k!==A6.length-1&&jsx(ze,{})]},T))})]})]})})})},MY=Se({toolbarFocus:{id:"bui.editor.toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"bui.editor.help",defaultMessage:"Help"},close:{id:"bui.editor.close",defaultMessage:"Close"},action:{id:"bui.editor.action",defaultMessage:"Action"},shortcut:{id:"bui.editor.shortcut",defaultMessage:"Shortcut"},bold:{id:"bui.editor.bold",defaultMessage:"Bold"},italic:{id:"bui.editor.italic",defaultMessage:"Italic"},underline:{id:"bui.editor.underline",defaultMessage:"Underline"},selectAll:{id:"bui.editor.selectAll",defaultMessage:"Select All"},cut:{id:"bui.editor.cut",defaultMessage:"Cut"},copy:{id:"bui.editor.copy",defaultMessage:"Copy"},paste:{id:"bui.editor.paste",defaultMessage:"Paste"},undo:{id:"bui.editor.undo",defaultMessage:"Undo"},redo:{id:"bui.editor.redo",defaultMessage:"Redo"},openHelpDialog:{id:"bui.editor.openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"bui.editor.submit",defaultMessage:"Submit"}});var AY=Le("#ffffff00").toString("hexa"),cS=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...cS,{label:"Transparent",color:AY}];var au="p",vo="a",hn="mention",Ni="mention_input";function dS(e,t){return typeof e=="object"&&e!==null&&"type"in e&&e.type===t}function We(e){return typeof e=="object"&&e!==null&&"text"in e&&!("type"in e)}function pt(e){return dS(e,vo)}function Hn(e){return dS(e,hn)}function $n(e){return dS(e,Ni)}function xo(e){return Hn(e)||$n(e)}function lu(){return [{type:au,children:[{text:""}]}]}function gg(e,t){return e.bold===t.bold&&e.italic===t.italic&&e.underline===t.underline&&Si(e.color,t.color)&&Si(e.backgroundColor,t.backgroundColor)}function hg(e,t){let r=false;for(let i=0;i<e.length;i++){let a=e[i];if(a.text===""&&!(t&&e.length===1)){r=true;break}if(i>0&&gg(e[i-1],a)){r=true;break}}if(!r)return e;let o=e.filter(i=>i.text!==""),n=[];for(let i of o){let a=n.at(-1);a!==void 0&&gg(a,i)?n[n.length-1]={...a,text:a.text+i.text}:n.push(i);}return n}function OY(e){let t=(i,a)=>i===0&&a===e.length||i>0&&xo(e[i-1]),r=false,o=-1;for(let i=0;i<=e.length;i++){let a=e[i],l=i<e.length&&We(a);if(l&&o===-1)o=i;else if(!l&&o!==-1){let s=e.slice(o,i);if(hg(s,t(o,i))!==s){r=true;break}o=-1;}}if(!r)return e;let n=[];o=-1;for(let i=0;i<=e.length;i++){let a=e[i],l=i<e.length&&We(a);if(l&&o===-1)o=i;else if(!l&&o!==-1){let s=e.slice(o,i),u=hg(s,t(o,i));for(let c of u)n.push(c);o=-1;}!l&&i<e.length&&n.push(a);}return n}function NY(e){let t=false;for(let o=1;o<e.length;o++){let n=e[o-1],i=e[o];if(pt(n)&&pt(i)&&n.url===i.url){t=true;break}}if(!t)return e;let r=[];for(let o of e){let n=r.at(-1);if(pt(o)&&n!==void 0&&pt(n)&&n.url===o.url){let i=hg([...n.children,...o.children],false);r[r.length-1]={...n,children:i};}else r.push(o);}return r}function FY(e){let t=hg(e.children,e.children.length===1);return t.reduce((o,n)=>o+n.text,"")===""?null:t===e.children?e:{...e,children:t}}function KY(e){let t=false,r=[];for(let s of e)if(pt(s)){let u=FY(s);u===null?t=true:(r.push(u),u!==s&&(t=true));}else r.push(s);let o=t?r:e,n=OY(o),i=NY(n),a=(s,u)=>xo(s[u])&&(u===s.length-1||!We(s[u+1])),l=i;if(i.some((s,u)=>a(i,u))){l=[];for(let[s,u]of i.entries())l.push(u),a(i,s)&&l.push({text:""});}return l.length===0?[{text:""}]:l===o&&!t?e:l}function Zt(e){if(e.length===0)return lu();let t=false,r=e.map(o=>{let n=KY(o.children);return n===o.children?o:(t=true,{...o,children:n})});return t?r:e}function Nr(e){if(We(e))return e.text.length;switch(e.type){case vo:{let t=0;for(let r=0;r<e.children.length;r++)t+=e.children[r].text.length;return t}case hn:return e.displayName.length;case Ni:return e.children[0].text.length;default:return e}}function su(e){if(e.length===0)return 0;let t=e.length-1;for(let r of e)for(let o of r.children)t+=Nr(o);return t}var VY=1,mS=3;function op(e){return e.nodeType===VY}function uu(e,t){return e.tagName.toLowerCase()===t}function BY(e){if(!op(e))return false;let t=e.tagName.toLowerCase();return t==="p"||t==="div"}function HY(e){return op(e)&&e.querySelector("p, div")!==null}var $Y=new RegExp("["+String.fromCodePoint(8203)+String.fromCodePoint(65279)+"]","g"),jY=String.fromCodePoint(160);function el(e){return e.replaceAll($Y,"").replaceAll(jY," ")}function F6(e,t){let r={...t},o=e.tagName.toLowerCase();(o==="b"||o==="strong")&&(r.bold=true),(o==="i"||o==="em")&&(r.italic=true),o==="u"&&(r.underline=true);let n=e.style;if(n){let i=n.fontWeight;(i==="bold"||Number.parseInt(i,10)>=600&&i!=="")&&(r.bold=true),n.fontStyle==="italic"&&(r.italic=true),n.textDecoration?.includes("underline")&&(r.underline=true);let a=n.color;a&&(r.color=a);let l=n.backgroundColor;l&&(r.backgroundColor=l);}return r}function vg(e,t,r,o){for(let n=0;n<e.childNodes.length;n++){let i=e.childNodes[n];if(i.nodeType===mS){let l=i.nodeValue??"",s=el(l);s.length>0&&o.push(V6(s,t));continue}if(!op(i))continue;if(uu(i,"span")&&i.dataset.userId!==void 0){let l=i.dataset.userId??"",s=i.textContent??"",u=s.startsWith("@")?s.slice(1):s;o.push({type:hn,value:l,displayName:u,children:[{text:""}]});continue}if(uu(i,"span")&&i.dataset.mentionAnchor!==void 0){let l=i.textContent??"";o.push({type:Ni,children:[{text:l}]});continue}if(uu(i,"a")){{let l=i.getAttribute("href")??"",s=[];K6(i,t,s);let u=fS(s);u.some(d=>d.text.length>0)&&o.push({type:vo,url:l,children:u});}continue}if(uu(i,"br")){o.push({text:"\0BR\0"});continue}let a=F6(i,t);vg(i,a,r,o);}}function K6(e,t,r){for(let o=0;o<e.childNodes.length;o++){let n=e.childNodes[o];if(n.nodeType===mS){let a=n.nodeValue??"",l=el(a);l.length>0&&r.push(V6(l,t));continue}if(!op(n))continue;if(uu(n,"br")){r.push({text:"\0BR\0"});continue}let i=F6(n,t);K6(n,i,r);}}function V6(e,t){let r={text:e};return t.bold&&(r.bold=true),t.italic&&(r.italic=true),t.underline&&(r.underline=true),t.color&&(r.color=t.color),t.backgroundColor&&(r.backgroundColor=t.backgroundColor),r}var B6="\0BR\0";function fS(e){let t=[...e];if(t.length===1&&pS(t[0]))return [{text:""}];let r=t.length,o=0;for(;o<r&&pS(t[r-1-o]);)o+=1;let n=o>=2?o-1:0;r-=o;let i=[];for(let a=0;a<r;a++){let l=t[a];pS(l)?N6(i):i.push(l);}for(let a=0;a<n;a++)N6(i);return i}function pS(e){return "text"in e&&e.text===B6}function N6(e){let t=e.at(-1);t!==void 0&&"text"in t&&!("type"in t)?t.text+=`
|
|
25
|
-
`:e.push({text:`
|
|
26
|
-
`});}function GY(e){let t=[];vg(e,{},false,t);let r=fS(t);return {type:au,children:r.length>0?r:[{text:""}]}}function xg(e){let t=e.childNodes;if(t.length===0)return lu();let r=[],o=[];function n(){if(o.length===0)return;let a=fS(o);r.push({type:au,children:a.length>0?a:[{text:""}]}),o=[];}function i(a){for(let l of a)if(BY(l))n(),r.push(GY(l));else if(l.nodeType===mS){let s=l.nodeValue??"",u=el(s);u.trim().length>0&&o.push({text:u});}else op(l)&&(uu(l,"br")?o.push({text:B6}):HY(l)?(n(),i(l.childNodes)):vg(l,{},false,o));}return i(t),n(),r.length===0?lu():Zt(r)}function WY(e){return Object.entries(e).map(([t,r])=>`${UY(t)}:${r}`).filter(([,t])=>!!t).join(";")}function $6(e){return "text"in e}function np(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function vn(e){let t=e.trim(),r=t.replaceAll(/[\u0000- ]/g,""),o=/^([a-z][a-z0-9+.-]*):/i.exec(r);if(!o)return t;let n=o[1].toLowerCase();return new Set(["javascript","data","vbscript"]).has(n)?"":t}function j6(e,t){if(!(t.mac?t.metaKey:t.ctrlKey))return {isLinkClick:false,url:null};let o=e?.closest?.("a")??null;if(!o)return {isLinkClick:false,url:null};let n=vn(o.getAttribute("href")??"");return {isLinkClick:true,url:n===""?null:n}}function qY(e){return e.text.includes(`
|
|
27
|
-
`)?e.text.split(`
|
|
28
|
-
`).map(r=>{let o={text:r};return r.length>0&&(e.bold!==void 0&&(o.bold=e.bold),e.italic!==void 0&&(o.italic=e.italic),e.underline!==void 0&&(o.underline=e.underline),e.color!==void 0&&(o.color=e.color),e.backgroundColor!==void 0&&(o.backgroundColor=e.backgroundColor)),o}):[e]}function XY(e){let t=[[]],r=0;for(let o of e)if($6(o)){let n=qY(o);for(let i=0;i<n.length;i++)t[r].push(n[i]),i<n.length-1&&(r++,t[r]=[]);}else t[r].push(o);return t}function jn(e){if(!e)return "";function t(r){if($6(r)){if(r.text==="")return "";let n=np(r.text);if(r.bold&&(n=`<b>${n}</b>`),r.italic&&(n=`<i>${n}</i>`),r.underline&&(n=`<u>${n}</u>`),r.color||r.backgroundColor){let i=WY(ve({color:r.color||void 0,backgroundColor:r.backgroundColor||void 0}));n=`<span style="${np(i)}">${n}</span>`;}return n}let o=r.children?.map(n=>jn(n)).join("");switch(r.type){case au:return XY(r.children).map(i=>`<p>${i.map(l=>jn(l)).join("")}</p>`).join("");case vo:return `<a href="${np(vn(r.url))}">${o}</a>`;case hn:return `<span data-user-id="${np(r.value)}">${np(r.displayName)}</span>`;default:return o}}return Array.isArray(e)?e.map(r=>t(r)).join(""):t(e)}function yS(e){let t=new DOMParser().parseFromString(R8.default.sanitize(e),"text/html");if(!t.body.querySelector("p, div")){let r=t.createElement("p");r.append(...t.body.childNodes),t.body.append(r);}return xg(t.body)}var YY=new Set(["(","[","{","<",'"',"'","`","\xAB"]),ZY=new Set([".",",","!","?",":",";",'"',"'","`","\xBB"]),JY=new Map([[")","("],["]","["],["}","{"]]);function G6(e,t){let r=0;for(let o of e)o===t&&r++;return r}function Tg(e){let t=0,r=e.length;for(;t<r&&YY.has(e[t]);)t++;for(;r>t;){let a=e[r-1];if(ZY.has(a)){r--;continue}let l=JY.get(a);if(l!==void 0){let s=e.slice(t,r);if(G6(s,a)>G6(s,l)){r--;continue}}break}if(r<=t)return null;let o=e.slice(t,r),n;if(/^https?:\/\//i.test(o))n=o;else if(/^www\./i.test(o)){if(o.length<=4)return null;n=`https://${o}`;}else return null;let i;try{i=new URL(n);}catch{return null}return i.hostname===""?null:{start:t,end:r,url:n}}function QY(e){let t=[],r=/\S+/g,o;for(;(o=r.exec(e))!==null;){let n=Tg(o[0]);if(n){let i=o.index+n.start,a=o.index+n.end;t.push({start:i,end:a,text:e.slice(i,a),url:n.url});}}return t}function U6(e){let t=e.trim();if(t===""||/\s/.test(t))return null;let r=Tg(t);return r&&r.start===0&&r.end===t.length?r.url:null}function eZ(e){let t=QY(e.text);if(t.length===0)return null;let r=[],o=0;for(let n of t)n.start>o&&r.push({...e,text:e.text.slice(o,n.start)}),r.push({type:vo,url:n.url,children:[{...e,text:n.text}]}),o=n.end;return o<e.text.length&&r.push({...e,text:e.text.slice(o)}),r}function bS(e){let t=false,r=e.map(o=>{let n=false,i=[];for(let a of o.children){let l=We(a)?eZ(a):null;l?(i.push(...l),n=true):i.push(a);}return n?(t=true,{...o,children:i}):o});return t?r:e}function W6(e){return Hn(e)?0:Nr(e)}function q6(e){return e.children.reduce((t,r)=>t+Nr(r),0)}function gS(e,t,r){return Math.min(Math.max(e,t),r)}function Fi(e,t){return e.path[0]!==t.path[0]?e.path[0]<t.path[0]?-1:1:e.path[1]!==t.path[1]?e.path[1]<t.path[1]?-1:1:e.offset!==t.offset?e.offset<t.offset?-1:1:0}function gr(e){return Fi(e.anchor,e.focus)===0}function hS(e){return Fi(e.anchor,e.focus)<=0?e:{anchor:e.focus,focus:e.anchor}}function No(e,t){let r=gS(t.path[0],0,e.length-1),o=e[r].children,n=gS(t.path[1],0,o.length-1),i=gS(t.offset,0,W6(o[n]));return {path:[r,n],offset:i}}function cu(e){let t=e.length-1,r=e[t].children,o=r.length-1;return {path:[t,o],offset:W6(r[o])}}function ar(e,t){let r=Math.max(t,0);for(let o=0;o<e.length;o++){let n=e[o],i=q6(n);if(r>i){r-=i+1;continue}let a=n.children;for(let l=0;l<a.length;l++){let s=a[l],u=Nr(s);if(Hn(s)){if(r===0)return {path:[o,l],offset:0};if(r<u)return {path:[o,l+1],offset:0}}else if(r<=u)return {path:[o,l],offset:r};r-=u;}}return cu(e)}function Bt(e,t){let[r,o]=t.path,n=0;for(let a=0;a<r;a++)n+=q6(e[a])+1;let i=e[r].children;for(let a=0;a<o;a++)n+=Nr(i[a]);return n+t.offset}function Ki(e,t,r,o,n){let i=r==="atomic";if(e<o.path[0]||e>n.path[0])return null;let a=0;if(e===o.path[0]){if(t<o.path[1])return null;t===o.path[1]&&(a=i?0:o.offset);}let l=i?1:r;if(e===n.path[0]){if(t>n.path[1])return null;t===n.path[1]&&(l=i?n.offset>0?1:0:n.offset);}return a>=l?null:{from:a,to:l}}function vS(e,t,r){let o=0;for(let n of e.children)r(n,Math.max(t.from-o,0),Math.min(t.to-o,n.text.length)),o+=n.text.length;}function Y6(e,t,r,o){for(let n=t.path[0];n<=r.path[0]&&n<e.length;n++){let i=e[n].children;for(let[a,l]of i.entries())if(!xo(l)){if(We(l)){let s=Ki(n,a,l.text.length,t,r);s&&o(l,s.from,s.to);}else if(pt(l)){let s=Ki(n,a,Nr(l),t,r);s&&vS(l,s,(u,c,d)=>{c<d&&o(u,c,d);});}}}}function Z6(e){return We(e)?e:pt(e)?e.children.at(-1)??null:null}function J6(e,t){let r=No(e,t),o=e[r.path[0]].children,n=o[r.path[1]],i=r.path[1]>0?Z6(o[r.path[1]-1]):null;if(We(n))return r.offset>0?n:i??n;if(pt(n)){if(r.offset===0)return i??n.children[0]??null;let a=0;for(let l of n.children)if(a+=l.text.length,r.offset<=a)return l;return n.children.at(-1)??null}return $n(n)?r.offset>0?n.children[0]:i??n.children[0]:i}function X6(e){let t={};return e.bold&&(t.bold=true),e.italic&&(t.italic=true),e.underline&&(t.underline=true),e.color!==void 0&&(t.color=e.color),e.backgroundColor!==void 0&&(t.backgroundColor=e.backgroundColor),t}function tZ(e,t){let r={};return e.bold&&t.bold&&(r.bold=true),e.italic&&t.italic&&(r.italic=true),e.underline&&t.underline&&(r.underline=true),e.color!==void 0&&Si(e.color,t.color)&&(r.color=e.color),e.backgroundColor!==void 0&&Si(e.backgroundColor,t.backgroundColor)&&(r.backgroundColor=e.backgroundColor),r}function rl(e,t){if(gr(t)){let a=J6(e,t.focus);return a?X6(a):{}}let r=hS(t),o=No(e,r.anchor),n=No(e,r.focus),i=null;return Y6(e,o,n,a=>{let l=X6(a);i=i===null?l:tZ(i,l);}),i??{}}function Cg(e,t,r){if(r===e)return {doc:e,range:t};let o=Zt(r);return {doc:o,range:{anchor:ar(o,Bt(e,No(e,t.anchor))),focus:ar(o,Bt(e,No(e,t.focus)))}}}function Q6(e,t,r,o){let n={...e,text:e.text.slice(t,r)},i=o(n);if(gg(i,n))return null;let a=[];return t>0&&a.push({...e,text:e.text.slice(0,t)}),a.push(i),r<e.text.length&&a.push({...e,text:e.text.slice(r)}),a}function rZ(e,t,r){let o=false,n=[];return vS(e,t,(i,a,l)=>{let s=a<l?Q6(i,a,l,r):null;s?(n.push(...s),o=true):n.push(i);}),o?{...e,children:n}:null}function e0(e,t,r,o){let n=false,i=e.map((a,l)=>{if(l<t.path[0]||l>r.path[0])return a;let s=false,u=[];for(let[c,d]of a.children.entries())if(We(d)){let p=Ki(l,c,d.text.length,t,r),m=p?Q6(d,p.from,p.to,o):null;m?(u.push(...m),s=true):u.push(d);}else if(pt(d)){let p=Ki(l,c,Nr(d),t,r),m=p?rZ(d,p,o):null;m?(u.push(m),s=true):u.push(d);}else u.push(d);return s?(n=true,{...a,children:u}):a});return n?i:e}function du(e,t){let r=hS(t);return [No(e,r.anchor),No(e,r.focus)]}function xS(e,t,r){if(gr(t))return {doc:e,range:t};let[o,n]=du(e,t),i=false,a=true;return Y6(e,o,n,s=>{i=true,s[r]||(a=false);}),i?Cg(e,t,e0(e,o,n,a?s=>{let u={...s};return delete u[r],u}:s=>s[r]?s:{...s,[r]:true})):{doc:e,range:t}}function TS(e,t,r,o){if(gr(t))return {doc:e,range:t};let[n,i]=du(e,t);return Cg(e,t,e0(e,n,i,l=>{if(l[r]===o)return l;let s={...l};return o===void 0?delete s[r]:s[r]=o,s}))}function t0(e,t){let r=[],o=[],n=0;for(let i of e){let a=n+i.text.length;a<=t?r.push(i):n>=t?o.push(i):(r.push({...i,text:i.text.slice(0,t-n)}),o.push({...i,text:i.text.slice(t-n)})),n=a;}return [r,o]}function tl(e,t,r){if(t>=e.length)return [[...e],[]];let o=e.slice(0,t),n=e.slice(t+1),i=e[t];if(We(i))o.push({...i,text:i.text.slice(0,r)}),n.unshift({...i,text:i.text.slice(r)});else if(pt(i)){let[a,l]=t0(i.children,r);o.push({...i,children:a}),n.unshift({...i,children:l});}else r===0?n.unshift(i):o.push(i);return [o,n]}function CS(e,t){let[r,o]=du(e,t);for(let n=r.path[0];n<=o.path[0]&&n<e.length;n++)for(let[i,a]of e[n].children.entries()){if(!pt(a))continue;let l={path:[n,i],offset:0},s={path:[n,i],offset:Nr(a)};if(Fi(r,s)<=0&&Fi(o,l)>=0)return {paragraphIndex:n,inlineIndex:i,link:a}}return null}function r0(e,t){let r=CS(e,t);if(!r)return null;let{paragraphIndex:o,inlineIndex:n,link:i}=r;return {url:i.url,range:{anchor:{path:[o,n],offset:0},focus:{path:[o,n],offset:Nr(i)}}}}function o0(e,t){let[r,o]=du(e,t);for(let n=r.path[0];n<=o.path[0]&&n<e.length;n++)for(let[i,a]of e[n].children.entries()){if(We(a))continue;let l=xo(a)?"atomic":Nr(a);if(Ki(n,i,l,r,o))return true}return false}function oZ(e,t,r,o){let n=[],i=(a,l,s)=>{l<s&&n.push({...a,text:a.text.slice(l,s)});};for(let[a,l]of e[t].children.entries())if(!xo(l)){if(We(l)){let s=Ki(t,a,l.text.length,r,o);s&&i(l,s.from,s.to);}else if(pt(l)){let s=Ki(t,a,Nr(l),r,o);s&&vS(l,s,i);}}return n}function PS(e,t,r){if(gr(t))return {doc:e,range:t};let[o,n]=du(e,t);for(let l=o.path[0];l<=n.path[0]&&l<e.length;l++)for(let[s,u]of e[l].children.entries())if(xo(u)&&Ki(l,s,"atomic",o,n))return {doc:e,range:t};let i=false,a=e.map((l,s)=>{if(s<o.path[0]||s>n.path[0])return l;let u=oZ(e,s,o,n);if(u.length===0)return l;let c=l.children,[d]=s===o.path[0]?tl(c,o.path[1],o.offset):[[]],p=s===n.path[0]?tl(c,n.path[1],n.offset)[1]:[];return i=true,{...l,children:[...d,{type:vo,url:r,children:u},...p]}});return i?Cg(e,t,a):{doc:e,range:t}}function n0(e,t,r){let o=CS(e,t);if(!o||o.link.url===r)return {doc:e,range:t};let{paragraphIndex:n,inlineIndex:i,link:a}=o,l=e.map((s,u)=>u!==n?s:{...s,children:s.children.map((c,d)=>d===i?{...a,url:r}:c)});return {doc:Zt(l),range:t}}function i0(e,t){let r=CS(e,t);if(!r)return {doc:e,range:t};let{paragraphIndex:o,inlineIndex:n,link:i}=r,a=e.map((l,s)=>s!==o?l:{...l,children:l.children.flatMap((u,c)=>c===n?i.children:[u])});return Cg(e,t,a)}function pu(e,t){if(gr(t))return {doc:e,range:t};let[r,o]=du(e,t);if(Fi(r,o)===0)return {doc:e,range:t};let n=Bt(e,r),i=tl(e[r.path[0]].children,r.path[1],r.offset)[0],a=tl(e[o.path[0]].children,o.path[1],o.offset)[1],l={...e[r.path[0]],children:[...i,...a]},s=Zt([...e.slice(0,r.path[0]),l,...e.slice(o.path[0]+1)]),u=ar(s,n);return {doc:s,range:{anchor:u,focus:u}}}function ip(e,t,r){let o=No(e,t);if(r==="")return {doc:e,range:{anchor:o,focus:o}};let n=J6(e,o),i=n?{...n,text:r}:{text:r},a=o.path[0],l=e[a].children,s=l[o.path[1]],u;if(pt(s)&&o.offset>0&&o.offset<Nr(s)){let[p,m]=t0(s.children,o.offset),f={...s,children:[...p,i,...m]};u=l.map((y,b)=>b===o.path[1]?f:y);}else {let[p,m]=tl(l,o.path[1],o.offset);u=[...p,i,...m];}let c=Zt(e.map((p,m)=>m===a?{...p,children:u}:p)),d=ar(c,Bt(e,o)+r.length);return {doc:c,range:{anchor:d,focus:d}}}function a0(e,t,r){let o=Zt(r),n=su(o),i=e,a;if(gr(t))a=No(e,t.focus);else {let m=pu(e,t);i=m.doc,a=m.range.focus;}if(o.length===1&&n===0)return {doc:i,range:{anchor:a,focus:a}};let l=a.path[0],[s,u]=tl(i[l].children,a.path[1],a.offset),c=o.length===1?[{...i[l],children:[...s,...o[0].children,...u]}]:[{...i[l],children:[...s,...o[0].children]},...o.slice(1,-1),{...o.at(-1),children:[...o.at(-1).children,...u]}],d=Zt([...i.slice(0,l),...c,...i.slice(l+1)]),p=ar(d,Bt(i,a)+n);return {doc:d,range:{anchor:p,focus:p}}}function l0(e,t){if(gr(t))return ip(e,t.focus,`
|
|
29
|
-
`);let r=pu(e,t);return ip(r.doc,r.range.focus,`
|
|
30
|
-
`)}function s0(e,t){for(let[r,o]of e.entries()){let n=o.children.indexOf(t);if(n!==-1)return [r,n]}return null}function u0(e){for(let[t,r]of e.entries())for(let[o,n]of r.children.entries())if($n(n))return [t,o];return null}function c0(e){let t=cu(e);return {anchor:t,focus:t}}function d0(e,t){let r=e,o;if(gr(t))o=No(e,t.focus);else {let d=pu(e,t);r=d.doc,o=d.range.focus;}let n={type:Ni,children:[{text:""}]},i=o.path[0],[a,l]=tl(r[i].children,o.path[1],o.offset),s=Zt(r.map((d,p)=>p===i?{...d,children:[...a,n,...l]}:d)),c={path:s0(s,n)??[0,0],offset:0};return {doc:s,range:{anchor:c,focus:c}}}function p0(e,t){let r=u0(e);if(!r)return {doc:e,range:c0(e)};let[o,n]=r,i={type:hn,value:t.id,displayName:t.displayName,children:[{text:""}]},a=Zt(e.map((c,d)=>d===o?{...c,children:c.children.map((p,m)=>m===n?i:p)}:c)),[l,s]=s0(a,i)??[o,n],u={path:[l,s+1],offset:0};return {doc:a,range:{anchor:u,focus:u}}}function m0(e,t){let r=u0(e);if(!r)return {doc:e,range:c0(e)};let[o,n]=r,i=e[o].children,a=n>0?Z6(i[n-1]):null,l=a?{...a,text:t}:{text:t},s=Bt(e,{path:[o,n],offset:0})+t.length,u=Zt(e.map((d,p)=>p===o?{...d,children:i.map((m,f)=>f===n?l:m)}:d)),c=ar(u,s);return {doc:u,range:{anchor:c,focus:c}}}function nZ(e){let t=[];return e.color&&t.push(`color:${e.color}`),e.backgroundColor&&t.push(`background-color:${e.backgroundColor}`),t.join(";")}function iZ(e){for(let t of e.children)if(xo(t)||pt(t)&&t.children.map(o=>o.text).join("").length>0||We(t)&&t.text.length>0)return false;return true}function f0(e,t,r,o){if(r.text==="")return;let n=r.text.split(`
|
|
31
|
-
`);for(let i=0;i<n.length;i++){let a=n[i],l=i===n.length-1;if(a.length>0){let u=e.createTextNode(a);if(r.underline){let d=e.createElement("u");d.append(u),u=d;}if(r.italic){let d=e.createElement("i");d.append(u),u=d;}if(r.bold){let d=e.createElement("b");d.append(u),u=d;}let c=nZ(r);if(c){let d=e.createElement("span");d.setAttribute("style",c),d.append(u),u=d;}t.append(u);}(!l||a===""&&n.length>1&&o)&&t.append(e.createElement("br"));}}function aZ(e,t,r,o){if(We(r)){f0(e,t,r,o);return}switch(r.type){case vo:{let n=e.createElement("a");n.setAttribute("href",vn(r.url)),n.className=Cb({size:"sm",variant:"inline"});for(let i of r.children)f0(e,n,i,false);t.append(n);break}case hn:{let n=e.createElement("span");n.setAttribute("contenteditable","false"),n.dataset.userId=r.value,n.textContent=`@${r.displayName}`,t.append(n);break}case Ni:{let n=e.createElement("span");n.setAttribute("contenteditable","false"),n.dataset.mentionAnchor="true",n.textContent=r.children[0].text,t.append(n);break}}}function SS(e){return We(e)?e.text!=="":pt(e)?e.children.some(t=>t.text!==""):true}function lZ(e,t){let r=e.createElement("p");if(iZ(t))return r.append(e.createElement("br")),r;let o=-1;for(let n=t.children.length-1;n>=0;n--)if(SS(t.children[n])){o=n;break}for(let[n,i]of t.children.entries())aZ(e,r,i,n===o);return r}function ap(e,t){let r=t.ownerDocument,o=r.createDocumentFragment();for(let n of e)o.append(lZ(r,n));t.replaceChildren(o);}var sZ=1,uZ=3,cZ=11;function Fo(e){return e.nodeType===sZ}function b0(e){return e.nodeType===cZ&&"host"in e}function Sg(e){return e.nodeType===uZ}function lp(e,t){return e.tagName.toLowerCase()===t}function dZ(e){return lp(e,"span")?e.getAttribute("contenteditable")==="false":false}function pZ(e,t,r,o,n){if(o===e){let l=e.childNodes,s=Math.min(n,l.length);return s===0?{found:true,point:{path:[r,0],offset:0}}:mZ(t,r,s)}let i=e.childNodes,a=0;for(let l=0;l<t.children.length;l++){let s=t.children[l];if(We(s)){let u=Dg(t.children,l),c=h0(s.text,i,a,r,l,o,n,u);if(c.found)return c;a+=ol(s.text,u);}else if(pt(s)){if(a>=i.length)continue;let u=i[a];if(!Fo(u)||!lp(u,"a")){a++;continue}let c=fZ(s,u,r,l,o,n);if(c.found)return c;a++;}else if(Hn(s)||$n(s)){if(a>=i.length)continue;let u=i[a];if(!Fo(u)||!dZ(u)){a++;continue}if(o===u||(Fo(o)||Sg(o))&&Z(u,o))return {found:true,point:{path:[r,l+1],offset:0}};a++;}}return {found:false}}function mZ(e,t,r){let o=0;for(let a=0;a<e.children.length;a++){let l=e.children[a],s=We(l)?ol(l.text,Dg(e.children,a)):1;if(o+s>=r){if(We(l))return {found:true,point:{path:[t,a],offset:g0(l.text,r-o)}};if(xo(l))return {found:true,point:{path:[t,a+1],offset:0}};{let u=l.children.reduce((c,d)=>c+d.text.length,0);return {found:true,point:{path:[t,a],offset:u}}}}o+=s;}let n=e.children.length-1,i=e.children[n];if(We(i))return {found:true,point:{path:[t,n],offset:i.text.length}};if(xo(i))return {found:true,point:{path:[t,n+1],offset:0}};if(pt(i)){let a=i.children.reduce((l,s)=>l+s.text.length,0);return {found:true,point:{path:[t,n],offset:a}}}return {found:false}}function Dg(e,t){for(let r=t+1;r<e.length;r++)if(SS(e[r]))return false;return true}function ol(e,t){if(e==="")return 0;let r=e.split(`
|
|
32
|
-
`),o=0;for(let n=0;n<r.length;n++)r[n].length>0&&o++,n<r.length-1&&o++;return t&&e.endsWith(`
|
|
33
|
-
`)&&o++,o}function g0(e,t){if(e==="")return 0;let r=e.split(`
|
|
34
|
-
`),o=0,n=0;for(let i=0;i<r.length&&!(o>=t);i++){if(r[i].length>0){if(o+1>=t){n+=r[i].length,o++;break}n+=r[i].length,o++;}if(i<r.length-1){if(o+1>=t){n++,o++;break}n++,o++;}}return e.endsWith(`
|
|
35
|
-
`)&&o<t&&(n=e.length),Math.min(n,e.length)}function h0(e,t,r,o,n,i,a,l=false){if(e==="")return {found:false};let s=e.split(`
|
|
36
|
-
`),u=r,c=0;for(let d=0;d<s.length;d++){let p=s[d],m=d===s.length-1;if(p.length>0&&u<t.length){let f=t[u],y=kg(f);if(y!==null){if(i===y){let b=Math.min(a,p.length);return {found:true,point:{path:[o,n],offset:c+b}}}if(Fo(i)&&Z(i,y))return {found:true,point:{path:[o,n],offset:c+(a===0?0:p.length)}}}c+=p.length,u++;}if(m){if(m&&l&&e.endsWith(`
|
|
37
|
-
`)&&p===""&&u<t.length){let f=t[u];if(Fo(f)&&lp(f,"br")&&i===f)return {found:true,point:{path:[o,n],offset:c}};u++;}}else if(u<t.length){let f=t[u];if(Fo(f)&&lp(f,"br")&&i===f)return {found:true,point:{path:[o,n],offset:c+(a===0?0:1)}};c++,u++;}}return {found:false}}function fZ(e,t,r,o,n,i){if(!Fo(t))return {found:false};if(n===t){let u=t.childNodes,c=Math.min(i,u.length),d=0,p=0,m=0;for(let f of e.children){let y=ol(f.text,false);if(m+y>=c){p=d+g0(f.text,c-m);break}d+=f.text.length,m+=y;}return m>=e.children.reduce((f,y)=>f+ol(y.text,false),0)&&(p=e.children.reduce((f,y)=>f+y.text.length,0)),{found:true,point:{path:[r,o],offset:p}}}if(!Z(t,n))return {found:false};let a=t.childNodes,l=0,s=0;for(let u of e.children){let c=h0(u.text,a,s,r,o,n,i);if(c.found)return {found:true,point:{path:[r,o],offset:l+c.point.offset}};l+=u.text.length,s+=ol(u.text,false);}return {found:false}}function kg(e){if(Sg(e))return e;if(Fo(e)){let t=e;for(;Fo(t)&&t.childNodes.length===1;){let r=t.childNodes[0];if(Sg(r))return r;if(Fo(r))t=r;else break}}return null}function Pg(e,t,r,o){try{if(r!==e&&!Z(e,r)||t.length===0)return null;if(r===e){let i=Math.min(o,e.childNodes.length);if(i===0)return {path:[0,0],offset:0};let a=Math.min(i,t.length)-1,l=t[a];if(!l)return null;let s=l.children.length-1,u=l.children[s];if(!u)return null;let c=We(u)?u.text.length:pt(u)?u.children.reduce((d,p)=>d+p.text.length,0):0;return {path:[a,s],offset:c}}let n=e.children;for(let i=0;i<t.length;i++){let a=n[i];if(!a)return null;let l=t[i];if(r!==a&&!Z(a,r))continue;let s=pZ(a,l,i,r,o);return s.found?s.point:null}return null}catch{return null}}function y0(e,t,r){try{let[o,n]=r.path,i=r.offset;if(o<0||o>=t.length)return null;let a=t[o];if(n<0||n>=a.children.length)return null;let l=a.children[n],s=e.children[o];if(!s)return null;let u=s.childNodes,c=0;for(let d=0;d<n;d++){let p=a.children[d];We(p)?c+=ol(p.text,Dg(a.children,d)):c++;}if(We(l))return v0(l.text,i,u,c,s,Dg(a.children,n));if(pt(l)){if(c>=u.length)return null;let d=u[c];return !Fo(d)||!lp(d,"a")?null:yZ(l,i,d)}else if(Hn(l)||$n(l)){let d=c+1;if(d<u.length){let p=u[d];if(Sg(p))return {node:p,offset:0}}return {node:s,offset:Math.min(d,s.childNodes.length)}}return null}catch{return null}}function v0(e,t,r,o,n,i=false){if(e==="")return {node:n,offset:o};let a=e.split(`
|
|
38
|
-
`),l=o,s=0;for(let u=0;u<a.length;u++){let c=a[u],d=u===a.length-1;if(c.length>0&&l<r.length){let p=r[l];if(t>=s&&t<=s+c.length){let m=kg(p);return m!==null?{node:m,offset:t-s}:{node:n,offset:l}}s+=c.length,l++;}if(d){if(d&&e.endsWith(`
|
|
39
|
-
`)&&c===""&&l<=r.length){if(t===s)return {node:n,offset:Math.min(l,n.childNodes.length)};i&&l++;}}else if(l<r.length){if(t===s)return {node:n,offset:l};s++,l++;}}if(l>o&&l-1<r.length){let u=r[l-1],c=kg(u);return c!==null?{node:c,offset:c.length}:{node:n,offset:l}}return {node:n,offset:Math.min(l,n.childNodes.length)}}function yZ(e,t,r){let o=r.childNodes,n=0,i=0;for(let a of e.children){let l=a.text.length;if(t<=n+l)return v0(a.text,t-n,o,i,r);n+=l,i+=ol(a.text,false);}if(o.length>0){let a=r.lastChild,l=a===null?null:kg(a);return l!==null?{node:l,offset:l.length}:{node:r,offset:o.length}}return {node:r,offset:0}}function Eg(e){let t=e.getRootNode();if(typeof t.getSelection=="function")return t.getSelection();let r=e.ownerDocument;if(!r)return null;let o=r.defaultView;return o?o.getSelection():null}function bZ(e,t){let r=e.getComposedRanges;if(typeof r!="function")return null;let o;try{o=r.call(e,{shadowRoots:[t]});}catch{try{o=r.call(e,t);}catch{return null}}let n=o?.[0];return n?{startContainer:n.startContainer,startOffset:n.startOffset,endContainer:n.endContainer,endOffset:n.endOffset}:null}function DS(e,t){let r=t.rangeCount>0?t.getRangeAt(0):null,o=r?{startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset}:null;if(o&&Z(e,o.startContainer))return o;let n=e.getRootNode();if(b0(n)){let i=bZ(t,n);if(i&&Z(e,i.startContainer))return i}return o}function zg(e,t){try{let r=Eg(e);if(!r)return null;let{anchorNode:o,focusNode:n}=r;if(o&&n&&Z(e,o)&&Z(e,n)){let s=Pg(e,t,o,r.anchorOffset),u=Pg(e,t,n,r.focusOffset);if(s!==null&&u!==null)return {anchor:s,focus:u}}let i=DS(e,r);if(!i)return null;let a=Pg(e,t,i.startContainer,i.startOffset);if(a===null)return null;let l=Pg(e,t,i.endContainer,i.endOffset);return l===null?null:{anchor:a,focus:l}}catch{return null}}function mu(e,t,r){try{let o=y0(e,t,r.anchor);if(o===null)return;let n=y0(e,t,r.focus);if(n===null)return;let i=e.ownerDocument;if(!i)return;let a=Eg(e);if(!a)return;if(Fi(r.anchor,r.focus)>0||b0(e.getRootNode())){a.setBaseAndExtent(o.node,o.offset,n.node,n.offset);return}let s=i.createRange();s.setStart(o.node,o.offset),s.setEnd(n.node,n.offset),a.removeAllRanges(),a.addRange(s);}catch{}}var x0="typing";var wg=class{undoStack=[];redoStack=[];now;maxDepth;lastKind=null;lastTime=null;constructor(t={}){this.now=t.now??Date.now,this.maxDepth=t.maxDepth??100;}record(t,r){let o=this.now();this.redoStack.length>0&&(this.redoStack=[]);let n=r===x0&&this.lastKind===x0&&this.lastTime!==null&&o-this.lastTime<=1e3;this.lastKind=r,this.lastTime=o,!n&&(this.undoStack.push(t),this.undoStack.length>this.maxDepth&&this.undoStack.shift());}undo(t){let r=this.undoStack.pop();return r?(this.redoStack.push(t),this.lastKind=null,this.lastTime=null,r):null}redo(t){let r=this.redoStack.pop();return r?(this.undoStack.push(t),this.lastKind=null,this.lastTime=null,r):null}clear(){this.undoStack=[],this.redoStack=[],this.lastKind=null,this.lastTime=null;}get canUndo(){return this.undoStack.length>0}get canRedo(){return this.redoStack.length>0}};var gZ=1,sp=class e{doc=lu();lastKnownHtml="";cachedRange=null;composing=false;pending=null;preservePendingSelectionChanges=0;history=new wg;opts;el=null;pendingExternalRender=null;keyboardShortcutsOverride=void 0;constructor(t={}){this.opts=t,this.lastKnownHtml=jn(this.doc);}setKeyboardShortcutsEnabled(t){this.keyboardShortcutsOverride=t;}attach(t){this.el=t,ap(this.doc,t),this.cachedRange&&mu(t,this.doc,this.cachedRange);let r=this.handleBeforeInputBound,o=this.handleInputBound,n=this.handlePasteBound,i=this.handleCompositionStartBound,a=this.handleCompositionEndBound,l=this.handleSelectionChangeBound,s=this.handlePointerDownBound,u=t.ownerDocument;return t.addEventListener("beforeinput",r),t.addEventListener("input",o),t.addEventListener("paste",n),t.addEventListener("compositionstart",i),t.addEventListener("compositionend",a),t.addEventListener("pointerdown",s),u.addEventListener("selectionchange",l),()=>{t.removeEventListener("beforeinput",r),t.removeEventListener("input",o),t.removeEventListener("paste",n),t.removeEventListener("compositionstart",i),t.removeEventListener("compositionend",a),t.removeEventListener("pointerdown",s),u.removeEventListener("selectionchange",l),this.el===t&&(this.el=null);}}handleBeforeInputBound=t=>{let r=t;if($(r)===this.el){if(this.opts.isReadOnly?.()){r.preventDefault();return}this.refreshSelectionFromDom(),this.handleBeforeInput(r);}};handleInputBound=t=>{$(t)===this.el&&(this.composing||this.syncFromDom());};handlePasteBound=t=>{let r=t,o=$(r);!o||!Z(this.el,o)||(o.nodeType===gZ?o:o.parentElement)?.closest('input, [contenteditable="false"]')||(r.preventDefault(),!this.opts.isReadOnly?.()&&(this.composing||(this.refreshSelectionFromDom(),this.insertPastedData(r.clipboardData))));};handlePointerDownBound=()=>{this.preservePendingSelectionChanges=0;};handleCompositionStartBound=()=>{this.composing=true;};handleCompositionEndBound=()=>{if(this.composing=false,this.pendingExternalRender){let t=this.pendingExternalRender;this.pendingExternalRender=null,t();return}this.syncFromDom();};handleSelectionChangeBound=()=>{this.el&&this.handleSelectionChange();};refreshSelectionFromDom(){if(!this.el)return;let t=zg(this.el,this.doc);t&&(this.cachedRange=t);}getDoc(){return this.doc}getValue(){return jn(this.doc)}setValue(t,r={}){if(t===this.lastKnownHtml)return;let o,n;try{o=Zt(yS(t)),n=jn(o);}catch(s){process.env.NODE_ENV!=="production"&&console.error("[Editor] setValue failed to parse value:",s);return}let i=this.cachedRange?Bt(this.doc,this.cachedRange.anchor):null,a=e.docHasMentionInput(this.doc);this.doc=o,this.lastKnownHtml=n,this.pending=null,this.history.clear();let l=()=>{if(this.el&&(ap(o,this.el),i!==null)){let s=Math.min(i,su(o)),u=ar(o,s),c={anchor:u,focus:u};this.cachedRange=c,mu(this.el,o,c);}};this.el&&(this.composing?this.pendingExternalRender=l:l()),a&&!e.docHasMentionInput(o)&&this.opts.onMentionInputRemoved?.(),r.emit&&(this.opts.onChange?.(n),this.emitSelectionChange());}static docHasMentionInput(t){return t.some(r=>r.children.some(o=>$n(o)))}exec(t,...r){this.refreshSelectionFromDom();let o=this.cachedRange,n=this.doc,i=o??this.collapsedAtDocEnd(),a={doc:n,range:o},l;try{l=this.dispatchCommand(t,r);}catch(s){process.env.NODE_ENV!=="production"&&console.error(`[Editor] command "${t}" threw:`,s);return}if(l.doc===n){if(t==="toggleMark"&&gr(i)){let[s]=r;this.setPendingMark(s,i),this.emitSelectionChange();return}if(t==="setMarkValue"&&gr(i)){let[s,u]=r;this.setPendingColorMark(s,u,i),this.emitSelectionChange();return}this.pending=null;return}if(this.pending=null,t==="insertSoftBreak"){let s=this.mergePendingMarks(rl(n,i));if(Object.keys(s).length>0){let u=Bt(l.doc,l.range.anchor);this.pending={marks:s,caretOffset:u},this.preservePendingSelectionChanges=10;}}this.history.record(a,t),this.applyDocChange(l.doc,l.range,true);}undo(){if(!this.history.canUndo)return;let t={doc:this.doc,range:this.cachedRange},r=this.history.undo(t);r&&(this.pending=null,this.applyDocChange(r.doc,r.range,true));}redo(){if(!this.history.canRedo)return;let t={doc:this.doc,range:this.cachedRange},r=this.history.redo(t);r&&(this.pending=null,this.applyDocChange(r.doc,r.range,true));}canUndo(){return this.history.canUndo}canRedo(){return this.history.canRedo}focus(){this.el?.focus();}setCaretPosition(t){if(!this.el)return;let r=ar(this.doc,t);this.select({anchor:r,focus:r});}select(t){this.el&&(this.el.focus(),this.cachedRange=t,mu(this.el,this.doc,t));}selectStart(){this.setCaretPosition(0);}selectEnd(){let t=cu(this.doc);this.select({anchor:t,focus:t});}getSelectionState(){return this.buildSelectionState(this.cachedRange)}buildSelectionState(t){let r=t?rl(this.doc,t):{},o=this.mergePendingMarks(r),n=t?r0(this.doc,t):null;return {marks:o,link:n,range:t}}mergePendingMarks(t){return this.pending?this.pending.marks:t}setPendingMark(t,r){let o=Bt(this.doc,r.anchor),n=rl(this.doc,r),i=this.pending?{...this.pending.marks}:{...n};i[t]?delete i[t]:i[t]=true,this.pending={marks:i,caretOffset:o};}setPendingColorMark(t,r,o){let n=Bt(this.doc,o.anchor),i=rl(this.doc,o),a=this.pending?{...this.pending.marks}:{...i};r===void 0?delete a[t]:a[t]=r,this.pending={marks:a,caretOffset:n};}emitSelectionChange(){this.opts.onSelectionChange&&this.opts.onSelectionChange(this.buildSelectionState(this.cachedRange));}applyDocChange(t,r,o){if(this.doc=t,this.cachedRange=r,this.el&&!this.composing&&(ap(t,this.el),r&&mu(this.el,t,r)),o){let n=jn(t);this.lastKnownHtml=n,this.opts.onChange?.(n),this.emitSelectionChange();}}handleBeforeInput(t){let{inputType:r}=t;if(r==="insertParagraph"||r==="insertLineBreak"){t.preventDefault();let n=this.detectAutoLinkBeforeCaret();this.exec("insertSoftBreak"),n&&this.applyAutoLink(n);return}if(r==="insertText"&&t.data===" "){let n=this.detectAutoLinkBeforeCaret();if(n){t.preventDefault(),this.exec("insertText"," "),this.applyAutoLink(n);return}}if(r==="insertFromPaste"||r==="insertFromDrop"){t.preventDefault(),this.handlePasteInput(t);return}let o=this.keyboardShortcutsOverride??this.opts.areKeyboardShortcutsEnabled?.()??true;if(r==="formatBold"){t.preventDefault(),o&&this.exec("toggleMark","bold");return}if(r==="formatItalic"){t.preventDefault(),o&&this.exec("toggleMark","italic");return}if(r==="formatUnderline"){t.preventDefault(),o&&this.exec("toggleMark","underline");return}if(r==="historyUndo"){t.preventDefault(),o&&this.undo();return}if(r==="historyRedo"){t.preventDefault(),o&&this.redo();return}if(r==="insertText"&&t.data==="@"&&this.shouldTriggerMention()&&this.opts.canStartMention?.()!==false){t.preventDefault();let n=this.doc;this.exec("insertMentionInput"),this.doc===n?this.exec("insertText","@"):this.opts.onMentionTrigger?.();}}shouldTriggerMention(){if(!this.cachedRange)return true;if(!gr(this.cachedRange))return false;let t=this.cachedRange,[r,o]=t.anchor.path,n=t.anchor.offset,i=this.doc;if(r>=i.length)return true;let a=i[r];if(o>=a.children.length)return true;let l=a.children[o];if(n===0&&o===0)return true;let s=null;if(We(l)){let u=l.text;if(n>0)s=u[n-1];else if(o>0)s=this.lastCharOf(a.children[o-1]);else return true}else if(pt(l)){let u=l.children.map(c=>c.text).join("");if(n>0)s=u[n-1]??null;else if(o>0)s=this.lastCharOf(a.children[o-1]);else return true}else if(n===0&&o>0)s=this.lastCharOf(a.children[o-1]);else return true;return s===null?true:/^[\s"']$/.test(s)}lastCharOf(t){if(We(t)){let r=t.text;return r.length>0?r.at(-1)??null:null}if(pt(t)){let o=(t.children??[]).at(-1);return o&&o.text.length>0?o.text.at(-1)??null:null}if(Hn(t)){let r=t.displayName??"";return r.length>0?r.at(-1)??null:null}return null}autoLinkEnabled(){return this.opts.autoLink?.()??true}detectAutoLinkBeforeCaret(){return !this.autoLinkEnabled()||this.composing?null:this.findAutoLinkBeforeCaret()}findAutoLinkBeforeCaret(){let t=this.cachedRange;if(!t||!gr(t))return null;let r=t.anchor,o=this.doc,n=r.path[0];if(n>=o.length)return null;let i=o[n].children,a=r.path[1],l=r.offset;if(a>=i.length){a=i.length-1;let p=i[a];if(!p||!We(p))return null;l=p.text.length;}else {let p=i[a];We(p)&&l>p.text.length&&(l=p.text.length);}let s=i[a];if(We(s)&&l<s.text.length&&!/\s/.test(s.text[l]))return null;let u="";for(;;){let p=i[a];if(!p||!We(p))break;if(l>0){let m=p.text[l-1];if(/\s/.test(m))break;u=m+u,l-=1;}else {if(a===0)break;let m=i[a-1];if(!We(m))break;a-=1,l=m.text.length;}}if(u==="")return null;let c=Tg(u);if(!c)return null;let d=Bt(o,{path:[n,a],offset:l});return {startAbs:d+c.start,endAbs:d+c.end,url:c.url}}applyAutoLink(t){let r=vn(t.url);if(r==="")return;let o=this.doc,n={anchor:ar(o,t.startAbs),focus:ar(o,t.endAbs)},i={doc:o,range:this.cachedRange},a=PS(o,n,r);if(a.doc===o)return;let l=this.cachedRange?Bt(o,this.cachedRange.anchor):t.endAbs;this.history.record(i,"wrapLink");let s=ar(a.doc,l);this.applyDocChange(a.doc,{anchor:s,focus:s},true);}handlePasteInput(t){this.insertPastedData(t.dataTransfer);}insertPastedData(t){if(!t)return;let r=this.autoLinkEnabled(),o=t.getData("text/plain");if(r&&o){let i=this.cachedRange;if(i&&!gr(i)&&i.anchor.path[0]===i.focus.path[0]){let a=U6(o),l=a?vn(a):"";if(l&&!o0(this.doc,i)){this.exec("wrapLink",l);return}}}let n=t.getData("text/html");if(n)try{let i=Zt(yS(n));r&&(i=Zt(bS(i))),this.exec("insertFragment",i);return}catch(i){process.env.NODE_ENV!=="production"&&console.error("[Editor] failed to parse pasted HTML:",i);}if(o){let i=el(o.replaceAll(`\r
|
|
40
|
-
`,`
|
|
41
|
-
`).replaceAll("\r",`
|
|
42
|
-
`)),a=Zt([{type:"p",children:[{text:i}]}]);r&&(a=Zt(bS(a))),this.exec("insertFragment",a);}}syncFromDom(){if(!this.el||this.composing)return;let t=this.doc,r={doc:t,range:this.cachedRange},o=xg(this.el),n=zg(this.el,o);if(!(jn(o)!==this.lastKnownHtml)){if(n){let d=this.cachedRange;this.cachedRange=n,(!d||!this.rangesEqual(d,n))&&this.emitSelectionChange();}return}this.history.record(r,"typing");let l=o,s=n,u=false;if(!s&&r.range){let d=Math.max(su(o)-su(t),0),p=this.pending?this.pending.caretOffset:Bt(t,r.range.anchor),m=ar(o,p+d);s={anchor:m,focus:m};}if(this.pending){let d=this.pending.marks,p=s;if(p){let m=this.applyPendingMarks(o,r.range,p);m.doc!==o&&(l=m.doc,s=m.range,u=true),this.pending=s?{marks:d,caretOffset:Bt(l,s.anchor)}:null,s&&(this.preservePendingSelectionChanges=10);}else this.pending=null;}this.doc=l,this.cachedRange=s;let c=jn(l);this.lastKnownHtml=c,u&&(ap(l,this.el),s&&mu(this.el,l,s)),this.opts.onChange?.(c),this.emitSelectionChange();}applyPendingMarks(t,r,o){if(!this.pending||!r||!o)return {doc:t,range:o??{anchor:{path:[0,0],offset:0},focus:{path:[0,0],offset:0}}};let n=this.pending.caretOffset,i=o?Bt(t,o.anchor):n;if(i<=n)return {doc:t,range:o??{anchor:{path:[0,0],offset:0},focus:{path:[0,0],offset:0}}};let a=this.applyPendingMarkSnapshot(t,this.pending.marks,n,i),l=ar(a,i);return {doc:a,range:{anchor:l,focus:l}}}applyPendingMarkSnapshot(t,r,o,n){let i=t,a=()=>({anchor:ar(i,o),focus:ar(i,n)});for(let l of ["bold","italic","underline"]){let s=a(),u=!!r[l],c=!!rl(i,s)[l];if(u!==c){let d=xS(i,s,l);d.doc!==i&&(i=d.doc);}}for(let l of ["color","backgroundColor"]){let s=a(),u=r[l],c=rl(i,s)[l];if(!Si(u,c)){let d=TS(i,s,l,u);d.doc!==i&&(i=d.doc);}}return i}handleSelectionChange(){if(!this.el)return;let t=Eg(this.el);if(!t)return;let r=DS(this.el,t);if(!r||!Z(this.el,r.startContainer))return;let o=zg(this.el,this.doc),n=this.cachedRange;this.preservePendingSelectionChanges>0?(this.preservePendingSelectionChanges-=1,this.pending&&o&&(this.pending={...this.pending,caretOffset:Bt(this.doc,o.anchor)})):this.pending&&o&&Bt(this.doc,o.anchor)!==this.pending.caretOffset&&(this.pending=null),o!==null&&(this.cachedRange=o),(!n||!o||!this.rangesEqual(n,o))&&this.emitSelectionChange();}dispatchCommand(t,r){let o=this.doc,n=this.cachedRange??this.collapsedAtDocEnd();switch(t){case "toggleMark":{let[i]=r;return xS(o,n,i)}case "setMarkValue":{let[i,a]=r;return TS(o,n,i,a)}case "wrapLink":{let[i]=r;return PS(o,n,i)}case "updateLinkUrl":{let[i]=r;return n0(o,n,i)}case "unwrapLink":return i0(o,n);case "deleteRange":return pu(o,n);case "insertText":{let[i]=r;if(!gr(n)){let a=pu(o,n);return ip(a.doc,a.range.focus,i)}return ip(o,n.anchor,i)}case "insertFragment":{let[i]=r;return a0(o,n,i)}case "insertSoftBreak":return l0(o,n);case "insertMentionInput":return d0(o,n);case "confirmMention":{let[i]=r;return p0(o,i)}case "removeMentionInput":{let[i]=r;return m0(o,i)}default:return {doc:o,range:n}}}collapsedAtDocEnd(){let t=cu(this.doc);return {anchor:t,focus:t}}rangesEqual(t,r){return t.anchor.path[0]===r.anchor.path[0]&&t.anchor.path[1]===r.anchor.path[1]&&t.anchor.offset===r.anchor.offset&&t.focus.path[0]===r.focus.path[0]&&t.focus.path[1]===r.focus.path[1]&&t.focus.offset===r.focus.offset}};var up=qn.createContext(null);function Gn(){let e=qn.useContext(up);if(!e)throw new Error("useEditorContext must be used within an EditorProvider");return e}var Rg=Object.freeze({marks:{},link:null,range:null});function xZ(e){let t=el(e.replaceAll(/<br\s*\/?>/gi,""));return t==="<p></p>"||t===""||t==="<p> </p>"}function kS(e={}){let{value:t,defaultValue:r,onChange:o,isDisabled:n,keyboardShortcuts:i,onSelectionChange:a,onMentionTrigger:l,onMentionInputRemoved:s,canStartMention:u,isReadOnly:c,autoLink:d}=e;t!==void 0&&o===void 0&&Ds("use-editor-value-without-onchange","useEditor: `value` without `onChange` is controlled but cannot reflect edits \u2014 they are discarded on the next render. Use `defaultValue` for initial content, or add `onChange`.");let[p,m]=useState(Rg),[f,y]=useState(()=>t??r??""),b=useRef(o);b.current=o;let g=useRef(a);g.current=a;let x=useRef(l);x.current=l;let h=useRef(s);h.current=s;let v=useRef(u);v.current=u;let C=useRef(c);C.current=c;let T=useRef(n);T.current=n;let P=useRef(i);P.current=i;let k=useRef(d);k.current=d;let S=useRef(null);S.current===null&&(S.current=new sp({onChange:R=>{y(R),b.current?.(R);},onSelectionChange:R=>{m(R),g.current?.(R);},onMentionTrigger:()=>{x.current?.();},onMentionInputRemoved:()=>{h.current?.();},canStartMention:()=>v.current?.()??false,autoLink:()=>k.current!==false,isReadOnly:()=>C.current?.()??!!T.current,areKeyboardShortcutsEnabled:()=>P.current!==false}));let w=S.current;useLayoutEffect(()=>{t!==void 0&&w.setValue(t);});let E=useRef(false);useEffect(()=>{if(!E.current){E.current=true;let R=t??r;R&&w.setValue(R);}},[w]),useEffect(()=>{n&&m(Rg);},[n]);let z=t??f,A=xZ(z),D=w.canUndo(),O=w.canRedo();return useMemo(()=>({core:w,selectionState:p,value:z,isEmpty:A,isDisabled:!!n,keyboardShortcuts:i!==false,canUndo:D,canRedo:O,focus:()=>{w.focus();},selectStart:()=>{w.selectStart();},selectEnd:()=>{w.selectEnd();},setCaretPosition:R=>{w.setCaretPosition(R);},undo:()=>{w.undo();},redo:()=>{w.redo();},getValue:()=>w.getValue(),setValue:(R,N)=>{w.setValue(R,N);},exec:(R,...N)=>{w.exec(R,...N);},isMarkActive:R=>!!p.marks[R],toggleMark:R=>{w.exec("toggleMark",R);},setMark:(R,N)=>{w.exec("setMarkValue",R,N);}}),[w,p,z,A,n,i,D,O])}function D0(e,t){let r=e.ctrlKey||e.metaKey,o=e.key.toLowerCase();if(r&&!e.altKey&&o==="z")return e.preventDefault(),e.shiftKey?t.redo():t.undo(),true;if(e.ctrlKey&&!e.altKey&&!e.shiftKey&&o==="y")return e.preventDefault(),t.redo(),true;if(r&&!e.shiftKey&&!e.altKey){if(o==="b")return e.preventDefault(),t.toggleMark("bold"),true;if(o==="i")return e.preventDefault(),t.toggleMark("italic"),true;if(o==="u")return e.preventDefault(),t.toggleMark("underline"),true}return false}function zS(e,t={}){let r=DZ(e),{ref:o,autoFocus:n,onKeyDown:i,keyboardShortcuts:a}=t,l=a??r.keyboardShortcuts,s=useId(),u=useRef(null),c=useRef(null),d=useCallback(y=>{c.current&&(c.current(),c.current=null),y&&(c.current=r.core.attach(y));},[r.core]),p=useMemo(()=>se(u,d,o??null),[d,o]);useEffect(()=>(r.core.setKeyboardShortcutsEnabled(a),()=>{r.core.setKeyboardShortcutsEnabled(void 0);}),[r.core,a]);let m=useRef(false);useEffect(()=>{if(!m.current)switch(m.current=true,n){case true:{r.focus();break}case "start":{r.selectStart();break}case "end":{r.selectEnd();break}}},[r.core]);let{keyboardProps:f}=Ae({onKeyDown:y=>{i?.(y)||l&&D0(y,r)||y.continuePropagation();}});return {editableProps:{...f,id:s,ref:p,contentEditable:!r.isDisabled,suppressContentEditableWarning:true,role:"textbox","aria-multiline":true}}}function DZ(e){let t=useContext(up);if(e)return e;if(!t)throw new Error("useEditable must be passed an editor or used within an EditorProvider");return t}var wS=({editor:e,children:t})=>jsx(up.Provider,{value:e,children:t});var Ig=({markName:e,icon:t,ariaLabel:r,isDisabled:o})=>{let{core:n,selectionState:i}=Gn(),a=!!i.marks[e];return jsx(qr,{variant:"tertiary",isSelected:a,size:"sm",icon:t,"aria-label":r,"data-testid":`editor-${e}-button`,isDisabled:o,onPress:()=>{n.exec("toggleMark",e),n.focus();},preventFocusOnPress:true})},IS=({colorKey:e,"aria-label":t,isDisabled:r})=>{let{core:o,selectionState:n}=Gn(),i=e==="color"?n.marks.color:n.marks.backgroundColor,a=qn.useRef(null),l=useCallback(()=>{a.current=n.range;},[n.range]),s=useCallback(m=>{setTimeout(()=>{let f=o.getSelectionState().range??a.current;f&&o.select(f),o.exec("setMarkValue",e,m);},0);},[o,e]),u=useCallback(m=>{s(m);},[s]),c=useCallback(()=>{s();},[s]),d=useCallback(({ref:m,triggerProps:f})=>jsx(me,{icon:e==="color"?TextIcon$1:HighlightTextIcon,"aria-label":t,"data-testid":e==="color"?"editor-font-color-button":"editor-background-color-button",size:"md",variant:"popover",isDisabled:r,className:nu,preventFocusOnPress:true,...f,ref:m}),[e,t,r]),p=useCallback(m=>{m?u(m.toString("rgba")):c();},[c,u]);return jsx(Qs,{presets:cS,allowRemoval:true,pickerMode:"lazy",placement:"top end",colorLabel:false,renderTriggerButton:d,onTriggerPress:l,value:i||"#000000",onChange:p,isDisabled:r})};var nl={Add:"add",Edit:"edit",Show:"show"},E0=({isDisabled:e,addLinkLabel:t,editLinkLabel:r,removeLinkLabel:o,linkAnnotationLabel:n,linkCancelLabel:i,linkSaveLabel:a})=>{let{formatMessage:l}=fe(),{core:s}=Gn();return jsxs(Mo,{type:"dialog",children:[jsx(Ao,{children:jsx(me,{icon:LinkIcon,size:"sm",isDisabled:e,"aria-label":t??l(il.addLink),"data-testid":"editor-add-link-button",className:nu,preventFocusOnPress:true})}),jsx(Et,{className:sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:u})=>jsx(Ar,{size:"content",style:{minWidth:240},children:jsx(_Z,{addLinkLabel:t,editLinkLabel:r,removeLinkLabel:o,linkAnnotationLabel:n,linkCancelLabel:i,linkSaveLabel:a,close:()=>{u(),setTimeout(()=>{s.focus();},0);}})})})]})},_Z=({close:e,addLinkLabel:t,editLinkLabel:r,removeLinkLabel:o,linkAnnotationLabel:n,linkCancelLabel:i,linkSaveLabel:a})=>{let{core:l,selectionState:s}=Gn(),{formatMessage:u}=fe(),c=s.link?.url,[d,p]=qn.useState(c?nl.Show:nl.Add),[m,f]=qn.useState(c||""),y=jsx(J,{padding:"lg",children:jsx(_i,{label:n??u(il.link),value:m,autoFocus:true,onChange:f,placeholder:"https://yourdomain.com","data-testid":"editor-link-input"})});return jsxs(Fragment,{children:[d===nl.Add&&jsxs(Fragment,{children:[y,jsx(J,{display:"flex",justifyContent:"flex-end",padding:"lg",className:v6,children:jsx(Me,{isDisabled:!vC(m,true)||vn(m)==="",label:t??u(il.addLink),"data-testid":"editor-link-add-button",size:"sm",onPress:()=>{l.exec("wrapLink",m),e?.();},preventFocusOnPress:true})})]}),d===nl.Show&&jsxs(Fragment,{children:[jsx(J,{padding:"lg",children:jsx(Je,{type:"subtitle",size:"sm",children:c})}),jsxs(J,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(Me,{label:r??u(il.editLink),"data-testid":"editor-link-edit-button",size:"sm",variant:"secondary",onPress:()=>{p(nl.Edit);},style:{flex:1,justifyContent:"center"}}),jsx(Me,{label:o??u(il.removeLink),"data-testid":"editor-link-remove-button",size:"sm",onPress:()=>{l.exec("unwrapLink"),e?.();},preventFocusOnPress:true,style:{flex:1,justifyContent:"center"}})]})]}),d===nl.Edit&&jsxs(Fragment,{children:[y,jsxs(J,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(Me,{label:i??u(il.cancel),"data-testid":"editor-link-cancel-button",size:"sm",variant:"secondary",onPress:()=>{p(nl.Show),e?.();}}),jsx(Me,{label:a??u(il.save),"data-testid":"editor-link-save-button",size:"sm",onPress:()=>{vn(m)!==""&&(l.exec("updateLinkUrl",m),e?.());}})]})]})]})},il=Se({addLink:{id:"bui.editor.addLink",defaultMessage:"Add Link"},editLink:{id:"bui.editor.editLink",defaultMessage:"Edit Link"},removeLink:{id:"bui.editor.removeLink",defaultMessage:"Remove Link"},cancel:{id:"bui.editor.cancel",defaultMessage:"Cancel"},save:{id:"bui.editor.save",defaultMessage:"Save"},link:{id:"bui.editor.linkAnnotation",defaultMessage:"Link"}});var Mg=qn.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),w0=({key:e,value:t},{isDisabled:r,optionProps:o,isFocused:n,_state:i},a)=>{let{hoverProps:l}=ae({isDisabled:r}),{label:s,data:u}=t;return jsxs(Fragment,{children:[jsxs("li",{...M(o,l),className:k6({isDisabled:r,isHovered:n}),"data-active":n,ref:a,children:[jsx(Ys,{name:s,...u?.avatar}),jsxs(J,{display:"flex",flexDirection:"column",children:[jsx(Je,{type:"subtitle",size:"sm",children:s}),jsx(Je,{type:"helper",size:"sm",children:u?.description})]})]}),e===i.collection.getLastKey()?null:jsx(ze,{})]})};function _S(e){return e.displayName?.trim()||e.name?.trim()||e.id}function LS({anchor:e,onClose:t,mentionLabel:r}){let{core:o}=Gn(),{containerRef:n,items:i,maxMentionableUsersSuggestions:a}=useContext(Mg),[l,s]=useState(""),{contains:u}=hi({sensitivity:"base"}),{formatMessage:c}=fe(),d=useRef(false),p=useCallback(()=>{d.current=true,t();},[t]),m=useMemo(()=>{let w=i.filter(E=>l===""||u(_S(E),l)).map(E=>({id:E.id,label:_S(E),data:E}));return a?w.slice(0,a):w},[i,a,l,u]),f=useCallback(w=>jsx(mo,{textValue:w.label,children:w.label},w.id),[]),y=useCallback(w=>{if(d.current||w==null)return;let E=i.find(z=>z.id===w);E&&(p(),o.exec("confirmMention",{id:E.id,displayName:E.displayName??_S(E)}),o.exec("insertText"," "),o.focus());},[p,o,i]),b=xc({items:m,children:f,menuTrigger:"focus",onSelectionChange:y}),g=useCallback(w=>{if(d.current)return;p();let E=w==="backspace"?"":`@${b.inputValue}`;o.exec("removeMentionInput",E),o.focus();},[p,o,b.inputValue]),x=useRef(null),h=useRef(null),v=useRef(null),C=useRef(null);wo({ref:C,onInteractOutside:()=>{b.close();}});let{inputProps:T,listBoxProps:P}=hc({defaultItems:m,inputRef:h,buttonRef:x,listBoxRef:v,popoverRef:C,menuTrigger:"focus","aria-label":r??c(KZ.mention)},b);useLayoutEffect(()=>{h.current?.focus(),setTimeout(()=>{h.current?.focus();});},[]);let k=useCallback(w=>{let E=w.currentTarget,z=E.selectionStart===0&&E.selectionEnd===0,A=E.selectionStart===E.value.length&&E.selectionEnd===E.value.length;w.key==="Backspace"&&z?(w.preventDefault(),g("backspace")):w.key==="Escape"?g("escape"):w.key==="ArrowLeft"&&z?(w.preventDefault(),g("arrowLeft")):w.key==="ArrowRight"&&A&&(w.preventDefault(),g("arrowRight"));let D=w.metaKey||w.ctrlKey,O=w.key.toLowerCase(),R=D&&!w.shiftKey&&O==="z"&&o.canUndo(),N=(D&&w.shiftKey&&O==="z"||w.ctrlKey&&O==="y")&&o.canRedo();(R||N)&&(w.preventDefault(),R?o.undo():o.redo(),p(),o.focus());},[g,p,o]),S=useMemo(()=>{if(!CSS.supports("field-sizing","content")){let w=Y(h.current),E=h.current?w?.getComputedStyle(h.current).font:void 0;return {width:E?my({text:b.inputValue,font:E,element:h.current}).width+10:"4ch"}}},[b.inputValue]);return jsxs(Fragment,{children:[createPortal(jsx("input",{...M(T,{onKeyDown:k,onBlur:()=>{g("blur");},onChange:w=>{s(w.target.value);}}),style:S,className:D6,ref:h}),e),jsx(TC.Provider,{value:b,children:jsx(Et,{triggerRef:n,isNonModal:true,ref:C,state:b,crossOffset:-2,children:jsx(an,{...P,items:void 0,ref:v,"data-testid":"editor-mention-listbox",className:_(js,sprinkles({width:"full"})),renderOption:w0})})})]})}LS.displayName="MentionInputOverlay";var KZ=Se({mention:{defaultMessage:"Mention",id:"bui.editor.mention"}});var OS=qn.forwardRef(({value:e,defaultValue:t,onChange:r,style:o,spellCheck:n,placeholder:i,isInline:a,isDisabled:l,editableContentAriaLabel:s,containerRef:u,onHelpDialogOpenRequest:c,mentionableUsers:d,editorHandle:p,maxMentionableUsersSuggestions:m,autoFocus:f,editorRef:y,saveOnEnter:b,onSave:g,autoLink:x,mentionLabel:h,boldLabel:v,italicLabel:C,underlineLabel:T,fontColorLabel:P,backgroundColorLabel:k,helpLabel:S,addLinkLabel:w,editLinkLabel:E,removeLinkLabel:z,linkAnnotationLabel:A,linkCancelLabel:D,linkSaveLabel:O},R)=>{let N=useRef(null),F=useRef(null),{formatMessage:I}=fe(),[V,H]=useState(null),K=useRef(0),[L,B]=useState(false),G=()=>{let Ce=F.current?.querySelector("[data-mention-anchor]");Ce&&(K.current+=1,H({anchor:Ce,id:K.current}));},q=kS({value:e,defaultValue:t,onChange:r,isDisabled:l,onMentionTrigger:G,onMentionInputRemoved:()=>{H(null);},canStartMention:()=>(d?.length??0)>0,autoLink:x}),W=q.core;qn.useEffect(()=>{y&&(y.current=W);},[W,y]);let X=Ce=>b&&Ce.key==="Enter"&&!Ce.shiftKey||(Ce.ctrlKey||Ce.metaKey)&&Ce.key==="Enter"?(Ce.preventDefault(),g(),true):Ce.altKey&&Ce.key==="F10"?(Ce.preventDefault(),N.current?.querySelector("button")?.focus(),true):false,{editableProps:ce}=zS(q,{ref:F,autoFocus:f,onKeyDown:X}),te=Ce=>{if(l)return;let{isLinkClick:He,url:Xe}=j6(Ce.target,{metaKey:Ce.metaKey,ctrlKey:Ce.ctrlKey,mac:Ct()});He&&(Ce.preventDefault(),Xe&&Y(Ce.currentTarget).open(Xe,"_blank","noopener,noreferrer"));};qn.useEffect(()=>{let Ce=F.current;if(!Ce||l)return;let He=U(Ce),Xe=Y(Ce),be=Fe=>{B(Ct()?Fe.metaKey:Fe.ctrlKey);},xe=()=>{B(false);};return He.addEventListener("keydown",be),He.addEventListener("keyup",be),Xe.addEventListener("blur",xe),()=>{He.removeEventListener("keydown",be),He.removeEventListener("keyup",be),Xe.removeEventListener("blur",xe),xe();}},[l]),useImperativeHandle(R,()=>({startMention:()=>{d?.length&&(F.current?.querySelector("input[role='combobox']")||(W.exec("insertMentionInput"),G()));}})),useImperativeHandle(p,()=>({setCaretPosition:Ce=>{q.setCaretPosition(Ce);},focus:()=>{q.focus();}}));let ue=useMemo(()=>({items:d||[],containerRef:u,maxMentionableUsersSuggestions:m}),[d,u,m]),Ee=q.isEmpty;return jsx(Mg.Provider,{value:ue,children:jsxs(wS,{editor:q,children:[jsxs(mg,{className:_(yg,"BaselineUI-Editor-RichEditorToolbar"),"aria-controls":ce.id,ref:N,children:[jsxs(J,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsx(Ig,{markName:"bold",icon:BoldIcon,ariaLabel:v??I(yu.bold),isDisabled:l}),jsx(Ig,{markName:"italic",icon:ItalicIcon,ariaLabel:C??I(yu.italic),isDisabled:l}),jsx(Ig,{markName:"underline",icon:UnderlineIcon,ariaLabel:T??I(yu.underline),isDisabled:l})]}),jsx(ze,{orientation:"vertical",className:tp}),jsx(IS,{colorKey:"color","aria-label":P??I(yu.fontColor),isDisabled:l}),jsx(ze,{orientation:"vertical",className:tp}),jsx(IS,{colorKey:"backgroundColor","aria-label":k??I(yu.backgroundColor),isDisabled:l}),jsx(ze,{orientation:"vertical",className:tp}),jsx(E0,{isDisabled:l,addLinkLabel:w,editLinkLabel:E,removeLinkLabel:z,linkAnnotationLabel:A,linkCancelLabel:D,linkSaveLabel:O}),jsx(ze,{orientation:"vertical",className:tp}),jsx(me,{className:nu,icon:QuestionmarkCircleIcon,size:"sm","aria-label":S??I(yu.help),"data-testid":"editor-help-button",onPress:c})]}),jsx(ze,{variant:"secondary"}),jsxs("div",{style:{position:"relative"},children:[!!(i&&Ee)&&jsx("span",{"aria-hidden":true,"aria-disabled":true,"data-testid":"editor-placeholder",style:{position:"absolute",pointerEvents:"none",userSelect:"none",top:0,left:0,right:0},className:_(ep({isDisabled:l}),C6,"BaselineUI-Editor-RichEditorPlaceholder"),children:i}),jsx("div",{...ce,onClick:te,"data-mod-held":L?"":void 0,"aria-label":s,"aria-placeholder":i,spellCheck:n,style:o,className:_(ep({isDisabled:l}),fg({isInline:a}),"BaselineUI-Editor-RichEditorEditingArea")})]}),V!==null&&jsx(LS,{anchor:V.anchor,mentionLabel:h,onClose:()=>{H(null);}},V.id)]})})});OS.displayName="RichEditor";var yu=Se({bold:{defaultMessage:"Bold",id:"bui.editor.bold"},italic:{defaultMessage:"Italic",id:"bui.editor.italic"},underline:{defaultMessage:"Underline",id:"bui.editor.underline"},backgroundColor:{defaultMessage:"Background color",id:"bui.editor.backgroundColor"},fontColor:{defaultMessage:"Font color",id:"bui.editor.fontColor"},help:{defaultMessage:"Help",id:"bui.editor.help"}});var L0=qn.memo(qn.forwardRef(({className:e,style:t,"data-block-id":r,"data-block-class":o,enableRichText:n=false,onCancel:i,onSave:a,isInline:l=true,submitButtonIcon:s=ArrowUpCircleFilledIcon,submitButtonAriaLabel:u,cancelButtonAriaLabel:c,"aria-label":d,"aria-describedby":p,"aria-labelledby":m,"aria-details":f,editableContentAriaLabel:y="Editing Area",footerButtons:b,clearOnCancel:g,clearOnSave:x,mentionLabel:h,boldLabel:v,italicLabel:C,underlineLabel:T,fontColorLabel:P,backgroundColorLabel:k,helpLabel:S,closeLabel:w,actionLabel:E,shortcutLabel:z,toolbarFocusLabel:A,selectAllLabel:D,cutLabel:O,copyLabel:R,pasteLabel:N,undoLabel:F,redoLabel:I,openHelpDialogLabel:V,submitLabel:H,addLinkLabel:K,editLinkLabel:L,removeLinkLabel:B,linkAnnotationLabel:G,linkCancelLabel:q,linkSaveLabel:W,...X},ce)=>{let te=useRef(null),{formatMessage:ue}=fe(),Ee=useRef(null),Ce=useRef(null),He=useRef(null),Xe=!n&&X.variant==="minimal",be=useRef(null),[xe,Fe]=qn.useState(X.value||X.defaultValue),le=X.value!==void 0&&X.onChange!==void 0;n&&X.value!==void 0&&!X.onChange&&Ds("editor-rich-value-uncontrolled","Editor: `value` without `onChange` in rich text mode sets the initial content only. Use `defaultValue` for uncontrolled content, or add `onChange` to control the value.");let ie=X.value!==void 0&&(!n||le),we=X.value;qn.useEffect(()=>{ie&&we!==void 0&&Fe(we);},[ie,we]);let Ht=X.isDisabled||X.isSaveDisabled||!RR(xe||""),{fieldProps:Yr}=rr({"aria-label":d,"aria-labelledby":m,labelElementType:"div"});Xe&&!X.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let Zr=useCallback(()=>{Fe(""),n?te.current?.setValue("<p></p>",{emit:true}):Ce.current?.clear();},[n]),bt=useCallback(()=>{Ht||(a?.(n?te.current?.getValue()??"":Ee.current.value),x&&Zr());},[Zr,x,n,a,Ht]),Tt=jsx(me,{variant:"ghost","aria-label":u||ue(FS.save),icon:s,isDisabled:Ht,"data-testid":"editor-save-button",size:"md",excludeFromTabOrder:Xe,className:_({[E6]:Xe},"BaselineUI-Editor-Save"),onPress:bt,preventFocusOnPress:true}),[$t,ut]=qn.useState(false),{keyboardProps:Gi}=Ae({onKeyDown:Qt=>{(Qt.metaKey||Qt.ctrlKey)&&Qt.shiftKey&&Qt.key==="h"&&(Qt.preventDefault(),ut(true));}}),Xn=useCallback(Qt=>{Fe(Qt),X.onChange?.(Qt);},[X]);return jsxs("div",{...M(Yr,n?Gi:{}),role:"application",ref:se(He,ce),style:t,"data-block-id":r,"data-block-class":o,className:_(T6({isInline:l,isMinimal:Xe}),"BaselineUI-Editor",e),"aria-disabled":X.isDisabled,children:[Xe?jsxs(Fragment,{children:[l?jsx(Ys,{className:x6,name:X.avatarName||""}):null,jsxs("div",{className:w6({isInline:l}),children:[jsx(bg,{isMinimal:Xe,textBoxRef:Ee,ref:Ce,isInline:l,editableContentAriaLabel:y,...X,onChange:Xn,onSave:bt}),Tt]})]}):jsxs(Fragment,{children:[n?jsx(OS,{containerRef:He,ref:be,editorRef:te,isInline:l,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{ut(true);},mentionLabel:h,boldLabel:v,italicLabel:C,underlineLabel:T,fontColorLabel:P,backgroundColorLabel:k,helpLabel:S,addLinkLabel:K,editLinkLabel:L,removeLinkLabel:B,linkAnnotationLabel:G,linkCancelLabel:q,linkSaveLabel:W,...X,value:le?X.value:void 0,defaultValue:X.defaultValue??(le?void 0:X.value),onChange:Xn,onSave:bt}):jsxs(Fragment,{children:[!l&&jsx(ze,{variant:"secondary"}),jsx(bg,{onCancel:i,textBoxRef:Ee,ref:Ce,isInline:l,editableContentAriaLabel:y,...X,onChange:Qt=>{Fe(Qt),X.onChange?.(Qt);},onSave:bt})]}),jsx(ze,{variant:"secondary"}),jsxs("div",{className:_(yg,sprinkles({justifyContent:"space-between"}),"BaselineUI-Editor-Footer"),children:[jsxs(J,{paddingX:"sm",gap:"sm",display:"flex",children:[n&&X.mentionableUsers?jsx(me,{icon:AtIcon,size:"sm","aria-label":h??ue(FS.mention),"data-testid":"editor-mention-button",onPress:()=>be.current?.startMention(),preventFocusOnPress:true,className:"BaselineUI-Editor-Mention"}):null,b?.map(({type:Qt,props:Yn},nt)=>Qt==="action"?jsx(me,{...Yn,size:"sm",isDisabled:X.isDisabled||Yn.isDisabled},nt):jsx(qr,{...Yn,size:"sm",variant:"tertiary",isDisabled:X.isDisabled||Yn.isDisabled},nt))]}),jsxs(J,{children:[!!i&&jsx(me,{variant:"secondary",icon:XCircleFilledIcon,isDisabled:X.isDisabled,"data-testid":"editor-cancel-button",size:"md",onPress:()=>{i(),g&&Zr();},"aria-label":c||ue(FS.cancel),className:"BaselineUI-Editor-Cancel"}),Tt]})]})]}),jsx(O6,{isOpen:$t,onClose:()=>{ut(false);},toolbarFocusLabel:A,helpLabel:S,closeLabel:w,actionLabel:E,shortcutLabel:z,boldLabel:v,italicLabel:C,underlineLabel:T,selectAllLabel:D,cutLabel:O,copyLabel:R,pasteLabel:N,undoLabel:F,redoLabel:I,openHelpDialogLabel:V,submitLabel:H})]})}));L0.displayName="Editor";var FS=Se({cancel:{defaultMessage:"Cancel",id:"bui.editor.cancel"},save:{defaultMessage:"Save",id:"bui.editor.save"},mention:{defaultMessage:"Mention",id:"bui.editor.mention"}});var M0="_8kqf970 _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6z9 _1yep5z6vi _1yep5z6vj _1yep5z6vk _1yep5z617s _1yep5z6101";var O0=2,F0=qn.forwardRef(({className:e,style:t,hideForKeyboard:r,scrollRef:o,label:n,delay:i=1500,smoothScroll:a=true,"data-block-id":l,"data-block-class":s},u)=>{let c=qn.useRef(null),d=er(),[p,m]=qn.useState(false),f=useCallback(()=>{let S=o?.current||U(c.current).body;return Y(S).getComputedStyle(S).flexDirection==="column-reverse"?S.scrollTop+O0>=0:S.scrollTop+S.clientHeight+O0>=S.scrollHeight},[o]),[y,b]=qn.useState(f),{buttonProps:g,isPressed:x}=ft({onPress:()=>{let S=o?.current||U(c.current).body;S.scrollTo({top:S.scrollHeight,behavior:a?"smooth":"auto"});}},c),{focusProps:h,isFocused:v,isFocusVisible:C}=ne(),{hoverProps:T,isHovered:P}=ae({}),k=ve({"data-block-id":l,"data-block-class":s,"data-pressed":x,"data-focus-visible":C,"data-hovered":P,"data-focused":v});return useEffect(()=>{b(f());},[f]),useEffect(()=>{let S=o?.current||U(c.current).body,w="onscrollend"in Y(S),E=()=>{setTimeout(()=>{m(false),b(f());},i);},z=()=>{m(true),w||E();};return S.addEventListener("scroll",z),S.addEventListener("scrollend",E),()=>{S.removeEventListener("scroll",z),S.removeEventListener("scrollend",E);}},[o,i,f]),jsx(AnimatePresence,{initial:false,children:(!r||d!=="keyboard")&&!p&&!y?jsxs(motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...M(g,h,T,k),className:_(M0,Lb({isFocusVisible:C,variant:"high-contrast",isHovered:P}),Mb({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:t,ref:se(u,c),children:[jsx(ArrowDownCircleFilledIcon,{size:16,className:_d({variant:"high-contrast"})}),n]}):null})});F0.displayName="ScrollControlButton";function K0({ariaProps:e,fallbackLabelId:t,fallbackDescriptionId:r}){let o={...e};return t&&!o["aria-labelledby"]&&!o["aria-label"]&&(o["aria-labelledby"]=t),r&&!o["aria-describedby"]&&!o["aria-details"]&&(o["aria-describedby"]=r),o}var VS="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",V0=j({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oo _1yep5z6op _1yep5z6oq"},hasNoCloseBtn:{true:"_1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:true,hasNoCloseBtn:true},"_1yep5z61hr _1yep5z61hs _1yep5z61ht"]]}),B0="_1v0p2z10";var Ng=qn.forwardRef(({className:e,style:t,"data-block-id":r,"data-block-class":o,message:n,title:i,primaryActionLabel:a,primaryActionClassName:l,cancelLabel:s,cancelClassName:u,contentClassName:c,closeButtonClassName:d,closeLabel:p,buttonsClassName:m,textInputProps:f,icon:y,iconColor:b,showCloseButton:g=true,onPrimaryAction:x,onCancel:h,onClose:v,autoFocusButton:C,isPrimaryActionDisabled:T,...P},k)=>{let S=ee(),w=ee(),{formatMessage:E}=fe(),z=i&&jsx(Je,{type:"title",size:"sm",elementType:"h3",id:S,children:i}),A=K0({ariaProps:P,fallbackLabelId:i?S:void 0,fallbackDescriptionId:n?w:void 0});return jsxs(Ar,{...A,className:_("BaselineUI-AlertDialog",e),style:t,"data-block-id":r,"data-block-class":o,size:"sm",variant:"primary",role:"alertdialog",ref:k,children:[jsxs("div",{className:V0({hasTitleAndIcon:!!(y&&i),hasNoCloseBtn:!g}),children:[jsxs(J,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[y?jsx(y,{style:{color:b},size:24}):null,!y&&z,g?jsx(me,{icon:XIcon,variant:"secondary",size:"md",className:d,"aria-label":p??E(rJ.close),onPress:v??h}):null]}),y?z:null]}),n?jsx(J,{elementType:"section",className:_(B0,c),paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",id:w,children:n}):null,f?jsx(J,{paddingX:"lg",paddingBottom:"lg",children:jsx(_i,{...f})}):null,s||a?jsxs(Fragment,{children:[jsx(ze,{}),jsxs(J,{padding:"lg",display:"flex",gap:"xl",className:m,children:[s?jsx(Me,{variant:"secondary",className:_(VS,u),label:s,onPress:h,autoFocus:C==="cancel"}):null,a?jsx(Me,{className:_(VS,l),label:a,onPress:x,autoFocus:C==="primary",isDisabled:T}):null]})]}):null]})});Ng.displayName="AlertDialog";var rJ=Se({close:{id:"bui.alertDialog.close",defaultMessage:"Close"}});var H0="_1t55bp71",$0="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",j0="_1t55bp70";var lJ=nJ(),G0=qn.forwardRef(({className:e,style:t,children:r,"data-block-id":o,"data-block-class":n,showCaret:i},a)=>{let l=useMemo(()=>{let s=r;return (!r||Array.isArray(r)&&r.length===0)&&(s=""),lJ.render(s)},[r]);return jsx("div",{className:_($0,j0,{[H0]:i},"BaselineUI-Markdown",e),"data-block-id":o,"data-block-class":n,style:t,ref:a,dangerouslySetInnerHTML:{__html:l}})});G0.displayName="Markdown";function q0(e,t){let{playingLabel:r,pausedLabel:o}=t??{},{formatMessage:n,locale:i}=fe(),[a,l]=qn.useState(false),[s,u]=qn.useState(0),[c,d]=qn.useState(0),[p,m]=qn.useState(false);useEffect(()=>{if(!e.current)return;let b=e.current,g=()=>{l(false),u(0);},x=()=>{p||u(b.currentTime*100/b.duration);},h=()=>{d(b.duration);};return b.addEventListener("ended",g),b.addEventListener("timeupdate",x),b.addEventListener("loadedmetadata",h),()=>{b.removeEventListener("ended",g),b.removeEventListener("timeupdate",x),b.removeEventListener("loadedmetadata",h);}},[p,e]);let f=useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),l(true),at(r??n(W0.playing),"polite")):(e.current.pause(),l(false),at(o??n(W0.paused),"polite"))))();},[n,o,r,e]),y=useCallback(b=>{e.current&&(e.current.currentTime=b*e.current.duration/100,at(cJ(e.current.currentTime,i.locale),"assertive"));},[i.locale,e]);return {isPlaying:a,progress:s,duration:c,togglePlay:f,seek:y,setProgress:u,formattedCurrentTime:e.current?.currentTime?BS(e.current?.currentTime):"00:00",formattedDuration:c?BS(c):"00:00",setIsSliderDragging:m}}var W0=Se({playing:{id:"bui.useMedia.playing",defaultMessage:"Playing"},paused:{id:"bui.useMedia.paused",defaultMessage:"Paused"}});function cJ(e,t){if(!("DurationFormat"in Intl))return BS(e);let r=Math.floor(e/3600),o=Math.floor(e%3600/60),n=e%60,i={...r&&{hours:r},...o&&{minutes:o},seconds:Math.floor(n)};return new Intl.DurationFormat(t,{style:"long"}).format(i)}function BS(e){let t=Math.floor(e%3600/60),r=Math.floor(e%60);return [t,r].map(o=>o.toString().padStart(2,"0")).join(":")}var X0="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",Y0="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",Z0="rta2n90";var eO=qn.forwardRef(({className:e,style:t,size:r="lg",sources:o,playLabel:n,pauseLabel:i,audioTimelineLabel:a,playingLabel:l,pausedLabel:s,"data-block-id":u,"data-block-class":c,...d},p)=>{let m=qn.useRef(null),{isPlaying:f,progress:y,duration:b,togglePlay:g,seek:x,formattedDuration:h,formattedCurrentTime:v,setProgress:C,setIsSliderDragging:T}=q0(m,{playingLabel:l,pausedLabel:s}),{formatMessage:P}=fe(),k=ve({"data-block-id":u,"data-block-class":c,"data-state":f?"playing":"paused","data-loaded":b>0});return jsxs("div",{...k,...d,className:_(X0,"BaselineUI-AudioPlayer",e),role:"group",style:t,ref:p,children:[jsx(Ne,{children:jsx("audio",{ref:m,children:o.map(({url:S,type:w})=>jsx("source",{src:S,type:w},S))})}),jsx(qr,{icon:f?PauseIcon:PlayIcon,variant:"toolbar",isSelected:f,size:r,"aria-label":f?i??P(HS.pause):n??P(HS.play),style:{borderRadius:"50%"},onPress:g}),jsxs("div",{className:Y0,children:[jsx("span",{"aria-hidden":true,children:v}),jsx(Ms,{"aria-label":a??P(HS.audioTimeline),value:y,minValue:0,maxValue:100,className:Z0,onChange:S=>{C(S),T(true);},onChangeEnd:S=>{x(S),T(false);}}),jsx("span",{"aria-hidden":true,children:h})]})]})});eO.displayName="AudioPlayer";var HS=Se({play:{id:"bui.audioPlayer.play",defaultMessage:"Play"},pause:{id:"bui.audioPlayer.pause",defaultMessage:"Pause"},audioTimeline:{id:"bui.audioPlayer.audioTimeline",defaultMessage:"Audio timeline"}});var tO=e=>Ba({getItems:(t,r)=>r.map(o=>({"text/plain":o.label})),renderDropIndicator(t){return jsx(ko,{target:t,className:({isDropTarget:r})=>_(Py({isDropTarget:r}),"BaselineUI-DropIndicator")})},...e});var rO="_1w920rnf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",oO=j({defaultClassName:"_1w920rng",variantClassNames:{isVirtualized:{true:"_1w920rnh",false:"_1w920rni"}},defaultVariants:{},compoundVariants:[]}),nO="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",iO=j({defaultClassName:"_1w920rnc",variantClassNames:{isLoading:{false:"_1w920rnd"}},defaultVariants:{},compoundVariants:[]}),aO="_1w920rnb _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",lO="_1w920rn0 _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",Kg=j({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{isFocusVisible:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isLoading:{true:"_1yep5z616g _1yep5z616h _1yep5z616i"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rn6 _1yep5z6lt _1yep5z6lr _1yep5z6hx"]]}),sO=j({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ar _1yep5z6as _1yep5z6at _1yep5z6bf _1yep5z6bg _1yep5z6bh _1yep5z6c3 _1yep5z6c4 _1yep5z6c5 _1yep5z6cr _1yep5z6cs _1yep5z6ct _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),uO="_1w920rne";var Vg=({items:e,containerClassName:t,previewClassName:r,itemDataAttribute:o,showCount:n=false,renderFallback:i})=>{let{length:a}=e,l=qn.useRef(null),[s,u]=qn.useState(false),c=e.at(-1);return useLayoutEffect(()=>{if(!l.current)return;let d=l.current.closest(t)?.querySelector(`[${o}='${c?.key}']`)?.cloneNode(true);if(!d){u(true);return}return u(false),l.current.prepend(d),()=>{d.remove();}},[c?.key,t,o]),jsxs("div",{className:r,ref:l,children:[s&&c?i?.(c):null,n&&a>1?jsx(J,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:uO,children:a}):null]})};function Bg(e,t){return e.find(r=>r.id===t)}function dO(e,t,r){let o=[...e],n=o.filter(l=>r.has(l.id)),i=o.filter(l=>!r.has(l.id)),a=i.findIndex(l=>l.id===t);return i.flatMap((l,s)=>s===a?[...n,l]:l)}function pO(e,t,r){let o=[...e],n=o.filter(l=>r.has(l.id)),i=o.filter(l=>!r.has(l.id)),a=i.findIndex(l=>l.id===t);return i.flatMap((l,s)=>s===a?[l,...n]:l)}function $S(e){return e.map(t=>({id:t.id,label:t.label,data:{src:t.src,alt:t.alt}}))}function yp(e){return e.map(t=>({id:t.id,label:t.label,src:t.data?.src,alt:t.data?.alt}))}var bp={src:"src",alt:"alt"},bu={sm:102,md:170};function mO(e,t){let r=Bg(e,t);return {[bp.src]:r?.data?.src||"",[bp.alt]:r?.data?.alt||"",key:String(t)}}function fO(e){let t=e[bp.src];return t?{src:String(t),alt:e[bp.alt]?String(e[bp.alt]):""}:null}function yO({fit:e,imageDimensions:t,item:r,isSelected:o}){let n={display:"block",objectFit:e},i=typeof t=="function"?r?t(r,{isSelected:o}):void 0:t;if(!i)return n;let a=typeof i.width=="string"?bu[i.width]:i.width;return n.width=a,n.aspectRatio="height"in i?`${a} / ${i.height}`:i.aspectRatio.toString(),n}function bO(){let[e,t]=useState(false);return useEffect(()=>{let r=window.matchMedia("(pointer: coarse)");t(r.matches);let o=n=>{t(n.matches);};return r.addEventListener("change",o),()=>{r.removeEventListener("change",o);}},[]),e}var hO=qn.forwardRef(({className:e,children:t,style:r,isDisabled:o,onTruncatedChange:n,onHoverChange:i},a)=>{let l=useRef(null),{buttonProps:s}=ft({elementType:"span",isDisabled:o},l);useLayoutEffect(()=>{l.current&&n?.(l.current.scrollWidth>l.current.clientWidth);},[t,n]);let{hoverProps:u}=ae({isDisabled:o,onHoverChange:i});return jsx(si,{elementType:"span",slot:"label",...M(s,u),className:_(e,"BaselineUI-AdaptiveText"),tabIndex:-1,ref:se(l,a),style:r,role:void 0,children:t})});hO.displayName="Label";var US=qn.memo(qn.forwardRef(({children:e,isOpen:t,isDisabled:r,...o},n)=>{let[i,a]=useState(false),[l,s]=useState(false),u=bO(),c=r||!l||u;return jsx(ot,{text:e,variant:"inverse",includeArrow:false,size:"sm",placement:"bottom start",isOpen:(i||t)&&l,isDisabled:c,children:jsx(hO,{...o,isDisabled:c,onTruncatedChange:s,onHoverChange:a,ref:n,children:e})})}));US.displayName="AdaptiveText";var kJ=({fit:e,item:t,deleteElement:r,loadingLabel:o})=>{let{formatMessage:n}=fe(),{isLoading:i,imgProps:a}=Ny({src:t.data?.src,alt:t.data?.alt||""});return jsxs("div",{className:aO,children:[i?jsx(mn,{"aria-label":o??n(gp.loading)}):jsx("div",{role:"img",className:iO({isLoading:i}),"aria-label":a.alt||"",style:{backgroundImage:`url(${a.src})`,backgroundSize:e}}),r]})},vO=({item:e,options:{isFocusVisible:t,isSelected:r,isFocused:o,isDisabled:n,isPressed:i},fit:a="contain",onDelete:l,className:s,imageClassName:u,imageLabelClassName:c,imageDimensions:d,style:p,layoutTransition:m=true,deleteLabel:f,loadingLabel:y,renderImage:b=(g,{deleteElement:x})=>jsx(kJ,{item:g,deleteElement:x,fit:a,loadingLabel:y})})=>{let{formatMessage:g}=fe(),x=l?jsx("div",{className:rO,children:jsx(me,{"aria-label":f??g(gp.delete),size:"xs",icon:XIcon$1,onPress:()=>{l(e.id);},UNSAFE_isVisuallyInteractiveOnly:true})}):null,h=yp([e])[0],v=useCallback(E=>{let z={},A=typeof E=="function"?E(h,{isSelected:r}):E;return A&&(z.width=typeof A.width=="string"?bu[A.width]:A.width,z.aspectRatio="height"in A?`${z.width} / ${A.height}`:A?.aspectRatio?.toString()),z},[h,r]),C=useMemo(()=>({isFocusVisible:t,isSelected:r,isFocused:o,isDisabled:n,isPressed:i}),[t,r,o,n,i]),P=!useReducedMotion()&&(typeof m=="boolean"?m:true),k=typeof m=="object"?m:void 0,S=v(d),w=P?motion.div:"div";return jsxs(w,{...P?{layout:"position",initial:false,transition:k}:{},className:_(nO,Ha(s,h,C)),style:Sy(p,h,C),children:[jsx(J,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsx("div",{className:_(Kg({isFocusVisible:t,isSelected:r,isLoading:true}),Ha(u,h,C)),style:S,"data-image-key":e.id,children:b(e,{deleteElement:x??void 0,onDelete:l})})}),jsx(US,{className:_(sO({isFocusVisible:t,isSelected:r}),c),style:{maxWidth:S.width},isOpen:t,children:e.label})]})};function RJ(e,t){return e==="all"?true:"has"in e&&typeof e.has=="function"?e.has(t):[...e].includes(t)}var PO=qn.forwardRef(({className:e,style:t,fit:r="cover",onReorder:o,"data-block-id":n,"data-block-class":i,onDelete:a,imageWidth:l=bu.sm,aspectRatio:s=3/4,items:u,defaultItems:c=[],onKeyDown:d,imageContainerClassName:p,imageClassName:m,labelClassName:f,onListChange:y,renderImage:b,layoutTransition:g,imageDimensions:x,imageContainerStyle:h,deleteConfirmationTitle:v="Are you sure you want to delete this item?",deleteLabel:C,cancelLabel:T,loadingLabel:P,...k},S)=>{let{isVirtualized:w}=useContext(Re),E=pe(S),[z,A]=useState([]),{formatMessage:D}=fe();useEffect(()=>{(s||l)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[l,s]);let O=qn.useMemo(()=>x??{width:l,aspectRatio:s},[x,l,s]),[R,N]=ye(k.selectedKeys,k.defaultSelectedKeys??[],k.onSelectionChange),[F,I]=ye(u?$S(u):void 0,$S(c),y?B=>{y?.(yp(B));}:void 0),V=useCallback(B=>{let G=B.target.key,q=B.keys;if(B.target.dropPosition==="before"){let W=dO(F,G,q);I(W);}else if(B.target.dropPosition==="after"){let W=pO(F,G,q);I(W);}o?.(B);},[F,o,I]),{dragAndDropHooks:H}=tO({onReorder:V,isDisabled:!o,renderDragPreview:B=>jsx(Vg,{items:B,containerClassName:".BaselineUI-ImageGallery",previewClassName:Kg(),itemDataAttribute:"data-image-key",showCount:true,renderFallback:G=>{let q=fO(G);if(!q)return null;let W=Bg(F,G.key),X=W?yp([W])[0]:void 0;return jsx("img",{...q,style:yO({fit:r,imageDimensions:O,item:X,isSelected:RJ(R,G.key)})})}}),getItems:B=>[...B].map(G=>mO(F,G)),renderDropIndicator(B){return jsx(ko,{target:B,className:_(oO({isVirtualized:!!w}),"BaselineUI-DropIndicator")})}}),K=useCallback(()=>{a&&z.length&&(I(F.filter(B=>!z.includes(B.id))),a(z),A([]));},[z,F,a,I]),L=useCallback((B,G)=>{let q={id:B.id,label:B.label,src:B.data?.src,alt:B.data?.alt};return jsx(vO,{item:B,options:G,fit:r,onDelete:a?W=>{A([W]);}:void 0,renderImage:b,className:Ha(p,q,G),imageClassName:m,imageLabelClassName:f,imageDimensions:O,style:h,layoutTransition:g,deleteLabel:C,loadingLabel:P},B.id)},[r,a,b,p,m,f,O,h,g,C,P]);return useEffect(()=>{let B=E.current;if(!B)return;let G=q=>{if(d?.(q),q.key==="Backspace"||q.key==="Delete"){if(!a)return;if([...R].length)A([...R]);else {let X=q.target.dataset.key;A([X]);}}};return B.addEventListener("keydown",G),()=>{B.removeEventListener("keydown",G);}},[E,a,d,R]),jsxs(Fragment,{children:[jsx(dn,{...k,ref:E,style:t,className:_(lO,"BaselineUI-ImageGallery",e),"data-block-id":n,"data-block-class":i,selectedKeys:R,items:F,dragAndDropHooks:H,layout:"grid",orientation:"vertical",renderOption:L,onSelectionChange:N,optionClassName:o&&!w?sprinkles({marginLeft:"sm"}):void 0}),jsx(un,{isOpen:!![...z].length,onOpenChange:B=>{B||A([]);},children:jsx(cn,{isDismissable:true,children:jsx(Ng,{showCloseButton:false,title:typeof v=="function"?v(R==="all"?"all":new Set(R)):v,primaryActionLabel:C??D(gp.delete),cancelLabel:T??D(gp.cancel),onCancel:()=>{A([]);},onPrimaryAction:K,autoFocusButton:"cancel"})})})]})});PO.displayName="ImageGallery";var gp=Se({delete:{id:"bui.imageGallery.delete",defaultMessage:"Delete"},cancel:{id:"bui.imageGallery.cancel",defaultMessage:"Cancel"},loading:{id:"bui.imageGallery.loading",defaultMessage:"Loading"}});var SO="_1sexph00",DO="_1sexph02",kO="_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si";function EO(e,t){return typeof e=="function"?e(t):e}var RO=qn.forwardRef(({className:e,style:t,items:r,"data-block-id":o,"data-block-class":n,hideLabel:i,size:a="md",isDisabled:l,excludeFromTabOrder:s,onButtonPress:u,onButtonAction:c,isSelected:d,defaultSelected:p,onButtonSelectionChange:m,collection:f,moreAriaLabel:y,optionStyle:b,optionClassName:g,triggerClassName:x,triggerStyle:h,tooltipProps:v,buttonBehaviour:C="toggle",...T},P)=>{let{formatMessage:k}=fe(),S=Kc({...T,collection:f,defaultValue:T.defaultSelectedKey||r?.[0]?.id,children:void 0,selectionMode:"single",validationState:T.validationState==="error"?"invalid":"valid"}),w=useMemo(()=>typeof C=="function"?C(S.value):C,[C,S.value]),[E,z]=ye(d,!!p,H=>{m?.({isSelected:H,selectedKey:S.value});}),{hoverProps:A,isHovered:D}=ae({isDisabled:l}),O=useMemo(()=>{let H=S.collection.getItem(S.value);if(!H)return null;let K=H?.textValue||H?.["aria-label"],L=H.value;he(L,"ButtonSelect: selectedItem.value is not populated. Ensure ListOption passes value={item} to AriaOption.");let B=L?.icon,G=w==="toggle",q=l||S.disabledKeys.has(S.value),W={size:a,...G&&{isSelected:E},onPress:X=>{G&&z(!E),u?.(X),c?.({isSelected:G?!E:false,selectedKey:S.value,buttonBehaviour:w});},isDisabled:q,excludeFromTabOrder:s,className:_(typeof g=="function"?g(L,{isButton:true,isSelected:E}):g,"BaselineUI-ButtonSelect-Button"),style:typeof b=="function"?b(L,{isButton:true,isSelected:E}):b};return i&&B?jsx(ot,{variant:"inverse",size:"sm",includeArrow:false,text:K,placement:"bottom start",offset:4,...EO(v,"button"),children:w==="action"?jsx(me,{icon:B,"aria-label":K,variant:"toolbar",...W}):jsx(qr,{icon:B,"aria-label":K,variant:"toolbar",...W})}):w==="toggle"?jsx(kb,{iconStart:B,label:K,variant:"toolbar",...W}):jsx(Me,{label:K,variant:"toolbar",...W})},[S.collection,S.value,S.disabledKeys,w,l,a,E,s,g,b,i,u,c,z,v]),R=T["aria-label"],N=useCallback(({buttonProps:H,ref:K})=>{delete H["aria-labelledby"];let L=y||(R?k(zO.moreWithLabel,{label:R}):k(zO.more));return jsx(ot,{variant:"inverse",size:"sm",includeArrow:false,text:L,placement:"bottom start",offset:4,...EO(v,"select"),children:jsx(_r,{...H,children:jsx(me,{"aria-label":L,ref:K,icon:CaretDownIcon,variant:"toolbar",size:a,className:({isFocusVisible:B})=>_(Db({isSelected:E&&w==="toggle",isFocusVisible:B}),kO,x,"BaselineUI-ButtonSelect-Trigger"),style:h,isDisabled:l,excludeFromTabOrder:s})})})},[R,w,s,k,E,l,y,a,v,x,h]),F=ve({"data-block-id":o,"data-block-class":n,"data-hovered":D,"data-selected":E,"data-disabled":l,"data-expanded":S.isOpen,"data-button-behaviour":w}),I=pe(P),V=useMemo(()=>({state:S,popoverAnchorRef:I}),[S,I]);return jsx(Vb.Provider,{value:V,children:jsxs(J,{...A,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:_(SO,"BaselineUI-ButtonSelect",e),"aria-label":T["aria-label"],"aria-labelledby":T["aria-labelledby"],"aria-describedby":T["aria-describedby"],"aria-details":T["aria-details"],style:t,ref:I,...F,children:[O,jsx(yo,{isDisabled:l,placement:"bottom start",items:r,...T,variant:"ghost",renderTrigger:N,className:_(DO,"BaselineUI-ButtonSelect-Select")})]})})});RO.displayName="ButtonSelectCore";var IO=qn.forwardRef(({onPress:e,optionStyle:t,optionClassName:r,onSelectionChange:o,onOptionPress:n,...i},a)=>{let l=useCallback((p,m)=>{n?.(p,m),i.selectedKey===m&&o?.(m);},[n,o,i.selectedKey]),s=useCallback(p=>{p&&o?.(p);},[o]),u=useCallback((p,m)=>{(p.key==="Enter"||p.key===" ")&&i.selectedKey===m&&o?.(m);},[o,i.selectedKey]),c=useMemo(()=>({onPress:l,onKeyDown:u}),[l,u]),d=useMemo(()=>({renderOption:(p,m)=>jsx(zd,{...m,item:p}),optionStyle:(p,m)=>typeof t=="function"?t(p,{isButton:false,isSelected:m.isSelected}):t,optionClassName:(p,m)=>typeof r=="function"?r(p,{isButton:false,isSelected:m.isSelected}):r}),[t,r]);return jsx(vb.Provider,{value:c,children:jsx($s,{items:i.items,listBoxProps:d,children:p=>jsx(RO,{collection:p,onButtonPress:e,onSelectionChange:s,optionStyle:t,optionClassName:r,...i,ref:a})})})});IO.displayName="ButtonSelect";var zO=Se({more:{id:"bui.buttonSelect.more",defaultMessage:"More"},moreWithLabel:{id:"bui.buttonSelect.moreWithLabel",defaultMessage:"More {label}"}});var _O=j({defaultClassName:"_18v88n10 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),LO=j({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6111"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),MO=j({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),AO=j({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612q",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61u7 _1yep5z61u5 _1yep5z61pa"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_18v88n1n"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61pb"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61pb"],[{isReadOnly:true,variant:"primary",isFocused:false},"_18v88n1o"]]}),OO=j({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),NO=j({defaultClassName:"_18v88n19 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),FO="_18v88n1y",KO=j({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isHovered:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isOpen:{true:"_1yep5z614f _1yep5z617t"}},defaultVariants:{},compoundVariants:[]});function qS(e,t,r,o){if(t!=="number"||e===void 0||e==="")return e;let n=Number.parseFloat(e);if(Number.isNaN(n))return e;let i=n;return r!==void 0&&(i=Math.max(i,r)),o!==void 0&&(i=Math.min(i,o)),i===n?e:String(i)}function HO(e,t){return e.selectedKey==null||t!==e.selectedItem?.textValue}function $O({allowsCustomValue:e,onValueChange:t,inputType:r,minValue:o,maxValue:n},i,a,l){let[s,u]=useState(null),c=useRef(false),d=useRef(null),p=!HO(i,i.inputValue),m=(g,x)=>{d.current=x==null?null:{key:x,value:g},t?.({value:g,key:x});},f=g=>{!c.current||!HO(i,g)||(m(g,null),c.current=false);};useEffect(()=>{if(!t)return;let g=a.current,x=h=>{u($(h));};return g?.addEventListener("focusin",x),()=>{g?.removeEventListener("focusin",x);}},[t,a,i.selectedKey]),useGranularEffect(()=>{if(i.selectedKey==null||i.selectedItem==null){i.selectionManager.isEmpty&&(d.current=null);return}let g=i.selectedKey,x=i.selectedItem.textValue,h=d.current?.key!==g;!h&&(d.current?.value===x||c.current&&!p)||(m(x,g),h&&(c.current=false));},[i.selectedKey,i.selectedItem?.textValue,p],[t,i.selectedItem]);let y=()=>{s===l.current&&e&&c.current&&(c.current=false);};useEffect(()=>{if(!t)return;let g=l.current,x=()=>{c.current=true;};return g?.addEventListener("input",x),()=>{g?.removeEventListener("input",x);}},[l,t]);let{keyboardProps:b}=Ae({isDisabled:!t,onKeyDown:g=>{if(e&&g.key==="Enter"&&c.current){let x=qS(l.current?.value,r,o,n);f(x??""),c.current=false;}else g.key==="Escape"&&(i.selectedKey!=null&&(c.current=false),i.close());g.continuePropagation();}});return {inputProps:b,commitCustomValue:f,disarmPendingEdit:y}}var jO=qn.forwardRef(({renderOption:e,optionStyle:t,optionClassName:r,...o},n)=>jsx($s,{items:o.items,listBoxProps:{renderOption:e,optionStyle:t,optionClassName:r},children:i=>jsx(GO,{...o,collection:i,ref:n})}));jO.displayName="ComboBox";var GO=qn.forwardRef(({className:e,style:t,inputStyle:r,inputClassName:o,"data-block-id":n,"data-block-class":i,label:a,items:l,isInvalid:s=false,labelPosition:u="top",validationState:c="valid",variant:d="primary",toggleLabel:p,showIcon:m=true,filter:f,minValue:y,maxValue:b,inputType:g="text",onInputSubmit:x,onValueChange:h,tooltip:v,collection:C,onTriggerPress:T,...P},k)=>{let S=pe(k),{contains:w}=hi({sensitivity:"base"}),E=xc({...P,defaultFilter:f||w,defaultItems:l,collection:C,children:void 0,validationState:s?"invalid":"valid"}),z=qn.useRef(null),A=qn.useRef(null),D=qn.useRef(null),O=qn.useRef(null),R=qn.useRef(null),{inputProps:N,commitCustomValue:F,disarmPendingEdit:I}=$O({onValueChange:h,allowsCustomValue:P.allowsCustomValue,inputType:g,minValue:y,maxValue:b},E,S,A),V=bt=>{let Tt=qS(bt,g,y,b)??"";return Tt!==bt&&!x&&!h&&Ds("bui.comboBox.clampNoCallback","ComboBox: minValue/maxValue clamped a value but no onInputSubmit or onValueChange callback is provided. The constraint cannot be enforced without a callback to notify the consumer."),x?.(Tt),Tt},H=()=>{let bt=A.current?.value??"";!P.allowsCustomValue||!bt||F(V(bt));};wo({ref:A,onInteractOutside:bt=>{let Tt=$(bt);if(Z(S.current,Tt)||Z(O.current,Tt))return;let $t=A.current;if(!$t||ed($t)!==$t){I();return}E.isOpen&&(H(),E.close());}});let{buttonProps:K,inputProps:L,listBoxProps:B,labelProps:G,errorMessageProps:q,descriptionProps:W,validationErrors:X}=hc({...P,onBlur:Ye(P.onBlur,H),inputRef:A,defaultItems:l,buttonRef:z,listBoxRef:D,popoverRef:O,validationState:c==="error"?"invalid":"valid"},E),ce=P.errorMessage||X.join(" "),te=br({...P,errorMessage:ce,descriptionProps:W,errorMessageProps:q,labelPosition:u});ce&&(c="error");let{hoverProps:ue,isHovered:Ee}=ae({isDisabled:P.isDisabled}),{isFocused:Ce,focusProps:He,isFocusVisible:Xe}=ne(),be=Ii({isReadOnly:P.isReadOnly,validationState:c}),xe=ve({"data-read-only":P.isReadOnly,"data-disabled":P.isDisabled,"data-validation-state":c,"data-focused":Ce,"data-focus-visible":Xe}),{labelProps:Fe,fieldProps:le}=rr({label:a,"aria-label":P["aria-label"],"aria-labelledby":P["aria-labelledby"],"aria-describedby":P["aria-describedby"],"aria-details":P["aria-details"]}),{keyboardProps:ie}=Ae({onKeyDown:bt=>{P.allowsCustomValue&&bt.key==="Enter"&&V(A.current?.value??"");}}),{tooltipProps:we}=mr({tooltip:v,label:P["aria-label"]}),{pressProps:Ht}=Oe({onPress:T}),Yr=p?.trim()||void 0,Zr=bt=>{let{triggerProps:Tt,triggerRef:$t}=bt??{};return jsxs("div",{className:_(_O({labelPosition:u}),e,"BaselineUI-ComboBox"),"data-block-id":n,"data-block-class":i,style:t,ref:S,children:[a||u==="start"&&te?jsxs("div",{className:NO({labelPosition:u,hasMessage:!!te}),children:[jsx("label",{...M(G,Fe),className:OO({isDisabled:P.isDisabled}),children:a}),u==="start"&&te]}):null,jsxs("div",{...ue,className:AO({validationState:c,isHovered:Ee,isFocused:Ce,variant:d,isReadOnly:!!P.isReadOnly,isDisabled:!!P.isDisabled}),ref:R,children:[jsx("input",{...M(Ht,Tt,L,N,He,xe,le,ie,g==="number"?{type:"number",min:y,max:b,onKeyDown:ut=>{(ut.key==="ArrowUp"||ut.key==="ArrowDown")&&ut.preventDefault();}}:null),id:P.id,ref:se($t,A),className:_(LO({isDisabled:P.isDisabled,labelPosition:u}),"BaselineUI-ComboBox-Input",o),style:r}),be&&m?jsx(be,{className:MO({validationState:c,isReadOnly:P.isReadOnly}),size:16}):null,jsx(Me,{...K,onPressStart:ut=>{K.onPressStart?.(ut),T?.(ut);},ref:z,"data-testid":"combobox-toggle-button",variant:"popover",label:null,"aria-label":Yr??K["aria-label"],"aria-labelledby":Yr?void 0:K["aria-labelledby"],className:KO({isFocusVisible:!P.isDisabled&&!P.isReadOnly&&Xe,isHovered:!P.isDisabled&&!P.isReadOnly&&Ee,isOpen:E.isOpen})})]}),u==="top"&&te]})};return jsxs(Fragment,{children:[we?jsx(ot,{...we,children:Zr}):Zr(),jsx(Et,{ref:O,triggerRef:R,state:E,isNonModal:true,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsx(so.Provider,{value:E,children:jsx(On.Provider,{value:useMemo(()=>({...B,ref:D}),[B]),children:jsx(dn,{selectionMode:"single",className:_(js,FO,"BaselineUI-ComboBox-ListBox")})})})})]})});GO.displayName="ComboBoxInner";var UO=j({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var YS=qn.forwardRef(({enableReorder:e,...t},r)=>e?jsx(WO,{ref:r,...t}):jsx(ZS,{ref:r,...t}));YS.displayName="GridListItem";var ZS=qn.forwardRef(({item:e,state:t,dropState:r,renderGridItem:o,dragHandleProps:n},i)=>{let a=pe(i),l=Ma({node:e},t,a),s=t.selectionManager.selectionMode!=="none"&&t.selectionManager.selectionBehavior==="toggle",{checkboxProps:u}=is({key:e.key},t),c={...l,checkBoxProps:s?u:void 0,dragHandleProps:n};return jsxs("div",{"data-grid-list-item-key":e.key,children:[r?jsx(zs,{target:{type:"item",key:e.key,dropPosition:"before"},dropState:r}):null,o?o(e,c,a):null,r&&t.collection.getKeyAfter(e.key)==null?jsx(zs,{target:{type:"item",key:e.key,dropPosition:"after"},dropState:r}):null]},e.key)});ZS.displayName="BaseGridListItem";var WO=qn.forwardRef(({dragState:e,item:t,...r},o)=>{let n=pe(o),i=Ci({key:t.key,hasDragButton:true},e,n);return jsx(ZS,{item:t,dragHandleProps:i,ref:n,...r})});WO.displayName="DraggableGridListItem";var VJ=e=>{e.key==="Enter"||e.key==="Escape"||e.stopPropagation();},XO=qn.forwardRef(({className:e,style:t,isEditing:r=false,"data-block-id":o,"data-block-class":n,gridListHandle:i,onReorder:a,enableReorder:l=false,layout:s="stack",orientation:u="vertical",renderGridItem:c,...d},p)=>{let m=Di(),f=Ot({...d,children:m}),y=qn.useRef(null),b=pe(p),{gridProps:g}=La(d,f,b);Cy({handle:i,type:"gridlist"},f,b);let{collectionProps:x,dragState:h,dropState:v}=Ty({...d,onReorder:a,enableReorder:l,layout:s,orientation:u,preview:y,getItems:P=>[...P].map(k=>{let S=f.collection.getItem(k);return he(S,"Expected item to be defined."),{key:S.key.toString()}})},f,b),C=r?VJ:g.onKeyDownCapture,T={state:f,dragState:h,dropState:v,enableReorder:l,renderGridItem:c};return jsxs("ul",{...M(g,x),className:_("BaselineUI-GridList",e),"data-block-id":o,"data-block-class":n,style:t,ref:b,"aria-rowcount":f.collection.size,onKeyDownCapture:C,children:[[...f.collection].map(P=>jsx(YS,{item:P,...T},P.key)),l?jsx(Ti,{ref:y,children:P=>jsx(Vg,{items:P,containerClassName:".BaselineUI-GridList",previewClassName:UO(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});XO.displayName="GridList";var $J={none:"toolbar",single:"radiogroup",multiple:"toolbar"};function jg(e,t,r){let{isDisabled:o,orientation:n="horizontal"}=e,[i,a]=useState(false);re(()=>{a(!!(r.current&&r.current.parentElement?.closest('[role="toolbar"]')));},[r]),[...t.collection.getKeys()].some(m=>!t.disabledKeys.has(m))||(o=true);let{direction:s}=Q(),u=mi(r),c=s==="rtl"&&n==="horizontal",d=m=>{if(Z(m.currentTarget,$(m)))switch(m.key){case "ArrowRight":case "ArrowDown":m.preventDefault(),m.stopPropagation(),m.key==="ArrowRight"&&c?u.focusPrevious({wrap:true}):u.focusNext({wrap:true});break;case "ArrowLeft":case "ArrowUp":m.preventDefault(),m.stopPropagation(),m.key==="ArrowLeft"&&c?u.focusNext({wrap:true}):u.focusPrevious({wrap:true});break}},p=$J[t.selectionManager.selectionMode];return i&&p==="toolbar"&&(p="group"),{actionGroupProps:{...oe(e,{labelable:true}),role:p,"aria-orientation":p==="toolbar"?n:void 0,"aria-disabled":o,onKeyDown:d}}}var GJ={none:void 0,single:"radio",multiple:"checkbox"};function Gg(e,t,r){let o=t.selectionManager.selectionMode,n={role:GJ[o]};if(o!=="none"){let l=t.selectionManager.isSelected(e.key);n["aria-checked"]=l;}let i=e.key===t.selectionManager.focusedKey,a=De(()=>{i&&t.selectionManager.setFocusedKey(null);});return useEffect(()=>()=>{a();},[]),{buttonProps:M(n,{tabIndex:i||t.selectionManager.focusedKey==null?0:-1,onFocus(){t.selectionManager.setFocusedKey(e.key);},onPress(){t.selectionManager.select(e.key);}})}}var YO="_1yep5z6f5",ZO="_1dc3b8m0";var JO=qn.forwardRef(({className:e,selectionMode:t,style:r,"data-block-id":o,"data-block-class":n,tooltipProps:i,icon:a,renderActionItem:l,...s},u)=>{let c=pe(u),d=Di(),p=Ot({...s,selectionMode:t,suppressTextValueWarning:true,children:d}),{actionGroupProps:m}=jg({...s,selectionMode:t,children:d},p,c),f=[...p.collection].map(y=>(he(y.value),jsx(qJ,{item:y,state:p,isDisabled:s.isDisabled,onAction:s.onAction,tooltipProps:i,renderActionItem:l},y.key)));return a?jsxs(J,{...m,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:_("BaselineUI-ActionGroup",e),"data-block-id":o,"data-block-class":n,style:r,ref:c,children:[jsx(a,{"aria-hidden":"true",size:24,className:YO}),jsx(J,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:f})]}):jsx(J,{...m,display:"flex",flexDirection:"row",gap:"xs",className:_("BaselineUI-ActionGroup",e),"data-block-id":o,"data-block-class":n,style:r,ref:c,children:f})});JO.displayName="ActionGroup";var qJ=({item:e,state:t,tooltipProps:r,renderActionItem:o,onAction:n,isDisabled:i})=>{let{buttonProps:a}=Gg({key:e.key},t),l=i||t.selectionManager.isDisabled(e.key),s=t.selectionManager.isSelected(e.key);he(e.value);let{icon:u}=e.value;he(u);let c=useMemo(()=>(he(e.value),typeof r=="function"?r(e.value):r),[r,e.value]);return jsx(_r,{...M(a,{onPress:()=>{n?.(e.key);}}),children:jsx(ot,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:false,offset:4,...c,children:o?.(e,{isSelected:s,isDisabled:l})||jsx(me,{variant:"tertiary",icon:u,"aria-label":e.textValue,size:"sm",isDisabled:l,className:_({[ZO]:s},"BaselineUI-ActionGroup-Item")})})})};var QO="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",eN="_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn";var rN=qn.forwardRef(({className:e,style:t,items:r,optionsContainerClassName:o,label:n,icon:i,value:a,defaultValue:l,onChange:s,isDisabled:u,optionClassName:c,optionStyle:d,labelPosition:p="top","data-block-id":m,"data-block-class":f,shouldFocusWrap:y,tooltip:b=true,...g},x)=>{let h=useMemo(()=>r.map(C=>({id:C.color,label:C.label})),[r]),v=ee();return useEffect(()=>{!n&&!g["aria-label"]&&!g["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[n,g]),jsxs(J,{...oe(g),className:_("BaselineUI-ColorSwatchPicker",e),"data-block-id":m,"data-block-class":f,display:"flex",flexDirection:p==="top"?"column":"row",alignItems:p==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:t,ref:x,children:[i||n?jsxs(J,{display:"flex",alignItems:"center",gap:"md",children:[i?jsx(i,{"aria-hidden":"true",size:24,className:sprinkles({color:"icon.primary"})}):null,n?jsx(Je,{id:v,type:"label",size:"sm",children:n}):null]}):null,jsx(an,{className:_(eN,o),selectionMode:"single",items:h,orientation:"horizontal",defaultSelectedKeys:l?[l]:void 0,disabledKeys:u?h.map(C=>C.id):void 0,isDisabled:u,selectedKeys:a?[a]:void 0,onSelectionChange:C=>{s?.([...C][0]);},optionClassName:c,optionStyle:d,renderOption:(...C)=>eQ(...C,b),shouldFocusWrap:y,...g,"aria-labelledby":n?v:g["aria-labelledby"]})]})});rN.displayName="ColorSwatchPicker";var eQ=({key:e,textValue:t},{isSelected:r,isFocusVisible:o,isDisabled:n,optionProps:i},a,l)=>{let{tooltipProps:s}=mr({label:t,tooltip:l});return jsx(ot,{...s,children:jsx(Cl,{children:jsx("li",{...i,"data-disabled":n,className:_(QO,i.className),ref:a,children:jsx(Ai,{isFocusVisible:o,color:e,isSelected:r,"aria-label":t,isInteractive:true,isDisabled:n,tooltip:false})})})})};var oN=j({defaultClassName:"_1lrwegk0",variantClassNames:{isSeparator:{true:"_1yep5z610y"}},defaultVariants:{},compoundVariants:[]}),Ug="_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6kj _1yep5z6kk _1yep5z6kl";var QS="\u2013";function Wg({segment:e,state:t}){let r=qn.useRef(null),{segmentProps:o}=Px(e,t,r),{focusProps:n,isFocused:i}=ne(),a=useMemo(()=>{let{text:l,type:s}=e;switch(s){case "hour":return l.replaceAll(QS,"H");case "minute":return l.replaceAll(QS,"M");case "second":return l.replaceAll(QS,"S");default:return l}},[e]);return jsx(J,{...M(o,n),typography:"label.md.medium",color:e.isPlaceholder?"text.placeholder":"text.primary",backgroundColor:i?"support.info.subtle":void 0,ref:r,marginLeft:e.type==="timeZoneName"?"xs":void 0,className:oN({isSeparator:e.text===":"||e.text==="/"}),children:e.isPlaceholder?a:e.text})}var iN=qn.forwardRef(({className:e,labelPosition:t,"data-block-id":r,"data-block-class":o,...n},i)=>{let{locale:a}=Q(),l={...n,validationState:void 0,isInvalid:n.validationState==="error"||void 0},s=zx({...l,locale:a}),u=qn.useRef(null),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:m,validationErrors:f,isInvalid:y,inputProps:b}=xx(l,s,u),g=n.errorMessage||f.join(" "),x=br({...n,errorMessage:g,descriptionProps:p,errorMessageProps:m,labelPosition:t}),{focusProps:h,isFocused:v}=ne({within:true});return jsxs(Ua,{className:_("BaselineUI-TimeField",e),labelProps:c,fieldProps:d,ref:i,wrapperRef:u,wrapperClassName:Ug,labelPosition:t,message:x,isFocused:v,"data-block-id":r,"data-block-class":o,isInvalid:y,...n,children:[jsx(Ne,{children:jsx("input",{...b})}),jsx(J,{display:"flex",flexDirection:"row",paddingRight:"md",...h,children:s.segments.map((C,T)=>jsx(Wg,{segment:C,state:s},T))})]})});iN.displayName="TimeField";var aN=({actionsPosition:e,onPrimaryAction:t,onSecondaryAction:r,primaryActionIcon:o,secondaryActionIcon:n,primaryActionAriaLabel:i,secondaryActionAriaLabel:a,expandLabel:l,collapseLabel:s,onRename:u,renameLabel:c,renderItemTitle:d})=>Object.values({actionsPosition:e,onPrimaryAction:t,onSecondaryAction:r,primaryActionIcon:o,secondaryActionIcon:n,primaryActionAriaLabel:i,secondaryActionAriaLabel:a,expandLabel:l,collapseLabel:s,onRename:u,renameLabel:c,renderItemTitle:d});var lN="_10dw1p96",sN="_10dw1p95",uN=j({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isSelected:{true:"_1yep5z6126"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61o8 _1yep5z61q9 _1yep5z61ty _1yep5z61tx _1yep5z61u1"]]});function pN(e,t){if(typeof e=="function"&&!e.prototype?.isReactComponent){let r=e(t);return isValidElement(r)?e:r}return e}var t1=({item:e,...t})=>{let{onPrimaryAction:r,onSecondaryAction:o,actionsPosition:n,primaryActionIcon:i,secondaryActionIcon:a,primaryActionAriaLabel:l,secondaryActionAriaLabel:s,expandLabel:u,collapseLabel:c,onRename:d,renameLabel:p,renderItemTitle:m}=t,{formatMessage:f}=fe(),{renamingKey:y,setRenamingKey:b}=useContext(r1),g=y===e.id,x=!!e.children?.length,h=e.icon,v=!!d,C=useRef(false),T=useMemo(()=>{let S=pN(i,e.id),w=pN(a,e.id),E=typeof l=="function"?l(e.id):l,z=typeof s=="function"?s(e.id):s;return S||w?jsxs(J,{display:"flex",flexDirection:"row",children:[S?jsx(qr,{icon:S,"aria-label":E,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{r?.(e.id);},tooltip:true}):null,w?jsx(qr,{icon:w,"aria-label":z,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{o?.(e.id);},tooltip:true}):null]}):null},[i,e.id,a,l,s,r,o]),P=useCallback(S=>{S.key==="Enter"?(C.current=true,d?.({key:e.id,value:S.target.value}),b(null)):S.key==="Escape"&&(C.current=true,b(null));},[e.id,d,b]),k=useCallback(()=>m?m(e):e.label,[m,e]);return jsxs(iC,{id:e.id,textValue:e.label,"data-key":e.id,className:S=>_(sN,uN({isHovered:S.isHovered,isSelected:S.isSelected,isFocusVisible:S.isFocusVisible,isRenaming:g}),"BaselineUI-TreeView-Row"),style:{justifyContent:n==="end"?"space-between":void 0},children:[jsx(nC,{children:S=>{let w=S.level-1;return jsxs(Fragment,{children:[n==="start"?T:null,jsxs(J,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxs(J,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${w*2} * ${themeVars.spacing.lg})`},children:[jsx(me,{icon:ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{S.state.toggleKey(S.id);},"aria-label":S.isExpanded?c??f(e1.collapse):u??f(e1.expand),style:{visibility:x?"visible":"hidden"},className:_(lN,"BaselineUI-TreeView-ExpansionToggle")}),h?jsx(h,{size:16,style:{color:themeVars.color.icon.interactive.disabled}}):null]}),jsxs(J,{paddingLeft:"sm",paddingY:g?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:E=>{v&&(E.stopPropagation(),E.preventDefault(),b(e.id));},children:[g?jsx("div",{onClick:E=>{E.stopPropagation();},children:jsx(_i,{defaultValue:e.label,autoFocus:true,onBlur:E=>{if(C.current){C.current=false;return}d?.({key:e.id,value:E.target.value}),b(null);},"aria-label":p??f(e1.rename),onKeyDown:P,className:"BaselineUI-TreeView-RenameInput"})}):jsx(Je,{type:"label",size:"sm",className:_(sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:k()}),e.description?jsx(Je,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:e.description}):null]})]}),n==="end"?T:null]})}}),jsx(_t,{items:e.children,children:S=>jsx(t1,{item:S,...t})})]})},e1=Se({expand:{id:"bui.treeView.expand",defaultMessage:"Expand"},collapse:{id:"bui.treeView.collapse",defaultMessage:"Collapse"},rename:{id:"bui.treeView.rename",defaultMessage:"Rename"}});var r1=createContext({renamingKey:null,setRenamingKey:()=>{}}),mN=qn.forwardRef(({className:e,style:t,"data-block-id":r,"data-block-class":o,items:n,onPrimaryAction:i,onSecondaryAction:a,primaryActionIcon:l,secondaryActionIcon:s,primaryActionAriaLabel:u,secondaryActionAriaLabel:c,actionsPosition:d="start",expandLabel:p,collapseLabel:m,onRename:f,renameLabel:y,onAction:b,renderItemTitle:g,...x},h)=>{let v=useRef(null),[C,T]=useState(null);useEffect(()=>{let S=v.current;if(!S||!f)return;let w=E=>{if(E.key==="F2"){let A=S.querySelector("[data-focused='true']")?.dataset.key;A&&(E.preventDefault(),E.stopPropagation(),T(A));}};return S.addEventListener("keydown",w),()=>{S.removeEventListener("keydown",w);}},[f]);let P=useMemo(()=>({renamingKey:C,setRenamingKey:T}),[C]),k={actionsPosition:d,onPrimaryAction:i,onSecondaryAction:a,primaryActionIcon:l,secondaryActionIcon:s,primaryActionAriaLabel:u,secondaryActionAriaLabel:c,expandLabel:p,collapseLabel:m,onRename:f,renameLabel:y,renderItemTitle:g};return jsx(r1.Provider,{value:P,children:jsx(oC,{ref:se(h,v),items:n.children||[],selectionMode:"multiple",expandedKeys:x.expandedKeys,defaultExpandedKeys:x.defaultExpandedKeys,onExpandedChange:x.onExpandedChange,selectedKeys:x.selectedKeys,onAction:b,"aria-label":x["aria-label"],"aria-labelledby":x["aria-labelledby"],"data-block-id":r,"data-block-class":o,style:t,className:_(e,"BaselineUI-TreeView"),dependencies:aN(k),children:S=>jsx(t1,{item:S,...k})})})});mN.displayName="TreeView";var n1=createContext({});function fN(){return useContext(n1)}function Xg(e){return typeof e=="number"?`${e}%`:e}var DQ=forwardRef(({className:e,isCollapsible:t=false,id:r,onResize:o,defaultSize:n,minSize:i,maxSize:a,collapsedSize:l,...s},u)=>{let c=usePanelRef(),d=ee(),p=r??d,{autoSaveId:m}=fN();return useEffect(()=>{m&&!r&&console.warn("Panel: A stable `id` prop is required for size persistence to work correctly when `autoSaveId` is set on the parent `PanelGroup`. Without it, panel sizes will not be saved or restored.");},[m,r]),useImperativeHandle(u,()=>({resize:f=>c.current?.resize(f)})),jsx(Panel,{className:_("BaselineUI-Panel",e),collapsible:t,panelRef:c,id:p,defaultSize:Xg(n),minSize:Xg(i),maxSize:Xg(a),collapsedSize:Xg(l),onResize:o?f=>{o(f.asPercentage);}:void 0,...s})});DQ.displayName="Panel";var LQ=forwardRef(({className:e,autoSaveId:t,direction:r,onLayout:o,...n},i)=>{let a=useGroupRef();useImperativeHandle(i,()=>({setLayout:u=>{let c=a.current;if(!c)return;let d=c.getLayout(),p=Object.keys(d);if(p.length>0){let m={};for(let f of p)f in u&&(m[f]=u[f]);c.setLayout(m);}else c.setLayout(u);}}));let l=useDefaultLayout({id:t??"",storage:t?localStorage:void 0}),s=useMemo(()=>({autoSaveId:t}),[t]);return jsx(n1.Provider,{value:s,children:jsx(Group,{className:_("BaselineUI-PanelGroup",e),groupRef:a,orientation:r,defaultLayout:t?l.defaultLayout:void 0,onLayoutChanged:u=>{t&&l.onLayoutChanged(u),o&&o(u);},...n})})});LQ.displayName="PanelGroup";var bN="_6abhjk0";var AQ=({className:e,isDisabled:t=false,...r})=>jsx(Separator,{disabled:t,className:_(bN,"BaselineUI-PanelResizeHandle",e),...r});AQ.displayName="PanelResizeHandle";var gN=j({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6lz _1yep5z6m1",variantClassNames:{variant:{info:"_1yep5z6131",warning:"_1yep5z612x",error:"_1yep5z612p",success:"_1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),hN="_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n";var FQ=()=>{};function KQ({state:e,...t}){qn.useRef(null);let {toastProps:o,contentProps:n,titleProps:i,descriptionProps:a,closeButtonProps:l}=HT(t,e),s=useMemo(()=>({root:o,title:i,content:n,description:a,close:l}),[o,i,n,a,l]),{canClose:u=true,...c}=t.toast.content;return jsx(qb,{elementProps:s,...c,className:_(gN({variant:c.variant||"info"}),c.className),onClose:u?FQ:void 0})}var vN=qn.forwardRef(({state:e,style:t,className:r,...o},n)=>{let i=pe(n),{regionProps:a}=GT(o,e,i),l={zIndex:1,...t,...a.style};return jsx("div",{...a,ref:i,className:_(hN,r),style:l,children:e.visibleToasts.map(s=>jsx(KQ,{toast:s,state:e},s.key))})});vN.displayName="ToastRegion";var xN=qn.forwardRef(({toastQueue:e,portalContainer:t,...r},o)=>{let n=WT(e),i=yr(t);return n.visibleToasts.length>0?jsx(Mr,{portalContainer:i,ref:o,children:jsx(vN,{state:n,...r})}):null});xN.displayName="GlobalToastRegion";var PN=qn.forwardRef(({className:e,labelPosition:t,"data-block-id":r,"data-block-class":o,pickerType:n="none",openCalendarLabel:i,...a},l)=>{let{locale:s}=Q(),{formatMessage:u}=fe(),c={...a,validationState:void 0,isInvalid:a.validationState==="error"||void 0},d=Rc({...c,locale:s,createCalendar:createCalendar}),p=qn.useRef(null),{labelProps:m,fieldProps:f,validationErrors:y,descriptionProps:b,inputProps:g,errorMessageProps:x,isInvalid:h}=bf(c,d,p),v=a.errorMessage||y.join(" "),C=br({...a,errorMessage:v,descriptionProps:b,errorMessageProps:x,labelPosition:t}),{focusProps:T,isFocused:P}=ne({within:true}),k=d.value,S=a.isDisabled||a.isReadOnly,[w,E]=qn.useState(false),z=a["aria-label"]??(typeof a.label=="string"?a.label:void 0),A=D=>{let O=d.value;O!=null&&"hour"in O?d.setValue(O.set({year:D.year,month:D.month,day:D.day})):d.setValue(D);};return jsxs(Ua,{className:_("BaselineUI-DateField",e),labelProps:m,fieldProps:f,ref:l,wrapperRef:p,wrapperClassName:Ug,labelPosition:t,message:C,isFocused:P||w,"data-block-id":r,"data-block-class":o,isInvalid:h,...a,children:[jsx(Ne,{children:jsx("input",{...g})}),jsx(J,{display:"flex",flexDirection:"row",paddingRight:n==="none"?"md":void 0,style:{flex:1},...T,children:d.segments.map((D,O)=>jsx(Wg,{segment:D,state:d},O))}),n==="presentation"?jsx(J,{color:"text.secondary",display:"flex",alignItems:"center",paddingRight:"md",children:jsx(CalendarIcon,{size:16})}):null,n==="calendar"?jsxs(Mo,{type:"dialog",onOpenChange:E,children:[jsx(Ao,{children:({triggerProps:D,triggerRef:O})=>jsx(me,{...D,ref:O,icon:CalendarIcon,variant:"primary",size:"sm",isDisabled:S,"aria-label":i??u(BQ.openCalendar)})}),jsx(Et,{placement:"bottom end",offset:2,triggerRef:p,children:jsx(Gb,{value:k,onChange:A,minValue:a.minValue,maxValue:a.maxValue,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,headerVariant:"selectMonthAndYear","aria-label":z})})]}):null]})});PN.displayName="DateField";var BQ=Se({openCalendar:{defaultMessage:"Open calendar",id:"bui.dateField.openCalendar"}});var $Q=(e,t)=>{e.setAttribute("height",typeof t=="number"?`${t}px`:t),e.setAttribute("width",typeof t=="number"?`${t}px`:t);},jQ=(e,t,r)=>{let o=e.querySelector("title"),n=U(e);if(o)o.textContent=t,o.setAttribute("id",r);else {let i=n.createElement("title");i.textContent=t,i.setAttribute("id",r),e.prepend(i);}},GQ=(e,t)=>{t&&e.classList.add(t);},UQ=(e,t)=>{let r=t.createElement("span");r.innerHTML=R8.default.sanitize(e);let o=r.querySelector("svg");return he(o,"Icon: svg prop must be a valid svg string"),o},WQ=qn.forwardRef(({size:e,title:t,className:r,style:o,color:n,...i},a)=>{let l=useId(),s=qn.useRef(null),u="svg"in i?i.svg:void 0,c=qn.useMemo(()=>{if(u){let d=U(s.current),p=UQ(u,d);return e&&$Q(p,e),t&&jQ(p,t,l),GQ(p,r),p.outerHTML}},[u,e,t,r,l]);return jsx("span",{className:r,ref:se(a,s),style:{display:"contents",...o,color:n},dangerouslySetInnerHTML:c?{__html:c}:void 0})});WQ.displayName="Icon";var DN=j({defaultClassName:"_1bwul1t8 _1yep5z6lq _1yep5z6ly _1yep5z6eu _1yep5z6g1",variantClassNames:{size:{xs:"_1bwul1t9 _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6zy",sm:"_1bwul1ta _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6101",md:"_1bwul1tb _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6104"}},defaultVariants:{},compoundVariants:[]}),s1=j({defaultClassName:"_1bwul1t3 _1yep5z6ev",variantClassNames:{size:{xs:"_1yep5z6zy",sm:"_1yep5z6101",md:"_1yep5z6104"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),kN={xs:"_1bwul1t0",sm:"_1bwul1t1",md:"_1bwul1t2"};var wN=qn.forwardRef(({className:e,style:t,size:r="md",isDisabled:o,decrementAriaLabel:n,incrementAriaLabel:i,"data-block-id":a,"data-block-class":l,label:s,onChange:u,onBlur:c,onKeyDown:d,minValue:p=Number.NEGATIVE_INFINITY,maxValue:m=Number.POSITIVE_INFINITY,defaultValue:f,value:y,description:b=P=>`${P} / ${m}`,onInputChange:g,onChangeSuccess:x,step:h=1,valueToLabelMap:v,...C},T)=>{let P=qn.useRef(null),k=ee(),S=ee(),w=useCallback(q=>v?v.get(q)??q.toString():q.toString(),[v]),E=useCallback(q=>{if(v){let X=[...v.entries()].find(([,ce])=>ce===q);if(X)return X[0]}return Number.parseInt(q)},[v]),[z,A]=ye(y,f??1,x),[D,O]=useState(w(z)??""),R=z<=p||o,N=z>=m||o,F=useCallback(q=>{if(!q)return;u?.(q);let W=E(q);if(Number.isNaN(W)){O(w(z)??"");return}W>=p&&W<=m&&!o&&!C.isReadOnly?A(W):O(w(z));},[u,E,p,m,o,C.isReadOnly,w,z,A]),I=useCallback(q=>q>=p&&q<=m,[p,m]),V=useCallback(q=>{F(D),c?.(q);},[D,F,c]),H=useCallback(()=>{if(N)return;let q=Math.min(z+h,m);I(q)&&A(q);},[z,N,I,m,A,h]),K=useCallback(()=>{if(R)return;let q=Math.max(z-h,p);I(q)&&A(q);},[z,R,I,p,A,h]),L=useCallback(q=>{if(!(o||C.isReadOnly)){switch(q.key){case "Enter":{F(D);break}case "ArrowUp":{H();break}case "ArrowDown":{K();break}}d?.(q);}},[o,C.isReadOnly,d,F,D,H,K]);useGranularEffect(()=>{O(w(z));},[z],[w]);let{inputProps:B}=$r({...C,value:D?.toString(),isDisabled:o,onBlur:V,onChange:q=>{O(q),g?.(q);},onKeyDown:L,"aria-labelledby":k,"aria-describedby":S},P),G=typeof b=="function"?b(z):b;return jsxs(J,{className:_(kN[r],e),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":a,"data-block-class":l,style:t,ref:T,"aria-disabled":o,children:[jsx("span",{id:k,className:s1({size:r,isDisabled:o}),children:s}),jsxs(J,{display:"flex",flexDirection:"row",borderRadius:"sm",borderColor:"border.subtle",borderStyle:"solid",borderWidth:1,style:{height:"inherit"},children:[jsx(me,{icon:CaretLeftIcon,elementType:"div",size:r,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:o||R||C.isReadOnly,excludeFromTabOrder:true,onPress:K,"aria-label":n,tooltip:true}),jsx(ze,{orientation:"vertical"}),jsx("input",{...B,className:DN({size:r}),min:p,max:m}),jsx(ze,{orientation:"vertical"}),jsx(me,{icon:CaretRightIcon,elementType:"div",size:r,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:o||N||C.isReadOnly,excludeFromTabOrder:true,onPress:H,"aria-label":i,tooltip:true})]}),G?jsx("span",{id:S,className:s1({size:r,isDisabled:o}),children:G}):null]})});wN.displayName="TaggedPagination";var QQ={node:null,setNode:()=>{},coordinates:null,setCoordinates:()=>{},displayId:void 0,setDisplayId:()=>{},boundsRef:{current:null},isDisabled:false,cursorNode:null,setCursorNode:()=>{},children:null,setChildren:()=>{}},Jt=qn.createContext(QQ),RN=qn.memo(({children:e,isDisabled:t=false})=>{let[r,o]=qn.useState(null),[n,i]=qn.useState(null),[a,l]=qn.useState(null),s=qn.useRef(null),[u,c]=qn.useState(null),[d,p]=qn.useState(),m=qn.useMemo(()=>({node:r,setNode:o,coordinates:u,setCoordinates:c,displayId:d,setDisplayId:p,boundsRef:s,isDisabled:t,cursorNode:n,setCursorNode:i,children:a,setChildren:l}),[r,u,d,c,o,s,t,n,i,a,l]);return jsx(Jt.Provider,{value:m,children:e})});RN.displayName="PointPicker";var IN="m0xg2me";var _N="m0xg2md _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6m1 _1yep5z6m0 _1yep5z6hc",LN="m0xg2mj",MN="_1yep5z6f6",AN="m0xg2mk m0xg2mj",ON=j({defaultClassName:"m0xg2m0",variantClassNames:{isDisabled:{true:"m0xg2m1",false:"m0xg2m2"},isIndicatorVisible:{true:"m0xg2m3",false:"m0xg2m4"}},defaultVariants:{},compoundVariants:[[{isDisabled:false,isIndicatorVisible:true},"m0xg2m5"],[{isDisabled:false,isIndicatorVisible:false},"m0xg2m6"]]}),NN="m0xg2m8",FN="m0xg2mb",u1="m0xg2ma _1yep5z6hd _1yep5z6lz",KN="m0xg2m9 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",VN="m0xg2m7",BN="m0xg2mc",HN="m0xg2mf";var Yg=_(_N,"BaselineUI-PointPicker-GridLine"),oee=({coordinates:e})=>jsxs(Fragment,{children:[jsx("div",{className:Yg,"data-grid-line-type":"vertical",style:{height:e.y-5,transform:`translate(${e.x}px, 0) translate(-1px, 0) scaleX(0.5)`}}),jsx("div",{className:Yg,"data-grid-line-type":"vertical",style:{height:`calc(100% - ${e.y+4}px)`,transform:`translate(${e.x}px, ${e.y+5}px) translate(-1px, 0) scaleX(0.5)`}})]}),nee=({coordinates:e})=>jsxs(Fragment,{children:[jsx("div",{className:Yg,"data-grid-line-type":"horizontal",style:{width:e.x-5,transform:`translate(0, ${e.y}px) translate(0, -1px) scaleY(0.5)`}}),jsx("div",{className:Yg,"data-grid-line-type":"horizontal",style:{width:`calc(100% - ${e.x+4}px)`,transform:`translate(${e.x+5}px, ${e.y}px) translate(0, -1px) scaleY(0.5)`}})]}),$N=({gridLines:e})=>{let{isDisabled:t,boundsRef:r,coordinates:o}=useContext(Jt),n=useMemo(()=>{let i=typeof e=="function"?e({coordinates:o,boundingRect:r.current}):e;return typeof i=="boolean"?i?o:void 0:i?.coordinates},[e,o,r]);return n&&!t?jsxs(Fragment,{children:[jsx(oee,{coordinates:n}),jsx(nee,{coordinates:n})]}):null};function jN({coordinates:e,setCoordinates:t,boundsRef:r,onKeyDown:o,onKeyUp:n}){let{isDisabled:i}=useContext(Jt);return Ae({isDisabled:i,onKeyDown:a=>{o?.(a);let l=a.shiftKey?10:1,s=r.current;if(!s||!e)return;let u;switch(a.key){case "ArrowRight":{a.preventDefault(),u={x:Xt(e.x+l,0,s.width),y:Xt(e.y,0,s.height)};break}case "ArrowLeft":{a.preventDefault(),u={x:Xt(e.x-l,0,s.width),y:Xt(e.y,0,s.height)};break}case "ArrowDown":{a.preventDefault(),u={x:Xt(e.x,0,s.width),y:Xt(e.y+l,0,s.height)};break}case "ArrowUp":{a.preventDefault(),u={x:Xt(e.x,0,s.width),y:Xt(e.y-l,0,s.height)};break}case "Home":{a.preventDefault(),u={x:0,y:Xt(e.y,0,s.height)};break}case "End":{a.preventDefault(),u={x:s.width,y:Xt(e.y,0,s.height)};break}case "PageUp":{a.preventDefault(),u={x:Xt(e.x,0,s.width),y:0};break}case "PageDown":{a.preventDefault(),u={x:Xt(e.x,0,s.width),y:s.height};break}default:{a.continuePropagation();return}}u&&t(u);},onKeyUp:n})}function GN(){let{node:e,coordinates:t}=useContext(Jt);return useMemo(()=>{if(!e||!t)return {x:0,y:0};let{left:r,top:o}=e.getBoundingClientRect();return {x:t.x+r,y:t.y+o}},[t,e])}var{color:WN}=themeVars,YN=qn.forwardRef(({modality:e},t)=>e==="keyboard"?jsxs("svg",{width:92,height:92,viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,className:LN,children:[jsxs("g",{filter:"url(#filter0_d_11407_457970)",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 43V4h-6v39H4v6h39v39h6V49h39v-6H49zm38 5H48v39h-4V48H5v-4h39V5h4v39h39v4zm-5 28v6h-6v6h12V76h-6zm5 11H77v-4h6v-6h4v10zm-77-5v-6H4v12h12v-6h-6zm5 5H5V77h4v6h6v4zM76 4v6h6v6h6V4H76zm11 11h-4V9h-6V5h10v10zM4 4v12h6v-6h6V4H4zm11 5H9v6H5V5h10v4z",fill:WN.background.positive.subtle}),jsx("path",{d:"M48 44v4h39v-4H48zm-4 4v39h4V48h-4zM5 44v4h39v-4H5zM44 5v39h4V5h-4zm39 72v6h-6v4h10V77h-4zM9 83v-6H5v10h10v-4H9zM77 5v4h6v6h4V5H77zM5 5v10h4V9h6V5H5z",fill:WN.background.positive.interactive.enabled})]}),jsx("defs",{children:jsxs("filter",{id:"filter0_d_11407_457970",x:0,y:0,width:92,height:92,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),jsx("feOffset",{}),jsx("feGaussianBlur",{stdDeviation:2}),jsx("feComposite",{in2:"hardAlpha",operator:"out"}),jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_11407_457970"}),jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_11407_457970",result:"shape"})]})})]}):jsx(PlusIcon$1,{className:AN,ref:t}));YN.displayName="PointPickerIndicatorIcon";var pee=({trailingElement:e})=>{let{cursorNode:t}=useContext(Jt),[r,o]=useState({width:0,height:0});return useEffect(()=>{if(!t)return;let n=t.getBoundingClientRect();o(n);let i=new ResizeObserver(a=>{o({width:a[0].contentRect.width,height:a[0].contentRect.height});});return i.observe(t),()=>{i.disconnect();}},[t]),e?jsx(J,{position:"absolute",style:{left:0,top:0,zIndex:0,transform:`translate(${r.width/2}px, ${r.height/2}px)`},className:"BaselineUI-PointPickerContent-TrailingElement",children:e}):null},p1=qn.forwardRef(({renderTrailingElement:e,renderCursor:t},r)=>{let{coordinates:o,isDisabled:n,node:i}=useContext(Jt),a=Yy({ownerDocument:U(i)}),l=!!(o&&!n),s=useMemo(()=>e?.(),[e]),u=GN(),c=useMemo(()=>{if(!o)return null;let d=t?.({coordinates:o,modality:a});return d===void 0?jsx(YN,{modality:a}):d},[t,o,a]);return l?jsxs(Mr,{style:{left:u.x,top:u.y},className:_(VN,"BaselineUI-PointPickerContent-Cursor"),ref:r,children:[c,s?jsx(pee,{trailingElement:s}):null]}):null});p1.displayName="PointPickerIndicator";var eF=qn.forwardRef(({children:e,className:t,style:r,"data-block-id":o,"data-block-class":n,onFocusChange:i,onBlur:a,onFocus:l,onKeyDown:s,onKeyUp:u,gridLines:c=true,elementHandle:d,onMove:p,onPress:m,onPressStart:f,onPressEnd:y,renderTrailingElement:b,renderCursor:g},x)=>{let{setNode:h,node:v,coordinates:C,setCoordinates:T,displayId:P,boundsRef:k,isDisabled:S,setCursorNode:w,setChildren:E}=useContext(Jt),z=useRef(null),A=useRef(null),D=Yy({ownerDocument:U(v)}),O=useCallback(q=>{T(q??null),p?.({coordinates:q,boundingRect:k.current});},[T,p,k]);useEffect(()=>{if(!S)return E(e),()=>{E(null);}},[e,S,E]),useEffect(()=>{let q=z.current;if(!q||S)return;let W=()=>{let te=q.getBoundingClientRect();k.current=te;},X=te=>{let ue=k.current;if(!ue)return;let Ee="clientX"in te?te.clientX:te.touches[0].clientX,Ce="clientY"in te?te.clientY:te.touches[0].clientY,He={x:Xt(Ee-ue.left,0,ue.width),y:Xt(Ce-ue.top,0,ue.height)};O(He);},ce=()=>{O(null);};return q.addEventListener("mousemove",X),q.addEventListener("touchmove",X),q.addEventListener("mouseenter",W),q.addEventListener("mouseleave",ce),()=>{q.removeEventListener("mousemove",X),q.removeEventListener("touchmove",X),q.removeEventListener("mouseenter",W),q.removeEventListener("mouseleave",ce);}},[k,S,O]);let{pressProps:R}=Oe({isDisabled:S,onPress:q=>{q.pointerType==="keyboard"?C&&m?.({...q,x:C.x,y:C.y}):m?.(q);},onPressStart:f,onPressEnd:y}),{focusProps:N,isFocusVisible:F,isFocused:I}=ne();Zy({ref:A,isDisabled:S}),useImperativeHandle(d,()=>({focus:()=>{S||z.current?.focus();}}));let{focusProps:V}=tr({isDisabled:S,onFocusChange:i,onFocus:l,onBlur:a});function H(){D==="keyboard"&&setTimeout(()=>{let q=z.current?.getBoundingClientRect();q&&(k.current=q,O({x:Xt(q.width/2,0,q.width),y:Xt(q.height/2,0,q.height)}));},0);}function K(){O(null);}let{keyboardProps:L}=jN({coordinates:C,setCoordinates:O,boundsRef:k,onKeyDown:s,onKeyUp:u});wo({isDisabled:S,ref:z,onInteractOutside:()=>{O(null);}});let B=!!(C&&!S),G=ve({"data-focus-visible":F,"data-focused":I,"data-disabled":S,"data-block-id":o,"data-block-class":n,"data-active":C&&!S,"data-modality":D});return jsxs(Fragment,{children:[jsx(p1,{renderTrailingElement:b,renderCursor:g,ref:w}),jsxs("div",{...M(N,V,{onFocus:H,onBlur:K},S?{}:M(L,R)),ref:se(x,z,h),className:_(ON({isDisabled:!!S,isIndicatorVisible:!!B}),"BaselineUI-PointPicker-Content",t),tabIndex:S?void 0:0,style:r,"aria-controls":P,"data-testid":"point-picker-content",...G,children:[jsx($N,{gridLines:c}),jsx("div",{className:IN,ref:A,children:e})]})]})});eF.displayName="PointPickerContent";function tF(e,t,r){let[o,n]=useState(0),i=a=>{n(a),r();};return useGranularEffect(()=>{if(!e||t==="trailing")return;let a=new ResizeObserver(l=>{i(l[0].contentRect.width);});return i(e.getBoundingClientRect().width),a.observe(e),()=>{a.disconnect();}},[e,t],[r]),o}function See(e,t){return t==="indicator"?e:e?.querySelector(".BaselineUI-PointPickerContent-TrailingElement")??null}var f1=qn.forwardRef(({children:e,className:t,crossOffset:r,offset:o,placement:n="bottom start",anchorElement:i="indicator"},a)=>{let l=useRef(null),{cursorNode:s,coordinates:u}=useContext(Jt),c=tF(s,i,()=>{m();}),d=See(s,i),{overlayProps:p,updatePosition:m}=Sa({overlayRef:l,placement:n,targetRef:{get current(){return d}},crossOffset:r??c,offset:o});return useGranularEffect(()=>{m();},[u,r,o],[m]),u?jsx(Mr,{className:_(HN,t),ref:a,children:jsx("div",{ref:l,...p,children:e})}):null});f1.displayName="Floater";var lF=8,Eee=7,zee=7,y1=qn.memo(({children:e,scale:t,renderMagnifierContent:r})=>{let o=useRef(null),{coordinates:n,boundsRef:i,node:a}=useContext(Jt),l=useRef([]);Zy({ref:o}),useEffect(()=>{if(!o.current||r)return;let c=o.current.querySelectorAll("canvas"),d=[],p=o.current.ownerDocument;for(let m of c){let f=m.getContext("2d");if(!f)continue;let y=m.clientWidth,b=m.clientHeight,g=m.width,x=m.height,h=f.getImageData(0,0,g,x);d.push({el:m,width:g,height:x,image:h});let v=p.createElement("canvas");v.width=g,v.height=x;let C=v.getContext("2d");C&&C.drawImage(m,0,0),m.width=y*t,m.height=b*t,m.style.width=`${y}px`,m.style.height=`${b}px`,f.scale(t,t),f.drawImage(v,0,0,y,b);}return l.current=d,()=>{for(let{el:m,width:f,height:y,image:b}of l.current)m.width=f,m.height=y,m.getContext("2d")?.putImageData(b,0,0);}},[a,t,r]);let s=useMemo(()=>r?r({coordinates:n,boundingRect:i.current,children:e}):e?qn.cloneElement(e,{key:"magnifier-content"}):null,[r,n,i,e]),u=useMemo(()=>!i.current||!n?null:{x:n.x/i.current.width,y:n.y/i.current.height},[i,n]);return u?jsx("div",{style:{left:0,transform:`scale(${t}) translate(calc(-${u.x*100}% + ${lF*Eee/(2*t)}px), calc(-${u.y*100}% + ${lF*zee/(2*t)}px))`},className:_(BN,"BaselineUI-PointPickerDisplay-Magnifier"),children:jsx("div",{style:Ree(a),ref:o,inert:"true",children:s})}):null});y1.displayName="Magnifier";function wee(e){let t=[];for(let r=0;r<e.length;r++){let o=e[r],n=e.getPropertyValue(o);n&&t.push([o,n]);}for(let r of e)if(r.startsWith("--")){let o=e.getPropertyValue(r);o&&t.push([r,o]);}return Object.fromEntries(t)}function Ree(e){if(!e)return {};let r=Y(e).getComputedStyle(e),o=e.getBoundingClientRect(),n={...wee(r),position:"static",margin:"0px",left:"0px",top:"0px",transform:"none","-webkit-text-fill-color":"inherit","-webkit-text-stroke-color":"inherit",width:`${o.width}px`,height:`${o.height}px`,interactivity:"inert"};return Object.fromEntries(Object.entries(n).map(([i,a])=>i.startsWith("--")?[i,a]:i.startsWith("-")?[wR(oF(i)),a]:[oF(i),a]))}var Mee=7,Aee=7,Oee={scale:2},Nee={crossOffset:void 0,offset:void 0,placement:"bottom start",anchorElement:"indicator"},uF=qn.forwardRef(({className:e,style:t,description:r,magnifier:o=true,"data-block-id":n,"data-block-class":i,floating:a=false,renderMagnifierContent:l},s)=>{let{coordinates:u,boundsRef:c,setDisplayId:d,isDisabled:p,children:m,cursorNode:f}=useContext(Jt),y=ee(),b=useMemo(()=>gC(o,Oee),[o]),g=useMemo(()=>typeof r=="function"?r({coordinates:u?{x:u.x,y:u.y}:null,boundingRect:c.current}):r,[r,u,c]),x=!p&&!!b&&u,h=useMemo(()=>gC(a,Nee),[a]);useEffect(()=>((!h||h&&f)&&d(y),()=>{d(void 0);}),[f,y,d,h]);let v=jsxs(J,{ref:h?void 0:s,className:_(NN,"BaselineUI-PointPicker-Display",e),backgroundColor:"background.primary.subtle",boxShadow:"medium",borderRadius:"sm",outlineWidth:1,outlineColor:"border.medium",outlineOffset:-1,outlineStyle:"solid",paddingY:"md",paddingLeft:"md",paddingRight:g?.length?"xl":"md",display:"flex",flexDirection:"row",gap:"lg",alignItems:"center",style:t,id:y,"data-block-id":n,"data-block-class":i,"data-variant":h?"floating":"auto","data-testid":"point-picker-display",children:[b?jsxs("div",{className:KN,children:[x?jsx(y1,{scale:b.scale,renderMagnifierContent:l,children:m}):null,Array.from({length:Mee*Aee}).map((C,T)=>T===24?jsx("div",{className:_(u1,FN)},T):jsx("div",{className:u1},T))]}):null,g?.length?jsx(J,{display:"flex",gap:"lg",flexDirection:"column",children:g?.map(({label:C,icon:T},P)=>jsxs(J,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[jsx(T,{size:12,className:MN}),jsx(Je,{type:"label",size:"sm",children:C})]},C+P))}):null]});return h?jsx(f1,{ref:s,...h,className:"BaselineUI-PointPicker-Floater",children:v}):v});uF.displayName="PointPickerDisplay";function h1(e){let t=new Blob([e],{type:"text/javascript"}),r=URL.createObjectURL(t),o=new Worker(r);return URL.revokeObjectURL(r),o}function v1(){return h1('var Y=Object.defineProperty;var Z=(n,t,e)=>t in n?Y(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var M=(n,t,e)=>Z(n,typeof t!="symbol"?t+"":t,e);var F=Symbol("Comlink.proxy"),J=Symbol("Comlink.endpoint"),Q=Symbol("Comlink.releaseProxy"),z=Symbol("Comlink.finalizer"),T=Symbol("Comlink.thrown"),B=n=>typeof n=="object"&&n!==null||typeof n=="function",q={canHandle:n=>B(n)&&n[F],serialize(n){let{port1:t,port2:e}=new MessageChannel;return U(n,t),[e,[e]]},deserialize(n){return n.start(),et(n)}},X={canHandle:n=>B(n)&&T in n,serialize({value:n}){let t;return n instanceof Error?t={isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:t={isError:!1,value:n},[t,[]]},deserialize(n){throw n.isError?Object.assign(new Error(n.value.message),n.value):n.value}},H=new Map([["proxy",q],["throw",X]]);function tt(n,t){for(let e of n)if(t===e||e==="*"||e instanceof RegExp&&e.test(t))return!0;return!1}function U(n,t=globalThis,e=["*"]){t.addEventListener("message",function r(s){if(!s||!s.data)return;if(!tt(e,s.origin)){console.warn(`Invalid origin \'${s.origin}\' for comlink proxy`);return}let{id:o,type:c,path:u}=Object.assign({path:[]},s.data),i=(s.data.argumentList||[]).map(m),a;try{let l=u.slice(0,-1).reduce((f,y)=>f[y],n),h=u.reduce((f,y)=>f[y],n);switch(c){case"GET":a=h;break;case"SET":l[u.slice(-1)[0]]=m(s.data.value),a=!0;break;case"APPLY":a=h.apply(l,i);break;case"CONSTRUCT":{let f=new h(...i);a=at(f)}break;case"ENDPOINT":{let{port1:f,port2:y}=new MessageChannel;U(n,y),a=ot(f,[f])}break;case"RELEASE":a=void 0;break;default:return}}catch(l){a={value:l,[T]:0}}Promise.resolve(a).catch(l=>({value:l,[T]:0})).then(l=>{let[h,f]=_(l);t.postMessage(Object.assign(Object.assign({},h),{id:o}),f),c==="RELEASE"&&(t.removeEventListener("message",r),V(t),z in n&&typeof n[z]=="function"&&n[z]())}).catch(l=>{let[h,f]=_({value:new TypeError("Unserializable return value"),[T]:0});t.postMessage(Object.assign(Object.assign({},h),{id:o}),f)})}),t.start&&t.start()}function nt(n){return n.constructor.name==="MessagePort"}function V(n){nt(n)&&n.close()}function et(n,t){let e=new Map;return n.addEventListener("message",function(s){let{data:o}=s;if(!o||!o.id)return;let c=e.get(o.id);if(c)try{c(o)}finally{e.delete(o.id)}}),I(n,e,[],t)}function S(n){if(n)throw new Error("Proxy has been released and is not useable")}function $(n){return A(n,new Map,{type:"RELEASE"}).then(()=>{V(n)})}var P=new WeakMap,R="FinalizationRegistry"in globalThis&&new FinalizationRegistry(n=>{let t=(P.get(n)||0)-1;P.set(n,t),t===0&&$(n)});function rt(n,t){let e=(P.get(t)||0)+1;P.set(t,e),R&&R.register(n,t,n)}function st(n){R&&R.unregister(n)}function I(n,t,e=[],r=function(){}){let s=!1,o=new Proxy(r,{get(c,u){if(S(s),u===Q)return()=>{st(o),$(n),t.clear(),s=!0};if(u==="then"){if(e.length===0)return{then:()=>o};let i=A(n,t,{type:"GET",path:e.map(a=>a.toString())}).then(m);return i.then.bind(i)}return I(n,t,[...e,u])},set(c,u,i){S(s);let[a,l]=_(i);return A(n,t,{type:"SET",path:[...e,u].map(h=>h.toString()),value:a},l).then(m)},apply(c,u,i){S(s);let a=e[e.length-1];if(a===J)return A(n,t,{type:"ENDPOINT"}).then(m);if(a==="bind")return I(n,t,e.slice(0,-1));let[l,h]=D(i);return A(n,t,{type:"APPLY",path:e.map(f=>f.toString()),argumentList:l},h).then(m)},construct(c,u){S(s);let[i,a]=D(u);return A(n,t,{type:"CONSTRUCT",path:e.map(l=>l.toString()),argumentList:i},a).then(m)}});return rt(o,n),o}function it(n){return Array.prototype.concat.apply([],n)}function D(n){let t=n.map(_);return[t.map(e=>e[0]),it(t.map(e=>e[1]))]}var W=new WeakMap;function ot(n,t){return W.set(n,t),n}function at(n){return Object.assign(n,{[F]:!0})}function _(n){for(let[t,e]of H)if(e.canHandle(n)){let[r,s]=e.serialize(n);return[{type:"HANDLER",name:t,value:r},s]}return[{type:"RAW",value:n},W.get(n)||[]]}function m(n){switch(n.type){case"HANDLER":return H.get(n.name).deserialize(n.value);case"RAW":return n.value}}function A(n,t,e,r){return new Promise(s=>{let o=ct();t.set(o,s),n.start&&n.start(),n.postMessage(Object.assign({id:o},e),r)})}function ct(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var G=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],L=1,x=8,d=new Uint32Array(96),C=class n{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[e,r]=new Uint8Array(t,0,2);if(e!==219)throw new Error("Data does not appear to be in a KDBush format.");let s=r>>4;if(s!==L)throw new Error(`Got v${s} data when expected v${L}.`);let o=G[r&15];if(!o)throw new Error("Unrecognized array type.");let[c]=new Uint16Array(t,2,1),[u]=new Uint32Array(t,4,1);return new n(u,c,o,void 0,t)}constructor(t,e=64,r=Float64Array,s=ArrayBuffer,o){if(isNaN(t)||t<0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let c=G.indexOf(this.ArrayType),u=t*2*this.ArrayType.BYTES_PER_ELEMENT,i=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-i%8)%8;if(c<0)throw new Error(`Unexpected typed array class: ${r}.`);if(o)this.data=o,this.ids=new this.IndexArrayType(o,x,t),this.coords=new r(o,x+i+a,t*2),this._pos=t*2,this._finished=!0;else{let l=this.data=new s(x+u+i+a);this.ids=new this.IndexArrayType(l,x,t),this.coords=new r(l,x+i+a,t*2),this._pos=0,this._finished=!1,new Uint8Array(l,0,2).set([219,(L<<4)+c]),new Uint16Array(l,2,1)[0]=e,new Uint32Array(l,4,1)[0]=t}}add(t,e){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return N(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:o,coords:c,nodeSize:u}=this;d[0]=0,d[1]=o.length-1,d[2]=0;let i=3,a=[];for(;i>0;){let l=d[--i],h=d[--i],f=d[--i];if(h-f<=u){for(let g=f;g<=h;g++){let E=c[2*g],k=c[2*g+1];E>=t&&E<=r&&k>=e&&k<=s&&a.push(o[g])}continue}let y=f+h>>1,w=c[2*y],p=c[2*y+1];w>=t&&w<=r&&p>=e&&p<=s&&a.push(o[y]),(l===0?t<=w:e<=p)&&(d[i++]=f,d[i++]=y-1,d[i++]=1-l),(l===0?r>=w:s>=p)&&(d[i++]=y+1,d[i++]=h,d[i++]=1-l)}return a}within(t,e,r){let s=[];return this.withinInto(t,e,r,s),s}withinInto(t,e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:o,coords:c,nodeSize:u}=this;d[0]=0,d[1]=o.length-1,d[2]=0;let i=3,a=0,l=r*r;for(;i>0;){let h=d[--i],f=d[--i],y=d[--i];if(f-y<=u){for(let E=y;E<=f;E++)j(c[2*E],c[2*E+1],t,e)<=l&&(s[a++]=o[E]);continue}let w=y+f>>1,p=c[2*w],g=c[2*w+1];j(p,g,t,e)<=l&&(s[a++]=o[w]),(h===0?t-r<=p:e-r<=g)&&(d[i++]=y,d[i++]=w-1,d[i++]=1-h),(h===0?t+r>=p:e+r>=g)&&(d[i++]=w+1,d[i++]=f,d[i++]=1-h)}return a}};function N(n,t,e,r,s,o){if(s-r<=e)return;let c=r+s>>1;K(n,t,c,r,s,o),N(n,t,e,r,c-1,1-o),N(n,t,e,c+1,s,1-o)}function K(n,t,e,r,s,o){for(;s>r;){if(s-r>600){let a=s-r+1,l=e-r+1,h=Math.log(a),f=.5*Math.exp(2*h/3),y=.5*Math.sqrt(h*f*(a-f)/a)*(l-a/2<0?-1:1),w=Math.max(r,Math.floor(e-l*f/a+y)),p=Math.min(s,Math.floor(e+(a-l)*f/a+y));K(n,t,e,w,p,o)}let c=t[2*e+o],u=r,i=s;for(b(n,t,r,e),t[2*s+o]>c&&b(n,t,r,s);u<i;){for(b(n,t,u,i),u++,i--;t[2*u+o]<c;)u++;for(;t[2*i+o]>c;)i--}t[2*r+o]===c?b(n,t,r,i):(i++,b(n,t,i,s)),i<=e&&(r=i+1),e<=i&&(s=i-1)}}function b(n,t,e,r){O(n,e,r),O(t,2*e,2*r),O(t,2*e+1,2*r+1)}function O(n,t,e){let r=n[t];n[t]=n[e],n[e]=r}function j(n,t,e,r){let s=n-e,o=t-r;return s*s+o*o}var v=class{constructor(){M(this,"index",null);M(this,"xCoords",null);M(this,"yCoords",null)}buildIndex(t){this.clear(),this.xCoords=new Float64Array(t.length),this.yCoords=new Float64Array(t.length);for(let[r,s]of t.entries())this.xCoords[r]=s.x,this.yCoords[r]=s.y;let e=new C(t.length);for(let r=0;r<t.length;r++)e.add(this.xCoords[r],this.yCoords[r]);return e.finish(),this.index=e,e.data}clear(){this.index=null,this.xCoords=null,this.yCoords=null}findNearestPoint(t,e,r){if(!this.index||!this.xCoords||!this.yCoords)return null;let s=this.index.within(t,e,r);if(s.length===0)return null;let o=s[0],c=1/0;for(let u of s){let i=t-this.xCoords[u],a=e-this.yCoords[u],l=i*i+a*a;l<c&&(c=l,o=u)}return{x:this.xCoords[o],y:this.yCoords[o]}}findPointsInRadius(t,e,r){if(!this.index||!this.xCoords||!this.yCoords)return[];let s=this.index.within(t,e,r),o=Array.from({length:s.length});for(let[c,u]of s.entries())o[c]={x:this.xCoords[u],y:this.yCoords[u]};return o}};U(new v);\n/*! Bundled license information:\n\ncomlink/dist/esm/comlink.mjs:\n (**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *)\n*/\n')}function Kee({snapPoints:e,snapRadius:t=50}){let r=useRef(null),o=useRef(null),n=useMemo(()=>{let s=new v1;return o.current=s,pF.wrap(s)},[]);useEffect(()=>()=>{o.current&&(o.current.terminate(),o.current=null);},[]);let i=useCallback(async()=>{e&&(r.current=await n.buildIndex(e));},[e,n]);useEffect(()=>{e&&e.length>0&&i();},[e,i]);let a=useCallback(async s=>e?(r.current||await i(),n.findNearestPoint(s.x,s.y,t)):null,[e,t,i,n]),l=useCallback(async s=>e?(r.current||await i(),n.findPointsInRadius(s.x,s.y,t)):[],[e,t,i,n]);return {findNearestPoint:a,findPointsInRadius:l}}var mF="_1ltpw2m2 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ev _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1ltpw2m0",fF="_1ltpw2m1 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6m1 _1yep5z6lz _1yep5z6h3 _1yep5z6g1 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6";var bF=qn.forwardRef(({className:e,style:t,children:r},o)=>jsx("pre",{className:_(fF,"BaselineUI-Code",e),style:t,ref:o,children:jsx("code",{className:mF,children:r})}));bF.displayName="Code";var gF="_1w6k5xli";var hF=j({defaultClassName:"_1w6k5xl1 _1yep5z6m1 _1yep5z6lz _1yep5z6g1 _1yep5z6h3",variantClassNames:{variant:{active:"_1w6k5xl2",warning:"_1w6k5xl3",error:"_1w6k5xl4",denied:"_1w6k5xl5",success:"_1w6k5xl6","active-tinted":"_1yep5z6184 _1yep5z611y _1yep5z6131","warning-tinted":"_1yep5z6184 _1yep5z611u _1yep5z612x","error-tinted":"_1yep5z6184 _1yep5z611m _1yep5z612p","denied-tinted":"_1yep5z6184 _1yep5z6127 _1yep5z6137","success-tinted":"_1yep5z6184 _1yep5z611q _1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),vF=j({defaultClassName:"_1w6k5xlc",variantClassNames:{variant:{active:"_1yep5z610u",warning:"_1yep5z610q",error:"_1yep5z610i",denied:"_1yep5z610x",success:"_1yep5z610m"}},defaultVariants:{},compoundVariants:[]}),T1="_1w6k5xlk",xF="_1w6k5xlj";var {support:C1,icon:TF}=themeVars.color,qee={warning:jsx(WarningIcon,{size:16,color:C1.warning.strong}),error:jsx(ErrorCircleIcon,{size:16,color:C1.error.strong}),active:jsx(J,{padding:"xs",display:"flex",alignItems:"center",children:jsx(CircleFilledIcon,{size:16,color:TF.interactive.enabled,className:gF})}),success:jsx(CheckmarkIcon$2,{size:16,color:C1.success.strong}),denied:jsx(XIcon$2,{size:16,color:TF.primary})},Jg=qn.forwardRef(({className:e,style:t,variant:r="active",icon:o,title:n,description:i,renderTrailingElement:a,shouldTruncateTitle:l},s)=>{let u=vF({variant:r.split("-")[0]});return jsxs(J,{padding:"lg",display:"flex",flexDirection:"row",gap:"md",width:"full",alignItems:"center",borderRadius:"sm",className:_(hF({variant:r}),"BaselineUI-StatusCard",e),style:t,ref:s,children:[jsxs(J,{display:"flex",alignItems:"center",flexDirection:"row",gap:"md",flex:1,className:l?T1:void 0,children:[jsx(J,{display:"flex",padding:"xs",alignItems:"center",flexShrink:0,className:"BaselineUI-StatusCard-Icon",children:o?jsx(o,{className:u,size:16}):qee[r.split("-")[0]]}),jsxs(J,{display:"flex",flexDirection:"column",gap:"sm",className:l?T1:void 0,children:[jsx(J,{typography:"label.md.medium",elementType:"h4",color:"text.primary",className:_("BaselineUI-StatusCard-Title",l&&xF),children:l?jsx("span",{title:n,children:n}):n}),i?jsx(J,{typography:"label.sm.regular",elementType:"span",className:_(u,"BaselineUI-StatusCard-Description"),children:i}):null]})]}),a?.()]})});Jg.displayName="StatusCard";var CF=j({defaultClassName:"wf9zfn0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6m1 _1yep5z6lz",variantClassNames:{variant:{active:"_1yep5z6136 _1yep5z6124",warning:"_1yep5z6136 _1yep5z6124",error:"_1yep5z6136 _1yep5z6124",success:"_1yep5z6136 _1yep5z6124",denied:"_1yep5z6136 _1yep5z6124","warning-tinted":"_1yep5z612x _1yep5z611u","error-tinted":"_1yep5z612p _1yep5z611m","active-tinted":"_1yep5z6131 _1yep5z611y","success-tinted":"_1yep5z612t _1yep5z611q","denied-tinted":"_1yep5z6137 _1yep5z6127"}},defaultVariants:{},compoundVariants:[]}),PF=j({defaultClassName:"wf9zfnb _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ly _1yep5z6ln _1yep5z6la _1yep5z6lr _1yep5z6ls _1yep5z6lp",variantClassNames:{isFocusVisible:{true:"_1yep5z617w _1yep5z6140 _1yep5z617y"},isHovered:{true:"wf9zfnd"},variant:{active:"wf9zfne",warning:"wf9zfnf",error:"wf9zfng",success:"wf9zfnh",denied:"wf9zfni","warning-tinted":"wf9zfnj","error-tinted":"wf9zfnk","active-tinted":"wf9zfnl","success-tinted":"wf9zfnm","denied-tinted":"wf9zfnn"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocusVisible:false},"_1yep5z61ty _1yep5z61tx"],[{variant:"active",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"warning",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"error",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"success",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"denied",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"active-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61q1"],[{variant:"warning-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61px"],[{variant:"error-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61pp"],[{variant:"success-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61pt"],[{variant:"denied-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61q6"]]}),SF="wf9zfno",DF={active:"wf9zfnp",warning:"wf9zfnq",error:"wf9zfnr",success:"wf9zfns",denied:"wf9zfnt","active-tinted":"wf9zfnu","warning-tinted":"wf9zfnv","error-tinted":"wf9zfnw","success-tinted":"wf9zfnx","denied-tinted":"wf9zfny"},kF=j({defaultClassName:"wf9zfnz _1yep5z6f5",variantClassNames:{isPopupOpen:{true:"wf9zfn10",false:"wf9zfn11"}},defaultVariants:{},compoundVariants:[]});var ete={warning:WarningIcon,error:ErrorCircleIcon,info:CircleFilledIcon,success:CheckmarkIcon$2},RF=qn.forwardRef(({className:e,style:t,children:r,title:o,description:n,variant:i="active",icon:a=ete[i],headerClassName:l,headerStyle:s,panelClassName:u,panelStyle:c,shouldTruncateTitle:d,...p},m)=>{let f=Ix(p),y=useRef(null),b=useRef(null),{buttonProps:g,panelProps:x}=wx(p,f,b);return jsxs("div",{className:_(CF({variant:i}),"BaselineUI-Disclosure",e),style:t,ref:m,"data-expanded":f.isExpanded,children:[jsx(IF,{ref:y,...g,variant:i,title:o,description:n,icon:a,className:l,style:s,isExpanded:f.isExpanded,shouldTruncateTitle:d}),jsxs("div",{ref:b,...x,className:_(SF,"BaselineUI-Disclosure-Panel",u),style:c,"data-expanded":f.isExpanded,children:[jsx(ze,{className:DF[i]}),r]})]})});RF.displayName="Disclosure";var IF=qn.forwardRef(({className:e,style:t,variant:r="active",icon:o,title:n,description:i,shouldTruncateTitle:a,...l},s)=>{let{isFocusVisible:u,focusProps:c}=ne(),{hoverProps:d,isHovered:p}=ae({}),m=pe(s),{buttonProps:f,isPressed:y}=ft(l,m),b=ve({"data-focus-visible":u,"data-hovered":p,"data-pressed":y});return jsx("button",{...M(f,c,d),ref:m,className:_(PF({isFocusVisible:u,isHovered:p,variant:r}),"BaselineUI-Disclosure-Header",e),style:t,...b,children:jsx(Jg,{title:n,description:i,variant:r,icon:o,shouldTruncateTitle:a,renderTrailingElement:()=>jsx(J,{padding:"sm",display:"inline-flex",children:jsx(CaretUpIcon,{size:12,className:kF({isPopupOpen:l.isExpanded})})}),style:{border:"none"}})})});IF.displayName="DisclosureHeader";var _F="_1h7pyh00",LF="_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u0";var MF=qn.forwardRef(({className:e,style:t,children:r,childClassName:o,childStyle:n,elementType:i="button",...a},l)=>{let s=qn.Children.only(r);if(!qn.isValidElement(s))throw new Error("Actionable: children must be a single React element");let u=pe(l),{buttonProps:c,isPressed:d}=ft({...a,elementType:i},u),{isFocusVisible:p,isFocused:m,focusProps:f}=ne(),{hoverProps:y,isHovered:b}=ae({isDisabled:a.isDisabled}),g=ve({"data-focused":m,"data-focus-visible":p,"data-disabled":a.isDisabled,"data-hovered":b,"data-pressed":d}),x={isHovered:b,isFocused:m,isPressed:d,isDisabled:a.isDisabled,isFocusVisible:p},h=qn.cloneElement(s,{className:_(s.props.className,{[LF]:p},typeof o=="function"?o(x):o,"BaselineUI-Actionable-Child"),style:{...s.props.style,...typeof n=="function"?n(x):n}});return jsx(i==="button"?"button":i,{...M(c,y,f),...g,className:_(_F,"BaselineUI-Actionable",typeof e=="function"?e(x):e),ref:u,style:typeof t=="function"?t(x):t,children:h})});MF.displayName="Actionable";var AF="_1vghdeb0";var rte=new Set(["\u2318","\u2325","\u21E7","\u21A9","\u2423","\u2303"]),ote="+";function nte(e,t){if(t){let r=[],o="";for(let n of e)rte.has(n)?(o&&r.push(o),r.push(n),o=""):o+=n;return o&&r.push(o),r.length===1&&r[0].includes("+")?r[0].split("+").map(n=>n.trim()).filter(Boolean):r}return e.split("+").map(r=>r.trim()).filter(Boolean)}var D1=qn.forwardRef(({children:e,className:t,style:r},o)=>jsx(J,{elementType:"kbd",ref:o,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"xs",borderWidth:1,borderStyle:"solid",borderColor:"border.medium",backgroundColor:"background.primary.strong",color:"text.primary",typography:"label.md.medium",paddingX:"md",paddingY:"sm",className:_(AF,"BaselineUI-Kbd-Key",t),style:r,children:e}));D1.displayName="KbdKey";var OF=qn.forwardRef(({children:e,shouldUseSymbol:t=false,className:r,style:o},n)=>{let i=gy(e,t),a=nte(i,t);return a.length===1?jsx(D1,{ref:n,className:_("BaselineUI-Kbd",r),style:o,children:a[0]}):jsx(J,{elementType:"span",display:"inline-flex",alignItems:"center",gap:"md",ref:n,className:_("BaselineUI-Kbd",r),style:o,children:a.map((l,s)=>jsxs(qn.Fragment,{children:[jsx(D1,{children:l}),s<a.length-1?jsx(Je,{type:"label",size:"sm",children:ote}):null]},l))})});OF.displayName="Kbd";var NF=j({defaultClassName:"_1enn18vd _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"}},defaultVariants:{},compoundVariants:[]}),FF=j({defaultClassName:"_1enn18v2 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6dw _1yep5z6ex _1yep5z6g1 _1yep5z6lq",variantClassNames:{allowsSorting:{true:"_1enn18v3"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"}},defaultVariants:{},compoundVariants:[]}),KF=j({defaultClassName:"_1enn18vi _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),VF=j({defaultClassName:"_1enn18v8 _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isHovered:{true:"_1yep5z6125"},isSelected:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"},isDisabled:{true:"_1enn18vc"}},defaultVariants:{},compoundVariants:[]}),BF=j({defaultClassName:"_1enn18vf",variantClassNames:{sortDirection:{ascending:"_1enn18vg",descending:"_1enn18vh"}},defaultVariants:{},compoundVariants:[]}),HF="_1enn18v5",$F="_1enn18v0",jF="_1enn18v1",GF="_1enn18v6",UF="_1enn18v7";var WF=qn.forwardRef(({className:e,style:t,...r},o)=>jsx(ST,{ref:o,className:n=>_(typeof e=="function"?e(n):e,$F,"BaselineUI-Table"),style:t,...r}));WF.displayName="Table";var qF=qn.forwardRef(({className:e,style:t,...r},o)=>jsx(DT,{ref:o,className:n=>_(typeof e=="function"?e(n):e,jF,"BaselineUI-TableHeader"),style:t,...r}));qF.displayName="TableHeader";var XF=qn.forwardRef(({className:e,style:t,children:r,...o},n)=>jsx(kT,{ref:n,className:i=>_(typeof e=="function"?e(i):e,FF({allowsSorting:i.allowsSorting,isFocusVisible:i.isFocusVisible}),"BaselineUI-Column"),style:t,...o,children:i=>jsxs(Fragment,{children:[typeof r=="function"?r(i):r,i.allowsSorting&&i.sortDirection?jsx(CaretDownIcon$1,{className:BF({sortDirection:i.sortDirection}),"aria-hidden":"true"}):null]})}));XF.displayName="Column";var YF=qn.forwardRef(({children:e,className:t,dependencies:r,isLoading:o,items:n,onLoadMore:i,scrollOffset:a,loadingLabel:l,style:s,...u},c)=>{let{formatMessage:d}=fe();return process.env.NODE_ENV!=="production"&&o&&!i&&console.warn("[Baseline UI] TableBody: `isLoading` is set but `onLoadMore` is not provided. The loading spinner will not be displayed. Either provide `onLoadMore` or remove `isLoading`."),jsxs(ET,{ref:c,className:p=>_(typeof t=="function"?t(p):t,HF,"BaselineUI-TableBody"),style:s,...u,children:[n&&typeof e=="function"?jsx(_t,{items:n,dependencies:r,children:e}):typeof e=="function"?null:e,i?jsx(RT,{className:_(GF,"BaselineUI-TableLoadMoreItem"),isLoading:o,onLoadMore:i,scrollOffset:a,children:o?jsx("div",{className:_(UF,"BaselineUI-TableLoadMoreItemContent"),children:jsx(mn,{"aria-label":l??d(lte.loading),size:"sm"})}):null}):null]})});YF.displayName="TableBody";var ZF=qn.forwardRef(({className:e,style:t,...r},o)=>jsx(zT,{ref:o,className:n=>_(typeof e=="function"?e(n):e,VF({isHovered:n.isHovered,isSelected:n.isSelected,isFocusVisible:n.isFocusVisible,isDisabled:n.isDisabled}),"BaselineUI-Row"),style:t,...r}));ZF.displayName="Row";var JF=qn.forwardRef(({className:e,style:t,...r},o)=>jsx(wT,{ref:o,className:n=>_(typeof e=="function"?e(n):e,NF({isFocusVisible:n.isFocusVisible}),"BaselineUI-Cell"),style:t,...r}));JF.displayName="Cell";var lte=Se({loading:{defaultMessage:"Loading",id:"bui.table.loading"}});function ute(e){let{scrollRef:t,...r}=e;return Es({ref:t??{current:null},isDisabled:!t}),Ba({getItems:o=>[...o].map(n=>({"text/plain":String(n)})),renderDropIndicator(o){return jsx(ko,{target:o,className:({isDropTarget:n})=>_(KF({isDropTarget:n}),"BaselineUI-DropIndicator")})},...r})}var eK="_12qflm1";var tK=qn.forwardRef(({className:e,style:t},r)=>jsx("div",{className:_(eK,"BaselineUI-Skeleton",e),style:t,"aria-hidden":"true",ref:r}));tK.displayName="Skeleton";var rK={"ar-AE":{steplist:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062E\u0637\u0648\u0627\u062A"},"bg-BG":{steplist:"\u0421\u043F\u0438\u0441\u044A\u043A \u0441\u044A\u0441 \u0441\u0442\u044A\u043F\u043A\u0438"},"cs-CZ":{steplist:"Seznam krok\u016F"},"da-DK":{steplist:"Trinliste"},"de-DE":{steplist:"Schrittliste"},"el-GR":{steplist:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03B2\u03B7\u03BC\u03AC\u03C4\u03C9\u03BD"},"en-US":{steplist:"Step List"},"es-ES":{steplist:"Lista de pasos"},"et-EE":{steplist:"Sammude loend"},"fi-FI":{steplist:"Vaiheluettelo"},"fr-FR":{steplist:"Liste des \xE9tapes"},"he-IL":{steplist:"\u05E8\u05E9\u05D9\u05DE\u05EA \u05E6\u05E2\u05D3\u05D9\u05DD"},"hr-HR":{steplist:"Lista koraka"},"hu-HU":{steplist:"L\xE9p\xE9sek list\xE1ja"},"it-IT":{steplist:"Elenco dei passaggi"},"ja-JP":{steplist:"\u624B\u9806\u30EA\u30B9\u30C8"},"ko-KR":{steplist:"\uB2E8\uACC4 \uBAA9\uB85D"},"lt-LT":{steplist:"\u017Dingsni\u0173 s\u0105ra\u0161as"},"lv-LV":{steplist:"Darb\u012Bbu saraksts"},"nb-NO":{steplist:"Trinnliste"},"nl-NL":{steplist:"Stappenlijst"},"pl-PL":{steplist:"Lista krok\xF3w"},"pt-BR":{steplist:"Lista de etapas"},"pt-PT":{steplist:"Lista de passos"},"ro-RO":{steplist:"Lista de pa\u0219i"},"ru-RU":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u0448\u0430\u0433\u043E\u0432"},"sk-SK":{steplist:"Zoznam krokov"},"sl-SI":{steplist:"Seznam korakov"},"sr-SP":{steplist:"Lista koraka"},"sv-SE":{steplist:"Steglista"},"tr-TR":{steplist:"Ad\u0131m Listesi"},"uk-UA":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u043A\u0440\u043E\u043A\u0456\u0432"},"zh-CN":{steplist:"\u6B65\u9AA4\u5217\u8868"},"zh-TW":{steplist:"\u6B65\u9A5F\u6E05\u55AE"}};function k1(e,t,r){let{"aria-label":o}=e,{listProps:n}=yi({...e,...t,allowsTabNavigation:true,ref:r}),i=Te(rK,"@react-aria/steplist");return {listProps:{...{...M(n,oe(e,{labelable:true})),"aria-label":o||i.format("steplist")},tabIndex:void 0}}}function E1(e){let t=Xf({...e,onSelectionChange:e.onSelectionChange?f=>{f!=null&&e.onSelectionChange?.(f);}:void 0}),[r,o]=ye(e.lastCompletedStep,e.defaultLastCompletedStep??null,e.onLastCompletedStepChange),{setSelectedKey:n,selectedKey:i,collection:a}=t,{indexMap:l,keysLinkedList:s}=useMemo(()=>yte(a),[a]),u=i!=null?l.get(i):0,c=useCallback(f=>f===void 0?false:f!==null&&r!==null&&l.has(f)&&l.has(r)&&l.get(f)<=l.get(r),[l,r]),d=useCallback((f,y)=>{let b=null;if(f&&f.size>0)for(b=f.getFirstKey();b!==f.getLastKey()&&b&&(y.has(b)||c(b));)b=f.getKeyAfter(b);return b},[c]);useEffect(()=>{let f=t.selectedKey;(t.selectionManager.isEmpty||f==null||!t.collection.getItem(f))&&(f=d(t.collection,t.disabledKeys),f!==null&&t.selectionManager.replaceSelection(f)),t.selectionManager.focusedKey==null&&t.selectionManager.setFocusedKey(f);let y=(r!==null?l.get(r):-1)??-1;u!==void 0&&u>0&&u>y+1&&f!==null&&s.has(f)&&o(s.get(f));});function p(f){if(e.isDisabled||t.disabledKeys.has(f)||e.isReadOnly)return false;if(c(f))return true;let y=s.get(f);return c(y)||f===t.collection.getFirstKey()}function m(f){let y=s.get(f);y&&!c(y)&&o(y),n(f);}return {...t,setSelectedKey:m,setLastCompletedStep:o,isCompleted:c,isSelectable:p}}function yte(e){let t=new Map,r=new Map,o=0,n;for(let i of e)t.set(i.key,o),r.set(i.key,n?.key),n=i,o++;return {indexMap:t,keysLinkedList:r}}var nK=j({defaultClassName:"_41r3q2q _1yep5z6jv _1yep5z6jw _1yep5z6jx",variantClassNames:{variant:{condensed:"_41r3q2r _1yep5z617n",expanded:"_41r3q2s _1yep5z6uc _1yep5z6ud _1yep5z6ue _1yep5z6s0 _1yep5z6s1 _1yep5z6s2 _1yep5z6167 _1yep5z6168 _1yep5z6169"},status:{complete:"_1yep5z612i",active:"_41r3q2u",incomplete:"_41r3q2v"}},defaultVariants:{},compoundVariants:[]}),iK=j({defaultClassName:"_1yep5z6ev",variantClassNames:{size:{sm:"_1yep5z6zy",md:"_1yep5z6101"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),aK=j({defaultClassName:"_41r3q28 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lz _1yep5z6m1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk",variantClassNames:{size:{sm:"_41r3q29 _1yep5z6zy",md:"_41r3q2a _1yep5z6101"},status:{complete:"_41r3q2b _1yep5z612i _1yep5z6113",active:"_1yep5z6124 _1yep5z610x _1yep5z613a",incomplete:"_1yep5z6124 _1yep5z610x _1yep5z6137"},isDisabled:{true:"_41r3q2e"},isFocusVisible:{true:"_41r3q2f"}},defaultVariants:{},compoundVariants:[[{status:"complete",isDisabled:true},"_41r3q2g _1yep5z61op _1yep5z61n6"],[{status:"active",isDisabled:true},"_1yep5z61o7 _1yep5z61n4 _1yep5z61ph"],[{status:"incomplete",isDisabled:true},"_1yep5z61o7 _1yep5z61n4 _1yep5z61ph"]]}),lK=j({defaultClassName:"_41r3q23 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{variant:{condensed:"_1yep5z617n _1yep5z6vi _1yep5z6vj _1yep5z6vk",expanded:"_41r3q25 _1yep5z6167 _1yep5z6168 _1yep5z6169"},isLast:{true:"_41r3q26"}},defaultVariants:{},compoundVariants:[]}),sK="_41r3q27 _1yep5z60 _1yep5z61 _1yep5z62 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lp",uK=j({defaultClassName:"_41r3q20 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{condensed:"_1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6vi _1yep5z6vj _1yep5z6vk",expanded:"_1yep5z615g _1yep5z615h _1yep5z615i _1yep5z617q _1yep5z617p _1yep5z6wi _1yep5z6wj _1yep5z6wk"}},defaultVariants:{},compoundVariants:[]}),cK="_41r3q2h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jg _1yep5z6jh _1yep5z6ji _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z69c _1yep5z69d _1yep5z69e",dK=j({defaultClassName:"_1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6101",md:"_1yep5z6104"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});function z1(e,t,r){let{key:o}=e,{selectionManager:n,selectedKey:i}=t,a=!t.isSelectable(o),{itemProps:l}=Rr({isDisabled:a,key:o,ref:r,selectionManager:n});return {stepProps:{...l,onKeyDown:c=>{let{key:d}=c;(d==="ArrowDown"||d==="ArrowUp")&&(c.preventDefault(),c.stopPropagation()),l.onKeyDown?.(c);},role:"link","aria-current":i===o?"step":void 0,"aria-disabled":a?true:void 0,tabIndex:a?void 0:0}}}function mK({state:e,item:t,size:r,variant:o,index:n,isLast:i,stepLabel:a,completedLabel:l}){let s=useRef(null),u=fe(),{stepProps:c}=z1({key:t.key},e,s),{hoverProps:d,isHovered:p}=ae({}),{focusProps:m,isFocused:f,isFocusVisible:y}=ne(),b=e.isCompleted(t.key),g=e.selectedKey===t.key,x=b?"complete":g?"active":"incomplete",h=e.disabledKeys.has(t.key),v=t["aria-label"],C=!!v&&!t.description,T=o==="expanded"&&!!t.title&&!C,P=o==="expanded"&&!!t.description,k=t.title||((typeof a=="function"?a({index:n+1}):a)??u.formatMessage(pK.step,{index:n+1})),S=r==="sm"?CheckmarkIcon$3:CheckmarkIcon$2;return jsxs("li",{className:_("BaselineUI-Stepper-Item",lK({variant:o,isLast:i})),"data-status":x,children:[jsxs("a",{...M(c,d,m),ref:s,"aria-label":v||void 0,className:_("BaselineUI-Stepper-StepLink",sK),"data-status":x,"data-hovered":p||void 0,"data-focused":f||void 0,"data-focus-visible":y||void 0,"data-disabled":h||void 0,children:[jsx("span",{className:_("BaselineUI-Stepper-Indicator",aK({size:r,status:x,isDisabled:h,isFocusVisible:y})),"aria-hidden":"true",children:b?jsx(S,{}):jsx("span",{children:n+1})}),b?jsx(Ne,{children:l??u.formatMessage(pK.completed)}):null,T?jsxs("span",{className:_("BaselineUI-Stepper-Text",cK),children:[jsx("span",{className:_("BaselineUI-Stepper-Title",dK({size:r,isDisabled:h})),children:t.title}),P?jsx("span",{className:_("BaselineUI-Stepper-Description",iK({size:r,isDisabled:h})),children:t.description}):null]}):v?null:jsx(Ne,{children:k})]}),!i&&jsx("span",{className:_("BaselineUI-Stepper-Connector",nK({variant:o,status:x})),"aria-hidden":"true"})]})}var pK=Se({step:{defaultMessage:"Step {index}",id:"bui.stepper.step"},completed:{defaultMessage:"Completed",id:"bui.stepper.completed"}});var fK=qn.forwardRef(function(t,r){let{items:o,variant:n="expanded",size:i="md",selectedStep:a,defaultSelectedStep:l,onSelectionChange:s,lastCompletedStep:u,defaultLastCompletedStep:c,onLastCompletedStepChange:d,isDisabled:p,className:m,style:f,"aria-label":y,stepLabel:b,completedLabel:g}=t,x=fe(),h=useMemo(()=>new Set(o.filter(S=>S.isDisabled).map(S=>S.key)),[o]),v=useMemo(()=>o.map(S=>jsx(mo,{textValue:S.title??String(S.key),children:S.title??""},S.key)),[o]),C=useMemo(()=>new Map(o.map(S=>[S.key,S])),[o]),T=E1({children:v,selectedKey:a,defaultSelectedKey:l,onSelectionChange:s,lastCompletedStep:u,defaultLastCompletedStep:c,onLastCompletedStepChange:d,disabledKeys:h,isDisabled:p}),P=pe(r),{listProps:k}=k1({children:v,"aria-label":y||x.formatMessage(xte.label)},T,P);return jsx("ol",{...k,ref:P,className:_("BaselineUI-Stepper",uK({variant:n}),m),style:f,"data-variant":n,"data-size":i,children:[...T.collection].map((S,w,E)=>{let z=C.get(S.key);return z?jsx(mK,{state:T,item:z,size:i,variant:n,index:w,isLast:w===E.length-1,stepLabel:b,completedLabel:g},S.key):null})})});fK.displayName="Stepper";var xte=Se({label:{defaultMessage:"Progress",id:"bui.stepper.label"}});var yK="_1x35j5g0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln _1yep5z6lq",bK=j({defaultClassName:"_1x35j5g1 _1yep5z68f _1yep5z68g _1yep5z68h _1yep5z663 _1yep5z664 _1yep5z665 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1x35j5g2"},isError:{true:"_1x35j5g3"},isDisabled:{true:"_1x35j5g4"}},defaultVariants:{},compoundVariants:[]}),gK="_1x35j5g5 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",hK=j({defaultClassName:"_1x35j5g7 _1yep5z6dy _1yep5z6eu",variantClassNames:{isLoading:{true:"_1yep5z610z"}},defaultVariants:{},compoundVariants:[]}),vK="_1yep5z64r _1yep5z64s _1yep5z64t _1yep5z673 _1yep5z674 _1yep5z675 _1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",xK="_1x35j5g6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jg _1yep5z6jh _1yep5z6ji _1yep5z6kd _1yep5z6ke _1yep5z6kf";var Ste=sprinkles({color:"icon.secondary"}),Dte=sprinkles({color:"support.error.medium"});function kte({item:e,isFocusVisible:t,isDisabled:r,onRemove:o,loadingLabel:n,removeHintLabel:i}){let{formatMessage:a}=fe(),l=!!e.isLoading,s=!!(e.errorMessage||e.errorExplanation),u=!r&&!l&&!!o,c=(typeof n=="function"?n({fileName:e.name}):n)??a(TK.loading,{fileName:e.name}),d=e.name;return l?d=c:u&&(d=(typeof i=="function"?i({fileName:e.name}):i)??a(TK.removeHint,{fileName:e.name})),jsxs("div",{className:bK({isDisabled:r,isFocusVisible:t,isError:s}),"data-error":s||void 0,children:[jsx(Ne,{children:jsx(si,{slot:"label",children:d})}),jsxs("div",{className:gK,children:[jsx(AttachmentsIcon,{width:16,height:16,className:Ste}),jsx("span",{className:xK,children:jsx("span",{className:hK({isLoading:l}),title:e.name,children:e.name})}),jsxs(J,{elementType:"span",display:"flex",alignItems:"center",gap:"xs",flexShrink:0,children:[s?jsx(ErrorCircleFilledIcon,{width:16,height:16,className:Dte}):null,l?jsx(mn,{size:"sm",className:vK,"aria-label":c}):o?jsx(me,{icon:MinusIcon$1,size:"xs",variant:"secondary",excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:r,onPress:()=>{o(e.id);},UNSAFE_isVisuallyInteractiveOnly:true}):null]})]}),s?jsxs(J,{display:"flex",flexDirection:"column",width:"full",paddingY:"md",children:[e.errorMessage?jsx(J,{elementType:"span",typography:"label.sm.medium",color:"support.error.medium",children:e.errorMessage}):null,e.errorExplanation?jsx(J,{elementType:"span",typography:"label.sm.medium",color:"text.helper",children:e.errorExplanation}):null]}):null]})}var PK=qn.forwardRef(({className:e,style:t,items:r,onRemove:o,disabledKeys:n,loadingLabel:i,removeHintLabel:a,"aria-label":l,"aria-labelledby":s,"aria-describedby":u,"aria-details":c},d)=>{let p=n==="all",m=qn.useMemo(()=>new Set(n&&n!=="all"?n:[]),[n]),f=qn.useMemo(()=>new Map(r.map(h=>[h.id,h])),[r]),y=qn.useMemo(()=>r.map(h=>({id:h.id,label:h.name})),[r]),b=qn.useCallback((h,{isFocusVisible:v})=>{let C=f.get(h.id);return C?jsx(kte,{item:C,isFocusVisible:v,isDisabled:p||m.has(C.id),onRemove:o,loadingLabel:i,removeHintLabel:a}):null},[f,p,m,o,i,a]);if(!r.length)return null;let g=p?y.map(h=>h.id):m,x=h=>{if(!o||h.key!=="Delete"&&h.key!=="Backspace"||p)return;let T=$(h)?.closest("[data-key]")?.dataset.key;T&&(m.has(T)||f.get(T)?.isLoading||(h.preventDefault(),o(T)));};return jsx(J,{ref:d,className:_("BaselineUI-FileList",e),style:t,onKeyDown:x,children:jsx(dn,{"aria-label":l,"aria-labelledby":s,"aria-describedby":u,"aria-details":c,items:y,selectionMode:"none",disabledKeys:g,className:yK,renderOption:b})})});PK.displayName="FileList";var TK=Se({loading:{id:"bui.fileList.loading",defaultMessage:"Loading {fileName}"},removeHint:{id:"bui.fileList.removeHint",defaultMessage:"{fileName}, press Delete or Backspace to remove"}});var SK="_1yep5z6dv _1yep5z6ew",DK=j({defaultClassName:"_12y0zas5 _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ln _1yep5z6dy _1yep5z6f1",variantClassNames:{isDisabled:{true:"_12y0zas6 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),kK=j({defaultClassName:"_12y0zas0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln _1yep5z6g3",variantClassNames:{isInline:{true:"_1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6183 _1yep5z6184 _1yep5z6138"},isDropTarget:{true:"_1yep5z612e"},isError:{true:"_1yep5z6182 _1yep5z6185 _1yep5z612q"},isDisabled:{true:"_1yep5z6182 _1yep5z6184 _1yep5z613e"}},defaultVariants:{},compoundVariants:[[{isInline:true,isError:true},"_1yep5z61u6 _1yep5z61u8 _1yep5z61ot"]]}),EK=j({defaultClassName:"_12y0zas7 _1yep5z6f6",variantClassNames:{isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),zK="_1yep5z6dv _1yep5z6ee",wK="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",RK="_1yep5z6dy _1yep5z6ev",IK="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ln";var Ete="Drop files here or click to upload",zte="Upload",LK=qn.forwardRef(({className:e,style:t,variant:r="dropzone",isInline:o=false,label:n,description:i,onAdd:a,accept:l,allowsMultiple:s=true,isDisabled:u,errorMessage:c,buttonLabel:d=zte,dropzoneLabel:p=Ete},m)=>{let f=qn.useId(),y=qn.useId(),b=qn.useId(),g=qn.useRef(null),x=qn.useCallback(E=>{if(!E.length)return;let z=s?E:E.slice(0,1);a?.(z);},[s,a]),h=E=>{E&&x([...E]);},{dropProps:v,isDropTarget:C}=_a({ref:g,onDrop:async E=>{x(await ks({items:E.items,accept:l}));}}),{clipboardProps:T}=Oc({isDisabled:u,onPaste:async E=>{x(await ks({items:E,accept:l}));}}),P=[i?y:null,c?b:null].filter(Boolean).join(" ")||void 0,k=n||i?jsxs("div",{className:wK,children:[n?jsx("div",{id:f,className:RK,children:n}):null,i?jsx("div",{id:y,className:SK,children:i}):null]}):null,S=r==="dropzone"?jsx(rs,{acceptedFileTypes:l?[l]:void 0,allowsMultiple:s,onSelect:h,children:jsx(Ps,{isDisabled:u,children:jsx("div",{ref:g,...M(u?{}:v,T),role:"button",tabIndex:u?-1:0,"aria-labelledby":n?f:void 0,"aria-describedby":P,"aria-disabled":u||void 0,"data-testid":"file-uploader-dropzone",className:kK({isInline:o,isDropTarget:C,isDisabled:u,isError:!!c}),children:jsxs("div",{className:DK({isDisabled:u}),children:[jsx(UploadIcon,{width:20,height:20,className:EK({isDisabled:u})}),jsx("span",{children:p})]})})})}):jsx(rs,{acceptedFileTypes:l?[l]:void 0,allowsMultiple:s,onSelect:h,children:jsx(Me,{variant:"primary",iconStart:UploadIcon,label:d,isDisabled:u,"aria-describedby":P})}),w=c?jsx(J,{id:b,elementType:"span",role:"alert",className:zK,children:c}):null;return jsxs("div",{ref:m,className:_(IK,"BaselineUI-FileUploader",e),style:t,"data-variant":r,"data-testid":"file-uploader",children:[k,S,w]})});LK.displayName="FileUploader";Pp();var MK={};O1(MK,{useButton:()=>ft,useFocusManager:()=>Ol,useFocusWithin:()=>dt,useTextField:()=>$r});var AK={};O1(AK,{useListData:()=>py,useTreeData:()=>yC});
|
|
43
|
-
export{SA as Accordion,EA as AccordionItem,Me as ActionButton,JO as ActionGroup,qJ as ActionGroupItem,me as ActionIconButton,MF as Actionable,Ng as AlertDialog,eO as AudioPlayer,yh as Autocomplete,Ys as Avatar,J as Box,IO as ButtonSelect,Gb as Calendar,JF as Cell,iA as Checkbox,bF as Code,Qs as ColorInput,Ai as ColorSwatch,rN as ColorSwatchPicker,XF as Column,jO as ComboBox,PN as DateField,mA as DateFormat,ky as DefaultListOption,C9 as DeviceProvider,Wy as DeviceProviderContext,Ar as Dialog,eL as DialogTitle,RF as Disclosure,fI as DomNodeRenderer,ib as Drawer,Rg as EMPTY_SELECTION_STATE,L0 as Editor,sp as EditorCore,wS as EditorProvider,ZL as FileInput,PK as FileList,LK as FileUploader,Rt as FocusScope,Cl as Focusable,A9 as FrameProvider,F5 as FreehandCanvas,xN as GlobalToastRegion,Ss as GridLayout,XO as GridList,o6 as Group,e_ as I18nProvider,WQ as Icon,R5 as IconColorInput,og as IconColorInputButton,UM as IconSelect,pL as IconSlider,$5 as ImageDropZone,PO as ImageGallery,qb as InlineAlert,OF as Kbd,UL as Link,an as ListBox,rn as ListLayout,Od as LocaleAwareGridLayout,G0 as Markdown,Tb as Menu,r6 as MessageFormat,un as Modal,gX as ModalClose,cn as ModalContent,ng as ModalTrigger,Bs as NumberFormat,Kn as NumberInput,pA as Pagination,DQ as Panel,LQ as PanelGroup,AQ as PanelResizeHandle,RN as PointPicker,eF as PointPickerContent,uF as PointPickerDisplay,Mo as Popover,Et as PopoverContent,Ao as PopoverTrigger,Mr as Portal,qy as PortalContainerProvider,Ps as Pressable,W5 as Preview,aM as ProgressBar,mn as ProgressSpinner,oUe as REACT_ARIA_INCOMPATIBLE_KEYS,t6 as RadioGroup,oA as RangeCalendar,yM as Reaction,ZF as Row,F0 as ScrollControlButton,fb as SearchInput,yo as Select,ze as Separator,_e as Size,tK as Skeleton,Ms as Slider,Jg as StatusCard,fK as Stepper,TL as Switch,BA as TabItem,WF as Table,YF as TableBody,qF as TableHeader,fs as TableLayout,VA as Tabs,Nb as Tag,Fb as TagGroup,wN as TaggedPagination,Je as Text,_i as TextInput,tb as ThemeProvider,iN as TimeField,Zf as ToastQueue,kb as ToggleButton,qr as ToggleIconButton,mg as Toolbar,ot as Tooltip,mN as TreeView,dn as UNSAFE_ListBox,MK as UNSAFE_aria,AK as UNSAFE_stately,WM as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,cy as Virtualizer,Ne as VisuallyHidden,Yc as WaterfallLayout,at as announce,Si as areColorsEqual,gC as booleanOrObjectToConfig,RGe as calculateFontSizeToFitWidth,wR as capitalize,Xt as clamp,_ as classNames,ER as cleanKeyFromGlobImport,nm as clearAnnouncer,Se as defineMessages,ZD as destroyAnnouncer,Ds as devWarnOnce,GC as directionVar,Z7e as disableAnimations,J7e as enableAnimations,oe as filterDOMProps,ve as filterTruthyValues,DR as findFocusableElements,fy as getAbsoluteBounds,_Ge as getAbsolutePosition,ed as getActiveElement,wGe as getHTMLElement,gy as getOsSpecificKeyboardShortcutLabel,U as getOwnerDocument,RR as getPlainText,by as getSvgPathFromStroke,my as getTextDimensions,D0 as handleEditorShortcut,qee as iconMap,he as invariant,IGe as isFocusableElement,QGe as isInIframe,IR as isInShadowDOM,kR as isInputThatOpensKeyboard,PGe as isInsideOverlayContent,PR as isRect,vC as isUrl,t_ as legacyMessageIdMap,GGe as lightenColor,M as mergeProps,se as mergeRefs,a4e as messageIds,ks as onDropOrPaste,Le as parseColor,LR as safeSpreadProps,or as useCollator,Lt as useDateFormatter,ki as useDevice,F7 as useDragAndDrop,zS as useEditable,kS as useEditor,Gn as useEditorContext,hi as useFilter,ne as useFocusRing,W1 as useFocusVisible,M9 as useFrameDimensions,fe as useI18n,ee as useId,Ny as useImage,er as useInteractionModality,hI as useIntersectionObserver,Fy as useIsFirstRender,Ae as useKeyboard,py as useListData,Yy as useLiveInteractionModality,i_ as useLocalStorage,Q as useLocale,g4e as useMutationObserver,So as useNumberFormatter,pe as useObjectRef,Kee as usePointProximity,yr as usePortalContainer,Zy as usePreventFocus,Oy as useResizeObserver,ute as useTableDragAndDrop,S4e as useTextSelection,xI as useUndoRedo,UC as useUserPreferences};
|
|
1
|
+
export{a as isInsideOverlayContent}from'./chunk-A6ZQQSAX.mjs';export{a as isInIframe}from'./chunk-IB23KCIW.mjs';export{a as useMutationObserver}from'./chunk-ZLAY7NNY.mjs';export{a as TreeView}from'./chunk-O6AE67ZY.mjs';export{a as UNSAFE_aria}from'./chunk-AGYQLGBZ.mjs';export{c as UNSAFE_stately,a as useListData}from'./chunk-INDVRI57.mjs';export{a as TimeField}from'./chunk-CSPZMYVG.mjs';export{b as GlobalToastRegion,a as ToastQueue}from'./chunk-LZM6UK3C.mjs';export{a as Stepper}from'./chunk-QY3O34WX.mjs';export{a as Switch}from'./chunk-XB657BXX.mjs';export{f as Cell,c as Column,e as Row,a as Table,d as TableBody,b as TableHeader,g as useTableDragAndDrop}from'./chunk-NCADIC3I.mjs';export{b as TabItem,a as Tabs}from'./chunk-ZRWDMNNY.mjs';import'./chunk-TJEK54BW.mjs';export{a as TaggedPagination}from'./chunk-CFDKFUTO.mjs';export{a as RadioGroup}from'./chunk-XJGQXVMR.mjs';export{a as Reaction}from'./chunk-3CWP2VCB.mjs';import'./chunk-CHTLOFCT.mjs';export{a as ScrollControlButton}from'./chunk-YT36W3OS.mjs';export{a as Skeleton}from'./chunk-F2HESRBD.mjs';export{a as Panel,b as PanelGroup,c as PanelResizeHandle}from'./chunk-LQMEFFFM.mjs';export{a as PointPicker,b as PointPickerContent,c as PointPickerDisplay,d as usePointProximity}from'./chunk-QNBBJ5HC.mjs';export{a as clamp}from'./chunk-JBXZ6ZHP.mjs';export{a as usePreventFocus}from'./chunk-63KRQW56.mjs';export{a as useLiveInteractionModality}from'./chunk-UCNHDT36.mjs';export{a as Preview}from'./chunk-ZVODDLGL.mjs';export{a as ProgressBar}from'./chunk-44OUOGJ4.mjs';export{a as Markdown}from'./chunk-VXB5SVQC.mjs';export{a as MessageFormat}from'./chunk-FWAK2OZM.mjs';export{a as Pagination}from'./chunk-DM26KBZ3.mjs';export{a as NumberFormat}from'./chunk-DRYSJSKA.mjs';export{a as Icon}from'./chunk-CAWUDHAE.mjs';export{a as ImageDropZone}from'./chunk-WDJ4GXWF.mjs';export{a as ImageGallery}from'./chunk-7FJMUUHS.mjs';import'./chunk-CWPFUB7B.mjs';export{a as useImage}from'./chunk-NV7KQVPE.mjs';export{a as InlineAlert}from'./chunk-535OT4US.mjs';export{a as useTextSelection}from'./chunk-TO2TQ2LE.mjs';export{a as Kbd}from'./chunk-P5GO3XIS.mjs';export{a as Link}from'./chunk-C5P23FUW.mjs';export{c as EMPTY_SELECTION_STATE,h as Editor,a as EditorCore,g as EditorProvider,e as handleEditorShortcut,f as useEditable,d as useEditor,b as useEditorContext}from'./chunk-H2LXVMBI.mjs';export{a as isUrl}from'./chunk-JI4SJ53O.mjs';export{b as areColorsEqual,a as lightenColor}from'./chunk-GKODQS6E.mjs';export{a as Toolbar}from'./chunk-NKKKKVQ7.mjs';export{a as capitalize,b as getPlainText}from'./chunk-HI44JQA7.mjs';export{a as Menu}from'./chunk-TI5RR7KX.mjs';import'./chunk-A24DWFQ2.mjs';export{a as getOsSpecificKeyboardShortcutLabel}from'./chunk-3UH5CQQF.mjs';import'./chunk-IHLJTHGQ.mjs';export{a as FileInput}from'./chunk-E6VOSF6Z.mjs';export{a as FileList}from'./chunk-RELI5YAS.mjs';export{a as ProgressSpinner}from'./chunk-YCI6BEXQ.mjs';import'./chunk-LZFTBNPW.mjs';export{a as FileUploader}from'./chunk-ZREX7XOO.mjs';import'./chunk-TKQOQVZD.mjs';export{a as onDropOrPaste}from'./chunk-TAYP2OGC.mjs';import'./chunk-IVVZSESM.mjs';import'./chunk-MZ4O6LWG.mjs';export{a as FreehandCanvas}from'./chunk-67MPTBBY.mjs';export{a as getSvgPathFromStroke}from'./chunk-5HXTXIE5.mjs';export{a as useUndoRedo}from'./chunk-MI7DCFP2.mjs';import'./chunk-ELXWR5TS.mjs';import'./chunk-ROHLZINC.mjs';export{a as GridList}from'./chunk-TAROK7TO.mjs';import'./chunk-TEQE6WCH.mjs';import'./chunk-AMQX3KZR.mjs';export{a as Group}from'./chunk-YIGT3OP2.mjs';export{a as ComboBox}from'./chunk-HBBRMEES.mjs';import'./chunk-DOL6RDMF.mjs';export{a as devWarnOnce}from'./chunk-5IC46G5J.mjs';import'./chunk-VCIX4HG7.mjs';export{a as DateField}from'./chunk-S5XX36JC.mjs';import'./chunk-KG5PDPBK.mjs';export{a as DateFormat}from'./chunk-HT55YHTN.mjs';import'./chunk-O57ZEY3V.mjs';export{a as Disclosure}from'./chunk-WSCZ34XO.mjs';export{b as StatusCard,a as iconMap}from'./chunk-5ODZPQL2.mjs';export{a as DomNodeRenderer}from'./chunk-D5EEZT5J.mjs';export{a as ButtonSelect}from'./chunk-HJQZW2VO.mjs';export{b as ToggleButton}from'./chunk-77BAFSDX.mjs';export{a as Calendar,b as RangeCalendar}from'./chunk-LQB4U6GF.mjs';export{e as GridLayout,b as ListLayout,g as LocaleAwareGridLayout,a as Size,f as TableLayout,h as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,d as Virtualizer,c as WaterfallLayout}from'./chunk-TO6OQF2Y.mjs';import'./chunk-N7MTFSWR.mjs';import'./chunk-GXOXYPQQ.mjs';import'./chunk-ENDOKA57.mjs';import'./chunk-UTQ7AIPM.mjs';export{a as Checkbox}from'./chunk-XVBOKL6D.mjs';import'./chunk-ZNN43VZV.mjs';import'./chunk-EA6GA4WC.mjs';import'./chunk-WAOWR7MR.mjs';export{a as Code}from'./chunk-HLDCVJXD.mjs';export{b as ColorInput,c as IconColorInput,a as IconColorInputButton}from'./chunk-NMTDGCRA.mjs';export{a as useLocalStorage}from'./chunk-FTYXFTJV.mjs';export{b as ModalClose,a as ModalTrigger}from'./chunk-DIHILOKU.mjs';export{d as IconSelect,c as Select}from'./chunk-VU2PDOBR.mjs';export{a as TagGroup}from'./chunk-VLQ4S7XC.mjs';export{d as Tag}from'./chunk-VHDXSFQC.mjs';import'./chunk-5ULL6IBX.mjs';export{a as SearchInput}from'./chunk-VG7J427T.mjs';import'./chunk-6F66XVOA.mjs';import'./chunk-EK3RIYMV.mjs';import'./chunk-MXKP7NQ4.mjs';import'./chunk-RC7QITNV.mjs';import'./chunk-NO55UIGK.mjs';export{a as useFilter}from'./chunk-5BAHJXOI.mjs';export{a as useDragAndDrop}from'./chunk-BED7T5CL.mjs';import'./chunk-UCZZLAPB.mjs';export{q as UNSAFE_ListBox}from'./chunk-7AY6C5M5.mjs';import'./chunk-AMYRLAIC.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-SMAYNDQQ.mjs';import'./chunk-AMW7LGCF.mjs';export{d as Autocomplete}from'./chunk-KKJ6XIU3.mjs';import'./chunk-BLHN7I5Z.mjs';import'./chunk-BKDQLDOK.mjs';export{a as ColorSwatchPicker}from'./chunk-K5RKL3WY.mjs';export{a as DefaultListOption,c as ListBox}from'./chunk-RJC3HQDZ.mjs';import'./chunk-WOVAT6U4.mjs';export{a as isInShadowDOM}from'./chunk-GEZGEZAP.mjs';import'./chunk-FJ2JRD3H.mjs';import'./chunk-O66FNQSB.mjs';import'./chunk-AZRPXTYJ.mjs';import'./chunk-YVYMYKYN.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-J7K7I5U2.mjs';import'./chunk-246VHB32.mjs';import'./chunk-OC42IZG2.mjs';import'./chunk-OMT6ZWSV.mjs';import'./chunk-ILBAZFBL.mjs';export{I as ColorSwatch}from'./chunk-UMABUZ67.mjs';export{a as parseColor}from'./chunk-EU75HMPG.mjs';export{a as Accordion,b as AccordionItem}from'./chunk-HWOMGFBL.mjs';export{a as REACT_ARIA_INCOMPATIBLE_KEYS,b as safeSpreadProps}from'./chunk-Q5UMLFN3.mjs';export{a as ActionGroup,b as ActionGroupItem}from'./chunk-EMCEJKBJ.mjs';import'./chunk-6ZV4UYEG.mjs';import'./chunk-NGZRN4SF.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-PAQQ7MQG.mjs';import'./chunk-DECHIERQ.mjs';export{a as Actionable}from'./chunk-U2ODAIZG.mjs';export{a as AlertDialog}from'./chunk-KAYY6L7Y.mjs';import'./chunk-4SW77SGW.mjs';export{a as TextInput}from'./chunk-RJWPSJX2.mjs';import'./chunk-2PH5GN2S.mjs';import'./chunk-2JANDORZ.mjs';import'./chunk-2MS356Q7.mjs';export{a as AudioPlayer}from'./chunk-4ILKZKTW.mjs';import'./chunk-MHUFXHRU.mjs';export{b as IconSlider,a as Slider}from'./chunk-3X2QM7GV.mjs';export{a as ToggleIconButton}from'./chunk-YOBESAXG.mjs';import'./chunk-CFLEBB5T.mjs';import'./chunk-MUNFBB7D.mjs';export{a as NumberInput}from'./chunk-IUQOFRI3.mjs';import'./chunk-KY3JKXSX.mjs';import'./chunk-WAFYFWH4.mjs';import'./chunk-Y6XQJ4X2.mjs';export{a as PopoverContent}from'./chunk-MEYMETYC.mjs';import'./chunk-MFH2E2GU.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-KCHAWPUN.mjs';import'./chunk-BJVFZYUV.mjs';import'./chunk-5KD2MNNX.mjs';import'./chunk-UQJGSVXP.mjs';import'./chunk-RFTDIXEG.mjs';export{a as Dialog,b as DialogTitle}from'./chunk-PR3HWZFH.mjs';export{a as Drawer}from'./chunk-HEO2XVRN.mjs';import'./chunk-J7EAQSKX.mjs';import'./chunk-IW4GXU75.mjs';export{b as Modal,e as ModalContent}from'./chunk-PHZZLBH3.mjs';import'./chunk-JQ4ZGZPV.mjs';export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'./chunk-AKES5B6C.mjs';import'./chunk-OAY74XPB.mjs';export{a as Text}from'./chunk-2WAKHFPS.mjs';import'./chunk-F2X474RV.mjs';import'./chunk-5ANNWMLJ.mjs';export{a as Separator}from'./chunk-NSC53QWT.mjs';import'./chunk-CPSUI4IW.mjs';import'./chunk-AC7OXVHA.mjs';import'./chunk-EX2LI2CV.mjs';import'./chunk-SAZLJ66W.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-CGFLGZL4.mjs';export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'./chunk-GX2IOGYR.mjs';export{a as cleanKeyFromGlobImport}from'./chunk-XXANV3FM.mjs';export{b as legacyMessageIdMap,a as messageIds}from'./chunk-F7PGMOQF.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-M5M3EPG5.mjs';import'./chunk-W6QO7FPZ.mjs';export{b as ActionButton}from'./chunk-J3MJZQUJ.mjs';import'./chunk-EZXMEGV7.mjs';export{a as Box}from'./chunk-O7XK2WIX.mjs';export{a as ActionIconButton}from'./chunk-GCZFXILF.mjs';export{a as Tooltip}from'./chunk-MEZNZ5W6.mjs';export{a as useIntersectionObserver}from'./chunk-TIHKHXTS.mjs';import'./chunk-FP5EWPOF.mjs';export{a as useResizeObserver}from'./chunk-TK4QXU3W.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-THRAJMLX.mjs';export{a as Portal}from'./chunk-MLNPTVVX.mjs';export{a as usePortalContainer}from'./chunk-YV3WI6OV.mjs';import'./chunk-V3L4SVVF.mjs';export{f as MotionGlobalConfig,c as ThemeProvider,d as disableAnimations,e as enableAnimations,a as useUserPreferences}from'./chunk-JUXBZ2ZN.mjs';import'./chunk-JJPCZOOI.mjs';export{a as directionVar}from'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';export{d as I18nProvider}from'./chunk-HZHAKW6I.mjs';export{a as useNumberFormatter}from'./chunk-AV4ZP5SY.mjs';import'./chunk-KPEONVLU.mjs';export{c as FrameProvider,a as useFrameDimensions}from'./chunk-QMDDCVAF.mjs';export{a as useIsFirstRender}from'./chunk-DD5FWULD.mjs';export{a as useDevice}from'./chunk-ZGRRD3TU.mjs';import'./chunk-6Z6HOW6T.mjs';import'./chunk-TDXALNX3.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-7PRJIPFA.mjs';export{b as PortalContainerProvider}from'./chunk-OO7BXL2N.mjs';export{a as Pressable}from'./chunk-WWSGOGLA.mjs';import'./chunk-34TYNTXM.mjs';import'./chunk-I3YGB2BE.mjs';export{a as FocusScope}from'./chunk-KUEDQO7P.mjs';export{a as useCollator}from'./chunk-USMC34OO.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-WL27JGVG.mjs';import'./chunk-2RCST7ET.mjs';import'./chunk-BU5H25MV.mjs';import'./chunk-QAUEG3EX.mjs';export{a as useDateFormatter}from'./chunk-CV6JQGJ3.mjs';export{b as useLocale}from'./chunk-N2XGJKZG.mjs';export{b as DeviceProvider,a as DeviceProviderContext}from'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';export{b as VisuallyHidden}from'./chunk-4ZJMZB5B.mjs';import'./chunk-4N6CLPAY.mjs';import'./chunk-FKYHERP4.mjs';import'./chunk-PBFIKNYZ.mjs';import'./chunk-RCBUNCHV.mjs';import'./chunk-5YHNHEDK.mjs';export{b as Popover,j as PopoverTrigger}from'./chunk-4NYPVKDO.mjs';export{a as isRect}from'./chunk-ZLDT2KDZ.mjs';import'./chunk-UUBOEBYZ.mjs';import'./chunk-C342HL26.mjs';import'./chunk-C6OMLVIQ.mjs';import'./chunk-B7PSE5KC.mjs';import'./chunk-VDUFLHKK.mjs';import'./chunk-4PYEGHW5.mjs';import'./chunk-HONWMHMX.mjs';export{a as announce,b as clearAnnouncer,c as destroyAnnouncer}from'./chunk-JJG67M2S.mjs';export{a as invariant}from'./chunk-66CUIXA6.mjs';import'./chunk-6ZFBX7C7.mjs';import'./chunk-PF3OQKXP.mjs';import'./chunk-6IRWW75G.mjs';import'./chunk-MVK5CB64.mjs';import'./chunk-XWLESSHN.mjs';import'./chunk-XTH6B5FE.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-D3IZ4HBL.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-RXSYDMT6.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-X3AXUU3H.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-545KDVGI.mjs';import'./chunk-YS3Y5KGV.mjs';export{b as booleanOrObjectToConfig,a as filterTruthyValues}from'./chunk-RSKKEGJZ.mjs';export{a as useFocusRing}from'./chunk-K6X2BHPP.mjs';export{e as Focusable,a as useKeyboard}from'./chunk-BGMVPFYK.mjs';import'./chunk-YB3KW7JC.mjs';export{g as useFocusVisible,f as useInteractionModality}from'./chunk-Y4DRSGEJ.mjs';import'./chunk-3FYY26ED.mjs';import'./chunk-AQYBKDT2.mjs';import'./chunk-66NJ7EYY.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-54IAJ3RI.mjs';export{a as useObjectRef}from'./chunk-RT4LMB6X.mjs';import'./chunk-3W6RWDIE.mjs';import'./chunk-MRJFGHFW.mjs';export{c as mergeProps,b as mergeRefs}from'./chunk-TZ4MVY4E.mjs';export{a as filterDOMProps}from'./chunk-KEVERVHK.mjs';export{c as useId}from'./chunk-JDLUGVXG.mjs';import'./chunk-6ZQE5SHE.mjs';export{a as getOwnerDocument}from'./chunk-AUOQSTS5.mjs';import'./chunk-RMUV6NJJ.mjs';export{a as Avatar}from'./chunk-HXTAOYOD.mjs';import'./chunk-FXCHST4Z.mjs';export{a as classNames}from'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|