@televet/kibble-ui 4.0.0-beta.28 → 4.0.0-beta.29
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/chunks/{IconLogo-Dd5mp5A_.js → IconLogo-B-ak4O7O.js} +2 -2
- package/dist/chunks/{IconLogo-Dd5mp5A_.js.map → IconLogo-B-ak4O7O.js.map} +1 -1
- package/dist/chunks/{IconLogo-BurrDDT6.js → IconLogo-DZ_H_-Hf.js} +2 -2
- package/dist/chunks/{IconLogo-BurrDDT6.js.map → IconLogo-DZ_H_-Hf.js.map} +1 -1
- package/dist/chunks/{alert.component-CScEVv6S.js → alert.types-CCfDr4tV.js} +55 -54
- package/dist/chunks/alert.types-CCfDr4tV.js.map +1 -0
- package/dist/chunks/alert.types-DSY8baQn.js +2 -0
- package/dist/chunks/alert.types-DSY8baQn.js.map +1 -0
- package/dist/chunks/{avatar.component-BSzwRJTm.js → avatar.component-CXZMcn_g.js} +7 -7
- package/dist/chunks/{avatar.component-BSzwRJTm.js.map → avatar.component-CXZMcn_g.js.map} +1 -1
- package/dist/chunks/{avatar.component--L3ECWeo.js → avatar.component-DJPNHQ7R.js} +2 -2
- package/dist/chunks/{avatar.component--L3ECWeo.js.map → avatar.component-DJPNHQ7R.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-10iqUcvn.js → avatarGroup.component-BSfg6js1.js} +4 -4
- package/dist/chunks/{avatarGroup.component-10iqUcvn.js.map → avatarGroup.component-BSfg6js1.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-DssMfCb6.js → avatarGroup.component-DYjtaITg.js} +2 -2
- package/dist/chunks/{avatarGroup.component-DssMfCb6.js.map → avatarGroup.component-DYjtaITg.js.map} +1 -1
- package/dist/chunks/{button.component-914arWrg.js → button.component-BsIH7oOI.js} +4 -4
- package/dist/chunks/{button.component-914arWrg.js.map → button.component-BsIH7oOI.js.map} +1 -1
- package/dist/chunks/{button.component-a_ZvSZ2C.js → button.component-CNa885PO.js} +2 -2
- package/dist/chunks/{button.component-a_ZvSZ2C.js.map → button.component-CNa885PO.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-Cr4TYg6i.js → buttonGroup.component-DHz-WDWz.js} +2 -2
- package/dist/chunks/{buttonGroup.component-Cr4TYg6i.js.map → buttonGroup.component-DHz-WDWz.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-Ds1JQmOW.js → buttonGroup.component-DxxmXcf8.js} +5 -5
- package/dist/chunks/{buttonGroup.component-Ds1JQmOW.js.map → buttonGroup.component-DxxmXcf8.js.map} +1 -1
- package/dist/chunks/{card.component-CI7pt6L8.js → card.component-DbCmxpUo.js} +3 -3
- package/dist/chunks/{card.component-CI7pt6L8.js.map → card.component-DbCmxpUo.js.map} +1 -1
- package/dist/chunks/{card.component-1JqO34tC.js → card.component-z_UxveYm.js} +2 -2
- package/dist/chunks/{card.component-1JqO34tC.js.map → card.component-z_UxveYm.js.map} +1 -1
- package/dist/chunks/{chakra-DEgvQPwa.js → chakra-CWqbAp8a.js} +1915 -1954
- package/dist/chunks/chakra-CWqbAp8a.js.map +1 -0
- package/dist/chunks/{chakra-BHjfByoV.js → chakra-CecTEyCR.js} +4 -4
- package/dist/chunks/chakra-CecTEyCR.js.map +1 -0
- package/dist/chunks/{characterCounter.component-0-1clNqF.js → characterCounter.component-C8pzDOo2.js} +2 -2
- package/dist/chunks/{characterCounter.component-0-1clNqF.js.map → characterCounter.component-C8pzDOo2.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-BhtK0SKA.js → characterCounter.component-e6R5aZyy.js} +4 -4
- package/dist/chunks/{characterCounter.component-BhtK0SKA.js.map → characterCounter.component-e6R5aZyy.js.map} +1 -1
- package/dist/chunks/{checkbox.component-D6OR0mHM.js → checkbox.component-B5AKCmHL.js} +5 -5
- package/dist/chunks/{checkbox.component-D6OR0mHM.js.map → checkbox.component-B5AKCmHL.js.map} +1 -1
- package/dist/chunks/{checkbox.component-B9N58qy9.js → checkbox.component-CVqt24aQ.js} +2 -2
- package/dist/chunks/{checkbox.component-B9N58qy9.js.map → checkbox.component-CVqt24aQ.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CPh5N1bQ.js → checkboxGroup.component-B18bU4sZ.js} +5 -5
- package/dist/chunks/{checkboxGroup.component-CPh5N1bQ.js.map → checkboxGroup.component-B18bU4sZ.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CXB6HvgU.js → checkboxGroup.component-wSAo1L-I.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-CXB6HvgU.js.map → checkboxGroup.component-wSAo1L-I.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-DJJunPo8.js → conversationCard.component-C5Ob_5GY.js} +2 -2
- package/dist/chunks/{conversationCard.component-DJJunPo8.js.map → conversationCard.component-C5Ob_5GY.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-CVKE1WuY.js → conversationCard.component-sIQHNg8F.js} +14 -14
- package/dist/chunks/{conversationCard.component-CVKE1WuY.js.map → conversationCard.component-sIQHNg8F.js.map} +1 -1
- package/dist/chunks/{datePicker.component-CY61BztN.js → datePicker.component-CIpsDsv0.js} +2 -2
- package/dist/chunks/{datePicker.component-CY61BztN.js.map → datePicker.component-CIpsDsv0.js.map} +1 -1
- package/dist/chunks/{datePicker.component-CVfx9iHP.js → datePicker.component-D5qutxGi.js} +24 -24
- package/dist/chunks/{datePicker.component-CVfx9iHP.js.map → datePicker.component-D5qutxGi.js.map} +1 -1
- package/dist/chunks/{dnd-Whsk3gIz.js → dnd-3FAL4ALt.js} +2 -2
- package/dist/chunks/{dnd-Whsk3gIz.js.map → dnd-3FAL4ALt.js.map} +1 -1
- package/dist/chunks/{dnd-B2xPQNV1.js → dnd-D0WgiWsQ.js} +2 -2
- package/dist/chunks/{dnd-B2xPQNV1.js.map → dnd-D0WgiWsQ.js.map} +1 -1
- package/dist/chunks/{heading.component-C92ZA4Md.js → heading.component-C1AbHZyK.js} +2 -2
- package/dist/chunks/{heading.component-C92ZA4Md.js.map → heading.component-C1AbHZyK.js.map} +1 -1
- package/dist/chunks/{heading.component-BrXfTzEU.js → heading.component-DpldwQFe.js} +4 -4
- package/dist/chunks/{heading.component-BrXfTzEU.js.map → heading.component-DpldwQFe.js.map} +1 -1
- package/dist/chunks/{icon.component-DuOuGzcI.js → icon.component-CvxJYwSK.js} +3 -3
- package/dist/chunks/{icon.component-DuOuGzcI.js.map → icon.component-CvxJYwSK.js.map} +1 -1
- package/dist/chunks/{icon.component-Ci7jB4Bh.js → icon.component-ihI61XSA.js} +2 -2
- package/dist/chunks/{icon.component-Ci7jB4Bh.js.map → icon.component-ihI61XSA.js.map} +1 -1
- package/dist/chunks/{index-T4HRvnPT.js → index-C1vJGMNi.js} +3 -3
- package/dist/chunks/{index-T4HRvnPT.js.map → index-C1vJGMNi.js.map} +1 -1
- package/dist/chunks/{index-tw4s2PIA.js → index-D2XU8gRz.js} +2 -2
- package/dist/chunks/{index-tw4s2PIA.js.map → index-D2XU8gRz.js.map} +1 -1
- package/dist/chunks/{link.component-v7sWq3vs.js → link.component-Bf8rfKe4.js} +5 -5
- package/dist/chunks/{link.component-v7sWq3vs.js.map → link.component-Bf8rfKe4.js.map} +1 -1
- package/dist/chunks/{link.component-D2WDPwD5.js → link.component-CngALRBW.js} +2 -2
- package/dist/chunks/{link.component-D2WDPwD5.js.map → link.component-CngALRBW.js.map} +1 -1
- package/dist/chunks/{logo.types-BRPr2KIZ.js → logo.types-Bac19OpM.js} +4 -4
- package/dist/chunks/{logo.types-BRPr2KIZ.js.map → logo.types-Bac19OpM.js.map} +1 -1
- package/dist/chunks/{logo.types-DPrISgm0.js → logo.types-aW1w8D8H.js} +2 -2
- package/dist/chunks/{logo.types-DPrISgm0.js.map → logo.types-aW1w8D8H.js.map} +1 -1
- package/dist/chunks/{menu.component-DMelGQeh.js → menu.component-BLbLgS9N.js} +9 -9
- package/dist/chunks/{menu.component-DMelGQeh.js.map → menu.component-BLbLgS9N.js.map} +1 -1
- package/dist/chunks/{menu.component-Dszjswev.js → menu.component-C7ZTcDLU.js} +2 -2
- package/dist/chunks/{menu.component-Dszjswev.js.map → menu.component-C7ZTcDLU.js.map} +1 -1
- package/dist/chunks/{modal.types-BqbUP2fq.js → modal.types-Demhff5i.js} +15 -15
- package/dist/chunks/{modal.types-BqbUP2fq.js.map → modal.types-Demhff5i.js.map} +1 -1
- package/dist/chunks/{modal.types-DbmIHymm.js → modal.types-DvmZzCtg.js} +2 -2
- package/dist/chunks/{modal.types-DbmIHymm.js.map → modal.types-DvmZzCtg.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-CIzFZpAS.js → notificationCounter.component-qtZLHR_u.js} +2 -2
- package/dist/chunks/{notificationCounter.component-CIzFZpAS.js.map → notificationCounter.component-qtZLHR_u.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-COTswull.js → notificationCounter.component-xBlwGp9c.js} +3 -3
- package/dist/chunks/{notificationCounter.component-COTswull.js.map → notificationCounter.component-xBlwGp9c.js.map} +1 -1
- package/dist/chunks/{pinInput.types-DSyDqeFg.js → pinInput.types-BZIYWSd0.js} +4 -4
- package/dist/chunks/{pinInput.types-DSyDqeFg.js.map → pinInput.types-BZIYWSd0.js.map} +1 -1
- package/dist/chunks/{pinInput.types-BNw91BQv.js → pinInput.types-HgJf2GwG.js} +2 -2
- package/dist/chunks/{pinInput.types-BNw91BQv.js.map → pinInput.types-HgJf2GwG.js.map} +1 -1
- package/dist/chunks/{popover.component-Cme5pDPS.js → popover.component-8fMzxch0.js} +2 -2
- package/dist/chunks/{popover.component-Cme5pDPS.js.map → popover.component-8fMzxch0.js.map} +1 -1
- package/dist/chunks/{popover.component-BtT7CSIT.js → popover.component-DduYIFGc.js} +12 -12
- package/dist/chunks/{popover.component-BtT7CSIT.js.map → popover.component-DduYIFGc.js.map} +1 -1
- package/dist/chunks/{popover.recipe-DDPfFy3l.js → popover.recipe-BOZ4cAfn.js} +2 -2
- package/dist/chunks/{popover.recipe-DDPfFy3l.js.map → popover.recipe-BOZ4cAfn.js.map} +1 -1
- package/dist/chunks/{popover.recipe-E6-zKuvF.js → popover.recipe-lAn37vit.js} +2 -2
- package/dist/chunks/{popover.recipe-E6-zKuvF.js.map → popover.recipe-lAn37vit.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-wK4Cx5VC.js → radioGroup.component-Dqe03y3F.js} +2 -2
- package/dist/chunks/{radioGroup.component-wK4Cx5VC.js.map → radioGroup.component-Dqe03y3F.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-C1GNEK2L.js → radioGroup.component-upqqAxJ_.js} +7 -7
- package/dist/chunks/{radioGroup.component-C1GNEK2L.js.map → radioGroup.component-upqqAxJ_.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-C2rjJGto.js → ratingDots.component-DPpQtnc3.js} +2 -2
- package/dist/chunks/{ratingDots.component-C2rjJGto.js.map → ratingDots.component-DPpQtnc3.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-Bke0W3ea.js → ratingDots.component-Qyrf1t1I.js} +5 -5
- package/dist/chunks/{ratingDots.component-Bke0W3ea.js.map → ratingDots.component-Qyrf1t1I.js.map} +1 -1
- package/dist/chunks/{select.component-TXK_OeSy.js → select.component-C_j8JTRp.js} +28 -28
- package/dist/chunks/{select.component-TXK_OeSy.js.map → select.component-C_j8JTRp.js.map} +1 -1
- package/dist/chunks/{select.component-DtaD7sfx.js → select.component-CtSUquuE.js} +2 -2
- package/dist/chunks/{select.component-DtaD7sfx.js.map → select.component-CtSUquuE.js.map} +1 -1
- package/dist/chunks/{sortableList.component-BD7NUWze.js → sortableList.component-C0GEK8Mw.js} +2 -2
- package/dist/chunks/{sortableList.component-BD7NUWze.js.map → sortableList.component-C0GEK8Mw.js.map} +1 -1
- package/dist/chunks/{sortableList.component-G-mYPUz4.js → sortableList.component-DRGC9kr7.js} +6 -6
- package/dist/chunks/{sortableList.component-G-mYPUz4.js.map → sortableList.component-DRGC9kr7.js.map} +1 -1
- package/dist/chunks/{spinner.component-D3If6khz.js → spinner.component-BeQx1E8x.js} +4 -4
- package/dist/chunks/{spinner.component-D3If6khz.js.map → spinner.component-BeQx1E8x.js.map} +1 -1
- package/dist/chunks/{spinner.component-BSDKzlvm.js → spinner.component-DvfRSP23.js} +2 -2
- package/dist/chunks/{spinner.component-BSDKzlvm.js.map → spinner.component-DvfRSP23.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-BLDIBD1a.js → styledAvatar.types-0b5BSvy9.js} +2 -2
- package/dist/chunks/{styledAvatar.types-BLDIBD1a.js.map → styledAvatar.types-0b5BSvy9.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-uB5TkfNC.js → styledAvatar.types-kt5ckZEi.js} +3 -3
- package/dist/chunks/{styledAvatar.types-uB5TkfNC.js.map → styledAvatar.types-kt5ckZEi.js.map} +1 -1
- package/dist/chunks/{switch.component-BtOvYni1.js → switch.component-AbzDKeG0.js} +2 -2
- package/dist/chunks/{switch.component-BtOvYni1.js.map → switch.component-AbzDKeG0.js.map} +1 -1
- package/dist/chunks/{switch.component-B0k5ADaq.js → switch.component-Bcl6Mut3.js} +4 -4
- package/dist/chunks/{switch.component-B0k5ADaq.js.map → switch.component-Bcl6Mut3.js.map} +1 -1
- package/dist/chunks/{tabs.component-rtTAPsqJ.js → tabs.component-CgJmasFJ.js} +6 -6
- package/dist/chunks/{tabs.component-rtTAPsqJ.js.map → tabs.component-CgJmasFJ.js.map} +1 -1
- package/dist/chunks/{tabs.component-CeCT7LAy.js → tabs.component-DotKWVNV.js} +2 -2
- package/dist/chunks/{tabs.component-CeCT7LAy.js.map → tabs.component-DotKWVNV.js.map} +1 -1
- package/dist/chunks/{tag.component-DRL_uBU8.js → tag.component-BNojlNyd.js} +3 -3
- package/dist/chunks/{tag.component-DRL_uBU8.js.map → tag.component-BNojlNyd.js.map} +1 -1
- package/dist/chunks/{tag.component-CHwt3mTK.js → tag.component-DtrK7EzU.js} +2 -2
- package/dist/chunks/{tag.component-CHwt3mTK.js.map → tag.component-DtrK7EzU.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-qCR3O5_s.js → tagBlock.component-Ce9ZMIRV.js} +9 -9
- package/dist/chunks/{tagBlock.component-qCR3O5_s.js.map → tagBlock.component-Ce9ZMIRV.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-BIRnbeT0.js → tagBlock.component-D9n66LA-.js} +2 -2
- package/dist/chunks/{tagBlock.component-BIRnbeT0.js.map → tagBlock.component-D9n66LA-.js.map} +1 -1
- package/dist/chunks/{text.component-MDGpqA76.js → text.component-DDKYg8fY.js} +2 -2
- package/dist/chunks/{text.component-MDGpqA76.js.map → text.component-DDKYg8fY.js.map} +1 -1
- package/dist/chunks/text.component-DjvZOoFZ.js +10 -0
- package/dist/chunks/{text.component-B1g7jaUt.js.map → text.component-DjvZOoFZ.js.map} +1 -1
- package/dist/chunks/{textInput.component-0XG65SHy.js → textInput.component-_A1GzFle.js} +2 -2
- package/dist/chunks/{textInput.component-0XG65SHy.js.map → textInput.component-_A1GzFle.js.map} +1 -1
- package/dist/chunks/{textInput.component-DbMDm4jG.js → textInput.component-lSmCBQSn.js} +6 -6
- package/dist/chunks/{textInput.component-DbMDm4jG.js.map → textInput.component-lSmCBQSn.js.map} +1 -1
- package/dist/chunks/{textarea.component-DMh_uKQh.js → textarea.component-Boe4pMl6.js} +5 -5
- package/dist/chunks/{textarea.component-DMh_uKQh.js.map → textarea.component-Boe4pMl6.js.map} +1 -1
- package/dist/chunks/{textarea.component-BpUg00OD.js → textarea.component-DRi8t9Ds.js} +2 -2
- package/dist/chunks/{textarea.component-BpUg00OD.js.map → textarea.component-DRi8t9Ds.js.map} +1 -1
- package/dist/chunks/{timePicker.component-nv1D1p6D.js → timePicker.component-Bq-PXapb.js} +2 -2
- package/dist/chunks/{timePicker.component-nv1D1p6D.js.map → timePicker.component-Bq-PXapb.js.map} +1 -1
- package/dist/chunks/{timePicker.component-CEcA8Cvn.js → timePicker.component-D_hiIWXH.js} +16 -16
- package/dist/chunks/{timePicker.component-CEcA8Cvn.js.map → timePicker.component-D_hiIWXH.js.map} +1 -1
- package/dist/chunks/{timeRange.component-Dqq1m_O3.js → timeRange.component-CaA0ISmU.js} +2 -2
- package/dist/chunks/{timeRange.component-Dqq1m_O3.js.map → timeRange.component-CaA0ISmU.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C3thzmu8.js → timeRange.component-Cme3Zfq2.js} +4 -4
- package/dist/chunks/{timeRange.component-C3thzmu8.js.map → timeRange.component-Cme3Zfq2.js.map} +1 -1
- package/dist/chunks/{timestamp.component-X_D71fgZ.js → timestamp.component-D99XUMpI.js} +2 -2
- package/dist/chunks/{timestamp.component-X_D71fgZ.js.map → timestamp.component-D99XUMpI.js.map} +1 -1
- package/dist/chunks/{timestamp.component-7z9zT8EN.js → timestamp.component-K9qJJ8NH.js} +4 -4
- package/dist/chunks/{timestamp.component-7z9zT8EN.js.map → timestamp.component-K9qJJ8NH.js.map} +1 -1
- package/dist/chunks/{tooltip.component-BoZP4UV7.js → tooltip.component-DaeaAYi_.js} +2 -2
- package/dist/chunks/{tooltip.component-BoZP4UV7.js.map → tooltip.component-DaeaAYi_.js.map} +1 -1
- package/dist/chunks/{tooltip.component-ZBmhLLNH.js → tooltip.component-G-4vtUKi.js} +3 -3
- package/dist/chunks/{tooltip.component-ZBmhLLNH.js.map → tooltip.component-G-4vtUKi.js.map} +1 -1
- package/dist/chunks/vendor-D9kXrowz.js +64 -0
- package/dist/chunks/vendor-D9kXrowz.js.map +1 -0
- package/dist/chunks/{vendor-CRIhG-7s.js → vendor-Dap5yPke.js} +6651 -7391
- package/dist/chunks/vendor-Dap5yPke.js.map +1 -0
- package/dist/chunks/{withFormControl-Cer0SZNr.js → withFormControl-DkMAv6vq.js} +2 -2
- package/dist/chunks/{withFormControl-Cer0SZNr.js.map → withFormControl-DkMAv6vq.js.map} +1 -1
- package/dist/chunks/{withFormControl-BCq_tW73.js → withFormControl-Drim-XvL.js} +5 -5
- package/dist/chunks/{withFormControl-BCq_tW73.js.map → withFormControl-Drim-XvL.js.map} +1 -1
- package/dist/chunks/{withTruncation-DZqJYnSw.js → withTruncation-Dfg5iSat.js} +2 -2
- package/dist/chunks/{withTruncation-DZqJYnSw.js.map → withTruncation-Dfg5iSat.js.map} +1 -1
- package/dist/chunks/{withTruncation-C4IBRfqV.js → withTruncation-ZfEdVvOq.js} +4 -4
- package/dist/chunks/{withTruncation-C4IBRfqV.js.map → withTruncation-ZfEdVvOq.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/Button/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/Card/index.cjs +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Divider/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs +1 -1
- package/dist/cjs/components/Icon/index.cjs +1 -1
- package/dist/cjs/components/Link/index.cjs +1 -1
- package/dist/cjs/components/Logo/generated/index.cjs +1 -1
- package/dist/cjs/components/Logo/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
- package/dist/cjs/components/Picture/index.cjs +1 -1
- package/dist/cjs/components/PinInput/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/RatingDots/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/SortableList/index.cjs +1 -1
- package/dist/cjs/components/Spinner/index.cjs +1 -1
- package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
- package/dist/cjs/components/Swatch/index.cjs +1 -1
- package/dist/cjs/components/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/Tag/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs.map +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/hocs/index.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +23 -1
- package/dist/cjs/theme/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/blurs/index.cjs +1 -1
- package/dist/esm/chakra/index.js +6 -6
- package/dist/esm/components/Alert/index.js +3 -4
- package/dist/esm/components/Alert/index.js.map +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/Button/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Card/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Divider/index.js +2 -2
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Icon/generated/index.js +1 -1
- package/dist/esm/components/Icon/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Logo/generated/index.js +1 -1
- package/dist/esm/components/Logo/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +1 -1
- package/dist/esm/components/Picture/index.js +2 -2
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Swatch/index.js +2 -2
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/Tag/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +58 -22
- package/dist/esm/components/Toast/index.js.map +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +122 -123
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/hocs/index.js +1 -1
- package/dist/esm/hooks/index.js +1 -1
- package/dist/esm/index.js +132 -133
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +2647 -3
- package/dist/esm/theme/index.js.map +1 -1
- package/dist/esm/theme/tokens/blurs/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/alert.component-CScEVv6S.js.map +0 -1
- package/dist/chunks/alert.component-DQsPpI41.js +0 -2
- package/dist/chunks/alert.component-DQsPpI41.js.map +0 -1
- package/dist/chunks/alert.types-JdzSuSVO.js +0 -5
- package/dist/chunks/alert.types-JdzSuSVO.js.map +0 -1
- package/dist/chunks/alert.types-R_9yno9e.js +0 -2
- package/dist/chunks/alert.types-R_9yno9e.js.map +0 -1
- package/dist/chunks/chakra-BHjfByoV.js.map +0 -1
- package/dist/chunks/chakra-DEgvQPwa.js.map +0 -1
- package/dist/chunks/text.component-B1g7jaUt.js +0 -10
- package/dist/chunks/theme.provider-BYVWanMT.js +0 -24
- package/dist/chunks/theme.provider-BYVWanMT.js.map +0 -1
- package/dist/chunks/theme.provider-DHykCat2.js +0 -2681
- package/dist/chunks/theme.provider-DHykCat2.js.map +0 -1
- package/dist/chunks/toaster.records-Dm3AFmL1.js +0 -2
- package/dist/chunks/toaster.records-Dm3AFmL1.js.map +0 -1
- package/dist/chunks/toaster.records-GZYhSv5r.js +0 -47
- package/dist/chunks/toaster.records-GZYhSv5r.js.map +0 -1
- package/dist/chunks/vendor-CRIhG-7s.js.map +0 -1
- package/dist/chunks/vendor-DcKGwQlH.js +0 -64
- package/dist/chunks/vendor-DcKGwQlH.js.map +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("react");function jv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const de=jv(v);function Gv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vn={exports:{}},wr={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Ca;function Bv(){if(Ca)return wr;Ca=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:i}}return wr.Fragment=t,wr.jsx=r,wr.jsxs=r,wr}var Nr={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Ia;function Uv(){return Ia||(Ia=1,process.env.NODE_ENV!=="production"&&function(){function e(V){if(V==null)return null;if(typeof V=="function")return V.$$typeof===F?null:V.displayName||V.name||null;if(typeof V=="string")return V;switch(V){case h:return"Fragment";case T:return"Profiler";case I:return"StrictMode";case y:return"Suspense";case R:return"SuspenseList";case N:return"Activity"}if(typeof V=="object")switch(typeof V.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case f:return"Portal";case x:return(V.displayName||"Context")+".Provider";case S:return(V._context.displayName||"Context")+".Consumer";case b:var U=V.render;return V=V.displayName,V||(V=U.displayName||U.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case O:return U=V.displayName||null,U!==null?U:e(V.type)||"Memo";case w:U=V._payload,V=V._init;try{return e(V(U))}catch{}}return null}function t(V){return""+V}function r(V){try{t(V);var U=!1}catch{U=!0}if(U){U=console;var ne=U.error,pe=typeof Symbol=="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return ne.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",pe),t(V)}}function n(V){if(V===h)return"<>";if(typeof V=="object"&&V!==null&&V.$$typeof===w)return"<...>";try{var U=e(V);return U?"<"+U+">":"<...>"}catch{return"<...>"}}function o(){var V=A.A;return V===null?null:V.getOwner()}function i(){return Error("react-stack-top-frame")}function s(V){if(k.call(V,"key")){var U=Object.getOwnPropertyDescriptor(V,"key").get;if(U&&U.isReactWarning)return!1}return V.key!==void 0}function a(V,U){function ne(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",U))}ne.isReactWarning=!0,Object.defineProperty(V,"key",{get:ne,configurable:!0})}function l(){var V=e(this.type);return K[V]||(K[V]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),V=this.props.ref,V!==void 0?V:null}function u(V,U,ne,pe,Ye,Ve,Sr,Or){return ne=Ve.ref,V={$$typeof:d,type:V,key:U,props:Ve,_owner:Ye},(ne!==void 0?ne:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:l}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Sr}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Or}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function p(V,U,ne,pe,Ye,Ve,Sr,Or){var fe=U.children;if(fe!==void 0)if(pe)if(L(fe)){for(pe=0;pe<fe.length;pe++)g(fe[pe]);Object.freeze&&Object.freeze(fe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else g(fe);if(k.call(U,"key")){fe=e(V);var ht=Object.keys(U).filter(function(hi){return hi!=="key"});pe=0<ht.length?"{key: someKey, "+ht.join(": ..., ")+": ...}":"{key: someKey}",Se[fe+pe]||(ht=0<ht.length?"{"+ht.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
-
let props = %s;
|
|
19
|
-
<%s {...props} />
|
|
20
|
-
React keys must be passed directly to JSX without using spread:
|
|
21
|
-
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,pe,fe,ht,fe),Se[fe+pe]=!0)}if(fe=null,ne!==void 0&&(r(ne),fe=""+ne),s(U)&&(r(U.key),fe=""+U.key),"key"in U){ne={};for(var xr in U)xr!=="key"&&(ne[xr]=U[xr])}else ne=U;return fe&&a(ne,typeof V=="function"?V.displayName||V.name||"Unknown":V),u(V,fe,Ve,Ye,o(),ne,Sr,Or)}function g(V){typeof V=="object"&&V!==null&&V.$$typeof===d&&V._store&&(V._store.validated=1)}var c=v,d=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),x=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),A=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=Object.prototype.hasOwnProperty,L=Array.isArray,D=console.createTask?console.createTask:function(){return null};c={"react-stack-bottom-frame":function(V){return V()}};var M,K={},z=c["react-stack-bottom-frame"].bind(c,i)(),ae=D(n(i)),Se={};Nr.Fragment=h,Nr.jsx=function(V,U,ne,pe,Ye){var Ve=1e4>A.recentlyCreatedOwnerStacks++;return p(V,U,ne,!1,pe,Ye,Ve?Error("react-stack-top-frame"):z,Ve?D(n(V)):ae)},Nr.jsxs=function(V,U,ne,pe,Ye){var Ve=1e4>A.recentlyCreatedOwnerStacks++;return p(V,U,ne,!0,pe,Ye,Ve?Error("react-stack-top-frame"):z,Ve?D(n(V)):ae)}}()),Nr}var Ta;function Hv(){return Ta||(Ta=1,process.env.NODE_ENV==="production"?Vn.exports=Bv():Vn.exports=Uv()),Vn.exports}var m=Hv(),Wv="-ms-",qv="-moz-",Kv="-webkit-",hc="comm",As="rule",Fs="decl",zv="@import",vc="@keyframes",Yv="@layer",Xv=Math.abs,Bo=String.fromCharCode,Zv=Object.assign;function Jv(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function yc(e){return e.trim()}function Qv(e,t){return(e=t.exec(e))?e[0]:e}function en(e,t,r){return e.replace(t,r)}function bc(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function ln(e,t,r){return e.slice(t,r)}function ct(e){return e.length}function Vs(e){return e.length}function Ln(e,t){return t.push(e),e}function ey(e,t){return e.map(t).join("")}var Uo=1,ur=1,Pc=0;exports.position=0;var ue=0,hr="";function Ho(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Uo,column:ur,length:s,return:""}}function ty(e,t){return Zv(Ho("",null,null,"",null,null,0),e,{length:-e.length},t)}function ry(){return ue}function ny(){return ue=exports.position>0?Ue(hr,--exports.position):0,ur--,ue===10&&(ur=1,Uo--),ue}function _e(){return ue=exports.position<Pc?Ue(hr,exports.position++):0,ur++,ue===10&&(ur=1,Uo++),ue}function It(){return Ue(hr,exports.position)}function ao(){return exports.position}function bn(e,t){return ln(hr,e,t)}function Io(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ec(e){return Uo=ur=1,Pc=ct(hr=e),exports.position=0,[]}function Cc(e){return hr="",e}function lo(e){return yc(bn(exports.position-1,Ui(e===91?e+2:e===40?e+1:e)))}function oy(e){for(;(ue=It())&&ue<33;)_e();return Io(e)>2||Io(ue)>3?"":" "}function iy(e,t){for(;--t&&_e()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return bn(e,ao()+(t<6&&It()==32&&_e()==32))}function Ui(e){for(;_e();)switch(ue){case e:return exports.position;case 34:case 39:e!==34&&e!==39&&Ui(ue);break;case 40:e===41&&Ui(e);break;case 92:_e();break}return exports.position}function sy(e,t){for(;_e()&&e+ue!==57;)if(e+ue===84&&It()===47)break;return"/*"+bn(t,exports.position-1)+"*"+Bo(e===47?e:_e())}function ay(e){for(;!Io(It());)_e();return bn(e,exports.position)}function ly(e){return Cc(co("",null,null,null,[""],e=Ec(e),0,[0],e))}function co(e,t,r,n,o,i,s,a,l){for(var u=0,p=0,g=s,c=0,d=0,f=0,h=1,I=1,T=1,S=0,x="",b=o,y=i,R=n,O=x;I;)switch(f=S,S=_e()){case 40:if(f!=108&&Ue(O,g-1)==58){bc(O+=en(lo(S),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:O+=lo(S);break;case 9:case 10:case 13:case 32:O+=oy(f);break;case 92:O+=iy(ao()-1,7);continue;case 47:switch(It()){case 42:case 47:Ln(cy(sy(_e(),ao()),t,r),l);break;default:O+="/"}break;case 123*h:a[u++]=ct(O)*T;case 125*h:case 59:case 0:switch(S){case 0:case 125:I=0;case 59+p:T==-1&&(O=en(O,/\f/g,"")),d>0&&ct(O)-g&&Ln(d>32?Sa(O+";",n,r,g-1):Sa(en(O," ","")+";",n,r,g-2),l);break;case 59:O+=";";default:if(Ln(R=Ra(O,t,r,u,p,o,a,x,b=[],y=[],g),i),S===123)if(p===0)co(O,t,R,R,b,i,g,a,y);else switch(c===99&&Ue(O,3)===110?100:c){case 100:case 108:case 109:case 115:co(e,R,R,n&&Ln(Ra(e,R,R,0,0,o,a,x,o,b=[],g),y),o,y,g,a,n?b:y);break;default:co(O,R,R,R,[""],y,0,a,y)}}u=p=d=0,h=T=1,x=O="",g=s;break;case 58:g=1+ct(O),d=f;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&ny()==125)continue}switch(O+=Bo(S),S*h){case 38:T=p>0?1:(O+="\f",-1);break;case 44:a[u++]=(ct(O)-1)*T,T=1;break;case 64:It()===45&&(O+=lo(_e())),c=It(),p=g=ct(x=O+=ay(ao())),S++;break;case 45:f===45&&ct(O)==2&&(h=0)}}return i}function Ra(e,t,r,n,o,i,s,a,l,u,p){for(var g=o-1,c=o===0?i:[""],d=Vs(c),f=0,h=0,I=0;f<n;++f)for(var T=0,S=ln(e,g+1,g=Xv(h=s[f])),x=e;T<d;++T)(x=yc(h>0?c[T]+" "+S:en(S,/&\f/g,c[T])))&&(l[I++]=x);return Ho(e,t,r,o===0?As:a,l,u,p)}function cy(e,t,r){return Ho(e,t,r,hc,Bo(ry()),ln(e,2,-2),0)}function Sa(e,t,r,n){return Ho(e,t,r,Fs,ln(e,0,n),ln(e,n+1,-1),n)}function Hi(e,t){for(var r="",n=Vs(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function uy(e,t,r,n){switch(e.type){case Yv:if(e.children.length)break;case zv:case Fs:return e.return=e.return||e.value;case hc:return"";case vc:return e.return=e.value+"{"+Hi(e.children,n)+"}";case As:e.value=e.props.join(",")}return ct(r=Hi(e.children,n))?e.return=e.value+"{"+r+"}":""}function dy(e){var t=Vs(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function gy(e){return function(t){t.root||(t=t.return)&&e(t)}}var Dn={exports:{}},Y={};/** @license React v16.13.1
|
|
23
|
-
* react-is.production.min.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var Oa;function py(){if(Oa)return Y;Oa=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,c=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function x(y){if(typeof y=="object"&&y!==null){var R=y.$$typeof;switch(R){case t:switch(y=y.type,y){case l:case u:case n:case i:case o:case g:return y;default:switch(y=y&&y.$$typeof,y){case a:case p:case f:case d:case s:return y;default:return R}}case r:return R}}}function b(y){return x(y)===u}return Y.AsyncMode=l,Y.ConcurrentMode=u,Y.ContextConsumer=a,Y.ContextProvider=s,Y.Element=t,Y.ForwardRef=p,Y.Fragment=n,Y.Lazy=f,Y.Memo=d,Y.Portal=r,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=g,Y.isAsyncMode=function(y){return b(y)||x(y)===l},Y.isConcurrentMode=b,Y.isContextConsumer=function(y){return x(y)===a},Y.isContextProvider=function(y){return x(y)===s},Y.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},Y.isForwardRef=function(y){return x(y)===p},Y.isFragment=function(y){return x(y)===n},Y.isLazy=function(y){return x(y)===f},Y.isMemo=function(y){return x(y)===d},Y.isPortal=function(y){return x(y)===r},Y.isProfiler=function(y){return x(y)===i},Y.isStrictMode=function(y){return x(y)===o},Y.isSuspense=function(y){return x(y)===g},Y.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===u||y===i||y===o||y===g||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===d||y.$$typeof===s||y.$$typeof===a||y.$$typeof===p||y.$$typeof===I||y.$$typeof===T||y.$$typeof===S||y.$$typeof===h)},Y.typeOf=x,Y}var X={};/** @license React v16.13.1
|
|
30
|
-
* react-is.development.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var xa;function fy(){return xa||(xa=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,c=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function x(G){return typeof G=="string"||typeof G=="function"||G===n||G===u||G===i||G===o||G===g||G===c||typeof G=="object"&&G!==null&&(G.$$typeof===f||G.$$typeof===d||G.$$typeof===s||G.$$typeof===a||G.$$typeof===p||G.$$typeof===I||G.$$typeof===T||G.$$typeof===S||G.$$typeof===h)}function b(G){if(typeof G=="object"&&G!==null){var vi=G.$$typeof;switch(vi){case t:var Fn=G.type;switch(Fn){case l:case u:case n:case i:case o:case g:return Fn;default:var Ea=Fn&&Fn.$$typeof;switch(Ea){case a:case p:case f:case d:case s:return Ea;default:return vi}}case r:return vi}}}var y=l,R=u,O=a,w=s,N=t,F=p,A=n,k=f,L=d,D=r,M=i,K=o,z=g,ae=!1;function Se(G){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(G)||b(G)===l}function V(G){return b(G)===u}function U(G){return b(G)===a}function ne(G){return b(G)===s}function pe(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function Ye(G){return b(G)===p}function Ve(G){return b(G)===n}function Sr(G){return b(G)===f}function Or(G){return b(G)===d}function fe(G){return b(G)===r}function ht(G){return b(G)===i}function xr(G){return b(G)===o}function hi(G){return b(G)===g}X.AsyncMode=y,X.ConcurrentMode=R,X.ContextConsumer=O,X.ContextProvider=w,X.Element=N,X.ForwardRef=F,X.Fragment=A,X.Lazy=k,X.Memo=L,X.Portal=D,X.Profiler=M,X.StrictMode=K,X.Suspense=z,X.isAsyncMode=Se,X.isConcurrentMode=V,X.isContextConsumer=U,X.isContextProvider=ne,X.isElement=pe,X.isForwardRef=Ye,X.isFragment=Ve,X.isLazy=Sr,X.isMemo=Or,X.isPortal=fe,X.isProfiler=ht,X.isStrictMode=xr,X.isSuspense=hi,X.isValidElementType=x,X.typeOf=b}()),X}var wa;function my(){return wa||(wa=1,process.env.NODE_ENV==="production"?Dn.exports=py():Dn.exports=fy()),Dn.exports}var yi,Na;function hy(){if(Na)return yi;Na=1;var e=my(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function s(f){return e.isMemo(f)?o:i[f.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,c=Object.prototype;function d(f,h,I){if(typeof h!="string"){if(c){var T=g(h);T&&T!==c&&d(f,T,I)}var S=l(h);u&&(S=S.concat(u(h)));for(var x=s(f),b=s(h),y=0;y<S.length;++y){var R=S[y];if(!r[R]&&!(I&&I[R])&&!(b&&b[R])&&!(x&&x[R])){var O=p(h,R);try{a(f,R,O)}catch{}}}}return f}return yi=d,yi}hy();var ka=e=>Math.max(0,Math.min(1,e)),vy=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]),bi=(...e)=>t=>e.reduce((r,n)=>n(r),t),sr=()=>{},Wo=e=>typeof e=="object"&&e!==null,Ic=2147483647,E=e=>e?"":void 0,Me=e=>e?"true":void 0,yy=1,by=9,Py=11,ge=e=>Wo(e)&&e.nodeType===yy&&typeof e.nodeName=="string",Ls=e=>Wo(e)&&e.nodeType===by,Ey=e=>Wo(e)&&e===e.window,Tc=e=>ge(e)?e.localName||"":"#document";function Cy(e){return["html","body","#document"].includes(Tc(e))}var Iy=e=>Wo(e)&&e.nodeType!==void 0,dr=e=>Iy(e)&&e.nodeType===Py&&"host"in e,Ty=e=>ge(e)&&e.localName==="input",Rc=e=>!!e?.matches("a[href]"),Ry=e=>ge(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,Sy=/(textarea|select)/;function qo(e){if(e==null||!ge(e))return!1;try{return Ty(e)&&e.selectionStart!=null||Sy.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Ae(e,t){if(!e||!t||!ge(e)||!ge(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&dr(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Oe(e){return Ls(e)?e:Ey(e)?e.document:e?.ownerDocument??document}function Oy(e){return Oe(e).documentElement}function ie(e){return dr(e)?ie(e.host):Ls(e)?e.defaultView??window:ge(e)?e.ownerDocument?.defaultView??window:window}function Sc(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function xy(e){if(Tc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dr(e)&&e.host||Oy(e);return dr(t)?t.host:t}var Pi=new WeakMap;function gr(e){return Pi.has(e)||Pi.set(e,ie(e).getComputedStyle(e)),Pi.get(e)}function Oc(e,t){const{type:r,quality:n=.92,background:o}=t;if(!e)throw new Error("[zag-js > getDataUrl]: Could not find the svg element");const i=ie(e),s=i.document,a=e.getBoundingClientRect(),l=e.cloneNode(!0);l.hasAttribute("viewBox")||l.setAttribute("viewBox",`0 0 ${a.width} ${a.height}`);const p=`<?xml version="1.0" standalone="no"?>\r
|
|
37
|
-
`+new i.XMLSerializer().serializeToString(l),g="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(p);if(r==="image/svg+xml")return Promise.resolve(g).then(I=>(l.remove(),I));const c=i.devicePixelRatio||1,d=s.createElement("canvas"),f=new i.Image;f.src=g,d.width=a.width*c,d.height=a.height*c;const h=d.getContext("2d");return(r==="image/jpeg"||o)&&(h.fillStyle=o||"white",h.fillRect(0,0,d.width,d.height)),new Promise(I=>{f.onload=()=>{h?.drawImage(f,0,0,d.width,d.height),I(d.toDataURL(r,n)),l.remove()}})}var Ko=()=>typeof document<"u";function wy(){return navigator.userAgentData?.platform??navigator.platform}function Ny(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var Ds=e=>Ko()&&e.test(wy()),xc=e=>Ko()&&e.test(Ny()),ky=e=>Ko()&&e.test(navigator.vendor),Aa=()=>Ko()&&!!navigator.maxTouchPoints,Ay=()=>Ds(/^iPhone/i),Fy=()=>Ds(/^iPad/i)||Yo()&&navigator.maxTouchPoints>1,zo=()=>Ay()||Fy(),$s=()=>Yo()||zo(),Yo=()=>Ds(/^Mac/i),Ht=()=>$s()&&ky(/apple/i),Vy=()=>xc(/Firefox/i),Ly=()=>xc(/Android/i);function Dy(e){const{selectionStart:t,selectionEnd:r,value:n}=e.currentTarget;return n.slice(0,t)+e.data+n.slice(r)}function $y(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function ce(e){return $y(e)?.[0]??e.target}var cn=e=>Ae(e.currentTarget,ce(e));function Fa(e){const t=e.currentTarget;if(!t)return!1;const r=$s();if(r&&!e.metaKey||!r&&!e.ctrlKey)return!1;const n=t.localName;return n==="a"||n==="button"&&t.type==="submit"||n==="input"&&t.type==="submit"}function Va(e){const t=e.currentTarget;if(!t)return!1;const r=t.localName;return e.altKey?r==="a"||r==="button"&&t.type==="submit"||r==="input"&&t.type==="submit":!1}function Pn(e){return Nc(e).isComposing||e.keyCode===229}function My(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function _y(e){return e.mozInputSource===0&&e.isTrusted?!0:Ly()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var pr=e=>e.button===0,wc=e=>e.button===2||Yo()&&e.ctrlKey&&e.button===0,Gt=e=>e.ctrlKey||e.altKey||e.metaKey,jy=e=>"touches"in e&&e.touches.length>0,Gy={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},La={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function We(e,t={}){const{dir:r="ltr",orientation:n="horizontal"}=t;let o=e.key;return o=Gy[o]??o,r==="rtl"&&n==="horizontal"&&o in La&&(o=La[o]),o}function Nc(e){return e.nativeEvent??e}var By=new Set(["PageUp","PageDown"]),Uy=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function To(e){return e.ctrlKey||e.metaKey?.1:By.has(e.key)||e.shiftKey&&Uy.has(e.key)?10:1}function He(e,t="client"){const r=jy(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var W=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,r,n),()=>{o?.removeEventListener(t,r,n)}};function kc(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=ie(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function Hy(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Wt(e,t,r="value"){if(!e)return;const n=Hy(e);n&&kc(e,{type:n,property:r}).set?.call(e,t),e.setAttribute(r,t)}function Ms(e,t){if(!e)return;kc(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Xo(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const o=ie(e);e instanceof o.HTMLInputElement&&(Wt(e,`${r}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function _s(e,t){const{checked:r,bubbles:n=!0}=t;if(!e)return;const o=ie(e);e instanceof o.HTMLInputElement&&(Ms(e,r),e.dispatchEvent(new o.Event("click",{bubbles:n})))}function Wy(e){return qy(e)?e.form:e.closest("form")}function qy(e){return e.matches("textarea, input, select, button")}function Ky(e,t){if(!e)return;const r=Wy(e),n=o=>{o.defaultPrevented||t()};return r?.addEventListener("reset",n,{passive:!0}),()=>r?.removeEventListener("reset",n)}function zy(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const n=ie(r),o=new n.MutationObserver(()=>t(r.disabled));return o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Nt(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[Ky(e,n),zy(e,r)];return()=>o.forEach(i=>i?.())}var Ac=e=>ge(e)&&e.tagName==="IFRAME",Yy=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),Xy=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,js="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Gs=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(js));(t==!0||t=="if-empty"&&r.length===0)&&ge(e)&&Tt(e)&&r.unshift(e);const o=r.filter(Tt);return o.forEach((i,s)=>{if(Ac(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...Gs(a))}}),o};function Tt(e){return!e||e.closest("[inert]")?!1:e.matches(js)&&Ry(e)}function En(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(js)),n=r.filter(Pt);return t&&Pt(e)&&n.unshift(e),n.forEach((o,i)=>{if(Ac(o)&&o.contentDocument){const s=o.contentDocument.body,a=En(s);n.splice(i,1,...a)}}),!n.length&&t?r:n}function Pt(e){return e!=null&&e.tabIndex>0?!0:Tt(e)&&!Xy(e)}function Fc(e,t){const r=En(e,t),n=r[0]||null,o=r[r.length-1]||null;return[n,o]}function Zy(e,t){const r=En(e),n=e?.ownerDocument||document,o=t??n.activeElement;if(!o)return null;const i=r.indexOf(o);return r[i+1]||null}function kr(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||qo(e))&&!Yy(e)?0:e.tabIndex}function un(e){const{root:t,getInitialEl:r,filter:n,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof r=="function"?r():r),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=En(t);i=n?s.filter(n)[0]:s[0]}return i||t||void 0}function Vc(e){const t=e.currentTarget;if(!t)return!1;const[r,n]=Fc(t),o=t.ownerDocument||document;return!(o.activeElement===r&&e.shiftKey||o.activeElement===n&&!e.shiftKey||!r&&!n)}function Zo(e){const t=new Set;function r(n){const o=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(o))}return r(()=>r(e)),function(){t.forEach(o=>o())}}function _(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t?.()}}function Jy(e,t,r){const n=_(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};return e.addEventListener(t,o,{once:!0,capture:!0}),n}function Qy(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&r.includes(a.attributeName)&&n(a)});return i.observe(e,{attributes:!0,attributeFilter:r}),()=>i.disconnect()}function Jo(e,t){const{defer:r}=t,n=r?_:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(Qy(i,t))})),()=>{o.forEach(i=>i?.())}}function eb(e,t){const{callback:r}=t;if(!e)return;const n=e.ownerDocument.defaultView||window,o=new n.MutationObserver(r);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function tb(e,t){const{defer:r}=t,n=r?_:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(eb(i,t))})),()=>{o.forEach(i=>i?.())}}function Lc(e){const t=()=>e.click();Vy()?Jy(e,"keyup",t):queueMicrotask(t)}function Ro(e){const t=xy(e);return Cy(t)?Oe(t).body:ge(t)&&Bs(t)?t:Ro(t)}function Dc(e,t=[]){const r=Ro(e),n=r===e.ownerDocument.body,o=ie(r);return n?t.concat(o,o.visualViewport||[],Bs(r)?r:[]):t.concat(r,Dc(r,[]))}var rb=/auto|scroll|overlay|hidden|clip/;function Bs(e){const t=ie(e),{overflow:r,overflowX:n,overflowY:o,display:i}=t.getComputedStyle(e);return rb.test(r+o+n)&&!["inline","contents"].includes(i)}function nb(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function $c(e,t){const{rootEl:r,...n}=t||{};!e||!r||!Bs(r)||!nb(r)||e.scrollIntoView(n)}function Qo(e,t){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-r,y:e.y-n},a={x:ka(s.x/o),y:ka(s.y/i)};function l(u={}){const{dir:p="ltr",orientation:g="horizontal",inverted:c}=u,d=typeof c=="object"?c.x:c,f=typeof c=="object"?c.y:c;return g==="horizontal"?p==="rtl"||d?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function ob(e,t){const r=e.body,n="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!n)return;try{r.requestPointerLock()}catch{}const a=[W(e,"pointerlockchange",i,!1),W(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var ar="default",Wi="",uo=new WeakMap;function ib(e={}){const{target:t,doc:r}=e,n=r??document,o=n.documentElement;return zo()?(ar==="default"&&(Wi=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),ar="disabled"):t&&(uo.set(t,t.style.userSelect),t.style.userSelect="none"),()=>sb({target:t,doc:n})}function sb(e={}){const{target:t,doc:r}=e,o=(r??document).documentElement;if(zo()){if(ar!=="disabled")return;ar="restoring",setTimeout(()=>{Zo(()=>{ar==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=Wi||""),Wi="",ar="default")})},300)}else if(t&&uo.has(t)){const i=uo.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),uo.delete(t)}}function Mc(e={}){const{defer:t,target:r,...n}=e,o=t?_:s=>s(),i=[];return i.push(o(()=>{const s=typeof r=="function"?r():r;i.push(ib({...n,target:s}))})),()=>{i.forEach(s=>s?.())}}function _c(e,t){const{onPointerMove:r,onPointerUp:n}=t,i=[W(e,"pointermove",s=>{const a=He(s),l=Math.sqrt(a.x**2+a.y**2),u=s.pointerType==="touch"?10:5;if(!(l<u)){if(s.pointerType==="mouse"&&s.button===0){n();return}r({point:a,event:s})}},!1),W(e,"pointerup",n,!1),W(e,"pointercancel",n,!1),W(e,"contextmenu",n,!1),Mc({doc:e})];return()=>{i.forEach(s=>s())}}function jc(e){const{pointerNode:t,keyboardNode:r=t,onPress:n,onPressStart:o,onPressEnd:i,isValidKey:s=x=>x.key==="Enter"}=e;if(!t)return sr;const a=ie(t),l=Oe(t);let u=sr,p=sr,g=sr;const c=x=>({point:He(x),event:x});function d(x){o?.(c(x))}function f(x){i?.(c(x))}const I=W(t,"pointerdown",x=>{p();const y=W(a,"pointerup",O=>{const w=ce(O);Ae(t,w)?n?.(c(O)):i?.(c(O))},{passive:!n,once:!0}),R=W(a,"pointercancel",f,{passive:!i,once:!0});p=bi(y,R),l.activeElement===r&&x.pointerType==="mouse"&&x.preventDefault(),d(x)},{passive:!o}),T=W(r,"focus",S);u=bi(I,T);function S(){const x=O=>{if(!s(O))return;const w=F=>{if(!s(F))return;const A=new a.PointerEvent("pointerup"),k=c(A);n?.(k),i?.(k)};p(),p=W(r,"keyup",w);const N=new a.PointerEvent("pointerdown");d(N)},b=()=>{const O=new a.PointerEvent("pointercancel");f(O)},y=W(r,"keydown",x),R=W(r,"blur",b);g=bi(y,R)}return()=>{u(),p(),g()}}function ab(e,t={}){const{triggerElement:r,onFocus:n,onFocusEnter:o}=t,i=e?.ownerDocument||document,s=i.body;function a(l){if(l.key!=="Tab")return;let u=null;const[p,g]=Fc(e,!0),c=Zy(s,r),d=!p&&!g;l.shiftKey&&c===i.activeElement?(o?.(),u=g):l.shiftKey&&(i.activeElement===p||d)?u=r:!l.shiftKey&&i.activeElement===r?(o?.(),u=p):!l.shiftKey&&(i.activeElement===g||d)&&(u=c),u&&(l.preventDefault(),typeof n=="function"?n(u):u.focus())}return W(i,"keydown",a,!0)}function lb(e,t){const{defer:r,triggerElement:n,...o}=t,i=r?_:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof n=="function"?n():n;s.push(ab(a,{triggerElement:l,...o}))})),()=>{s.forEach(a=>a?.())}}function St(e,t){return Array.from(e?.querySelectorAll(t)??[])}function Gc(e,t){return e?.querySelector(t)??null}var Us=e=>e.id;function Bc(e,t,r=Us){return e.find(n=>r(n)===t)}function Hs(e,t,r=Us){const n=Bc(e,t,r);return n?e.indexOf(n):-1}function Uc(e,t,r=!0){let n=Hs(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function Hc(e,t,r=!0){let n=Hs(e,t);return n===-1?r?e[e.length-1]:null:(n=r?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}function Ws(e,t){const{onEntry:r,measure:n,box:o="border-box"}=t,i=(Array.isArray(e)?e:[e]).filter(ge),s=ie(i[0]),a=u=>{const p=i.map(g=>n(g));r({rects:p,entries:u})};a([]);const l=new s.ResizeObserver(a);return i.forEach(u=>l.observe(u,{box:o})),()=>l.disconnect()}var cb=e=>e.split("").map(t=>{const r=t.charCodeAt(0);return r>0&&r<128?t:r>=128&&r<=255?`/x${r.toString(16)}`.replace("/","\\"):""}).join("").trim(),ub=e=>cb(e.dataset?.valuetext??e.textContent??""),db=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function gb(e,t,r,n=Us){const o=r?Hs(e,r,n):-1;let i=r?vy(e,o):e;return t.length===1&&(i=i.filter(a=>n(a)!==r)),i.find(a=>db(ub(a),t))}function dn(e,t){if(!e)return sr;const r=Object.keys(t).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function pb(e,t,r){if(!e)return sr;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),e.style.length===0&&e.removeAttribute("style")}}function fb(e,t){const{state:r,activeId:n,key:o,timeout:i=350,itemToId:s}=t,a=r.keysSoFar+o,u=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let p=e.slice();const g=gb(p,u,n,s);function c(){clearTimeout(r.timer),r.timer=-1}function d(f){r.keysSoFar=f,c(),f!==""&&(r.timer=+setTimeout(()=>{d(""),c()},i))}return d(a),g}var gn=Object.assign(fb,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:mb});function mb(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var qt={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},hb=1e3/60;function vb(e,t){const r=e();if(ge(r)&&r.isConnected)return t(r),()=>{};{const n=setInterval(()=>{const o=e();ge(o)&&o.isConnected&&(t(o),clearInterval(n))},hb);return()=>clearInterval(n)}}function yb(e,t){const r=[];return e?.forEach(n=>{const o=vb(n,t);r.push(o)}),()=>{r.forEach(n=>n())}}var $n={exports:{}},be={};/**
|
|
38
|
-
* @license React
|
|
39
|
-
* react-dom.production.js
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the MIT license found in the
|
|
44
|
-
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var Da;function bb(){if(Da)return be;Da=1;var e=v;function t(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(l,u,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:l,containerInfo:u,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,be.createPortal=function(l,u){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return i(l,u,null,p)},be.flushSync=function(l){var u=s.T,p=n.p;try{if(s.T=null,n.p=2,l)return l()}finally{s.T=u,n.p=p,n.d.f()}},be.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(l,u))},be.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},be.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var p=u.as,g=a(p,u.crossOrigin),c=typeof u.integrity=="string"?u.integrity:void 0,d=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;p==="style"?n.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:g,integrity:c,fetchPriority:d}):p==="script"&&n.d.X(l,{crossOrigin:g,integrity:c,fetchPriority:d,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},be.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var p=a(u.as,u.crossOrigin);n.d.M(l,{crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(l)},be.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var p=u.as,g=a(p,u.crossOrigin);n.d.L(l,p,{crossOrigin:g,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},be.preloadModule=function(l,u){if(typeof l=="string")if(u){var p=a(u.as,u.crossOrigin);n.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(l)},be.requestFormReset=function(l){n.d.r(l)},be.unstable_batchedUpdates=function(l,u){return l(u)},be.useFormState=function(l,u,p){return s.H.useFormState(l,u,p)},be.useFormStatus=function(){return s.H.useHostTransitionStatus()},be.version="19.1.0",be}var Pe={};/**
|
|
46
|
-
* @license React
|
|
47
|
-
* react-dom.development.js
|
|
48
|
-
*
|
|
49
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
50
|
-
*
|
|
51
|
-
* This source code is licensed under the MIT license found in the
|
|
52
|
-
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var $a;function Pb(){return $a||($a=1,process.env.NODE_ENV!=="production"&&function(){function e(){}function t(g){return""+g}function r(g,c,d){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(f);var h=!1}catch{h=!0}return h&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object"),t(f)),{$$typeof:u,key:f==null?null:""+f,children:g,containerInfo:c,implementation:d}}function n(g,c){if(g==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}function o(g){return g===null?"`null`":g===void 0?"`undefined`":g===""?"an empty string":'something with type "'+typeof g+'"'}function i(g){return g===null?"`null`":g===void 0?"`undefined`":g===""?"an empty string":typeof g=="string"?JSON.stringify(g):typeof g=="number"?"`"+g+"`":'something with type "'+typeof g+'"'}function s(){var g=p.H;return g===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
54
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
55
|
-
2. You might be breaking the Rules of Hooks
|
|
56
|
-
3. You might have more than one copy of React in the same app
|
|
57
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),g}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=v,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},u=Symbol.for("react.portal"),p=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Pe.createPortal=function(g,c){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error("Target container is not a DOM element.");return r(g,c,null,d)},Pe.flushSync=function(g){var c=p.T,d=l.p;try{if(p.T=null,l.p=2,g)return g()}finally{p.T=c,l.p=d,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Pe.preconnect=function(g,c){typeof g=="string"&&g?c!=null&&typeof c!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(c)):c!=null&&typeof c.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(c.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(g)),typeof g=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,l.d.C(g,c))},Pe.prefetchDNS=function(g){if(typeof g!="string"||!g)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(g));else if(1<arguments.length){var c=arguments[1];typeof c=="object"&&c.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(c)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(c))}typeof g=="string"&&l.d.D(g)},Pe.preinit=function(g,c){if(typeof g=="string"&&g?c==null||typeof c!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(c)):c.as!=="style"&&c.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(c.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(g)),typeof g=="string"&&c&&typeof c.as=="string"){var d=c.as,f=n(d,c.crossOrigin),h=typeof c.integrity=="string"?c.integrity:void 0,I=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;d==="style"?l.d.S(g,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:f,integrity:h,fetchPriority:I}):d==="script"&&l.d.X(g,{crossOrigin:f,integrity:h,fetchPriority:I,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Pe.preinitModule=function(g,c){var d="";if(typeof g=="string"&&g||(d+=" The `href` argument encountered was "+o(g)+"."),c!==void 0&&typeof c!="object"?d+=" The `options` argument encountered was "+o(c)+".":c&&"as"in c&&c.as!=="script"&&(d+=" The `as` option encountered was "+i(c.as)+"."),d)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",d);else switch(d=c&&typeof c.as=="string"?c.as:"script",d){case"script":break;default:d=i(d),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',d,g)}typeof g=="string"&&(typeof c=="object"&&c!==null?(c.as==null||c.as==="script")&&(d=n(c.as,c.crossOrigin),l.d.M(g,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})):c==null&&l.d.M(g))},Pe.preload=function(g,c){var d="";if(typeof g=="string"&&g||(d+=" The `href` argument encountered was "+o(g)+"."),c==null||typeof c!="object"?d+=" The `options` argument encountered was "+o(c)+".":typeof c.as=="string"&&c.as||(d+=" The `as` option encountered was "+o(c.as)+"."),d&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',d),typeof g=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){d=c.as;var f=n(d,c.crossOrigin);l.d.L(g,d,{crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Pe.preloadModule=function(g,c){var d="";typeof g=="string"&&g||(d+=" The `href` argument encountered was "+o(g)+"."),c!==void 0&&typeof c!="object"?d+=" The `options` argument encountered was "+o(c)+".":c&&"as"in c&&typeof c.as!="string"&&(d+=" The `as` option encountered was "+o(c.as)+"."),d&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',d),typeof g=="string"&&(c?(d=n(c.as,c.crossOrigin),l.d.m(g,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0})):l.d.m(g))},Pe.requestFormReset=function(g){l.d.r(g)},Pe.unstable_batchedUpdates=function(g,c){return g(c)},Pe.useFormState=function(g,c,d){return s().useFormState(g,c,d)},Pe.useFormStatus=function(){return s().useHostTransitionStatus()},Pe.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Pe}var Ma;function Eb(){if(Ma)return $n.exports;Ma=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),$n.exports=bb()):$n.exports=Pb(),$n.exports}var Cn=Eb();function Cb(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function j(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=v.createContext(s);a.displayName=t;function l(){const u=v.useContext(a);if(!u&&r){const p=new Error(i??Cb(n,o));throw p.name="ContextError",Error.captureStackTrace?.(p,l),p}return u}return[a.Provider,l,a]}const[IN,Z]=j({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),Ib=e=>{const{children:t,disabled:r}=e,[n,o]=v.useState(e.container?.current),i=v.useSyncExternalStore(Rb,()=>!1,()=>!0),{getRootNode:s}=Z();if(v.useEffect(()=>{o(()=>e.container?.current)},[e.container]),i||r)return m.jsx(m.Fragment,{children:t});const a=n??Tb(s);return m.jsx(m.Fragment,{children:v.Children.map(t,l=>Cn.createPortal(l,a))})},Tb=e=>{const t=e?.(),r=t.getRootNode();return dr(r)?r:Oe(t).body},Rb=()=>()=>{};function Sb(e){return e?Array.isArray(e)?e:[e]:[]}var Ob=e=>Array.from(Array(e).keys()),ei=e=>e[0],ti=e=>e[e.length-1],xb=(e,t)=>e.indexOf(t)!==-1,Wc=(e,...t)=>e.concat(t),qc=(e,...t)=>e.filter(r=>!t.includes(r)),_a=(e,t)=>xb(e,t)?qc(e,t):Wc(e,t);function Kc(e,t,r={}){const{step:n=1,loop:o=!0}=r,i=t+n,s=e.length,a=s-1;return t===-1?n>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function wb(e,t,r={}){return e[Kc(e,t,r)]}function Nb(e,t,r={}){const{step:n=1,loop:o=!0}=r;return Kc(e,t,{step:-n,loop:o})}function kb(e,t,r={}){return e[Nb(e,t,r)]}function zc(e){return e.reduce((t,r)=>Array.isArray(r)?t.concat(zc(r)):t.concat(r),[])}var ja=e=>e?.constructor.name==="Array",Ab=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Kt(e[r],t[r]))return!1;return!0},Kt=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(ja(e)&&ja(t))return Ab(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const i=r[o];if(!Kt(e[i],t[i]))return!1}return!0},Fb=e=>Array.isArray(e),Vb=e=>e!=null&&typeof e=="object",Ei=e=>Vb(e)&&!Fb(e),Yc=e=>typeof e=="number"&&!Number.isNaN(e),tn=e=>typeof e=="string",Et=e=>typeof e=="function",Lb=e=>e==null,Ci=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Db=Function.prototype.toString;Db.call(Object);var zr=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,$b=e=>e(),Mb=()=>{},pn=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})},Xc=(()=>{let e=0;return()=>(e++,e.toString(36))})(),Zc=(e,t)=>{try{return e()}catch(r){return r instanceof Error&&Error.captureStackTrace?.(r,Zc),t?.()}},{floor:qi,abs:So,round:ri,min:_b,max:jb,pow:Gb,sign:Bb}=Math,Yr=e=>Number.isNaN(e),dt=e=>Yr(e)?0:e,Jc=(e,t)=>(e%t+t)%t,Ub=(e,t)=>(e%t+t)%t,Hb=(e,t,r)=>e===0?r:t[e-1],Wb=(e,t,r)=>e===t.length-1?r:t[e+1],qb=(e,t)=>dt(e)>=t,Kb=(e,t)=>dt(e)<=t,Qc=(e,t,r)=>dt(e)>=t&&dt(e)<=r,zb=(e,t,r)=>ri((dt(e)-t)/r)*r+t,me=(e,t,r)=>_b(jb(dt(e),t),r),In=(e,t,r)=>(dt(e)-t)/(r-t),qs=(e,t,r,n)=>me(zb(e*(r-t)+t,t,n),t,r),Mn=(e,t)=>{let r=e,n=t.toString(),o=n.indexOf("."),i=o>=0?n.length-o:0;if(i>0){let s=Gb(10,i);r=ri(r*s)/s}return r},rn=(e,t)=>typeof t=="number"?qi(e*t+.5)/t:ri(e),fn=(e,t,r,n)=>{t=Number(t),r=Number(r);let o=(e-(Yr(t)?0:t))%n,i=Mn(So(o)*2>=n?e+Bb(o)*(n-So(o)):e-o,n);return Yr(t)?!Yr(r)&&i>r&&(i=t+qi(Mn((r-t)/n,n))*n):i<t?i=t:!Yr(r)&&i>r&&(i=t+qi(Mn((r-t)/n,n))*n),Mn(i,n)},Ct=(e,t,r)=>e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)];function eu(e,t){const r=Hb(e,t.values,t.min),n=Wb(e,t.values,t.max);let o=t.values.slice();return function(s){let a=fn(s,r,n,t.step);return o=Ct(o,e,s),o[e]=a,o}}function Yb(e,t){const r=t.values[e]+t.step;return eu(e,t)(r)}function Xb(e,t){const r=t.values[e]-t.step;return eu(e,t)(r)}var Zb=(e,t)=>{let r=e.findIndex(i=>t-i<0);if(r===0)return r;if(r===-1)return e.length-1;let n=e[r-1],o=e[r];return So(n-t)<So(o-t)?r-1:r},tu=(e,t,r,n)=>e.map((o,i)=>({min:i===0?t:e[i-1]+n,max:i===e.length-1?r:e[i+1]-n,value:o})),Ki=(e,t)=>{const[r,n]=e,[o,i]=t;return s=>r===n||o===i?o:o+(i-o)/(n-r)*(s-r)},re=(e,t=0,r=10)=>{const n=Math.pow(r,t);return ri(e*n)/n},Ga=e=>{if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r},ru=(e,t,r)=>{let n=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const o=10**Math.max(Ga(e),Ga(r));e=Math.round(e*o),r=Math.round(r*o),n=t==="+"?e+r:e-r,n/=o}return n},Jb=(e,t)=>ru(dt(e),"+",t),Qb=(e,t)=>ru(dt(e),"-",t),Ba=e=>e!=null?`${e}px`:void 0;function ni(e){if(!eP(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=ni(o))}return r}var eP=e=>e&&typeof e=="object"&&e.constructor===Object;function tP(e,t){const r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=o)}return r}function go(e,t){const r=performance.now();let n;function o(i){n=requestAnimationFrame(o),i-r>=t&&e()}return n=requestAnimationFrame(o),()=>cancelAnimationFrame(n)}function mn(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function rP(...e){const t=e.length===1?e[0]:e[1];if((e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production")throw new Error(t)}function nu(e,t){if(e==null)throw new Error(t())}function nP(e,t,r){let n=[];for(const o of t)e[o]==null&&n.push(o);if(n.length>0)throw new Error(`[zag-js${` > ${r}`}] missing required props: ${n.join(", ")}`)}var oP=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),iP=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Ua=e=>{const t={};let r;for(;r=iP.exec(e);)t[r[1]]=r[2];return t},sP=(e,t)=>{if(tn(e)){if(tn(t))return`${e};${t}`;e=Ua(e)}else tn(t)&&(t=Ua(t));return Object.assign({},e??{},t??{})};function P(...e){let t={};for(let r of e){for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=pn(r[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=oP(t[n],r[n]);continue}if(n==="style"){t[n]=sP(t[n],r[n]);continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}function Oo(e,t,r){let n=[],o;return i=>{const s=e(i);return(s.length!==n.length||s.some((l,u)=>!Kt(n[u],l)))&&(n=s,o=t(...s)),o}}function je(){return{and:(...e)=>function(r){return e.every(n=>r.guard(n))},or:(...e)=>function(r){return e.some(n=>r.guard(n))},not:e=>function(r){return!r.guard(e)}}}function ou(){return{guards:je(),createMachine:e=>e,choose:e=>function({choose:r}){return r(e)?.actions}}}var or=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(or||{}),Ii="__init__";function aP(e){const t=()=>e.getRootNode?.()??document,r=()=>Oe(t()),n=()=>r().defaultView??window,o=()=>Sc(t());return{...e,getRootNode:t,getDoc:r,getWin:n,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}function lP(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var B=()=>e=>Array.from(new Set(e)),iu=typeof globalThis.document<"u"?v.useLayoutEffect:v.useEffect;function xo(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=v.useState(t),[o,i]=v.useState(n),s=e().value!==void 0,a=v.useRef(o);a.current=s?e().value:o;const l=v.useRef(a.current);iu(()=>{l.current=a.current},[o,e().value]);const u=g=>{const c=l.current,d=Et(g)?g(c):g;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:d,prev:c}),s||i(d),r(d,c)||e().onChange?.(d,c)};function p(){return s?e().value:o}return{initial:n,ref:a,get:p,set(g){(e().sync?Cn.flushSync:$b)(()=>u(g))},invoke(g,c){e().onChange?.(g,c)},hash(g){return e().hash?.(g)??String(g)}}}xo.cleanup=e=>{v.useEffect(()=>e,[])};xo.ref=e=>{const t=v.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function cP(e){const t=v.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var uP=(e,t)=>{const r=v.useRef(!1),n=v.useRef(!1);v.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),v.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function J(e,t={}){const r=v.useMemo(()=>{const{id:A,ids:k,getRootNode:L}=t;return aP({id:A,ids:k,getRootNode:L})},[t]),n=(...A)=>{e.debug&&console.log(...A)},o=e.props?.({props:ni(t),scope:r})??t,i=dP(o),s=e.context?.({prop:i,bindable:xo,scope:r,flush:Ha,getContext(){return l},getComputed(){return y},getRefs(){return h}}),a=su(s),l={get(A){return a.current?.[A].ref.current},set(A,k){a.current?.[A].set(k)},initial(A){return a.current?.[A].initial},hash(A){const k=a.current?.[A].get();return a.current?.[A].hash(k)}},u=v.useRef(new Map),p=v.useRef(null),g=v.useRef(null),c=v.useRef({type:""}),d=()=>({...c.current,current(){return c.current},previous(){return g.current}}),f=()=>({...R,matches(...A){return A.includes(R.ref.current)},hasTag(A){return!!e.states[R.ref.current]?.tags?.includes(A)}}),h=cP(e.refs?.({prop:i,context:l})??{}),I=()=>({state:f(),context:l,event:d(),prop:i,send:F,action:T,guard:S,track:uP,refs:h,computed:y,flush:Ha,scope:r,choose:b}),T=A=>{const k=Et(A)?A(I()):A;if(!k)return;const L=k.map(D=>{const M=e.implementations?.actions?.[D];return M||mn(`[zag-js] No implementation found for action "${JSON.stringify(D)}"`),M});for(const D of L)D?.(I())},S=A=>Et(A)?A(I()):e.implementations?.guards?.[A](I()),x=A=>{const k=Et(A)?A(I()):A;if(!k)return;const L=k.map(M=>{const K=e.implementations?.effects?.[M];return K||mn(`[zag-js] No implementation found for effect "${JSON.stringify(M)}"`),K}),D=[];for(const M of L){const K=M?.(I());K&&D.push(K)}return()=>D.forEach(M=>M?.())},b=A=>Sb(A).find(k=>{let L=!k.guard;return tn(k.guard)?L=!!S(k.guard):Et(k.guard)&&(L=k.guard(I())),L}),y=A=>{nu(e.computed,()=>"[zag-js] No computed object found on machine");const k=e.computed[A];return k({context:l,event:d(),prop:i,refs:h,scope:r,computed:y})},R=xo(()=>({defaultValue:e.initialState({prop:i}),onChange(A,k){k&&(u.current.get(k)?.(),u.current.delete(k)),k&&T(e.states[k]?.exit),T(p.current?.actions);const L=x(e.states[A]?.effects);if(L&&u.current.set(A,L),k===Ii){T(e.entry);const D=x(e.effects);D&&u.current.set(Ii,D)}T(e.states[A]?.entry)}})),O=v.useRef(void 0),w=v.useRef(or.NotStarted);iu(()=>{queueMicrotask(()=>{const L=w.current===or.Started;w.current=or.Started,n(L?"rehydrating...":"initializing...");const D=O.current??R.initial;R.invoke(D,L?R.get():Ii)});const A=u.current,k=R.ref.current;return()=>{n("unmounting..."),O.current=k,w.current=or.Stopped,A.forEach(L=>L?.()),u.current=new Map,p.current=null,queueMicrotask(()=>{T(e.exit)})}},[]);const N=()=>"ref"in R?R.ref.current:R.get(),F=A=>{queueMicrotask(()=>{if(w.current!==or.Started)return;g.current=c.current,c.current=A,n("send",A);let k=N();const L=e.states[k].on?.[A.type]??e.on?.[A.type],D=b(L);if(!D)return;p.current=D;const M=D.target??k;n("transition",D);const K=M!==k;K?Cn.flushSync(()=>R.set(M)):D.reenter&&!K?R.invoke(k,k):T(D.actions??[])})};return e.watch?.(I()),{state:f(),send:F,context:l,prop:i,scope:r,refs:h,computed:y,event:d(),getStatus:()=>w.current}}function su(e){const t=v.useRef(e);return t.current=e,t}function dP(e){const t=su(e);return function(n){return t.current[n]}}function Ha(e){queueMicrotask(()=>{Cn.flushSync(()=>e())})}var te=lP(e=>e);function Fe(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function gP(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Ti=e=>{const t=v.memo(v.forwardRef((r,n)=>{const{asChild:o,children:i,...s}=r;if(!o)return v.createElement(e,{...s,ref:n},i);const a=v.Children.only(i);if(!v.isValidElement(a))return null;const l=gP(a);return v.cloneElement(a,{...P(s,a.props),ref:n?Fe(n,l):l})}));return t.displayName=e.displayName||e.name,t},pP=()=>{const e=new Map;return new Proxy(Ti,{apply(t,r,n){return Ti(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,Ti(n)),e.get(n)}})},C=pP(),[au,Tn]=j({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),lu=v.forwardRef((e,t)=>{const r=Tn(),n=P(r.getArrowProps(),e);return m.jsx(C.div,{...n,ref:t})});lu.displayName="TooltipArrow";const cu=v.forwardRef((e,t)=>{const r=Tn(),n=P(r.getArrowTipProps(),e);return m.jsx(C.div,{...n,ref:t})});cu.displayName="TooltipArrowTip";const[Ie,ve]=j({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),uu=v.forwardRef((e,t)=>{const r=Tn(),n=ve(),o=P(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:m.jsx(C.div,{...o,ref:Fe(n.ref,t)})});uu.displayName="TooltipContent";const du=v.forwardRef((e,t)=>{const r=Tn(),n=P(r.getPositionerProps(),e);return ve().unmounted?null:m.jsx(C.div,{...n,ref:t})});du.displayName="TooltipPositioner";const $=()=>(e,t)=>t.reduce((r,n)=>{const[o,i]=r,s=n;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),Te=e=>$()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function fP(e,t){const{state:r,send:n,context:o}=e,i=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&n({type:"NODE.SET",node:s})},unmount(){n({type:"UNMOUNT"})}}}var mP={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:r}){e([()=>r("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",gr(t.node))},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&i?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});_(()=>{const s=_n(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{_(()=>{e.set("prevAnimationName",_n(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const n=t.get("node");if(!n)return;const o=a=>{(a.composedPath?.()?.[0]??a.target)===n&&e.set("prevAnimationName",_n(t.get("styles")))},i=a=>{const l=_n(t.get("styles"));ce(a)===n&&l===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};n.addEventListener("animationstart",o),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i);const s=dn(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i),Zo(()=>s())}}}}};function _n(e){return e?.animationName||"none"}B()(["onExitComplete","present","immediate"]);function gu(e,t={}){const{sync:r=!1}=t,n=hP(e);return v.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function hP(e){const t=v.useRef(e);return t.current=e,t}const ye=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...i}=e,s=v.useRef(!1),a={...i,present:n,onExitComplete:gu(e.onExitComplete)},l=J(mP,a),u=fP(l);u.present&&(s.current=!0);const p=!u.present&&!s.current&&t||r&&!u.present&&s.current,g=()=>({"data-state":u.skip&&o?void 0:n?"open":"closed",hidden:!u.present});return{ref:u.setNode,getPresenceProps:g,present:u.present,unmounted:p}};var q=(e,t=[])=>({parts:(...r)=>{if(vP(t))return q(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>q(e,[...t,...r]),rename:r=>q(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Zt(e)}"][data-part="${Zt(n)}"]`,`& [data-scope="${Zt(e)}"][data-part="${Zt(n)}"]`].join(", "),attrs:{"data-scope":Zt(e),"data-part":Zt(n)}}}),{})}),Zt=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),vP=e=>e.length===0;function yP(e){return!(e.metaKey||!Yo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var bP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function PP(e,t,r){const n=r?ce(r):null,o=ie(n);return e=e||n instanceof o.HTMLInputElement&&!bP.has(n?.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable,!(e&&t==="keyboard"&&r instanceof o.KeyboardEvent&&!Reflect.has(EP,r.key))}var zt=null,zi=new Set,nn=new Map,Bt=!1,Yi=!1,EP={Tab:!0,Escape:!0};function oi(e,t){for(let r of zi)r(e,t)}function wo(e){Bt=!0,yP(e)&&(zt="keyboard",oi("keyboard",e))}function $e(e){zt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bt=!0,oi("pointer",e))}function pu(e){_y(e)&&(Bt=!0,zt="virtual")}function fu(e){const t=ce(e);t===ie(t)||t===Oe(t)||(!Bt&&!Yi&&(zt="virtual",oi("virtual",e)),Bt=!1,Yi=!1)}function mu(){Bt=!1,Yi=!0}function CP(e){if(typeof window>"u"||nn.get(ie(e)))return;const t=ie(e),r=Oe(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){zt="virtual",oi("virtual",null),Bt=!0,n.apply(this,arguments)},r.addEventListener("keydown",wo,!0),r.addEventListener("keyup",wo,!0),r.addEventListener("click",pu,!0),t.addEventListener("focus",fu,!0),t.addEventListener("blur",mu,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",$e,!0),r.addEventListener("pointermove",$e,!0),r.addEventListener("pointerup",$e,!0)):(r.addEventListener("mousedown",$e,!0),r.addEventListener("mousemove",$e,!0),r.addEventListener("mouseup",$e,!0)),t.addEventListener("beforeunload",()=>{IP(e)},{once:!0}),nn.set(t,{focus:n})}var IP=(e,t)=>{const r=ie(e),n=Oe(e);nn.has(r)&&(r.HTMLElement.prototype.focus=nn.get(r).focus,n.removeEventListener("keydown",wo,!0),n.removeEventListener("keyup",wo,!0),n.removeEventListener("click",pu,!0),r.removeEventListener("focus",fu,!0),r.removeEventListener("blur",mu,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",$e,!0),n.removeEventListener("pointermove",$e,!0),n.removeEventListener("pointerup",$e,!0)):(n.removeEventListener("mousedown",$e,!0),n.removeEventListener("mousemove",$e,!0),n.removeEventListener("mouseup",$e,!0)),nn.delete(r))};function fr(){return zt==="keyboard"}function ii(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;CP(o),n?.({isFocusVisible:r||fr(),modality:zt});const i=(s,a)=>{PP(!!t,s,a)&&n?.({isFocusVisible:fr(),modality:s})};return zi.add(i),()=>{zi.delete(i)}}const TP=["top","right","bottom","left"],Ot=Math.min,Ne=Math.max,No=Math.round,jn=Math.floor,et=e=>({x:e,y:e}),RP={left:"right",right:"left",bottom:"top",top:"bottom"},SP={start:"end",end:"start"};function Xi(e,t,r){return Ne(e,Ot(t,r))}function gt(e,t){return typeof e=="function"?e(t):e}function pt(e){return e.split("-")[0]}function vr(e){return e.split("-")[1]}function Ks(e){return e==="x"?"y":"x"}function zs(e){return e==="y"?"height":"width"}function Qe(e){return["top","bottom"].includes(pt(e))?"y":"x"}function Ys(e){return Ks(Qe(e))}function OP(e,t,r){r===void 0&&(r=!1);const n=vr(e),o=Ys(e),i=zs(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ko(s)),[s,ko(s)]}function xP(e){const t=ko(e);return[Zi(e),t,Zi(t)]}function Zi(e){return e.replace(/start|end/g,t=>SP[t])}function wP(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function NP(e,t,r,n){const o=vr(e);let i=wP(pt(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Zi)))),i}function ko(e){return e.replace(/left|right|bottom|top/g,t=>RP[t])}function kP(e){return{top:0,right:0,bottom:0,left:0,...e}}function hu(e){return typeof e!="number"?kP(e):{top:e,right:e,bottom:e,left:e}}function Ao(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Wa(e,t,r){let{reference:n,floating:o}=e;const i=Qe(t),s=Ys(t),a=zs(s),l=pt(t),u=i==="y",p=n.x+n.width/2-o.width/2,g=n.y+n.height/2-o.height/2,c=n[a]/2-o[a]/2;let d;switch(l){case"top":d={x:p,y:n.y-o.height};break;case"bottom":d={x:p,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:g};break;case"left":d={x:n.x-o.width,y:g};break;default:d={x:n.x,y:n.y}}switch(vr(t)){case"start":d[s]-=c*(r&&u?-1:1);break;case"end":d[s]+=c*(r&&u?-1:1);break}return d}const AP=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:g}=Wa(u,n,l),c=n,d={},f=0;for(let h=0;h<a.length;h++){const{name:I,fn:T}=a[h],{x:S,y:x,data:b,reset:y}=await T({x:p,y:g,initialPlacement:n,placement:c,strategy:o,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});p=S??p,g=x??g,d={...d,[I]:{...d[I],...b}},y&&f<=50&&(f++,typeof y=="object"&&(y.placement&&(c=y.placement),y.rects&&(u=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:p,y:g}=Wa(u,c,l)),h=-1)}return{x:p,y:g,placement:c,strategy:o,middlewareData:d}};async function hn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:c=!1,padding:d=0}=gt(t,e),f=hu(d),I=a[c?g==="floating"?"reference":"floating":g],T=Ao(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(I)))==null||r?I:I.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:p,strategy:l})),S=g==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},y=Ao(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:x,strategy:l}):S);return{top:(T.top-y.top+f.top)/b.y,bottom:(y.bottom-T.bottom+f.bottom)/b.y,left:(T.left-y.left+f.left)/b.x,right:(y.right-T.right+f.right)/b.x}}const FP=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:p=0}=gt(e,t)||{};if(u==null)return{};const g=hu(p),c={x:r,y:n},d=Ys(o),f=zs(d),h=await s.getDimensions(u),I=d==="y",T=I?"top":"left",S=I?"bottom":"right",x=I?"clientHeight":"clientWidth",b=i.reference[f]+i.reference[d]-c[d]-i.floating[f],y=c[d]-i.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let O=R?R[x]:0;(!O||!await(s.isElement==null?void 0:s.isElement(R)))&&(O=a.floating[x]||i.floating[f]);const w=b/2-y/2,N=O/2-h[f]/2-1,F=Ot(g[T],N),A=Ot(g[S],N),k=F,L=O-h[f]-A,D=O/2-h[f]/2+w,M=Xi(k,D,L),K=!l.arrow&&vr(o)!=null&&D!==M&&i.reference[f]/2-(D<k?F:A)-h[f]/2<0,z=K?D<k?D-k:D-L:0;return{[d]:c[d]+z,data:{[d]:M,centerOffset:D-M-z,...K&&{alignmentOffset:z}},reset:K}}}),VP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:c,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...I}=gt(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const T=pt(o),S=Qe(a),x=pt(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),y=c||(x||!h?[ko(a)]:xP(a)),R=f!=="none";!c&&R&&y.push(...NP(a,h,f,b));const O=[a,...y],w=await hn(t,I),N=[];let F=((n=i.flip)==null?void 0:n.overflows)||[];if(p&&N.push(w[T]),g){const D=OP(o,s,b);N.push(w[D[0]],w[D[1]])}if(F=[...F,{placement:o,overflows:N}],!N.every(D=>D<=0)){var A,k;const D=(((A=i.flip)==null?void 0:A.index)||0)+1,M=O[D];if(M&&(!(g==="alignment"?S!==Qe(M):!1)||F.every(ae=>ae.overflows[0]>0&&Qe(ae.placement)===S)))return{data:{index:D,overflows:F},reset:{placement:M}};let K=(k=F.filter(z=>z.overflows[0]<=0).sort((z,ae)=>z.overflows[1]-ae.overflows[1])[0])==null?void 0:k.placement;if(!K)switch(d){case"bestFit":{var L;const z=(L=F.filter(ae=>{if(R){const Se=Qe(ae.placement);return Se===S||Se==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(Se=>Se>0).reduce((Se,V)=>Se+V,0)]).sort((ae,Se)=>ae[1]-Se[1])[0])==null?void 0:L[0];z&&(K=z);break}case"initialPlacement":K=a;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function qa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ka(e){return TP.some(t=>e[t]>=0)}const LP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=gt(e,t);switch(n){case"referenceHidden":{const i=await hn(t,{...o,elementContext:"reference"}),s=qa(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ka(s)}}}case"escaped":{const i=await hn(t,{...o,altBoundary:!0}),s=qa(i,r.floating);return{data:{escapedOffsets:s,escaped:Ka(s)}}}default:return{}}}}};async function DP(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=pt(r),a=vr(r),l=Qe(r)==="y",u=["left","top"].includes(s)?-1:1,p=i&&l?-1:1,g=gt(t,e);let{mainAxis:c,crossAxis:d,alignmentAxis:f}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return a&&typeof f=="number"&&(d=a==="end"?f*-1:f),l?{x:d*p,y:c*u}:{x:c*u,y:d*p}}const $P=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await DP(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},MP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:I=>{let{x:T,y:S}=I;return{x:T,y:S}}},...l}=gt(e,t),u={x:r,y:n},p=await hn(t,l),g=Qe(pt(o)),c=Ks(g);let d=u[c],f=u[g];if(i){const I=c==="y"?"top":"left",T=c==="y"?"bottom":"right",S=d+p[I],x=d-p[T];d=Xi(S,d,x)}if(s){const I=g==="y"?"top":"left",T=g==="y"?"bottom":"right",S=f+p[I],x=f-p[T];f=Xi(S,f,x)}const h=a.fn({...t,[c]:d,[g]:f});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[c]:i,[g]:s}}}}}},_P=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=gt(e,t),p={x:r,y:n},g=Qe(o),c=Ks(g);let d=p[c],f=p[g];const h=gt(a,t),I=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=c==="y"?"height":"width",b=i.reference[c]-i.floating[x]+I.mainAxis,y=i.reference[c]+i.reference[x]-I.mainAxis;d<b?d=b:d>y&&(d=y)}if(u){var T,S;const x=c==="y"?"width":"height",b=["top","left"].includes(pt(o)),y=i.reference[g]-i.floating[x]+(b&&((T=s.offset)==null?void 0:T[g])||0)+(b?0:I.crossAxis),R=i.reference[g]+i.reference[x]+(b?0:((S=s.offset)==null?void 0:S[g])||0)-(b?I.crossAxis:0);f<y?f=y:f>R&&(f=R)}return{[c]:d,[g]:f}}}},jP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=gt(e,t),p=await hn(t,u),g=pt(o),c=vr(o),d=Qe(o)==="y",{width:f,height:h}=i.floating;let I,T;g==="top"||g==="bottom"?(I=g,T=c===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(T=g,I=c==="end"?"top":"bottom");const S=h-p.top-p.bottom,x=f-p.left-p.right,b=Ot(h-p[I],S),y=Ot(f-p[T],x),R=!t.middlewareData.shift;let O=b,w=y;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(w=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=S),R&&!c){const F=Ne(p.left,0),A=Ne(p.right,0),k=Ne(p.top,0),L=Ne(p.bottom,0);d?w=f-2*(F!==0||A!==0?F+A:Ne(p.left,p.right)):O=h-2*(k!==0||L!==0?k+L:Ne(p.top,p.bottom))}await l({...t,availableWidth:w,availableHeight:O});const N=await s.getDimensions(a.floating);return f!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function si(){return typeof window<"u"}function yr(e){return vu(e)?(e.nodeName||"").toLowerCase():"#document"}function ke(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(vu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vu(e){return si()?e instanceof Node||e instanceof ke(e).Node:!1}function qe(e){return si()?e instanceof Element||e instanceof ke(e).Element:!1}function tt(e){return si()?e instanceof HTMLElement||e instanceof ke(e).HTMLElement:!1}function za(e){return!si()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ke(e).ShadowRoot}function Rn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function GP(e){return["table","td","th"].includes(yr(e))}function ai(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xs(e){const t=Zs(),r=qe(e)?Ke(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function BP(e){let t=xt(e);for(;tt(t)&&!mr(t);){if(Xs(t))return t;if(ai(t))return null;t=xt(t)}return null}function Zs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mr(e){return["html","body","#document"].includes(yr(e))}function Ke(e){return ke(e).getComputedStyle(e)}function li(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xt(e){if(yr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||za(e)&&e.host||rt(e);return za(t)?t.host:t}function yu(e){const t=xt(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:tt(t)&&Rn(t)?t:yu(t)}function vn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=yu(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=ke(o);if(i){const a=Ji(s);return t.concat(s,s.visualViewport||[],Rn(o)?o:[],a&&r?vn(a):[])}return t.concat(o,vn(o,[],r))}function Ji(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bu(e){const t=Ke(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=tt(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=No(r)!==i||No(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Js(e){return qe(e)?e:e.contextElement}function cr(e){const t=Js(e);if(!tt(t))return et(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=bu(t);let s=(i?No(r.width):r.width)/n,a=(i?No(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const UP=et(0);function Pu(e){const t=ke(e);return!Zs()||!t.visualViewport?UP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HP(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ke(e)?!1:t}function Ut(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Js(e);let s=et(1);t&&(n?qe(n)&&(s=cr(n)):s=cr(e));const a=HP(i,r,n)?Pu(i):et(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,p=o.width/s.x,g=o.height/s.y;if(i){const c=ke(i),d=n&&qe(n)?ke(n):n;let f=c,h=Ji(f);for(;h&&n&&d!==f;){const I=cr(h),T=h.getBoundingClientRect(),S=Ke(h),x=T.left+(h.clientLeft+parseFloat(S.paddingLeft))*I.x,b=T.top+(h.clientTop+parseFloat(S.paddingTop))*I.y;l*=I.x,u*=I.y,p*=I.x,g*=I.y,l+=x,u+=b,f=ke(h),h=Ji(f)}}return Ao({width:p,height:g,x:l,y:u})}function Qs(e,t){const r=li(e).scrollLeft;return t?t.left+r:Ut(rt(e)).left+r}function Eu(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Qs(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function WP(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=rt(n),a=t?ai(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},u=et(1);const p=et(0),g=tt(n);if((g||!g&&!i)&&((yr(n)!=="body"||Rn(s))&&(l=li(n)),tt(n))){const d=Ut(n);u=cr(n),p.x=d.x+n.clientLeft,p.y=d.y+n.clientTop}const c=s&&!g&&!i?Eu(s,l,!0):et(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+p.x+c.x,y:r.y*u.y-l.scrollTop*u.y+p.y+c.y}}function qP(e){return Array.from(e.getClientRects())}function KP(e){const t=rt(e),r=li(e),n=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ne(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Qs(e);const a=-r.scrollTop;return Ke(n).direction==="rtl"&&(s+=Ne(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function zP(e,t){const r=ke(e),n=rt(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Zs();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function YP(e,t){const r=Ut(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=tt(e)?cr(e):et(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=n*i.y;return{width:s,height:a,x:l,y:u}}function Ya(e,t,r){let n;if(t==="viewport")n=zP(e,r);else if(t==="document")n=KP(rt(e));else if(qe(t))n=YP(t,r);else{const o=Pu(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ao(n)}function Cu(e,t){const r=xt(e);return r===t||!qe(r)||mr(r)?!1:Ke(r).position==="fixed"||Cu(r,t)}function XP(e,t){const r=t.get(e);if(r)return r;let n=vn(e,[],!1).filter(a=>qe(a)&&yr(a)!=="body"),o=null;const i=Ke(e).position==="fixed";let s=i?xt(e):e;for(;qe(s)&&!mr(s);){const a=Ke(s),l=Xs(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Rn(s)&&!l&&Cu(e,s))?n=n.filter(p=>p!==s):o=a,s=xt(s)}return t.set(e,n),n}function ZP(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?ai(t)?[]:XP(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,p)=>{const g=Ya(t,p,o);return u.top=Ne(g.top,u.top),u.right=Ot(g.right,u.right),u.bottom=Ot(g.bottom,u.bottom),u.left=Ne(g.left,u.left),u},Ya(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function JP(e){const{width:t,height:r}=bu(e);return{width:t,height:r}}function QP(e,t,r){const n=tt(t),o=rt(t),i=r==="fixed",s=Ut(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=et(0);if(n||!n&&!i)if((yr(t)!=="body"||Rn(o))&&(a=li(t)),n){const c=Ut(t,!0,i,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=Qs(o));const u=o&&!n&&!i?Eu(o,a):et(0),p=s.left+a.scrollLeft-l.x-u.x,g=s.top+a.scrollTop-l.y-u.y;return{x:p,y:g,width:s.width,height:s.height}}function Ri(e){return Ke(e).position==="static"}function Xa(e,t){if(!tt(e)||Ke(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return rt(e)===r&&(r=r.ownerDocument.body),r}function Iu(e,t){const r=ke(e);if(ai(e))return r;if(!tt(e)){let o=xt(e);for(;o&&!mr(o);){if(qe(o)&&!Ri(o))return o;o=xt(o)}return r}let n=Xa(e,t);for(;n&&GP(n)&&Ri(n);)n=Xa(n,t);return n&&mr(n)&&Ri(n)&&!Xs(n)?r:n||BP(e)||r}const eE=async function(e){const t=this.getOffsetParent||Iu,r=this.getDimensions,n=await r(e.floating);return{reference:QP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function tE(e){return Ke(e).direction==="rtl"}const rE={convertOffsetParentRelativeRectToViewportRelativeRect:WP,getDocumentElement:rt,getClippingRect:ZP,getOffsetParent:Iu,getElementRects:eE,getClientRects:qP,getDimensions:JP,getScale:cr,isElement:qe,isRTL:tE};function Tu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nE(e,t){let r=null,n;const o=rt(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:p,top:g,width:c,height:d}=u;if(a||t(),!c||!d)return;const f=jn(g),h=jn(o.clientWidth-(p+c)),I=jn(o.clientHeight-(g+d)),T=jn(p),x={rootMargin:-f+"px "+-h+"px "+-I+"px "+-T+"px",threshold:Ne(0,Ot(1,l))||1};let b=!0;function y(R){const O=R[0].intersectionRatio;if(O!==l){if(!b)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Tu(u,e.getBoundingClientRect())&&s(),b=!1}try{r=new IntersectionObserver(y,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(y,x)}r.observe(e)}return s(!0),i}function oE(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Js(e),p=o||i?[...u?vn(u):[],...vn(t)]:[];p.forEach(T=>{o&&T.addEventListener("scroll",r,{passive:!0}),i&&T.addEventListener("resize",r)});const g=u&&a?nE(u,r):null;let c=-1,d=null;s&&(d=new ResizeObserver(T=>{let[S]=T;S&&S.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var x;(x=d)==null||x.observe(t)})),r()}),u&&!l&&d.observe(u),d.observe(t));let f,h=l?Ut(e):null;l&&I();function I(){const T=Ut(e);h&&!Tu(h,T)&&r(),h=T,f=requestAnimationFrame(I)}return r(),()=>{var T;p.forEach(S=>{o&&S.removeEventListener("scroll",r),i&&S.removeEventListener("resize",r)}),g?.(),(T=d)==null||T.disconnect(),d=null,l&&cancelAnimationFrame(f)}}const iE=$P,sE=MP,aE=VP,lE=jP,cE=LP,uE=FP,dE=_P,gE=(e,t,r)=>{const n=new Map,o={platform:rE,...r},i={...o.platform,_c:n};return AP(e,t,{...o,platform:i})};function Za(e=0,t=0,r=0,n=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,n);const o={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...o,toJSON:()=>o}}function pE(e){if(!e)return Za();const{x:t,y:r,width:n,height:o}=e;return Za(t,r,n,o)}function fE(e,t){return{contextElement:ge(e)?e:void 0,getBoundingClientRect:()=>{const r=e,n=t?.(r);return n||!r?pE(n):r.getBoundingClientRect()}}}var Ar=e=>({variable:e,reference:`var(${e})`}),at={arrowSize:Ar("--arrow-size"),arrowSizeHalf:Ar("--arrow-size-half"),arrowBg:Ar("--arrow-background"),transformOrigin:Ar("--transform-origin"),arrowOffset:Ar("--arrow-offset")},mE=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),hE={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:r}){const{arrow:n}=r,o=mE(n)[e],{floating:i}=t;return i.style.setProperty(at.transformOrigin.variable,o),{data:{transformOrigin:o}}}},vE={name:"rects",fn({rects:e}){return{data:e}}},yE=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:n,y:o}=r.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${at.arrowOffset.reference})`}),{}}}};function bE(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function PE(e){return e.split("-")[0]}var EE={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Ja(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function Ru(e){return zr(e.boundary)}function CE(e,t){if(e)return uE({element:e,padding:t.arrowPadding})}function IE(e,t){if(!Lb(t.offset??t.gutter))return iE(({placement:r})=>{const n=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,i=typeof o=="number"?o+n:o??n,{hasAlign:s}=bE(r),a=s?void 0:t.shift,l=t.offset?.crossAxis??a;return ni({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function TE(e){if(e.flip)return aE({boundary:Ru(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function RE(e){if(!(!e.slide&&!e.overlap))return sE({boundary:Ru(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:dE()})}function SE(e){return lE({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:n,availableWidth:o}){const i=t.floating,s=Math.round(r.reference.width);o=Math.floor(o),n=Math.floor(n),i.style.setProperty("--reference-width",`${s}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${n}px`)}})}function OE(e){if(e.hideWhenDetached)return cE({strategy:"referenceHidden",boundary:e.boundary?.()??"clippingAncestors"})}function xE(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function wE(e,t,r={}){const n=fE(e,r.getAnchorRect);if(!t||!n)return;const o=Object.assign({},EE,r),i=t.querySelector("[data-part=arrow]"),s=[IE(i,o),TE(o),RE(o),CE(i,o),yE(i),hE,SE(o),OE(o),vE],{placement:a,strategy:l,onComplete:u,onPositioned:p}=o,g=async()=>{if(!n||!t)return;const h=await gE(n,t,{placement:a,middleware:s,strategy:l});u?.(h),p?.({placed:!0});const I=ie(t),T=Ja(I,h.x),S=Ja(I,h.y);t.style.setProperty("--x",`${T}px`),t.style.setProperty("--y",`${S}px`),o.hideWhenDetached&&(h.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const x=t.firstElementChild;if(x){const b=gr(x);t.style.setProperty("--z-index",b.zIndex)}},c=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:g}),p?.({placed:!0})):await g()},d=xE(o.listeners),f=o.listeners?oE(n,t,c,d):Mb;return c(),()=>{f?.(),p?.({placed:!1})}}function ze(e,t,r={}){const{defer:n,...o}=r,i=n?_:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(wE(a,l,o))})),()=>{s.forEach(a=>a?.())}}var NE={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function br(e={}){const{placement:t,sameWidth:r,fitViewport:n,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:at.arrowSize.reference,height:at.arrowSize.reference,[at.arrowSizeHalf.variable]:`calc(${at.arrowSize.reference} / 2)`,[at.arrowOffset.variable]:`calc(${at.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?NE[t.split("-")[0]]:void 0,background:at.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}const kE=Symbol(),Qa=Object.getPrototypeOf,Qi=new WeakMap,AE=e=>e&&(Qi.has(e)?Qi.get(e):Qa(e)===Object.prototype||Qa(e)===Array.prototype),FE=e=>AE(e)&&e[kE]||null,el=(e,t=!0)=>{Qi.set(e,t)};function VE(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Su(e,t){const r=VE();return r?(r[e]||(r[e]=t()),r[e]):t()}var po=Su("__zag__refSet",()=>new WeakSet),LE=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,DE=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,$E=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",ME=e=>LE(e)||DE(e)||$E(e),es=e=>e!==null&&typeof e=="object",tl=e=>es(e)&&!po.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!ME(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Fo=()=>process.env.NODE_ENV!=="production",$t=Su("__zag__proxyStateMap",()=>new WeakMap),_E=(e=Object.is,t=(a,l)=>new Proxy(a,l),r=new WeakMap,n=(a,l)=>{const u=r.get(a);if(u?.[0]===l)return u[1];const p=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a));return el(p,!0),r.set(a,[l,p]),Reflect.ownKeys(a).forEach(g=>{const c=Reflect.get(a,g);po.has(c)?(el(c,!1),p[g]=c):$t.has(c)?p[g]=BE(c):p[g]=c}),Object.freeze(p)},o=new WeakMap,i=[1,1],s=a=>{if(!es(a))throw new Error("object required");const l=o.get(a);if(l)return l;let u=i[0];const p=new Set,g=(O,w=++i[0])=>{u!==w&&(u=w,p.forEach(N=>N(O,w)))};let c=i[1];const d=(O=++i[1])=>(c!==O&&!p.size&&(c=O,h.forEach(([w])=>{const N=w[1](O);N>u&&(u=N)})),u),f=O=>(w,N)=>{const F=[...w];F[1]=[O,...F[1]],g(F,N)},h=new Map,I=(O,w)=>{if(Fo()&&h.has(O))throw new Error("prop listener already exists");if(p.size){const N=w[3](f(O));h.set(O,[w,N])}else h.set(O,[w])},T=O=>{const w=h.get(O);w&&(h.delete(O),w[1]?.())},S=O=>(p.add(O),p.size===1&&h.forEach(([N,F],A)=>{if(Fo()&&F)throw new Error("remove already exists");const k=N[3](f(A));h.set(A,[N,k])}),()=>{p.delete(O),p.size===0&&h.forEach(([N,F],A)=>{F&&(F(),h.set(A,[N]))})}),x=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a)),y=t(x,{deleteProperty(O,w){const N=Reflect.get(O,w);T(w);const F=Reflect.deleteProperty(O,w);return F&&g(["delete",[w],N]),F},set(O,w,N,F){const A=Reflect.has(O,w),k=Reflect.get(O,w,F);if(A&&(e(k,N)||o.has(N)&&e(k,o.get(N))))return!0;T(w),es(N)&&(N=FE(N)||N);let L=N;if(!Object.getOwnPropertyDescriptor(O,w)?.set){!$t.has(N)&&tl(N)&&(L=Ou(N));const D=!po.has(L)&&$t.get(L);D&&I(w,D)}return Reflect.set(O,w,L,F),g(["set",[w],N,k]),!0}});o.set(a,y);const R=[x,d,n,S];return $t.set(y,R),Reflect.ownKeys(a).forEach(O=>{const w=Object.getOwnPropertyDescriptor(a,O);w.get||w.set?Object.defineProperty(x,O,w):y[O]=a[O]}),y})=>[s,$t,po,e,t,tl,r,n,o,i],[jE]=_E();function Ou(e={}){return jE(e)}function GE(e,t,r){const n=$t.get(e);Fo()&&!n&&console.warn("Please use proxy object");let o;const i=[],s=n[3];let a=!1;const u=s(p=>{i.push(p),o||(o=Promise.resolve().then(()=>{o=void 0,a&&t(i.splice(0))}))});return a=!0,()=>{a=!1,u()}}function BE(e){const t=$t.get(e);Fo()&&!t&&console.warn("Please use proxy object");const[r,n,o]=t;return o(r,n())}var xu=q("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),Fr=xu.build(),wu=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,UE=e=>e.ids?.content??`tooltip:${e.id}:content`,HE=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,Nu=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Si=e=>e.getById(wu(e)),rl=e=>e.getById(Nu(e)),lt=Ou({id:null});function WE(e,t){const{state:r,context:n,send:o,scope:i,prop:s,event:a}=e,l=s("id"),u=!!s("aria-label"),p=r.matches("open","closing"),g=wu(i),c=UE(i),d=s("disabled"),f=br({...s("positioning"),placement:n.get("currentPlacement")});return{open:p,setOpen(h){r.matches("open","closing")!==h&&o({type:h?"open":"close"})},reposition(h={}){o({type:"positioning.set",options:h})},getTriggerProps(){return t.button({...Fr.trigger.attrs,id:g,dir:s("dir"),"data-expanded":E(p),"data-state":p?"open":"closed","aria-describedby":p?c:void 0,onClick(h){h.defaultPrevented||d||s("closeOnClick")&&o({type:"close",src:"trigger.click"})},onFocus(h){queueMicrotask(()=>{h.defaultPrevented||d||a.src!=="trigger.pointerdown"&&fr()&&o({type:"open",src:"trigger.focus"})})},onBlur(h){h.defaultPrevented||d||l===lt.id&&o({type:"close",src:"trigger.blur"})},onPointerDown(h){h.defaultPrevented||d||s("closeOnPointerDown")&&l===lt.id&&o({type:"close",src:"trigger.pointerdown"})},onPointerMove(h){h.defaultPrevented||d||h.pointerType!=="touch"&&o({type:"pointer.move"})},onPointerLeave(){d||o({type:"pointer.leave"})},onPointerCancel(){d||o({type:"pointer.leave"})}})},getArrowProps(){return t.element({id:HE(i),...Fr.arrow.attrs,dir:s("dir"),style:f.arrow})},getArrowTipProps(){return t.element({...Fr.arrowTip.attrs,dir:s("dir"),style:f.arrowTip})},getPositionerProps(){return t.element({id:Nu(i),...Fr.positioner.attrs,dir:s("dir"),style:f.floating})},getContentProps(){return t.element({...Fr.content.attrs,dir:s("dir"),hidden:!p,"data-state":p?"open":"closed",role:u?void 0:"tooltip",id:u?void 0:c,"data-placement":n.get("currentPlacement"),onPointerEnter(){o({type:"content.pointer.move"})},onPointerLeave(){o({type:"content.pointer.leave"})},style:{pointerEvents:s("interactive")?"auto":"none"}})}}}var{and:qE,not:nl}=je(),KE={initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){return{id:"x",openDelay:1e3,closeDelay:500,closeOnPointerDown:!0,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,closeOnClick:!0,disabled:!1,...e,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:r}){e([()=>r("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:qE("noVisibleTooltip",nl("hasPointerMoveOpened")),target:"opening"},{guard:nl("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>lt.id===null,isVisible:({prop:e})=>e("id")===lt.id,isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>e("open")!==void 0},actions:{setGlobalId:({prop:e})=>{lt.id=e("id")},clearGlobalId:({prop:e})=>{e("id")===lt.id&&(lt.id=null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:r,scope:n})=>{if(t.type!=="positioning.set")return;const o=()=>rl(n);return ze(Si(n),o,{...r("positioning"),...t.options,defer:!0,listeners:!1,onComplete(i){e.set("currentPlacement",i.placement)}})},toggleVisibility:({prop:e,event:t,send:r})=>{queueMicrotask(()=>{r({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>ii({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:r})=>{e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const n=()=>rl(r);return ze(Si(r),n,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},trackPointerlockChange:({send:e,scope:t})=>{const r=t.getDoc();return W(r,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:r})=>{if(!t("closeOnScroll"))return;const n=Si(r);if(!n)return;const i=Dc(n).map(s=>W(s,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{i.forEach(s=>s?.())}},trackStore:({prop:e,send:t})=>{let r;return queueMicrotask(()=>{r=GE(lt,()=>{lt.id!==e("id")&&t({type:"close",src:"id.change"})})}),()=>r?.()},trackEscapeKey:({send:e,prop:t})=>t("closeOnEscape")?W(document,"keydown",n=>{Pn(n)||n.key==="Escape"&&(n.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0):void 0,waitForOpenDelay:({send:e,prop:t})=>{const r=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(r)},waitForCloseDelay:({send:e,prop:t})=>{const r=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(r)}}}};B()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const[TN,Q]=j({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),zE=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(KE,o);return WE(i,te)},YE=e=>{const[t,{children:r,...n}]=Te(e),o=zE(n),i=ye(P({present:o.open},t));return m.jsx(au,{value:o,children:m.jsx(Ie,{value:i,children:r})})},XE=e=>{const[t,{value:r,children:n}]=Te(e),o=ye(P({present:r.open},t));return m.jsx(au,{value:r,children:m.jsx(Ie,{value:o,children:n})})},ku=v.forwardRef((e,t)=>{const r=Tn(),n=P(r.getTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});ku.displayName="TooltipTrigger";const[Au,Fu]=j({name:"AvatarContext",hookName:"useAvatarContext",providerName:"<AvatarProvider />"}),Vu=v.forwardRef((e,t)=>{const r=Fu(),n=P(r.getFallbackProps(),e);return m.jsx(C.span,{...n,ref:t})});Vu.displayName="AvatarFallback";const Lu=v.forwardRef((e,t)=>{const r=Fu(),n=P(r.getImageProps(),e);return m.jsx(C.img,{...n,ref:t})});Lu.displayName="AvatarImage";var Du=q("avatar").parts("root","image","fallback"),Oi=Du.build(),$u=e=>e.ids?.root??`avatar:${e.id}`,Mu=e=>e.ids?.image??`avatar:${e.id}:image`,ZE=e=>e.ids?.fallback??`avatar:${e.id}:fallback`,JE=e=>e.getById($u(e)),ts=e=>e.getById(Mu(e));function QE(e,t){const{state:r,send:n,prop:o,scope:i}=e,s=r.matches("loaded");return{loaded:s,setSrc(a){ts(i)?.setAttribute("src",a)},setLoaded(){n({type:"img.loaded",src:"api"})},setError(){n({type:"img.error",src:"api"})},getRootProps(){return t.element({...Oi.root.attrs,dir:o("dir"),id:$u(i)})},getImageProps(){return t.img({...Oi.image.attrs,hidden:!s,dir:o("dir"),id:Mu(i),"data-state":s?"visible":"hidden",onLoad(){n({type:"img.loaded",src:"element"})},onError(){n({type:"img.error",src:"element"})}})},getFallbackProps(){return t.element({...Oi.fallback.attrs,dir:o("dir"),id:ZE(i),hidden:s,"data-state":s?"hidden":"visible"})}}}var eC={initialState(){return"loading"},effects:["trackImageRemoval","trackSrcChange"],on:{"src.change":{target:"loading"},"img.unmount":{target:"error"}},states:{loading:{entry:["checkImageStatus"],on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]},"img.error":{target:"error",actions:["invokeOnError"]}}},error:{on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]}}},loaded:{on:{"img.error":{target:"error",actions:["invokeOnError"]}}}},implementations:{actions:{invokeOnLoad({prop:e}){e("onStatusChange")?.({status:"loaded"})},invokeOnError({prop:e}){e("onStatusChange")?.({status:"error"})},checkImageStatus({send:e,scope:t}){const r=ts(t);if(!r?.complete)return;const n=tC(r)?"img.loaded":"img.error";e({type:n,src:"ssr"})}},effects:{trackImageRemoval({send:e,scope:t}){const r=JE(t);return tb(r,{callback(n){Array.from(n[0].removedNodes).find(s=>s.nodeType===Node.ELEMENT_NODE&&s.matches("[data-scope=avatar][data-part=image]"))&&e({type:"img.unmount"})}})},trackSrcChange({send:e,scope:t}){const r=ts(t);return Jo(r,{attributes:["src","srcset"],callback(){e({type:"src.change"})}})}}}};function tC(e){return e.complete&&e.naturalWidth!==0&&e.naturalHeight!==0}B()(["dir","id","ids","onStatusChange","getRootNode"]);const rC=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(eC,o);return QE(i,te)},_u=v.forwardRef((e,t)=>{const[r,n]=$()(e,["id","ids","onStatusChange"]),o=rC(r),i=P(o.getRootProps(),n);return m.jsx(Au,{value:o,children:m.jsx(C.div,{...i,ref:t})})});_u.displayName="AvatarRoot";const ju=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(Au,{value:r,children:m.jsx(C.div,{...o,ref:t})})});ju.displayName="AvatarRootProvider";var nC="",oC=nC.split(","),iC="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",sC=iC.split(",").concat(oC),aC=new Map(sC.map(e=>[e,!0]));function lC(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var cC=/&|@/,uC=lC(e=>aC.has(e)||e.startsWith("--")||cC.test(e)),xi,ol;function dC(){if(ol)return xi;ol=1,xi=i,i.default=i,i.stable=u,i.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(c,d,f,h){typeof h>"u"&&(h=o()),a(c,"",0,[],void 0,0,h);var I;try{n.length===0?I=JSON.stringify(c,d,f):I=JSON.stringify(c,g(d),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var T=r.pop();T.length===4?Object.defineProperty(T[0],T[1],T[3]):T[0][T[1]]=T[2]}}return I}function s(c,d,f,h){var I=Object.getOwnPropertyDescriptor(h,f);I.get!==void 0?I.configurable?(Object.defineProperty(h,f,{value:c}),r.push([h,f,d,I])):n.push([d,f,c]):(h[f]=c,r.push([h,f,d]))}function a(c,d,f,h,I,T,S){T+=1;var x;if(typeof c=="object"&&c!==null){for(x=0;x<h.length;x++)if(h[x]===c){s(t,c,d,I);return}if(typeof S.depthLimit<"u"&&T>S.depthLimit){s(e,c,d,I);return}if(typeof S.edgesLimit<"u"&&f+1>S.edgesLimit){s(e,c,d,I);return}if(h.push(c),Array.isArray(c))for(x=0;x<c.length;x++)a(c[x],x,x,h,c,T,S);else{var b=Object.keys(c);for(x=0;x<b.length;x++){var y=b[x];a(c[y],y,x,h,c,T,S)}}h.pop()}}function l(c,d){return c<d?-1:c>d?1:0}function u(c,d,f,h){typeof h>"u"&&(h=o());var I=p(c,"",0,[],void 0,0,h)||c,T;try{n.length===0?T=JSON.stringify(I,d,f):T=JSON.stringify(I,g(d),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var S=r.pop();S.length===4?Object.defineProperty(S[0],S[1],S[3]):S[0][S[1]]=S[2]}}return T}function p(c,d,f,h,I,T,S){T+=1;var x;if(typeof c=="object"&&c!==null){for(x=0;x<h.length;x++)if(h[x]===c){s(t,c,d,I);return}try{if(typeof c.toJSON=="function")return}catch{return}if(typeof S.depthLimit<"u"&&T>S.depthLimit){s(e,c,d,I);return}if(typeof S.edgesLimit<"u"&&f+1>S.edgesLimit){s(e,c,d,I);return}if(h.push(c),Array.isArray(c))for(x=0;x<c.length;x++)p(c[x],x,x,h,c,T,S);else{var b={},y=Object.keys(c).sort(l);for(x=0;x<y.length;x++){var R=y[x];p(c[R],R,x,h,c,T,S),b[R]=c[R]}if(typeof I<"u")r.push([I,d,c]),I[d]=b;else return b}h.pop()}}function g(c){return c=typeof c<"u"?c:function(d,f){return f},function(d,f){if(n.length>0)for(var h=0;h<n.length;h++){var I=n[h];if(I[1]===d&&I[0]===f){f=I[2],n.splice(h,1);break}}return c.call(this,d,f)}}return xi}var gC=dC();const pC=Gv(gC),[Gu,he]=j({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),Bu=v.forwardRef((e,t)=>{const r=he(),n=P(r.getArrowProps(),e);return m.jsx(C.div,{...n,ref:t})});Bu.displayName="MenuArrow";const Uu=v.forwardRef((e,t)=>{const r=he(),n=P(r.getArrowTipProps(),e);return m.jsx(C.div,{...n,ref:t})});Uu.displayName="MenuArrowTip";const[ea,RN]=j({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[Hu,Wu]=j({name:"MenuOptionItemPropsContext",hookName:"useMenuOptionItemPropsContext",providerName:"<MenuOptionItemPropsProvider />"}),qu=v.forwardRef((e,t)=>{const[r,n]=$()(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),o={...r,type:"checkbox"},i=he(),s=P(i.getOptionItemProps(o),n),a=i.getOptionItemState(o);return m.jsx(Hu,{value:o,children:m.jsx(ea,{value:a,children:m.jsx(C.div,{...s,ref:t})})})});qu.displayName="MenuCheckboxItem";const Ku=v.forwardRef((e,t)=>{const r=he(),n=ve(),o=P(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:m.jsx(C.div,{...o,ref:Fe(n.ref,t)})});Ku.displayName="MenuContent";const zu=v.forwardRef((e,t)=>{const r=he(),n=P(r.getContextTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});zu.displayName="MenuContextTrigger";const Yu=v.forwardRef((e,t)=>{const r=he(),n=P(r.getIndicatorProps(),e);return m.jsx(C.div,{...n,ref:t})});Yu.displayName="MenuIndicator";const Xu=v.forwardRef((e,t)=>{const[r,n]=$()(e,["closeOnSelect","disabled","value","valueText","onSelect"]),o=he(),i=P(o.getItemProps(r),n),s=o.getItemState(r);return v.useEffect(()=>o.addItemListener({id:s.id,onSelect:r.onSelect}),[s.id,r.onSelect]),m.jsx(ea,{value:s,children:m.jsx(C.div,{...i,ref:t})})});Xu.displayName="MenuItem";const[Zu,Ju]=j({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),Qu=v.forwardRef((e,t)=>{const[r,n]=$()(e,["id"]),o=he(),s={id:v.useId(),...r},a=P(o.getItemGroupProps(s),n);return m.jsx(Zu,{value:s,children:m.jsx(C.div,{...a,ref:t})})});Qu.displayName="MenuItemGroup";const ed=v.forwardRef((e,t)=>{const r=he(),n=Ju(),o=P(r.getItemGroupLabelProps({htmlFor:n.id}),e);return m.jsx(C.div,{...o,ref:t})});ed.displayName="MenuItemGroupLabel";const td=v.forwardRef((e,t)=>{const r=he(),n=Wu(),o=P(r.getItemIndicatorProps(n),e);return m.jsx(C.div,{...o,ref:t})});td.displayName="MenuItemIndicator";const rd=v.forwardRef((e,t)=>{const r=he(),n=Wu(),o=P(r.getItemTextProps(n),e);return m.jsx(C.div,{...o,ref:t})});rd.displayName="MenuItemText";const nd=v.forwardRef((e,t)=>{const r=he(),n=P(r.getPositionerProps(),e);return ve().unmounted?null:m.jsx(C.div,{...n,ref:t})});nd.displayName="MenuPositioner";const od=v.forwardRef((e,t)=>{const[r,n]=$()(e,["closeOnSelect","disabled","value","valueText"]),o=he(),i=Ju(),s={...r,checked:i.value===r.value,type:"radio",onCheckedChange:()=>i.onValueChange?.({value:r.value})},a=P(o.getOptionItemProps(s),n),l=o.getOptionItemState(s);return m.jsx(Hu,{value:s,children:m.jsx(ea,{value:l,children:m.jsx(C.div,{...a,ref:t})})})});od.displayName="MenuRadioItem";const id=v.forwardRef((e,t)=>{const[r,n]=$()(e,["id","onValueChange","value"]),o=he(),s={id:v.useId(),...r},a=P(o.getItemGroupProps({id:s.id}),n);return m.jsx(Zu,{value:s,children:m.jsx(C.div,{...a,ref:t})})});id.displayName="MenuRadioItemGroup";const sd=e=>{const t=v.useRef(e),r=v.useRef(!1);v.useEffect(()=>{t.current=e}),v.useEffect(()=>{r.current!==!0&&(r.current=!0,t.current())},[])};function fC(e){const t={each(r){for(let n=0;n<e.frames?.length;n+=1){const o=e.frames[n];o&&r(o)}},addEventListener(r,n,o){return t.each(i=>{try{i.document.addEventListener(r,n,o)}catch{}}),()=>{try{t.removeEventListener(r,n,o)}catch{}}},removeEventListener(r,n,o){t.each(i=>{try{i.document.removeEventListener(r,n,o)}catch{}})}};return t}function mC(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t?.addEventListener(r,n,o)}catch{}return()=>{try{t?.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t?.removeEventListener(r,n,o)}catch{}}}}var il="pointerdown.outside",sl="focus.outside";function hC(e){for(const t of e)if(ge(t)&&Tt(t))return!0;return!1}var ad=e=>"clientY"in e;function vC(e,t){if(!ad(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function yC(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function al(e,t){if(!t||!ad(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return yC(s,a)?n||i:!1}function bC(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=Oe(e),l=ie(e),u=fC(l),p=mC(l);function g(S,x){if(!ge(x)||!x.isConnected||Ae(e,x)||vC(e,S))return!1;const b=a.querySelector(`[aria-controls="${e.id}"]`);if(b){const R=Ro(b);if(al(S,R))return!1}const y=Ro(e);return al(S,y)?!1:!r?.(x)}const c=new Set,d=dr(e?.getRootNode());function f(S){function x(b){const y=s&&!Aa()?_:w=>w(),R=b??S,O=R?.composedPath?.()??[R?.target];y(()=>{const w=d?O[0]:ce(S);if(!(!e||!g(S,w))){if(o||i){const N=pn(o,i);e.addEventListener(il,N,{once:!0})}ll(e,il,{bubbles:!1,cancelable:!0,detail:{originalEvent:R,contextmenu:wc(R),focusable:hC(O),target:w}})}})}S.pointerType==="touch"?(c.forEach(b=>b()),c.add(W(a,"click",x,{once:!0})),c.add(p.addEventListener("click",x,{once:!0})),c.add(u.addEventListener("click",x,{once:!0}))):x()}const h=new Set,I=setTimeout(()=>{h.add(W(a,"pointerdown",f,!0)),h.add(p.addEventListener("pointerdown",f,!0)),h.add(u.addEventListener("pointerdown",f,!0))},0);function T(S){(s?_:b=>b())(()=>{const b=ce(S);if(!(!e||!g(S,b))){if(n||i){const y=pn(n,i);e.addEventListener(sl,y,{once:!0})}ll(e,sl,{bubbles:!1,cancelable:!0,detail:{originalEvent:S,contextmenu:!1,focusable:Tt(b),target:b}})}})}return Aa()||(h.add(W(a,"focusin",T,!0)),h.add(p.addEventListener("focusin",T,!0)),h.add(u.addEventListener("focusin",T,!0))),()=>{clearTimeout(I),c.forEach(S=>S()),h.forEach(S=>S())}}function ld(e,t){const{defer:r}=t,n=r?_:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(bC(i,t))})),()=>{o.forEach(i=>i?.())}}function ll(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function PC(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t?.(n))};return W(Oe(e),"keydown",r,{capture:!0})}var we={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<r},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>Ae(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Ae(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(n=>n.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}},cl;function ul(){we.layers.forEach(({node:e})=>{e.style.pointerEvents=we.isBelowPointerBlockingLayer(e)?"none":"auto"})}function EC(e){e.style.pointerEvents=""}function CC(e,t){const r=Oe(e),n=[];if(we.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(cl=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t){const o=yb(t,i=>{n.push(dn(i,{pointerEvents:"auto"}))});n.push(o)}return()=>{we.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=cl,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function IC(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){mn("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,pointerBlocking:o,exclude:i,debug:s}=t,a={dismiss:n,node:e,pointerBlocking:o};we.add(a),ul();function l(d){const f=ce(d.detail.originalEvent);we.isBelowPointerBlockingLayer(e)||we.isInBranch(f)||(t.onPointerDownOutside?.(d),t.onInteractOutside?.(d),!d.defaultPrevented&&(s&&console.log("onPointerDownOutside:",d.detail.originalEvent),n?.()))}function u(d){const f=ce(d.detail.originalEvent);we.isInBranch(f)||(t.onFocusOutside?.(d),t.onInteractOutside?.(d),!d.defaultPrevented&&(s&&console.log("onFocusOutside:",d.detail.originalEvent),n?.()))}function p(d){we.isTopMost(e)&&(t.onEscapeKeyDown?.(d),!d.defaultPrevented&&n&&(d.preventDefault(),n()))}function g(d){if(!e)return!1;const f=typeof i=="function"?i():i,h=Array.isArray(f)?f:[f],I=t.persistentElements?.map(T=>T()).filter(ge);return I&&h.push(...I),h.some(T=>Ae(T,d))||we.isInNestedLayer(e,d)}const c=[o?CC(e,t.persistentElements):void 0,PC(e,p),ld(e,{exclude:g,onFocusOutside:u,onPointerDownOutside:l,defer:t.defer})];return()=>{we.remove(e),ul(),EC(e),c.forEach(d=>d?.())}}function Pr(e,t){const{defer:r}=t,n=r?_:i=>i(),o=[];return o.push(n(()=>{const i=Et(e)?e():e;o.push(IC(i,t))})),()=>{o.forEach(i=>i?.())}}function TC(e,t={}){const{defer:r}=t,n=r?_:i=>i(),o=[];return o.push(n(()=>{const i=Et(e)?e():e;if(!i){mn("[@zag-js/dismissable] branch node is `null` or `undefined`");return}we.addBranch(i),o.push(()=>{we.removeBranch(i)})})),()=>{o.forEach(i=>i?.())}}var Xr=(e,t)=>({x:e,y:t});function RC(e){const{x:t,y:r,width:n,height:o}=e,i=t+n/2,s=r+o/2;return{x:t,y:r,width:n,height:o,minX:t,minY:r,maxX:t+n,maxY:r+o,midX:i,midY:s,center:Xr(i,s)}}function SC(e){const t=Xr(e.minX,e.minY),r=Xr(e.maxX,e.minY),n=Xr(e.maxX,e.maxY),o=Xr(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function OC(e,t){const r=RC(e),{top:n,right:o,left:i,bottom:s}=SC(r),[a]=t.split("-");return{top:[i,n,o,s],right:[n,o,s,i],bottom:[n,i,s,o],left:[o,n,i,s]}[a]}function xC(e,t){const{x:r,y:n}=t;let o=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const a=e[i].x,l=e[i].y,u=e[s].x,p=e[s].y;l>n!=p>n&&r<(u-a)*(n-l)/(p-l)+a&&(o=!o)}return o}var cd=q("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),Ee=cd.build(),Vo=e=>e.ids?.trigger??`menu:${e.id}:trigger`,ud=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,on=e=>e.ids?.content??`menu:${e.id}:content`,wC=e=>e.ids?.arrow??`menu:${e.id}:arrow`,dd=e=>e.ids?.positioner??`menu:${e.id}:popper`,NC=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,yn=(e,t)=>`${e.id}/${t}`,Ft=e=>e?.dataset.value??null,dl=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,bt=e=>e.getById(on(e)),gl=e=>e.getById(dd(e)),Gn=e=>e.getById(Vo(e)),gd=(e,t)=>t?e.getById(yn(e,t)):null,pl=e=>e.getById(ud(e)),Sn=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(on(e))}]:not([data-disabled])`;return St(bt(e),r)},kC=e=>ei(Sn(e)),AC=e=>ti(Sn(e)),ta=(e,t)=>t?e.id===t||e.dataset.value===t:!1,FC=(e,t)=>{const r=Sn(e),n=r.findIndex(o=>ta(o,t.value));return wb(r,n,{loop:t.loop??t.loopFocus})},VC=(e,t)=>{const r=Sn(e),n=r.findIndex(o=>ta(o,t.value));return kb(r,n,{loop:t.loop??t.loopFocus})},LC=(e,t)=>{const r=Sn(e),n=r.find(o=>ta(o,t.value));return gn(r,{state:t.typeaheadState,key:t.key,activeId:n?.id??null})},Bn=e=>ge(e)&&(e.dataset.disabled===""||e.hasAttribute("disabled")),DC=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),rs="menu:select";function $C(e,t){if(!e)return;const r=ie(e),n=new r.CustomEvent(rs,{detail:{value:t}});e.dispatchEvent(n)}function MC(e,t){const{context:r,send:n,state:o,computed:i,prop:s,scope:a}=e,l=o.hasTag("open"),u=i("isSubmenu"),p=i("isTypingAhead"),g=s("composite"),c=r.get("currentPlacement"),d=r.get("anchorPoint"),f=r.get("highlightedValue"),h=br({...s("positioning"),placement:d?"bottom":c});function I(b){return{id:yn(a,b.value),disabled:!!b.disabled,highlighted:f===b.value}}function T(b){const y=b.valueText??b.value;return{...b,id:b.value,valueText:y}}function S(b){return{...I(T(b)),checked:!!b.checked}}function x(b){const{closeOnSelect:y,valueText:R,value:O}=b,w=I(b),N=yn(a,O);return t.element({...Ee.item.attrs,id:N,role:"menuitem","aria-disabled":Me(w.disabled),"data-disabled":E(w.disabled),"data-ownedby":on(a),"data-highlighted":E(w.highlighted),"data-value":O,"data-valuetext":R,onDragStart(F){F.currentTarget.matches("a[href]")&&F.preventDefault()},onPointerMove(F){if(w.disabled||F.pointerType!=="mouse")return;const A=F.currentTarget;w.highlighted||n({type:"ITEM_POINTERMOVE",id:N,target:A,closeOnSelect:y})},onPointerLeave(F){if(w.disabled||F.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER"))return;const k=F.currentTarget;n({type:"ITEM_POINTERLEAVE",id:N,target:k,closeOnSelect:y})},onPointerDown(F){if(w.disabled)return;const A=F.currentTarget;n({type:"ITEM_POINTERDOWN",target:A,id:N,closeOnSelect:y})},onClick(F){if(Va(F)||Fa(F)||w.disabled)return;const A=F.currentTarget;n({type:"ITEM_CLICK",target:A,id:N,closeOnSelect:y})}})}return{highlightedValue:f,open:l,setOpen(b){o.hasTag("open")!==b&&n({type:b?"OPEN":"CLOSE"})},setHighlightedValue(b){n({type:"HIGHLIGHTED.SET",value:b})},setParent(b){n({type:"PARENT.SET",value:b,id:b.prop("id")})},setChild(b){n({type:"CHILD.SET",value:b,id:b.prop("id")})},reposition(b={}){n({type:"POSITIONING.SET",options:b})},addItemListener(b){const y=a.getById(b.id);if(!y)return;const R=()=>b.onSelect?.();return y.addEventListener(rs,R),()=>y.removeEventListener(rs,R)},getContextTriggerProps(){return t.element({...Ee.contextTrigger.attrs,dir:s("dir"),id:ud(a),onPointerDown(b){if(b.pointerType==="mouse")return;const y=He(b);n({type:"CONTEXT_MENU_START",point:y})},onPointerCancel(b){b.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(b){b.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(b){b.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(b){const y=He(b);n({type:"CONTEXT_MENU",point:y}),b.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},getTriggerItemProps(b){const y=b.getTriggerProps();return P(x({value:y.id}),y)},getTriggerProps(){return t.button({...u?Ee.triggerItem.attrs:Ee.trigger.attrs,"data-placement":r.get("currentPlacement"),type:"button",dir:s("dir"),id:Vo(a),"data-uid":s("id"),"aria-haspopup":g?"menu":"dialog","aria-controls":on(a),"aria-expanded":l||void 0,"data-state":l?"open":"closed",onPointerMove(b){if(b.pointerType!=="mouse"||Bn(b.currentTarget)||!u)return;const R=He(b);n({type:"TRIGGER_POINTERMOVE",target:b.currentTarget,point:R})},onPointerLeave(b){if(Bn(b.currentTarget)||b.pointerType!=="mouse"||!u)return;const y=He(b);n({type:"TRIGGER_POINTERLEAVE",target:b.currentTarget,point:y})},onPointerDown(b){Bn(b.currentTarget)||wc(b)||b.preventDefault()},onClick(b){b.defaultPrevented||Bn(b.currentTarget)||n({type:"TRIGGER_CLICK",target:b.currentTarget})},onBlur(){n({type:"TRIGGER_BLUR"})},onFocus(){n({type:"TRIGGER_FOCUS"})},onKeyDown(b){if(b.defaultPrevented)return;const y={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},Enter(){n({type:"ARROW_DOWN",src:"enter"})},Space(){n({type:"ARROW_DOWN",src:"space"})}},R=We(b,{orientation:"vertical",dir:s("dir")}),O=y[R];O&&(b.preventDefault(),O(b))}})},getIndicatorProps(){return t.element({...Ee.indicator.attrs,dir:s("dir"),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Ee.positioner.attrs,dir:s("dir"),id:dd(a),style:h.floating})},getArrowProps(){return t.element({id:wC(a),...Ee.arrow.attrs,dir:s("dir"),style:h.arrow})},getArrowTipProps(){return t.element({...Ee.arrowTip.attrs,dir:s("dir"),style:h.arrowTip})},getContentProps(){return t.element({...Ee.content.attrs,id:on(a),"aria-label":s("aria-label"),hidden:!l,"data-state":l?"open":"closed",role:g?"menu":"dialog",tabIndex:0,dir:s("dir"),"aria-activedescendant":i("highlightedId")||void 0,"aria-labelledby":Vo(a),"data-placement":c,onPointerEnter(b){b.pointerType==="mouse"&&n({type:"MENU_POINTERENTER"})},onKeyDown(b){if(b.defaultPrevented||!cn(b))return;const y=ce(b);if(!(y?.closest("[role=menu]")===b.currentTarget||y===b.currentTarget))return;if(b.key==="Tab"&&!Vc(b)){b.preventDefault();return}const O=gd(a,f),w={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},ArrowLeft(){n({type:"ARROW_LEFT"})},ArrowRight(){n({type:"ARROW_RIGHT"})},Enter(){n({type:"ENTER"}),f!=null&&Rc(O)&&s("navigate")?.({value:f,node:O,href:O.href})},Space(A){p?n({type:"TYPEAHEAD",key:A.key}):w.Enter?.(A)},Home(){n({type:"HOME"})},End(){n({type:"END"})}},N=We(b,{dir:s("dir")}),F=w[N];if(F){F(b),b.stopPropagation(),b.preventDefault();return}s("typeahead")&&My(b)&&(Gt(b)||qo(y)||(n({type:"TYPEAHEAD",key:b.key}),b.preventDefault()))}})},getSeparatorProps(){return t.element({...Ee.separator.attrs,role:"separator",dir:s("dir"),"aria-orientation":"horizontal"})},getItemState:I,getItemProps:x,getOptionItemState:S,getOptionItemProps(b){const{type:y,disabled:R,onCheckedChange:O,closeOnSelect:w}=b,N=T(b),F=S(b);return{...x(N),...t.element({"data-type":y,...Ee.item.attrs,dir:s("dir"),"data-value":N.value,role:`menuitem${y}`,"aria-checked":!!F.checked,"data-state":F.checked?"checked":"unchecked",onClick(A){if(R||Va(A)||Fa(A))return;const k=A.currentTarget;n({type:"ITEM_CLICK",target:k,option:N,closeOnSelect:w}),O?.(!F.checked)}})}},getItemIndicatorProps(b){const y=S(b);return t.element({...Ee.itemIndicator.attrs,dir:s("dir"),"data-disabled":E(y.disabled),"data-highlighted":E(y.highlighted),"data-state":y.checked?"checked":"unchecked",hidden:!y.checked})},getItemTextProps(b){const y=S(b);return t.element({...Ee.itemText.attrs,dir:s("dir"),"data-disabled":E(y.disabled),"data-highlighted":E(y.highlighted),"data-state":y.checked?"checked":"unchecked"})},getItemGroupLabelProps(b){return t.element({...Ee.itemGroupLabel.attrs,id:dl(a,b.htmlFor),dir:s("dir")})},getItemGroupProps(b){return t.element({id:NC(a,b.id),...Ee.itemGroup.attrs,dir:s("dir"),"aria-labelledby":dl(a,b.id),role:"group"})}}}var{not:Le,and:Jt,or:_C}=je(),jC={props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(t){Lc(t.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},context({bindable:e,prop:t}){return{suspendPointer:e(()=>({defaultValue:!1})),highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(r){t("onHighlightChange")?.({highlightedValue:r})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash(r){return`x: ${r?.x}, y: ${r?.y}`}}))}},refs(){return{parent:null,children:{},typeaheadState:{...gn.defaultOptions},positioningOverride:{}}},computed:{isSubmenu:({refs:e})=>e.get("parent")!=null,isRtl:({prop:e})=>e("dir")==="rtl",isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar!=="",highlightedId:({context:e,scope:t,refs:r})=>BC(r.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>n("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>r.hash("anchorPoint")],()=>{t(["reposition"])}),e([()=>o("open")],()=>{t(["toggleVisibility"])})},on:{"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_FOCUS:{guard:Le("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer"],on:{"CONTROLLED.OPEN":[{guard:_C("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:Jt(Le("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:Le("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:Jt("isSubmenu","isOpenControlled"),actions:["invokeOnClose"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:Le("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:Jt(Le("isPointerSuspended"),Le("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:Jt(Le("isTriggerItemHighlighted"),Le("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:Jt(Le("isTriggerItemHighlighted"),Le("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:Jt(Le("isTriggerItemHighlighted"),Le("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing"},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>DC(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:r})=>!!(e.target??t.getById(r("highlightedId")))?.hasAttribute("aria-controls"),isSubmenu:({computed:e})=>e("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>qo(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>e("open")!==void 0,isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.OPEN"})},100);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},300);return()=>clearTimeout(t)},waitForLongPress({send:e}){const t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:r,refs:n}){if(pl(r))return;const o={...t("positioning"),...n.get("positioningOverride")};e.set("currentPlacement",o.placement);const i=()=>gl(r);return ze(Gn(r),i,{...o,defer:!0,onComplete(s){e.set("currentPlacement",s.placement)}})},trackInteractOutside({refs:e,scope:t,prop:r,computed:n,send:o}){const i=()=>bt(t);let s=!0;return Pr(i,{defer:!0,exclude:[Gn(t)],onInteractOutside:r("onInteractOutside"),onFocusOutside:r("onFocusOutside"),onEscapeKeyDown(a){r("onEscapeKeyDown")?.(a),n("isSubmenu")&&a.preventDefault(),fl({parent:e.get("parent")})},onPointerDownOutside(a){const l=ce(a.detail.originalEvent);if(Ae(pl(t),l)&&a.detail.contextmenu){a.preventDefault();return}s=!a.detail.focusable,r("onPointerDownOutside")?.(a)},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:s})}})},trackPointerMove({context:e,scope:t,send:r,refs:n,flush:o}){const i=n.get("parent");o(()=>{i.context.set("suspendPointer",!0)});const s=t.getDoc();return W(s,"pointermove",a=>{GC(e.get("intentPolygon"),{x:a.clientX,y:a.clientY})||(r({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),i.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:r}){const n=()=>{if(e.type.startsWith("ITEM_POINTER"))return;const i=t.getById(r("highlightedId")),s=bt(t);$c(i,{rootEl:s,block:"nearest"})};return _(()=>n()),Jo(()=>bt(t),{defer:!0,attributes:["aria-activedescendant"],callback:n})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",t.point)},setSubmenuPlacement({computed:e,refs:t}){if(!e("isSubmenu"))return;const r=e("isRtl")?"left-start":"right-start";t.set("positioningOverride",{placement:r,gutter:0})},reposition({context:e,scope:t,prop:r,event:n,refs:o}){const i=()=>gl(t),s=e.get("anchorPoint"),a=s?()=>({width:0,height:0,...s}):void 0,l={...r("positioning"),...o.get("positioningOverride")};ze(Gn(t),i,{...l,defer:!0,getAnchorRect:a,...n.options??{},listeners:!1,onComplete(u){e.set("currentPlacement",u.placement)}})},setOptionState({event:e}){if(!e.option)return;const{checked:t,onCheckedChange:r,type:n}=e.option;n==="radio"?r?.(!0):n==="checkbox"&&r?.(!t)},clickHighlightedItem({scope:e,computed:t}){const r=e.getById(t("highlightedId"));!r||r.dataset.disabled||queueMicrotask(()=>r.click())},setIntentPolygon({context:e,scope:t,event:r}){const n=bt(t),o=e.get("currentPlacement");if(!n||!o)return;const i=n.getBoundingClientRect(),s=OC(i,o);if(!s)return;const l=PE(o)==="right"?-5:5;e.set("intentPolygon",[{...r.point,x:r.point.x+l},...s])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},resumePointer({refs:e,flush:t}){const r=e.get("parent");r&&t(()=>{r.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){const r=t.value||Ft(t.target);e.set("highlightedValue",r)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){_(()=>{const t=bt(e);un({root:t,enabled:!Ae(t,e.getActiveElement()),filter(n){return!n.role?.startsWith("menuitem")}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(bt(t)?queueMicrotask:_)(()=>{const n=kC(t);n&&e.set("highlightedValue",Ft(n))})},highlightLastItem({context:e,scope:t}){(bt(t)?queueMicrotask:_)(()=>{const n=AC(t);n&&e.set("highlightedValue",Ft(n))})},highlightNextItem({context:e,scope:t,event:r,prop:n}){const o=FC(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",Ft(o))},highlightPrevItem({context:e,scope:t,event:r,prop:n}){const o=VC(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",Ft(o))},invokeOnSelect({context:e,prop:t,scope:r}){const n=e.get("highlightedValue");if(n==null)return;const o=gd(r,n);$C(o,n),t("onSelect")?.({value:n})},focusTrigger({scope:e,context:t,event:r,computed:n}){n("isSubmenu")||t.get("anchorPoint")||r.restoreFocus===!1||queueMicrotask(()=>Gn(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:r,refs:n}){const o=LC(e,{key:r.key,value:t.get("highlightedValue"),typeaheadState:n.get("typeaheadState")});o&&t.set("highlightedValue",Ft(o))},setParentMenu({refs:e,event:t}){e.set("parent",t.value)},setChildMenu({refs:e,event:t}){const r=e.get("children");r[t.id]=t.value,e.set("children",r)},closeRootMenu({refs:e}){fl({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:r}){const o=t.getById(r("highlightedId"))?.getAttribute("data-uid"),i=e.get("children");(o?i[o]:null)?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",Ft(t.target))},restoreHighlightedItem({context:e}){e.get("lastHighlightedValue")&&(e.set("highlightedValue",e.get("lastHighlightedValue")),e.set("lastHighlightedValue",null))},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:r}){r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}};function fl(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function GC(e,t){return e?xC(e,t):!1}function BC(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return yn(r,t);for(const o in e){const i=e[o],s=Vo(i.scope);if(s===t)return s}return yn(r,t)}B()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);B()(["closeOnSelect","disabled","value","valueText"]);B()(["htmlFor"]);B()(["id"]);B()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);const UC=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(jC,o);return{api:MC(i,te),service:i}},[pd,fd]=j({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[md,HC]=j({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),WC=e=>{const[t,r]=Te(e),[n,o]=$()(r,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),i=he(),s=fd(),{api:a,service:l}=UC(n),u=ye(P({present:a.open},t));sd(()=>{s&&i&&(i.setChild(l),a.setParent(s))});const p=v.useCallback(()=>i?.getTriggerItemProps(a),[a,i]);return m.jsx(md,{value:p,children:m.jsx(pd,{value:l,children:m.jsx(Gu,{value:a,children:m.jsx(Ie,{value:u,...o})})})})},qC=e=>{const t=he(),r=fd(),[n,{value:o,children:i}]=Te(e),{api:s,service:a}=o,l=ye(P({present:s.open},n));sd(()=>{r&&t&&(t.setChild(a),s.setParent(r))});const u=v.useCallback(()=>t?.getTriggerItemProps(s),[s,t]);return m.jsx(md,{value:u,children:m.jsx(pd,{value:a,children:m.jsx(Gu,{value:s,children:m.jsx(Ie,{value:l,children:i})})})})},hd=v.forwardRef((e,t)=>{const r=he(),n=P(r.getSeparatorProps(),e);return m.jsx(C.hr,{...n,ref:t})});hd.displayName="MenuSeparator";const vd=v.forwardRef((e,t)=>{const r=he(),n=ve(),o=P({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return m.jsx(C.button,{...o,ref:t})});vd.displayName="MenuTrigger";const yd=v.forwardRef((e,t)=>{const r=HC(),n=P(r?.()??{},e);return m.jsx(C.div,{...n,ref:t})});yd.displayName="MenuTriggerItem";const[bd,ci]=j({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),Pd=v.forwardRef((e,t)=>{const r=ci(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});Pd.displayName="CheckboxControl";var Ed=q("checkbox").parts("root","label","control","indicator"),Un=Ed.build(),Cd=e=>e.ids?.root??`checkbox:${e.id}`,ml=e=>e.ids?.label??`checkbox:${e.id}:label`,KC=e=>e.ids?.control??`checkbox:${e.id}:control`,ns=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,zC=e=>e.getById(Cd(e)),Zr=e=>e.getById(ns(e));function YC(e,t){const{send:r,context:n,prop:o,computed:i,scope:s}=e,a=o("disabled"),l=o("readOnly"),u=o("invalid"),p=!a&&n.get("focused"),g=!a&&n.get("focusVisible"),c=i("checked"),d=i("indeterminate"),f={"data-active":E(n.get("active")),"data-focus":E(p),"data-focus-visible":E(g),"data-readonly":E(l),"data-hover":E(n.get("hovered")),"data-disabled":E(a),"data-state":d?"indeterminate":c?"checked":"unchecked","data-invalid":E(u)};return{checked:c,disabled:a,indeterminate:d,focused:p,checkedState:c,setChecked(h){r({type:"CHECKED.SET",checked:h,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:c,isTrusted:!1})},getRootProps(){return t.label({...Un.root.attrs,...f,dir:o("dir"),id:Cd(s),htmlFor:ns(s),onPointerMove(){a||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){a||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(h){ce(h)===Zr(s)&&h.stopPropagation()}})},getLabelProps(){return t.element({...Un.label.attrs,...f,dir:o("dir"),id:ml(s)})},getControlProps(){return t.element({...Un.control.attrs,...f,dir:o("dir"),id:KC(s),"aria-hidden":!0})},getIndicatorProps(){return t.element({...Un.indicator.attrs,...f,dir:o("dir"),hidden:!d&&!c})},getHiddenInputProps(){return t.input({id:ns(s),type:"checkbox",required:o("required"),defaultChecked:c,disabled:a,"aria-labelledby":ml(s),"aria-invalid":u,name:o("name"),form:o("form"),value:o("value"),style:qt,onFocus(){const h=fr();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:h}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(h){if(l){h.preventDefault();return}const I=h.currentTarget.checked;r({type:"CHECKED.SET",checked:I,isTrusted:!0})}})}}}var{not:hl}=je(),XC={props({props:e}){return{value:"on",...e,defaultChecked:!!e.defaultChecked}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(r){e("onCheckedChange")?.({checked:r})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,prop:r,action:n}){e([()=>r("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:hl("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:hl("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>fo(e.get("checked")),checked:({context:e})=>ZC(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:r}){if(!t("disabled"))return jc({pointerNode:zC(r),keyboardNode:Zr(r),isValidKey:n=>n.key===" ",onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return ii({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return Nt(Zr(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,computed:t,scope:r}){const n=Zr(r);n&&(Ms(n,t("checked")),n.indeterminate=fo(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const r=fo(t("checked"))?!0:!t("checked");e.set("checked",r)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const r=Zr(t);_s(r,{checked:e("checked")})})}}}};function fo(e){return e==="indeterminate"}function ZC(e){return fo(e)?!1:!!e}B()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Id=Ed.extendWith("group");function JC(e){const{value:t,onChange:r,defaultValue:n}=e,[o,i]=v.useState(n),s=t!==void 0,a=s?t:o,l=v.useCallback(u=>(s||i(u),r?.(u)),[s,r]);return[a,l]}function Td(e={}){const{defaultValue:t,value:r,onValueChange:n,disabled:o,readOnly:i,name:s,invalid:a}=e,l=!(o||i),u=gu(n,{sync:!0}),[p,g]=JC({value:r,defaultValue:t||[],onChange:u}),c=T=>p.some(S=>String(S)===String(T)),d=T=>{c(T)?h(T):f(T)},f=T=>{l&&(c(T)||g(p.concat(T)))},h=T=>{l&&g(p.filter(S=>String(S)!==String(T)))};return{isChecked:c,value:p,name:s,disabled:!!o,readOnly:!!i,invalid:!!a,setValue:g,addValue:f,toggleValue:d,getItemProps:T=>({checked:T.value!=null?c(T.value):void 0,onCheckedChange(){T.value!=null&&d(T.value)},name:s,disabled:o,readOnly:i,invalid:a})}}const[QC,eI]=j({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),Rd=v.forwardRef((e,t)=>{const[r,n]=$()(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),o=Td(r);return m.jsx(QC,{value:o,children:m.jsx(C.div,{ref:t,role:"group",...n,...Id.build().group.attrs})})});Rd.displayName="CheckboxGroup";const[tI,se]=j({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),Sd=v.forwardRef((e,t)=>{const r=ci(),n=P(r.getHiddenInputProps(),e),o=se();return m.jsx(C.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});Sd.displayName="CheckboxHiddenInput";const Od=v.forwardRef((e,t)=>{const r=ci(),n=P(r.getLabelProps(),e);return m.jsx(C.span,{...n,ref:t})});Od.displayName="CheckboxLabel";const rI=(e={})=>{const t=eI(),r=se(),n=v.useMemo(()=>P(e,t?.getItemProps({value:e.value})??{}),[e,t]),o=v.useId(),{getRootNode:i}=Z(),{dir:s}=Q(),a={id:o,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:s,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:i,...n},l=J(XC,a);return YC(l,te)},xd=v.forwardRef((e,t)=>{const[r,n]=$()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),o=rI(r),i=P(o.getRootProps(),n);return m.jsx(bd,{value:o,children:m.jsx(C.label,{...i,ref:t})})});xd.displayName="CheckboxRoot";const wd=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(bd,{value:r,children:m.jsx(C.label,{...o,ref:t})})});wd.displayName="CheckboxRootProvider";const Nd=v.forwardRef((e,t)=>{const r=se(),n=P(r.getErrorTextProps(),e);return r?.invalid?m.jsx(C.span,{...n,ref:t}):null});Nd.displayName="FieldErrorText";const kd=v.forwardRef((e,t)=>{const r=se(),n=P(r?.getHelperTextProps(),e);return m.jsx(C.span,{...n,ref:t})});kd.displayName="FieldHelperText";const Ad=v.forwardRef((e,t)=>{const r=se(),n=P(r?.getInputProps(),e);return m.jsx(C.input,{...n,ref:t})});Ad.displayName="FieldInput";const Fd=v.forwardRef((e,t)=>{const r=se(),n=P(r?.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});Fd.displayName="FieldLabel";const nI=typeof window<"u"?v.useLayoutEffect:v.useEffect,[SN,oI]=j({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),Vd=q("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),vt=Vd.build(),iI=(e={})=>{const t=oI(),{ids:r,disabled:n=!!t?.disabled,invalid:o=!1,readOnly:i=!1,required:s=!1}=e,[a,l]=v.useState(!1),[u,p]=v.useState(!1),g=e.id??v.useId(),c=v.useRef(null),d=r?.control??`field::${g}`,f=r?.errorText??`field::${g}::error-text`,h=r?.helperText??`field::${g}::helper-text`,I=r?.label??`field::${g}::label`;nI(()=>{const A=c.current;if(!A)return;const k=ie(A),L=k.document,D=()=>{l(!!L.getElementById(f)),p(!!L.getElementById(h))};D();const M=new k.MutationObserver(D);return M.observe(A,{childList:!0,subtree:!0}),()=>M.disconnect()},[f,h]);const T=v.useMemo(()=>{const A=[];return a&&o&&A.push(f),u&&A.push(h),A.join(" ")||void 0},[o,f,h,a,u]),S=v.useMemo(()=>()=>({...vt.root.attrs,id:d,ref:c,role:"group","data-disabled":E(n),"data-invalid":E(o),"data-readonly":E(i)}),[n,o,i,d]),x=v.useMemo(()=>()=>({...vt.label.attrs,id:I,"data-disabled":E(n),"data-invalid":E(o),"data-readonly":E(i),htmlFor:g}),[n,o,i,g,I]),b=v.useMemo(()=>()=>({"aria-describedby":T,"aria-invalid":Me(o),"data-invalid":E(o),"data-required":E(s),"data-readonly":E(i),id:g,required:s,disabled:n,readOnly:i}),[T,o,s,i,g,n]),y=v.useMemo(()=>()=>({...b(),...vt.input.attrs}),[b]),R=v.useMemo(()=>()=>({...b(),...vt.textarea.attrs}),[b]),O=v.useMemo(()=>()=>({...b(),...vt.select.attrs}),[b]),w=v.useMemo(()=>()=>({id:h,...vt.helperText.attrs,"data-disabled":E(n)}),[n,h]),N=v.useMemo(()=>()=>({id:f,...vt.errorText.attrs,"aria-live":"polite"}),[f]),F=v.useMemo(()=>()=>({"aria-hidden":!0,...vt.requiredIndicator.attrs}),[]);return{ariaDescribedby:T,ids:{root:d,control:g,label:I,errorText:f,helperText:h},refs:{rootRef:c},disabled:n,invalid:o,readOnly:i,required:s,getLabelProps:x,getRootProps:S,getInputProps:y,getTextareaProps:R,getSelectProps:O,getHelperTextProps:w,getErrorTextProps:N,getRequiredIndicatorProps:F}},Ld=v.forwardRef((e,t)=>{const[r,n]=$()(e,["id","ids","disabled","invalid","readOnly","required"]),o=iI(r),i=P(o.getRootProps(),n);return m.jsx(tI,{value:o,children:m.jsx(C.div,{...i,ref:Fe(t,o.refs.rootRef)})})});Ld.displayName="FieldRoot";var sI=e=>{if(!e)return;const t=gr(e),r=ie(e),n=Oe(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let u;t.boxSizing==="content-box"?u=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):u=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&u>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),u=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${u}px`})};e.addEventListener("input",o),e.form?.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){s?.set?.apply(this,arguments),o()}});const a=new r.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new r.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),n.fonts?.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Dd=v.forwardRef((e,t)=>{const{autoresize:r,...n}=e,o=v.useRef(null),i=se(),s=P(i?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return v.useEffect(()=>{if(r)return sI(o.current)},[r]),m.jsx(C.textarea,{...s,ref:Fe(t,o)})});Dd.displayName="FieldTextarea";var aI=e=>typeof e.getAsEntry=="function"?e.getAsEntry():typeof e.webkitGetAsEntry=="function"?e.webkitGetAsEntry():null,$d=e=>e.isDirectory,Md=e=>e.isFile,_d=(e,t)=>(Object.defineProperty(e,"relativePath",{value:t?`${t}/${e.name}`:e.name}),e),lI=(e,t)=>Promise.all(Array.from(e).filter(r=>r.kind==="file").map(r=>{const n=aI(r);if(!n)return null;if($d(n)&&t)return jd(n.createReader(),`${n.name}`);if(Md(n))return new Promise(o=>{n.file(i=>{o(_d(i,""))})})}).filter(r=>r)),jd=(e,t="")=>new Promise(r=>{const n=[],o=()=>{e.readEntries(i=>{if(i.length===0){r(Promise.all(n).then(a=>a.flat()));return}const s=i.map(a=>{if(!a)return null;if($d(a))return jd(a.createReader(),`${t}${a.name}`);if(Md(a))return new Promise(l=>{a.file(u=>{l(_d(u,t))})})}).filter(a=>a);n.push(Promise.all(s)),o()})};o()});function cI(e){return!!(e.navigator&&e.navigator.msSaveOrOpenBlob)}function uI(e){const{file:t,win:r,type:n,name:o}=e,i=r.document,s=typeof t=="string"?new Blob([t],{type:n}):t,a=t instanceof File?o||t.name:o;if(cI(r)){r.navigator.msSaveOrOpenBlob(s,a||"file-download");return}const l=r.URL.createObjectURL(s),u=i.createElement("a");u.style.display="none",u.href=l,u.rel="noopener",u.download=a||"file-download",i.documentElement.appendChild(u),u.click(),setTimeout(()=>{r.URL.revokeObjectURL(l),u.remove()},0)}function dI(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function gI(e){return/^.*\.[\w]+$/.test(e)}var vl=e=>dI(e)||gI(e);function pI(e){if(e!=null)return typeof e=="string"?e:Array.isArray(e)?e.filter(vl).join(","):Object.entries(e).reduce((t,[r,n])=>[...t,r,...n],[]).filter(vl).join(",")}var yl=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,Vr=e=>e!=null;function fI(e,t,r){if(Vr(e.size))if(Vr(t)&&Vr(r)){if(e.size>r)return[!1,"FILE_TOO_LARGE"];if(e.size<t)return[!1,"FILE_TOO_SMALL"]}else{if(Vr(t)&&e.size<t)return[!1,"FILE_TOO_SMALL"];if(Vr(r)&&e.size>r)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}function mI(e,t){if(e&&t){const r=Array.isArray(t)?t:typeof t=="string"?t.split(","):[];if(r.length===0)return!0;const n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(s=>{const a=s.trim().toLowerCase();return a.charAt(0)==="."?n.toLowerCase().endsWith(a):a.endsWith("/*")?i===a.replace(/\/.*$/,""):o===a})}return!0}function hI(e,t){const r=e.type==="application/x-moz-file"||mI(e,t);return[r,r?null:"FILE_INVALID_TYPE"]}const Gd=v.forwardRef((e,t)=>{const{fileName:r,data:n,mimeType:o,...i}=e,{getWindow:s}=Z(),a=u=>{uI({file:u,name:r,type:o,win:s()})},l=u=>{if(e.onClick?.(u),!u.defaultPrevented)if(Et(n)){const p=n();p instanceof Promise?p.then(g=>a(g)):a(p)}else a(n)};return m.jsx(C.button,{ref:t,...i,type:"button",onClick:l})});Gd.displayName="DownloadTrigger";function vI(e){const t=new Map;return function(n,o){const i=n+(o?Object.entries(o).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(t.has(i))return t.get(i);let s=new e(n,o);return t.set(i,s),s}}var yI=vI(Intl.NumberFormat);function Bd(e,t,r={}){return yI(t,r).format(e)}var bI=["","kilo","mega","giga","tera"],PI=["","kilo","mega","giga","tera","peta"],Ud=(e,t="en-US",r={})=>{if(isNaN(e))return"";if(e===0)return"0 B";const{unit:n="byte",unitDisplay:o="short"}=r,i=n==="bit"?bI:PI,s=Math.max(0,Math.min(Math.floor(Math.log10(e)/3),i.length-1)),a=i[s]+n,l=o||"short",u=parseFloat((e/Math.pow(1e3,s)).toPrecision(3));return Bd(u,t,{style:"unit",unit:a,unitDisplay:l})};const Hd=e=>{const{locale:t}=Q(),r=v.useMemo(()=>{const{value:n,...o}=e;return Ud(n,t,o)},[e,t]);return m.jsx(m.Fragment,{children:r})};Hd.displayName="FormatByte";const Wd=e=>{const{locale:t}=Q(),r=v.useMemo(()=>{const{value:n,...o}=e;return Bd(n,t,o)},[e,t]);return m.jsx(m.Fragment,{children:r})};Wd.displayName="FormatNumber";const qd=v.forwardRef((e,t)=>{const[r,n]=Te(e),o=ye(r);return o.unmounted?null:m.jsx(C.div,{...n,...o.getPresenceProps(),"data-scope":"presence","data-part":"root",ref:Fe(o.ref,t)})});qd.displayName="Presence";const[Kd,On]=j({name:"AccordionContext",hookName:"useAccordionContext",providerName:"<AccordionProvider />"}),EI=e=>e.children(On()),[CI,II]=j({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItemProvider />"}),TI=e=>$()(e,["defaultOpen","disabled","id","ids","lazyMount","onExitComplete","onOpenChange","open","unmountOnExit"]);var zd=q("collapsible").parts("root","trigger","content","indicator"),Hn=zd.build(),RI=e=>e.ids?.root??`collapsible:${e.id}`,os=e=>e.ids?.content??`collapsible:${e.id}:content`,SI=e=>e.ids?.trigger??`collapsible:${e.id}:trigger`,Wn=e=>e.getById(os(e));function OI(e,t){const{state:r,send:n,context:o,scope:i,prop:s}=e,a=r.matches("open")||r.matches("closing"),l=r.matches("open"),{width:u,height:p}=o.get("size"),g=!!s("disabled"),c=!o.get("initial")&&l,d="ltr";return{disabled:g,visible:a,open:l,measureSize(){n({type:"size.measure"})},setOpen(f){r.matches("open")!==f&&n({type:f?"open":"close"})},getRootProps(){return t.element({...Hn.root.attrs,"data-state":l?"open":"closed",dir:d,id:RI(i)})},getContentProps(){return t.element({...Hn.content.attrs,"data-collapsible":"","data-state":c?void 0:l?"open":"closed",id:os(i),"data-disabled":E(g),hidden:!a,style:{"--height":p!=null?`${p}px`:void 0,"--width":u!=null?`${u}px`:void 0}})},getTriggerProps(){return t.element({...Hn.trigger.attrs,id:SI(i),dir:d,type:"button","data-state":l?"open":"closed","data-disabled":E(g),"aria-controls":os(i),"aria-expanded":a||!1,onClick(f){f.defaultPrevented||g||n({type:l?"close":"open"})}})},getIndicatorProps(){return t.element({...Hn.indicator.attrs,dir:d,"data-state":l?"open":"closed","data-disabled":E(g)})}}}var xI={initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{size:e(()=>({defaultValue:{height:0,width:0}})),initial:e(()=>({defaultValue:!1}))}},refs(){return{cleanup:void 0,stylesRef:void 0}},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["setInitial","computeSize","toggleVisibility"])})},exit:["clearInitial","cleanupNode"],states:{closed:{on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackEnterAnimation:({send:e,scope:t})=>{let r;const n=_(()=>{const o=Wn(t);if(!o)return;const i=gr(o).animationName;if(!i||i==="none"){e({type:"animation.end"});return}const a=l=>{ce(l)===o&&e({type:"animation.end"})};o.addEventListener("animationend",a),r=()=>{o.removeEventListener("animationend",a)}});return()=>{n(),r?.()}},trackExitAnimation:({send:e,scope:t})=>{let r;const n=_(()=>{const o=Wn(t);if(!o)return;const i=gr(o).animationName;if(!i||i==="none"){e({type:"animation.end"});return}const a=u=>{ce(u)===o&&e({type:"animation.end"})};o.addEventListener("animationend",a);const l=dn(o,{animationFillMode:"forwards"});r=()=>{o.removeEventListener("animationend",a),Zo(()=>l())}});return()=>{n(),r?.()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,flush:t,scope:r})=>{const n=Wn(r);if(!n)return;const{height:o,width:i}=n.getBoundingClientRect();t(()=>{e.set("size",{height:o,width:i})})},computeSize:({refs:e,scope:t,flush:r,context:n})=>{e.get("cleanup")?.();const o=_(()=>{const i=Wn(t);if(!i)return;const s=i.hidden;i.style.animationName="none",i.style.animationDuration="0s",i.hidden=!1;const a=i.getBoundingClientRect();r(()=>{n.set("size",{height:a.height,width:a.width})}),n.get("initial")&&(i.style.animationName="",i.style.animationDuration=""),i.hidden=s});e.set("cleanup",o)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}};B()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);const wI=(e={})=>{const{lazyMount:t,unmountOnExit:r,...n}=e,o=v.useId(),i=v.useRef(!1),{dir:s}=Q(),{getRootNode:a}=Z(),l={id:o,dir:s,getRootNode:a,...n},u=J(xI,l),p=OI(u,te);p.visible&&(i.current=!0);const g=!p.visible&&!i.current&&t||r&&!p.visible&&i.current;return{...p,isUnmounted:g}},[Yd,ui]=j({name:"CollapsibleContext",hookName:"useCollapsibleContext",providerName:"<CollapsibleProvider />"}),ra=v.forwardRef((e,t)=>{const[r,n]=TI(e),o=wI(r),i=P(o.getRootProps(),n);return m.jsx(Yd,{value:o,children:m.jsx(C.div,{...i,ref:t})})});ra.displayName="CollapsibleRoot";var NI=Object.defineProperty,kI=(e,t,r)=>t in e?NI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,na=(e,t,r)=>kI(e,t+"",r),AI=(e,t,r)=>{const n=`linear-gradient(to ${e[+!t]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(${r},0,0),rgb(${r},255,0))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(${r},0,255),rgb(${r},255,255))`,WebkitMaskImage:n,maskImage:n}}},FI=(e,t,r)=>{const n=`linear-gradient(to ${e[+!t]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(0,${r},0),rgb(255,${r},0))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(0,${r},255),rgb(255,${r},255))`,WebkitMaskImage:n,maskImage:n}}},VI=(e,t,r)=>{const n=`linear-gradient(to ${e[+!t]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(0,0,${r}),rgb(255,0,${r}))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(0,255,${r}),rgb(255,255,${r}))`,WebkitMaskImage:n,maskImage:n}}},LI=(e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(t)]}, hsla(0,0%,0%,1) 0%, hsla(0,0%,0%,0) 50%, hsla(0,0%,100%,0) 50%, hsla(0,0%,100%,1) 100%)`,`linear-gradient(to ${e[+!t]},hsl(0,0%,50%),hsla(0,0%,50%,0))`,`hsl(${r}, 100%, 50%)`].join(",")}}),DI=(e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[+!t]}, hsla(0,0%,0%,${r}) 0%, hsla(0,0%,0%,0) 50%, hsla(0,0%,100%,0) 50%, hsla(0,0%,100%,${r}) 100%)`,`linear-gradient(to ${e[Number(t)]},hsla(0,100%,50%,${r}),hsla(60,100%,50%,${r}),hsla(120,100%,50%,${r}),hsla(180,100%,50%,${r}),hsla(240,100%,50%,${r}),hsla(300,100%,50%,${r}),hsla(359,100%,50%,${r}))`,"hsl(0, 0%, 50%)"].join(",")}}),$I=(e,t,r)=>({areaStyles:{},areaGradientStyles:{backgroundImage:[`linear-gradient(to ${e[+!t]},hsl(0,0%,${r}%),hsla(0,0%,${r}%,0))`,`linear-gradient(to ${e[Number(t)]},hsl(0,100%,${r}%),hsl(60,100%,${r}%),hsl(120,100%,${r}%),hsl(180,100%,${r}%),hsl(240,100%,${r}%),hsl(300,100%,${r}%),hsl(360,100%,${r}%))`].join(",")}}),MI=(e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(t)]},hsl(0,0%,0%),hsla(0,0%,0%,0))`,`linear-gradient(to ${e[+!t]},hsl(0,0%,100%),hsla(0,0%,100%,0))`,`hsl(${r}, 100%, 50%)`].join(",")}}),_I=(e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[+!t]},hsla(0,0%,0%,${r}),hsla(0,0%,0%,0))`,`linear-gradient(to ${e[Number(t)]},hsla(0,100%,50%,${r}),hsla(60,100%,50%,${r}),hsla(120,100%,50%,${r}),hsla(180,100%,50%,${r}),hsla(240,100%,50%,${r}),hsla(300,100%,50%,${r}),hsla(359,100%,50%,${r}))`,`linear-gradient(to ${e[+!t]},hsl(0,0%,0%),hsl(0,0%,100%))`].join(",")}}),jI=(e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[+!t]},hsla(0,0%,100%,${r}),hsla(0,0%,100%,0))`,`linear-gradient(to ${e[Number(t)]},hsla(0,100%,50%,${r}),hsla(60,100%,50%,${r}),hsla(120,100%,50%,${r}),hsla(180,100%,50%,${r}),hsla(240,100%,50%,${r}),hsla(300,100%,50%,${r}),hsla(359,100%,50%,${r}))`,"#000"].join(",")}});function bl(e,t){const{xChannel:r,yChannel:n,dir:o="ltr"}=t,{zChannel:i}=e.getColorAxes({xChannel:r,yChannel:n}),s=e.getChannelValue(i),{minValue:a,maxValue:l}=e.getChannelRange(i),u=["top",o==="rtl"?"left":"right"];let p=!1,g={areaStyles:{},areaGradientStyles:{}},c=(s-a)/(l-a),d=e.getFormat()==="hsla";switch(i){case"red":{p=r==="green",g=AI(u,p,s);break}case"green":{p=r==="red",g=FI(u,p,s);break}case"blue":{p=r==="red",g=VI(u,p,s);break}case"hue":{p=r!=="saturation",d?g=LI(u,p,s):g=MI(u,p,s);break}case"saturation":{p=r==="hue",d?g=DI(u,p,c):g=_I(u,p,c);break}case"brightness":{p=r==="hue",g=jI(u,p,c);break}case"lightness":{p=r==="hue",g=$I(u,p,s);break}}return g}var GI=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},oa=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const r=t??this.getChannelValue(e),{minValue:n,maxValue:o}=this.getChannelRange(e);return In(r,n,o)}getChannelPercentValue(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=qs(t,r,n,o);return fn(i,r,n,o)}withChannelValue(e,t){const{minValue:r,maxValue:n}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=me(t,r,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(s=>s!==r),o=r||this.getChannels().find(s=>s!==n),i=this.getChannels().find(s=>s!==n&&s!==o);return{xChannel:n,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=fn(me(this.getChannelValue(e)+t,r,n),r,n,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return GI(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Xd=class mo extends oa{constructor(t,r,n,o){super(),this.red=t,this.green=r,this.blue=n,this.alpha=o}static parse(t){let r=[];if(/^#[\da-f]+$/i.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(/[^#]/gi,"$&$&"):t).slice(1).split("");for(;o.length>0;)r.push(parseInt(o.splice(0,2).join(""),16));r[3]=r[3]!==void 0?r[3]/255:void 0}const n=t.match(/^rgba?\((.*)\)$/);return n?.[1]&&(r=n[1].split(",").map(o=>Number(o.trim())).map((o,i)=>me(o,0,i<3?255:1))),r.length<3?void 0:new mo(r[0],r[1],r[2],r[3]??1)}toString(t){switch(t){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})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,r=this.green/255,n=this.blue/255,o=Math.min(t,r,n),i=Math.max(t,r,n),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4;break}l/=6}return new aa(re(l*360,2),re(a*100,2),re(i*100,2),re(this.alpha,2))}toHSL(){const t=this.red/255,r=this.green/255,n=this.blue/255,o=Math.min(t,r,n),i=Math.max(t,r,n),s=(i+o)/2,a=i-o;let l=-1,u=-1;if(a===0)l=u=0;else{switch(u=a/(s<.5?i+o:2-i-o),i){case t:l=(r-n)/a+(r<n?6:0);break;case r:l=(n-t)/a+2;break;case n:l=(t-r)/a+4;break}l/=6}return new sa(re(l*360,2),re(u*100,2),re(s*100,2),re(this.alpha,2))}clone(){return new mo(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){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: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return mo.colorChannels}};na(Xd,"colorChannels",["red","green","blue"]);var ia=Xd,BI=/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+)?)\)/,Zd=class ho extends oa{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.lightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(BI)){const[n,o,i,s]=(r[1]??r[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new ho(Jc(n,360),me(o,0,100),me(i,0,100),me(s??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${re(this.saturation,2)}%, ${re(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${re(this.saturation,2)}%, ${re(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,r=this.lightness/100,n=r+t*Math.min(r,1-r);return t=n===0?0:2*(1-r/n),new aa(re(this.hue,2),re(t*100,2),re(n*100,2),re(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.lightness/100,o=r*Math.min(n,1-n),i=(s,a=(s+t/30)%12)=>n-o*Math.max(Math.min(a-3,9-a,1),-1);return new ia(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),re(this.alpha,2))}clone(){return new ho(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){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: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){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: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return ho.colorChannels}};na(Zd,"colorChannels",["hue","saturation","lightness"]);var sa=Zd,UI=/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+)?)\)/,Jd=class vo extends oa{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.brightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(UI)){const[n,o,i,s]=(r[1]??r[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new vo(Jc(n,360),me(o,0,100),me(i,0,100),me(s??1,0,1))}}toString(t){switch(t){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}, ${re(this.saturation,2)}%, ${re(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${re(this.saturation,2)}%, ${re(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,r=this.brightness/100,n=r*(1-t/2);return t=n===0||n===1?0:(r-n)/Math.min(n,1-n),new sa(re(this.hue,2),re(t*100,2),re(n*100,2),re(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.brightness/100,o=(i,s=(i+t/60)%6)=>n-r*n*Math.max(Math.min(s,4-s,1),0);return new ia(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),re(this.alpha,2))}clone(){return new vo(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){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: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){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: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return vo.colorChannels}};na(Jd,"colorChannels",["hue","saturation","brightness"]);var aa=Jd,HI="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",WI=e=>{const t=new Map,r=e.split(",");for(let n=0;n<r.length;n++){const[o,i]=r[n].split(":");t.set(o,`#${i}`),o.includes("gray")&&t.set(o.replace("gray","grey"),`#${i}`)}return t},Pl=WI(HI),wt=e=>{if(Pl.has(e))return wt(Pl.get(e));const t=ia.parse(e)||aa.parse(e)||sa.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(r,wt),r}return t},El=e=>typeof e=="string"?wt(e):e,Qd=q("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]),oe=Qd.build(),qI=e=>e.ids?.root??`color-picker:${e.id}`,Cl=e=>e.ids?.label??`color-picker:${e.id}:label`,is=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,eg=e=>e.ids?.control??`color-picker:${e.id}:control`,tg=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,ss=e=>e.ids?.content??`color-picker:${e.id}:content`,rg=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,KI=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,ng=e=>e.ids?.area??`color-picker:${e.id}:area`,zI=e=>e.ids?.areaGradient??`color-picker:${e.id}:area-gradient`,og=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,ig=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,as=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,yo=e=>e.getById(ss(e)),YI=e=>e.getById(og(e)),XI=(e,t)=>e.getById(as(e,t)),ZI=e=>e.getById(KI(e)),Il=e=>e.getById(is(e)),JI=e=>e.getById(ng(e)),QI=(e,t)=>{const r=JI(e);if(!r)return;const{percent:n}=Qo(t,r);return n},sg=e=>e.getById(eg(e)),wi=e=>e.getById(tg(e)),eT=e=>e.getById(rg(e)),tT=(e,t)=>e.getById(ig(e,t)),rT=(e,t,r)=>{const n=tT(e,r);if(!n)return;const{percent:o}=Qo(t,n);return o},nT=e=>[...St(yo(e),"input[data-channel]"),...St(sg(e),"input[data-channel]")];function oT(e,t){switch(t){case"hue":return wt(`hsl(${e.getChannelValue("hue")}, 100%, 50%)`);case"lightness":case"brightness":case"saturation":case"red":case"green":case"blue":return e.withChannelValue("alpha",1);case"alpha":return e;default:throw new Error("Unknown color channel: "+t)}}function ls(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const r=e.getFormat()==="hsla";switch(t){case"hue":return r?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return r?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}function iT(e,t){switch(t){case"hex":const r=wt("#000000"),n=wt("#FFFFFF");return{minValue:r.toHexInt(),maxValue:n.toHexInt(),pageSize:10,step:1};case"css":return;case"hue":case"saturation":case"lightness":return e.toFormat("hsla").getChannelRange(t);case"brightness":return e.toFormat("hsba").getChannelRange(t);case"red":case"green":case"blue":return e.toFormat("rgba").getChannelRange(t);default:return e.getChannelRange(t)}}function sT(e,t){return e==="vertical"?"top":t==="ltr"?"right":"left"}var aT=e=>{const{channel:t,value:r,dir:n,orientation:o}=e,i=sT(o,n),{minValue:s,maxValue:a}=r.getChannelRange(t);switch(t){case"hue":return`linear-gradient(to ${i}, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)`;case"lightness":{let l=r.withChannelValue(t,s).toString("css"),u=r.withChannelValue(t,(a-s)/2).toString("css"),p=r.withChannelValue(t,a).toString("css");return`linear-gradient(to ${i}, ${l}, ${u}, ${p})`}case"saturation":case"brightness":case"red":case"green":case"blue":case"alpha":{let l=r.withChannelValue(t,s).toString("css"),u=r.withChannelValue(t,a).toString("css");return`linear-gradient(to ${i}, ${l}, ${u})`}default:throw new Error("Unknown color channel: "+t)}};function lT(e,t){const{context:r,send:n,prop:o,computed:i,state:s,scope:a}=e,l=r.get("value"),u=r.get("format"),p=i("areaValue"),g=i("valueAsString"),c=i("disabled"),d=i("interactive"),f=s.hasTag("dragging"),h=s.hasTag("open"),I=s.hasTag("focused"),T=y=>{const R=p.getChannels();return{xChannel:y.xChannel??R[1],yChannel:y.yChannel??R[2]}},S=r.get("currentPlacement"),x=br({...o("positioning"),placement:S});function b(y){const R=El(y.value).toFormat(r.get("format"));return{value:R,valueAsString:R.toString("hex"),checked:R.isEqual(l),disabled:y.disabled||!d}}return{dragging:f,open:h,valueAsString:g,value:l,setOpen(y){s.hasTag("open")!==y&&n({type:y?"OPEN":"CLOSE"})},setValue(y){n({type:"VALUE.SET",value:El(y),src:"set-color"})},getChannelValue(y){return ls(l,y)},getChannelValueText(y,R){return l.formatChannelValue(y,R)},setChannelValue(y,R){const O=l.withChannelValue(y,R);n({type:"VALUE.SET",value:O,src:"set-channel"})},format:r.get("format"),setFormat(y){const R=l.toFormat(y);n({type:"VALUE.SET",value:R,src:"set-format"})},alpha:l.getChannelValue("alpha"),setAlpha(y){const R=l.withChannelValue("alpha",y);n({type:"VALUE.SET",value:R,src:"set-alpha"})},getRootProps(){return t.element({...oe.root.attrs,dir:o("dir"),id:qI(a),"data-disabled":E(c),"data-readonly":E(o("readOnly")),"data-invalid":E(o("invalid")),style:{"--value":l.toString("css")}})},getLabelProps(){return t.element({...oe.label.attrs,dir:o("dir"),id:Cl(a),htmlFor:is(a),"data-disabled":E(c),"data-readonly":E(o("readOnly")),"data-invalid":E(o("invalid")),"data-focus":E(I),onClick(y){y.preventDefault(),Gc(sg(a),"[data-channel=hex]")?.focus({preventScroll:!0})}})},getControlProps(){return t.element({...oe.control.attrs,id:eg(a),dir:o("dir"),"data-disabled":E(c),"data-readonly":E(o("readOnly")),"data-invalid":E(o("invalid")),"data-state":h?"open":"closed","data-focus":E(I)})},getTriggerProps(){return t.button({...oe.trigger.attrs,id:tg(a),dir:o("dir"),disabled:c,"aria-label":`select color. current color is ${g}`,"aria-controls":ss(a),"aria-labelledby":Cl(a),"data-disabled":E(c),"data-readonly":E(o("readOnly")),"data-invalid":E(o("invalid")),"data-placement":S,"aria-expanded":E(h),"data-state":h?"open":"closed","data-focus":E(I),type:"button",onClick(){d&&n({type:"TRIGGER.CLICK"})},onBlur(){d&&n({type:"TRIGGER.BLUR"})},style:{position:"relative"}})},getPositionerProps(){return t.element({...oe.positioner.attrs,id:rg(a),dir:o("dir"),style:x.floating})},getContentProps(){return t.element({...oe.content.attrs,id:ss(a),dir:o("dir"),tabIndex:-1,"data-placement":S,"data-state":h?"open":"closed",hidden:!h})},getValueTextProps(){return t.element({...oe.valueText.attrs,dir:o("dir"),"data-disabled":E(c),"data-focus":E(I)})},getAreaProps(y={}){const{xChannel:R,yChannel:O}=T(y),{areaStyles:w}=bl(p,{xChannel:R,yChannel:O,dir:o("dir")});return t.element({...oe.area.attrs,id:ng(a),role:"group","data-invalid":E(o("invalid")),"data-disabled":E(c),"data-readonly":E(o("readOnly")),onPointerDown(N){if(!d||!pr(N)||Gt(N))return;const F=He(N);n({type:"AREA.POINTER_DOWN",point:F,channel:{xChannel:R,yChannel:O},id:"area"}),N.preventDefault()},style:{position:"relative",touchAction:"none",forcedColorAdjust:"none",...w}})},getAreaBackgroundProps(y={}){const{xChannel:R,yChannel:O}=T(y),{areaGradientStyles:w}=bl(p,{xChannel:R,yChannel:O,dir:o("dir")});return t.element({...oe.areaBackground.attrs,id:zI(a),"data-invalid":E(o("invalid")),"data-disabled":E(c),"data-readonly":E(o("readOnly")),style:{position:"relative",touchAction:"none",forcedColorAdjust:"none",...w}})},getAreaThumbProps(y={}){const{xChannel:R,yChannel:O}=T(y),w={xChannel:R,yChannel:O},N=p.getChannelValuePercent(R),F=1-p.getChannelValuePercent(O),A=p.getChannelValue(R),k=p.getChannelValue(O),L=p.withChannelValue("alpha",1).toString("css");return t.element({...oe.areaThumb.attrs,id:og(a),dir:o("dir"),tabIndex:c?void 0:0,"data-disabled":E(c),"data-invalid":E(o("invalid")),"data-readonly":E(o("readOnly")),role:"slider","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":A,"aria-label":`${R} and ${O}`,"aria-roledescription":"2d slider","aria-valuetext":`${R} ${A}, ${O} ${k}`,style:{position:"absolute",left:`${N*100}%`,top:`${F*100}%`,transform:"translate(-50%, -50%)",touchAction:"none",forcedColorAdjust:"none","--color":L,background:L},onFocus(){d&&n({type:"AREA.FOCUS",id:"area",channel:w})},onKeyDown(D){if(D.defaultPrevented||!d)return;const M=To(D),z={ArrowUp(){n({type:"AREA.ARROW_UP",channel:w,step:M})},ArrowDown(){n({type:"AREA.ARROW_DOWN",channel:w,step:M})},ArrowLeft(){n({type:"AREA.ARROW_LEFT",channel:w,step:M})},ArrowRight(){n({type:"AREA.ARROW_RIGHT",channel:w,step:M})},PageUp(){n({type:"AREA.PAGE_UP",channel:w,step:M})},PageDown(){n({type:"AREA.PAGE_DOWN",channel:w,step:M})},Escape(ae){ae.stopPropagation()}}[We(D,{dir:o("dir")})];z&&(z(D),D.preventDefault())}})},getTransparencyGridProps(y={}){const{size:R="12px"}=y;return t.element({...oe.transparencyGrid.attrs,style:{"--size":R,width:"100%",height:"100%",position:"absolute",backgroundColor:"#fff",backgroundImage:"conic-gradient(#eeeeee 0 25%, transparent 0 50%, #eeeeee 0 75%, transparent 0)",backgroundSize:"var(--size) var(--size)",inset:"0px",zIndex:"auto",pointerEvents:"none"}})},getChannelSliderProps(y){const{orientation:R="horizontal",channel:O,format:w}=y;return t.element({...oe.channelSlider.attrs,"data-channel":O,"data-orientation":R,role:"presentation",onPointerDown(N){if(!d||!pr(N)||Gt(N))return;const F=He(N);n({type:"CHANNEL_SLIDER.POINTER_DOWN",channel:O,format:w,point:F,id:O,orientation:R}),N.preventDefault()},style:{position:"relative",touchAction:"none"}})},getChannelSliderTrackProps(y){const{orientation:R="horizontal",channel:O,format:w}=y,N=w?l.toFormat(w):p;return t.element({...oe.channelSliderTrack.attrs,id:ig(a,O),role:"group","data-channel":O,"data-orientation":R,style:{position:"relative",forcedColorAdjust:"none",backgroundImage:aT({orientation:R,channel:O,dir:o("dir"),value:N})}})},getChannelSliderLabelProps(y){const{channel:R}=y;return t.element({...oe.channelSliderLabel.attrs,"data-channel":R,onClick(O){if(!d)return;O.preventDefault();const w=as(a,R);a.getById(w)?.focus({preventScroll:!0})},style:{userSelect:"none",WebkitUserSelect:"none"}})},getChannelSliderValueTextProps(y){return t.element({...oe.channelSliderValueText.attrs,"data-channel":y.channel})},getChannelSliderThumbProps(y){const{orientation:R="horizontal",channel:O,format:w}=y,N=w?l.toFormat(w):p,F=N.getChannelRange(O),A=N.getChannelValue(O),k=(A-F.minValue)/(F.maxValue-F.minValue),L=R==="horizontal"?{left:`${k*100}%`,top:"50%"}:{top:`${k*100}%`,left:"50%"};return t.element({...oe.channelSliderThumb.attrs,id:as(a,O),role:"slider","aria-label":O,tabIndex:c?void 0:0,"data-channel":O,"data-disabled":E(c),"data-orientation":R,"aria-disabled":E(c),"aria-orientation":R,"aria-valuemax":F.maxValue,"aria-valuemin":F.minValue,"aria-valuenow":A,"aria-valuetext":`${O} ${A}`,style:{forcedColorAdjust:"none",position:"absolute",background:oT(p,O).toString("css"),...L},onFocus(){d&&n({type:"CHANNEL_SLIDER.FOCUS",channel:O})},onKeyDown(D){if(D.defaultPrevented||!d)return;const M=To(D)*F.step,z={ArrowUp(){n({type:"CHANNEL_SLIDER.ARROW_UP",channel:O,step:M})},ArrowDown(){n({type:"CHANNEL_SLIDER.ARROW_DOWN",channel:O,step:M})},ArrowLeft(){n({type:"CHANNEL_SLIDER.ARROW_LEFT",channel:O,step:M})},ArrowRight(){n({type:"CHANNEL_SLIDER.ARROW_RIGHT",channel:O,step:M})},PageUp(){n({type:"CHANNEL_SLIDER.PAGE_UP",channel:O})},PageDown(){n({type:"CHANNEL_SLIDER.PAGE_DOWN",channel:O})},Home(){n({type:"CHANNEL_SLIDER.HOME",channel:O})},End(){n({type:"CHANNEL_SLIDER.END",channel:O})},Escape(ae){ae.stopPropagation()}}[We(D,{dir:o("dir")})];z&&(z(D),D.preventDefault())}})},getChannelInputProps(y){const{channel:R}=y,O=R==="hex"||R==="css",w=iT(l,R);return t.input({...oe.channelInput.attrs,dir:o("dir"),type:O?"text":"number","data-channel":R,"aria-label":R,spellCheck:!1,autoComplete:"off",disabled:c,"data-disabled":E(c),"data-invalid":E(o("invalid")),"data-readonly":E(o("readOnly")),readOnly:o("readOnly"),defaultValue:ls(l,R),min:w?.minValue,max:w?.maxValue,step:w?.step,onBeforeInput(N){if(O||!d)return;N.currentTarget.value.match(/[^0-9.]/g)&&N.preventDefault()},onFocus(N){d&&(n({type:"CHANNEL_INPUT.FOCUS",channel:R}),N.currentTarget.select())},onBlur(N){if(!d)return;const F=O?N.currentTarget.value:N.currentTarget.valueAsNumber;n({type:"CHANNEL_INPUT.BLUR",channel:R,value:F,isTextField:O})},onKeyDown(N){if(!N.defaultPrevented&&d&&N.key==="Enter"){const F=O?N.currentTarget.value:N.currentTarget.valueAsNumber;n({type:"CHANNEL_INPUT.CHANGE",channel:R,value:F,isTextField:O}),N.preventDefault()}},style:{appearance:"none",WebkitAppearance:"none",MozAppearance:"textfield"}})},getHiddenInputProps(){return t.input({type:"text",disabled:c,name:o("name"),tabIndex:-1,readOnly:o("readOnly"),required:o("required"),id:is(a),style:qt,defaultValue:g})},getEyeDropperTriggerProps(){return t.button({...oe.eyeDropperTrigger.attrs,type:"button",dir:o("dir"),disabled:c,"data-disabled":E(c),"data-invalid":E(o("invalid")),"data-readonly":E(o("readOnly")),"aria-label":"Pick a color from the screen",onClick(){d&&n({type:"EYEDROPPER.CLICK"})}})},getSwatchGroupProps(){return t.element({...oe.swatchGroup.attrs,role:"group"})},getSwatchTriggerState:b,getSwatchTriggerProps(y){const R=b(y);return t.button({...oe.swatchTrigger.attrs,disabled:R.disabled,dir:o("dir"),type:"button","aria-label":`select ${R.valueAsString} as the color`,"data-state":R.checked?"checked":"unchecked","data-value":R.valueAsString,"data-disabled":E(R.disabled),onClick(){R.disabled||n({type:"SWATCH_TRIGGER.CLICK",value:R.value})},style:{"--color":R.valueAsString,position:"relative"}})},getSwatchIndicatorProps(y){const R=b(y);return t.element({...oe.swatchIndicator.attrs,dir:o("dir"),hidden:!R.checked})},getSwatchProps(y){const{respectAlpha:R=!0}=y,O=b(y),w=O.value.toString(R?"css":"hex");return t.element({...oe.swatch.attrs,dir:o("dir"),"data-state":O.checked?"checked":"unchecked","data-value":O.valueAsString,style:{"--color":w,position:"relative",background:w}})},getFormatTriggerProps(){return t.button({...oe.formatTrigger.attrs,dir:o("dir"),type:"button","aria-label":`change color format to ${Tl(u)}`,onClick(y){if(y.currentTarget.disabled)return;const R=Tl(u);n({type:"FORMAT.SET",format:R,src:"format-trigger"})}})},getFormatSelectProps(){return t.select({...oe.formatSelect.attrs,"aria-label":"change color format",dir:o("dir"),defaultValue:o("format"),disabled:c,onChange(y){const R=uT(y.currentTarget.value);n({type:"FORMAT.SET",format:R,src:"format-select"})}})}}}var bo=["hsba","hsla","rgba"],cT=new RegExp(`^(${bo.join("|")})$`);function Tl(e){const t=bo.indexOf(e);return bo[t+1]??bo[0]}function uT(e){if(cT.test(e))return e;throw new Error(`Unsupported color format: ${e}`)}var Rl=e=>wt(e),{and:dT}=je(),gT={props({props:e}){return{dir:"ltr",defaultValue:Rl("#000000"),defaultFormat:"rgba",openAutoFocus:!0,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},context({prop:e,bindable:t,getContext:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual(n,o){return n.toString("css")===o?.toString("css")},hash(n){return n.toString("css")},onChange(n){const o=r(),i=n.toString(o.get("format"));e("onValueChange")?.({value:n,valueAsString:i})}})),format:t(()=>({defaultValue:e("defaultFormat"),value:e("format"),onChange(n){e("onFormatChange")?.({format:n})}})),activeId:t(()=>({defaultValue:null})),activeChannel:t(()=>({defaultValue:null})),activeOrientation:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),restoreFocus:t(()=>({defaultValue:!0})),currentPlacement:t(()=>({defaultValue:void 0}))}},computed:{rtl:({prop:e})=>e("dir")==="rtl",disabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),interactive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e})=>e.get("value").toString(e.get("format")),areaValue:({context:e})=>{const t=e.get("format").startsWith("hsl")?"hsla":"hsba";return e.get("value").toFormat(t)}},effects:["trackFormControl"],watch({prop:e,context:t,action:r,track:n}){n([()=>t.hash("value")],()=>{r(["syncInputElements","dispatchChangeEvent"])}),n([()=>t.get("format")],()=>{r(["syncFormatSelectElement"])}),n([()=>e("open")],()=>{r(["toggleVisibility"])})},on:{"VALUE.SET":{actions:["setValue"]},"FORMAT.SET":{actions:["setFormat"]},"CHANNEL_INPUT.CHANGE":{actions:["setChannelColorFromInput"]},"EYEDROPPER.CLICK":{actions:["openEyeDropper"]},"SWATCH_TRIGGER.CLICK":{actions:["setValue"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{target:"focused",actions:["setActiveChannel"]}}},focused:{tags:["closed","focused"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_INPUT.BLUR":{target:"idle",actions:["setChannelColorFromInput"]},"TRIGGER.BLUR":{target:"idle"}}},open:{tags:["open"],effects:["trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"AREA.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setAreaColorFromPoint","focusAreaThumb"]},"AREA.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_SLIDER.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.FOCUS":{actions:["setActiveChannel"]},"AREA.ARROW_LEFT":{actions:["decrementAreaXChannel"]},"AREA.ARROW_RIGHT":{actions:["incrementAreaXChannel"]},"AREA.ARROW_UP":{actions:["incrementAreaYChannel"]},"AREA.ARROW_DOWN":{actions:["decrementAreaYChannel"]},"AREA.PAGE_UP":{actions:["incrementAreaXChannel"]},"AREA.PAGE_DOWN":{actions:["decrementAreaXChannel"]},"CHANNEL_SLIDER.ARROW_LEFT":{actions:["decrementChannel"]},"CHANNEL_SLIDER.ARROW_RIGHT":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.PAGE_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.PAGE_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.HOME":{actions:["setChannelToMin"]},"CHANNEL_SLIDER.END":{actions:["setChannelToMax"]},"CHANNEL_INPUT.BLUR":{actions:["setChannelColorFromInput"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"SWATCH_TRIGGER.CLICK":[{guard:dT("isOpenControlled","closeOnSelect"),actions:["setValue","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["setValue","invokeOnClose","setReturnFocus"]},{actions:["setValue"]}]}},"open:dragging":{tags:["open"],exit:["clearActiveChannel"],effects:["trackPointerMove","disableTextSelection","trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"AREA.POINTER_MOVE":{actions:["setAreaColorFromPoint","focusAreaThumb"]},"AREA.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},"CHANNEL_SLIDER.POINTER_MOVE":{actions:["setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}]}}},implementations:{guards:{closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,shouldRestoreFocus:({context:e})=>!!e.get("restoreFocus")},effects:{trackPositioning({context:e,prop:t,scope:r}){e.get("currentPlacement")||e.set("currentPlacement",t("positioning")?.placement);const n=wi(r);return ze(n,()=>eT(r),{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},trackDismissableElement({context:e,scope:t,prop:r,send:n}){return Pr(()=>yo(t),{exclude:wi(t),defer:!0,onInteractOutside(i){r("onInteractOutside")?.(i),!i.defaultPrevented&&e.set("restoreFocus",!(i.detail.focusable||i.detail.contextmenu))},onPointerDownOutside:r("onPointerDownOutside"),onFocusOutside:r("onFocusOutside"),onDismiss(){n({type:"INTERACT_OUTSIDE"})}})},trackFormControl({context:e,scope:t,send:r}){const n=Il(t);return Nt(n,{onFieldsetDisabledChange(o){e.set("fieldsetDisabled",o)},onFormReset(){r({type:"VALUE.SET",value:e.initial("value"),src:"form.reset"})}})},trackPointerMove({context:e,scope:t,event:r,send:n}){return _c(t.getDoc(),{onPointerMove({point:o}){const i=e.get("activeId")==="area"?"AREA.POINTER_MOVE":"CHANNEL_SLIDER.POINTER_MOVE";n({type:i,point:o,format:r.format})},onPointerUp(){const o=e.get("activeId")==="area"?"AREA.POINTER_UP":"CHANNEL_SLIDER.POINTER_UP";n({type:o})}})},disableTextSelection({scope:e}){return Mc({doc:e.getDoc(),target:yo(e)})}},actions:{openEyeDropper({scope:e,context:t}){const r=e.getWin();if(!("EyeDropper"in r))return;new r.EyeDropper().open().then(({sRGBHex:i})=>{const s=t.get("value").getFormat(),a=wt(i).toFormat(s);t.set("value",a)}).catch(()=>{})},setActiveChannel({context:e,event:t}){e.set("activeId",t.id),t.channel&&e.set("activeChannel",t.channel),t.orientation&&e.set("activeOrientation",t.orientation)},clearActiveChannel({context:e}){e.set("activeChannel",null),e.set("activeId",null),e.set("activeOrientation",null)},setAreaColorFromPoint({context:e,event:t,computed:r,scope:n}){const o=t.format?e.get("value").toFormat(t.format):r("areaValue"),{xChannel:i,yChannel:s}=t.channel||e.get("activeChannel"),a=QI(n,t.point);if(!a)return;const l=o.getChannelPercentValue(i,a.x),u=o.getChannelPercentValue(s,1-a.y),p=o.withChannelValue(i,l).withChannelValue(s,u);e.set("value",p)},setChannelColorFromPoint({context:e,event:t,computed:r,scope:n}){const o=t.channel||e.get("activeId"),i=t.format?e.get("value").toFormat(t.format):r("areaValue"),s=rT(n,t.point,o);if(!s)return;const l=(e.get("activeOrientation")||"horizontal")==="horizontal"?s.x:s.y,u=i.getChannelPercentValue(o,l),p=i.withChannelValue(o,u);e.set("value",p)},setValue({context:e,event:t}){e.set("value",t.value)},setFormat({context:e,event:t}){e.set("format",t.format)},dispatchChangeEvent({scope:e,computed:t}){Xo(Il(e),{value:t("valueAsString")})},syncInputElements({context:e,scope:t}){Sl(t,e.get("value"))},invokeOnChangeEnd({context:e,prop:t,computed:r}){t("onValueChangeEnd")?.({value:e.get("value"),valueAsString:r("valueAsString")})},setChannelColorFromInput({context:e,event:t,scope:r}){const{channel:n,isTextField:o,value:i}=t,s=e.get("value").getChannelValue("alpha");let a;if(n==="alpha"){let l=parseFloat(i);l=Number.isNaN(l)?s:l,a=e.get("value").withChannelValue("alpha",l)}else if(o)a=Zc(()=>Rl(i).withChannelValue("alpha",s),()=>e.get("value"));else{const l=e.get("value").toFormat(e.get("format")),u=Number.isNaN(i)?l.getChannelValue(n):i;a=l.withChannelValue(n,u)}Sl(r,e.get("value"),a),e.set("value",a)},incrementChannel({context:e,event:t}){const r=e.get("value").incrementChannel(t.channel,t.step);e.set("value",r)},decrementChannel({context:e,event:t}){const r=e.get("value").decrementChannel(t.channel,t.step);e.set("value",r)},incrementAreaXChannel({context:e,event:t,computed:r}){const{xChannel:n}=t.channel,o=r("areaValue").incrementChannel(n,t.step);e.set("value",o)},decrementAreaXChannel({context:e,event:t,computed:r}){const{xChannel:n}=t.channel,o=r("areaValue").decrementChannel(n,t.step);e.set("value",o)},incrementAreaYChannel({context:e,event:t,computed:r}){const{yChannel:n}=t.channel,o=r("areaValue").incrementChannel(n,t.step);e.set("value",o)},decrementAreaYChannel({context:e,event:t,computed:r}){const{yChannel:n}=t.channel,o=r("areaValue").decrementChannel(n,t.step);e.set("value",o)},setChannelToMax({context:e,event:t}){const r=e.get("value"),n=r.getChannelRange(t.channel),o=r.withChannelValue(t.channel,n.maxValue);e.set("value",o)},setChannelToMin({context:e,event:t}){const r=e.get("value"),n=r.getChannelRange(t.channel),o=r.withChannelValue(t.channel,n.minValue);e.set("value",o)},focusAreaThumb({scope:e}){_(()=>{YI(e)?.focus({preventScroll:!0})})},focusChannelThumb({event:e,scope:t}){_(()=>{XI(t,e.channel)?.focus({preventScroll:!0})})},setInitialFocus({prop:e,scope:t}){e("openAutoFocus")&&_(()=>{un({root:yo(t),getInitialEl:e("initialFocusEl")})?.focus({preventScroll:!0})})},setReturnFocus({scope:e}){_(()=>{wi(e)?.focus({preventScroll:!0})})},syncFormatSelectElement({context:e,scope:t}){pT(t,e.get("format"))},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:r}){r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}};function Sl(e,t,r){const n=nT(e);_(()=>{n.forEach(o=>{const i=o.dataset.channel;Wt(o,ls(r||t,i))})})}function pT(e,t){const r=ZI(e);r&&_(()=>Wt(r,t))}B()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);B()(["xChannel","yChannel"]);B()(["channel","orientation"]);B()(["value","disabled"]);B()(["value","respectAlpha"]);B()(["size"]);const[Er,la]=j({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Cr=e=>$()(e,["lazyMount","unmountOnExit"]),[fT,ca]=j({name:"AccordionItemPropsContext",hookName:"useAccordionItemPropsContext",providerName:"<AccordionItemPropsProvider />"}),ag=v.forwardRef((e,t)=>{const[r,n]=$()(e,["value","disabled"]),o=On(),i=la(),s=P(o.getItemProps(r),n),a=o.getItemState(r),l=o.getItemContentProps(r);return m.jsx(fT,{value:r,children:m.jsx(CI,{value:a,children:m.jsx(ra,{ref:t,open:a.expanded,ids:{content:l.id},...i,...s})})})});ag.displayName="AccordionItem";const ua=v.forwardRef((e,t)=>{const r=ui();if(r.isUnmounted)return null;const n=P(r.getContentProps(),e);return m.jsx(C.div,{...n,ref:t})});ua.displayName="CollapsibleContent";const mT=$(),lg=v.forwardRef((e,t)=>{const r=On(),n=ca(),o=r.getItemContentProps(n),[,i]=mT(o,["hidden","data-state"]),s=P(i,e);return m.jsx(ua,{ref:t,...s})});lg.displayName="AccordionItemContent";const hT=e=>e.children(II()),cg=v.forwardRef((e,t)=>{const r=On(),n=ca(),o=P(r.getItemIndicatorProps(n),e);return m.jsx(C.div,{...o,ref:t})});cg.displayName="AccordionItemIndicator";const ug=v.forwardRef((e,t)=>{const r=On(),n=ca(),o=ui(),i=r.getItemTriggerProps(n),s=P({...i,"aria-controls":o.isUnmounted?void 0:i["aria-controls"]},e);return m.jsx(C.button,{...s,ref:t})});ug.displayName="AccordionItemTrigger";var dg=q("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator"),Lr=dg.build(),Lo=e=>e.ids?.root??`accordion:${e.id}`,vT=(e,t)=>e.ids?.item?.(t)??`accordion:${e.id}:item:${t}`,Ol=(e,t)=>e.ids?.itemContent?.(t)??`accordion:${e.id}:content:${t}`,Do=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,yT=e=>e.getById(Lo(e)),di=e=>{const r=`[aria-controls][data-ownedby='${CSS.escape(Lo(e))}']:not([disabled])`;return St(yT(e),r)},bT=e=>ei(di(e)),PT=e=>ti(di(e)),ET=(e,t)=>Uc(di(e),Do(e,t)),CT=(e,t)=>Hc(di(e),Do(e,t));function IT(e,t){const{send:r,context:n,prop:o,scope:i,computed:s}=e,a=n.get("focusedValue"),l=n.get("value"),u=o("multiple");function p(c){let d=c;!u&&d.length>1&&(d=[d[0]]),r({type:"VALUE.SET",value:d})}function g(c){return{expanded:l.includes(c.value),focused:a===c.value,disabled:!!(c.disabled??o("disabled"))}}return{focusedValue:a,value:l,setValue:p,getItemState:g,getRootProps(){return t.element({...Lr.root.attrs,dir:o("dir"),id:Lo(i),"data-orientation":o("orientation")})},getItemProps(c){const d=g(c);return t.element({...Lr.item.attrs,dir:o("dir"),id:vT(i,c.value),"data-state":d.expanded?"open":"closed","data-focus":E(d.focused),"data-disabled":E(d.disabled),"data-orientation":o("orientation")})},getItemContentProps(c){const d=g(c);return t.element({...Lr.itemContent.attrs,dir:o("dir"),role:"region",id:Ol(i,c.value),"aria-labelledby":Do(i,c.value),hidden:!d.expanded,"data-state":d.expanded?"open":"closed","data-disabled":E(d.disabled),"data-focus":E(d.focused),"data-orientation":o("orientation")})},getItemIndicatorProps(c){const d=g(c);return t.element({...Lr.itemIndicator.attrs,dir:o("dir"),"aria-hidden":!0,"data-state":d.expanded?"open":"closed","data-disabled":E(d.disabled),"data-focus":E(d.focused),"data-orientation":o("orientation")})},getItemTriggerProps(c){const{value:d}=c,f=g(c);return t.button({...Lr.itemTrigger.attrs,type:"button",dir:o("dir"),id:Do(i,d),"aria-controls":Ol(i,d),"aria-expanded":f.expanded,disabled:f.disabled,"data-orientation":o("orientation"),"aria-disabled":f.disabled,"data-state":f.expanded?"open":"closed","data-ownedby":Lo(i),onFocus(){f.disabled||r({type:"TRIGGER.FOCUS",value:d})},onBlur(){f.disabled||r({type:"TRIGGER.BLUR"})},onClick(h){f.disabled||(Ht()&&h.currentTarget.focus(),r({type:"TRIGGER.CLICK",value:d}))},onKeyDown(h){if(h.defaultPrevented||f.disabled)return;const I={ArrowDown(){s("isHorizontal")||r({type:"GOTO.NEXT",value:d})},ArrowUp(){s("isHorizontal")||r({type:"GOTO.PREV",value:d})},ArrowRight(){s("isHorizontal")&&r({type:"GOTO.NEXT",value:d})},ArrowLeft(){s("isHorizontal")&&r({type:"GOTO.PREV",value:d})},Home(){r({type:"GOTO.FIRST",value:d})},End(){r({type:"GOTO.LAST",value:d})}},T=We(h,{dir:o("dir"),orientation:o("orientation")}),S=I[T];S&&(S(h),h.preventDefault())}})}}}var{and:TT,not:RT}=je(),ST={props({props:e}){return{collapsible:!1,multiple:!1,orientation:"vertical",defaultValue:[],...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{focusedValue:t(()=>({defaultValue:null,sync:!0,onChange(r){e("onFocusChange")?.({value:r})}})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){e("onValueChange")?.({value:r})}}))}},computed:{isHorizontal:({prop:e})=>e("orientation")==="horizontal"},on:{"VALUE.SET":{actions:["setValue"]}},states:{idle:{on:{"TRIGGER.FOCUS":{target:"focused",actions:["setFocusedValue"]}}},focused:{on:{"GOTO.NEXT":{actions:["focusNextTrigger"]},"GOTO.PREV":{actions:["focusPrevTrigger"]},"TRIGGER.CLICK":[{guard:TT("isExpanded","canToggle"),actions:["collapse"]},{guard:RT("isExpanded"),actions:["expand"]}],"GOTO.FIRST":{actions:["focusFirstTrigger"]},"GOTO.LAST":{actions:["focusLastTrigger"]},"TRIGGER.BLUR":{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{canToggle:({prop:e})=>!!e("collapsible")||!!e("multiple"),isExpanded:({context:e,event:t})=>e.get("value").includes(t.value)},actions:{collapse({context:e,prop:t,event:r}){const n=t("multiple")?qc(e.get("value"),r.value):[];e.set("value",n)},expand({context:e,prop:t,event:r}){const n=t("multiple")?Wc(e.get("value"),r.value):[r.value];e.set("value",n)},focusFirstTrigger({scope:e}){bT(e)?.focus()},focusLastTrigger({scope:e}){PT(e)?.focus()},focusNextTrigger({context:e,scope:t}){const r=e.get("focusedValue");if(!r)return;ET(t,r)?.focus()},focusPrevTrigger({context:e,scope:t}){const r=e.get("focusedValue");if(!r)return;CT(t,r)?.focus()},setFocusedValue({context:e,event:t}){e.set("focusedValue",t.value)},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t}){e.set("value",t.value)},coarseValue({context:e,prop:t}){!t("multiple")&&e.get("value").length>1&&(mn("The value of accordion should be a single value when multiple is false."),e.set("value",[e.get("value")[0]]))}}}};B()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);B()(["value","disabled"]);const OT=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(ST,o);return IT(i,te)},gg=v.forwardRef((e,t)=>{const[r,n]=Cr(e),[o,i]=$()(n,["collapsible","defaultValue","disabled","id","ids","multiple","onFocusChange","onValueChange","orientation","value"]),s=OT(o),a=P(s.getRootProps(),i);return m.jsx(Kd,{value:s,children:m.jsx(Er,{value:r,children:m.jsx(C.div,{...a,ref:t})})})});gg.displayName="AccordionRoot";const pg=v.forwardRef((e,t)=>{const[r,n]=Cr(e),[{value:o},i]=$()(n,["value"]),s=P(o.getRootProps(),i);return m.jsx(Kd,{value:o,children:m.jsx(Er,{value:r,children:m.jsx(C.div,{...s,ref:t})})})});pg.displayName="AccordionRootProvider";const[fg,Yt]=j({name:"ClipboardContext",hookName:"useClipboardContext",providerName:"<ClipboardProvider />"}),xT=e=>e.children(Yt()),mg=v.forwardRef((e,t)=>{const r=Yt(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});mg.displayName="ClipboardControl";const hg=v.forwardRef((e,t)=>{const{children:r,copied:n,...o}=e,i=Yt(),s=P(i.getIndicatorProps({copied:i.copied}),o);return m.jsx(C.div,{...s,ref:t,children:i.copied?n:r})});hg.displayName="ClipboardIndicator";const vg=v.forwardRef((e,t)=>{const r=Yt(),n=P(r.getInputProps(),e);return m.jsx(C.input,{...n,ref:t})});vg.displayName="ClipboardInput";const yg=v.forwardRef((e,t)=>{const r=Yt(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});yg.displayName="ClipboardLabel";var wT=q("clipboard").parts("root","control","trigger","indicator","input","label"),Qt=wT.build(),NT=e=>e.ids?.root??`clip:${e.id}`,cs=e=>e.ids?.input??`clip:${e.id}:input`,kT=e=>e.ids?.label??`clip:${e.id}:label`,AT=e=>e.getById(cs(e)),FT=(e,t)=>DT(e.getDoc(),t);function VT(e,t){const r=e.createElement("pre");return Object.assign(r.style,{width:"1px",height:"1px",position:"fixed",top:"5px"}),r.textContent=t,r}function LT(e){const r=ie(e).getSelection();if(r==null)return Promise.reject(new Error);r.removeAllRanges();const n=e.ownerDocument,o=n.createRange();return o.selectNodeContents(e),r.addRange(o),n.execCommand("copy"),r.removeAllRanges(),Promise.resolve()}function DT(e,t){const r=e.defaultView||window;if(r.navigator.clipboard?.writeText!==void 0)return r.navigator.clipboard.writeText(t);if(!e.body)return Promise.reject(new Error);const n=VT(e,t);return e.body.appendChild(n),LT(n),e.body.removeChild(n),Promise.resolve()}function $T(e,t){const{state:r,send:n,context:o,scope:i}=e,s=r.matches("copied");return{copied:s,value:o.get("value"),setValue(a){n({type:"VALUE.SET",value:a})},copy(){n({type:"COPY"})},getRootProps(){return t.element({...Qt.root.attrs,"data-copied":E(s),id:NT(i)})},getLabelProps(){return t.label({...Qt.label.attrs,htmlFor:cs(i),"data-copied":E(s),id:kT(i)})},getControlProps(){return t.element({...Qt.control.attrs,"data-copied":E(s)})},getInputProps(){return t.input({...Qt.input.attrs,defaultValue:o.get("value"),"data-copied":E(s),readOnly:!0,"data-readonly":"true",id:cs(i),onFocus(a){a.currentTarget.select()},onCopy(){n({type:"INPUT.COPY"})}})},getTriggerProps(){return t.button({...Qt.trigger.attrs,type:"button","aria-label":s?"Copied to clipboard":"Copy to clipboard","data-copied":E(s),onClick(){n({type:"COPY"})}})},getIndicatorProps(a){return t.element({...Qt.indicator.attrs,hidden:a.copied!==s})}}}var MT={props({props:e}){return{timeout:3e3,defaultValue:"",...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){e("onValueChange")?.({value:r})}}))}},watch({track:e,context:t,action:r}){e([()=>t.get("value")],()=>{r(["syncInputElement"])})},on:{"VALUE.SET":{actions:["setValue"]},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]}},states:{idle:{on:{"INPUT.COPY":{target:"copied",actions:["invokeOnCopy"]}}},copied:{effects:["waitForTimeout"],on:{"COPY.DONE":{target:"idle"},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]},"INPUT.COPY":{actions:["invokeOnCopy"]}}}},implementations:{effects:{waitForTimeout({prop:e,send:t}){return go(()=>{t({type:"COPY.DONE"})},e("timeout"))}},actions:{setValue({context:e,event:t}){e.set("value",t.value)},copyToClipboard({context:e,scope:t}){FT(t,e.get("value"))},invokeOnCopy({prop:e}){e("onStatusChange")?.({copied:!0})},syncInputElement({context:e,scope:t}){const r=AT(t);r&&Wt(r,e.get("value"))}}}};B()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);B()(["copied"]);const _T=e=>{const t=v.useId(),{getRootNode:r}=Z(),n={id:t,getRootNode:r,...e},o=J(MT,n);return $T(o,te)},bg=v.forwardRef((e,t)=>{const[r,n]=$()(e,["defaultValue","id","ids","onStatusChange","onValueChange","timeout","value"]),o=_T(r),i=P(o.getRootProps(),n);return m.jsx(fg,{value:o,children:m.jsx(C.div,{ref:t,...i})})});bg.displayName="ClipboardRoot";const Pg=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(fg,{value:r,children:m.jsx(C.div,{ref:t,...o})})});Pg.displayName="ClipboardRootProvider";const Eg=v.forwardRef((e,t)=>{const r=Yt(),n=P(r.getTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Eg.displayName="ClipboardTrigger";const Cg=v.forwardRef((e,t)=>{const r=Yt();return m.jsx(C.span,{...e,ref:t,children:e.children||r.value})});Cg.displayName="ClipboardValueText";const jT=e=>e.children(ui()),Ig=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(Yd,{value:r,children:m.jsx(C.div,{...o,ref:t})})});Ig.displayName="CollapsibleRootProvider";const Tg=v.forwardRef((e,t)=>{const r=ui(),n=P(r.getTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Tg.displayName="CollapsibleTrigger";const[GT,Rg]=j({name:"ColorPickerAreaContext",hookName:"useColorPickerAreaContext",providerName:"<ColorPickerAreaProvider />"}),[Sg,ee]=j({name:"ColorPickerContext",hookName:"useColorPickerContext",providerName:"<ColorPickerProvider />"}),Og=v.forwardRef((e,t)=>{const[r,n]=$()(e,["xChannel","yChannel"]),o=ee(),i=P(o.getAreaProps(r),n);return m.jsx(GT,{value:r,children:m.jsx(C.div,{...i,ref:t})})});Og.displayName="ColorPickerArea";const xg=v.forwardRef((e,t)=>{const r=ee(),n=Rg(),o=P(r.getAreaBackgroundProps(n),e);return m.jsx(C.div,{...o,ref:t})});xg.displayName="ColorPickerAreaBackground";const wg=v.forwardRef((e,t)=>{const r=ee(),n=Rg(),o=P(r.getAreaThumbProps(n),e);return m.jsx(C.div,{...o,ref:t})});wg.displayName="ColorPickerAreaThumb";const Ng=v.forwardRef((e,t)=>{const[r,n]=$()(e,["channel","orientation"]),o=ee(),i=P(o.getChannelInputProps(r),n);return m.jsx(C.input,{...i,ref:t})});Ng.displayName="ColorPickerChannelInput";const[BT,gi]=j({name:"ColorPickerChannelSliderContext",hookName:"useColorPickerChannelSliderContext",providerName:"<ColorPickerChannelSliderProvider />"}),[UT,da]=j({name:"ColorPickerFormatContext",hookName:"useColorPickerFormatPropsContext",providerName:"<ColorPickerFormatPropsProvider />",strict:!1}),kg=v.forwardRef((e,t)=>{const[r,n]=$()(e,["channel","orientation"]),o=ee(),i=da(),s={...r,...i},a=P(o.getChannelSliderProps(s),n);return m.jsx(BT,{value:r,children:m.jsx(C.div,{...a,ref:t})})});kg.displayName="ColorPickerChannelSlider";const Ag=v.forwardRef((e,t)=>{const r=ee(),n=gi(),o=P(r.getChannelSliderLabelProps(n),e);return m.jsx(C.label,{...o,ref:t})});Ag.displayName="ColorPickerChannelSliderLabel";const Fg=v.forwardRef((e,t)=>{const r=ee(),n=gi(),o=da(),i={...n,...o},s=P(r.getChannelSliderThumbProps(i),e);return m.jsx(C.div,{...s,ref:t})});Fg.displayName="ColorPickerChannelSliderThumb";const Vg=v.forwardRef((e,t)=>{const r=ee(),n=gi(),o=da(),i={...n,...o},s=P(r.getChannelSliderTrackProps(i),e);return m.jsx(C.div,{...s,ref:t})});Vg.displayName="ColorPickerChannelSliderTrack";const Lg=v.forwardRef((e,t)=>{const{locale:r}=Q(),n=ee(),o=gi(),i=P(n.getChannelSliderValueTextProps(o),e);return m.jsx(C.span,{...i,ref:t,children:e.children||n.getChannelValueText(o.channel,r)})});Lg.displayName="ColorPickerChannelSliderValueText";const Dg=v.forwardRef((e,t)=>{const r=ee(),n=ve(),o=P(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:m.jsx(C.div,{...o,ref:Fe(n.ref,t)})});Dg.displayName="ColorPickerContent";const HT=e=>e.children(ee()),$g=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});$g.displayName="ColorPickerControl";const Mg=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getEyeDropperTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Mg.displayName="ColorPickerEyeDropperTrigger";const _g=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getFormatSelectProps(),e);return m.jsx(C.select,{...n,ref:t,children:["rgba","hsla","hsba"].map(o=>m.jsx(C.option,{value:o,children:o},o))})});_g.displayName="ColorPickerFormatSelect";const jg=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getFormatTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});jg.displayName="ColorPickerFormatTrigger";const Gg=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getHiddenInputProps(),e),o=se();return m.jsx(C.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});Gg.displayName="ColorPickerHiddenInput";const Bg=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});Bg.displayName="ColorPickerLabel";const Ug=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getPositionerProps(),e);return ve().unmounted?null:m.jsx(C.div,{...n,ref:t})});Ug.displayName="ColorPickerPositioner";const WT=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o=se(),i={id:t,ids:{label:o?.ids.label,input:o?.ids.control},dir:n,disabled:o?.disabled,invalid:o?.invalid,readOnly:o?.readOnly,required:o?.required,getRootNode:r,...e},s=J(gT,i);return lT(s,te)},Hg=v.forwardRef((e,t)=>{const[r,n]=Te(e),[o,i]=$()(n,["closeOnSelect","defaultOpen","defaultValue","defaultFormat","disabled","format","id","ids","initialFocusEl","invalid","name","name","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","open","openAutoFocus","positioning","readOnly","required","value"]),s=WT(o),a=ye(P({present:s.open},r)),l=P(s.getRootProps(),i);return m.jsx(Sg,{value:s,children:m.jsx(Ie,{value:a,children:m.jsx(C.div,{...l,ref:t})})})});Hg.displayName="ColorPickerRoot";const Wg=v.forwardRef((e,t)=>{const[r,n]=Te(e),[{value:o},i]=$()(n,["value"]),s=ye(P({present:o.open},r)),a=P(o.getRootProps(),i);return m.jsx(Sg,{value:o,children:m.jsx(Ie,{value:s,children:m.jsx(C.div,{...a,ref:t})})})});Wg.displayName="ColorPickerRootProvider";const[qg,qT]=j({name:"ColorPickerSwatchContext",hookName:"useColorPickerSwatchContext",providerName:"<ColorPickerSwatchProvider />"}),Kg=v.forwardRef((e,t)=>{const[r,n]=$()(e,["respectAlpha","value"]),o=ee(),i=P(o.getSwatchProps(r),n);return m.jsx(qg,{value:r,children:m.jsx(C.div,{...i,ref:t})})});Kg.displayName="ColorPickerSwatch";const zg=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getSwatchGroupProps(),e);return m.jsx(C.div,{...n,ref:t})});zg.displayName="ColorPickerSwatchGroup";const Yg=v.forwardRef((e,t)=>{const r=ee(),n=qT(),o=P(r.getSwatchIndicatorProps(n),e);return m.jsx(C.div,{...o,ref:t})});Yg.displayName="ColorPickerSwatchIndicator";const Xg=v.forwardRef((e,t)=>{const[r,n]=$()(e,["value","disabled"]),o=ee(),i=P(o.getSwatchTriggerProps(r),n);return m.jsx(C.button,{...i,ref:t})});Xg.displayName="ColorPickerSwatchTrigger";const Zg=v.forwardRef((e,t)=>{const[r,n]=$()(e,["size"]),o=ee(),i=P(o.getTransparencyGridProps(r),n);return m.jsx(C.div,{...i,ref:t})});Zg.displayName="ColorPickerTransparencyGrid";const Jg=v.forwardRef((e,t)=>{const r=ee(),n=P(r.getTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Jg.displayName="ColorPickerTrigger";const Qg=v.forwardRef((e,t)=>{const[{respectAlpha:r},n]=$()(e,["respectAlpha"]),o=ee(),i={respectAlpha:r,value:o.valueAsString},s=P(o.getSwatchProps(i),n);return m.jsx(qg,{value:i,children:m.jsx(C.div,{...s,ref:t})})});Qg.displayName="ColorPickerValueSwatch";const ep=v.forwardRef((e,t)=>{const{children:r,format:n,...o}=e,i=ee(),s=P(i.getValueTextProps(),o),a=n?i.value.toString(n):i.valueAsString;return m.jsx(C.span,{...s,ref:t,children:e.children||a})});ep.displayName="ColorPickerValueText";const tp=Qd.extendWith("view"),rp=v.forwardRef((e,t)=>{const r=ee(),[n,o]=$()(e,["format"]);return r.format!==n.format?null:m.jsx(UT,{value:n,children:m.jsx(C.div,{ref:t,"data-format":e.format,...tp.build().view.attrs,...o})})});rp.displayName="ColorPickerView";var KT=Object.defineProperty,zT=(e,t,r)=>t in e?KT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H=(e,t,r)=>zT(e,typeof t!="symbol"?t+"":t,r),Po={itemToValue(e){return typeof e=="string"?e:Ei(e)&&Ci(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Ei(e)&&Ci(e,"label")?e.label:Po.itemToValue(e)},isItemDisabled(e){return Ei(e)&&Ci(e,"disabled")?!!e.disabled:!1}},ga=class np{constructor(t){this.options=t,H(this,"items"),H(this,"copy",r=>new np({...this.options,items:r??[...this.items]})),H(this,"isEqual",r=>Kt(this.items,r.items)),H(this,"setItems",r=>this.copy(r)),H(this,"getValues",(r=this.items)=>Array.from(r).map(n=>this.getItemValue(n)).filter(Boolean)),H(this,"find",r=>{if(r==null)return null;const n=this.indexOf(r);return n!=null?this.at(n):null}),H(this,"findMany",r=>Array.from(r).map(n=>this.find(n)).filter(n=>n!=null)),H(this,"at",r=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[r]??null;let n=0;const o=this.group();for(const[,i]of o)for(const s of i){if(n===r)return s;n++}return null}),H(this,"sortFn",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return(o??0)-(i??0)}),H(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),H(this,"getItemValue",r=>r==null?null:this.options.itemToValue?.(r)??Po.itemToValue(r)),H(this,"getItemDisabled",r=>r==null?!1:this.options.isItemDisabled?.(r)??Po.isItemDisabled(r)),H(this,"stringifyItem",r=>r==null?null:this.options.itemToString?.(r)??Po.itemToString(r)),H(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),H(this,"stringifyItems",(r,n=", ")=>Array.from(r).map(o=>this.stringifyItem(o)).filter(Boolean).join(n)),H(this,"stringifyMany",(r,n)=>this.stringifyItems(this.findMany(r),n)),H(this,"has",r=>this.indexOf(r)!==-1),H(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),H(this,"group",()=>{const{groupBy:r,groupSort:n}=this.options;if(!r)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=r(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return n&&i.sort(([s],[a])=>{if(typeof n=="function")return n(s,a);if(Array.isArray(n)){const l=n.indexOf(s),u=n.indexOf(a);return l===-1?1:u===-1?-1:l-u}return n==="asc"?s.localeCompare(a):n==="desc"?a.localeCompare(s):0}),i}),H(this,"getNextValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.min(i+n,this.size-1):i+n;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),H(this,"getPreviousValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.max(i-n,0):i-n;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),H(this,"indexOf",r=>{if(r==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(i=>this.getItemValue(i)===r);let n=0;const o=this.group();for(const[,i]of o)for(const s of i){if(this.getItemValue(s)===r)return n;n++}return-1}),H(this,"getByText",(r,n)=>{let o=n!=null?XT(this.items,this.indexOf(n)):this.items;return r.length===1&&(o=o.filter(s=>this.getItemValue(s)!==n)),o.find(s=>YT(this.stringifyItem(s),r))}),H(this,"search",(r,n)=>{const{state:o,currentValue:i,timeout:s=350}=n,a=o.keysSoFar+r,u=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,p=this.getByText(u,i),g=this.getItemValue(p);function c(){clearTimeout(o.timer),o.timer=-1}function d(f){o.keysSoFar=f,c(),f!==""&&(o.timer=+setTimeout(()=>{d(""),c()},s))}return d(a),g}),H(this,"update",(r,n)=>{let o=this.items.findIndex(i=>this.getItemValue(i)===r);return o===-1?this:this.copy([...this.items.slice(0,o),n,...this.items.slice(o+1)])}),H(this,"insert",(r,...n)=>this.copy(Dr(this.items,r,...n))),H(this,"insertBefore",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Dr(this.items,o,...n))}),H(this,"insertAfter",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Dr(this.items,o+1,...n))}),H(this,"prepend",(...r)=>this.copy(Dr(this.items,0,...r))),H(this,"append",(...r)=>this.copy(Dr(this.items,this.items.length,...r))),H(this,"filter",r=>{const n=this.items.filter((o,i)=>r(this.stringifyItem(o),i));return this.copy(n)}),H(this,"remove",(...r)=>{const n=r.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const i=this.getItemValue(o);return i==null?!1:!n.includes(i)}))}),H(this,"move",(r,n)=>{const o=this.indexOf(r);return o===-1?this:this.copy(qn(this.items,[o],n))}),H(this,"moveBefore",(r,...n)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===r);if(o===-1)return this;let i=n.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(qn(this.items,i,o))}),H(this,"moveAfter",(r,...n)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===r);if(o===-1)return this;let i=n.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(qn(this.items,i,o+1))}),H(this,"reorder",(r,n)=>this.copy(qn(this.items,[r],n))),H(this,"compareValue",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return o<i?-1:o>i?1:0}),H(this,"range",(r,n)=>{let o=[],i=r;for(;i!=null;){if(this.find(i)&&o.push(i),i===n)return o;i=this.getNextValue(i)}return[]}),H(this,"getValueRange",(r,n)=>r&&n?this.compareValue(r,n)<=0?this.range(r,n):this.range(n,r):[]),H(this,"toString",()=>{let r="";for(const n of this.items){const o=this.getItemValue(n),i=this.stringifyItem(n),s=this.getItemDisabled(n),a=[o,i,s].filter(Boolean).join(":");r+=a+","}return r}),H(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},YT=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase()),XT=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]);function Dr(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function qn(e,t,r){t=[...t].sort((o,i)=>o-i);const n=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return r=Math.max(0,r-t.filter(o=>o<r).length),[...e.slice(0,r),...n,...e.slice(r)]}const ZT=e=>new ga(e);var er=new WeakMap,Kn=new WeakMap,zn={},Ni=0,op=e=>e&&(e.host||op(e.parentNode)),JT=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=op(r);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),QT=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),eR=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o}=t,i=JT(r,Array.isArray(e)?e:[e]);zn[n]||(zn[n]=new WeakMap);const s=zn[n],a=[],l=new Set,u=new Set(i),p=c=>{!c||l.has(c)||(l.add(c),p(c.parentNode))};i.forEach(p);const g=c=>{!c||u.has(c)||Array.prototype.forEach.call(c.children,d=>{if(l.has(d))g(d);else try{if(QT(d))return;const h=d.getAttribute(o)==="true",I=(er.get(d)||0)+1,T=(s.get(d)||0)+1;er.set(d,I),s.set(d,T),a.push(d),I===1&&h&&Kn.set(d,!0),T===1&&d.setAttribute(n,""),h||d.setAttribute(o,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",d,f)}})};return g(r),l.clear(),Ni++,()=>{a.forEach(c=>{const d=er.get(c)-1,f=s.get(c)-1;er.set(c,d),s.set(c,f),d||(Kn.has(c)||c.removeAttribute(o),Kn.delete(c)),f||c.removeAttribute(n)}),Ni--,Ni||(er=new WeakMap,er=new WeakMap,Kn=new WeakMap,zn={})}},tR=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,rR=(e,t=tR(e),r="data-aria-hidden")=>{if(t)return eR(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},nR=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function ip(e,t={}){const{defer:r=!0}=t,n=r?nR:i=>i(),o=[];return o.push(n(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(rR(s))})),()=>{o.forEach(i=>i?.())}}var sp=q("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");sp.build();B()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]);B()(["htmlFor"]);B()(["id"]);B()(["item","persistFocus"]);const[ap,ft]=j({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),lp=v.forwardRef((e,t)=>{const r=ft(),n=la(),o=ye({...n,present:r.open}),i=P(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:m.jsx(C.div,{...i,ref:Fe(o.ref,t)})});lp.displayName="DialogBackdrop";const cp=v.forwardRef((e,t)=>{const r=ft(),n=P(r.getCloseTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});cp.displayName="DialogCloseTrigger";const up=v.forwardRef((e,t)=>{const r=ft(),n=ve(),o=P(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:m.jsx(C.div,{...o,ref:Fe(n.ref,t)})});up.displayName="DialogContent";const oR=e=>e.children(ft()),dp=v.forwardRef((e,t)=>{const r=ft(),n=P(r.getDescriptionProps(),e);return m.jsx(C.div,{...n,ref:t})});dp.displayName="DialogDescription";const gp=v.forwardRef((e,t)=>{const r=ft(),n=P(r.getPositionerProps(),e);return ve().unmounted?null:m.jsx(C.div,{...n,ref:t})});gp.displayName="DialogPositioner";var iR=Object.defineProperty,sR=(e,t,r)=>t in e?iR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,le=(e,t,r)=>sR(e,typeof t!="symbol"?t+"":t,r),xl={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},aR=[],lR=class{constructor(e,t){le(this,"trapStack"),le(this,"config"),le(this,"doc"),le(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),le(this,"listenerCleanups",[]),le(this,"handleFocus",n=>{const o=ce(n),i=this.findContainerIndex(o,n)>=0;if(i||Ls(o))i&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(kr(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:u}=this.state.containerGroups[l];if(u.length>0){const p=u.findIndex(g=>g===this.state.mostRecentlyFocusedNode);p>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?p+1<u.length&&(s=u[p+1],a=!1):p-1>=0&&(s=u[p-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(u=>kr(u)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),le(this,"handlePointerDown",n=>{const o=ce(n);if(!(this.findContainerIndex(o,n)>=0)){if(Mr(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Mr(this.config.allowOutsideClick,n)||n.preventDefault()}}),le(this,"handleClick",n=>{const o=ce(n);this.findContainerIndex(o,n)>=0||Mr(this.config.clickOutsideDeactivates,n)||Mr(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),le(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),i=this.findNextNavNode({event:n,isBackward:o});if(!i)return;$r(n)&&n.preventDefault(),this.tryFocus(i)}}),le(this,"handleEscapeKey",n=>{cR(n)&&Mr(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),le(this,"_mutationObserver"),le(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),le(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(n=>{this._mutationObserver?.observe(n,{subtree:!0,childList:!0})})}),le(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!Tt(n))if(this.findContainerIndex(this.doc.activeElement)>=0)n=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];n=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n.isConnected||(n=this.getNodeForOption("fallbackFocus")),n}),le(this,"tryFocus",n=>{if(n!==!1&&n!==Sc(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,uR(n)&&n.select()}}),le(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),xl.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i?.();const u=()=>{wl(()=>{if(l){const p=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(p)}s?.()})};if(l&&a){const p=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(p).then(u,u),this}return u(),this}),le(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),i=this.getOption(n,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),le(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),i=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),le(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),le(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),le(this,"getOption",(n,o,i)=>n&&n[o]!==void 0?n[o]:this.config[i||o]),le(this,"getNodeForOption",(n,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[n];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${n}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return a}),le(this,"findNextNavNode",n=>{const{event:o,isBackward:i=!1}=n,s=n.target||ce(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,o),u=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let p=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>s===g);if(p<0&&(u?.container===s||Tt(s)&&!Pt(s)&&!u?.nextTabbableNode(s,!1))&&(p=l),p>=0){const g=p===0?this.state.tabbableGroups.length-1:p-1,c=this.state.tabbableGroups[g];a=kr(s)>=0?c.lastTabbableNode:c.lastDomTabbableNode}else $r(o)||(a=u?.nextTabbableNode(s,!1))}else{let p=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>s===g);if(p<0&&(u?.container===s||Tt(s)&&!Pt(s)&&!u?.nextTabbableNode(s))&&(p=l),p>=0){const g=p===this.state.tabbableGroups.length-1?0:p+1,c=this.state.tabbableGroups[g];a=kr(s)>=0?c.firstTabbableNode:c.firstDomTabbableNode}else $r(o)||(a=u?.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||aR;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(n){return $r(n)&&!n.shiftKey},isKeyBackward(n){return $r(n)&&n.shiftKey},...t};this.doc=r.document||Oe(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||r?.includes(n)||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=En(e),r=Gs(e),n=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=r.find(u=>Pt(u)),s=r.slice().reverse().find(u=>Pt(u)),a=!!t.find(u=>kr(u)>0);function l(u,p=!0){const g=t.indexOf(u);return g<0?p?r.slice(r.indexOf(u)+1).find(c=>Pt(c)):r.slice(0,r.indexOf(u)).reverse().find(c=>Pt(c)):t[g+(p?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:a,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return xl.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?wl(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(W(this.doc,"focusin",this.handleFocus,!0),W(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),W(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),W(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),W(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),W(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t?.();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},$r=e=>e.key==="Tab",Mr=(e,...t)=>typeof e=="function"?e(...t):e,cR=e=>!e.isComposing&&e.key==="Escape",wl=e=>setTimeout(e,0),uR=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function pp(e,t={}){let r;const n=_(()=>{const o=typeof e=="function"?e():e;if(o){r=new lR(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Oe(o)});try{r.activate()}catch{}}});return function(){r?.deactivate(),n()}}var ki="data-scroll-lock";function dR(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function fp(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(ki))return;o.setAttribute(ki,"");const s=r.innerWidth-n.clientWidth,a=()=>pb(n,"--scrollbar-width",`${s}px`),l=dR(n),u=()=>dn(o,{overflow:"hidden",[l]:`${s}px`}),p=()=>{const{scrollX:c,scrollY:d,visualViewport:f}=r,h=f?.offsetLeft??0,I=f?.offsetTop??0,T=dn(o,{position:"fixed",overflow:"hidden",top:`${-(d-Math.floor(I))}px`,left:`${-(c-Math.floor(h))}px`,right:"0",[l]:`${s}px`});return()=>{T?.(),r.scrollTo({left:c,top:d,behavior:"instant"})}},g=[a(),zo()?p():u()];return()=>{g.forEach(c=>c?.()),o.removeAttribute(ki)}}var mp=q("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Vt=mp.build(),hp=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,vp=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,us=e=>e.ids?.content??`dialog:${e.id}:content`,yp=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,ds=e=>e.ids?.title??`dialog:${e.id}:title`,gs=e=>e.ids?.description??`dialog:${e.id}:description`,bp=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Yn=e=>e.getById(us(e)),gR=e=>e.getById(hp(e)),pR=e=>e.getById(vp(e)),fR=e=>e.getById(yp(e)),mR=e=>e.getById(ds(e)),hR=e=>e.getById(gs(e)),vR=e=>e.getById(bp(e));function yR(e,t){const{state:r,send:n,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=r.matches("open");return{open:l,setOpen(u){r.matches("open")!==u&&n({type:u?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...Vt.trigger.attrs,dir:i("dir"),id:yp(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":us(s),onClick(u){u.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...Vt.backdrop.attrs,dir:i("dir"),hidden:!l,id:vp(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Vt.positioner.attrs,dir:i("dir"),id:hp(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const u=o.get("rendered");return t.element({...Vt.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:us(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!u.title?void 0:ds(s),"aria-describedby":u.description?gs(s):void 0})},getTitleProps(){return t.element({...Vt.title.attrs,dir:i("dir"),id:ds(s)})},getDescriptionProps(){return t.element({...Vt.description.attrs,dir:i("dir"),id:gs(s)})},getCloseTriggerProps(){return t.button({...Vt.closeTrigger.attrs,dir:i("dir"),id:bp(s),type:"button",onClick(u){u.defaultPrevented||(u.stopPropagation(),n({type:"CLOSE"}))}})}}}var bR={props({props:e,scope:t}){const r=e.role==="alertdialog";return{role:"dialog",modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r?()=>vR(t):void 0,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return Pr(()=>Yn(e),{defer:!0,pointerBlocking:r("modal"),exclude:[fR(e)],onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return fp(e.getDoc())},trapFocus({scope:e,prop:t}){return!t("trapFocus")||!t("modal")?void 0:pp(()=>Yn(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>t("finalFocusEl")?.()??n})},hideContentBelow({scope:e,prop:t}){return t("modal")?ip(()=>[Yn(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){_(()=>{e.set("rendered",{title:!!mR(t),description:!!hR(t)})})},syncZIndex({scope:e}){_(()=>{const t=Yn(e);if(!t)return;const r=gr(t);[gR(e),pR(e)].forEach(o=>{o?.style.setProperty("--z-index",r.zIndex)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};B()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const PR=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,getRootNode:r,dir:n,...e},i=J(bR,o);return yR(i,te)},ER=e=>{const[t,{children:r,...n}]=Te(e),[o]=Cr(t),i=PR(n),s=ye(P({present:i.open},t));return m.jsx(ap,{value:i,children:m.jsx(Er,{value:o,children:m.jsx(Ie,{value:s,children:r})})})},CR=e=>{const[t,{value:r,children:n}]=Te(e),[o]=Cr(t),i=ye(P({present:r.open},t));return m.jsx(ap,{value:r,children:m.jsx(Er,{value:o,children:m.jsx(Ie,{value:i,children:n})})})},Pp=v.forwardRef((e,t)=>{const r=ft(),n=P(r.getTitleProps(),e);return m.jsx(C.h2,{...n,ref:t})});Pp.displayName="DialogTitle";const Ep=v.forwardRef((e,t)=>{const r=ft(),n=ve(),o=P({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return m.jsx(C.button,{...o,ref:t})});Ep.displayName="DialogTrigger";const[Cp,mt]=j({name:"EditableContext",hookName:"useEditableContext",providerName:"<EditableProvider />"}),Ip=v.forwardRef((e,t)=>{const r=mt(),n=P(r.getAreaProps(),e);return m.jsx(C.div,{...n,ref:t})});Ip.displayName="EditableArea";const Tp=v.forwardRef((e,t)=>{const r=mt(),n=P(r.getCancelTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Tp.displayName="EditableCancelTrigger";const IR=e=>e.children(mt()),Rp=v.forwardRef((e,t)=>{const r=mt(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});Rp.displayName="EditableControl";const Sp=v.forwardRef((e,t)=>{const r=mt(),n=P(r.getEditTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Sp.displayName="EditableEditTrigger";const Op=v.forwardRef((e,t)=>{const r=mt(),n=P(r.getInputProps(),e),o=se();return m.jsx(C.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});Op.displayName="EditableInput";const xp=v.forwardRef((e,t)=>{const r=mt(),n=P(r.getPreviewProps(),e);return m.jsx(C.span,{...n,ref:t})});xp.displayName="EditablePreview";var wp=q("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control"),ot=wp.build(),TR=e=>e.ids?.root??`editable:${e.id}`,RR=e=>e.ids?.area??`editable:${e.id}:area`,SR=e=>e.ids?.label??`editable:${e.id}:label`,Np=e=>e.ids?.preview??`editable:${e.id}:preview`,ps=e=>e.ids?.input??`editable:${e.id}:input`,OR=e=>e.ids?.control??`editable:${e.id}:control`,kp=e=>e.ids?.submitTrigger??`editable:${e.id}:submit`,Ap=e=>e.ids?.cancelTrigger??`editable:${e.id}:cancel`,Fp=e=>e.ids?.editTrigger??`editable:${e.id}:edit`,Xn=e=>e.getById(ps(e)),xR=e=>e.getById(Np(e)),wR=e=>e.getById(kp(e)),NR=e=>e.getById(Ap(e)),kR=e=>e.getById(Fp(e));function AR(e,t){const{state:r,context:n,send:o,prop:i,scope:s,computed:a}=e,l=i("disabled"),u=a("isInteractive"),p=i("readOnly"),g=i("invalid"),c=i("autoResize"),d=i("translations"),f=r.matches("edit"),h=i("placeholder"),I=typeof h=="string"?{edit:h,preview:h}:h,T=n.get("value"),S=T.trim()==="",x=S?I?.preview??"":T;return{editing:f,empty:S,value:T,valueText:x,setValue(b){o({type:"VALUE.SET",value:b,src:"setValue"})},clearValue(){o({type:"VALUE.SET",value:"",src:"clearValue"})},edit(){u&&o({type:"EDIT"})},cancel(){u&&o({type:"CANCEL"})},submit(){u&&o({type:"SUBMIT"})},getRootProps(){return t.element({...ot.root.attrs,id:TR(s),dir:i("dir")})},getAreaProps(){return t.element({...ot.area.attrs,id:RR(s),dir:i("dir"),style:c?{display:"inline-grid"}:void 0,"data-focus":E(f),"data-disabled":E(l),"data-placeholder-shown":E(S)})},getLabelProps(){return t.label({...ot.label.attrs,id:SR(s),dir:i("dir"),htmlFor:ps(s),"data-focus":E(f),"data-invalid":E(g),onClick(){if(f)return;xR(s)?.focus({preventScroll:!0})}})},getInputProps(){return t.input({...ot.input.attrs,dir:i("dir"),"aria-label":d?.input,name:i("name"),form:i("form"),id:ps(s),hidden:c?void 0:!f,placeholder:I?.edit,maxLength:i("maxLength"),required:i("required"),disabled:l,"data-disabled":E(l),readOnly:p,"data-readonly":E(p),"aria-invalid":Me(g),"data-invalid":E(g),"data-autoresize":E(c),defaultValue:T,size:c?1:void 0,onChange(b){o({type:"VALUE.SET",src:"input.change",value:b.currentTarget.value})},onKeyDown(b){if(b.defaultPrevented||Pn(b))return;const R={Escape(){o({type:"CANCEL"}),b.preventDefault()},Enter(O){if(!a("submitOnEnter"))return;const{localName:w}=O.currentTarget;if(w==="textarea"){if(!($s()?O.metaKey:O.ctrlKey))return;o({type:"SUBMIT",src:"keydown.enter"});return}w==="input"&&!O.shiftKey&&!O.metaKey&&(o({type:"SUBMIT",src:"keydown.enter"}),O.preventDefault())}}[b.key];R&&R(b)},style:c?{gridArea:"1 / 1 / auto / auto",visibility:f?void 0:"hidden"}:void 0})},getPreviewProps(){return t.element({id:Np(s),...ot.preview.attrs,dir:i("dir"),"data-placeholder-shown":E(S),"aria-readonly":Me(p),"data-readonly":E(l),"data-disabled":E(l),"aria-disabled":Me(l),"aria-invalid":Me(g),"data-invalid":E(g),"aria-label":d?.edit,"data-autoresize":E(c),children:x,hidden:c?void 0:f,tabIndex:u?0:void 0,onClick(){u&&i("activationMode")==="click"&&o({type:"EDIT",src:"click"})},onFocus(){u&&i("activationMode")==="focus"&&o({type:"EDIT",src:"focus"})},onDoubleClick(b){b.defaultPrevented||u&&i("activationMode")==="dblclick"&&o({type:"EDIT",src:"dblclick"})},style:c?{whiteSpace:"pre",userSelect:"none",gridArea:"1 / 1 / auto / auto",visibility:f?"hidden":void 0,overflow:"hidden",textOverflow:"ellipsis"}:void 0})},getEditTriggerProps(){return t.button({...ot.editTrigger.attrs,id:Fp(s),dir:i("dir"),"aria-label":d?.edit,hidden:f,type:"button",disabled:l,onClick(b){b.defaultPrevented||u&&o({type:"EDIT",src:"edit.click"})}})},getControlProps(){return t.element({id:OR(s),...ot.control.attrs,dir:i("dir")})},getSubmitTriggerProps(){return t.button({...ot.submitTrigger.attrs,dir:i("dir"),id:kp(s),"aria-label":d?.submit,hidden:!f,disabled:l,type:"button",onClick(b){b.defaultPrevented||u&&o({type:"SUBMIT",src:"submit.click"})}})},getCancelTriggerProps(){return t.button({...ot.cancelTrigger.attrs,dir:i("dir"),"aria-label":d?.cancel,id:Ap(s),hidden:!f,type:"button",disabled:l,onClick(b){b.defaultPrevented||u&&o({type:"CANCEL",src:"cancel.click"})}})}}}var FR={props({props:e}){return{activationMode:"focus",submitMode:"both",defaultValue:"",selectOnFocus:!0,...e,translations:{input:"editable input",edit:"edit",submit:"submit",cancel:"cancel",...e.translations}}},initialState({prop:e}){return e("edit")||e("defaultEdit")?"edit":"preview"},entry:["focusInputIfNeeded"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange(r){return t("onValueChange")?.({value:r})}})),previousValue:e(()=>({defaultValue:""}))}),watch({track:e,action:t,context:r,prop:n}){e([()=>r.get("value")],()=>{t(["syncInputValue"])}),e([()=>n("edit")],()=>{t(["toggleEditing"])})},computed:{submitOnEnter({prop:e}){return["both","enter"].includes(e("submitMode"))},submitOnBlur({prop:e}){return["both","blur"].includes(e("submitMode"))},isInteractive({prop:e}){return!(e("disabled")||e("readOnly"))}},on:{"VALUE.SET":{actions:["setValue"]}},states:{preview:{entry:["blurInputIfNeeded"],on:{"CONTROLLED.EDIT":{target:"edit",actions:["setPreviousValue","focusInput"]},EDIT:[{guard:"isEditControlled",actions:["invokeOnEdit"]},{target:"edit",actions:["setPreviousValue","focusInput","invokeOnEdit"]}]}},edit:{effects:["trackInteractOutside"],on:{"CONTROLLED.PREVIEW":[{guard:"isSubmitEvent",target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel"]}],CANCEL:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel","invokeOnPreview"]}],SUBMIT:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit","invokeOnPreview"]}]}}},implementations:{guards:{isEditControlled:({prop:e})=>e("edit")!=null,isSubmitEvent:({event:e})=>e.previousEvent?.type==="SUBMIT"},effects:{trackInteractOutside({send:e,scope:t,prop:r,computed:n}){return ld(Xn(t),{exclude(o){return[NR(t),wR(t)].some(s=>Ae(s,o))},onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(o){if(r("onInteractOutside")?.(o),o.defaultPrevented)return;const{focusable:i}=o.detail;e({type:n("submitOnBlur")?"SUBMIT":"CANCEL",src:"interact-outside",focusable:i})}})}},actions:{restoreFocus({event:e,scope:t,prop:r}){e.focusable||_(()=>{(r("finalFocusEl")?.()??kR(t))?.focus({preventScroll:!0})})},clearValue({context:e}){e.set("value","")},focusInputIfNeeded({action:e,prop:t}){(t("edit")||t("defaultEdit"))&&e(["focusInput"])},focusInput({scope:e,prop:t}){_(()=>{const r=Xn(e);r&&(t("selectOnFocus")?r.select():r.focus({preventScroll:!0}))})},invokeOnCancel({prop:e,context:t}){const r=t.get("previousValue");e("onValueRevert")?.({value:r})},invokeOnSubmit({prop:e,context:t}){const r=t.get("value");e("onValueCommit")?.({value:r})},invokeOnEdit({prop:e}){e("onEditChange")?.({edit:!0})},invokeOnPreview({prop:e}){e("onEditChange")?.({edit:!1})},toggleEditing({prop:e,send:t,event:r}){t({type:e("edit")?"CONTROLLED.EDIT":"CONTROLLED.PREVIEW",previousEvent:r})},syncInputValue({context:e,scope:t}){const r=Xn(t);r&&Wt(r,e.get("value"))},setValue({context:e,prop:t,event:r}){const n=t("maxLength"),o=n!=null?r.value.slice(0,n):r.value;e.set("value",o)},setPreviousValue({context:e}){e.set("previousValue",e.get("value"))},revertValue({context:e}){const t=e.get("previousValue");t&&e.set("value",t)},blurInputIfNeeded({scope:e}){Xn(e)?.blur()}}}};B()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const VR=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o=se(),i={id:t,ids:{label:o?.ids.label,input:o?.ids.control},dir:n,disabled:o?.disabled,invalid:o?.invalid,readOnly:o?.readOnly,required:o?.required,getRootNode:r,...e},s=J(FR,i);return AR(s,te)},Vp=v.forwardRef((e,t)=>{const[r,n]=$()(e,["activationMode","autoResize","defaultEdit","defaultValue","disabled","edit","finalFocusEl","form","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","submitMode","translations","value"]),o=VR(r),i=P(o.getRootProps(),n);return m.jsx(Cp,{value:o,children:m.jsx(C.div,{...i,ref:t})})});Vp.displayName="EditableRoot";const Lp=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(Cp,{value:r,children:m.jsx(C.div,{...o,ref:t})})});Lp.displayName="EditableRootProvider";const Dp=v.forwardRef((e,t)=>{const r=mt(),n=P(r.getSubmitTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Dp.displayName="EditableSubmitTrigger";const $p=q("fieldset").parts("root","errorText","helperText","legend");$p.build();const[Mp,xe]=j({name:"FileUploadContext",hookName:"useFileUploadContext",providerName:"<FileUploadProvider />"}),_p=v.forwardRef((e,t)=>{const r=xe(),n=P(r.getClearTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});_p.displayName="FileUploadClearTrigger";const LR=e=>e.children(xe()),jp=v.forwardRef((e,t)=>{const[r,n]=$()(e,["disableClick"]),o=xe(),i=P(o.getDropzoneProps(r),n);return m.jsx(C.div,{...i,ref:t})});jp.displayName="FileUploadDropzone";const Gp=v.forwardRef((e,t)=>{const r=xe(),n=P(r.getHiddenInputProps(),e),o=se();return m.jsx(C.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});Gp.displayName="FileUploadHiddenInput";const[DR,xn]=j({name:"FileUploadItemPropsContext",hookName:"useFileUploadItemPropsContext",providerName:"<FileUploadItemPropsProvider />"}),Bp=v.forwardRef((e,t)=>{const[r,n]=$()(e,["file"]),o=xe(),i=P(o.getItemProps(r),n);return m.jsx(DR,{value:r,children:m.jsx(C.li,{...i,ref:t})})});Bp.displayName="FileUploadItem";const Up=v.forwardRef((e,t)=>{const r=xe(),n=xn(),o=P(r.getItemDeleteTriggerProps(n),e);return m.jsx(C.button,{...o,ref:t})});Up.displayName="FileUploadItemDeleteTrigger";const Hp=v.forwardRef((e,t)=>{const r=xe(),n=P(r.getItemGroupProps(),e);return m.jsx(C.ul,{...n,ref:t})});Hp.displayName="FileUploadItemGroup";const Wp=v.forwardRef((e,t)=>{const{children:r,...n}=e,o=xe(),i=xn(),s=P(o.getItemNameProps(i),n);return m.jsx(C.div,{...s,ref:t,children:r||i.file.name})});Wp.displayName="FileUploadItemName";const qp=v.forwardRef((e,t)=>{const r=xe(),n=xn(),o=P(r.getItemPreviewProps(n),e);return n.file.type.match(e.type??".*")?m.jsx(C.div,{...o,ref:t}):null});qp.displayName="FileUploadItemPreview";const Kp=v.forwardRef((e,t)=>{const[r,n]=v.useState(""),o=xe(),i=xn(),s=P(o.getItemPreviewImageProps({...i,url:r}),e);return v.useEffect(()=>o.createFileUrl(i.file,a=>n(a)),[i,o]),r?m.jsx(C.img,{...s,ref:t}):null});Kp.displayName="FileUploadItemPreviewImage";const zp=v.forwardRef((e,t)=>{const{children:r,...n}=e,o=xe(),i=xn(),s=P(o.getItemSizeTextProps(i),n);return m.jsx(C.div,{...s,ref:t,children:r||o.getFileSize(i.file)})});zp.displayName="FileUploadItemSizeText";const Yp=v.forwardRef((e,t)=>{const r=xe(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});Yp.displayName="FileUploadLabel";var Xp=q("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger"),De=Xp.build(),Zp=e=>e.ids?.root??`file:${e.id}`,Jp=e=>e.ids?.dropzone??`file:${e.id}:dropzone`,fs=e=>e.ids?.hiddenInput??`file:${e.id}:input`,$R=e=>e.ids?.trigger??`file:${e.id}:trigger`,MR=e=>e.ids?.label??`file:${e.id}:label`,_R=(e,t)=>e.ids?.item?.(t)??`file:${e.id}:item:${t}`,jR=(e,t)=>e.ids?.itemName?.(t)??`file:${e.id}:item-name:${t}`,GR=(e,t)=>e.ids?.itemSizeText?.(t)??`file:${e.id}:item-size:${t}`,BR=(e,t)=>e.ids?.itemPreview?.(t)??`file:${e.id}:item-preview:${t}`,UR=e=>e.getById(Zp(e)),Nl=e=>e.getById(fs(e)),HR=e=>e.getById(Jp(e));function kl(e){const t=ce(e);return e.dataTransfer?e.dataTransfer.types.some(r=>r==="Files"||r==="application/x-moz-file"):!!t&&"files"in t}function WR(e,t){const{context:r,prop:n,computed:o}=e;return!o("multiple")&&t>1?!1:!o("multiple")&&t+r.get("acceptedFiles").length===2?!0:!(t+r.get("acceptedFiles").length>n("maxFiles"))}function qR(e,t){const{context:r,prop:n,computed:o}=e,i=[],s=[];return t.forEach(a=>{const[l,u]=hI(a,o("acceptAttr")),[p,g]=fI(a,n("minFileSize"),n("maxFileSize")),c=n("validate")?.(a,{acceptedFiles:r.get("acceptedFiles"),rejectedFiles:r.get("rejectedFiles")}),d=c?c.length===0:!0;if(l&&p&&d)i.push(a);else{const f=[u,g];d||f.push(...c??[]),s.push({file:a,errors:f.filter(Boolean)})}}),WR(e,i.length)||(i.forEach(a=>{s.push({file:a,errors:["TOO_MANY_FILES"]})}),i.splice(0)),{acceptedFiles:i,rejectedFiles:s}}function KR(e,t){const r=ie(e);try{if("DataTransfer"in r){const n=new r.DataTransfer;t.forEach(o=>{n.items.add(o)}),e.files=n.files}}catch{}}function zR(e,t){const{state:r,send:n,prop:o,computed:i,scope:s,context:a}=e,l=o("disabled"),u=o("allowDrop"),p=o("translations"),g=r.matches("dragging"),c=r.matches("focused")&&!l;return{dragging:g,focused:c,disabled:!!l,openFilePicker(){l||n({type:"OPEN"})},deleteFile(d){n({type:"FILE.DELETE",file:d})},acceptedFiles:a.get("acceptedFiles"),rejectedFiles:a.get("rejectedFiles"),setFiles(d){const f=d.length;n({type:"FILES.SET",files:d,count:f})},clearRejectedFiles(){n({type:"REJECTED_FILES.CLEAR"})},clearFiles(){n({type:"FILES.CLEAR"})},getFileSize(d){return Ud(d.size,o("locale"))},createFileUrl(d,f){const h=s.getWin(),I=h.URL.createObjectURL(d);return f(I),()=>h.URL.revokeObjectURL(I)},setClipboardFiles(d){if(l)return!1;const h=Array.from(d?.items??[]).reduce((I,T)=>{if(T.kind!=="file")return I;const S=T.getAsFile();return S?[...I,S]:I},[]);return h.length?(n({type:"FILES.SET",files:h}),!0):!1},getRootProps(){return t.element({...De.root.attrs,dir:o("dir"),id:Zp(s),"data-disabled":E(l),"data-dragging":E(g)})},getDropzoneProps(d={}){return t.element({...De.dropzone.attrs,dir:o("dir"),id:Jp(s),tabIndex:l||d.disableClick?void 0:0,role:d.disableClick?"application":"button","aria-label":p.dropzone,"aria-disabled":l,"data-invalid":E(o("invalid")),"data-disabled":E(l),"data-dragging":E(g),onKeyDown(f){l||f.defaultPrevented||cn(f)&&(d.disableClick||f.key!=="Enter"&&f.key!==" "||n({type:"DROPZONE.CLICK",src:"keydown"}))},onClick(f){l||f.defaultPrevented||d.disableClick||cn(f)&&(f.currentTarget.localName==="label"&&f.preventDefault(),n({type:"DROPZONE.CLICK"}))},onDragOver(f){if(l||!u)return;f.preventDefault(),f.stopPropagation();try{f.dataTransfer.dropEffect="copy"}catch{}if(!kl(f))return;const I=f.dataTransfer.items.length;n({type:"DROPZONE.DRAG_OVER",count:I})},onDragLeave(f){l||u&&(Ae(f.currentTarget,f.relatedTarget)||n({type:"DROPZONE.DRAG_LEAVE"}))},onDrop(f){if(l)return;u&&(f.preventDefault(),f.stopPropagation());const h=kl(f);l||!h||lI(f.dataTransfer.items,o("directory")).then(I=>{n({type:"DROPZONE.DROP",files:zc(I)})})},onFocus(){l||n({type:"DROPZONE.FOCUS"})},onBlur(){l||n({type:"DROPZONE.BLUR"})}})},getTriggerProps(){return t.button({...De.trigger.attrs,dir:o("dir"),id:$R(s),disabled:l,"data-disabled":E(l),"data-invalid":E(o("invalid")),type:"button",onClick(d){l||(Ae(HR(s),d.currentTarget)&&d.stopPropagation(),n({type:"OPEN"}))}})},getHiddenInputProps(){return t.input({id:fs(s),tabIndex:-1,disabled:l,type:"file",required:o("required"),capture:o("capture"),name:o("name"),accept:i("acceptAttr"),webkitdirectory:o("directory")?"":void 0,multiple:i("multiple")||o("maxFiles")>1,onClick(d){d.stopPropagation(),d.currentTarget.value=""},onInput(d){if(l)return;const{files:f}=d.currentTarget;n({type:"FILES.SET",files:f?Array.from(f):[]})},style:qt})},getItemGroupProps(){return t.element({...De.itemGroup.attrs,dir:o("dir"),"data-disabled":E(l)})},getItemProps(d){const{file:f}=d;return t.element({...De.item.attrs,dir:o("dir"),id:_R(s,f.name),"data-disabled":E(l)})},getItemNameProps(d){const{file:f}=d;return t.element({...De.itemName.attrs,dir:o("dir"),id:jR(s,f.name),"data-disabled":E(l)})},getItemSizeTextProps(d){const{file:f}=d;return t.element({...De.itemSizeText.attrs,dir:o("dir"),id:GR(s,f.name),"data-disabled":E(l)})},getItemPreviewProps(d){const{file:f}=d;return t.element({...De.itemPreview.attrs,dir:o("dir"),id:BR(s,f.name),"data-disabled":E(l)})},getItemPreviewImageProps(d){const{file:f,url:h}=d;if(!f.type.startsWith("image/"))throw new Error("Preview Image is only supported for image files");return t.img({...De.itemPreviewImage.attrs,alt:p.itemPreview?.(f),src:h,"data-disabled":E(l)})},getItemDeleteTriggerProps(d){const{file:f}=d;return t.button({...De.itemDeleteTrigger.attrs,dir:o("dir"),type:"button",disabled:l,"data-disabled":E(l),"aria-label":p.deleteFile?.(f),onClick(){l||n({type:"FILE.DELETE",file:f})}})},getLabelProps(){return t.label({...De.label.attrs,dir:o("dir"),id:MR(s),htmlFor:fs(s),"data-disabled":E(l)})},getClearTriggerProps(){return t.button({...De.clearTrigger.attrs,dir:o("dir"),type:"button",disabled:l,hidden:a.get("acceptedFiles").length===0,"data-disabled":E(l),onClick(d){d.defaultPrevented||l||n({type:"FILES.CLEAR"})}})}}}var YR={props({props:e}){return{minFileSize:0,maxFileSize:Number.POSITIVE_INFINITY,maxFiles:1,allowDrop:!0,preventDocumentDrop:!0,...e,translations:{dropzone:"dropzone",itemPreview:t=>`preview of ${t.name}`,deleteFile:t=>`delete file ${t.name}`,...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getContext:r}){return{acceptedFiles:t(()=>({defaultValue:[],isEqual:(n,o)=>n.length===o?.length&&n.every((i,s)=>yl(i,o[s])),hash(n){return n.map(o=>`${o.name}-${o.size}`).join(",")},onChange(n){const o=r();e("onFileAccept")?.({files:n}),e("onFileChange")?.({acceptedFiles:n,rejectedFiles:o.get("rejectedFiles")})}})),rejectedFiles:t(()=>({defaultValue:[],isEqual:(n,o)=>n.length===o?.length&&n.every((i,s)=>yl(i.file,o[s].file)),onChange(n){const o=r();e("onFileReject")?.({files:n}),e("onFileChange")?.({acceptedFiles:o.get("acceptedFiles"),rejectedFiles:n})}}))}},computed:{acceptAttr:({prop:e})=>pI(e("accept")),multiple:({prop:e})=>e("maxFiles")>1},watch({track:e,context:t,action:r}){e([()=>t.hash("acceptedFiles")],()=>{r(["syncInputElement"])})},on:{"FILES.SET":{actions:["setFilesFromEvent"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},effects:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":{target:"focused"},"DROPZONE.DRAG_OVER":{target:"dragging"}}},focused:{on:{"DROPZONE.BLUR":{target:"idle"},OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":{target:"dragging"}}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setFilesFromEvent"]},"DROPZONE.DRAG_LEAVE":{target:"idle"}}}},implementations:{effects:{preventDocumentDrop({prop:e,scope:t}){if(!e("preventDocumentDrop")||!e("allowDrop")||e("disabled"))return;const r=t.getDoc(),n=i=>{i?.preventDefault()},o=i=>{Ae(UR(t),ce(i))||i.preventDefault()};return pn(W(r,"dragover",n,!1),W(r,"drop",o,!1))}},actions:{syncInputElement({scope:e,context:t}){queueMicrotask(()=>{const r=Nl(e);if(!r)return;KR(r,t.get("acceptedFiles"));const n=e.getWin();r.dispatchEvent(new n.Event("change",{bubbles:!0}))})},openFilePicker({scope:e}){_(()=>{Nl(e)?.click()})},setFilesFromEvent(e){const{computed:t,context:r,event:n}=e,o=qR(e,n.files),{acceptedFiles:i,rejectedFiles:s}=o;if(t("multiple")){r.set("acceptedFiles",a=>[...a,...i]),r.set("rejectedFiles",s);return}if(i.length){const a=[i[0]];r.set("acceptedFiles",a),r.set("rejectedFiles",s)}else s.length&&(r.set("acceptedFiles",r.get("acceptedFiles")),r.set("rejectedFiles",s))},removeFile({context:e,event:t}){const r=e.get("acceptedFiles").filter(o=>o!==t.file),n=e.get("rejectedFiles").filter(o=>o.file!==t.file);e.set("acceptedFiles",r),e.set("rejectedFiles",n)},clearRejectedFiles({context:e}){e.set("acceptedFiles",e.get("acceptedFiles")),e.set("rejectedFiles",[])},clearFiles({context:e}){e.set("acceptedFiles",[]),e.set("rejectedFiles",[])}}}};B()(["accept","allowDrop","capture","dir","directory","disabled","getRootNode","id","ids","locale","maxFiles","maxFileSize","minFileSize","name","invalid","onFileAccept","onFileReject","onFileChange","preventDocumentDrop","required","translations","validate"]);B()(["file"]);const XR=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n,locale:o}=Q(),i=se(),s={id:t,ids:{label:i?.ids.label,hiddenInput:i?.ids.control},dir:n,disabled:i?.disabled,locale:o,required:i?.required,invalid:i?.invalid,getRootNode:r,...e},a=J(YR,s);return zR(a,te)},Qp=v.forwardRef((e,t)=>{const[r,n]=$()(e,["accept","allowDrop","capture","directory","disabled","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","translations","validate"]),o=XR(r),i=P(o.getRootProps(),n);return m.jsx(Mp,{value:o,children:m.jsx(C.div,{...i,ref:t})})});Qp.displayName="FileUploadRoot";const ef=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(Mp,{value:r,children:m.jsx(C.div,{...o,ref:t})})});ef.displayName="FileUploadRootProvider";const tf=v.forwardRef((e,t)=>{const r=xe(),n=P(r.getTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});tf.displayName="FileUploadTrigger";var rf=(e,t)=>{const r=[],n=(o,i,s)=>{i-o>0&&r.push({start:o,end:i,match:s})};if(e.length===0)n(0,t,!1);else{let o=0;for(const i of e)n(o,i.start,!1),n(i.start,i.end,!0),o=i.end;n(o,t,!1)}return r};function ZR(e){const{text:t,query:r,ignoreCase:n}=e,o=n?t.toLowerCase():t,i=n&&typeof r=="string"?r.toLowerCase():r,s=typeof o=="string"?o.indexOf(i):-1;if(s===-1)return[{text:t,match:!1}];const a=s+i.length;return rf([{start:s,end:a}],t.length).map(u=>({text:t.slice(u.start,u.end),match:!!u.match}))}var JR=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,t=>`\\${t}`),QR=(e,t)=>{const r=e.filter(Boolean).map(n=>JR(n));return new RegExp(`(${r.join("|")})`,t)},eS=(e,t=!0)=>`${e?"i":""}${t?"g":""}`;function tS(e){const{text:t,query:r,ignoreCase:n,matchAll:o}=e;if(r.length===0)return[{text:t,match:!1}];const i=eS(n,o),s=QR(Array.isArray(r)?r:[r],i),a=[...t.matchAll(s)].map(l=>({start:l.index||0,end:(l.index||0)+l[0].length}));return rf(a,e.text.length).map(l=>({text:e.text.slice(l.start,l.end),match:!!l.match}))}var rS=e=>{if(e.matchAll==null&&(e.matchAll=Array.isArray(e.query)),!e.matchAll&&Array.isArray(e.query))throw new Error("matchAll must be true when using multiple queries");return e.matchAll?tS(e):ZR(e)};const nS=e=>v.useMemo(()=>rS(e),[e]),[nf,Xt]=j({name:"HoverCardContext",hookName:"useHoverCardContext",providerName:"<HoverCardProvider />"}),of=v.forwardRef((e,t)=>{const r=Xt(),n=P(r.getArrowProps(),e);return m.jsx(C.div,{...n,ref:t})});of.displayName="HoverCardArrow";const sf=v.forwardRef((e,t)=>{const r=Xt(),n=P(r.getArrowTipProps(),e);return m.jsx(C.div,{...n,ref:t})});sf.displayName="HoverCardArrowTip";const af=v.forwardRef((e,t)=>{const r=Xt(),n=ve(),o=P(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:m.jsx(C.div,{...o,ref:Fe(n.ref,t)})});af.displayName="HoverCardContent";const oS=e=>e.children(Xt()),lf=v.forwardRef((e,t)=>{const r=Xt(),n=P(r.getPositionerProps(),e);return ve().unmounted?null:m.jsx(C.div,{...n,ref:t})});lf.displayName="HoverCardPositioner";var cf=q("hoverCard").parts("arrow","arrowTip","trigger","positioner","content"),_r=cf.build(),uf=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,df=e=>e.ids?.content??`hover-card:${e.id}:content`,gf=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,iS=e=>e.ids?.arrow??`hover-card:${e.id}:arrow`,Ai=e=>e.getById(uf(e)),sS=e=>e.getById(df(e)),Al=e=>e.getById(gf(e));function aS(e,t){const{state:r,send:n,prop:o,context:i,scope:s}=e,a=r.hasTag("open"),l=br({...o("positioning"),placement:i.get("currentPlacement")});return{open:a,setOpen(u){r.hasTag("open")!==u&&n({type:u?"OPEN":"CLOSE"})},reposition(u={}){n({type:"POSITIONING.SET",options:u})},getArrowProps(){return t.element({id:iS(s),..._r.arrow.attrs,dir:o("dir"),style:l.arrow})},getArrowTipProps(){return t.element({..._r.arrowTip.attrs,dir:o("dir"),style:l.arrowTip})},getTriggerProps(){return t.element({..._r.trigger.attrs,dir:o("dir"),"data-placement":i.get("currentPlacement"),id:uf(s),"data-state":a?"open":"closed",onPointerEnter(u){u.pointerType!=="touch"&&n({type:"POINTER_ENTER",src:"trigger"})},onPointerLeave(u){u.pointerType!=="touch"&&n({type:"POINTER_LEAVE",src:"trigger"})},onFocus(){n({type:"TRIGGER_FOCUS"})},onBlur(){n({type:"TRIGGER_BLUR"})}})},getPositionerProps(){return t.element({id:gf(s),..._r.positioner.attrs,dir:o("dir"),style:l.floating})},getContentProps(){return t.element({..._r.content.attrs,dir:o("dir"),id:df(s),hidden:!a,tabIndex:-1,"data-state":a?"open":"closed","data-placement":i.get("currentPlacement"),onPointerEnter(u){u.pointerType!=="touch"&&n({type:"POINTER_ENTER",src:"content"})},onPointerLeave(u){u.pointerType!=="touch"&&n({type:"POINTER_LEAVE",src:"content"})}})}}}var{not:Zn,and:Fl}=je(),lS={props({props:e}){return{openDelay:700,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({prop:e,bindable:t}){return{open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(r){e("onOpenChange")?.({open:r})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,action:r}){e([()=>t.get("open")],()=>{r(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:Fl("isOpenControlled",Zn("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:Zn("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:Fl("isOpenControlled",Zn("isPointer")),actions:["invokeOnClose"]},{guard:Zn("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>e("open")!=null},effects:{waitForOpenDelay({send:e,prop:t}){const r=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(r)},waitForCloseDelay({send:e,prop:t}){const r=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(r)},trackPositioning({context:e,prop:t,scope:r}){e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const n=()=>Al(r);return ze(Ai(r),n,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},trackDismissableElement({send:e,scope:t,prop:r}){return Pr(()=>sS(t),{defer:!0,exclude:[Ai(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:r("onInteractOutside"),onPointerDownOutside:r("onPointerDownOutside"),onFocusOutside(o){o.preventDefault(),r("onFocusOutside")?.(o)}})}},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:r,event:n}){const o=()=>Al(r);ze(Ai(r),o,{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(i){e.set("currentPlacement",i.placement)}})},toggleVisibility({prop:e,event:t,send:r}){queueMicrotask(()=>{r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}};B()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);const cS=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(lS,o);return aS(i,te)},uS=e=>{const[t,{children:r,...n}]=Te(e),o=cS(n),i=ye(P({present:o.open},t));return m.jsx(nf,{value:o,children:m.jsx(Ie,{value:i,children:r})})},dS=e=>{const[t,{value:r,children:n}]=Te(e),o=ye(P({present:r.open},t));return m.jsx(nf,{value:r,children:m.jsx(Ie,{value:o,children:n})})},pf=v.forwardRef((e,t)=>{const r=Xt(),n=P(r.getTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});pf.displayName="HoverCardTrigger";const[ff,kt]=j({name:"NumberInputContext",hookName:"useNumberInputContext",providerName:"<NumberInputProvider />"}),gS=e=>e.children(kt()),mf=v.forwardRef((e,t)=>{const r=kt(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});mf.displayName="NumberInputControl";const hf=v.forwardRef((e,t)=>{const r=kt(),n=P(r.getDecrementTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});hf.displayName="NumberInputDecrementTrigger";const vf=v.forwardRef((e,t)=>{const r=kt(),n=P(r.getIncrementTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});vf.displayName="NumberInputIncrementTrigger";const yf=v.forwardRef((e,t)=>{const r=kt(),n=P(r.getInputProps(),e),o=se();return m.jsx(C.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});yf.displayName="NumberInputInput";const bf=v.forwardRef((e,t)=>{const r=kt(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});bf.displayName="NumberInputLabel";let Fi=new Map,ms=!1;try{ms=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let $o=!1;try{$o=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Pf={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class pS{format(t){let r="";if(!ms&&this.options.signDisplay!=null?r=mS(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!$o){var n;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return r;let a=(n=Pf[o])===null||n===void 0?void 0:n[i];r+=a[s]||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)} – ${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 n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ms&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!$o&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=fS(t,r),this.options=r}}function fS(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!$o){var n;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Pf[s])===null||n===void 0)&&n[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(Fi.has(o))return Fi.get(o);let i=new Intl.NumberFormat(e,t);return Fi.set(o,i),i}function mS(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(r)}}const hS=new RegExp("^.*\\(.*\\).*$"),vS=["latn","arab","hanidec","deva","beng"];class Ef{parse(t){return Vi(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return Vi(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return Vi(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const Vl=new Map;function Vi(e,t,r){let n=Ll(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of vS)if(o!==n.options.numberingSystem){let i=Ll(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function Ll(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=Vl.get(r);return n||(n=new yS(e,t),Vl.set(r,n)),n}class yS{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=jr(r,this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=r.indexOf("-");r=r.replace("-","");let a=r.indexOf(".");a===-1&&(a=r.length),r=r.replace(".",""),a-2===0?r=`0.${r}`:a-2===-1?r=`0.0${r}`:a-2===-2?r="0.00":r=`${r.slice(0,a-2)}.${r.slice(a-2)}`,s>-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){var o,i;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new Ef(this.locale,s).parse(new pS(this.locale,s).format(n))}return this.options.currencySign==="accounting"&&hS.test(t)&&(n=-1*n),n}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=jr(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=jr(t," ",this.symbols.group),t=jr(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,r=-1/0,n=1/0){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)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=jr(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=PS(t,this.formatter,this.options,r);var n,o;this.options.style==="percent"&&(((n=this.options.minimumFractionDigits)!==null&&n!==void 0?n:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Dl=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),bS=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function PS(e,t,r,n){var o,i,s,a;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=l.formatToParts(-10000.111),p=l.formatToParts(10000.111),g=bS.map(F=>l.formatToParts(F));var c;let d=(c=(o=u.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&c!==void 0?c:"-",f=(i=p.find(F=>F.type==="plusSign"))===null||i===void 0?void 0:i.value;!f&&(n?.signDisplay==="exceptZero"||n?.signDisplay==="always")&&(f="+");let I=(s=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||s===void 0?void 0:s.value,T=(a=u.find(F=>F.type==="group"))===null||a===void 0?void 0:a.value,S=u.filter(F=>!Dl.has(F.type)).map(F=>$l(F.value)),x=g.flatMap(F=>F.filter(A=>!Dl.has(A.type)).map(A=>$l(A.value))),b=[...new Set([...S,...x])].sort((F,A)=>A.length-F.length),y=b.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${b.join("|")}|[\\p{White_Space}]`,"gu"),R=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),O=new Map(R.map((F,A)=>[F,A])),w=new RegExp(`[${R.join("")}]`,"g");return{minusSign:d,plusSign:f,decimal:I,group:T,literals:y,numeral:w,index:F=>String(O.get(F))}}function jr(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function $l(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Cf=q("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber"),yt=Cf.build(),ES=e=>e.ids?.root??`number-input:${e.id}`,Jr=e=>e.ids?.input??`number-input:${e.id}:input`,If=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,Tf=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,CS=e=>e.ids?.scrubber??`number-input:${e.id}:scrubber`,Rf=e=>`number-input:${e.id}:cursor`,IS=e=>e.ids?.label??`number-input:${e.id}:label`,Qr=e=>e.getById(Jr(e)),TS=e=>e.getById(If(e)),RS=e=>e.getById(Tf(e)),Sf=e=>e.getDoc().getElementById(Rf(e)),SS=(e,t)=>{let r=null;return t==="increment"&&(r=TS(e)),t==="decrement"&&(r=RS(e)),r},OS=(e,t)=>{if(!Ht())return NS(e,t),()=>{Sf(e)?.remove()}},xS=e=>{const t=e.getDoc(),r=t.documentElement,n=t.body;return n.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{n.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),n.style.length||n.removeAttribute("style")}},wS=(e,t)=>{const{point:r,isRtl:n,event:o}=t,i=e.getWin(),s=rn(o.movementX,i.devicePixelRatio),a=rn(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;n&&l==="increment"&&(l="decrement"),n&&l==="decrement"&&(l="increment");const u={x:r.x+s,y:r.y+a},p=i.innerWidth,g=rn(7.5,i.devicePixelRatio);return u.x=Ub(u.x+g,p)-g,{hint:l,point:u}},NS=(e,t)=>{const r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=Rf(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:Ic,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=`
|
|
58
|
-
<svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
|
|
59
|
-
<g transform="translate(2 3)">
|
|
60
|
-
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
|
|
61
|
-
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
|
|
62
|
-
</g>
|
|
63
|
-
</svg>`,r.body.appendChild(n)};function kS(e,t){const{state:r,send:n,prop:o,scope:i,computed:s}=e,a=r.hasTag("focus"),l=s("isDisabled"),u=o("readOnly"),p=s("isValueEmpty"),g=s("isOutOfRange")||!!o("invalid"),c=l||!s("canIncrement")||u,d=l||!s("canDecrement")||u,f=o("translations");return{focused:a,invalid:g,empty:p,value:s("formattedValue"),valueAsNumber:s("valueAsNumber"),setValue(h){n({type:"VALUE.SET",value:h})},clearValue(){n({type:"VALUE.CLEAR"})},increment(){n({type:"VALUE.INCREMENT"})},decrement(){n({type:"VALUE.DECREMENT"})},setToMax(){n({type:"VALUE.SET",value:o("max")})},setToMin(){n({type:"VALUE.SET",value:o("min")})},focus(){Qr(i)?.focus()},getRootProps(){return t.element({id:ES(i),...yt.root.attrs,dir:o("dir"),"data-disabled":E(l),"data-focus":E(a),"data-invalid":E(g)})},getLabelProps(){return t.label({...yt.label.attrs,dir:o("dir"),"data-disabled":E(l),"data-focus":E(a),"data-invalid":E(g),id:IS(i),htmlFor:Jr(i)})},getControlProps(){return t.element({...yt.control.attrs,dir:o("dir"),role:"group","aria-disabled":l,"data-focus":E(a),"data-disabled":E(l),"data-invalid":E(g),"aria-invalid":Me(g)})},getValueTextProps(){return t.element({...yt.valueText.attrs,dir:o("dir"),"data-disabled":E(l),"data-invalid":E(g),"data-focus":E(a)})},getInputProps(){return t.input({...yt.input.attrs,dir:o("dir"),name:o("name"),form:o("form"),id:Jr(i),role:"spinbutton",defaultValue:s("formattedValue"),pattern:o("pattern"),inputMode:o("inputMode"),"aria-invalid":Me(g),"data-invalid":E(g),disabled:l,"data-disabled":E(l),readOnly:u,required:o("required"),autoComplete:"off",autoCorrect:"off",spellCheck:"false",type:"text","aria-roledescription":"numberfield","aria-valuemin":o("min"),"aria-valuemax":o("max"),"aria-valuenow":Number.isNaN(s("valueAsNumber"))?void 0:s("valueAsNumber"),"aria-valuetext":s("valueText"),onFocus(){n({type:"INPUT.FOCUS"})},onBlur(){n({type:"INPUT.BLUR"})},onInput(h){n({type:"INPUT.CHANGE",target:h.currentTarget,hint:"set"})},onBeforeInput(h){try{const{selectionStart:I,selectionEnd:T,value:S}=h.currentTarget,x=S.slice(0,I)+(h.data??"")+S.slice(T);s("parser").isValidPartialNumber(x)||h.preventDefault()}catch{}},onKeyDown(h){if(h.defaultPrevented||u||Pn(h))return;const I=To(h)*o("step"),S={ArrowUp(){n({type:"INPUT.ARROW_UP",step:I}),h.preventDefault()},ArrowDown(){n({type:"INPUT.ARROW_DOWN",step:I}),h.preventDefault()},Home(){Gt(h)||(n({type:"INPUT.HOME"}),h.preventDefault())},End(){Gt(h)||(n({type:"INPUT.END"}),h.preventDefault())},Enter(){n({type:"INPUT.ENTER"})}}[h.key];S?.(h)}})},getDecrementTriggerProps(){return t.button({...yt.decrementTrigger.attrs,dir:o("dir"),id:Tf(i),disabled:d,"data-disabled":E(d),"aria-label":f.decrementLabel,type:"button",tabIndex:-1,"aria-controls":Jr(i),onPointerDown(h){d||!pr(h)||(n({type:"TRIGGER.PRESS_DOWN",hint:"decrement",pointerType:h.pointerType}),h.pointerType==="mouse"&&h.preventDefault(),h.pointerType==="touch"&&h.currentTarget?.focus({preventScroll:!0}))},onPointerUp(h){n({type:"TRIGGER.PRESS_UP",hint:"decrement",pointerType:h.pointerType})},onPointerLeave(){d||n({type:"TRIGGER.PRESS_UP",hint:"decrement"})}})},getIncrementTriggerProps(){return t.button({...yt.incrementTrigger.attrs,dir:o("dir"),id:If(i),disabled:c,"data-disabled":E(c),"aria-label":f.incrementLabel,type:"button",tabIndex:-1,"aria-controls":Jr(i),onPointerDown(h){c||!pr(h)||(n({type:"TRIGGER.PRESS_DOWN",hint:"increment",pointerType:h.pointerType}),h.pointerType==="mouse"&&h.preventDefault(),h.pointerType==="touch"&&h.currentTarget?.focus({preventScroll:!0}))},onPointerUp(h){n({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:h.pointerType})},onPointerLeave(h){n({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:h.pointerType})}})},getScrubberProps(){return t.element({...yt.scrubber.attrs,dir:o("dir"),"data-disabled":E(l),id:CS(i),role:"presentation",onMouseDown(h){if(l)return;const I=He(h),S=ie(h.currentTarget).devicePixelRatio;I.x=I.x-rn(7.5,S),I.y=I.y-rn(7.5,S),n({type:"SCRUBBER.PRESS_DOWN",point:I}),h.preventDefault()},style:{cursor:l?void 0:"ew-resize"}})}}}function AS(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:r,value:n}=e,o=n.substring(0,t),i=n.substring(r);return{start:t,end:r,value:n,beforeTxt:o,afterTxt:i}}catch{}}function FS(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:r}=e,{beforeTxt:n="",afterTxt:o="",start:i}=t;let s=r.length;if(r.endsWith(o))s=r.length-o.length;else if(r.startsWith(n))s=n.length;else if(i!=null){const a=n[i-1],l=r.indexOf(a,i-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var VS=(e,t={})=>new Intl.NumberFormat(e,t),LS=(e,t={})=>new Ef(e,t),Li=(e,t)=>{const{prop:r,computed:n}=t;return r("formatOptions")?n("parser").parse(String(e)):parseFloat(e)},Lt=(e,t)=>{const{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},DS=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r},{choose:$S,guards:MS,createMachine:_S}=ou(),{not:Ml,and:_l}=MS,jS=_S({props({props:e}){const t=DS(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){const o=r(),i=Li(n,{computed:o,prop:e});e("onValueChange")?.({value:n,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(n){return n?`x:${n.x}, y:${n.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:r})=>Li(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>Lt(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Kb(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>qb(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Qc(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:Oo(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>VS(e,t)),parser:Oo(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>LS(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:_l("clampValueOnBlur",Ml("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:Ml("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:$S([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:_l("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const r=Qr(t);return Nt(r,{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const r=e.get("scrubberCursorPoint");return OS(t,r)},preventTextSelection({scope:e}){return xS(e)},trackButtonDisabled({context:e,scope:t,send:r}){const n=e.get("hint"),o=SS(t,n);return Jo(o,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){const n=Qr(e);if(!n||!e.isActiveElement(n)||!r("allowMouseWheel"))return;function o(i){i.preventDefault();const s=Math.sign(i.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return W(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Ht())return ob(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){const o=e.getDoc();function i(a){const l=r.get("scrubberCursorPoint"),u=n("isRtl"),p=wS(e,{point:l,isRtl:u,event:a});p.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:p.hint,point:p.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return pn(W(o,"mousemove",i,!1),W(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=Qr(e);e.isActiveElement(r)||_(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=Jb(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=me(o,r("min"),r("max"))),e.set("value",Lt(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=Qb(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=me(o,r("min"),r("max"))),e.set("value",Lt(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const n=me(r("valueAsNumber"),t("min"),t("max"));e.set("value",Lt(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=Li(t.value,{computed:n,prop:r});r("allowOverflow")||(o=me(o,r("min"),r("max"))),e.set("value",Lt(o,{computed:n,prop:r}))},setValue({context:e,event:t}){const r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const n=Lt(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){const n=Lt(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if(r.type==="INPUT.CHANGE")return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){const o=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),i=Qr(n),s=AS(i);_(()=>{Wt(i,o),FS(i,s)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const r=Sf(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});B()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);const GS=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n,locale:o}=Q(),i=se(),s={id:t,ids:{label:i?.ids.label,input:i?.ids.control},disabled:i?.disabled,readOnly:i?.readOnly,required:i?.required,invalid:i?.invalid,dir:n,locale:o,getRootNode:r,...e},a=J(jS,s);return kS(a,te)},Of=v.forwardRef((e,t)=>{const[r,n]=$()(e,["allowMouseWheel","allowOverflow","clampValueOnBlur","defaultValue","disabled","focusInputOnChange","form","formatOptions","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","readOnly","required","spinOnPress","step","translations","value"]),o=GS(r),i=P(o.getRootProps(),n);return m.jsx(ff,{value:o,children:m.jsx(C.div,{...i,ref:t})})});Of.displayName="NumberInputRoot";const xf=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(ff,{value:r,children:m.jsx(C.div,{...o,ref:t})})});xf.displayName="NumberInputRootProvider";const wf=v.forwardRef((e,t)=>{const r=kt(),n=P(r.getScrubberProps(),e);return m.jsx(C.div,{...n,ref:t})});wf.displayName="NumberInputScrubber";const Nf=v.forwardRef((e,t)=>{const{children:r,...n}=e,o=kt(),i=P(o.getValueTextProps(),n);return m.jsx(C.span,{...i,ref:t,children:r||o.value})});Nf.displayName="NumberInputValueText";const[kf,Ir]=j({name:"PaginationContext",hookName:"usePaginationContext",providerName:"<PaginationProvider />"}),BS=e=>e.children(Ir()),Af=v.forwardRef((e,t)=>{const[r,n]=$()(e,["index"]),o=Ir(),i=P(o.getEllipsisProps(r),n);return m.jsx(C.div,{...i,ref:t})});Af.displayName="PaginationEllipsis";const Ff=v.forwardRef((e,t)=>{const[r,n]=$()(e,["value","type"]),o=Ir(),i=P(o.getItemProps(r),n);return m.jsx(C.button,{...i,ref:t})});Ff.displayName="PaginationItem";const Vf=v.forwardRef((e,t)=>{const r=Ir(),n=P(r.getNextTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Vf.displayName="PaginationNextTrigger";const Lf=v.forwardRef((e,t)=>{const r=Ir(),n=P(r.getPrevTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Lf.displayName="PaginationPrevTrigger";var US=q("pagination").parts("root","item","ellipsis","prevTrigger","nextTrigger"),Gr=US.build(),HS=e=>e.ids?.root??`pagination:${e.id}`,WS=e=>e.ids?.prevTrigger??`pagination:${e.id}:prev`,qS=e=>e.ids?.nextTrigger??`pagination:${e.id}:next`,KS=(e,t)=>e.ids?.ellipsis?.(t)??`pagination:${e.id}:ellipsis:${t}`,zS=(e,t)=>e.ids?.item?.(t)??`pagination:${e.id}:item:${t}`,Jn=(e,t)=>{let r=t-e+1;return Array.from({length:r},(n,o)=>o+e)},YS=e=>e.map(t=>typeof t=="number"?{type:"page",value:t}:{type:"ellipsis"}),Qn="ellipsis",XS=e=>{const{page:t,totalPages:r,siblingCount:n}=e,o=Math.min(2*n+5,r),i=1,s=r,a=Math.max(t-n,i),l=Math.min(t+n,s),u=a>i+1,p=l<s-1,g=o-2;if(!u&&p)return[...Jn(1,g),Qn,s];if(u&&!p){const d=Jn(s-g+1,s);return[i,Qn,...d]}if(u&&p){const d=Jn(a,l);return[i,Qn,...d,Qn,s]}return Jn(i,s)},ZS=e=>YS(XS(e));function JS(e,t){const{send:r,scope:n,prop:o,computed:i,context:s}=e,a=i("totalPages"),l=s.get("page"),u=o("translations"),p=o("count"),g=i("previousPage"),c=i("nextPage"),d=i("pageRange"),h=o("type")==="button",I=l===1,T=l===a,S=ZS({page:l,totalPages:a,siblingCount:o("siblingCount")});return{count:p,page:l,pageSize:s.get("pageSize"),totalPages:a,pages:S,previousPage:g,nextPage:c,pageRange:d,slice(x){return x.slice(d.start,d.end)},setPageSize(x){r({type:"SET_PAGE_SIZE",size:x})},setPage(x){r({type:"SET_PAGE",page:x})},goToNextPage(){r({type:"NEXT_PAGE"})},goToPrevPage(){r({type:"PREVIOUS_PAGE"})},goToFirstPage(){r({type:"FIRST_PAGE"})},goToLastPage(){r({type:"LAST_PAGE"})},getRootProps(){return t.element({id:HS(n),...Gr.root.attrs,dir:o("dir"),"aria-label":u.rootLabel})},getEllipsisProps(x){return t.element({id:KS(n,x.index),...Gr.ellipsis.attrs,dir:o("dir")})},getItemProps(x){const b=x.value,y=b===l;return t.element({id:zS(n,b),...Gr.item.attrs,dir:o("dir"),"data-index":b,"data-selected":E(y),"aria-current":y?"page":void 0,"aria-label":u.itemLabel?.({page:b,totalPages:a}),onClick(){r({type:"SET_PAGE",page:b})},...h&&{type:"button"}})},getPrevTriggerProps(){return t.element({id:WS(n),...Gr.prevTrigger.attrs,dir:o("dir"),"data-disabled":E(I),"aria-label":u.prevTriggerLabel,onClick(){r({type:"PREVIOUS_PAGE"})},...h&&{disabled:I,type:"button"}})},getNextTriggerProps(){return t.element({id:qS(n),...Gr.nextTrigger.attrs,dir:o("dir"),"data-disabled":E(T),"aria-label":u.nextTriggerLabel,onClick(){r({type:"NEXT_PAGE"})},...h&&{disabled:T,type:"button"}})}}}var QS={props({props:e}){return{defaultPageSize:10,siblingCount:1,defaultPage:1,type:"button",count:1,...e,translations:{rootLabel:"pagination",prevTriggerLabel:"previous page",nextTriggerLabel:"next page",itemLabel({page:t,totalPages:r}){return`${r>1&&t===r?"last page, ":""}page ${t}`},...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getContext:r}){return{page:t(()=>({value:e("page"),defaultValue:e("defaultPage"),onChange(n){const o=r();e("onPageChange")?.({page:n,pageSize:o.get("pageSize")})}})),pageSize:t(()=>({value:e("pageSize"),defaultValue:e("defaultPageSize"),onChange(n){e("onPageSizeChange")?.({pageSize:n})}}))}},watch({track:e,context:t,action:r}){e([()=>t.get("pageSize")],()=>{r(["setPageIfNeeded"])})},computed:{totalPages:({context:e,prop:t})=>Math.ceil(t("count")/e.get("pageSize")),previousPage:({context:e})=>e.get("page")===1?null:e.get("page")-1,nextPage:({context:e,computed:t})=>e.get("page")===t("totalPages")?null:e.get("page")+1,pageRange:({context:e,prop:t})=>{const r=(e.get("page")-1)*e.get("pageSize"),n=Math.min(r+e.get("pageSize"),t("count"));return{start:r,end:n}},isValidPage:({context:e,computed:t})=>e.get("page")>=1&&e.get("page")<=t("totalPages")},on:{SET_PAGE:{guard:"isValidPage",actions:["setPage"]},SET_PAGE_SIZE:{actions:["setPageSize"]},FIRST_PAGE:{actions:["goToFirstPage"]},LAST_PAGE:{actions:["goToLastPage"]},PREVIOUS_PAGE:{guard:"canGoToPrevPage",actions:["goToPrevPage"]},NEXT_PAGE:{guard:"canGoToNextPage",actions:["goToNextPage"]}},states:{idle:{}},implementations:{guards:{isValidPage:({event:e,computed:t})=>e.page>=1&&e.page<=t("totalPages"),isValidCount:({context:e,event:t})=>e.get("page")>t.count,canGoToNextPage:({context:e,computed:t})=>e.get("page")<t("totalPages"),canGoToPrevPage:({context:e})=>e.get("page")>1},actions:{setPage({context:e,event:t,computed:r}){const n=Di(t.page,r("totalPages"));e.set("page",n)},setPageSize({context:e,event:t}){e.set("pageSize",t.size)},goToFirstPage({context:e}){e.set("page",1)},goToLastPage({context:e,computed:t}){e.set("page",t("totalPages"))},goToPrevPage({context:e,computed:t}){e.set("page",r=>Di(r-1,t("totalPages")))},goToNextPage({context:e,computed:t}){e.set("page",r=>Di(r+1,t("totalPages")))},setPageIfNeeded({context:e,computed:t}){t("isValidPage")||e.set("page",1)}}}},Di=(e,t)=>Math.min(Math.max(e,1),t);B()(["count","dir","getRootNode","id","ids","onPageChange","onPageSizeChange","page","defaultPage","pageSize","defaultPageSize","siblingCount","translations","type"]);B()(["value","type"]);B()(["index"]);const eO=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(QS,o);return JS(i,te)},Df=v.forwardRef((e,t)=>{const[r,n]=$()(e,["count","defaultPage","defaultPageSize","id","ids","onPageChange","onPageSizeChange","page","pageSize","siblingCount","translations","type"]),o=eO(r),i=P(o.getRootProps(),n);return m.jsx(kf,{value:o,children:m.jsx(C.nav,{...i,ref:t})})});Df.displayName="PaginationRoot";const $f=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(kf,{value:r,children:m.jsx(C.nav,{...o,ref:t})})});$f.displayName="PaginationRootProvider";const[Mf,pi]=j({name:"PinInputContext",hookName:"usePinInputContext",providerName:"<PinInputProvider />"}),_f=v.forwardRef((e,t)=>{const r=pi(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});_f.displayName="PinInputControl";const jf=v.forwardRef((e,t)=>{const r=pi(),n=P(r.getHiddenInputProps(),e),o=se();return m.jsx(C.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});jf.displayName="PinInputHiddenInput";const Gf=v.forwardRef((e,t)=>{const[r,n]=$()(e,["index"]),o=pi(),i=P(o.getInputProps(r),n);return m.jsx(C.input,{...i,ref:t})});Gf.displayName="PinInputInput";const Bf=v.forwardRef((e,t)=>{const r=pi(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});Bf.displayName="PinInputLabel";var Uf=q("pinInput").parts("root","label","input","control"),eo=Uf.build(),sn=e=>e.ids?.root??`pin-input:${e.id}`,tO=(e,t)=>e.ids?.input?.(t)??`pin-input:${e.id}:${t}`,hs=e=>e.ids?.hiddenInput??`pin-input:${e.id}:hidden`,rO=e=>e.ids?.label??`pin-input:${e.id}:label`,nO=e=>e.ids?.control??`pin-input:${e.id}:control`,oO=e=>e.getById(sn(e)),Mo=e=>{const r=`input[data-ownedby=${CSS.escape(sn(e))}]`;return St(oO(e),r)},Br=(e,t)=>Mo(e)[t],iO=e=>Mo(e)[0],jl=e=>e.getById(hs(e)),$i=(e,t)=>{e.value=t,e.setAttribute("value",t)},sO={numeric:/^[0-9]+$/,alphabetic:/^[A-Za-z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i};function aO(e,t){return e?!!sO[e]?.test(t):!0}function lO(e,t,r){return r?new RegExp(r,"g").test(e):aO(t,e)}function cO(e,t){const{send:r,context:n,computed:o,prop:i,scope:s}=e,a=o("isValueComplete"),l=i("invalid"),u=i("translations"),p=n.get("focusedIndex");function g(){iO(s)?.focus()}return{focus:g,count:n.get("count"),items:Array.from({length:n.get("count")}).map((c,d)=>d),value:n.get("value"),valueAsString:o("valueAsString"),complete:a,setValue(c){Array.isArray(c)||rP("[pin-input/setValue] value must be an array"),r({type:"VALUE.SET",value:c})},clearValue(){r({type:"VALUE.CLEAR"})},setValueAtIndex(c,d){r({type:"VALUE.SET",value:d,index:c})},getRootProps(){return t.element({dir:i("dir"),...eo.root.attrs,id:sn(s),"data-invalid":E(l),"data-disabled":E(i("disabled")),"data-complete":E(a),"data-readonly":E(i("readOnly"))})},getLabelProps(){return t.label({...eo.label.attrs,dir:i("dir"),htmlFor:hs(s),id:rO(s),"data-invalid":E(l),"data-disabled":E(i("disabled")),"data-complete":E(a),"data-readonly":E(i("readOnly")),onClick(c){c.preventDefault(),g()}})},getHiddenInputProps(){return t.input({"aria-hidden":!0,type:"text",tabIndex:-1,id:hs(s),readOnly:i("readOnly"),disabled:i("disabled"),required:i("required"),name:i("name"),form:i("form"),style:qt,maxLength:o("valueLength"),defaultValue:o("valueAsString")})},getControlProps(){return t.element({...eo.control.attrs,dir:i("dir"),id:nO(s)})},getInputProps(c){const{index:d}=c,f=i("type")==="numeric"?"tel":"text";return t.input({...eo.input.attrs,dir:i("dir"),disabled:i("disabled"),"data-disabled":E(i("disabled")),"data-complete":E(a),id:tO(s,d.toString()),"data-index":d,"data-ownedby":sn(s),"aria-label":u?.inputLabel?.(d,o("valueLength")),inputMode:i("otp")||i("type")==="numeric"?"numeric":"text","aria-invalid":Me(l),"data-invalid":E(l),type:i("mask")?"password":f,defaultValue:n.get("value")[d]||"",readOnly:i("readOnly"),autoCapitalize:"none",autoComplete:i("otp")?"one-time-code":"off",placeholder:p===d?"":i("placeholder"),onBeforeInput(h){try{const I=Dy(h);lO(I,i("type"),i("pattern"))||(r({type:"VALUE.INVALID",value:I}),h.preventDefault()),I.length>2&&h.currentTarget.setSelectionRange(0,1,"forward")}catch{}},onChange(h){const I=Nc(h),{value:T}=h.currentTarget;if(I.inputType==="insertFromPaste"||T.length>2){r({type:"INPUT.PASTE",value:T}),h.currentTarget.value=T[0],h.preventDefault();return}if(I.inputType==="deleteContentBackward"){r({type:"INPUT.BACKSPACE"});return}r({type:"INPUT.CHANGE",value:T,index:d})},onKeyDown(h){if(h.defaultPrevented||Pn(h)||Gt(h))return;const T={Backspace(){r({type:"INPUT.BACKSPACE"})},Delete(){r({type:"INPUT.DELETE"})},ArrowLeft(){r({type:"INPUT.ARROW_LEFT"})},ArrowRight(){r({type:"INPUT.ARROW_RIGHT"})},Enter(){r({type:"INPUT.ENTER"})}}[We(h,{dir:i("dir"),orientation:"horizontal"})];T&&(T(h),h.preventDefault())},onFocus(){r({type:"INPUT.FOCUS",index:d})},onBlur(h){const I=h.relatedTarget;ge(I)&&I.dataset.ownedby===sn(s)||r({type:"INPUT.BLUR",index:d})}})}}}var{choose:uO,createMachine:dO}=ou(),gO=dO({props({props:e}){return{placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?to([],e.count):[],...e,translations:{inputLabel:(t,r)=>`pin code ${t+1} of ${r}`,...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),isEqual:Kt,onChange(r){e("onValueChange")?.({value:r,valueAsString:r.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}},computed:{_value:({context:e})=>to(e.get("value"),e.get("count")),valueLength:({computed:e})=>e("_value").length,filledValueLength:({computed:e})=>e("_value").filter(t=>t?.trim()!=="").length,isValueComplete:({computed:e})=>e("valueLength")===e("filledValueLength"),valueAsString:({computed:e})=>e("_value").join(""),focusedValue:({computed:e,context:t})=>e("_value")[t.get("focusedIndex")]||""},entry:uO([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:r,computed:n}){t([()=>r.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>r.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>n("isValueComplete")],()=>{e(["invokeOnComplete","blurFocusedInputIfNeeded"])})},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:["setFocusedIndex"]}}},focused:{on:{"INPUT.CHANGE":{actions:["setFocusedValue","syncInputValue","setNextFocusedIndex"]},"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.FOCUS":{actions:["setFocusedIndex"]},"INPUT.BLUR":{target:"idle",actions:["clearFocusedIndex"]},"INPUT.DELETE":{guard:"hasValue",actions:["clearFocusedValue"]},"INPUT.ARROW_LEFT":{actions:["setPrevFocusedIndex"]},"INPUT.ARROW_RIGHT":{actions:["setNextFocusedIndex"]},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:["requestFormSubmit"]},"VALUE.INVALID":{actions:["invokeOnInvalid"]}}}},implementations:{guards:{autoFocus:({prop:e})=>!!e("autoFocus"),hasValue:({context:e})=>e.get("value")[e.get("focusedIndex")]!=="",isValueComplete:({computed:e})=>e("isValueComplete"),hasIndex:({event:e})=>e.index!==void 0},actions:{dispatchInputEvent({computed:e,scope:t}){const r=jl(t);Xo(r,{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:r}){if(r("count"))return;const n=Mo(e);t.set("count",n.length)},focusInput({context:e,scope:t}){const r=e.get("focusedIndex");r!==-1&&Br(t,r)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:r}){const n=e.get("focusedIndex");!t("selectOnFocus")||n===-1||_(()=>{Br(r,n)?.select()})},invokeOnComplete({computed:e,prop:t}){e("isValueComplete")&&t("onValueComplete")?.({value:e("_value"),valueAsString:e("valueAsString")})},invokeOnInvalid({context:e,event:t,prop:r}){r("onValueInvalid")?.({value:t.value,index:e.get("focusedIndex")})},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},setValue({context:e,event:t}){const r=to(t.value,e.get("count"));e.set("value",r)},setFocusedValue({context:e,event:t,computed:r,flush:n}){const o=r("focusedValue"),i=e.get("focusedIndex"),s=Gl(o,t.value);n(()=>{e.set("value",Ct(r("_value"),i,s))})},revertInputValue({context:e,computed:t,scope:r}){const n=Br(r,e.get("focusedIndex"));$i(n,t("focusedValue"))},syncInputValue({context:e,event:t,scope:r}){const n=e.get("value"),o=Br(r,t.index);$i(o,n[t.index])},syncInputElements({context:e,scope:t}){const r=Mo(t),n=e.get("value");r.forEach((o,i)=>{$i(o,n[i])})},setPastedValue({context:e,event:t,computed:r,flush:n}){_(()=>{const o=r("valueAsString"),i=e.get("focusedIndex"),s=r("valueLength"),a=r("filledValueLength"),l=Math.min(i,a),u=l>0?o.substring(0,i):"",p=t.value.substring(0,s-l),g=to(`${u}${p}`.split(""),s);n(()=>{e.set("value",g)})})},setValueAtIndex({context:e,event:t,computed:r}){const n=Gl(r("focusedValue"),t.value);e.set("value",Ct(r("_value"),t.index,n))},clearValue({context:e}){const t=Array.from({length:e.get("count")}).fill("");e.set("value",t)},clearFocusedValue({context:e,computed:t}){const r=e.get("focusedIndex");r!==-1&&e.set("value",Ct(t("_value"),r,""))},setFocusIndexToFirst({context:e}){e.set("focusedIndex",0)},setNextFocusedIndex({context:e,computed:t}){e.set("focusedIndex",Math.min(e.get("focusedIndex")+1,t("valueLength")-1))},setPrevFocusedIndex({context:e}){e.set("focusedIndex",Math.max(e.get("focusedIndex")-1,0))},setLastValueFocusIndex({context:e,computed:t}){_(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:r}){t("blurOnComplete")&&_(()=>{Br(r,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:r}){if(!t("name")||!e("isValueComplete"))return;jl(r)?.form?.requestSubmit()}}}});function Gl(e,t){let r=t;return e[0]===t[0]?r=t[1]:e[0]===t[1]&&(r=t[0]),r.split("")[r.length-1]}function to(e,t){return Array.from({length:t}).fill("").map((r,n)=>e[n]||r)}B()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);const pO=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o=se(),i={id:t,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,required:o?.required,invalid:o?.invalid,dir:n,getRootNode:r,...e},s=J(gO,i);return cO(s,te)},Hf=v.forwardRef((e,t)=>{const[r,n]=$()(e,["autoFocus","blurOnComplete","count","defaultValue","disabled","form","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]),o=pO(r),i=P(o.getRootProps(),n);return m.jsx(Mf,{value:o,children:m.jsx(C.div,{...i,ref:t})})});Hf.displayName="PinInputRoot";const Wf=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(Mf,{value:r,children:m.jsx(C.div,{...o,ref:t})})});Wf.displayName="PinInputRootProvider";const[qf,Ge]=j({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),Kf=v.forwardRef((e,t)=>{const r=Ge(),n=P(r.getAnchorProps(),e);return m.jsx(C.div,{...n,ref:t})});Kf.displayName="PopoverAnchor";const zf=v.forwardRef((e,t)=>{const r=Ge(),n=P(r.getArrowProps(),e);return m.jsx(C.div,{...n,ref:t})});zf.displayName="PopoverArrow";const Yf=v.forwardRef((e,t)=>{const r=Ge(),n=P(r.getArrowTipProps(),e);return m.jsx(C.div,{...n,ref:t})});Yf.displayName="PopoverArrowTip";const Xf=v.forwardRef((e,t)=>{const r=Ge(),n=P(r.getCloseTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Xf.displayName="PopoverCloseTrigger";const Zf=v.forwardRef((e,t)=>{const r=Ge(),n=ve(),o=P(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:m.jsx(C.div,{...o,ref:Fe(n.ref,t)})});Zf.displayName="PopoverContent";const fO=e=>e.children(Ge()),Jf=v.forwardRef((e,t)=>{const r=Ge(),n=P(r.getDescriptionProps(),e);return m.jsx(C.div,{...n,ref:t})});Jf.displayName="PopoverDescription";const Qf=v.forwardRef((e,t)=>{const r=Ge(),n=P(r.getIndicatorProps(),e);return m.jsx(C.div,{...n,ref:t})});Qf.displayName="PopoverIndicator";const em=v.forwardRef((e,t)=>{const r=Ge(),n=ve(),o=P(r.getPositionerProps(),e);return n.unmounted?null:m.jsx(C.div,{...o,ref:t})});em.displayName="PopoverPositioner";var tm=q("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),Xe=tm.build(),rm=e=>e.ids?.anchor??`popover:${e.id}:anchor`,nm=e=>e.ids?.trigger??`popover:${e.id}:trigger`,vs=e=>e.ids?.content??`popover:${e.id}:content`,om=e=>e.ids?.positioner??`popover:${e.id}:popper`,mO=e=>e.ids?.arrow??`popover:${e.id}:arrow`,ys=e=>e.ids?.title??`popover:${e.id}:title`,bs=e=>e.ids?.description??`popover:${e.id}:desc`,hO=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,Bl=e=>e.getById(rm(e)),tr=e=>e.getById(nm(e)),rr=e=>e.getById(vs(e)),Ul=e=>e.getById(om(e)),vO=e=>e.getById(ys(e)),yO=e=>e.getById(bs(e));function bO(e,t){const{state:r,context:n,send:o,computed:i,prop:s,scope:a}=e,l=r.matches("open"),u=n.get("currentPlacement"),p=i("currentPortalled"),g=n.get("renderedElements"),c=br({...s("positioning"),placement:u});return{portalled:p,open:l,setOpen(d){r.matches("open")!==d&&o({type:d?"OPEN":"CLOSE"})},reposition(d={}){o({type:"POSITIONING.SET",options:d})},getArrowProps(){return t.element({id:mO(a),...Xe.arrow.attrs,dir:s("dir"),style:c.arrow})},getArrowTipProps(){return t.element({...Xe.arrowTip.attrs,dir:s("dir"),style:c.arrowTip})},getAnchorProps(){return t.element({...Xe.anchor.attrs,dir:s("dir"),id:rm(a)})},getTriggerProps(){return t.button({...Xe.trigger.attrs,dir:s("dir"),type:"button","data-placement":u,id:nm(a),"aria-haspopup":"dialog","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":vs(a),onPointerDown(d){Ht()&&d.currentTarget.focus()},onClick(d){d.defaultPrevented||o({type:"TOGGLE"})},onBlur(d){o({type:"TRIGGER_BLUR",target:d.relatedTarget})}})},getIndicatorProps(){return t.element({...Xe.indicator.attrs,dir:s("dir"),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({id:om(a),...Xe.positioner.attrs,dir:s("dir"),style:c.floating})},getContentProps(){return t.element({...Xe.content.attrs,dir:s("dir"),id:vs(a),tabIndex:-1,role:"dialog",hidden:!l,"data-state":l?"open":"closed","data-expanded":E(l),"aria-labelledby":g.title?ys(a):void 0,"aria-describedby":g.description?bs(a):void 0,"data-placement":u})},getTitleProps(){return t.element({...Xe.title.attrs,id:ys(a),dir:s("dir")})},getDescriptionProps(){return t.element({...Xe.description.attrs,id:bs(a),dir:s("dir")})},getCloseTriggerProps(){return t.button({...Xe.closeTrigger.attrs,dir:s("dir"),id:hO(a),type:"button","aria-label":"close",onClick(d){d.defaultPrevented||(d.stopPropagation(),o({type:"CLOSE"}))}})}}}var PO={props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:r}){e.set("currentPlacement",t("positioning").placement);const n=Bl(r)??tr(r);return ze(n,()=>Ul(r),{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},trackDismissableElement({send:e,prop:t,scope:r}){const n=()=>rr(r);let o=!0;return Pr(n,{pointerBlocking:t("modal"),exclude:tr(r),defer:!0,onEscapeKeyDown(i){t("onEscapeKeyDown")?.(i),!t("closeOnEscape")&&i.preventDefault()},onInteractOutside(i){t("onInteractOutside")?.(i),!i.defaultPrevented&&(o=!(i.detail.focusable||i.detail.contextmenu),t("closeOnInteractOutside")||i.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:lb(()=>rr(t),{triggerElement:tr(t),defer:!0,onFocus(n){n.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?ip(()=>[rr(t),tr(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return fp(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?pp(()=>rr(t),{initialFocus:()=>un({root:rr(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})}):void 0}},actions:{reposition({event:e,prop:t,scope:r,context:n}){const o=Bl(r)??tr(r);ze(o,()=>Ul(r),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(s){n.set("currentPlacement",s.placement)}})},checkRenderedElements({context:e,scope:t}){_(()=>{Object.assign(e.get("renderedElements"),{title:!!vO(t),description:!!yO(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||_(()=>{un({root:rr(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){const r=e.restoreFocus??e.previousEvent?.restoreFocus;r!=null&&!r||_(()=>{tr(t)?.focus({preventScroll:!0})})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};B()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);const EO=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(PO,o);return bO(i,te)},CO=e=>{const[t,{children:r,...n}]=Te(e),o=EO(n),i=ye(P({present:o.open},t));return m.jsx(qf,{value:o,children:m.jsx(Ie,{value:i,children:r})})},IO=e=>{const[t,{value:r,children:n}]=Te(e),o=ye(P({present:r.open},t));return m.jsx(qf,{value:r,children:m.jsx(Ie,{value:o,children:n})})},im=v.forwardRef((e,t)=>{const r=Ge(),n=P(r.getTitleProps(),e);return m.jsx(C.div,{...n,ref:t})});im.displayName="PopoverTitle";const sm=v.forwardRef((e,t)=>{const r=Ge(),n=ve(),o=P({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return m.jsx(C.button,{...o,ref:t})});sm.displayName="PopoverTrigger";const[am,At]=j({name:"ProgressContext",hookName:"useProgressContext",providerName:"<ProgressProvider />"}),lm=v.forwardRef((e,t)=>{const r=At(),n=P(r.getCircleProps(),e);return m.jsx(C.svg,{ref:t,...n})});lm.displayName="ProgressCircle";const cm=v.forwardRef((e,t)=>{const r=At(),n=P(r.getCircleRangeProps(),e);return m.jsx(C.circle,{ref:t,...n})});cm.displayName="ProgressCircleRange";const um=v.forwardRef((e,t)=>{const r=At(),n=P(r.getCircleTrackProps(),e);return m.jsx(C.circle,{ref:t,...n})});um.displayName="ProgressCircleTrack";const TO=e=>e.children(At()),dm=v.forwardRef((e,t)=>{const r=At(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});dm.displayName="ProgressLabel";const gm=v.forwardRef((e,t)=>{const r=At(),n=P(r.getRangeProps(),e);return m.jsx(C.div,{...n,ref:t})});gm.displayName="ProgressRange";var pm=q("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange"),it=pm.build(),RO=e=>e.ids?.root??`progress-${e.id}`,SO=e=>e.ids?.track??`progress-${e.id}-track`,OO=e=>e.ids?.label??`progress-${e.id}-label`,xO=e=>e.ids?.circle??`progress-${e.id}-circle`;function wO(e,t){const{context:r,computed:n,prop:o,send:i,scope:s}=e,a=n("percent"),l=n("isIndeterminate")?"":n("formatter").format(n("percent")/100),u=o("max"),p=o("min"),g=o("orientation"),c=o("translations"),d=n("isIndeterminate"),f=r.get("value"),h=c?.value({value:f,max:u,percent:a,min:p})??"",I=NO(f,u),T={role:"progressbar","aria-label":h,"data-max":u,"aria-valuemin":p,"aria-valuemax":u,"aria-valuenow":f??void 0,"data-orientation":g,"data-state":I},S=AO(e);return{value:f,valueAsString:h,min:p,max:u,percent:a,percentAsString:l,indeterminate:d,setValue(x){i({type:"VALUE.SET",value:x})},setToMax(){i({type:"VALUE.SET",value:u})},setToMin(){i({type:"VALUE.SET",value:p})},getRootProps(){return t.element({dir:o("dir"),...it.root.attrs,id:RO(s),"data-max":u,"data-value":f??void 0,"data-state":I,"data-orientation":g,style:{"--percent":d?void 0:a}})},getLabelProps(){return t.element({dir:o("dir"),id:OO(s),...it.label.attrs,"data-orientation":g})},getValueTextProps(){return t.element({dir:o("dir"),"aria-live":"polite",...it.valueText.attrs})},getTrackProps(){return t.element({dir:o("dir"),id:SO(s),...it.track.attrs,...T})},getRangeProps(){return t.element({dir:o("dir"),...it.range.attrs,"data-orientation":g,"data-state":I,style:{[n("isHorizontal")?"width":"height"]:d?void 0:`${a}%`}})},getCircleProps(){return t.element({dir:o("dir"),id:xO(s),...it.circle.attrs,...T,...S.root})},getCircleTrackProps(){return t.element({dir:o("dir"),"data-orientation":g,...it.circleTrack.attrs,...S.track})},getCircleRangeProps(){return t.element({dir:o("dir"),...it.circleRange.attrs,...S.range,"data-state":I})},getViewProps(x){return t.element({dir:o("dir"),...it.view.attrs,"data-state":x.state,hidden:x.state!==I})}}}function NO(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}var Hl={style:{"--radius":"calc(var(--size) / 2 - var(--thickness) / 2)",cx:"calc(var(--size) / 2)",cy:"calc(var(--size) / 2)",r:"var(--radius)",fill:"transparent",strokeWidth:"var(--thickness)"}},kO={style:{width:"var(--size)",height:"var(--size)"}};function AO(e){const{context:t,computed:r}=e;return{root:kO,track:Hl,range:{opacity:t.get("value")===0?0:void 0,style:{...Hl.style,"--percent":r("percent"),"--circumference":"calc(2 * 3.14159 * var(--radius))","--offset":"calc(var(--circumference) * (100 - var(--percent)) / 100)",strokeDashoffset:"calc(var(--circumference) * ((100 - var(--percent)) / 100))",strokeDasharray:r("isIndeterminate")?void 0:"var(--circumference)",transformOrigin:"center",transform:"rotate(-90deg)"}}}}var FO={props({props:e}){const t=e.min??0,r=e.max??100;return{...e,max:r,min:t,defaultValue:e.defaultValue??DO(t,r),orientation:"horizontal",formatOptions:{style:"percent",...e.formatOptions},translations:{value:({percent:n})=>n===-1?"loading...":`${n} percent`,...e.translations}}},initialState(){return"idle"},entry:["validateContext"],context({bindable:e,prop:t}){return{value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange(r){t("onValueChange")?.({value:r})}}))}},computed:{isIndeterminate:({context:e})=>e.get("value")===null,percent({context:e,prop:t}){const r=e.get("value");return Yc(r)?In(r,t("min"),t("max"))*100:-1},formatter:Oo(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>new Intl.NumberFormat(e,t)),isHorizontal:({prop:e})=>e("orientation")==="horizontal"},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]}}}},implementations:{actions:{setValue:({context:e,event:t,prop:r})=>{const n=t.value===null?null:Math.max(0,Math.min(t.value,r("max")));e.set("value",n)},validateContext:({context:e,prop:t})=>{const r=t("max"),n=t("min"),o=e.get("value");if(o!=null){if(!pa(r))throw new Error(`[progress] The max value passed \`${r}\` is not a valid number`);if(!VO(o,r))throw new Error(`[progress] The value passed \`${o}\` exceeds the max value \`${r}\``);if(!LO(o,n))throw new Error(`[progress] The value passed \`${o}\` exceeds the min value \`${n}\``)}}}}},pa=e=>Yc(e)&&!isNaN(e),VO=(e,t)=>pa(e)&&e<=t,LO=(e,t)=>pa(e)&&e>=t,DO=(e,t)=>e+(t-e)/2;B()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);const $O=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n,locale:o}=Q(),i={id:t,dir:n,locale:o,getRootNode:r,...e},s=J(FO,i);return wO(s,te)},fm=v.forwardRef((e,t)=>{const[r,n]=$()(e,["defaultValue","formatOptions","id","ids","locale","max","min","onValueChange","orientation","translations","value"]),o=$O(r),i=P(o.getRootProps(),n);return m.jsx(am,{value:o,children:m.jsx(C.div,{...i,ref:t})})});fm.displayName="ProgressRoot";const mm=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(am,{value:r,children:m.jsx(C.div,{...o,ref:t})})});mm.displayName="ProgressRootProvider";const hm=v.forwardRef((e,t)=>{const r=At(),n=P(r.getTrackProps(),e);return m.jsx(C.div,{...n,ref:t})});hm.displayName="ProgressTrack";const vm=v.forwardRef((e,t)=>{const{children:r,...n}=e,o=At(),i=P(o.getValueTextProps(),n);return m.jsx(C.span,{...i,ref:t,children:r||o.percentAsString})});vm.displayName="ProgressValueText";const[ym,wn]=j({name:"QrCodeContext",hookName:"useQrCodeContext",providerName:"<QrCodeProvider />"}),MO=e=>e.children(wn()),bm=v.forwardRef((e,t)=>{const[r,n]=$()(e,["fileName","mimeType","quality"]),o=wn(),i=P(o.getDownloadTriggerProps(r),n);return m.jsx(C.button,{...i,ref:t})});bm.displayName="QrCodeDownloadTrigger";const Pm=v.forwardRef((e,t)=>{const r=wn(),n=P(r.getFrameProps(),e);return m.jsx(C.svg,{...n,ref:t})});Pm.displayName="QrCodeFrame";const Em=v.forwardRef((e,t)=>{const r=wn(),n=P(r.getOverlayProps(),e);return m.jsx(C.div,{...n,ref:t})});Em.displayName="QrCodeOverlay";const Cm=v.forwardRef((e,t)=>{const r=wn(),n=P(r.getPatternProps(),e);return m.jsx(C.path,{...n,ref:t})});Cm.displayName="QrCodePattern";var Mt=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(Mt||{}),_O=Object.defineProperty,jO=(e,t,r)=>t in e?_O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ro=(e,t,r)=>(jO(e,typeof t!="symbol"?t+"":t,r),r);const GO=[0,1],Im=[1,0],Tm=[2,3],Rm=[3,2],BO={L:GO,M:Im,Q:Tm,H:Rm},UO=/^[0-9]*$/,HO=/^[A-Z0-9 $%*+.\/:-]*$/,Mi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",fa=1,ma=40,Wl=3,WO=3,no=40,qO=10,Sm=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Om=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class KO{constructor(t,r,n,o){if(this.version=t,this.ecc=r,ro(this,"size"),ro(this,"mask"),ro(this,"modules",[]),ro(this,"types",[]),t<fa||t>ma)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=t*4+17;const i=Array.from({length:this.size},()=>!1);for(let a=0;a<this.size;a++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();const s=this.addEccAndInterleave(n);if(this.drawCodewords(s),o===-1){let a=1e9;for(let l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);const u=this.getPenaltyScore();u<a&&(o=l,a=u),this.applyMask(l)}}this.mask=o,this.applyMask(o),this.drawFormatBits(o)}getModule(t,r){return t>=0&&t<this.size&&r>=0&&r<this.size&&this.modules[r][t]}drawFunctionPatterns(){for(let n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2===0,Mt.Timing),this.setFunctionModule(n,6,n%2===0,Mt.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const t=this.getAlignmentPatternPositions(),r=t.length;for(let n=0;n<r;n++)for(let o=0;o<r;o++)n===0&&o===0||n===0&&o===r-1||n===r-1&&o===0||this.drawAlignmentPattern(t[n],t[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){const r=this.ecc[1]<<3|t;let n=r;for(let i=0;i<10;i++)n=n<<1^(n>>>9)*1335;const o=(r<<10|n)^21522;for(let i=0;i<=5;i++)this.setFunctionModule(8,i,st(o,i));this.setFunctionModule(8,7,st(o,6)),this.setFunctionModule(8,8,st(o,7)),this.setFunctionModule(7,8,st(o,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,st(o,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,st(o,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,st(o,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let n=0;n<12;n++)t=t<<1^(t>>>11)*7973;const r=this.version<<12|t;for(let n=0;n<18;n++){const o=st(r,n),i=this.size-11+n%3,s=Math.floor(n/3);this.setFunctionModule(i,s,o),this.setFunctionModule(s,i,o)}}drawFinderPattern(t,r){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const i=Math.max(Math.abs(o),Math.abs(n)),s=t+o,a=r+n;s>=0&&s<this.size&&a>=0&&a<this.size&&this.setFunctionModule(s,a,i!==2&&i!==4,Mt.Position)}}drawAlignmentPattern(t,r){for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)this.setFunctionModule(t+o,r+n,Math.max(Math.abs(o),Math.abs(n))!==1,Mt.Alignment)}setFunctionModule(t,r,n,o=Mt.Function){this.modules[r][t]=n,this.types[r][t]=o}addEccAndInterleave(t){const r=this.version,n=this.ecc;if(t.length!==Eo(r,n))throw new RangeError("Invalid argument");const o=Om[n[0]][r],i=Sm[n[0]][r],s=Math.floor(Ps(r)/8),a=o-s%o,l=Math.floor(s/o),u=[],p=rx(i);for(let c=0,d=0;c<o;c++){const f=t.slice(d,d+l-i+(c<a?0:1));d+=f.length;const h=nx(f,p);c<a&&f.push(0),u.push(f.concat(h))}const g=[];for(let c=0;c<u[0].length;c++)u.forEach((d,f)=>{(c!==l-i||f>=a)&&g.push(d[c])});return g}drawCodewords(t){if(t.length!==Math.floor(Ps(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let n=this.size-1;n>=1;n-=2){n===6&&(n=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const s=n-i,l=(n+1&2)===0?this.size-1-o:o;!this.types[l][s]&&r<t.length*8&&(this.modules[l][s]=st(t[r>>>3],7-(r&7)),r++)}}}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let r=0;r<this.size;r++)for(let n=0;n<this.size;n++){let o;switch(t){case 0:o=(n+r)%2===0;break;case 1:o=r%2===0;break;case 2:o=n%3===0;break;case 3:o=(n+r)%3===0;break;case 4:o=(Math.floor(n/3)+Math.floor(r/2))%2===0;break;case 5:o=n*r%2+n*r%3===0;break;case 6:o=(n*r%2+n*r%3)%2===0;break;case 7:o=((n+r)%2+n*r%3)%2===0;break;default:throw new Error("Unreachable")}!this.types[r][n]&&o&&(this.modules[r][n]=!this.modules[r][n])}}getPenaltyScore(){let t=0;for(let i=0;i<this.size;i++){let s=!1,a=0;const l=[0,0,0,0,0,0,0];for(let u=0;u<this.size;u++)this.modules[i][u]===s?(a++,a===5?t+=Wl:a>5&&t++):(this.finderPenaltyAddHistory(a,l),s||(t+=this.finderPenaltyCountPatterns(l)*no),s=this.modules[i][u],a=1);t+=this.finderPenaltyTerminateAndCount(s,a,l)*no}for(let i=0;i<this.size;i++){let s=!1,a=0;const l=[0,0,0,0,0,0,0];for(let u=0;u<this.size;u++)this.modules[u][i]===s?(a++,a===5?t+=Wl:a>5&&t++):(this.finderPenaltyAddHistory(a,l),s||(t+=this.finderPenaltyCountPatterns(l)*no),s=this.modules[u][i],a=1);t+=this.finderPenaltyTerminateAndCount(s,a,l)*no}for(let i=0;i<this.size-1;i++)for(let s=0;s<this.size-1;s++){const a=this.modules[i][s];a===this.modules[i][s+1]&&a===this.modules[i+1][s]&&a===this.modules[i+1][s+1]&&(t+=WO)}let r=0;for(const i of this.modules)r=i.reduce((s,a)=>s+(a?1:0),r);const n=this.size*this.size,o=Math.ceil(Math.abs(r*20-n*10)/n)-1;return t+=o*qO,t}getAlignmentPatternPositions(){if(this.version===1)return[];{const t=Math.floor(this.version/7)+2,r=this.version===32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,n=[6];for(let o=this.size-7;n.length<t;o-=r)n.splice(1,0,o);return n}}finderPenaltyCountPatterns(t){const r=t[1],n=r>0&&t[2]===r&&t[3]===r*3&&t[4]===r&&t[5]===r;return(n&&t[0]>=r*4&&t[6]>=r?1:0)+(n&&t[6]>=r*4&&t[0]>=r?1:0)}finderPenaltyTerminateAndCount(t,r,n){return t&&(this.finderPenaltyAddHistory(r,n),r=0),r+=this.size,this.finderPenaltyAddHistory(r,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(t,r){r[0]===0&&(t+=this.size),r.pop(),r.unshift(t)}}function ut(e,t,r){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function st(e,t){return(e>>>t&1)!==0}class ha{constructor(t,r,n){if(this.mode=t,this.numChars=r,this.bitData=n,r<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}getData(){return this.bitData.slice()}}const zO=[1,10,12,14],YO=[2,9,11,13],XO=[4,8,16,16];function xm(e,t){return e[Math.floor((t+7)/17)+1]}function wm(e){const t=[];for(const r of e)ut(r,8,t);return new ha(XO,e.length,t)}function ZO(e){if(!Nm(e))throw new RangeError("String contains non-numeric characters");const t=[];for(let r=0;r<e.length;){const n=Math.min(e.length-r,3);ut(Number.parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new ha(zO,e.length,t)}function JO(e){if(!km(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");const t=[];let r;for(r=0;r+2<=e.length;r+=2){let n=Mi.indexOf(e.charAt(r))*45;n+=Mi.indexOf(e.charAt(r+1)),ut(n,11,t)}return r<e.length&&ut(Mi.indexOf(e.charAt(r)),6,t),new ha(YO,e.length,t)}function QO(e){return e===""?[]:Nm(e)?[ZO(e)]:km(e)?[JO(e)]:[wm(tx(e))]}function Nm(e){return UO.test(e)}function km(e){return HO.test(e)}function ex(e,t){let r=0;for(const n of e){const o=xm(n.mode,t);if(n.numChars>=1<<o)return Number.POSITIVE_INFINITY;r+=4+o+n.bitData.length}return r}function tx(e){e=encodeURI(e);const t=[];for(let r=0;r<e.length;r++)e.charAt(r)!=="%"?t.push(e.charCodeAt(r)):(t.push(Number.parseInt(e.substring(r+1,r+3),16)),r+=2);return t}function Ps(e){if(e<fa||e>ma)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){const r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return t}function Eo(e,t){return Math.floor(Ps(e)/8)-Sm[t[0]][e]*Om[t[0]][e]}function rx(e){if(e<1||e>255)throw new RangeError("Degree out of range");const t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let r=1;for(let n=0;n<e;n++){for(let o=0;o<t.length;o++)t[o]=Es(t[o],r),o+1<t.length&&(t[o]^=t[o+1]);r=Es(r,2)}return t}function nx(e,t){const r=t.map(n=>0);for(const n of e){const o=n^r.shift();r.push(0),t.forEach((i,s)=>r[s]^=Es(i,o))}return r}function Es(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return r}function ox(e,t,r=1,n=40,o=-1,i=!0){if(!(fa<=r&&r<=n&&n<=ma)||o<-1||o>7)throw new RangeError("Invalid value");let s,a;for(s=r;;s++){const g=Eo(s,t)*8,c=ex(e,s);if(c<=g){a=c;break}if(s>=n)throw new RangeError("Data too long")}for(const g of[Im,Tm,Rm])i&&a<=Eo(s,g)*8&&(t=g);const l=[];for(const g of e){ut(g.mode[0],4,l),ut(g.numChars,xm(g.mode,s),l);for(const c of g.getData())l.push(c)}const u=Eo(s,t)*8;ut(0,Math.min(4,u-l.length),l),ut(0,(8-l.length%8)%8,l);for(let g=236;l.length<u;g^=253)ut(g,8,l);const p=Array.from({length:Math.ceil(l.length/8)},()=>0);return l.forEach((g,c)=>p[c>>>3]|=g<<7-(c&7)),new KO(s,t,p,o)}function ix(e,t){const{ecc:r="L",boostEcc:n=!1,minVersion:o=1,maxVersion:i=40,maskPattern:s=-1,border:a=1}=t||{},l=typeof e=="string"?QO(e):Array.isArray(e)?[wm(e)]:void 0;if(!l)throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);const u=ox(l,BO[r],o,i,s,n),p=sx({version:u.version,maskPattern:u.mask,size:u.size,data:u.modules,types:u.types},a);return t?.invert&&(p.data=p.data.map(g=>g.map(c=>!c))),t?.onEncoded?.(p),p}function sx(e,t=1){if(!t)return e;const{size:r}=e,n=r+t*2;e.size=n,e.data.forEach(i=>{for(let s=0;s<t;s++)i.unshift(!1),i.push(!1)});for(let i=0;i<t;i++)e.data.unshift(Array.from({length:n},s=>!1)),e.data.push(Array.from({length:n},s=>!1));const o=Mt.Border;e.types.forEach(i=>{for(let s=0;s<t;s++)i.unshift(o),i.push(o)});for(let i=0;i<t;i++)e.types.unshift(Array.from({length:n},s=>o)),e.types.push(Array.from({length:n},s=>o));return e}var Am=q("qr-code").parts("root","frame","pattern","overlay","downloadTrigger"),Ur=Am.build(),ax=e=>e.ids?.root??`qrcode:${e.id}:root`,Fm=e=>e.ids?.frame??`qrcode:${e.id}:frame`,Vm=e=>e.getById(Fm(e));function lx(e,t){const{context:r,computed:n,send:o,scope:i,prop:s}=e,a=n("encoded"),l=s("pixelSize"),u=a.size*l,p=a.size*l,g=[];for(let c=0;c<a.size;c++)for(let d=0;d<a.size;d++){const f=d*l,h=c*l;a.data[c][d]&&g.push(`M${f},${h}h${l}v${l}h-${l}z`)}return{value:r.get("value"),setValue(c){o({type:"VALUE.SET",value:c})},getDataUrl(c,d){const f=Vm(i);return Oc(f,{type:c,quality:d})},getRootProps(){return t.element({id:ax(i),...Ur.root.attrs,style:{"--qrcode-pixel-size":`${l}px`,"--qrcode-width":`${p}px`,"--qrcode-height":`${u}px`,position:"relative"}})},getFrameProps(){return t.svg({id:Fm(i),...Ur.frame.attrs,xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${p} ${u}`})},getPatternProps(){return t.path({d:g.join(""),...Ur.pattern.attrs})},getOverlayProps(){return t.element({...Ur.overlay.attrs,style:{position:"absolute",top:"50%",left:"50%",translate:"-50% -50%"}})},getDownloadTriggerProps(c){return t.button({type:"button",...Ur.downloadTrigger.attrs,onClick(d){d.defaultPrevented||o({type:"DOWNLOAD_TRIGGER.CLICK",...c})}})}}}var cx={props({props:e}){return{defaultValue:"",pixelSize:10,...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),onChange(r){e("onValueChange")?.({value:r})}}))}},computed:{encoded:Oo(({context:e,prop:t})=>[e.get("value"),t("encoding")],(e,t)=>ix(e,t))},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]},"DOWNLOAD_TRIGGER.CLICK":{actions:["downloadQrCode"]}}}},implementations:{actions:{setValue({context:e,event:t}){e.set("value",t.value)},downloadQrCode({event:e,scope:t}){const{mimeType:r,quality:n,fileName:o}=e,i=Vm(t),s=t.getDoc();Oc(i,{type:r,quality:n}).then(a=>{const l=s.createElement("a");l.href=a,l.rel="noopener",l.download=o,l.click(),setTimeout(()=>{l.remove()},0)})}}}};B()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);const ux=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(cx,o);return lx(i,te)},Lm=v.forwardRef((e,t)=>{const[r,n]=$()(e,["defaultValue","encoding","id","ids","onValueChange","pixelSize","value"]),o=ux(r),i=P(o.getRootProps(),n);return m.jsx(ym,{value:o,children:m.jsx(C.div,{...i,ref:t})})});Lm.displayName="QrcodeRoot";const Dm=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(ym,{value:r,children:m.jsx(C.div,{...o,ref:t})})});Dm.displayName="QrCodeRootProvider";const[$m,Nn]=j({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"}),[dx,gx]=j({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[px,va]=j({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),Mm=v.forwardRef((e,t)=>{const[r,n]=$()(e,["value","disabled","invalid"]),o=Nn(),i=P(o.getItemProps(r),n),s=o.getItemState(r);return m.jsx(dx,{value:s,children:m.jsx(px,{value:r,children:m.jsx(C.label,{...i,ref:t})})})});Mm.displayName="RadioGroupItem";const fx=e=>e.children(gx()),_m=v.forwardRef((e,t)=>{const r=Nn(),n=va(),o=P(r.getItemControlProps(n),e);return m.jsx(C.div,{...o,ref:t})});_m.displayName="RadioGroupItemControl";const jm=v.forwardRef((e,t)=>{const r=Nn(),n=va(),o=P(r.getItemHiddenInputProps(n),e);return m.jsx(C.input,{...o,ref:t})});jm.displayName="RadioGroupItemHiddenInput";const Gm=v.forwardRef((e,t)=>{const r=Nn(),n=va(),o=P(r.getItemTextProps(n),e);return m.jsx(C.span,{...o,ref:t})});Gm.displayName="RadioGroupItemText";const Bm=v.forwardRef((e,t)=>{const r=Nn(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});Bm.displayName="RadioGroupLabel";var ya=q("radio-group").parts("root","label","item","itemText","itemControl","indicator"),nr=ya.build(),_o=e=>e.ids?.root??`radio-group:${e.id}`,ql=e=>e.ids?.label??`radio-group:${e.id}:label`,Um=(e,t)=>e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`,Cs=(e,t)=>e.ids?.itemHiddenInput?.(t)??`radio-group:${e.id}:radio:input:${t}`,mx=(e,t)=>e.ids?.itemControl?.(t)??`radio-group:${e.id}:radio:control:${t}`,hx=(e,t)=>e.ids?.itemLabel?.(t)??`radio-group:${e.id}:radio:label:${t}`,Hm=e=>e.ids?.indicator??`radio-group:${e.id}:indicator`,fi=e=>e.getById(_o(e)),vx=(e,t)=>e.getById(Cs(e,t)),yx=e=>e.getById(Hm(e)),bx=e=>fi(e)?.querySelector("input:not(:disabled)"),Px=e=>fi(e)?.querySelector("input:not(:disabled):checked"),Kl=e=>{const r=`input[type=radio][data-ownedby='${CSS.escape(_o(e))}']:not([disabled])`;return St(fi(e),r)},Ex=(e,t)=>{if(t)return e.getById(Um(e,t))},Cx=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),Ix=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`});function Tx(e,t){const{context:r,send:n,computed:o,prop:i,scope:s}=e,a=o("isDisabled"),l=i("readOnly");function u(c){const d=r.get("focusedValue")===c.value,f=d&&fr();return{value:c.value,invalid:!!c.invalid,disabled:!!c.disabled||a,checked:r.get("value")===c.value,focused:d,focusVisible:f,hovered:r.get("hoveredValue")===c.value,active:r.get("activeValue")===c.value}}function p(c){const d=u(c);return{"data-focus":E(d.focused),"data-focus-visible":E(d.focusVisible),"data-disabled":E(d.disabled),"data-readonly":E(l),"data-state":d.checked?"checked":"unchecked","data-hover":E(d.hovered),"data-invalid":E(d.invalid),"data-orientation":i("orientation"),"data-ssr":E(r.get("ssr"))}}const g=()=>{(Px(s)??bx(s))?.focus()};return{focus:g,value:r.get("value"),setValue(c){n({type:"SET_VALUE",value:c,isTrusted:!1})},clearValue(){n({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps(){return t.element({...nr.root.attrs,role:"radiogroup",id:_o(s),"aria-labelledby":ql(s),"data-orientation":i("orientation"),"data-disabled":E(a),"aria-orientation":i("orientation"),dir:i("dir"),style:{position:"relative"}})},getLabelProps(){return t.element({...nr.label.attrs,dir:i("dir"),"data-orientation":i("orientation"),"data-disabled":E(a),id:ql(s),onClick:g})},getItemState:u,getItemProps(c){const d=u(c);return t.label({...nr.item.attrs,dir:i("dir"),id:Um(s,c.value),htmlFor:Cs(s,c.value),...p(c),onPointerMove(){d.disabled||d.hovered||n({type:"SET_HOVERED",value:c.value,hovered:!0})},onPointerLeave(){d.disabled||n({type:"SET_HOVERED",value:null})},onPointerDown(f){d.disabled||(d.focused&&f.pointerType==="mouse"&&f.preventDefault(),n({type:"SET_ACTIVE",value:c.value,active:!0}))},onPointerUp(){d.disabled||n({type:"SET_ACTIVE",value:null})},onClick(){!d.disabled&&Ht()&&vx(s,c.value)?.focus()}})},getItemTextProps(c){return t.element({...nr.itemText.attrs,dir:i("dir"),id:hx(s,c.value),...p(c)})},getItemControlProps(c){const d=u(c);return t.element({...nr.itemControl.attrs,dir:i("dir"),id:mx(s,c.value),"data-active":E(d.active),"aria-hidden":!0,...p(c)})},getItemHiddenInputProps(c){const d=u(c);return t.input({"data-ownedby":_o(s),id:Cs(s,c.value),type:"radio",name:i("name")||i("id"),form:i("form"),value:c.value,onClick(f){if(l){f.preventDefault();return}f.currentTarget.checked&&n({type:"SET_VALUE",value:c.value,isTrusted:!0})},onBlur(){n({type:"SET_FOCUSED",value:null,focused:!1})},onFocus(){n({type:"SET_FOCUSED",value:c.value,focused:!0})},onKeyDown(f){f.defaultPrevented||f.key===" "&&n({type:"SET_ACTIVE",value:c.value,active:!0})},onKeyUp(f){f.defaultPrevented||f.key===" "&&n({type:"SET_ACTIVE",value:null})},disabled:d.disabled,defaultChecked:d.checked,style:qt})},getIndicatorProps(){const c=r.get("indicatorRect");return t.element({id:Hm(s),...nr.indicator.attrs,dir:i("dir"),hidden:r.get("value")==null,"data-disabled":E(a),"data-orientation":i("orientation"),style:{"--transition-property":"left, top, width, height","--left":c?.left,"--top":c?.top,"--width":c?.width,"--height":c?.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:r.get("canIndicatorTransition")?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[i("orientation")==="horizontal"?"left":"top"]:i("orientation")==="horizontal"?"var(--left)":"var(--top)"}})}}}var{not:Rx}=je(),Sx={props({props:e}){return{orientation:"vertical",...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){e("onValueChange")?.({value:r})}})),activeValue:t(()=>({defaultValue:null})),focusedValue:t(()=>({defaultValue:null})),hoveredValue:t(()=>({defaultValue:null})),indicatorRect:t(()=>({defaultValue:{}})),canIndicatorTransition:t(()=>({defaultValue:!1})),fieldsetDisabled:t(()=>({defaultValue:!1})),ssr:t(()=>({defaultValue:!0}))}},refs(){return{indicatorCleanup:null}},computed:{isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled")},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],effects:["trackFormControlState","trackFocusVisible"],watch({track:e,action:t,context:r}){e([()=>r.get("value")],()=>{t(["setIndicatorTransition","syncIndicatorRect","syncInputElements"])})},on:{SET_VALUE:[{guard:Rx("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:["setHovered"]},SET_ACTIVE:{actions:["setActive"]},SET_FOCUSED:{actions:["setFocused"]}},states:{idle:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackFormControlState({context:e,scope:t}){return Nt(fi(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},trackFocusVisible({scope:e}){return ii({root:e.getRootNode?.()})}},actions:{setValue({context:e,event:t}){e.set("value",t.value)},setHovered({context:e,event:t}){e.set("hoveredValue",t.value)},setActive({context:e,event:t}){e.set("activeValue",t.value)},setFocused({context:e,event:t}){e.set("focusedValue",t.value)},syncInputElements({context:e,scope:t}){Kl(t).forEach(n=>{n.checked=n.value===e.get("value")})},setIndicatorTransition({context:e}){e.set("canIndicatorTransition",tn(e.get("value")))},cleanupObserver({refs:e}){e.get("indicatorCleanup")?.()},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,scope:t,refs:r}){if(r.get("indicatorCleanup")?.(),!yx(t))return;const n=e.get("value"),o=Ex(t,n);if(n==null||!o){e.set("canIndicatorTransition",!1),e.set("indicatorRect",{});return}const i=Ws([o],{measure(s){return Cx(s)},onEntry({rects:s}){e.set("indicatorRect",Ix(s[0]))}});r.set("indicatorCleanup",i)},dispatchChangeEvent({context:e,scope:t}){Kl(t).forEach(n=>{const o=n.value===e.get("value");o!==n.checked&&_s(n,{checked:o})})}}}};B()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);B()(["value","disabled","invalid"]);const Ox=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(Sx,o);return Tx(i,te)},Wm=v.forwardRef((e,t)=>{const[r,n]=$()(e,["defaultValue","disabled","form","id","ids","name","onValueChange","orientation","readOnly","value"]),o=Ox(r),i=P(o.getRootProps(),n);return m.jsx($m,{value:o,children:m.jsx(C.div,{...i,ref:t})})});Wm.displayName="RadioGroupRoot";const qm=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx($m,{value:r,children:m.jsx(C.div,{...o,ref:t})})});qm.displayName="RadioGroupRootProvider";const[Km,Tr]=j({name:"RatingGroupContext",hookName:"useRatingGroupContext",providerName:"<RatingGroupProvider />"}),xx=e=>e.children(Tr()),zm=v.forwardRef((e,t)=>{const r=Tr(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});zm.displayName="RatingGroupControl";const Ym=v.forwardRef((e,t)=>{const r=Tr(),n=P(r.getHiddenInputProps(),e),o=se();return m.jsx(C.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});Ym.displayName="RatingGroupHiddenInput";const[wx,Xm]=j({name:"RatingGroupItemContext",hookName:"useRatingGroupItemContext",providerName:"<RatingGroupItemProvider />"}),Zm=v.forwardRef((e,t)=>{const[r,n]=$()(e,["index"]),o=Tr(),i=P(o.getItemProps(r),n),s=o.getItemState(r);return m.jsx(wx,{value:s,children:m.jsx(C.span,{...i,ref:t})})});Zm.displayName="RatingGroupItem";const Nx=e=>e.children(Xm()),Jm=v.forwardRef((e,t)=>{const r=Tr(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});Jm.displayName="RatingGroupLabel";var Qm=q("rating-group").parts("root","label","item","control"),oo=Qm.build(),kx=e=>e.ids?.root??`rating:${e.id}`,zl=e=>e.ids?.label??`rating:${e.id}:label`,Is=e=>e.ids?.hiddenInput??`rating:${e.id}:input`,eh=e=>e.ids?.control??`rating:${e.id}:control`,Ax=(e,t)=>e.ids?.item?.(t)??`rating:${e.id}:item:${t}`,th=e=>e.getById(eh(e)),rh=(e,t)=>{const r=`[role=radio][aria-posinset='${Math.ceil(t)}']`;return Gc(th(e),r)},nh=e=>e.getById(Is(e)),Fx=(e,t)=>{const r=nh(e);r&&Xo(r,{value:t})};function Vx(e,t){const{context:r,send:n,prop:o,scope:i,computed:s}=e,a=s("isInteractive"),l=s("isDisabled"),u=o("readOnly"),p=r.get("value"),g=r.get("hoveredValue"),c=o("translations");function d(f){const h=s("isHovering")?g:p,I=Math.ceil(h)===f.index,T=f.index<=h||I,S=I&&Math.abs(h-f.index)===.5;return{highlighted:T,half:S,checked:I||p===-1&&f.index===1}}return{hovering:s("isHovering"),value:p,hoveredValue:g,count:o("count"),items:Array.from({length:o("count")}).map((f,h)=>h+1),setValue(f){n({type:"SET_VALUE",value:f})},clearValue(){n({type:"CLEAR_VALUE"})},getRootProps(){return t.element({...oo.root.attrs,dir:o("dir"),id:kx(i)})},getHiddenInputProps(){return t.input({name:o("name"),form:o("form"),type:"text",hidden:!0,disabled:l,readOnly:u,required:o("required"),id:Is(i),defaultValue:p})},getLabelProps(){return t.label({...oo.label.attrs,dir:o("dir"),id:zl(i),"data-disabled":E(l),htmlFor:Is(i),onClick(f){if(f.defaultPrevented||!a)return;f.preventDefault(),rh(i,Math.max(1,r.get("value")))?.focus({preventScroll:!0})}})},getControlProps(){return t.element({id:eh(i),...oo.control.attrs,dir:o("dir"),role:"radiogroup","aria-orientation":"horizontal","aria-labelledby":zl(i),"aria-readonly":Me(u),"data-readonly":E(u),"data-disabled":E(l),onPointerMove(f){a&&f.pointerType!=="touch"&&n({type:"GROUP_POINTER_OVER"})},onPointerLeave(f){a&&f.pointerType!=="touch"&&n({type:"GROUP_POINTER_LEAVE"})}})},getItemState:d,getItemProps(f){const{index:h}=f,I=d(f),T=c.ratingValueText(h);return t.element({...oo.item.attrs,dir:o("dir"),id:Ax(i,h.toString()),role:"radio",tabIndex:(()=>{if(u)return I.checked?0:void 0;if(!l)return I.checked?0:-1})(),"aria-roledescription":"rating","aria-label":T,"aria-disabled":l,"data-disabled":E(l),"data-readonly":E(u),"aria-setsize":o("count"),"aria-checked":I.checked,"data-checked":E(I.checked),"aria-posinset":h,"data-highlighted":E(I.highlighted),"data-half":E(I.half),onPointerDown(S){a&&pr(S)&&S.preventDefault()},onPointerMove(S){if(!a)return;const x=He(S),R=Qo(x,S.currentTarget).getPercentValue({orientation:"horizontal",dir:o("dir")})<.5;n({type:"POINTER_OVER",index:h,isMidway:R})},onKeyDown(S){if(S.defaultPrevented||!a)return;const x={ArrowLeft(){n({type:"ARROW_LEFT"})},ArrowRight(){n({type:"ARROW_RIGHT"})},ArrowUp(){n({type:"ARROW_LEFT"})},ArrowDown(){n({type:"ARROW_RIGHT"})},Space(){n({type:"SPACE",value:h})},Home(){n({type:"HOME"})},End(){n({type:"END"})}},b=We(S,{dir:o("dir")}),y=x[b];y&&(S.preventDefault(),y(S))},onClick(){a&&n({type:"CLICK",value:h})},onFocus(){a&&n({type:"FOCUS"})},onBlur(){a&&n({type:"BLUR"})}})}}}var Lx={props({props:e}){return{name:"rating",count:5,dir:"ltr",defaultValue:-1,...e,translations:{ratingValueText:t=>`${t} stars`,...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){e("onValueChange")?.({value:r})}})),hoveredValue:t(()=>({defaultValue:-1,onChange(r){e("onHoverChange")?.({hoveredValue:r})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},watch({track:e,action:t,prop:r,context:n}){e([()=>r("allowHalf")],()=>{t(["roundValueIfNeeded"])}),e([()=>n.get("value")],()=>{t(["dispatchChangeEvent"])})},computed:{isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({computed:e,prop:t})=>!(e("isDisabled")||t("readOnly")),isHovering:({context:e})=>e.get("hoveredValue")>-1},effects:["trackFormControlState"],on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]}},states:{idle:{entry:["clearHoveredValue"],on:{GROUP_POINTER_OVER:{target:"hover"},FOCUS:{target:"focus"},CLICK:{actions:["setValue","focusActiveRadio"]}}},focus:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:{actions:["clearHoveredValue"]},BLUR:{target:"idle"},SPACE:{guard:"isValueEmpty",actions:["setValue"]},CLICK:{actions:["setValue","focusActiveRadio"]},ARROW_LEFT:{actions:["setPrevValue","focusActiveRadio"]},ARROW_RIGHT:{actions:["setNextValue","focusActiveRadio"]},HOME:{actions:["setValueToMin","focusActiveRadio"]},END:{actions:["setValueToMax","focusActiveRadio"]}}},hover:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:[{guard:"isRadioFocused",target:"focus",actions:["clearHoveredValue"]},{target:"idle",actions:["clearHoveredValue"]}],CLICK:{actions:["setValue","focusActiveRadio"]}}}},implementations:{guards:{isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),isHoveredValueEmpty:({context:e})=>e.get("hoveredValue")===-1,isValueEmpty:({context:e})=>e.get("value")<=0,isRadioFocused:({scope:e})=>!!th(e)?.contains(e.getActiveElement())},effects:{trackFormControlState({context:e,scope:t}){return Nt(nh(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})}},actions:{clearHoveredValue({context:e}){e.set("hoveredValue",-1)},focusActiveRadio({scope:e,context:t}){_(()=>rh(e,t.get("value"))?.focus())},setPrevValue({context:e,prop:t}){const r=t("allowHalf")?.5:1;e.set("value",Math.max(0,e.get("value")-r))},setNextValue({context:e,prop:t}){const r=t("allowHalf")?.5:1,n=e.get("value")===-1?0:e.get("value");e.set("value",Math.min(t("count"),n+r))},setValueToMin({context:e}){e.set("value",1)},setValueToMax({context:e,prop:t}){e.set("value",t("count"))},setValue({context:e,event:t}){const r=e.get("hoveredValue"),n=r===-1?t.value:r;e.set("value",n)},clearValue({context:e}){e.set("value",-1)},setHoveredValue({context:e,prop:t,event:r}){const o=t("allowHalf")&&r.isMidway?.5:0;e.set("hoveredValue",r.index-o)},roundValueIfNeeded({context:e,prop:t}){t("allowHalf")||e.set("value",Math.round(e.get("value")))},dispatchChangeEvent({context:e,scope:t}){Fx(t,e.get("value"))}}}};B()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);B()(["index"]);const Dx=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o=se(),i={id:t,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:n,disabled:o?.disabled,readOnly:o?.readOnly,required:o?.required,getRootNode:r,...e},s=J(Lx,i);return Vx(s,te)},oh=v.forwardRef((e,t)=>{const[r,n]=$()(e,["allowHalf","autoFocus","count","defaultValue","disabled","form","id","ids","name","onHoverChange","onValueChange","readOnly","required","translations","value"]),o=Dx(r),i=P(o.getRootProps(),n);return m.jsx(Km,{value:o,children:m.jsx(C.div,{...i,ref:t})})});oh.displayName="RatingGroupRoot";const ih=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(Km,{value:r,children:m.jsx(C.div,{...o,ref:t})})});ih.displayName="RatingGroupRootProvider";const sh=ya.rename("segment-group");sh.build();const[ah,Re]=j({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),lh=v.forwardRef((e,t)=>{const r=Re(),n=P(r.getClearTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});lh.displayName="SelectClearTrigger";const ch=v.forwardRef((e,t)=>{const r=Re(),n=ve(),o=P(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:m.jsx(C.div,{...o,ref:Fe(n.ref,t)})});ch.displayName="SelectContent";const uh=v.forwardRef((e,t)=>{const r=Re(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});uh.displayName="SelectControl";const dh=v.forwardRef((e,t)=>{const r=Re(),n=P(r.getHiddenSelectProps(),e),o=r.value.length===0,i=se();return m.jsxs(C.select,{"aria-describedby":i?.ariaDescribedby,...n,ref:t,children:[o&&m.jsx("option",{value:""}),r.collection.items.map((s,a)=>m.jsx("option",{value:r.collection.getItemValue(s)??"",disabled:r.collection.getItemDisabled(s),children:r.collection.stringifyItem(s)},a))]})});dh.displayName="SelectHiddenSelect";const gh=v.forwardRef((e,t)=>{const r=Re(),n=P(r.getIndicatorProps(),e);return m.jsx(C.div,{...n,ref:t})});gh.displayName="SelectIndicator";const[$x,ON]=j({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[Mx,ph]=j({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),fh=v.forwardRef((e,t)=>{const[r,n]=$()(e,["item","persistFocus"]),o=Re(),i=P(o.getItemProps(r),n),s=o.getItemState(r);return m.jsx(Mx,{value:r,children:m.jsx($x,{value:s,children:m.jsx(C.div,{...i,ref:t})})})});fh.displayName="SelectItem";const[_x,jx]=j({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),mh=v.forwardRef((e,t)=>{const r=v.useId(),[n,o]=$()(e,["id"]),i={id:r,...n},s=Re(),a=P(s.getItemGroupProps(i),o);return m.jsx(_x,{value:i,children:m.jsx(C.div,{...a,ref:t})})});mh.displayName="SelectItemGroup";const hh=v.forwardRef((e,t)=>{const r=Re(),n=jx(),o=P(r.getItemGroupLabelProps({htmlFor:n.id}),e);return m.jsx(C.div,{...o,ref:t})});hh.displayName="SelectItemGroupLabel";const vh=v.forwardRef((e,t)=>{const r=Re(),n=ph(),o=P(r.getItemIndicatorProps(n),e);return m.jsx(C.div,{...o,ref:t})});vh.displayName="SelectItemIndicator";const yh=v.forwardRef((e,t)=>{const r=Re(),n=ph(),o=P(r.getItemTextProps(n),e);return m.jsx(C.span,{...o,ref:t})});yh.displayName="SelectItemText";const bh=v.forwardRef((e,t)=>{const r=Re(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});bh.displayName="SelectLabel";const Ph=v.forwardRef((e,t)=>{const r=Re(),n=P(r.getPositionerProps(),e);return ve().unmounted?null:m.jsx(C.div,{...n,ref:t})});Ph.displayName="SelectPositioner";var Eh=q("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"),Ce=Eh.build(),Ch=e=>new ga(e);Ch.empty=()=>new ga({items:[]});var Gx=e=>e.ids?.root??`select:${e.id}`,Ts=e=>e.ids?.content??`select:${e.id}:content`,Rs=e=>e.ids?.trigger??`select:${e.id}:trigger`,Ih=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,io=e=>e.ids?.label??`select:${e.id}:label`,Bx=e=>e.ids?.control??`select:${e.id}:control`,Ss=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Os=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,Th=e=>e.ids?.positioner??`select:${e.id}:positioner`,Ux=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,Yl=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,_i=e=>e.getById(Os(e)),Hr=e=>e.getById(Ts(e)),_t=e=>e.getById(Rs(e)),Hx=e=>e.getById(Ih(e)),Xl=e=>e.getById(Th(e)),Wx=(e,t)=>e.getById(Ss(e,t));function qx(e,t){const{context:r,prop:n,scope:o,state:i,computed:s,send:a}=e,l=n("disabled")||r.get("fieldsetDisabled"),u=n("invalid"),p=n("readOnly"),g=n("composite"),c=n("collection"),d=i.hasTag("open"),f=i.matches("focused"),h=r.get("highlightedValue"),I=r.get("highlightedItem"),T=r.get("selectedItems"),S=r.get("currentPlacement"),x=s("isTypingAhead"),b=s("isInteractive"),y=h?Ss(o,h):void 0;function R(w){const N=c.getItemDisabled(w.item),F=c.getItemValue(w.item);return nu(F,()=>`[zag-js] No value found for item ${JSON.stringify(w.item)}`),{value:F,disabled:!!(l||N),highlighted:h===F,selected:r.get("value").includes(F)}}const O=br({...n("positioning"),placement:S});return{open:d,focused:f,empty:r.get("value").length===0,highlightedItem:I,highlightedValue:h,selectedItems:T,hasSelectedItems:s("hasSelectedItems"),value:r.get("value"),valueAsString:r.get("valueAsString"),collection:c,multiple:!!n("multiple"),disabled:!!l,reposition(w={}){a({type:"POSITIONING.SET",options:w})},focus(){_t(o)?.focus({preventScroll:!0})},setOpen(w){i.hasTag("open")!==w&&a({type:w?"OPEN":"CLOSE"})},selectValue(w){a({type:"ITEM.SELECT",value:w})},setValue(w){a({type:"VALUE.SET",value:w})},selectAll(){a({type:"VALUE.SET",value:c.getValues()})},highlightValue(w){a({type:"HIGHLIGHTED_VALUE.SET",value:w})},clearValue(w){a(w?{type:"ITEM.CLEAR",value:w}:{type:"VALUE.CLEAR"})},getItemState:R,getRootProps(){return t.element({...Ce.root.attrs,dir:n("dir"),id:Gx(o),"data-invalid":E(u),"data-readonly":E(p)})},getLabelProps(){return t.label({dir:n("dir"),id:io(o),...Ce.label.attrs,"data-disabled":E(l),"data-invalid":E(u),"data-readonly":E(p),htmlFor:Os(o),onClick(w){w.defaultPrevented||l||_t(o)?.focus({preventScroll:!0})}})},getControlProps(){return t.element({...Ce.control.attrs,dir:n("dir"),id:Bx(o),"data-state":d?"open":"closed","data-focus":E(f),"data-disabled":E(l),"data-invalid":E(u)})},getValueTextProps(){return t.element({...Ce.valueText.attrs,dir:n("dir"),"data-disabled":E(l),"data-invalid":E(u),"data-focus":E(f)})},getTriggerProps(){return t.button({id:Rs(o),disabled:l,dir:n("dir"),type:"button",role:"combobox","aria-controls":Ts(o),"aria-expanded":d,"aria-haspopup":"listbox","data-state":d?"open":"closed","aria-invalid":u,"aria-labelledby":io(o),...Ce.trigger.attrs,"data-disabled":E(l),"data-invalid":E(u),"data-readonly":E(p),"data-placement":S,"data-placeholder-shown":E(!s("hasSelectedItems")),onClick(w){b&&(w.defaultPrevented||a({type:"TRIGGER.CLICK"}))},onFocus(){a({type:"TRIGGER.FOCUS"})},onBlur(){a({type:"TRIGGER.BLUR"})},onKeyDown(w){if(w.defaultPrevented||!b)return;const F={ArrowUp(){a({type:"TRIGGER.ARROW_UP"})},ArrowDown(A){a({type:A.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){a({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){a({type:"TRIGGER.ARROW_RIGHT"})},Home(){a({type:"TRIGGER.HOME"})},End(){a({type:"TRIGGER.END"})},Enter(){a({type:"TRIGGER.ENTER"})},Space(A){a(x?{type:"TRIGGER.TYPEAHEAD",key:A.key}:{type:"TRIGGER.ENTER"})}}[We(w,{dir:n("dir"),orientation:"vertical"})];if(F){F(w),w.preventDefault();return}gn.isValidEvent(w)&&(a({type:"TRIGGER.TYPEAHEAD",key:w.key}),w.preventDefault())}})},getIndicatorProps(){return t.element({...Ce.indicator.attrs,dir:n("dir"),"aria-hidden":!0,"data-state":d?"open":"closed","data-disabled":E(l),"data-invalid":E(u),"data-readonly":E(p)})},getItemProps(w){const N=R(w);return t.element({id:Ss(o,N.value),role:"option",...Ce.item.attrs,dir:n("dir"),"data-value":N.value,"aria-selected":N.selected,"data-state":N.selected?"checked":"unchecked","data-highlighted":E(N.highlighted),"data-disabled":E(N.disabled),"aria-disabled":Me(N.disabled),onPointerMove(F){N.disabled||F.pointerType!=="mouse"||N.value!==h&&a({type:"ITEM.POINTER_MOVE",value:N.value})},onClick(F){F.defaultPrevented||N.disabled||a({type:"ITEM.CLICK",src:"pointerup",value:N.value})},onPointerLeave(F){N.disabled||w.persistFocus||F.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER")||a({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(w){const N=R(w);return t.element({...Ce.itemText.attrs,"data-state":N.selected?"checked":"unchecked","data-disabled":E(N.disabled),"data-highlighted":E(N.highlighted)})},getItemIndicatorProps(w){const N=R(w);return t.element({"aria-hidden":!0,...Ce.itemIndicator.attrs,"data-state":N.selected?"checked":"unchecked",hidden:!N.selected})},getItemGroupLabelProps(w){const{htmlFor:N}=w;return t.element({...Ce.itemGroupLabel.attrs,id:Yl(o,N),dir:n("dir"),role:"presentation"})},getItemGroupProps(w){const{id:N}=w;return t.element({...Ce.itemGroup.attrs,"data-disabled":E(l),id:Ux(o,N),"aria-labelledby":Yl(o,N),role:"group",dir:n("dir")})},getClearTriggerProps(){return t.button({...Ce.clearTrigger.attrs,id:Ih(o),type:"button","aria-label":"Clear value","data-invalid":E(u),disabled:l,hidden:!s("hasSelectedItems"),dir:n("dir"),onClick(w){w.defaultPrevented||a({type:"CLEAR.CLICK"})}})},getHiddenSelectProps(){const w=r.get("value"),N=n("multiple")?w:w?.[0];return t.select({name:n("name"),form:n("form"),disabled:l,multiple:n("multiple"),required:n("required"),"aria-hidden":!0,id:Os(o),defaultValue:N,style:qt,tabIndex:-1,onFocus(){_t(o)?.focus({preventScroll:!0})},"aria-labelledby":io(o)})},getPositionerProps(){return t.element({...Ce.positioner.attrs,dir:n("dir"),id:Th(o),style:O.floating})},getContentProps(){return t.element({hidden:!d,dir:n("dir"),id:Ts(o),role:g?"listbox":"dialog",...Ce.content.attrs,"data-state":d?"open":"closed","data-placement":S,"data-activedescendant":y,"aria-activedescendant":g?y:void 0,"aria-multiselectable":n("multiple")&&g?!0:void 0,"aria-labelledby":io(o),tabIndex:0,onKeyDown(w){if(!b||!cn(w))return;if(w.key==="Tab"&&!Vc(w)){w.preventDefault();return}const N={ArrowUp(){a({type:"CONTENT.ARROW_UP"})},ArrowDown(){a({type:"CONTENT.ARROW_DOWN"})},Home(){a({type:"CONTENT.HOME"})},End(){a({type:"CONTENT.END"})},Enter(){a({type:"ITEM.CLICK",src:"keydown.enter"})},Space(k){x?a({type:"CONTENT.TYPEAHEAD",key:k.key}):N.Enter?.(k)}},F=N[We(w)];if(F){F(w),w.preventDefault();return}const A=ce(w);qo(A)||gn.isValidEvent(w)&&(a({type:"CONTENT.TYPEAHEAD",key:w.key}),w.preventDefault())}})},getListProps(){return t.element({...Ce.list.attrs,tabIndex:0,role:g?void 0:"listbox","aria-labelledby":Rs(o),"aria-activedescendant":g?void 0:y,"aria-multiselectable":!g&&n("multiple")?!0:void 0})}}}var{and:Wr,not:Dt,or:Kx}=je(),zx={props({props:e}){return{loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??Ch.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Kt,onChange(r){const n=e("collection").findMany(r);return e("onValueChange")?.({value:r,items:n})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(r){e("onHighlightChange")?.({highlightedValue:r,highlightedItem:e("collection").find(r),highlightedIndex:e("collection").indexOf(r)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const r=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(r)}}),valueAsString:t(()=>{const r=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").stringifyMany(r)}})}},refs(){return{typeahead:{...gn.defaultOptions}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly"))},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},entry:["syncSelectElement"],watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:Kx("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:Wr(Dt("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:Dt("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:Wr(Dt("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:Dt("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:Dt("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:Dt("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:Dt("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:Wr("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:Wr("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:Wr("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>Zl(e),isOpenControlled:({prop:e})=>e("open")!==void 0,isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState({context:e,scope:t}){return Nt(_i(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){const r=e.initial("value");e.set("value",r)}})},trackDismissableElement({scope:e,send:t,prop:r}){const n=()=>Hr(e);let o=!0;return Pr(n,{defer:!0,exclude:[_t(e),Hx(e)],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(i){r("onInteractOutside")?.(i),o=!(i.detail.focusable||i.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},computePlacement({context:e,prop:t,scope:r}){const n=t("positioning");return e.set("currentPlacement",n.placement),ze(()=>_t(r),()=>Xl(r),{defer:!0,...n,onComplete(s){e.set("currentPlacement",s.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){const o=s=>{const a=e.get("highlightedValue");if(a==null||n.current().type.includes("POINTER"))return;const l=Wx(r,a),u=Hr(r),p=t("scrollToIndexFn");if(p){const g=t("collection").indexOf(a);p?.({index:g,immediate:s});return}$c(l,{rootEl:u,block:"nearest"})};return _(()=>o(!0)),Jo(()=>Hr(r),{defer:!0,attributes:["data-activedescendant"],callback(){o(!1)}})}},actions:{reposition({context:e,prop:t,scope:r,event:n}){const o=()=>Xl(r);ze(_t(r),o,{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(i){e.set("currentPlacement",i.placement)}})},toggleVisibility({send:e,prop:t,event:r}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})},highlightPreviousItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const n=t("collection").getPreviousValue(r,1,t("loopFocus"));e.set("highlightedValue",n)},highlightNextItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const n=t("collection").getNextValue(r,1,t("loopFocus"));e.set("highlightedValue",n)},highlightFirstItem({context:e,prop:t}){const r=t("collection").firstValue;e.set("highlightedValue",r)},highlightLastItem({context:e,prop:t}){const r=t("collection").lastValue;e.set("highlightedValue",r)},setInitialFocus({scope:e}){_(()=>{un({root:Hr(e)})?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){Zl(e)&&_(()=>{_t(t)?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:r}){let n=r.value??e.get("highlightedValue");if(n==null)return;n=t("deselectable")&&!t("multiple")&&e.get("value").includes(n)?null:n,e.set("value",i=>n==null?[]:t("multiple")?_a(i,n):[n])},highlightComputedFirstItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.firstValue;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:r}){if(!r("hasSelectedItems"))return;const n=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",n)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r}){const o=t("deselectable")&&!t("multiple")&&e.get("value").includes(r.value)?null:r.value;e.set("value",i=>o==null?[]:t("multiple")?_a(i,o):[o])},clearItem({context:e,event:t}){e.set("value",r=>r.filter(n=>n!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getPreviousValue(r);n&&e.set("value",[n])},selectNextItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getNextValue(r);n&&e.set("value",[n])},selectFirstItem({context:e,prop:t}){const r=t("collection").firstValue;r&&e.set("value",[r])},selectLastItem({context:e,prop:t}){const r=t("collection").lastValue;r&&e.set("value",[r])},selectMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("value")[0]});o!=null&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){e("scrollToIndexFn")?e("scrollToIndexFn")?.({index:0,immediate:!0}):Hr(t)?.scrollTo(0,0)},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},syncSelectElement({context:e,prop:t,scope:r}){const n=_i(r);if(n){if(e.get("value").length===0&&!t("multiple")){n.selectedIndex=-1;return}for(const o of n.options)o.selected=e.get("value").includes(o.value)}},syncCollection({context:e,prop:t}){const r=t("collection"),n=r.find(e.get("highlightedValue"));n&&e.set("highlightedItem",n);const o=r.findMany(e.get("value"));e.set("selectedItems",o);const i=r.stringifyItems(o);e.set("valueAsString",i)},syncSelectedItems({context:e,prop:t}){const r=t("collection"),n=e.get("selectedItems"),i=e.get("value").map(s=>n.find(l=>r.getItemValue(l)===s)||r.find(s));e.set("selectedItems",i),e.set("valueAsString",r.stringifyItems(i))},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue"),o=n?r.find(n):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{const t=_i(e);if(!t)return;const r=e.getWin(),n=new r.Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(n)})}}}};function Zl(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}B()(["closeOnSelect","collection","dir","disabled","deselectable","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","defaultOpen","open","composite","positioning","required","readOnly","scrollToIndexFn","value","defaultValue","defaultHighlightedValue"]);B()(["item","persistFocus"]);B()(["id"]);B()(["htmlFor"]);const Yx=e=>{const t=v.useId(),{dir:r}=Q(),{getRootNode:n}=Z(),o=se(),i={id:t,ids:{label:o?.ids.label,hiddenSelect:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,dir:r,getRootNode:n,...e},s=J(zx,i);return qx(s,te)},Xx=(e,t)=>{const[r,n]=Te(e),[o,i]=$()(n,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),s=Yx(o),a=ye(P({present:s.open},r)),l=P(s.getRootProps(),i);return m.jsx(ah,{value:s,children:m.jsx(Ie,{value:a,children:m.jsx(C.div,{...l,ref:t})})})},Zx=v.forwardRef(Xx),Jx=(e,t)=>{const[r,n]=Te(e),[{value:o},i]=$()(n,["value"]),s=ye(P({present:o.open},r)),a=P(o.getRootProps(),i);return m.jsx(ah,{value:o,children:m.jsx(Ie,{value:s,children:m.jsx(C.div,{...a,ref:t})})})},Qx=v.forwardRef(Jx),Rh=v.forwardRef((e,t)=>{const r=Re(),n=P(r.getTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Rh.displayName="SelectTrigger";const Sh=v.forwardRef((e,t)=>{const{children:r,placeholder:n,...o}=e,i=Re(),s=P(i.getValueTextProps(),o);return m.jsx(C.span,{...s,ref:t,children:r||i.valueAsString||n})});Sh.displayName="SelectValueText";const[Oh,Be]=j({name:"SliderContext",hookName:"useSliderContext",providerName:"<SliderProvider />"}),ew=e=>e.children(Be()),xh=v.forwardRef((e,t)=>{const r=Be(),n=P(r.getControlProps(),e);return m.jsx(C.div,{...n,ref:t})});xh.displayName="SliderControl";const[tw,wh]=j({name:"SliderThumbPropsContext",hookName:"useSliderThumbPropsContext",providerName:"<SliderThumbPropsProvider />"}),Nh=v.forwardRef((e,t)=>{const r=Be(),{index:n}=wh(),o=P(r.getDraggingIndicatorProps({index:n}),e);return m.jsx(C.span,{...o,ref:t,children:e.children||r.getThumbValue(n)})});Nh.displayName="SliderDraggingIndicator";const kh=v.forwardRef((e,t)=>{const r=Be(),n=wh(),o=P(r.getHiddenInputProps(n),e);return m.jsx(C.input,{...o,ref:t})});kh.displayName="SliderHiddenInput";const Ah=v.forwardRef((e,t)=>{const r=Be(),n=P(r.getLabelProps(),e);return m.jsx(C.label,{...n,ref:t})});Ah.displayName="SliderLabel";const Fh=v.forwardRef((e,t)=>{const[r,n]=$()(e,["value"]),o=Be(),i=P(o.getMarkerProps(r),n);return m.jsx(C.span,{...i,ref:t})});Fh.displayName="SliderMarker";const Vh=v.forwardRef((e,t)=>{const r=Be(),n=P(r.getMarkerGroupProps(),e);return m.jsx(C.div,{...n,ref:t})});Vh.displayName="SliderMarkerGroup";const Lh=v.forwardRef((e,t)=>{const r=Be(),n=P(r.getRangeProps(),e);return m.jsx(C.div,{...n,ref:t})});Lh.displayName="SliderRange";var Dh=q("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator"),Ze=Dh.build(),$h=e=>e.ids?.root??`slider:${e.id}`,Mh=(e,t)=>e.ids?.thumb?.(t)??`slider:${e.id}:thumb:${t}`,xs=(e,t)=>e.ids?.hiddenInput?.(t)??`slider:${e.id}:input:${t}`,_h=e=>e.ids?.control??`slider:${e.id}:control`,rw=e=>e.ids?.track??`slider:${e.id}:track`,nw=e=>e.ids?.range??`slider:${e.id}:range`,Jl=e=>e.ids?.label??`slider:${e.id}:label`,ow=e=>e.ids?.valueText??`slider:${e.id}:value-text`,iw=(e,t)=>e.ids?.marker?.(t)??`slider:${e.id}:marker:${t}`,sw=e=>e.getById($h(e)),aw=(e,t)=>e.getById(Mh(e,t)),jh=e=>St(Bh(e),"[role=slider]"),lw=e=>jh(e)[0],Gh=(e,t)=>e.getById(xs(e,t)),Bh=e=>e.getById(_h(e)),Ql=(e,t)=>{const{prop:r,scope:n}=e,o=Bh(n);if(!o)return;const s=Qo(t,o).getPercentValue({orientation:r("orientation"),dir:r("dir"),inverted:{y:!0}});return qs(s,r("min"),r("max"),r("step"))},cw=(e,t)=>{t.forEach((r,n)=>{const o=Gh(e,n);o&&Xo(o,{value:r})})},uw=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0});function dw(e){const t=e[0],r=e[e.length-1];return[t,r]}function gw(e){const{prop:t,computed:r}=e,n=r("valuePercent"),[o,i]=dw(n);if(n.length===1){if(t("origin")==="center"){const s=n[0]<50,a=s?`${n[0]}%`:"50%",l=s?"50%":`${100-n[0]}%`;return{start:a,end:l}}return t("origin")==="end"?{start:`${i}%`,end:"0%"}:{start:"0%",end:`${100-i}%`}}return{start:`${o}%`,end:`${100-i}%`}}function pw(e){const{computed:t}=e,r=t("isVertical"),n=t("isRtl");return r?{position:"absolute",bottom:"var(--slider-range-start)",top:"var(--slider-range-end)"}:{position:"absolute",[n?"right":"left"]:"var(--slider-range-start)",[n?"left":"right"]:"var(--slider-range-end)"}}function fw(e,t){const{context:r,prop:n}=e,{height:o=0}=r.get("thumbSize")??{},i=Ki([n("min"),n("max")],[-o/2,o/2]);return parseFloat(i(t).toFixed(2))}function mw(e,t){const{computed:r,context:n,prop:o}=e,{width:i=0}=n.get("thumbSize")??{};if(r("isRtl")){const l=Ki([o("max"),o("min")],[-i/2,i/2]);return-1*parseFloat(l(t).toFixed(2))}const a=Ki([o("min"),o("max")],[-i/2,i/2]);return parseFloat(a(t).toFixed(2))}function hw(e,t,r){const{computed:n,prop:o}=e;if(o("thumbAlignment")==="center")return`${t}%`;const i=n("isVertical")?fw(e,r):mw(e,r);return`calc(${t}% - ${i}px)`}function Uh(e,t){const{prop:r}=e,n=In(t,r("min"),r("max"))*100;return hw(e,n,t)}function Hh(e){const{computed:t,prop:r}=e;let n="visible";return r("thumbAlignment")==="contain"&&!t("hasMeasuredThumbSize")&&(n="hidden"),n}function ec(e,t){const{computed:r}=e,n=r("isVertical")?"bottom":"insetInlineStart";return{visibility:Hh(e),position:"absolute",transform:"var(--slider-thumb-transform)",[n]:`var(--slider-thumb-offset-${t})`}}function vw(){return{touchAction:"none",userSelect:"none",WebkitUserSelect:"none",position:"relative"}}function yw(e){const{context:t,computed:r}=e,n=r("isVertical"),o=r("isRtl"),i=gw(e),s=t.get("thumbSize");return{...t.get("value").reduce((l,u,p)=>{const g=Uh(e,u);return{...l,[`--slider-thumb-offset-${p}`]:g}},{}),"--slider-thumb-width":Ba(s?.width),"--slider-thumb-height":Ba(s?.height),"--slider-thumb-transform":n?"translateY(50%)":o?"translateX(50%)":"translateX(-50%)","--slider-range-start":i.start,"--slider-range-end":i.end}}function bw(e,t){const{computed:r}=e,n=r("isHorizontal"),o=r("isRtl");return{visibility:Hh(e),position:"absolute",pointerEvents:"none",[n?"insetInlineStart":"bottom"]:Uh(e,t),translate:"var(--tx) var(--ty)","--tx":n?o?"50%":"-50%":"0%","--ty":n?"0%":"50%"}}function Pw(){return{userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none",position:"relative"}}function Ew(e,t){return t.map((r,n)=>ws(e,r,n))}function Rt(e,t){const{context:r,prop:n}=e;return tu(r.get("value"),n("min"),n("max"),n("minStepsBetweenThumbs"))[t]}function ws(e,t,r){const{prop:n}=e,o=Rt(e,r),i=fn(t,n("min"),n("max"),n("step"));return me(i,o.min,o.max)}function Cw(e,t,r){const{context:n,prop:o}=e,i=t??n.get("focusedIndex"),s=Rt(e,i),a=Xb(i,{...s,step:r??o("step"),values:n.get("value")});return a[i]=me(a[i],s.min,s.max),a}function Iw(e,t,r){const{context:n,prop:o}=e,i=t??n.get("focusedIndex"),s=Rt(e,i),a=Yb(i,{...s,step:r??o("step"),values:n.get("value")});return a[i]=me(a[i],s.min,s.max),a}function Tw(e,t){const{context:r}=e;return Zb(r.get("value"),t)}function Rw(e,t){const{state:r,send:n,context:o,prop:i,computed:s,scope:a}=e,l=i("aria-label"),u=i("aria-labelledby"),p=o.get("value"),g=o.get("focusedIndex"),c=r.matches("focus"),d=r.matches("dragging"),f=s("isDisabled"),h=i("invalid"),I=s("isInteractive"),T=i("orientation")==="horizontal",S=i("orientation")==="vertical";function x(y){return In(y,i("min"),i("max"))}function b(y){return qs(y,i("min"),i("max"),i("step"))}return{value:p,dragging:d,focused:c,setValue(y){n({type:"SET_VALUE",value:y})},getThumbValue(y){return p[y]},setThumbValue(y,R){n({type:"SET_VALUE",index:y,value:R})},getValuePercent:x,getPercentValue:b,getThumbPercent(y){return x(p[y])},setThumbPercent(y,R){const O=b(R);n({type:"SET_VALUE",index:y,value:O})},getThumbMin(y){return Rt(e,y).min},getThumbMax(y){return Rt(e,y).max},increment(y){n({type:"INCREMENT",index:y})},decrement(y){n({type:"DECREMENT",index:y})},focus(){I&&n({type:"FOCUS",index:0})},getLabelProps(){return t.label({...Ze.label.attrs,dir:i("dir"),"data-disabled":E(f),"data-orientation":i("orientation"),"data-invalid":E(h),"data-dragging":E(d),"data-focus":E(c),id:Jl(a),htmlFor:xs(a,0),onClick(y){I&&(y.preventDefault(),lw(a)?.focus())},style:{userSelect:"none",WebkitUserSelect:"none"}})},getRootProps(){return t.element({...Ze.root.attrs,"data-disabled":E(f),"data-orientation":i("orientation"),"data-dragging":E(d),"data-invalid":E(h),"data-focus":E(c),id:$h(a),dir:i("dir"),style:yw(e)})},getValueTextProps(){return t.element({...Ze.valueText.attrs,dir:i("dir"),"data-disabled":E(f),"data-orientation":i("orientation"),"data-invalid":E(h),"data-focus":E(c),id:ow(a)})},getTrackProps(){return t.element({...Ze.track.attrs,dir:i("dir"),id:rw(a),"data-disabled":E(f),"data-invalid":E(h),"data-dragging":E(d),"data-orientation":i("orientation"),"data-focus":E(c),style:{position:"relative"}})},getThumbProps(y){const{index:R=0,name:O}=y,w=p[R],N=Rt(e,R),F=i("getAriaValueText")?.({value:w,index:R}),A=Array.isArray(l)?l[R]:l,k=Array.isArray(u)?u[R]:u;return t.element({...Ze.thumb.attrs,dir:i("dir"),"data-index":R,"data-name":O,id:Mh(a,R),"data-disabled":E(f),"data-orientation":i("orientation"),"data-focus":E(c&&g===R),"data-dragging":E(d&&g===R),draggable:!1,"aria-disabled":Me(f),"aria-label":A,"aria-labelledby":k??Jl(a),"aria-orientation":i("orientation"),"aria-valuemax":N.max,"aria-valuemin":N.min,"aria-valuenow":p[R],"aria-valuetext":F,role:"slider",tabIndex:f?void 0:0,style:ec(e,R),onPointerDown(L){I&&(n({type:"THUMB_POINTER_DOWN",index:R}),L.stopPropagation())},onBlur(){I&&n({type:"BLUR"})},onFocus(){I&&n({type:"FOCUS",index:R})},onKeyDown(L){if(L.defaultPrevented||!I)return;const D=To(L)*i("step"),M={ArrowUp(){T||n({type:"ARROW_INC",step:D,src:"ArrowUp"})},ArrowDown(){T||n({type:"ARROW_DEC",step:D,src:"ArrowDown"})},ArrowLeft(){S||n({type:"ARROW_DEC",step:D,src:"ArrowLeft"})},ArrowRight(){S||n({type:"ARROW_INC",step:D,src:"ArrowRight"})},PageUp(){n({type:"ARROW_INC",step:D,src:"PageUp"})},PageDown(){n({type:"ARROW_DEC",step:D,src:"PageDown"})},Home(){n({type:"HOME"})},End(){n({type:"END"})}},K=We(L,{dir:i("dir"),orientation:i("orientation")}),z=M[K];z&&(z(L),L.preventDefault(),L.stopPropagation())}})},getHiddenInputProps(y){const{index:R=0,name:O}=y;return t.input({name:O??(i("name")?i("name")+(p.length>1?"[]":""):void 0),form:i("form"),type:"text",hidden:!0,defaultValue:p[R],id:xs(a,R)})},getRangeProps(){return t.element({id:nw(a),...Ze.range.attrs,dir:i("dir"),"data-dragging":E(d),"data-focus":E(c),"data-invalid":E(h),"data-disabled":E(f),"data-orientation":i("orientation"),style:pw(e)})},getControlProps(){return t.element({...Ze.control.attrs,dir:i("dir"),id:_h(a),"data-dragging":E(d),"data-disabled":E(f),"data-orientation":i("orientation"),"data-invalid":E(h),"data-focus":E(c),style:vw(),onPointerDown(y){if(!I||!pr(y)||Gt(y))return;const R=He(y);n({type:"POINTER_DOWN",point:R}),y.preventDefault(),y.stopPropagation()}})},getMarkerGroupProps(){return t.element({...Ze.markerGroup.attrs,role:"presentation",dir:i("dir"),"aria-hidden":!0,"data-orientation":i("orientation"),style:Pw()})},getMarkerProps(y){const R=bw(e,y.value);let O;return y.value<ei(p)?O="under-value":y.value>ti(p)?O="over-value":O="at-value",t.element({...Ze.marker.attrs,id:iw(a,y.value),role:"presentation",dir:i("dir"),"data-orientation":i("orientation"),"data-value":y.value,"data-disabled":E(f),"data-state":O,style:R})},getDraggingIndicatorProps(y){const{index:R=0}=y,O=R===g&&d;return t.element({...Ze.draggingIndicator.attrs,role:"presentation",dir:i("dir"),hidden:!O,"data-orientation":i("orientation"),"data-state":O?"open":"closed",style:ec(e,R)})}}}var Sw=(e,t)=>e?.width===t?.width&&e?.height===t?.height,tc=(e,t,r,n,o)=>tu(e,t,r,o*n).map(s=>{const a=fn(s.value,s.min,s.max,n);return me(a,s.min,s.max)}),Ow={props({props:e}){const t=e.min??0,r=e.max??100,n=e.step??1,o=e.defaultValue??[t],i=e.minStepsBetweenThumbs??0;return{dir:"ltr",thumbAlignment:"contain",origin:"start",orientation:"horizontal",minStepsBetweenThumbs:i,...e,defaultValue:tc(o,t,r,n,i),value:e.value?tc(e.value,t,r,n,i):void 0,max:r,step:n,min:t}},initialState(){return"idle"},context({prop:e,bindable:t,getContext:r}){return{thumbSize:t(()=>({defaultValue:e("thumbSize")||null})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Kt,hash(n){return n.join(",")},onChange(n){e("onValueChange")?.({value:n})}})),focusedIndex:t(()=>({defaultValue:-1,onChange(n){const o=r();e("onFocusChange")?.({focusedIndex:n,value:o.get("value")})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isHorizontal:({prop:e})=>e("orientation")==="horizontal",isVertical:({prop:e})=>e("orientation")==="vertical",isRtl:({prop:e})=>e("orientation")==="horizontal"&&e("dir")==="rtl",isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({prop:e,computed:t})=>!(e("readOnly")||t("isDisabled")),hasMeasuredThumbSize:({context:e})=>e.get("thumbSize")!=null,valuePercent({context:e,prop:t}){return e.get("value").map(r=>100*In(r,t("min"),t("max")))}},watch({track:e,action:t,context:r}){e([()=>r.hash("value")],()=>{t(["syncInputElements","dispatchChangeEvent"])})},effects:["trackFormControlState","trackThumbSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],INCREMENT:{actions:["incrementThumbAtIndex"]},DECREMENT:{actions:["decrementThumbAtIndex"]}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:["setFocusedIndex"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]}}},focus:{entry:["focusActiveThumb"],on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:["clearFocusedIndex"]}}},dragging:{entry:["focusActiveThumb"],effects:["trackPointerMove"],on:{POINTER_UP:{target:"focus",actions:["invokeOnChangeEnd"]},POINTER_MOVE:{actions:["setPointerValue"]}}}},implementations:{guards:{hasIndex:({event:e})=>e.index!=null},effects:{trackFormControlState({context:e,scope:t}){return Nt(sw(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},trackPointerMove({scope:e,send:t}){return _c(e.getDoc(),{onPointerMove(r){t({type:"POINTER_MOVE",point:r.point})},onPointerUp(){t({type:"POINTER_UP"})}})},trackThumbSize({context:e,scope:t,prop:r}){if(!(r("thumbAlignment")!=="contain"||r("thumbSize")))return Ws(jh(t),{box:"border-box",measure(n){return uw(n)},onEntry({rects:n}){const o=tP(n[0],["width","height"]);Sw(e.get("thumbSize"),o)||e.set("thumbSize",o)}})}},actions:{dispatchChangeEvent({context:e,scope:t}){cw(t,e.get("value"))},syncInputElements({context:e,scope:t}){e.get("value").forEach((r,n)=>{const o=Gh(t,n);Wt(o,r.toString())})},invokeOnChangeEnd({prop:e,context:t}){e("onValueChangeEnd")?.({value:t.get("value")})},setClosestThumbIndex(e){const{context:t,event:r}=e,n=Ql(e,r.point);if(n==null)return;const o=Tw(e,n);t.set("focusedIndex",o)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setPointerValue(e){queueMicrotask(()=>{const{context:t,event:r}=e,n=Ql(e,r.point);if(n==null)return;const o=t.get("focusedIndex"),i=ws(e,n,o);t.set("value",s=>Ct(s,o,i))})},focusActiveThumb({scope:e,context:t}){_(()=>{aw(e,t.get("focusedIndex"))?.focus({preventScroll:!0})})},decrementThumbAtIndex(e){const{context:t,event:r}=e,n=Cw(e,r.index,r.step);t.set("value",n)},incrementThumbAtIndex(e){const{context:t,event:r}=e,n=Iw(e,r.index,r.step);t.set("value",n)},setFocusedThumbToMin(e){const{context:t}=e,r=t.get("focusedIndex"),{min:n}=Rt(e,r);t.set("value",o=>Ct(o,r,n))},setFocusedThumbToMax(e){const{context:t}=e,r=t.get("focusedIndex"),{max:n}=Rt(e,r);t.set("value",o=>Ct(o,r,n))},setValueAtIndex(e){const{context:t,event:r}=e,n=ws(e,r.value,r.index);t.set("value",o=>Ct(o,r.index,n))},setValue(e){const{context:t,event:r}=e,n=Ew(e,r.value);t.set("value",n)}}}};B()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);B()(["index","name"]);const xw=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(Ow,o);return Rw(i,te)},Wh=v.forwardRef((e,t)=>{const[r,n]=$()(e,["aria-label","aria-labelledby","defaultValue","disabled","form","getAriaValueText","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value"]),o=xw(r),i=P(o.getRootProps(),n);return m.jsx(Oh,{value:o,children:m.jsx(C.div,{...i,ref:t})})});Wh.displayName="SliderRoot";const qh=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(Oh,{value:r,children:m.jsx(C.div,{...o,ref:t})})});qh.displayName="SliderRootProvider";const Kh=v.forwardRef((e,t)=>{const[r,n]=$()(e,["index","name"]),o=Be(),i=P(o.getThumbProps(r),n);return m.jsx(tw,{value:r,children:m.jsx(C.div,{...i,ref:t})})});Kh.displayName="SliderThumb";const zh=v.forwardRef((e,t)=>{const r=Be(),n=P(r.getTrackProps(),e);return m.jsx(C.div,{...n,ref:t})});zh.displayName="SliderTrack";const Yh=v.forwardRef((e,t)=>{const{children:r,...n}=e,o=Be(),i=P(o.getValueTextProps(),n);return m.jsx(C.span,{...i,ref:t,children:r||o.value.join(", ")})});Yh.displayName="SliderValueText";const[Xh,nt]=j({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),Zh=v.forwardRef((e,t)=>{const r=nt(),n=P(r.getContentProps({index:r.count}),e);return m.jsx(C.div,{...n,ref:t})});Zh.displayName="StepsCompletedContent";const Jh=v.forwardRef((e,t)=>{const[r,n]=$()(e,["index"]),o=nt(),i=P(o.getContentProps(r),n);return m.jsx(C.div,{...i,ref:t})});Jh.displayName="StepsContent";const Qh=e=>{const t=nt();return e.children(t)};Qh.displayName="StepsContext";const[ww,ba]=j({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),ev=v.forwardRef((e,t)=>{const r=nt(),n=ba(),o=P(r.getIndicatorProps(n),e);return m.jsx(C.div,{...o,ref:t})});ev.displayName="StepsIndicator";const[Nw,kw]=j({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),tv=v.forwardRef((e,t)=>{const[r,n]=$()(e,["index"]),o=nt(),i=P(o.getItemProps(r),n),s=o.getItemState(r);return m.jsx(ww,{value:r,children:m.jsx(Nw,{value:s,children:m.jsx(C.div,{...i,ref:t})})})});tv.displayName="StepsItem";const rv=e=>e.children(kw());rv.displayName="StepsItemContext";const nv=v.forwardRef((e,t)=>{const r=nt(),n=P(r.getListProps(),e);return m.jsx(C.div,{...n,ref:t})});nv.displayName="StepsList";const ov=v.forwardRef((e,t)=>{const r=nt(),n=P(r.getNextTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});ov.displayName="StepsNextTrigger";const iv=v.forwardRef((e,t)=>{const r=nt(),n=P(r.getPrevTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});iv.displayName="StepsPrevTrigger";var Aw=q("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),Je=Aw.build(),Fw=e=>e.ids?.root??`steps:${e.id}`,Vw=e=>e.ids?.list??`steps:${e.id}:list`,rc=(e,t)=>e.ids?.triggerId?.(t)??`steps:${e.id}:trigger:${t}`,Lw=(e,t)=>e.ids?.contentId?.(t)??`steps:${e.id}:content:${t}`;function Dw(e,t){const{context:r,send:n,computed:o,prop:i,scope:s}=e,a=r.get("step"),l=i("count"),u=o("percent"),p=o("hasNextStep"),g=o("hasPrevStep"),c=T=>({triggerId:rc(s,T.index),contentId:Lw(s,T.index),current:T.index===a,completed:T.index<a,incomplete:T.index>a,index:T.index,first:T.index===0,last:T.index===l-1}),d=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},f=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},h=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},I=T=>{n({type:"STEP.SET",value:T,src:"api.setValue"})};return{value:a,count:l,percent:u,hasNextStep:p,hasPrevStep:g,isCompleted:o("completed"),goToNextStep:d,goToPrevStep:f,resetStep:h,getItemState:c,setStep:I,getRootProps(){return t.element({...Je.root.attrs,id:Fw(s),dir:i("dir"),"data-orientation":i("orientation"),style:{"--percent":`${u}%`}})},getListProps(){const S=Ob(l).map((x,b)=>rc(s,b));return t.element({...Je.list.attrs,dir:i("dir"),id:Vw(s),role:"tablist","aria-owns":S.join(" "),"aria-orientation":i("orientation"),"data-orientation":i("orientation")})},getItemProps(T){const S=c(T);return t.element({...Je.item.attrs,dir:i("dir"),"aria-current":S.current?"step":void 0,"data-orientation":i("orientation")})},getTriggerProps(T){const S=c(T);return t.button({...Je.trigger.attrs,id:S.triggerId,role:"tab",dir:i("dir"),tabIndex:!i("linear")||S.current?0:-1,"aria-selected":S.current,"aria-controls":S.contentId,"data-state":S.current?"open":"closed","data-orientation":i("orientation"),"data-complete":E(S.completed),"data-current":E(S.current),"data-incomplete":E(S.incomplete),onClick(x){x.defaultPrevented||i("linear")||n({type:"STEP.SET",value:T.index,src:"trigger.click"})}})},getContentProps(T){const S=c(T);return t.element({...Je.content.attrs,dir:i("dir"),id:S.contentId,role:"tabpanel",tabIndex:0,hidden:!S.current,"data-state":S.current?"open":"closed","data-orientation":i("orientation"),"aria-labelledby":S.triggerId})},getIndicatorProps(T){const S=c(T);return t.element({...Je.indicator.attrs,dir:i("dir"),"aria-hidden":!0,"data-complete":E(S.completed),"data-current":E(S.current),"data-incomplete":E(S.incomplete)})},getSeparatorProps(T){const S=c(T);return t.element({...Je.separator.attrs,dir:i("dir"),"data-orientation":i("orientation"),"data-complete":E(S.completed),"data-current":E(S.current),"data-incomplete":E(S.incomplete)})},getNextTriggerProps(){return t.button({...Je.nextTrigger.attrs,dir:i("dir"),type:"button",disabled:!p,onClick(T){T.defaultPrevented||d()}})},getPrevTriggerProps(){return t.button({dir:i("dir"),...Je.prevTrigger.attrs,type:"button",disabled:!g,onClick(T){T.defaultPrevented||f()}})},getProgressProps(){return t.element({dir:i("dir"),...Je.progress.attrs,role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${u}% complete`,"data-complete":E(u===100)})}}}var $w={props({props:e}){return{defaultStep:0,count:1,linear:!1,orientation:"horizontal",...e}},context({prop:e,bindable:t}){return{step:t(()=>({defaultValue:e("defaultStep"),value:e("step"),onChange(r){e("onStepChange")?.({step:r}),r==e("count")&&e("onStepComplete")?.()}}))}},computed:{percent:({context:e,prop:t})=>e.get("step")/t("count")*100,hasNextStep:({context:e,prop:t})=>e.get("step")<t("count"),hasPrevStep:({context:e})=>e.get("step")>0,completed:({context:e,prop:t})=>e.get("step")===t("count")},initialState(){return"idle"},entry:["validateStep"],states:{idle:{on:{"STEP.SET":{actions:["setStep"]},"STEP.NEXT":{actions:["goToNextStep"]},"STEP.PREV":{actions:["goToPrevStep"]},"STEP.RESET":{actions:["resetStep"]}}}},implementations:{actions:{goToNextStep({context:e,prop:t}){const r=Math.min(e.get("step")+1,t("count"));e.set("step",r)},goToPrevStep({context:e}){const t=Math.max(e.get("step")-1,0);e.set("step",t)},resetStep({context:e}){e.set("step",0)},setStep({context:e,event:t}){e.set("step",t.value)},validateStep({context:e,prop:t}){Mw(t("count"),e.get("step"))}}}},Mw=(e,t)=>{if(!Qc(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};B()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);function _w(e){const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J($w,o);return Dw(i,te)}const sv=v.forwardRef((e,t)=>{const[r,n]=$()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=_w(r),i=P(o.getRootProps(),n);return m.jsx(Xh,{value:o,children:m.jsx(C.div,{...i,ref:t})})});sv.displayName="StepsRoot";const av=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(Xh,{value:r,children:m.jsx(C.div,{...o,ref:t,children:e.children})})});av.displayName="StepsRootProvider";const lv=v.forwardRef((e,t)=>{const r=nt(),n=ba(),o=P(r.getSeparatorProps(n),e);return m.jsx(C.div,{...o,ref:t})});lv.displayName="StepsSeparator";const cv=v.forwardRef((e,t)=>{const r=nt(),n=ba(),o=P(r.getTriggerProps(n),e);return m.jsx(C.button,{...o,ref:t})});cv.displayName="StepsTrigger";const[uv,kn]=j({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),dv=v.forwardRef((e,t)=>{const r=kn(),n=P(r.getControlProps(),e);return m.jsx(C.span,{...n,ref:t})});dv.displayName="SwitchControl";const gv=v.forwardRef((e,t)=>{const r=kn(),n=P(r.getHiddenInputProps(),e),o=se();return m.jsx(C.input,{"aria-describedby":o?.ariaDescribedby,...n,ref:t})});gv.displayName="SwitchHiddenInput";const pv=v.forwardRef((e,t)=>{const r=kn(),n=P(r.getLabelProps(),e);return m.jsx(C.span,{...n,ref:t})});pv.displayName="SwitchLabel";var fv=q("switch").parts("root","label","control","thumb"),so=fv.build(),mv=e=>e.ids?.root??`switch:${e.id}`,nc=e=>e.ids?.label??`switch:${e.id}:label`,jw=e=>e.ids?.thumb??`switch:${e.id}:thumb`,Gw=e=>e.ids?.control??`switch:${e.id}:control`,Ns=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,Bw=e=>e.getById(mv(e)),lr=e=>e.getById(Ns(e));function Uw(e,t){const{context:r,send:n,prop:o,scope:i}=e,s=o("disabled"),a=o("readOnly"),l=!!r.get("checked"),u=!s&&r.get("focused"),p=!s&&r.get("focusVisible"),g={"data-active":E(r.get("active")),"data-focus":E(u),"data-focus-visible":E(p),"data-readonly":E(a),"data-hover":E(r.get("hovered")),"data-disabled":E(s),"data-state":l?"checked":"unchecked","data-invalid":E(o("invalid"))};return{checked:l,disabled:s,focused:u,setChecked(c){n({type:"CHECKED.SET",checked:c,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:l,isTrusted:!1})},getRootProps(){return t.label({...so.root.attrs,...g,dir:o("dir"),id:mv(i),htmlFor:Ns(i),onPointerMove(){s||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){s||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(c){if(s)return;ce(c)===lr(i)&&c.stopPropagation(),Ht()&&lr(i)?.focus()}})},getLabelProps(){return t.element({...so.label.attrs,...g,dir:o("dir"),id:nc(i)})},getThumbProps(){return t.element({...so.thumb.attrs,...g,dir:o("dir"),id:jw(i),"aria-hidden":!0})},getControlProps(){return t.element({...so.control.attrs,...g,dir:o("dir"),id:Gw(i),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:Ns(i),type:"checkbox",required:o("required"),defaultChecked:l,disabled:s,"aria-labelledby":nc(i),"aria-invalid":o("invalid"),name:o("name"),form:o("form"),value:o("value"),style:qt,onFocus(){const c=fr();n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:c}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(c){if(a){c.preventDefault();return}const d=c.currentTarget.checked;n({type:"CHECKED.SET",checked:d,isTrusted:!0})}})}}}var{not:oc}=je(),Hw={props({props:e}){return{defaultChecked:!1,label:"switch",value:"on",...e}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(r){e("onCheckedChange")?.({checked:r})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:r,action:n}){e([()=>t("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>r.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:oc("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:oc("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:r}){if(!e("isDisabled"))return jc({pointerNode:Bw(t),keyboardNode:lr(t),isValidKey:n=>n.key===" ",onPress:()=>r.set("active",!1),onPressStart:()=>r.set("active",!0),onPressEnd:()=>r.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return ii({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:r}){return Nt(lr(r),{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){const n=e.initial("checked");t({type:"CHECKED.SET",checked:!!n,src:"form-reset"})}})}},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,scope:t}){const r=lr(t);r&&Ms(r,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){const r=lr(t);_s(r,{checked:e.get("checked")})}}}};B()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const Ww=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o=se(),i={id:t,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:n,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:r,...e},s=J(Hw,i);return Uw(s,te)},hv=v.forwardRef((e,t)=>{const[r,n]=$()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=Ww(r),i=P(o.getRootProps(),n);return m.jsx(uv,{value:o,children:m.jsx(C.label,{...i,ref:t})})});hv.displayName="SwitchRoot";const vv=v.forwardRef((e,t)=>{const[{value:r},n]=$()(e,["value"]),o=P(r.getRootProps(),n);return m.jsx(uv,{value:r,children:m.jsx(C.label,{...o,ref:t})})});vv.displayName="SwitchRootProvider";const yv=v.forwardRef((e,t)=>{const r=kn(),n=P(r.getThumbProps(),e);return m.jsx(C.span,{...n,ref:t})});yv.displayName="SwitchThumb";function qw(e,t){const[r,n]=v.useState(e);return v.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}const[bv,mi]=j({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),Pv=v.forwardRef((e,t)=>{const[r,n]=$()(e,["value"]),o=mi(),i=la(),s=ye({...i,present:qw(o.value===e.value,0),immediate:!0}),a=P(o.getContentProps(r),s.getPresenceProps(),n);return m.jsx(Ie,{value:s,children:s.unmounted?null:m.jsx(C.div,{...a,ref:Fe(s.ref,t)})})});Pv.displayName="TabContent";const Ev=v.forwardRef((e,t)=>{const r=mi(),n=P(r.getIndicatorProps(),e);return m.jsx(C.div,{...n,ref:t})});Ev.displayName="TabIndicator";const Cv=v.forwardRef((e,t)=>{const r=mi(),n=P(r.getListProps(),e);return m.jsx(C.div,{...n,ref:t})});Cv.displayName="TabList";const Iv=v.forwardRef((e,t)=>{const[r,n]=$()(e,["disabled","value"]),o=mi(),i=P(o.getTriggerProps(r),n);return m.jsx(C.button,{...i,ref:t})});Iv.displayName="TabTrigger";var Kw=q("tabs").parts("root","list","trigger","content","indicator"),qr=Kw.build(),zw=e=>e.ids?.root??`tabs:${e.id}`,an=e=>e.ids?.list??`tabs:${e.id}:list`,ks=(e,t)=>e.ids?.content??`tabs:${e.id}:content-${t}`,jt=(e,t)=>e.ids?.trigger??`tabs:${e.id}:trigger-${t}`,Tv=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,Yw=e=>e.getById(an(e)),Xw=(e,t)=>e.getById(ks(e,t)),Co=(e,t)=>e.getById(jt(e,t)),ic=e=>e.getById(Tv(e)),An=e=>{const r=`[role=tab][data-ownedby='${CSS.escape(an(e))}']:not([disabled])`;return St(Yw(e),r)},Zw=e=>ei(An(e)),Jw=e=>ti(An(e)),Qw=(e,t)=>Uc(An(e),jt(e,t.value),t.loopFocus),e0=(e,t)=>Hc(An(e),jt(e,t.value),t.loopFocus),Rv=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),t0=(e,t)=>{const r=Bc(An(e),jt(e,t));return Sv(Rv(r))},Sv=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`});function r0(e,t){const{state:r,send:n,context:o,prop:i,scope:s}=e,a=i("translations"),l=r.matches("focused"),u=i("orientation")==="vertical",p=i("orientation")==="horizontal",g=i("composite");function c(d){return{selected:o.get("value")===d.value,focused:o.get("focusedValue")===d.value,disabled:!!d.disabled}}return{value:o.get("value"),focusedValue:o.get("focusedValue"),setValue(d){n({type:"SET_VALUE",value:d})},clearValue(){n({type:"CLEAR_VALUE"})},setIndicatorRect(d){const f=jt(s,d);n({type:"SET_INDICATOR_RECT",id:f})},syncTabIndex(){n({type:"SYNC_TAB_INDEX"})},selectNext(d){n({type:"TAB_FOCUS",value:d,src:"selectNext"}),n({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(d){n({type:"TAB_FOCUS",value:d,src:"selectPrev"}),n({type:"ARROW_PREV",src:"selectPrev"})},focus(){const d=o.get("value");d&&Co(s,d)?.focus()},getRootProps(){return t.element({...qr.root.attrs,id:zw(s),"data-orientation":i("orientation"),"data-focus":E(l),dir:i("dir")})},getListProps(){return t.element({...qr.list.attrs,id:an(s),role:"tablist",dir:i("dir"),"data-focus":E(l),"aria-orientation":i("orientation"),"data-orientation":i("orientation"),"aria-label":a?.listLabel,onKeyDown(d){if(d.defaultPrevented||!cn(d)||Pn(d))return;const f={ArrowDown(){p||n({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){p||n({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){u||n({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){u||n({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){n({type:"HOME"})},End(){n({type:"END"})},Enter(){n({type:"ENTER"})}};let h=We(d,{dir:i("dir"),orientation:i("orientation")});const I=f[h];I&&(d.preventDefault(),I(d))}})},getTriggerState:c,getTriggerProps(d){const{value:f,disabled:h}=d,I=c(d);return t.button({...qr.trigger.attrs,role:"tab",type:"button",disabled:h,dir:i("dir"),"data-orientation":i("orientation"),"data-disabled":E(h),"aria-disabled":h,"data-value":f,"aria-selected":I.selected,"data-selected":E(I.selected),"data-focus":E(I.focused),"aria-controls":I.selected?ks(s,f):void 0,"data-ownedby":an(s),"data-ssr":E(o.get("ssr")),id:jt(s,f),tabIndex:I.selected&&g?0:-1,onFocus(){n({type:"TAB_FOCUS",value:f})},onBlur(T){T.relatedTarget?.getAttribute("role")!=="tab"&&n({type:"TAB_BLUR"})},onClick(T){T.defaultPrevented||h||(Ht()&&T.currentTarget.focus(),n({type:"TAB_CLICK",value:f}))}})},getContentProps(d){const{value:f}=d,h=o.get("value")===f;return t.element({...qr.content.attrs,dir:i("dir"),id:ks(s,f),tabIndex:g?0:-1,"aria-labelledby":jt(s,f),role:"tabpanel","data-ownedby":an(s),"data-selected":E(h),"data-orientation":i("orientation"),hidden:!h})},getIndicatorProps(){const d=o.get("indicatorRect"),f=o.get("indicatorTransition");return t.element({id:Tv(s),...qr.indicator.attrs,dir:i("dir"),"data-orientation":i("orientation"),style:{"--transition-property":"left, right, top, bottom, width, height","--left":d.left,"--top":d.top,"--width":d.width,"--height":d.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:f?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[p?"left":"top"]:p?"var(--left)":"var(--top)"}})}}}var{not:n0}=je(),o0={props({props:e}){return{dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(t){Lc(t.node)},defaultValue:null,...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){e("onValueChange")?.({value:r})}})),focusedValue:t(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(r){e("onFocusChange")?.({focusedValue:r})}})),ssr:t(()=>({defaultValue:!0})),indicatorTransition:t(()=>({defaultValue:!1})),indicatorRect:t(()=>({defaultValue:{left:"0px",top:"0px",width:"0px",height:"0px"}}))}},watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value")],()=>{n(["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),r([()=>t("dir"),()=>t("orientation")],()=>{n(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],ENTER:{guard:n0("selectOnFocus"),actions:["selectFocusedTab"]},TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e("activationMode")==="automatic"},actions:{selectFocusedTab({context:e,prop:t}){_(()=>{const r=e.get("focusedValue");if(!r)return;const o=t("deselectable")&&e.get("value")===r?null:r;e.set("value",o)})},setFocusedValue({context:e,event:t,flush:r}){t.value!=null&&r(()=>{e.set("focusedValue",t.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t,prop:r}){const n=r("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",n?null:t.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){_(()=>{Zw(e)?.focus()})},focusLastTab({scope:e}){_(()=>{Jw(e)?.focus()})},focusNextTab({context:e,prop:t,scope:r,event:n}){const o=n.value??e.get("focusedValue");if(!o)return;const i=Qw(r,{value:o,loopFocus:t("loopFocus")});_(()=>{t("composite")?i?.focus():i?.dataset.value!=null&&e.set("focusedValue",i.dataset.value)})},focusPrevTab({context:e,prop:t,scope:r,event:n}){const o=n.value??e.get("focusedValue");if(!o)return;const i=e0(r,{value:o,loopFocus:t("loopFocus")});_(()=>{t("composite")?i?.focus():i?.dataset.value!=null&&e.set("focusedValue",i.dataset.value)})},syncTabIndex({context:e,scope:t}){_(()=>{const r=e.get("value");if(!r)return;const n=Xw(t,r);if(!n)return;Gs(n).length>0?n.removeAttribute("tabindex"):n.setAttribute("tabindex","0")})},cleanupObserver({refs:e}){const t=e.get("indicatorCleanup");t&&t()},allowIndicatorTransition({context:e}){e.set("indicatorTransition",!0)},setIndicatorRect({context:e,event:t,scope:r}){const n=t.id??e.get("value");if(!ic(r))return;if(!n){e.set("indicatorTransition",!1);return}Co(r,n)&&(e.set("indicatorRect",t0(r,n)),Zo(()=>{e.set("indicatorTransition",!1)}))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:t,scope:r}){const n=t.get("indicatorCleanup");n&&n();const o=e.get("value");if(!o){e.set("indicatorTransition",!1);return}const i=Co(r,o),s=ic(r);if(!i||!s)return;const a=Ws([i],{measure(l){return Rv(l)},onEntry({rects:l}){const[u]=l;e.set("indicatorRect",Sv(u))}});t.set("indicatorCleanup",a)},navigateIfNeeded({context:e,prop:t,scope:r}){const n=e.get("value");if(!n)return;const o=Co(r,n);Rc(o)&&t("navigate")?.({value:n,node:o,href:o.href})}}}};B()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);B()(["disabled","value"]);B()(["value"]);const i0=e=>{const t=v.useId(),{getRootNode:r}=Z(),{dir:n}=Q(),o={id:t,dir:n,getRootNode:r,...e},i=J(o0,o);return r0(i,te)},Ov=v.forwardRef((e,t)=>{const[r,n]=Cr(e),[o,i]=$()(n,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),s=i0(o),a=P(s.getRootProps(),i);return m.jsx(bv,{value:s,children:m.jsx(Er,{value:r,children:m.jsx(C.div,{...a,ref:t})})})});Ov.displayName="TabsRoot";const xv=v.forwardRef((e,t)=>{const[r,n]=Cr(e),[{value:o},i]=$()(n,["value"]),s=P(o.getRootProps(),i);return m.jsx(bv,{value:o,children:m.jsx(Er,{value:r,children:m.jsx(C.div,{...s,ref:t})})})});xv.displayName="TabsRootProvider";var s0=q("toast").parts("group","root","title","description","actionTrigger","closeTrigger"),ir=s0.build(),a0=e=>`toast-group:${e}`,sc=(e,t)=>e.getById(`toast-group:${t}`),wv=e=>`toast:${e.id}`,ac=e=>e.getById(wv(e)),lc=e=>`toast:${e.id}:title`,cc=e=>`toast:${e.id}:description`,l0=e=>`toast${e.id}:close`,uc={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function ji(e,t){return e??uc[t]??uc.DEFAULT}var c0=e=>typeof e=="string"?{left:e,right:e,bottom:e,top:e}:e;function u0(e,t){const{prop:r,computed:n,context:o}=e,{offsets:i,gap:s}=r("store").attrs,a=o.get("heights"),l=c0(i),u=r("dir")==="rtl",p=t.replace("-start",u?"-right":"-left").replace("-end",u?"-left":"-right"),g=p.includes("right"),c=p.includes("left"),d={position:"fixed",pointerEvents:n("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${s}px`,"--first-height":`${a[0]?.height||0}px`,zIndex:Ic};let f="center";if(g&&(f="flex-end"),c&&(f="flex-start"),d.alignItems=f,p.includes("top")){const h=l.top;d.top=`max(env(safe-area-inset-top, 0px), ${h})`}if(p.includes("bottom")){const h=l.bottom;d.bottom=`max(env(safe-area-inset-bottom, 0px), ${h})`}if(!p.includes("left")){const h=l.right;d.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${h})`}if(!p.includes("right")){const h=l.left;d.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${h})`}return d}function d0(e,t){const{prop:r,context:n,computed:o}=e,i=r("parent"),s=i.computed("placement"),{gap:a}=i.prop("store").attrs,[l]=s.split("-"),u=n.get("mounted"),p=n.get("remainingTime"),g=o("height"),c=o("frontmost"),d=!c,f=!r("stacked"),h=r("stacked"),T=r("type")==="loading"?Number.MAX_SAFE_INTEGER:p,S=o("heightIndex")*a+o("heightBefore"),x={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${r("removeDelay")}ms`,"--duration":`${T}ms`,"--initial-height":`${g}px`,"--offset":`${S}px`,"--index":r("index"),"--z-index":o("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},b=y=>Object.assign(x,y);return l==="top"?b({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):l==="bottom"&&b({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),u&&(b({"--y":"0","--opacity":"1"}),h&&b({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||b({"--opacity":"0",pointerEvents:"none"}),d&&f&&(b({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||b({"--y":"calc(var(--sign) * 40%)"})),d&&h&&!t&&b({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),c&&!t&&b({"--y":"calc(var(--lift) * -100%)"}),x}function g0(e,t){const{computed:r}=e,n={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"},o=i=>Object.assign(n,i);return r("frontmost")&&!t&&o({height:"calc(var(--initial-height) + 80%)"}),n}function p0(){return{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}function f0(e,t){const{context:r,prop:n,send:o,refs:i,computed:s}=e;return{getCount(){return r.get("toasts").length},getToasts(){return r.get("toasts")},getGroupProps(a={}){const{label:l="Notifications"}=a,{hotkey:u}=n("store").attrs,p=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=s("placement"),[c,d="center"]=g.split("-");return t.element({...ir.group.attrs,dir:n("dir"),tabIndex:-1,"aria-label":`${g} ${l} ${p}`,id:a0(g),"data-placement":g,"data-side":c,"data-align":d,"aria-live":"polite",role:"region",style:u0(e,g),onMouseMove(){o({type:"REGION.POINTER_ENTER",placement:g})},onMouseLeave(){o({type:"REGION.POINTER_LEAVE",placement:g})},onFocus(f){o({type:"REGION.FOCUS",target:f.relatedTarget})},onBlur(f){i.get("isFocusWithin")&&!Ae(f.currentTarget,f.relatedTarget)&&queueMicrotask(()=>o({type:"REGION.BLUR"}))}})},subscribe(a){return n("store").subscribe(()=>a(r.get("toasts")))}}}var m0={props({props:e}){return{dir:"ltr",id:Xc(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(r=>r.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:r}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{r(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["collapseToasts","resumeToasts","restoreLastFocusedEl"]},{target:"stack",actions:["resumeToasts","restoreLastFocusedEl"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","collapseToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap")},effects:{subscribeToStore({context:e,prop:t}){return t("store").subscribe(r=>{if(r.dismiss){e.set("toasts",n=>n.filter(o=>o.id!==r.id));return}e.set("toasts",n=>{const o=n.findIndex(i=>i.id===r.id);return o!==-1?[...n.slice(0,o),{...n[o],...r},...n.slice(o+1)]:[r,...n]})})},trackHotKeyPress({prop:e,send:t}){return W(document,"keydown",n=>{const{hotkey:o}=e("store").attrs;o.every(s=>n[s]||n.code===s)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:r}){const{pauseOnPageIdle:n}=e("store").attrs;if(!n)return;const o=r.getDoc();return W(o,"visibilitychange",()=>{const i=o.visibilityState==="hidden";t({type:i?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:r,scope:n}){const o=t.get("toasts"),i=r("placement"),s=o.length>0;if(!s){e.get("dismissableCleanup")?.();return}if(s&&e.get("dismissableCleanup"))return;const l=TC(()=>sc(n,i),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{sc(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",r=>r.filter(n=>n.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){e.get("isFocusWithin")||!t.target||(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))}}}};function h0(e,t){const{state:r,send:n,prop:o,scope:i,context:s,computed:a}=e,l=r.hasTag("visible"),u=r.hasTag("paused"),p=s.get("mounted"),g=a("frontmost"),c=o("parent").computed("placement"),d=o("type"),f=o("stacked"),h=o("title"),I=o("description"),T=o("action"),[S,x="center"]=c.split("-");return{type:d,title:h,description:I,placement:c,visible:l,paused:u,closable:!!o("closable"),pause(){n({type:"PAUSE"})},resume(){n({type:"RESUME"})},dismiss(){n({type:"DISMISS",src:"programmatic"})},getRootProps(){return t.element({...ir.root.attrs,dir:o("dir"),id:wv(i),"data-state":l?"open":"closed","data-type":d,"data-placement":c,"data-align":x,"data-side":S,"data-mounted":E(p),"data-paused":E(u),"data-first":E(g),"data-sibling":E(!g),"data-stack":E(f),"data-overlap":E(!f),role:"status","aria-atomic":"true","aria-describedby":I?cc(i):void 0,"aria-labelledby":h?lc(i):void 0,tabIndex:0,style:d0(e,l),onKeyDown(b){b.defaultPrevented||b.key=="Escape"&&(n({type:"DISMISS",src:"keyboard"}),b.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":"before",style:g0(e,l)})},getGhostAfterProps(){return t.element({"data-ghost":"after",style:p0()})},getTitleProps(){return t.element({...ir.title.attrs,id:lc(i)})},getDescriptionProps(){return t.element({...ir.description.attrs,id:cc(i)})},getActionTriggerProps(){return t.button({...ir.actionTrigger.attrs,type:"button",onClick(b){b.defaultPrevented||(T?.onClick?.(),n({type:"DISMISS",src:"user"}))}})},getCloseTriggerProps(){return t.button({id:l0(i),...ir.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(b){b.defaultPrevented||n({type:"DISMISS",src:"user"})}})}}}var{not:v0}=je(),y0={props({props:e}){return nP(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:ji(e.duration,e.type)}},initialState({prop:e}){return e("type")==="loading"||e("duration")===1/0?"visible:persist":"visible"},context({prop:e,bindable:t}){return{remainingTime:t(()=>({defaultValue:ji(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:e})=>{const t=e("parent").context.get("toasts"),r=t.findIndex(n=>n.id===e("id"));return t.length-r},height:({prop:e})=>e("parent").context.get("heights").find(n=>n.id===e("id"))?.height??0,heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(r=>r.id===e("id")),frontmost:({prop:e})=>e("index")===0,heightBefore:({prop:e})=>{const t=e("parent").context.get("heights"),r=t.findIndex(n=>n.id===e("id"));return t.reduce((n,o,i)=>i>=r?n:n+o.height,0)},shouldPersist:({prop:e})=>e("type")==="loading"||e("duration")===1/0},watch({track:e,prop:t,send:r}){e([()=>t("message")],()=>{const n=t("message");n&&r({type:n,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{r({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:v0("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay({prop:e,send:t}){return go(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay"))},waitForDuration({send:e,context:t,computed:r}){if(!r("shouldPersist"))return go(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick({send:e}){return go(()=>{e({type:"SHOW",src:"timer"})},0)},trackHeight({scope:e,prop:t}){let r;return _(()=>{const n=ac(e);if(!n)return;const o=()=>{const a=n.style.height;n.style.height="auto";const l=n.getBoundingClientRect().height;n.style.height=a;const u={id:t("id"),height:l};dc(t("parent"),u)},i=e.getWin(),s=new i.MutationObserver(o);s.observe(n,{childList:!0,subtree:!0,characterData:!0}),r=()=>s.disconnect()}),()=>r?.()}},guards:{isLoadingType:({prop:e})=>e("type")==="loading",shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){_(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:r}){queueMicrotask(()=>{const n=ac(e);if(!n)return;const o=n.style.height;n.style.height="auto";const i=n.getBoundingClientRect().height;n.style.height=o,r.set("initialHeight",i);const s={id:t("id"),height:i};dc(t("parent"),s)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:r}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",ji(r("duration"),r("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",r=>{const n=t.get("closeTimerStartTime"),o=Date.now()-n;return t.set("lastCloseStartTimerStartTime",Date.now()),r-o})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}};function dc(e,t){const{id:r,height:n}=t;e.context.set("heights",o=>o.find(s=>s.id===r)?o.map(s=>s.id===r?{...s,height:n}:s):[{id:r,height:n},...o])}var b0=(e,t)=>({...t,...ni(e)});function P0(e){const t=b0(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let r=[],n=[],o=new Set,i=[];const s=k=>(r.push(k),()=>{const L=r.indexOf(k);r.splice(L,1)}),a=k=>(r.forEach(L=>L(k)),k),l=k=>{if(n.length>=t.max){i.push(k);return}a(k),n.unshift(k)},u=()=>{for(;i.length>0&&n.length<t.max;){const k=i.shift();k&&(a(k),n.unshift(k))}},p=k=>{const L=k.id??`toast:${Xc()}`,D=n.find(M=>M.id===L);return o.has(L)&&o.delete(L),D?n=n.map(M=>M.id===L?a({...M,...k,id:L}):M):l({id:L,duration:t.duration,removeDelay:t.removeDelay,type:"info",...k,stacked:!t.overlap,gap:t.gap}),L},g=k=>(o.add(k),k?(r.forEach(L=>L({id:k,dismiss:!0})),n=n.filter(L=>L.id!==k),u()):(n.forEach(L=>{r.forEach(D=>D({id:L.id,dismiss:!0}))}),n=[],i=[]),k);return{attrs:t,subscribe:s,create:p,update:(k,L)=>p({id:k,...L}),remove:g,dismiss:k=>{k!=null?n=n.map(L=>L.id===k?a({...L,message:"DISMISS"}):L):n=n.map(L=>a({...L,message:"DISMISS"}))},error:k=>p({...k,type:"error"}),success:k=>p({...k,type:"success"}),info:k=>p({...k,type:"info"}),warning:k=>p({...k,type:"warning"}),loading:k=>p({...k,type:"loading"}),getVisibleToasts:()=>n.filter(k=>!o.has(k.id)),getCount:()=>n.length,promise:(k,L,D={})=>{if(!L)return;let M;L.loading!==void 0&&(M=p({...D,...L.loading,promise:k,type:"loading"}));let K=M!==void 0,z;const ae=zr(k).then(async V=>{if(z=["resolve",V],E0(V)&&!V.ok){K=!1;const U=zr(L.error,`HTTP Error! status: ${V.status}`);p({...D,...U,id:M,type:"error"})}else if(L.success!==void 0){K=!1;const U=zr(L.success,V);p({...D,...U,id:M,type:"success"})}}).catch(async V=>{if(z=["reject",V],L.error!==void 0){K=!1;const U=zr(L.error,V);p({...D,...U,id:M,type:"error"})}}).finally(()=>{K&&(g(M),M=void 0),L.finally?.()});return{id:M,unwrap:()=>new Promise((V,U)=>ae.then(()=>z[0]==="reject"?U(z[1]):V(z[1])).catch(U))}},pause:k=>{k!=null?n=n.map(L=>L.id===k?a({...L,message:"PAUSE"}):L):n=n.map(L=>a({...L,message:"PAUSE"}))},resume:k=>{k!=null?n=n.map(L=>L.id===k?a({...L,message:"RESUME"}):L):n=n.map(L=>a({...L,message:"RESUME"}))},isVisible:k=>!o.has(k)&&!!n.find(L=>L.id===k),isDismissed:k=>o.has(k),expand:()=>{n=n.map(k=>a({...k,stacked:!0}))},collapse:()=>{n=n.map(k=>a({...k,stacked:!1}))}}}var E0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",gc={connect:f0,machine:m0};const C0=e=>P0(e),[I0,Rr]=j({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),Nv=v.forwardRef((e,t)=>{const r=Rr(),n=P(r.getActionTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});Nv.displayName="ToastActionTrigger";const kv=v.forwardRef((e,t)=>{const r=Rr(),n=P(r.getCloseTriggerProps(),e);return m.jsx(C.button,{...n,ref:t})});kv.displayName="ToastCloseTrigger";const Av=v.forwardRef((e,t)=>{const r=Rr(),n=P(r.getDescriptionProps(),e);return m.jsx(C.div,{...n,ref:t})});Av.displayName="ToastDescription";const Fv=v.forwardRef((e,t)=>{const r=Rr(),n=P(r.getRootProps(),e);return m.jsxs("div",{...n,ref:t,children:[m.jsx("div",{...r.getGhostBeforeProps()}),e.children,m.jsx("div",{...r.getGhostAfterProps()})]})});Fv.displayName="ToastRoot";const Vv=v.forwardRef((e,t)=>{const r=Rr(),n=P(r.getTitleProps(),e);return m.jsx(C.div,{...n,ref:t})});Vv.displayName="ToastTitle";const Lv=v.forwardRef((e,t)=>{const{toaster:r,children:n,...o}=e,i=Q(),s=Z(),a=J(gc.machine,{store:r,id:v.useId(),dir:i?.dir,getRootNode:s?.getRootNode}),l=gc.connect(a,te),u=P(l.getGroupProps(),o);return m.jsx(C.div,{...u,ref:t,children:l.getToasts().map((p,g)=>m.jsx(Dv,{value:p,parent:a,index:g,children:c=>n(c)},p.id))})});Lv.displayName="Toaster";const Dv=e=>{const t=Z(),r={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},n=J(y0,{...r}),o=h0(n,te);return m.jsx(I0,{value:o,children:e.children(e.value)})};Dv.displayName="ToastActor";var T0=Math.ceil,R0=Math.max;function S0(e,t,r,n){for(var o=-1,i=R0(T0((t-e)/(r||1)),0),s=Array(i);i--;)s[++o]=e,e+=r;return s}function O0(e,t){return e===t||e!==e&&t!==t}var x0=typeof global=="object"&&global&&global.Object===Object&&global,w0=typeof self=="object"&&self&&self.Object===Object&&self,N0=x0||w0||Function("return this")(),jo=N0.Symbol,$v=Object.prototype,k0=$v.hasOwnProperty,A0=$v.toString,Kr=jo?jo.toStringTag:void 0;function F0(e){var t=k0.call(e,Kr),r=e[Kr];try{e[Kr]=void 0;var n=!0}catch{}var o=A0.call(e);return n&&(t?e[Kr]=r:delete e[Kr]),o}var V0=Object.prototype,L0=V0.toString;function D0(e){return L0.call(e)}var $0="[object Null]",M0="[object Undefined]",pc=jo?jo.toStringTag:void 0;function Mv(e){return e==null?e===void 0?M0:$0:pc&&pc in Object(e)?F0(e):D0(e)}function Go(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _0="[object AsyncFunction]",j0="[object Function]",G0="[object GeneratorFunction]",B0="[object Proxy]";function U0(e){if(!Go(e))return!1;var t=Mv(e);return t==j0||t==G0||t==_0||t==B0}var H0=9007199254740991;function W0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=H0}function q0(e){return e!=null&&W0(e.length)&&!U0(e)}var K0=9007199254740991,z0=/^(?:0|[1-9]\d*)$/;function Y0(e,t){var r=typeof e;return t=t??K0,!!t&&(r=="number"||r!="symbol"&&z0.test(e))&&e>-1&&e%1==0&&e<t}function X0(e,t,r){if(!Go(r))return!1;var n=typeof t;return(n=="number"?q0(r)&&Y0(t,r.length):n=="string"&&t in r)?O0(r[t],e):!1}var Z0=/\s/;function J0(e){for(var t=e.length;t--&&Z0.test(e.charAt(t)););return t}var Q0=/^\s+/;function eN(e){return e&&e.slice(0,J0(e)+1).replace(Q0,"")}function tN(e){return e!=null&&typeof e=="object"}var rN="[object Symbol]";function nN(e){return typeof e=="symbol"||tN(e)&&Mv(e)==rN}var fc=NaN,oN=/^[-+]0x[0-9a-f]+$/i,iN=/^0b[01]+$/i,sN=/^0o[0-7]+$/i,aN=parseInt;function lN(e){if(typeof e=="number")return e;if(nN(e))return fc;if(Go(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Go(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=eN(e);var r=iN.test(e);return r||sN.test(e)?aN(e.slice(2),r?2:8):oN.test(e)?fc:+e}var cN=1/0,uN=17976931348623157e292;function Gi(e){if(!e)return e===0?e:0;if(e=lN(e),e===cN||e===-1/0){var t=e<0?-1:1;return t*uN}return e===e?e:0}function dN(e){return function(t,r,n){return n&&typeof n!="number"&&X0(t,r,n)&&(r=n=void 0),t=Gi(t),r===void 0?(r=t,t=0):r=Gi(r),n=n===void 0?t<r?1:-1:Gi(n),S0(t,r,n)}}var gN=dN(),pN=(e,t,r,n,o,i,s,a)=>{let l=document.documentElement,u=["light","dark"];function p(d){(Array.isArray(e)?e:[e]).forEach(f=>{let h=f==="class",I=h&&i?o.map(T=>i[T]||T):o;h?(l.classList.remove(...I),l.classList.add(i&&i[d]?i[d]:d)):l.setAttribute(f,d)}),g(d)}function g(d){a&&u.includes(d)&&(l.style.colorScheme=d)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)p(n);else try{let d=localStorage.getItem(t)||r,f=s&&d==="system"?c():d;p(f)}catch{}},mc=["light","dark"],_v="(prefers-color-scheme: dark)",fN=typeof window>"u",Pa=de.createContext(void 0),mN={setTheme:e=>{},themes:[]},hN=()=>{var e;return(e=de.useContext(Pa))!=null?e:mN},vN=e=>de.useContext(Pa)?de.createElement(de.Fragment,null,e.children):de.createElement(bN,{...e}),yN=["light","dark"],bN=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=yN,defaultTheme:s=r?"system":"light",attribute:a="data-theme",value:l,children:u,nonce:p,scriptProps:g})=>{let[c,d]=de.useState(()=>EN(o,s)),[f,h]=de.useState(()=>c==="system"?Bi():c),I=l?Object.values(l):i,T=de.useCallback(y=>{let R=y;if(!R)return;y==="system"&&r&&(R=Bi());let O=l?l[R]:R,w=t?CN(p):null,N=document.documentElement,F=A=>{A==="class"?(N.classList.remove(...I),O&&N.classList.add(O)):A.startsWith("data-")&&(O?N.setAttribute(A,O):N.removeAttribute(A))};if(Array.isArray(a)?a.forEach(F):F(a),n){let A=mc.includes(s)?s:null,k=mc.includes(R)?R:A;N.style.colorScheme=k}w?.()},[p]),S=de.useCallback(y=>{let R=typeof y=="function"?y(c):y;d(R);try{localStorage.setItem(o,R)}catch{}},[c]),x=de.useCallback(y=>{let R=Bi(y);h(R),c==="system"&&r&&!e&&T("system")},[c,e]);de.useEffect(()=>{let y=window.matchMedia(_v);return y.addListener(x),x(y),()=>y.removeListener(x)},[x]),de.useEffect(()=>{let y=R=>{R.key===o&&(R.newValue?d(R.newValue):S(s))};return window.addEventListener("storage",y),()=>window.removeEventListener("storage",y)},[S]),de.useEffect(()=>{T(e??c)},[e,c]);let b=de.useMemo(()=>({theme:c,setTheme:S,forcedTheme:e,resolvedTheme:c==="system"?f:c,themes:r?[...i,"system"]:i,systemTheme:r?f:void 0}),[c,S,e,f,r,i]);return de.createElement(Pa.Provider,{value:b},de.createElement(PN,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:r,enableColorScheme:n,defaultTheme:s,value:l,themes:i,nonce:p,scriptProps:g}),u)},PN=de.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:u})=>{let p=JSON.stringify([r,t,i,e,a,s,n,o]).slice(1,-1);return de.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${pN.toString()})(${p})`}})}),EN=(e,t)=>{if(fN)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},CN=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Bi=e=>(e||(e=window.matchMedia(_v)),e.matches?"dark":"light");exports.AccordionContext=EI;exports.AccordionItem=ag;exports.AccordionItemContent=lg;exports.AccordionItemContext=hT;exports.AccordionItemIndicator=cg;exports.AccordionItemTrigger=ug;exports.AccordionRoot=gg;exports.AccordionRootProvider=pg;exports.AvatarFallback=Vu;exports.AvatarImage=Lu;exports.AvatarRoot=_u;exports.AvatarRootProvider=ju;exports.CheckboxControl=Pd;exports.CheckboxGroup=Rd;exports.CheckboxHiddenInput=Sd;exports.CheckboxLabel=Od;exports.CheckboxRoot=xd;exports.CheckboxRootProvider=wd;exports.ClipboardContext=xT;exports.ClipboardControl=mg;exports.ClipboardIndicator=hg;exports.ClipboardInput=vg;exports.ClipboardLabel=yg;exports.ClipboardRoot=bg;exports.ClipboardRootProvider=Pg;exports.ClipboardTrigger=Eg;exports.ClipboardValueText=Cg;exports.CollapsibleContent=ua;exports.CollapsibleContext=jT;exports.CollapsibleRoot=ra;exports.CollapsibleRootProvider=Ig;exports.CollapsibleTrigger=Tg;exports.ColorPickerArea=Og;exports.ColorPickerAreaBackground=xg;exports.ColorPickerAreaThumb=wg;exports.ColorPickerChannelInput=Ng;exports.ColorPickerChannelSlider=kg;exports.ColorPickerChannelSliderLabel=Ag;exports.ColorPickerChannelSliderThumb=Fg;exports.ColorPickerChannelSliderTrack=Vg;exports.ColorPickerChannelSliderValueText=Lg;exports.ColorPickerContent=Dg;exports.ColorPickerContext=HT;exports.ColorPickerControl=$g;exports.ColorPickerEyeDropperTrigger=Mg;exports.ColorPickerFormatSelect=_g;exports.ColorPickerFormatTrigger=jg;exports.ColorPickerHiddenInput=Gg;exports.ColorPickerLabel=Bg;exports.ColorPickerPositioner=Ug;exports.ColorPickerRoot=Hg;exports.ColorPickerRootProvider=Wg;exports.ColorPickerSwatch=Kg;exports.ColorPickerSwatchGroup=zg;exports.ColorPickerSwatchIndicator=Yg;exports.ColorPickerSwatchTrigger=Xg;exports.ColorPickerTransparencyGrid=Zg;exports.ColorPickerTrigger=Jg;exports.ColorPickerValueSwatch=Qg;exports.ColorPickerValueText=ep;exports.ColorPickerView=rp;exports.DECLARATION=Fs;exports.DialogBackdrop=lp;exports.DialogCloseTrigger=cp;exports.DialogContent=up;exports.DialogContext=oR;exports.DialogDescription=dp;exports.DialogPositioner=gp;exports.DialogRoot=ER;exports.DialogRootProvider=CR;exports.DialogTitle=Pp;exports.DialogTrigger=Ep;exports.DownloadTrigger=Gd;exports.EditableArea=Ip;exports.EditableCancelTrigger=Tp;exports.EditableContext=IR;exports.EditableControl=Rp;exports.EditableEditTrigger=Sp;exports.EditableInput=Op;exports.EditablePreview=xp;exports.EditableRoot=Vp;exports.EditableRootProvider=Lp;exports.EditableSubmitTrigger=Dp;exports.FieldErrorText=Nd;exports.FieldHelperText=kd;exports.FieldInput=Ad;exports.FieldLabel=Fd;exports.FieldRoot=Ld;exports.FieldTextarea=Dd;exports.FileUploadClearTrigger=_p;exports.FileUploadContext=LR;exports.FileUploadDropzone=jp;exports.FileUploadHiddenInput=Gp;exports.FileUploadItem=Bp;exports.FileUploadItemDeleteTrigger=Up;exports.FileUploadItemGroup=Hp;exports.FileUploadItemName=Wp;exports.FileUploadItemPreview=qp;exports.FileUploadItemPreviewImage=Kp;exports.FileUploadItemSizeText=zp;exports.FileUploadLabel=Yp;exports.FileUploadRoot=Qp;exports.FileUploadRootProvider=ef;exports.FileUploadTrigger=tf;exports.FormatByte=Hd;exports.FormatNumber=Wd;exports.HoverCardArrow=of;exports.HoverCardArrowTip=sf;exports.HoverCardContent=af;exports.HoverCardContext=oS;exports.HoverCardPositioner=lf;exports.HoverCardRoot=uS;exports.HoverCardRootProvider=dS;exports.HoverCardTrigger=pf;exports.J=vN;exports.KEYFRAMES=vc;exports.MOZ=qv;exports.MS=Wv;exports.MenuArrow=Bu;exports.MenuArrowTip=Uu;exports.MenuCheckboxItem=qu;exports.MenuContent=Ku;exports.MenuContextTrigger=zu;exports.MenuIndicator=Yu;exports.MenuItem=Xu;exports.MenuItemGroup=Qu;exports.MenuItemGroupLabel=ed;exports.MenuItemIndicator=td;exports.MenuItemText=rd;exports.MenuPositioner=nd;exports.MenuRadioItem=od;exports.MenuRadioItemGroup=id;exports.MenuRoot=WC;exports.MenuRootProvider=qC;exports.MenuSeparator=hd;exports.MenuTrigger=vd;exports.MenuTriggerItem=yd;exports.NumberInputContext=gS;exports.NumberInputControl=mf;exports.NumberInputDecrementTrigger=hf;exports.NumberInputIncrementTrigger=vf;exports.NumberInputInput=yf;exports.NumberInputLabel=bf;exports.NumberInputRoot=Of;exports.NumberInputRootProvider=xf;exports.NumberInputScrubber=wf;exports.NumberInputValueText=Nf;exports.PaginationContext=BS;exports.PaginationEllipsis=Af;exports.PaginationItem=Ff;exports.PaginationNextTrigger=Vf;exports.PaginationPrevTrigger=Lf;exports.PaginationRoot=Df;exports.PaginationRootProvider=$f;exports.PinInputControl=_f;exports.PinInputHiddenInput=jf;exports.PinInputInput=Gf;exports.PinInputLabel=Bf;exports.PinInputRoot=Hf;exports.PinInputRootProvider=Wf;exports.PopoverAnchor=Kf;exports.PopoverArrow=zf;exports.PopoverArrowTip=Yf;exports.PopoverCloseTrigger=Xf;exports.PopoverContent=Zf;exports.PopoverContext=fO;exports.PopoverDescription=Jf;exports.PopoverIndicator=Qf;exports.PopoverPositioner=em;exports.PopoverRoot=CO;exports.PopoverRootProvider=IO;exports.PopoverTitle=im;exports.PopoverTrigger=sm;exports.Portal=Ib;exports.Presence=qd;exports.ProgressCircle=lm;exports.ProgressCircleRange=cm;exports.ProgressCircleTrack=um;exports.ProgressContext=TO;exports.ProgressLabel=dm;exports.ProgressRange=gm;exports.ProgressRoot=fm;exports.ProgressRootProvider=mm;exports.ProgressTrack=hm;exports.ProgressValueText=vm;exports.QrCodeContext=MO;exports.QrCodeDownloadTrigger=bm;exports.QrCodeFrame=Pm;exports.QrCodeOverlay=Em;exports.QrCodePattern=Cm;exports.QrCodeRoot=Lm;exports.QrCodeRootProvider=Dm;exports.RULESET=As;exports.RadioGroupItem=Mm;exports.RadioGroupItemContext=fx;exports.RadioGroupItemControl=_m;exports.RadioGroupItemHiddenInput=jm;exports.RadioGroupItemText=Gm;exports.RadioGroupLabel=Bm;exports.RadioGroupRoot=Wm;exports.RadioGroupRootProvider=qm;exports.RatingGroupContext=xx;exports.RatingGroupControl=zm;exports.RatingGroupHiddenInput=Ym;exports.RatingGroupItem=Zm;exports.RatingGroupItemContext=Nx;exports.RatingGroupLabel=Jm;exports.RatingGroupRoot=oh;exports.RatingGroupRootProvider=ih;exports.SelectClearTrigger=lh;exports.SelectContent=ch;exports.SelectControl=uh;exports.SelectHiddenSelect=dh;exports.SelectIndicator=gh;exports.SelectItem=fh;exports.SelectItemGroup=mh;exports.SelectItemGroupLabel=hh;exports.SelectItemIndicator=vh;exports.SelectItemText=yh;exports.SelectLabel=bh;exports.SelectPositioner=Ph;exports.SelectRoot=Zx;exports.SelectRootProvider=Qx;exports.SelectTrigger=Rh;exports.SelectValueText=Sh;exports.SliderContext=ew;exports.SliderControl=xh;exports.SliderDraggingIndicator=Nh;exports.SliderHiddenInput=kh;exports.SliderLabel=Ah;exports.SliderMarker=Fh;exports.SliderMarkerGroup=Vh;exports.SliderRange=Lh;exports.SliderRoot=Wh;exports.SliderRootProvider=qh;exports.SliderThumb=Kh;exports.SliderTrack=zh;exports.SliderValueText=Yh;exports.StepsCompletedContent=Zh;exports.StepsContent=Jh;exports.StepsContext=Qh;exports.StepsIndicator=ev;exports.StepsItem=tv;exports.StepsItemContext=rv;exports.StepsList=nv;exports.StepsNextTrigger=ov;exports.StepsPrevTrigger=iv;exports.StepsRoot=sv;exports.StepsRootProvider=av;exports.StepsSeparator=lv;exports.StepsTrigger=cv;exports.SwitchControl=dv;exports.SwitchHiddenInput=gv;exports.SwitchLabel=pv;exports.SwitchRoot=hv;exports.SwitchRootProvider=vv;exports.SwitchThumb=yv;exports.TabContent=Pv;exports.TabIndicator=Ev;exports.TabList=Cv;exports.TabTrigger=Iv;exports.TabsRoot=Ov;exports.TabsRootProvider=xv;exports.ToastActionTrigger=Nv;exports.ToastCloseTrigger=kv;exports.ToastDescription=Av;exports.ToastRoot=Fv;exports.ToastTitle=Vv;exports.Toaster=Lv;exports.TooltipArrow=lu;exports.TooltipArrowTip=cu;exports.TooltipContent=uu;exports.TooltipPositioner=du;exports.TooltipRoot=YE;exports.TooltipRootProvider=XE;exports.TooltipTrigger=ku;exports.WEBKIT=Kv;exports.alloc=Ec;exports.anatomy=fv;exports.anatomy$1=Dh;exports.anatomy$10=mp;exports.anatomy$11=dg;exports.anatomy$12=Du;exports.anatomy$13=zd;exports.anatomy$14=cf;exports.anatomy$15=Cf;exports.anatomy$16=Uf;exports.anatomy$17=pm;exports.anatomy$18=Am;exports.anatomy$19=xu;exports.anatomy$2=sp;exports.anatomy$3=Eh;exports.anatomy$4=Qm;exports.anatomy$5=ya;exports.anatomy$6=tm;exports.anatomy$7=cd;exports.anatomy$8=Xp;exports.anatomy$9=wp;exports.ark=C;exports.charat=Ue;exports.checkboxAnatomy=Id;exports.colorPickerAnatomy=tp;exports.combine=ey;exports.compile=ly;exports.copy=ty;exports.createAnatomy=q;exports.createListCollection=ZT;exports.createToaster=C0;exports.dealloc=Cc;exports.delimit=lo;exports.fieldAnatomy=Vd;exports.fieldsetAnatomy=$p;exports.from=Bo;exports.hash=Jv;exports.indexof=bc;exports.isCssProperty=uC;exports.jsxRuntimeExports=m;exports.match=Qv;exports.middleware=dy;exports.next=_e;exports.peek=It;exports.range=gN;exports.reactDomExports=Cn;exports.replace=en;exports.rulesheet=gy;exports.segmentGroupAnatomy=sh;exports.serialize=Hi;exports.slice=bn;exports.stringify=uy;exports.stringify$1=pC;exports.strlen=ct;exports.token=Io;exports.useCheckboxContext=ci;exports.useCheckboxGroup=Td;exports.useColorPickerContext=ee;exports.useDialogContext=ft;exports.useEditableContext=mt;exports.useFieldContext=se;exports.useFileUploadContext=xe;exports.useHighlight=nS;exports.useHoverCardContext=Xt;exports.usePaginationContext=Ir;exports.usePopoverContext=Ge;exports.useRatingGroupContext=Tr;exports.useRatingGroupItemContext=Xm;exports.useSelectContext=Re;exports.useSliderContext=Be;exports.useSwitchContext=kn;exports.useToastContext=Rr;exports.z=hN;
|
|
64
|
-
//# sourceMappingURL=vendor-DcKGwQlH.js.map
|