@televet/kibble-ui 4.0.0-beta.65 → 4.0.0-beta.66
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/{alert.types-Dth5h5qO.js → alert.types-DYf5xFEG.js} +3 -3
- package/dist/chunks/{alert.types-Dth5h5qO.js.map → alert.types-DYf5xFEG.js.map} +1 -1
- package/dist/chunks/{alert.types-BvnpOwve.js → alert.types-DbqCOYr5.js} +2 -2
- package/dist/chunks/{alert.types-BvnpOwve.js.map → alert.types-DbqCOYr5.js.map} +1 -1
- package/dist/chunks/{avatar.component-BPCJZRyT.js → avatar.component-Bk8VVA0l.js} +14 -14
- package/dist/chunks/{avatar.component-BPCJZRyT.js.map → avatar.component-Bk8VVA0l.js.map} +1 -1
- package/dist/chunks/avatar.component-TAfT1LM1.js +2 -0
- package/dist/chunks/{avatar.component-y7gTa1dV.js.map → avatar.component-TAfT1LM1.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-Mfl8jvgp.js → avatarGroup.component-BGF4gl5d.js} +2 -2
- package/dist/chunks/{avatarGroup.component-Mfl8jvgp.js.map → avatarGroup.component-BGF4gl5d.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-BnRXVOIV.js → avatarGroup.component-CZnhQOWy.js} +2 -2
- package/dist/chunks/{avatarGroup.component-BnRXVOIV.js.map → avatarGroup.component-CZnhQOWy.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-6ZBOJbfR.js → buttonGroup.component-CGxtwaQg.js} +2 -2
- package/dist/chunks/{buttonGroup.component-6ZBOJbfR.js.map → buttonGroup.component-CGxtwaQg.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-DQfB4Nj3.js → buttonGroup.component-IGM-yn-V.js} +2 -2
- package/dist/chunks/{buttonGroup.component-DQfB4Nj3.js.map → buttonGroup.component-IGM-yn-V.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Cs0y0DOj.js → characterCounter.component-CWDjnYNU.js} +3 -3
- package/dist/chunks/{characterCounter.component-Cs0y0DOj.js.map → characterCounter.component-CWDjnYNU.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-4T8NHb11.js → characterCounter.component-WOgGxKRq.js} +2 -2
- package/dist/chunks/{characterCounter.component-4T8NHb11.js.map → characterCounter.component-WOgGxKRq.js.map} +1 -1
- package/dist/chunks/{checkbox.component-DqlWmIyY.js → checkbox.component-B6-MOy86.js} +10 -10
- package/dist/chunks/{checkbox.component-DqlWmIyY.js.map → checkbox.component-B6-MOy86.js.map} +1 -1
- package/dist/chunks/checkbox.component-nkydue0g.js +2 -0
- package/dist/chunks/{checkbox.component-CFuJaYmY.js.map → checkbox.component-nkydue0g.js.map} +1 -1
- package/dist/chunks/{checkbox.records-08YIiUZO.js → checkbox.records-BtLBaHBy.js} +12 -12
- package/dist/chunks/{checkbox.records-08YIiUZO.js.map → checkbox.records-BtLBaHBy.js.map} +1 -1
- package/dist/chunks/checkbox.records-wbkLltak.js +2 -0
- package/dist/chunks/{checkbox.records-B7refmmT.js.map → checkbox.records-wbkLltak.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DaxmsqdZ.js → checkboxGroup.component-B1HL2vbn.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-DaxmsqdZ.js.map → checkboxGroup.component-B1HL2vbn.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DBqDJvPC.js → checkboxGroup.component-DCg4fRL0.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-DBqDJvPC.js.map → checkboxGroup.component-DCg4fRL0.js.map} +1 -1
- package/dist/chunks/{config-DlTdf-Yt.js → config-B1FINd7s.js} +3 -3
- package/dist/chunks/{config-DlTdf-Yt.js.map → config-B1FINd7s.js.map} +1 -1
- package/dist/chunks/conversationCard.component-2jO70XtY.js +2 -0
- package/dist/chunks/{conversationCard.component-CBrw3VnT.js.map → conversationCard.component-2jO70XtY.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-Bg1Q9FdN.js → conversationCard.component-Uv0-JSnX.js} +17 -18
- package/dist/chunks/{conversationCard.component-Bg1Q9FdN.js.map → conversationCard.component-Uv0-JSnX.js.map} +1 -1
- package/dist/chunks/datePicker.component-CM8TIMiW.js +15 -0
- package/dist/chunks/{datePicker.component-u52NQcza.js.map → datePicker.component-CM8TIMiW.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DfQNebKg.js → datePicker.component-DeOquWMk.js} +8 -8
- package/dist/chunks/{datePicker.component-DfQNebKg.js.map → datePicker.component-DeOquWMk.js.map} +1 -1
- package/dist/chunks/dialog-trigger-BCeZGpGO.js +2 -0
- package/dist/chunks/{dialog-trigger-B5NK0lr-.js.map → dialog-trigger-BCeZGpGO.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-BPlPzPU-.js → dialog-trigger-D2uDgMJr.js} +9 -9
- package/dist/chunks/{dialog-trigger-BPlPzPU-.js.map → dialog-trigger-D2uDgMJr.js.map} +1 -1
- package/dist/chunks/{heading.component-BXcyhAEU.js → heading.component-Bu1JbEVn.js} +2 -2
- package/dist/chunks/{heading.component-BXcyhAEU.js.map → heading.component-Bu1JbEVn.js.map} +1 -1
- package/dist/chunks/{heading.component-ZD_UVarx.js → heading.component-wD7BkQLG.js} +2 -2
- package/dist/chunks/{heading.component-ZD_UVarx.js.map → heading.component-wD7BkQLG.js.map} +1 -1
- package/dist/chunks/index-5cRW642o.js +2 -0
- package/dist/chunks/{index-Dyxhds_1.js.map → index-5cRW642o.js.map} +1 -1
- package/dist/chunks/index-B4fjIWcA.js +2 -0
- package/dist/chunks/{index-CZz7hHWb.js.map → index-B4fjIWcA.js.map} +1 -1
- package/dist/chunks/index-BfD9Ne2e.js +2 -0
- package/dist/chunks/{index-BYf7SZUC.js.map → index-BfD9Ne2e.js.map} +1 -1
- package/dist/chunks/index-BlGAWSIX.js +3 -0
- package/dist/chunks/index-BlGAWSIX.js.map +1 -0
- package/dist/chunks/index-BmcSWiFh.js +2 -0
- package/dist/chunks/{index-ZaGEDS_0.js.map → index-BmcSWiFh.js.map} +1 -1
- package/dist/chunks/index-C323eOJV.js +1328 -0
- package/dist/chunks/index-C323eOJV.js.map +1 -0
- package/dist/chunks/{index-BNYygzo-.js → index-CBh9RZVL.js} +17 -18
- package/dist/chunks/{index-BNYygzo-.js.map → index-CBh9RZVL.js.map} +1 -1
- package/dist/chunks/index-CEYJbpt4.js +2 -0
- package/dist/chunks/{index-BDnnTdaJ.js.map → index-CEYJbpt4.js.map} +1 -1
- package/dist/chunks/index-CFnNmQf0.js +2 -0
- package/dist/chunks/{index-MlhL0PDC.js.map → index-CFnNmQf0.js.map} +1 -1
- package/dist/chunks/{index-Co91SHhW.js → index-CZPHIn6T.js} +3 -3
- package/dist/chunks/{index-Co91SHhW.js.map → index-CZPHIn6T.js.map} +1 -1
- package/dist/chunks/index-CedYIQt5.js +8 -0
- package/dist/chunks/{index-UWtj4ULm.js.map → index-CedYIQt5.js.map} +1 -1
- package/dist/chunks/{index-CjNAJEk5.js → index-Cqwkg1hU.js} +105 -106
- package/dist/chunks/{index-CjNAJEk5.js.map → index-Cqwkg1hU.js.map} +1 -1
- package/dist/chunks/{index-C2kxTsiE.js → index-Cuu1x05z.js} +16 -17
- package/dist/chunks/{index-C2kxTsiE.js.map → index-Cuu1x05z.js.map} +1 -1
- package/dist/chunks/{index-D9DU-5GF.js → index-D5Dscg8T.js} +48 -49
- package/dist/chunks/{index-D9DU-5GF.js.map → index-D5Dscg8T.js.map} +1 -1
- package/dist/chunks/{index-MDMqrELk.js → index-DMSZTX7A.js} +9 -9
- package/dist/chunks/{index-MDMqrELk.js.map → index-DMSZTX7A.js.map} +1 -1
- package/dist/chunks/{index-BBZxmcrY.js → index-DZGYG5M4.js} +2 -2
- package/dist/chunks/{index-BBZxmcrY.js.map → index-DZGYG5M4.js.map} +1 -1
- package/dist/chunks/{index-S1uNQPZj.js → index-Dq91nN6-.js} +3 -3
- package/dist/chunks/{index-S1uNQPZj.js.map → index-Dq91nN6-.js.map} +1 -1
- package/dist/chunks/{index-DcJZ8q0f.js → index-Dx94WMw1.js} +43 -44
- package/dist/chunks/{index-DcJZ8q0f.js.map → index-Dx94WMw1.js.map} +1 -1
- package/dist/chunks/index-Fztcdoo_.js +2 -0
- package/dist/chunks/index-Fztcdoo_.js.map +1 -0
- package/dist/chunks/index-WyVSig7F.js +70 -0
- package/dist/chunks/index-WyVSig7F.js.map +1 -0
- package/dist/chunks/{index-DUHFrLMI.js → index-f4Ba8Pq7.js} +15 -15
- package/dist/chunks/{index-DUHFrLMI.js.map → index-f4Ba8Pq7.js.map} +1 -1
- package/dist/chunks/index-hGlTuPbK.js +2 -0
- package/dist/chunks/{index-COoMV9Mh.js.map → index-hGlTuPbK.js.map} +1 -1
- package/dist/chunks/{logo.types-By8TqyNf.js → logo.types-CXQsathd.js} +2 -2
- package/dist/chunks/{logo.types-By8TqyNf.js.map → logo.types-CXQsathd.js.map} +1 -1
- package/dist/chunks/{menu.component-D4gknsq1.js → menu.component-BKY1dybr.js} +26 -26
- package/dist/chunks/{menu.component-D4gknsq1.js.map → menu.component-BKY1dybr.js.map} +1 -1
- package/dist/chunks/menu.component-DllVICUa.js +2 -0
- package/dist/chunks/{menu.component-CiZzHc2D.js.map → menu.component-DllVICUa.js.map} +1 -1
- package/dist/chunks/modal.context-DSKLfsJK.js +12 -0
- package/dist/chunks/modal.context-DSKLfsJK.js.map +1 -0
- package/dist/chunks/modal.context-EJ67QNzq.js +2 -0
- package/dist/chunks/modal.context-EJ67QNzq.js.map +1 -0
- package/dist/chunks/modal.types-Bsq-uLZ0.js +2 -0
- package/dist/chunks/{modal.types-9-Bz6ybC.js.map → modal.types-Bsq-uLZ0.js.map} +1 -1
- package/dist/chunks/{modal.types-BV8Eand2.js → modal.types-CRH5aJ0U.js} +5 -5
- package/dist/chunks/{modal.types-BV8Eand2.js.map → modal.types-CRH5aJ0U.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-Bei8mHSZ.js → notificationCounter.component-DMr4Mlm9.js} +2 -2
- package/dist/chunks/{notificationCounter.component-Bei8mHSZ.js.map → notificationCounter.component-DMr4Mlm9.js.map} +1 -1
- package/dist/chunks/{pinInput.types-U7Tfj5It.js → pinInput.types-B-BknmcG.js} +8 -8
- package/dist/chunks/{pinInput.types-U7Tfj5It.js.map → pinInput.types-B-BknmcG.js.map} +1 -1
- package/dist/chunks/pinInput.types-tJTQQJxe.js +2 -0
- package/dist/chunks/{pinInput.types-B-RchRm_.js.map → pinInput.types-tJTQQJxe.js.map} +1 -1
- package/dist/chunks/{popover-B9rNOU0g.js → popover-D0QoPsrG.js} +26 -26
- package/dist/chunks/{popover-B9rNOU0g.js.map → popover-D0QoPsrG.js.map} +1 -1
- package/dist/chunks/popover-DPEovmxh.js +2 -0
- package/dist/chunks/{popover-80QH8HEJ.js.map → popover-DPEovmxh.js.map} +1 -1
- package/dist/chunks/popover-root-provider-BYJE5I-P.js +2 -0
- package/dist/chunks/{popover-root-provider-DAMDDAHQ.js.map → popover-root-provider-BYJE5I-P.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-CeLLpesI.js → popover-root-provider-Dt02njg5.js} +8 -8
- package/dist/chunks/{popover-root-provider-CeLLpesI.js.map → popover-root-provider-Dt02njg5.js.map} +1 -1
- package/dist/chunks/popover.component-CLMQkEDo.js +2 -0
- package/dist/chunks/popover.component-CLMQkEDo.js.map +1 -0
- package/dist/chunks/popover.component-MbM0Ajnr.js +264 -0
- package/dist/chunks/popover.component-MbM0Ajnr.js.map +1 -0
- package/dist/chunks/popover.recipe-BLsWPsAa.js +124 -0
- package/dist/chunks/popover.recipe-BLsWPsAa.js.map +1 -0
- package/dist/chunks/popover.recipe-av5Jdn1r.js +2 -0
- package/dist/chunks/popover.recipe-av5Jdn1r.js.map +1 -0
- package/dist/chunks/{use-locale-context-D-agiW5E.js → portal-D2KZrSzZ.js} +242 -242
- package/dist/chunks/portal-D2KZrSzZ.js.map +1 -0
- package/dist/chunks/portal-TWtD47zg.js +22 -0
- package/dist/chunks/portal-TWtD47zg.js.map +1 -0
- package/dist/chunks/radio.records-CEgwvLIL.js +2 -0
- package/dist/chunks/{radio.records-DLffZyeq.js.map → radio.records-CEgwvLIL.js.map} +1 -1
- package/dist/chunks/{radio.records-D7VFHW-s.js → radio.records-CzNYznSb.js} +16 -16
- package/dist/chunks/{radio.records-D7VFHW-s.js.map → radio.records-CzNYznSb.js.map} +1 -1
- package/dist/chunks/radioGroup.component-DAGmgDZ2.js +2 -0
- package/dist/chunks/{radioGroup.component-CZwrCppd.js.map → radioGroup.component-DAGmgDZ2.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DVsMiHFI.js → radioGroup.component-DEPDXEhQ.js} +11 -11
- package/dist/chunks/{radioGroup.component-DVsMiHFI.js.map → radioGroup.component-DEPDXEhQ.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-qbroWQhZ.js → ratingDots.component-BB7vPYdN.js} +2 -2
- package/dist/chunks/{ratingDots.component-qbroWQhZ.js.map → ratingDots.component-BB7vPYdN.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-1U-hoEpC.js → ratingDots.component-C32gNAmO.js} +4 -4
- package/dist/chunks/{ratingDots.component-1U-hoEpC.js.map → ratingDots.component-C32gNAmO.js.map} +1 -1
- package/dist/chunks/render-strategy-CdSSbgPU.js +2 -0
- package/dist/chunks/{render-strategy-BmWbSgqh.js.map → render-strategy-CdSSbgPU.js.map} +1 -1
- package/dist/chunks/{render-strategy-C8hwN3bm.js → render-strategy-ql9Qx5Cz.js} +2 -2
- package/dist/chunks/{render-strategy-C8hwN3bm.js.map → render-strategy-ql9Qx5Cz.js.map} +1 -1
- package/dist/chunks/select.component-BtBJUTF2.js +2 -0
- package/dist/chunks/{select.component-C_Fs6Xeq.js.map → select.component-BtBJUTF2.js.map} +1 -1
- package/dist/chunks/{select.component-5vAzdrZa.js → select.component-DfkLDyYt.js} +44 -44
- package/dist/chunks/{select.component-5vAzdrZa.js.map → select.component-DfkLDyYt.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B_O-YB3I.js → sortableList.component-B0lnVMXW.js} +3 -3
- package/dist/chunks/{sortableList.component-B_O-YB3I.js.map → sortableList.component-B0lnVMXW.js.map} +1 -1
- package/dist/chunks/{sortableList.component-BX3EvpRM.js → sortableList.component-B88NRcwx.js} +3 -3
- package/dist/chunks/{sortableList.component-BX3EvpRM.js.map → sortableList.component-B88NRcwx.js.map} +1 -1
- package/dist/chunks/{spinner.component-CzhcJOwX.js → spinner.component-DVjwuOVs.js} +2 -2
- package/dist/chunks/{spinner.component-CzhcJOwX.js.map → spinner.component-DVjwuOVs.js.map} +1 -1
- package/dist/chunks/{spinner.component-lHj69hIF.js → spinner.component-DWh3YuBJ.js} +3 -3
- package/dist/chunks/{spinner.component-lHj69hIF.js.map → spinner.component-DWh3YuBJ.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-BvHm6hKS.js → styledAvatar.types-ClVT0QDd.js} +2 -2
- package/dist/chunks/{styledAvatar.types-BvHm6hKS.js.map → styledAvatar.types-ClVT0QDd.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-B9SHiNfg.js → styledAvatar.types-DamSY23W.js} +2 -2
- package/dist/chunks/{styledAvatar.types-B9SHiNfg.js.map → styledAvatar.types-DamSY23W.js.map} +1 -1
- package/dist/chunks/{swatch.types-DbgA3RWc.js → swatch.types-B8OSJZ-a.js} +2 -2
- package/dist/chunks/{swatch.types-DbgA3RWc.js.map → swatch.types-B8OSJZ-a.js.map} +1 -1
- package/dist/chunks/{switch.component-DjOGsCIQ.js → switch.component-BEkYEUKY.js} +11 -11
- package/dist/chunks/{switch.component-DjOGsCIQ.js.map → switch.component-BEkYEUKY.js.map} +1 -1
- package/dist/chunks/switch.component-DjbXfvMa.js +2 -0
- package/dist/chunks/{switch.component-B3Gfgft9.js.map → switch.component-DjbXfvMa.js.map} +1 -1
- package/dist/chunks/{tabs.component-Ca9jVGv0.js → tabs.component-Bmg0kB-p.js} +48 -48
- package/dist/chunks/{tabs.component-Ca9jVGv0.js.map → tabs.component-Bmg0kB-p.js.map} +1 -1
- package/dist/chunks/tabs.component-Bn_7bf0X.js +2 -0
- package/dist/chunks/{tabs.component-pl0kO5_M.js.map → tabs.component-Bn_7bf0X.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-CnPbyaGH.js → tagBlock.component-3ypfB6tz.js} +5 -5
- package/dist/chunks/{tagBlock.component-CnPbyaGH.js.map → tagBlock.component-3ypfB6tz.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-C2DAQrQE.js → tagBlock.component-x3oh7uht.js} +2 -2
- package/dist/chunks/{tagBlock.component-C2DAQrQE.js.map → tagBlock.component-x3oh7uht.js.map} +1 -1
- package/dist/chunks/textInput.component-B1--78Mp.js +2 -0
- package/dist/chunks/{textInput.component-D-galjwy.js.map → textInput.component-B1--78Mp.js.map} +1 -1
- package/dist/chunks/{textInput.component-DXtEgbkr.js → textInput.component-D9Dl8cP3.js} +12 -12
- package/dist/chunks/{textInput.component-DXtEgbkr.js.map → textInput.component-D9Dl8cP3.js.map} +1 -1
- package/dist/chunks/textarea.component-BxC5lB4t.js +2 -0
- package/dist/chunks/{textarea.component-DmxMuMCU.js.map → textarea.component-BxC5lB4t.js.map} +1 -1
- package/dist/chunks/{textarea.component-Do0zHf-1.js → textarea.component-DZXDIbZg.js} +7 -7
- package/dist/chunks/{textarea.component-Do0zHf-1.js.map → textarea.component-DZXDIbZg.js.map} +1 -1
- package/dist/chunks/theme.provider-CpxxMiXd.js +26 -0
- package/dist/chunks/theme.provider-CpxxMiXd.js.map +1 -0
- package/dist/chunks/{theme.provider-Dj4pZ815.js → theme.provider-DmGvaymX.js} +1830 -1699
- package/dist/chunks/theme.provider-DmGvaymX.js.map +1 -0
- package/dist/chunks/{timePicker.component-DTs3MjOx.js → timePicker.component-DnFPWIcy.js} +4 -4
- package/dist/chunks/{timePicker.component-DTs3MjOx.js.map → timePicker.component-DnFPWIcy.js.map} +1 -1
- package/dist/chunks/{timePicker.component-CophNE3d.js → timePicker.component-F9o8MNWu.js} +2 -2
- package/dist/chunks/{timePicker.component-CophNE3d.js.map → timePicker.component-F9o8MNWu.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C5dt8sZn.js → timeRange.component-Bh2FiRi8.js} +2 -2
- package/dist/chunks/{timeRange.component-C5dt8sZn.js.map → timeRange.component-Bh2FiRi8.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C5wSyUiZ.js → timeRange.component-Bj-9ynHS.js} +2 -2
- package/dist/chunks/{timeRange.component-C5wSyUiZ.js.map → timeRange.component-Bj-9ynHS.js.map} +1 -1
- package/dist/chunks/timestamp.component-BKr4dkxB.js +53 -0
- package/dist/chunks/{timestamp.component-BPU8bf7p.js.map → timestamp.component-BKr4dkxB.js.map} +1 -1
- package/dist/chunks/timestamp.component-CfjeVkJs.js +2 -0
- package/dist/chunks/{timestamp.component-rTLrzBPA.js.map → timestamp.component-CfjeVkJs.js.map} +1 -1
- package/dist/chunks/toaster.records-CGym-iT-.js +2 -0
- package/dist/chunks/{toaster.records-BJo0j1IZ.js.map → toaster.records-CGym-iT-.js.map} +1 -1
- package/dist/chunks/{toaster.records-BGfpUOVt.js → toaster.records-Cf8bpHo8.js} +21 -22
- package/dist/chunks/{toaster.records-BGfpUOVt.js.map → toaster.records-Cf8bpHo8.js.map} +1 -1
- package/dist/chunks/{typography.records-C6G_65b4.js → typography.records-BeoK0Uyj.js} +2 -2
- package/dist/chunks/{typography.records-C6G_65b4.js.map → typography.records-BeoK0Uyj.js.map} +1 -1
- package/dist/chunks/{typography.records-jnjWfTLS.js → typography.records-Xg59taw9.js} +2 -2
- package/dist/chunks/{typography.records-jnjWfTLS.js.map → typography.records-Xg59taw9.js.map} +1 -1
- package/dist/chunks/{use-field-context-B_G7Yziz.js → use-field-context-C4IwmN39.js} +2 -2
- package/dist/chunks/{use-field-context-B_G7Yziz.js.map → use-field-context-C4IwmN39.js.map} +1 -1
- package/dist/chunks/use-field-context-xBX4EpFz.js +2 -0
- package/dist/chunks/{use-field-context--wBJQY1R.js.map → use-field-context-xBX4EpFz.js.map} +1 -1
- package/dist/chunks/withFormControl-BHjeRAfg.js +2 -0
- package/dist/chunks/{withFormControl-DpytztWF.js.map → withFormControl-BHjeRAfg.js.map} +1 -1
- package/dist/chunks/{withFormControl-BDuV97Vb.js → withFormControl-KA9fAHrR.js} +49 -49
- package/dist/chunks/{withFormControl-BDuV97Vb.js.map → withFormControl-KA9fAHrR.js.map} +1 -1
- package/dist/chunks/withTruncation-CQUQzrTa.js +561 -0
- package/dist/chunks/withTruncation-CQUQzrTa.js.map +1 -0
- package/dist/chunks/withTruncation-DguVvIAI.js +2 -0
- package/dist/chunks/withTruncation-DguVvIAI.js.map +1 -0
- package/dist/chunks/{wrap-B8tBNeBY.js → wrap-CYgSj8wY.js} +2 -2
- package/dist/chunks/{wrap-B8tBNeBY.js.map → wrap-CYgSj8wY.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/chakra/index.cjs.map +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/ButtonGroup/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/Heading/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/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/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/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/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +69 -69
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/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/Heading/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/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 +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/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 +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +41 -42
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +60 -61
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Menu/menu.recipe.d.ts +1 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
- package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -1
- package/dist/types/components/Tooltip/tooltip.component.d.ts +5 -6
- package/dist/types/theme/tokens/shadows/shadows.config.d.ts +3 -3
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +3 -3
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +10 -10
- package/package.json +1 -1
- package/dist/chunks/avatar.component-y7gTa1dV.js +0 -2
- package/dist/chunks/checkbox.component-CFuJaYmY.js +0 -2
- package/dist/chunks/checkbox.records-B7refmmT.js +0 -2
- package/dist/chunks/conversationCard.component-CBrw3VnT.js +0 -2
- package/dist/chunks/datePicker.component-u52NQcza.js +0 -15
- package/dist/chunks/dialog-trigger-B5NK0lr-.js +0 -2
- package/dist/chunks/index-BDnnTdaJ.js +0 -2
- package/dist/chunks/index-BGwwyukg.js +0 -2
- package/dist/chunks/index-BGwwyukg.js.map +0 -1
- package/dist/chunks/index-BYf7SZUC.js +0 -2
- package/dist/chunks/index-COoMV9Mh.js +0 -2
- package/dist/chunks/index-CYk-7wwG.js +0 -1018
- package/dist/chunks/index-CYk-7wwG.js.map +0 -1
- package/dist/chunks/index-CZ42b9rT.js +0 -3
- package/dist/chunks/index-CZ42b9rT.js.map +0 -1
- package/dist/chunks/index-CZz7hHWb.js +0 -2
- package/dist/chunks/index-Dyxhds_1.js +0 -2
- package/dist/chunks/index-MlhL0PDC.js +0 -2
- package/dist/chunks/index-UWtj4ULm.js +0 -8
- package/dist/chunks/index-ZaGEDS_0.js +0 -2
- package/dist/chunks/index-j7W9Hyzx.js +0 -322
- package/dist/chunks/index-j7W9Hyzx.js.map +0 -1
- package/dist/chunks/menu.component-CiZzHc2D.js +0 -2
- package/dist/chunks/modal.types-9-Bz6ybC.js +0 -2
- package/dist/chunks/pinInput.types-B-RchRm_.js +0 -2
- package/dist/chunks/popover-80QH8HEJ.js +0 -2
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js +0 -2
- package/dist/chunks/popover.component-A8In7d2B.js +0 -2
- package/dist/chunks/popover.component-A8In7d2B.js.map +0 -1
- package/dist/chunks/popover.component-BR8W3Jb8.js +0 -322
- package/dist/chunks/popover.component-BR8W3Jb8.js.map +0 -1
- package/dist/chunks/popover.recipe--gMRcQTS.js +0 -479
- package/dist/chunks/popover.recipe--gMRcQTS.js.map +0 -1
- package/dist/chunks/popover.recipe-DLeyokHo.js +0 -2
- package/dist/chunks/popover.recipe-DLeyokHo.js.map +0 -1
- package/dist/chunks/radio.records-DLffZyeq.js +0 -2
- package/dist/chunks/radioGroup.component-CZwrCppd.js +0 -2
- package/dist/chunks/render-strategy-BmWbSgqh.js +0 -2
- package/dist/chunks/select.component-C_Fs6Xeq.js +0 -2
- package/dist/chunks/switch.component-B3Gfgft9.js +0 -2
- package/dist/chunks/tabs.component-pl0kO5_M.js +0 -2
- package/dist/chunks/text.component-CnnBhB3c.js +0 -2
- package/dist/chunks/text.component-CnnBhB3c.js.map +0 -1
- package/dist/chunks/text.component-Cpruo7MB.js +0 -12
- package/dist/chunks/text.component-Cpruo7MB.js.map +0 -1
- package/dist/chunks/textInput.component-D-galjwy.js +0 -2
- package/dist/chunks/textarea.component-DmxMuMCU.js +0 -2
- package/dist/chunks/theme.provider-CIJGn9Kh.js +0 -26
- package/dist/chunks/theme.provider-CIJGn9Kh.js.map +0 -1
- package/dist/chunks/theme.provider-Dj4pZ815.js.map +0 -1
- package/dist/chunks/timestamp.component-BPU8bf7p.js +0 -54
- package/dist/chunks/timestamp.component-rTLrzBPA.js +0 -2
- package/dist/chunks/toaster.records-BJo0j1IZ.js +0 -2
- package/dist/chunks/tooltip.component-CwrXAVEq.js +0 -2
- package/dist/chunks/tooltip.component-CwrXAVEq.js.map +0 -1
- package/dist/chunks/tooltip.component-DgOzrNG3.js +0 -758
- package/dist/chunks/tooltip.component-DgOzrNG3.js.map +0 -1
- package/dist/chunks/use-field-context--wBJQY1R.js +0 -2
- package/dist/chunks/use-locale-context-BdqHZ8L8.js +0 -22
- package/dist/chunks/use-locale-context-BdqHZ8L8.js.map +0 -1
- package/dist/chunks/use-locale-context-D-agiW5E.js.map +0 -1
- package/dist/chunks/withFormControl-DpytztWF.js +0 -2
- package/dist/chunks/withTruncation-DPbMF-jg.js +0 -2
- package/dist/chunks/withTruncation-DPbMF-jg.js.map +0 -1
- package/dist/chunks/withTruncation-DoQriKuH.js +0 -67
- package/dist/chunks/withTruncation-DoQriKuH.js.map +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";function ct(e){return e?Array.isArray(e)?e:[e]:[]}var ut=e=>Array.from(Array(e).keys()),lt=e=>e[0],ft=e=>e[e.length-1],dt=(e,t)=>e.indexOf(t)!==-1,Ie=(e,...t)=>e.concat(t),Le=(e,...t)=>e.filter(n=>!t.includes(n)),pt=(e,t)=>dt(e,t)?Le(e,t):Ie(e,t);function Ne(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function mt(e,t,n={}){return e[Ne(e,t,n)]}function ht(e,t,n={}){const{step:r=1,loop:o=!0}=n;return Ne(e,t,{step:-r,loop:o})}function yt(e,t,n={}){return e[ht(e,t,n)]}function De(e){return e.reduce((t,n)=>Array.isArray(n)?t.concat(De(n)):t.concat(n),[])}var ye=e=>e?.constructor.name==="Array",gt=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!H(e[n],t[n]))return!1;return!0},H=(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(ye(e)&&ye(t))return gt(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;o<r;o++)if(!Reflect.has(e,n[o]))return!1;for(let o=0;o<r;o++){const i=n[o];if(!H(e[i],t[i]))return!1}return!0},vt=e=>Array.isArray(e),bt=e=>e!=null&&typeof e=="object",Et=e=>bt(e)&&!vt(e),wt=e=>typeof e=="number"&&!Number.isNaN(e),_=e=>typeof e=="string",se=e=>typeof e=="function",At=e=>e==null,kt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Tt=Function.prototype.toString;Tt.call(Object);var Pt=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,xt=e=>e(),St=()=>{},U=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})},It=(()=>{let e=0;return()=>(e++,e.toString(36))})(),Ve=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,Ve),t?.()}},{floor:ne,abs:z,round:X,min:Lt,max:Nt,pow:Dt,sign:Vt}=Math,K=e=>Number.isNaN(e),L=e=>K(e)?0:e,Ot=(e,t)=>(e%t+t)%t,Mt=(e,t)=>(e%t+t)%t,Ct=(e,t,n)=>e===0?n:t[e-1],Bt=(e,t,n)=>e===t.length-1?n:t[e+1],Rt=(e,t)=>L(e)>=t,Ft=(e,t)=>L(e)<=t,Kt=(e,t,n)=>L(e)>=t&&L(e)<=n,jt=(e,t,n)=>X((L(e)-t)/n)*n+t,Oe=(e,t,n)=>Lt(Nt(L(e),t),n),qt=(e,t,n)=>(L(e)-t)/(n-t),_t=(e,t,n,r)=>Oe(jt(e*(n-t)+t,t,r),t,n),q=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=Dt(10,i);n=X(n*s)/s}return n},$t=(e,t)=>typeof t=="number"?ne(e*t+.5)/t:X(e),Me=(e,t,n,r)=>{t=Number(t),n=Number(n);let o=(e-(K(t)?0:t))%r,i=q(z(o)*2>=r?e+Vt(o)*(r-z(o)):e-o,r);return K(t)?!K(n)&&i>n&&(i=t+ne(q((n-t)/r,r))*r):i<t?i=t:!K(n)&&i>n&&(i=t+ne(q((n-t)/r,r))*r),q(i,r)},Ce=(e,t,n)=>e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)];function Be(e,t){const n=Ct(e,t.values,t.min),r=Bt(e,t.values,t.max);let o=t.values.slice();return function(s){let a=Me(s,n,r,t.step);return o=Ce(o,e,s),o[e]=a,o}}function Wt(e,t){const n=t.values[e]+t.step;return Be(e,t)(n)}function Ut(e,t){const n=t.values[e]-t.step;return Be(e,t)(n)}var zt=(e,t)=>{let n=e.findIndex(i=>t-i<0);if(n===0)return n;if(n===-1)return e.length-1;let r=e[n-1],o=e[n];return z(r-t)<z(o-t)?n-1:n},Ht=(e,t,n,r)=>e.map((o,i)=>({min:i===0?t:e[i-1]+r,max:i===e.length-1?n:e[i+1]-r,value:o})),Xt=(e,t)=>{const[n,r]=e,[o,i]=t;return s=>n===r||o===i?o:o+(i-o)/(r-n)*(s-n)},Yt=(e,t=0,n=10)=>{const r=Math.pow(n,t);return X(e*r)/r},ge=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},Re=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(ge(e),ge(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},Gt=(e,t)=>Re(L(e),"+",t),Zt=(e,t)=>Re(L(e),"-",t),Jt=e=>e!=null?`${e}px`:void 0;function Fe(e){if(!Qt(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=Fe(o))}return n}var Qt=e=>e&&typeof e=="object"&&e.constructor===Object;function en(e,t){const n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=o)}return n}function tn(e,t){const n=performance.now();let r;function o(i){r=requestAnimationFrame(o),i-n>=t&&e()}return r=requestAnimationFrame(o),()=>cancelAnimationFrame(r)}function ae(...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 nn(...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 rn(e,t){if(e==null)throw new Error(t())}function on(e,t,n){let r=[];for(const o of t)e[o]==null&&r.push(o);if(r.length>0)throw new Error(`[zag-js${` > ${n}`}] missing required props: ${r.join(", ")}`)}var ve=e=>Math.max(0,Math.min(1,e)),sn=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),ee=(...e)=>t=>e.reduce((n,r)=>r(n),t),C=()=>{},Y=e=>typeof e=="object"&&e!==null,an=2147483647,cn=e=>e?"":void 0,un=e=>e?"true":void 0,ln=1,fn=9,dn=11,v=e=>Y(e)&&e.nodeType===ln&&typeof e.nodeName=="string",ce=e=>Y(e)&&e.nodeType===fn,pn=e=>Y(e)&&e===e.window,Ke=e=>v(e)?e.localName||"":"#document";function mn(e){return["html","body","#document"].includes(Ke(e))}var hn=e=>Y(e)&&e.nodeType!==void 0,R=e=>hn(e)&&e.nodeType===dn&&"host"in e,yn=e=>v(e)&&e.localName==="input",gn=e=>!!e?.matches("a[href]"),vn=e=>v(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,bn=/(textarea|select)/;function je(e){if(e==null||!v(e))return!1;try{return yn(e)&&e.selectionStart!=null||bn.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function V(e,t){if(!e||!t||!v(e)||!v(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&R(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function D(e){return ce(e)?e:pn(e)?e.document:e?.ownerDocument??document}function En(e){return D(e).documentElement}function A(e){return R(e)?A(e.host):ce(e)?e.defaultView??window:v(e)?e.ownerDocument?.defaultView??window:window}function qe(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function wn(e){if(Ke(e)==="html")return e;const t=e.assignedSlot||e.parentNode||R(e)&&e.host||En(e);return R(t)?t.host:t}var te=new WeakMap;function An(e){return te.has(e)||te.set(e,A(e).getComputedStyle(e)),te.get(e)}function kn(e,t){const{type:n,quality:r=.92,background:o}=t;if(!e)throw new Error("[zag-js > getDataUrl]: Could not find the svg element");const i=A(e),s=i.document,a=e.getBoundingClientRect(),u=e.cloneNode(!0);u.hasAttribute("viewBox")||u.setAttribute("viewBox",`0 0 ${a.width} ${a.height}`);const m=`<?xml version="1.0" standalone="no"?>\r
|
|
2
|
+
`+new i.XMLSerializer().serializeToString(u),h="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(m);if(n==="image/svg+xml")return Promise.resolve(h).then(T=>(u.remove(),T));const f=i.devicePixelRatio||1,c=s.createElement("canvas"),d=new i.Image;d.src=h,c.width=a.width*f,c.height=a.height*f;const b=c.getContext("2d");return(n==="image/jpeg"||o)&&(b.fillStyle=o||"white",b.fillRect(0,0,c.width,c.height)),new Promise(T=>{d.onload=()=>{b?.drawImage(d,0,0,c.width,c.height),T(c.toDataURL(n,r)),u.remove()}})}var G=()=>typeof document<"u";function Tn(){return navigator.userAgentData?.platform??navigator.platform}function Pn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var ue=e=>G()&&e.test(Tn()),_e=e=>G()&&e.test(Pn()),xn=e=>G()&&e.test(navigator.vendor),be=()=>G()&&!!navigator.maxTouchPoints,Sn=()=>ue(/^iPhone/i),In=()=>ue(/^iPad/i)||J()&&navigator.maxTouchPoints>1,Z=()=>Sn()||In(),le=()=>J()||Z(),J=()=>ue(/^Mac/i),Ln=()=>le()&&xn(/apple/i),Nn=()=>_e(/Firefox/i),Dn=()=>_e(/Android/i);function Vn(e){const{selectionStart:t,selectionEnd:n,value:r}=e.currentTarget;return r.slice(0,t)+e.data+r.slice(n)}function On(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function O(e){return On(e)?.[0]??e.target}var Mn=e=>V(e.currentTarget,O(e));function Cn(e){const t=e.currentTarget;if(!t)return!1;const n=le();if(n&&!e.metaKey||!n&&!e.ctrlKey)return!1;const r=t.localName;return r==="a"||r==="button"&&t.type==="submit"||r==="input"&&t.type==="submit"}function Bn(e){const t=e.currentTarget;if(!t)return!1;const n=t.localName;return e.altKey?n==="a"||n==="button"&&t.type==="submit"||n==="input"&&t.type==="submit":!1}function Rn(e){return We(e).isComposing||e.keyCode===229}function Fn(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function Kn(e){return e.mozInputSource===0&&e.isTrusted?!0:Dn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var jn=e=>e.button===0,$e=e=>e.button===2||J()&&e.ctrlKey&&e.button===0,qn=e=>e.ctrlKey||e.altKey||e.metaKey,_n=e=>"touches"in e&&e.touches.length>0,$n={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Ee={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function Wn(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let o=e.key;return o=$n[o]??o,n==="rtl"&&r==="horizontal"&&o in Ee&&(o=Ee[o]),o}function We(e){return e.nativeEvent??e}var Un=new Set(["PageUp","PageDown"]),zn=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function Hn(e){return e.ctrlKey||e.metaKey?.1:Un.has(e.key)||e.shiftKey&&zn.has(e.key)?10:1}function fe(e,t="client"){const n=_n(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var y=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,n,r),()=>{o?.removeEventListener(t,n,r)}};function Ue(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=A(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function Xn(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function ze(e,t,n="value"){if(!e)return;const r=Xn(e);r&&Ue(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function He(e,t){if(!e)return;Ue(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Yn(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=A(e);e instanceof o.HTMLInputElement&&(ze(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function Gn(e,t){const{checked:n,bubbles:r=!0}=t;if(!e)return;const o=A(e);e instanceof o.HTMLInputElement&&(He(e,n),e.dispatchEvent(new o.Event("click",{bubbles:r})))}function Zn(e){return Jn(e)?e.form:e.closest("form")}function Jn(e){return e.matches("textarea, input, select, button")}function Qn(e,t){if(!e)return;const n=Zn(e),r=o=>{o.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function er(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=A(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function tr(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[Qn(e,r),er(e,n)];return()=>o.forEach(i=>i?.())}var Xe=e=>v(e)&&e.tagName==="IFRAME",nr=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),rr=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,de="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",Ye=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(de));(t==!0||t=="if-empty"&&n.length===0)&&v(e)&&F(e)&&n.unshift(e);const o=n.filter(F);return o.forEach((i,s)=>{if(Xe(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...Ye(a))}}),o};function F(e){return!e||e.closest("[inert]")?!1:e.matches(de)&&vn(e)}function j(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(de)),r=n.filter(re);return t&&re(e)&&r.unshift(e),r.forEach((o,i)=>{if(Xe(o)&&o.contentDocument){const s=o.contentDocument.body,a=j(s);r.splice(i,1,...a)}}),!r.length&&t?n:r}function re(e){return e!=null&&e.tabIndex>0?!0:F(e)&&!rr(e)}function Ge(e,t){const n=j(e,t),r=n[0]||null,o=n[n.length-1]||null;return[r,o]}function or(e,t){const n=j(e),r=e?.ownerDocument||document,o=t??r.activeElement;if(!o)return null;const i=n.indexOf(o);return n[i+1]||null}function ir(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||je(e))&&!nr(e)?0:e.tabIndex}function sr(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=j(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function ar(e){const t=e.currentTarget;if(!t)return!1;const[n,r]=Ge(t),o=t.ownerDocument||document;return!(o.activeElement===n&&e.shiftKey||o.activeElement===r&&!e.shiftKey||!n&&!r)}function Ze(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function k(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function cr(e,t,n){const r=k(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function ur(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function lr(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(ur(i,t))})),()=>{o.forEach(i=>i?.())}}function fr(e,t){const{callback:n}=t;if(!e)return;const r=e.ownerDocument.defaultView||window,o=new r.MutationObserver(n);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function dr(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(fr(i,t))})),()=>{o.forEach(i=>i?.())}}function pr(e){const t=()=>e.click();Nn()?cr(e,"keyup",t):queueMicrotask(t)}function oe(e){const t=wn(e);return mn(t)?D(t).body:v(t)&&Je(t)?t:oe(t)}var mr=/auto|scroll|overlay|hidden|clip/;function Je(e){const t=A(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return mr.test(n+o+r)&&!["inline","contents"].includes(i)}function hr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function yr(e,t){const{rootEl:n,...r}=t||{};!e||!n||!Je(n)||!hr(n)||e.scrollIntoView(r)}function gr(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:ve(s.x/o),y:ve(s.y/i)};function u(l={}){const{dir:m="ltr",orientation:h="horizontal",inverted:f}=l,c=typeof f=="object"?f.x:f,d=typeof f=="object"?f.y:f;return h==="horizontal"?m==="rtl"||c?1-a.x:a.x:d?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:u}}function vr(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(u){o(),console.error("PointerLock error occurred:",u),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[y(e,"pointerlockchange",i,!1),y(e,"pointerlockerror",s,!1)];return()=>{a.forEach(u=>u()),e.exitPointerLock()}}var B="default",ie="",$=new WeakMap;function br(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return Z()?(B==="default"&&(ie=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),B="disabled"):t&&($.set(t,t.style.userSelect),t.style.userSelect="none"),()=>Er({target:t,doc:r})}function Er(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(Z()){if(B!=="disabled")return;B="restoring",setTimeout(()=>{Ze(()=>{B==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=ie||""),ie="",B="default")})},300)}else if(t&&$.has(t)){const i=$.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),$.delete(t)}}function Qe(e={}){const{defer:t,target:n,...r}=e,o=t?k:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(br({...r,target:s}))})),()=>{i.forEach(s=>s?.())}}function wr(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[y(e,"pointermove",s=>{const a=fe(s),u=Math.sqrt(a.x**2+a.y**2),l=s.pointerType==="touch"?10:5;if(!(u<l)){if(s.pointerType==="mouse"&&s.button===0){r();return}n({point:a,event:s})}},!1),y(e,"pointerup",r,!1),y(e,"pointercancel",r,!1),y(e,"contextmenu",r,!1),Qe({doc:e})];return()=>{i.forEach(s=>s())}}function Ar(e){const{pointerNode:t,keyboardNode:n=t,onPress:r,onPressStart:o,onPressEnd:i,isValidKey:s=p=>p.key==="Enter"}=e;if(!t)return C;const a=A(t),u=D(t);let l=C,m=C,h=C;const f=p=>({point:fe(p),event:p});function c(p){o?.(f(p))}function d(p){i?.(f(p))}const T=y(t,"pointerdown",p=>{m();const I=y(a,"pointerup",x=>{const N=O(x);V(t,N)?r?.(f(x)):i?.(f(x))},{passive:!r,once:!0}),P=y(a,"pointercancel",d,{passive:!i,once:!0});m=ee(I,P),u.activeElement===n&&p.pointerType==="mouse"&&p.preventDefault(),c(p)},{passive:!o}),S=y(n,"focus",g);l=ee(T,S);function g(){const p=x=>{if(!s(x))return;const N=st=>{if(!s(st))return;const at=new a.PointerEvent("pointerup"),he=f(at);r?.(he),i?.(he)};m(),m=y(n,"keyup",N);const Q=new a.PointerEvent("pointerdown");c(Q)},E=()=>{const x=new a.PointerEvent("pointercancel");d(x)},I=y(n,"keydown",p),P=y(n,"blur",E);h=ee(I,P)}return()=>{l(),m(),h()}}function kr(e,t={}){const{triggerElement:n,onFocus:r,onFocusEnter:o}=t,i=e?.ownerDocument||document,s=i.body;function a(u){if(u.key!=="Tab")return;let l=null;const[m,h]=Ge(e,!0),f=or(s,n),c=!m&&!h;u.shiftKey&&f===i.activeElement?(o?.(),l=h):u.shiftKey&&(i.activeElement===m||c)?l=n:!u.shiftKey&&i.activeElement===n?(o?.(),l=m):!u.shiftKey&&(i.activeElement===h||c)&&(l=f),l&&(u.preventDefault(),typeof r=="function"?r(l):l.focus())}return y(i,"keydown",a,!0)}function Tr(e,t){const{defer:n,triggerElement:r,...o}=t,i=n?k:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,u=typeof r=="function"?r():r;s.push(kr(a,{triggerElement:u,...o}))})),()=>{s.forEach(a=>a?.())}}function Pr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function xr(e,t){return e?.querySelector(t)??null}var pe=e=>e.id;function et(e,t,n=pe){return e.find(r=>n(r)===t)}function me(e,t,n=pe){const r=et(e,t,n);return r?e.indexOf(r):-1}function Sr(e,t,n=!0){let r=me(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Ir(e,t,n=!0){let r=me(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function Lr(e,t){const{onEntry:n,measure:r,box:o="border-box"}=t,i=(Array.isArray(e)?e:[e]).filter(v),s=A(i[0]),a=l=>{const m=i.map(h=>r(h));n({rects:m,entries:l})};a([]);const u=new s.ResizeObserver(a);return i.forEach(l=>u.observe(l,{box:o})),()=>u.disconnect()}var Nr=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),Dr=e=>Nr(e.dataset?.valuetext??e.textContent??""),Vr=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Or(e,t,n,r=pe){const o=n?me(e,n,r):-1;let i=n?sn(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>Vr(Dr(a),t))}function tt(e,t){if(!e)return C;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function Mr(e,t,n){if(!e)return C;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function Cr(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,l=a.length>1&&Array.from(a).every(d=>d===a[0])?a[0]:a;let m=e.slice();const h=Or(m,l,r,s);function f(){clearTimeout(n.timer),n.timer=-1}function c(d){n.keysSoFar=d,f(),d!==""&&(n.timer=+setTimeout(()=>{c(""),f()},i))}return c(a),h}var Br=Object.assign(Cr,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:Rr});function Rr(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Fr={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},Kr=1e3/60;function jr(e,t){const n=e();if(v(n)&&n.isConnected)return t(n),()=>{};{const r=setInterval(()=>{const o=e();v(o)&&o.isConnected&&(t(o),clearInterval(r))},Kr);return()=>clearInterval(r)}}function qr(e,t){const n=[];return e?.forEach(r=>{const o=jr(r,t);n.push(o)}),()=>{n.forEach(r=>r())}}var _r=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),$r=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,we=e=>{const t={};let n;for(;n=$r.exec(e);)t[n[1]]=n[2];return t},Wr=(e,t)=>{if(_(e)){if(_(t))return`${e};${t}`;e=we(e)}else _(t)&&(t=we(t));return Object.assign({},e??{},t??{})};function Ur(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=U(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=_r(t[r],n[r]);continue}if(r==="style"){t[r]=Wr(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function zr(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((u,l)=>!H(r[l],u)))&&(r=s,o=t(...s)),o}}function nt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function Hr(e){return e}function Xr(){return{guards:nt(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}var rt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(rt||{}),Yr="__init__";function Gr(e){const t=()=>e.getRootNode?.()??document,n=()=>D(t()),r=()=>n().defaultView??window,o=()=>qe(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}var W=(e,t=[])=>({parts:(...n)=>{if(Zr(t))return W(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>W(e,[...t,...n]),rename:n=>W(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${M(e)}"][data-part="${M(r)}"]`,`& [data-scope="${M(e)}"][data-part="${M(r)}"]`].join(", "),attrs:{"data-scope":M(e),"data-part":M(r)}}}),{})}),M=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Zr=e=>e.length===0;function Jr(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const o=e.frames[r];o&&n(o)}},addEventListener(n,r,o){return t.each(i=>{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function Qr(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t?.addEventListener(n,r,o)}catch{}return()=>{try{t?.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t?.removeEventListener(n,r,o)}catch{}}}}var Ae="pointerdown.outside",ke="focus.outside";function eo(e){for(const t of e)if(v(t)&&F(t))return!0;return!1}var ot=e=>"clientY"in e;function to(e,t){if(!ot(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function no(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Te(e,t){if(!t||!ot(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&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+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return no(s,a)?r||i:!1}function ro(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=D(e),u=A(e),l=Jr(u),m=Qr(u);function h(g,p){if(!v(p)||!p.isConnected||V(e,p)||to(e,g))return!1;const E=a.querySelector(`[aria-controls="${e.id}"]`);if(E){const P=oe(E);if(Te(g,P))return!1}const I=oe(e);return Te(g,I)?!1:!n?.(p)}const f=new Set,c=R(e?.getRootNode());function d(g){function p(E){const I=s&&!be()?k:N=>N(),P=E??g,x=P?.composedPath?.()??[P?.target];I(()=>{const N=c?x[0]:O(g);if(!(!e||!h(g,N))){if(o||i){const Q=U(o,i);e.addEventListener(Ae,Q,{once:!0})}Pe(e,Ae,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:$e(P),focusable:eo(x),target:N}})}})}g.pointerType==="touch"?(f.forEach(E=>E()),f.add(y(a,"click",p,{once:!0})),f.add(m.addEventListener("click",p,{once:!0})),f.add(l.addEventListener("click",p,{once:!0}))):p()}const b=new Set,T=setTimeout(()=>{b.add(y(a,"pointerdown",d,!0)),b.add(m.addEventListener("pointerdown",d,!0)),b.add(l.addEventListener("pointerdown",d,!0))},0);function S(g){(s?k:E=>E())(()=>{const E=O(g);if(!(!e||!h(g,E))){if(r||i){const I=U(r,i);e.addEventListener(ke,I,{once:!0})}Pe(e,ke,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,contextmenu:!1,focusable:F(E),target:E}})}})}return be()||(b.add(y(a,"focusin",S,!0)),b.add(m.addEventListener("focusin",S,!0)),b.add(l.addEventListener("focusin",S,!0))),()=>{clearTimeout(T),f.forEach(g=>g()),b.forEach(g=>g())}}function it(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(ro(i,t))})),()=>{o.forEach(i=>i?.())}}function Pe(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function oo(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return y(D(e),"keydown",n,{capture:!0})}var w={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),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},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(n=>V(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>V(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(r=>r.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)}},xe;function Se(){w.layers.forEach(({node:e})=>{e.style.pointerEvents=w.isBelowPointerBlockingLayer(e)?"none":"auto"})}function io(e){e.style.pointerEvents=""}function so(e,t){const n=D(e),r=[];if(w.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(xe=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t){const o=qr(t,i=>{r.push(tt(i,{pointerEvents:"auto"}))});r.push(o)}return()=>{w.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=xe,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function ao(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){ae("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,pointerBlocking:o,exclude:i,debug:s}=t,a={dismiss:r,node:e,pointerBlocking:o};w.add(a),Se();function u(c){const d=O(c.detail.originalEvent);w.isBelowPointerBlockingLayer(e)||w.isInBranch(d)||(t.onPointerDownOutside?.(c),t.onInteractOutside?.(c),!c.defaultPrevented&&(s&&console.log("onPointerDownOutside:",c.detail.originalEvent),r?.()))}function l(c){const d=O(c.detail.originalEvent);w.isInBranch(d)||(t.onFocusOutside?.(c),t.onInteractOutside?.(c),!c.defaultPrevented&&(s&&console.log("onFocusOutside:",c.detail.originalEvent),r?.()))}function m(c){w.isTopMost(e)&&(t.onEscapeKeyDown?.(c),!c.defaultPrevented&&r&&(c.preventDefault(),r()))}function h(c){if(!e)return!1;const d=typeof i=="function"?i():i,b=Array.isArray(d)?d:[d],T=t.persistentElements?.map(S=>S()).filter(v);return T&&b.push(...T),b.some(S=>V(S,c))||w.isInNestedLayer(e,c)}const f=[o?so(e,t.persistentElements):void 0,oo(e,m),it(e,{exclude:h,onFocusOutside:l,onPointerDownOutside:u,defer:t.defer})];return()=>{w.remove(e),Se(),io(e),f.forEach(c=>c?.())}}function co(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=se(e)?e():e;o.push(ao(i,t))})),()=>{o.forEach(i=>i?.())}}function uo(e,t={}){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=se(e)?e():e;if(!i){ae("[@zag-js/dismissable] branch node is `null` or `undefined`");return}w.addBranch(i),o.push(()=>{w.removeBranch(i)})})),()=>{o.forEach(i=>i?.())}}exports.INIT_STATE=Yr;exports.MAX_Z_INDEX=an;exports.MachineStatus=rt;exports.add=Ie;exports.addDomEvent=y;exports.addOrRemove=pt;exports.ariaAttr=un;exports.callAll=U;exports.clampValue=Oe;exports.clickIfLink=pr;exports.compact=Fe;exports.contains=V;exports.createAnatomy=W;exports.createGuards=nt;exports.createMachine=Hr;exports.createScope=Gr;exports.dataAttr=cn;exports.decrementValue=Zt;exports.disableTextSelection=Qe;exports.dispatchInputCheckedEvent=Gn;exports.dispatchInputValueEvent=Yn;exports.ensure=rn;exports.ensureProps=on;exports.first=lt;exports.flatArray=De;exports.fromLength=ut;exports.getActiveElement=qe;exports.getBeforeInputValue=Vn;exports.getByTypeahead=Br;exports.getClosestValueIndex=zt;exports.getComputedStyle=An;exports.getDataUrl=kn;exports.getDocument=D;exports.getEventKey=Wn;exports.getEventPoint=fe;exports.getEventStep=Hn;exports.getEventTarget=O;exports.getFocusables=Ye;exports.getInitialFocus=sr;exports.getNativeEvent=We;exports.getNextStepValue=Wt;exports.getPercentValue=_t;exports.getPreviousStepValue=Ut;exports.getRelativePoint=gr;exports.getTabIndex=ir;exports.getTabbables=j;exports.getValuePercent=qt;exports.getValueRanges=Ht;exports.getValueTransformer=Xt;exports.getWindow=A;exports.hasProp=kt;exports.identity=xt;exports.incrementValue=Gt;exports.invariant=nn;exports.isAnchorElement=gn;exports.isApple=le;exports.isComposingEvent=Rn;exports.isContextMenuEvent=$e;exports.isDocument=ce;exports.isDownloadingEvent=Bn;exports.isEditableElement=je;exports.isEqual=H;exports.isFocusable=F;exports.isFunction=se;exports.isHTMLElement=v;exports.isIos=Z;exports.isLeftClick=jn;exports.isMac=J;exports.isModifierKey=qn;exports.isNull=At;exports.isNumber=wt;exports.isObject=Et;exports.isOpeningInNewTab=Cn;exports.isPrintableKey=Fn;exports.isSafari=Ln;exports.isSelfTarget=Mn;exports.isShadowRoot=R;exports.isString=_;exports.isTabbable=re;exports.isValidTabEvent=ar;exports.isValueAtMax=Rt;exports.isValueAtMin=Ft;exports.isValueWithinRange=Kt;exports.isVirtualClick=Kn;exports.itemById=et;exports.last=ft;exports.memo=zr;exports.mergeProps=Ur;exports.mod=Ot;exports.next=mt;exports.nextById=Sr;exports.nextTick=Ze;exports.noop=St;exports.observeAttributes=lr;exports.observeChildren=dr;exports.pick=en;exports.prev=yt;exports.prevById=Ir;exports.proxyTabFocus=Tr;exports.query=xr;exports.queryAll=Pr;exports.raf=k;exports.remove=Le;exports.requestPointerLock=vr;exports.roundToDpr=$t;exports.runIfFn=Pt;exports.scrollIntoView=yr;exports.setElementChecked=He;exports.setElementValue=ze;exports.setRafTimeout=tn;exports.setStyle=tt;exports.setStyleProperty=Mr;exports.setValueAtIndex=Ce;exports.setup=Xr;exports.snapValueToStep=Me;exports.toArray=ct;exports.toFixedNumber=Yt;exports.toPx=Jt;exports.trackDismissableBranch=uo;exports.trackDismissableElement=co;exports.trackElementRect=Lr;exports.trackFormControl=tr;exports.trackInteractOutside=it;exports.trackPointerMove=wr;exports.trackPress=Ar;exports.tryCatch=Ve;exports.uuid=It;exports.visuallyHiddenStyle=Fr;exports.warn=ae;exports.wrap=Mt;
|
|
3
|
+
//# sourceMappingURL=index-BlGAWSIX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BlGAWSIX.js","sources":["../../node_modules/@zag-js/utils/dist/index.mjs","../../node_modules/@zag-js/dom-query/dist/index.mjs","../../node_modules/@zag-js/core/dist/index.mjs","../../node_modules/@zag-js/anatomy/dist/index.mjs","../../node_modules/@zag-js/interact-outside/dist/index.mjs","../../node_modules/@zag-js/dismissable/dist/index.mjs"],"sourcesContent":["// src/array.ts\nfunction toArray(v) {\n if (!v) return [];\n return Array.isArray(v) ? v : [v];\n}\nvar fromLength = (length) => Array.from(Array(length).keys());\nvar first = (v) => v[0];\nvar last = (v) => v[v.length - 1];\nvar isEmpty = (v) => v.length === 0;\nvar has = (v, t) => v.indexOf(t) !== -1;\nvar add = (v, ...items) => v.concat(items);\nvar remove = (v, ...items) => v.filter((t) => !items.includes(t));\nvar removeAt = (v, i) => v.filter((_, idx) => idx !== i);\nvar insertAt = (v, i, ...items) => [...v.slice(0, i), ...items, ...v.slice(i)];\nvar uniq = (v) => Array.from(new Set(v));\nvar addOrRemove = (v, item) => {\n if (has(v, item)) return remove(v, item);\n return add(v, item);\n};\nfunction clear(v) {\n while (v.length > 0) v.pop();\n return v;\n}\nfunction nextIndex(v, idx, opts = {}) {\n const { step = 1, loop = true } = opts;\n const next2 = idx + step;\n const len = v.length;\n const last2 = len - 1;\n if (idx === -1) return step > 0 ? 0 : last2;\n if (next2 < 0) return loop ? last2 : 0;\n if (next2 >= len) return loop ? 0 : idx > len ? len : idx;\n return next2;\n}\nfunction next(v, idx, opts = {}) {\n return v[nextIndex(v, idx, opts)];\n}\nfunction prevIndex(v, idx, opts = {}) {\n const { step = 1, loop = true } = opts;\n return nextIndex(v, idx, { step: -step, loop });\n}\nfunction prev(v, index, opts = {}) {\n return v[prevIndex(v, index, opts)];\n}\nvar chunk = (v, size) => {\n const res = [];\n return v.reduce((rows, value, index) => {\n if (index % size === 0) rows.push([value]);\n else last(rows)?.push(value);\n return rows;\n }, res);\n};\nfunction flatArray(arr) {\n return arr.reduce((flat, item) => {\n if (Array.isArray(item)) {\n return flat.concat(flatArray(item));\n }\n return flat.concat(item);\n }, []);\n}\n\n// src/equal.ts\nvar isArrayLike = (value) => value?.constructor.name === \"Array\";\nvar isArrayEqual = (a, b) => {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n if (!isEqual(a[i], b[i])) return false;\n }\n return true;\n};\nvar isEqual = (a, b) => {\n if (Object.is(a, b)) return true;\n if (a == null && b != null || a != null && b == null) return false;\n if (typeof a?.isEqual === \"function\" && typeof b?.isEqual === \"function\") {\n return a.isEqual(b);\n }\n if (typeof a === \"function\" && typeof b === \"function\") {\n return a.toString() === b.toString();\n }\n if (isArrayLike(a) && isArrayLike(b)) {\n return isArrayEqual(Array.from(a), Array.from(b));\n }\n if (!(typeof a === \"object\") || !(typeof b === \"object\")) return false;\n const keys = Object.keys(b ?? /* @__PURE__ */ Object.create(null));\n const length = keys.length;\n for (let i = 0; i < length; i++) {\n const hasKey = Reflect.has(a, keys[i]);\n if (!hasKey) return false;\n }\n for (let i = 0; i < length; i++) {\n const key = keys[i];\n if (!isEqual(a[key], b[key])) return false;\n }\n return true;\n};\n\n// src/guard.ts\nvar isDev = () => process.env.NODE_ENV !== \"production\";\nvar isArray = (v) => Array.isArray(v);\nvar isBoolean = (v) => v === true || v === false;\nvar isObjectLike = (v) => v != null && typeof v === \"object\";\nvar isObject = (v) => isObjectLike(v) && !isArray(v);\nvar isNumber = (v) => typeof v === \"number\" && !Number.isNaN(v);\nvar isString = (v) => typeof v === \"string\";\nvar isFunction = (v) => typeof v === \"function\";\nvar isNull = (v) => v == null;\nvar hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nvar baseGetTag = (v) => Object.prototype.toString.call(v);\nvar fnToString = Function.prototype.toString;\nvar objectCtorString = fnToString.call(Object);\nvar isPlainObject = (v) => {\n if (!isObjectLike(v) || baseGetTag(v) != \"[object Object]\") return false;\n const proto = Object.getPrototypeOf(v);\n if (proto === null) return true;\n const Ctor = hasProp(proto, \"constructor\") && proto.constructor;\n return typeof Ctor == \"function\" && Ctor instanceof Ctor && fnToString.call(Ctor) == objectCtorString;\n};\n\n// src/functions.ts\nvar runIfFn = (v, ...a) => {\n const res = typeof v === \"function\" ? v(...a) : v;\n return res ?? void 0;\n};\nvar cast = (v) => v;\nvar identity = (v) => v();\nvar noop = () => {\n};\nvar callAll = (...fns) => (...a) => {\n fns.forEach(function(fn) {\n fn?.(...a);\n });\n};\nvar uuid = /* @__PURE__ */ (() => {\n let id = 0;\n return () => {\n id++;\n return id.toString(36);\n };\n})();\nfunction match(key, record, ...args) {\n if (key in record) {\n const fn = record[key];\n return isFunction(fn) ? fn(...args) : fn;\n }\n const error = new Error(`No matching key: ${JSON.stringify(key)} in ${JSON.stringify(Object.keys(record))}`);\n Error.captureStackTrace?.(error, match);\n throw error;\n}\nvar tryCatch = (fn, fallback) => {\n try {\n return fn();\n } catch (error) {\n if (error instanceof Error) {\n Error.captureStackTrace?.(error, tryCatch);\n }\n return fallback?.();\n }\n};\nfunction throttle(fn, wait = 0) {\n let lastCall = 0;\n let timeout = null;\n return (...args) => {\n const now = Date.now();\n const timeSinceLastCall = now - lastCall;\n if (timeSinceLastCall >= wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n fn(...args);\n lastCall = now;\n } else if (!timeout) {\n timeout = setTimeout(() => {\n fn(...args);\n lastCall = Date.now();\n timeout = null;\n }, wait - timeSinceLastCall);\n }\n };\n}\n\n// src/number.ts\nvar { floor, abs, round, min, max, pow, sign } = Math;\nvar isNaN = (v) => Number.isNaN(v);\nvar nan = (v) => isNaN(v) ? 0 : v;\nvar mod = (v, m) => (v % m + m) % m;\nvar wrap = (v, vmax) => (v % vmax + vmax) % vmax;\nvar getMinValueAtIndex = (i, v, vmin) => i === 0 ? vmin : v[i - 1];\nvar getMaxValueAtIndex = (i, v, vmax) => i === v.length - 1 ? vmax : v[i + 1];\nvar isValueAtMax = (v, vmax) => nan(v) >= vmax;\nvar isValueAtMin = (v, vmin) => nan(v) <= vmin;\nvar isValueWithinRange = (v, vmin, vmax) => nan(v) >= vmin && nan(v) <= vmax;\nvar roundValue = (v, vmin, step) => round((nan(v) - vmin) / step) * step + vmin;\nvar clampValue = (v, vmin, vmax) => min(max(nan(v), vmin), vmax);\nvar clampPercent = (v) => clampValue(v, 0, 1);\nvar getValuePercent = (v, vmin, vmax) => (nan(v) - vmin) / (vmax - vmin);\nvar getPercentValue = (p, vmin, vmax, step) => clampValue(roundValue(p * (vmax - vmin) + vmin, vmin, step), vmin, vmax);\nvar roundToStepPrecision = (v, step) => {\n let rv = v;\n let ss = step.toString();\n let pi = ss.indexOf(\".\");\n let p = pi >= 0 ? ss.length - pi : 0;\n if (p > 0) {\n let pw = pow(10, p);\n rv = round(rv * pw) / pw;\n }\n return rv;\n};\nvar roundToDpr = (v, dpr) => typeof dpr === \"number\" ? floor(v * dpr + 0.5) / dpr : round(v);\nvar snapValueToStep = (v, vmin, vmax, step) => {\n vmin = Number(vmin);\n vmax = Number(vmax);\n let remainder = (v - (isNaN(vmin) ? 0 : vmin)) % step;\n let sv = roundToStepPrecision(\n abs(remainder) * 2 >= step ? v + sign(remainder) * (step - abs(remainder)) : v - remainder,\n step\n );\n if (!isNaN(vmin)) {\n if (sv < vmin) {\n sv = vmin;\n } else if (!isNaN(vmax) && sv > vmax) {\n sv = vmin + floor(roundToStepPrecision((vmax - vmin) / step, step)) * step;\n }\n } else if (!isNaN(vmax) && sv > vmax) {\n sv = vmin + floor(roundToStepPrecision((vmax - vmin) / step, step)) * step;\n }\n return roundToStepPrecision(sv, step);\n};\nvar setValueAtIndex = (vs, i, v) => {\n if (vs[i] === v) return vs;\n return [...vs.slice(0, i), v, ...vs.slice(i + 1)];\n};\nfunction getValueSetterAtIndex(index, ctx) {\n const minValueAtIndex = getMinValueAtIndex(index, ctx.values, ctx.min);\n const maxValueAtIndex = getMaxValueAtIndex(index, ctx.values, ctx.max);\n let nextValues = ctx.values.slice();\n return function setValue(value) {\n let nextValue = snapValueToStep(value, minValueAtIndex, maxValueAtIndex, ctx.step);\n nextValues = setValueAtIndex(nextValues, index, value);\n nextValues[index] = nextValue;\n return nextValues;\n };\n}\nfunction getNextStepValue(index, ctx) {\n const nextValue = ctx.values[index] + ctx.step;\n return getValueSetterAtIndex(index, ctx)(nextValue);\n}\nfunction getPreviousStepValue(index, ctx) {\n const nextValue = ctx.values[index] - ctx.step;\n return getValueSetterAtIndex(index, ctx)(nextValue);\n}\nvar getClosestValueIndex = (vs, t) => {\n let i = vs.findIndex((v) => t - v < 0);\n if (i === 0) return i;\n if (i === -1) return vs.length - 1;\n let vLeft = vs[i - 1];\n let vRight = vs[i];\n if (abs(vLeft - t) < abs(vRight - t)) return i - 1;\n return i;\n};\nvar getClosestValue = (vs, t) => vs[getClosestValueIndex(vs, t)];\nvar getValueRanges = (vs, vmin, vmax, gap) => vs.map((v, i) => ({\n min: i === 0 ? vmin : vs[i - 1] + gap,\n max: i === vs.length - 1 ? vmax : vs[i + 1] - gap,\n value: v\n}));\nvar getValueTransformer = (va, vb) => {\n const [a, b] = va;\n const [c, d] = vb;\n return (v) => a === b || c === d ? c : c + (d - c) / (b - a) * (v - a);\n};\nvar toFixedNumber = (v, d = 0, b = 10) => {\n const pow2 = Math.pow(b, d);\n return round(v * pow2) / pow2;\n};\nvar countDecimals = (value) => {\n if (!Number.isFinite(value)) return 0;\n let e = 1, p = 0;\n while (Math.round(value * e) / e !== value) {\n e *= 10;\n p += 1;\n }\n return p;\n};\nvar decimalOp = (a, op, b) => {\n let result = op === \"+\" ? a + b : a - b;\n if (a % 1 !== 0 || b % 1 !== 0) {\n const multiplier = 10 ** Math.max(countDecimals(a), countDecimals(b));\n a = Math.round(a * multiplier);\n b = Math.round(b * multiplier);\n result = op === \"+\" ? a + b : a - b;\n result /= multiplier;\n }\n return result;\n};\nvar incrementValue = (v, s) => decimalOp(nan(v), \"+\", s);\nvar decrementValue = (v, s) => decimalOp(nan(v), \"-\", s);\nvar toPx = (v) => v != null ? `${v}px` : void 0;\n\n// src/object.ts\nfunction compact(obj) {\n if (!isPlainObject2(obj) || obj === void 0) return obj;\n const keys = Reflect.ownKeys(obj).filter((key) => typeof key === \"string\");\n const filtered = {};\n for (const key of keys) {\n const value = obj[key];\n if (value !== void 0) {\n filtered[key] = compact(value);\n }\n }\n return filtered;\n}\nvar json = (v) => JSON.parse(JSON.stringify(v));\nvar isPlainObject2 = (v) => {\n return v && typeof v === \"object\" && v.constructor === Object;\n};\nfunction pick(obj, keys) {\n const filtered = {};\n for (const key of keys) {\n const value = obj[key];\n if (value !== void 0) {\n filtered[key] = value;\n }\n }\n return filtered;\n}\nfunction splitProps(props, keys) {\n const rest = {};\n const result = {};\n const keySet = new Set(keys);\n for (const key in props) {\n if (keySet.has(key)) {\n result[key] = props[key];\n } else {\n rest[key] = props[key];\n }\n }\n return [result, rest];\n}\nvar createSplitProps = (keys) => {\n return function split(props) {\n return splitProps(props, keys);\n };\n};\nfunction omit(obj, keys) {\n return createSplitProps(keys)(obj)[1];\n}\n\n// src/timers.ts\nfunction setRafInterval(callback, interval) {\n let start = performance.now();\n let handle;\n function loop(now) {\n handle = requestAnimationFrame(loop);\n const delta = now - start;\n if (delta >= interval) {\n start = now - delta % interval;\n callback({ startMs: start, deltaMs: delta });\n }\n }\n handle = requestAnimationFrame(loop);\n return () => cancelAnimationFrame(handle);\n}\nfunction setRafTimeout(callback, delay) {\n const start = performance.now();\n let handle;\n function loop(now) {\n handle = requestAnimationFrame(loop);\n const delta = now - start;\n if (delta >= delay) {\n callback();\n }\n }\n handle = requestAnimationFrame(loop);\n return () => cancelAnimationFrame(handle);\n}\n\n// src/warning.ts\nfunction warn(...a) {\n const m = a.length === 1 ? a[0] : a[1];\n const c = a.length === 2 ? a[0] : true;\n if (c && process.env.NODE_ENV !== \"production\") {\n console.warn(m);\n }\n}\nfunction invariant(...a) {\n const m = a.length === 1 ? a[0] : a[1];\n const c = a.length === 2 ? a[0] : true;\n if (c && process.env.NODE_ENV !== \"production\") {\n throw new Error(m);\n }\n}\nfunction ensure(c, m) {\n if (c == null) throw new Error(m());\n}\nfunction ensureProps(props, keys, scope) {\n let missingKeys = [];\n for (const key of keys) {\n if (props[key] == null) missingKeys.push(key);\n }\n if (missingKeys.length > 0)\n throw new Error(`[zag-js${scope ? ` > ${scope}` : \"\"}] missing required props: ${missingKeys.join(\", \")}`);\n}\n\nexport { add, addOrRemove, callAll, cast, chunk, clampPercent, clampValue, clear, compact, createSplitProps, decrementValue, ensure, ensureProps, first, flatArray, fromLength, getClosestValue, getClosestValueIndex, getMaxValueAtIndex, getMinValueAtIndex, getNextStepValue, getPercentValue, getPreviousStepValue, getValuePercent, getValueRanges, getValueSetterAtIndex, getValueTransformer, has, hasProp, identity, incrementValue, insertAt, invariant, isArray, isBoolean, isDev, isEmpty, isEqual, isFunction, isNaN, isNull, isNumber, isObject, isObjectLike, isPlainObject, isString, isValueAtMax, isValueAtMin, isValueWithinRange, json, last, match, mod, nan, next, nextIndex, noop, omit, pick, prev, prevIndex, remove, removeAt, roundToDpr, roundToStepPrecision, roundValue, runIfFn, setRafInterval, setRafTimeout, setValueAtIndex, snapValueToStep, splitProps, throttle, toArray, toFixedNumber, toPx, tryCatch, uniq, uuid, warn, wrap };\n","// src/caret.ts\nfunction isCaretAtStart(input) {\n if (!input) return false;\n try {\n return input.selectionStart === 0 && input.selectionEnd === 0;\n } catch {\n return input.value === \"\";\n }\n}\nfunction setCaretToEnd(input) {\n if (!input) return;\n const start = input.selectionStart ?? 0;\n const end = input.selectionEnd ?? 0;\n if (Math.abs(end - start) !== 0) return;\n if (start !== 0) return;\n input.setSelectionRange(input.value.length, input.value.length);\n}\n\n// src/shared.ts\nvar clamp = (value) => Math.max(0, Math.min(1, value));\nvar wrap = (v, idx) => {\n return v.map((_, index) => v[(Math.max(idx, 0) + index) % v.length]);\n};\nvar pipe = (...fns) => (arg) => fns.reduce((acc, fn) => fn(acc), arg);\nvar noop = () => void 0;\nvar isObject = (v) => typeof v === \"object\" && v !== null;\nvar MAX_Z_INDEX = 2147483647;\nvar dataAttr = (guard) => guard ? \"\" : void 0;\nvar ariaAttr = (guard) => guard ? \"true\" : void 0;\n\n// src/node.ts\nvar ELEMENT_NODE = 1;\nvar DOCUMENT_NODE = 9;\nvar DOCUMENT_FRAGMENT_NODE = 11;\nvar isHTMLElement = (el) => isObject(el) && el.nodeType === ELEMENT_NODE && typeof el.nodeName === \"string\";\nvar isDocument = (el) => isObject(el) && el.nodeType === DOCUMENT_NODE;\nvar isWindow = (el) => isObject(el) && el === el.window;\nvar isVisualViewport = (el) => isObject(el) && el.constructor.name === \"VisualViewport\";\nvar getNodeName = (node) => {\n if (isHTMLElement(node)) return node.localName || \"\";\n return \"#document\";\n};\nfunction isRootElement(node) {\n return [\"html\", \"body\", \"#document\"].includes(getNodeName(node));\n}\nvar isNode = (el) => isObject(el) && el.nodeType !== void 0;\nvar isShadowRoot = (el) => isNode(el) && el.nodeType === DOCUMENT_FRAGMENT_NODE && \"host\" in el;\nvar isInputElement = (el) => isHTMLElement(el) && el.localName === \"input\";\nvar isAnchorElement = (el) => !!el?.matches(\"a[href]\");\nvar isElementVisible = (el) => {\n if (!isHTMLElement(el)) return false;\n return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0;\n};\nvar TEXTAREA_SELECT_REGEX = /(textarea|select)/;\nfunction isEditableElement(el) {\n if (el == null || !isHTMLElement(el)) return false;\n try {\n return isInputElement(el) && el.selectionStart != null || TEXTAREA_SELECT_REGEX.test(el.localName) || el.isContentEditable || el.getAttribute(\"contenteditable\") === \"true\" || el.getAttribute(\"contenteditable\") === \"\";\n } catch {\n return false;\n }\n}\nfunction contains(parent, child) {\n if (!parent || !child) return false;\n if (!isHTMLElement(parent) || !isHTMLElement(child)) return false;\n const rootNode = child.getRootNode?.();\n if (parent === child) return true;\n if (parent.contains(child)) return true;\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) return true;\n next = next.parentNode || next.host;\n }\n }\n return false;\n}\nfunction getDocument(el) {\n if (isDocument(el)) return el;\n if (isWindow(el)) return el.document;\n return el?.ownerDocument ?? document;\n}\nfunction getDocumentElement(el) {\n return getDocument(el).documentElement;\n}\nfunction getWindow(el) {\n if (isShadowRoot(el)) return getWindow(el.host);\n if (isDocument(el)) return el.defaultView ?? window;\n if (isHTMLElement(el)) return el.ownerDocument?.defaultView ?? window;\n return window;\n}\nfunction getActiveElement(rootNode) {\n let activeElement = rootNode.activeElement;\n while (activeElement?.shadowRoot) {\n const el = activeElement.shadowRoot.activeElement;\n if (el === activeElement) break;\n else activeElement = el;\n }\n return activeElement;\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === \"html\") return node;\n const result = node.assignedSlot || node.parentNode || isShadowRoot(node) && node.host || getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\n\n// src/computed-style.ts\nvar styleCache = /* @__PURE__ */ new WeakMap();\nfunction getComputedStyle(el) {\n if (!styleCache.has(el)) {\n styleCache.set(el, getWindow(el).getComputedStyle(el));\n }\n return styleCache.get(el);\n}\n\n// src/data-url.ts\nfunction getDataUrl(svg, opts) {\n const { type, quality = 0.92, background } = opts;\n if (!svg) throw new Error(\"[zag-js > getDataUrl]: Could not find the svg element\");\n const win = getWindow(svg);\n const doc = win.document;\n const svgBounds = svg.getBoundingClientRect();\n const svgClone = svg.cloneNode(true);\n if (!svgClone.hasAttribute(\"viewBox\")) {\n svgClone.setAttribute(\"viewBox\", `0 0 ${svgBounds.width} ${svgBounds.height}`);\n }\n const serializer = new win.XMLSerializer();\n const source = '<?xml version=\"1.0\" standalone=\"no\"?>\\r\\n' + serializer.serializeToString(svgClone);\n const svgString = \"data:image/svg+xml;charset=utf-8,\" + encodeURIComponent(source);\n if (type === \"image/svg+xml\") {\n return Promise.resolve(svgString).then((str) => {\n svgClone.remove();\n return str;\n });\n }\n const dpr = win.devicePixelRatio || 1;\n const canvas = doc.createElement(\"canvas\");\n const image = new win.Image();\n image.src = svgString;\n canvas.width = svgBounds.width * dpr;\n canvas.height = svgBounds.height * dpr;\n const context = canvas.getContext(\"2d\");\n if (type === \"image/jpeg\" || background) {\n context.fillStyle = background || \"white\";\n context.fillRect(0, 0, canvas.width, canvas.height);\n }\n return new Promise((resolve) => {\n image.onload = () => {\n context?.drawImage(image, 0, 0, canvas.width, canvas.height);\n resolve(canvas.toDataURL(type, quality));\n svgClone.remove();\n };\n });\n}\n\n// src/platform.ts\nvar isDom = () => typeof document !== \"undefined\";\nfunction getPlatform() {\n const agent = navigator.userAgentData;\n return agent?.platform ?? navigator.platform;\n}\nfunction getUserAgent() {\n const ua2 = navigator.userAgentData;\n if (ua2 && Array.isArray(ua2.brands)) {\n return ua2.brands.map(({ brand, version }) => `${brand}/${version}`).join(\" \");\n }\n return navigator.userAgent;\n}\nvar pt = (v) => isDom() && v.test(getPlatform());\nvar ua = (v) => isDom() && v.test(getUserAgent());\nvar vn = (v) => isDom() && v.test(navigator.vendor);\nvar isTouchDevice = () => isDom() && !!navigator.maxTouchPoints;\nvar isIPhone = () => pt(/^iPhone/i);\nvar isIPad = () => pt(/^iPad/i) || isMac() && navigator.maxTouchPoints > 1;\nvar isIos = () => isIPhone() || isIPad();\nvar isApple = () => isMac() || isIos();\nvar isMac = () => pt(/^Mac/i);\nvar isSafari = () => isApple() && vn(/apple/i);\nvar isFirefox = () => ua(/Firefox/i);\nvar isChrome = () => ua(/Chrome/i);\nvar isWebKit = () => ua(/AppleWebKit/i) && !isChrome();\nvar isAndroid = () => ua(/Android/i);\n\n// src/event.ts\nfunction getBeforeInputValue(event) {\n const { selectionStart, selectionEnd, value } = event.currentTarget;\n return value.slice(0, selectionStart) + event.data + value.slice(selectionEnd);\n}\nfunction getComposedPath(event) {\n return event.composedPath?.() ?? event.nativeEvent?.composedPath?.();\n}\nfunction getEventTarget(event) {\n const composedPath = getComposedPath(event);\n return composedPath?.[0] ?? event.target;\n}\nvar isSelfTarget = (event) => {\n return contains(event.currentTarget, getEventTarget(event));\n};\nfunction isOpeningInNewTab(event) {\n const element = event.currentTarget;\n if (!element) return false;\n const isAppleDevice = isApple();\n if (isAppleDevice && !event.metaKey) return false;\n if (!isAppleDevice && !event.ctrlKey) return false;\n const localName = element.localName;\n if (localName === \"a\") return true;\n if (localName === \"button\" && element.type === \"submit\") return true;\n if (localName === \"input\" && element.type === \"submit\") return true;\n return false;\n}\nfunction isDownloadingEvent(event) {\n const element = event.currentTarget;\n if (!element) return false;\n const localName = element.localName;\n if (!event.altKey) return false;\n if (localName === \"a\") return true;\n if (localName === \"button\" && element.type === \"submit\") return true;\n if (localName === \"input\" && element.type === \"submit\") return true;\n return false;\n}\nfunction isComposingEvent(event) {\n return getNativeEvent(event).isComposing || event.keyCode === 229;\n}\nfunction isKeyboardClick(e) {\n return e.detail === 0 || e.clientX === 0 && e.clientY === 0;\n}\nfunction isCtrlOrMetaKey(e) {\n if (isMac()) return e.metaKey;\n return e.ctrlKey;\n}\nfunction isPrintableKey(e) {\n return e.key.length === 1 && !e.ctrlKey && !e.metaKey;\n}\nfunction isVirtualPointerEvent(e) {\n return e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === \"mouse\";\n}\nfunction isVirtualClick(e) {\n if (e.mozInputSource === 0 && e.isTrusted) return true;\n if (isAndroid() && e.pointerType) {\n return e.type === \"click\" && e.buttons === 1;\n }\n return e.detail === 0 && !e.pointerType;\n}\nvar isLeftClick = (e) => e.button === 0;\nvar isContextMenuEvent = (e) => {\n return e.button === 2 || isMac() && e.ctrlKey && e.button === 0;\n};\nvar isModifierKey = (e) => e.ctrlKey || e.altKey || e.metaKey;\nvar isTouchEvent = (event) => \"touches\" in event && event.touches.length > 0;\nvar keyMap = {\n Up: \"ArrowUp\",\n Down: \"ArrowDown\",\n Esc: \"Escape\",\n \" \": \"Space\",\n \",\": \"Comma\",\n Left: \"ArrowLeft\",\n Right: \"ArrowRight\"\n};\nvar rtlKeyMap = {\n ArrowLeft: \"ArrowRight\",\n ArrowRight: \"ArrowLeft\"\n};\nfunction getEventKey(event, options = {}) {\n const { dir = \"ltr\", orientation = \"horizontal\" } = options;\n let key = event.key;\n key = keyMap[key] ?? key;\n const isRtl = dir === \"rtl\" && orientation === \"horizontal\";\n if (isRtl && key in rtlKeyMap) key = rtlKeyMap[key];\n return key;\n}\nfunction getNativeEvent(event) {\n return event.nativeEvent ?? event;\n}\nvar pageKeys = /* @__PURE__ */ new Set([\"PageUp\", \"PageDown\"]);\nvar arrowKeys = /* @__PURE__ */ new Set([\"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\"]);\nfunction getEventStep(event) {\n if (event.ctrlKey || event.metaKey) {\n return 0.1;\n } else {\n const isPageKey = pageKeys.has(event.key);\n const isSkipKey = isPageKey || event.shiftKey && arrowKeys.has(event.key);\n return isSkipKey ? 10 : 1;\n }\n}\nfunction getEventPoint(event, type = \"client\") {\n const point = isTouchEvent(event) ? event.touches[0] || event.changedTouches[0] : event;\n return { x: point[`${type}X`], y: point[`${type}Y`] };\n}\nvar addDomEvent = (target, eventName, handler, options) => {\n const node = typeof target === \"function\" ? target() : target;\n node?.addEventListener(eventName, handler, options);\n return () => {\n node?.removeEventListener(eventName, handler, options);\n };\n};\n\n// src/form.ts\nfunction getDescriptor(el, options) {\n const { type = \"HTMLInputElement\", property = \"value\" } = options;\n const proto = getWindow(el)[type].prototype;\n return Object.getOwnPropertyDescriptor(proto, property) ?? {};\n}\nfunction getElementType(el) {\n if (el.localName === \"input\") return \"HTMLInputElement\";\n if (el.localName === \"textarea\") return \"HTMLTextAreaElement\";\n if (el.localName === \"select\") return \"HTMLSelectElement\";\n}\nfunction setElementValue(el, value, property = \"value\") {\n if (!el) return;\n const type = getElementType(el);\n if (type) {\n const descriptor = getDescriptor(el, { type, property });\n descriptor.set?.call(el, value);\n }\n el.setAttribute(property, value);\n}\nfunction setElementChecked(el, checked) {\n if (!el) return;\n const descriptor = getDescriptor(el, { type: \"HTMLInputElement\", property: \"checked\" });\n descriptor.set?.call(el, checked);\n if (checked) el.setAttribute(\"checked\", \"\");\n else el.removeAttribute(\"checked\");\n}\nfunction dispatchInputValueEvent(el, options) {\n const { value, bubbles = true } = options;\n if (!el) return;\n const win = getWindow(el);\n if (!(el instanceof win.HTMLInputElement)) return;\n setElementValue(el, `${value}`);\n el.dispatchEvent(new win.Event(\"input\", { bubbles }));\n}\nfunction dispatchInputCheckedEvent(el, options) {\n const { checked, bubbles = true } = options;\n if (!el) return;\n const win = getWindow(el);\n if (!(el instanceof win.HTMLInputElement)) return;\n setElementChecked(el, checked);\n el.dispatchEvent(new win.Event(\"click\", { bubbles }));\n}\nfunction getClosestForm(el) {\n return isFormElement(el) ? el.form : el.closest(\"form\");\n}\nfunction isFormElement(el) {\n return el.matches(\"textarea, input, select, button\");\n}\nfunction trackFormReset(el, callback) {\n if (!el) return;\n const form = getClosestForm(el);\n const onReset = (e) => {\n if (e.defaultPrevented) return;\n callback();\n };\n form?.addEventListener(\"reset\", onReset, { passive: true });\n return () => form?.removeEventListener(\"reset\", onReset);\n}\nfunction trackFieldsetDisabled(el, callback) {\n const fieldset = el?.closest(\"fieldset\");\n if (!fieldset) return;\n callback(fieldset.disabled);\n const win = getWindow(fieldset);\n const obs = new win.MutationObserver(() => callback(fieldset.disabled));\n obs.observe(fieldset, {\n attributes: true,\n attributeFilter: [\"disabled\"]\n });\n return () => obs.disconnect();\n}\nfunction trackFormControl(el, options) {\n if (!el) return;\n const { onFieldsetDisabledChange, onFormReset } = options;\n const cleanups = [trackFormReset(el, onFormReset), trackFieldsetDisabled(el, onFieldsetDisabledChange)];\n return () => cleanups.forEach((cleanup) => cleanup?.());\n}\n\n// src/tabbable.ts\nvar isFrame = (el) => isHTMLElement(el) && el.tagName === \"IFRAME\";\nvar hasTabIndex = (el) => !Number.isNaN(parseInt(el.getAttribute(\"tabindex\") || \"0\", 10));\nvar hasNegativeTabIndex = (el) => parseInt(el.getAttribute(\"tabindex\") || \"0\", 10) < 0;\nvar focusableSelector = \"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\";\nvar getFocusables = (container, includeContainer = false) => {\n if (!container) return [];\n const elements = Array.from(container.querySelectorAll(focusableSelector));\n const include = includeContainer == true || includeContainer == \"if-empty\" && elements.length === 0;\n if (include && isHTMLElement(container) && isFocusable(container)) {\n elements.unshift(container);\n }\n const focusableElements = elements.filter(isFocusable);\n focusableElements.forEach((element, i) => {\n if (isFrame(element) && element.contentDocument) {\n const frameBody = element.contentDocument.body;\n focusableElements.splice(i, 1, ...getFocusables(frameBody));\n }\n });\n return focusableElements;\n};\nfunction isFocusable(element) {\n if (!element || element.closest(\"[inert]\")) return false;\n return element.matches(focusableSelector) && isElementVisible(element);\n}\nfunction getFirstFocusable(container, includeContainer) {\n const [first] = getFocusables(container, includeContainer);\n return first || null;\n}\nfunction getTabbables(container, includeContainer) {\n if (!container) return [];\n const elements = Array.from(container.querySelectorAll(focusableSelector));\n const tabbableElements = elements.filter(isTabbable);\n if (includeContainer && isTabbable(container)) {\n tabbableElements.unshift(container);\n }\n tabbableElements.forEach((element, i) => {\n if (isFrame(element) && element.contentDocument) {\n const frameBody = element.contentDocument.body;\n const allFrameTabbable = getTabbables(frameBody);\n tabbableElements.splice(i, 1, ...allFrameTabbable);\n }\n });\n if (!tabbableElements.length && includeContainer) {\n return elements;\n }\n return tabbableElements;\n}\nfunction isTabbable(el) {\n if (el != null && el.tabIndex > 0) return true;\n return isFocusable(el) && !hasNegativeTabIndex(el);\n}\nfunction getFirstTabbable(container, includeContainer) {\n const [first] = getTabbables(container, includeContainer);\n return first || null;\n}\nfunction getLastTabbable(container, includeContainer) {\n const elements = getTabbables(container, includeContainer);\n return elements[elements.length - 1] || null;\n}\nfunction getTabbableEdges(container, includeContainer) {\n const elements = getTabbables(container, includeContainer);\n const first = elements[0] || null;\n const last = elements[elements.length - 1] || null;\n return [first, last];\n}\nfunction getNextTabbable(container, current) {\n const tabbables = getTabbables(container);\n const doc = container?.ownerDocument || document;\n const currentElement = current ?? doc.activeElement;\n if (!currentElement) return null;\n const index = tabbables.indexOf(currentElement);\n return tabbables[index + 1] || null;\n}\nfunction getTabIndex(node) {\n if (node.tabIndex < 0) {\n if ((/^(audio|video|details)$/.test(node.localName) || isEditableElement(node)) && !hasTabIndex(node)) {\n return 0;\n }\n }\n return node.tabIndex;\n}\n\n// src/initial-focus.ts\nfunction getInitialFocus(options) {\n const { root, getInitialEl, filter, enabled = true } = options;\n if (!enabled) return;\n let node = null;\n node || (node = typeof getInitialEl === \"function\" ? getInitialEl() : getInitialEl);\n node || (node = root?.querySelector(\"[data-autofocus],[autofocus]\"));\n if (!node) {\n const tabbables = getTabbables(root);\n node = filter ? tabbables.filter(filter)[0] : tabbables[0];\n }\n return node || root || void 0;\n}\nfunction isValidTabEvent(event) {\n const container = event.currentTarget;\n if (!container) return false;\n const [firstTabbable, lastTabbable] = getTabbableEdges(container);\n const doc = container.ownerDocument || document;\n if (doc.activeElement === firstTabbable && event.shiftKey) return false;\n if (doc.activeElement === lastTabbable && !event.shiftKey) return false;\n if (!firstTabbable && !lastTabbable) return false;\n return true;\n}\n\n// src/raf.ts\nfunction nextTick(fn) {\n const set = /* @__PURE__ */ new Set();\n function raf2(fn2) {\n const id = globalThis.requestAnimationFrame(fn2);\n set.add(() => globalThis.cancelAnimationFrame(id));\n }\n raf2(() => raf2(fn));\n return function cleanup() {\n set.forEach((fn2) => fn2());\n };\n}\nfunction raf(fn) {\n let cleanup;\n const id = globalThis.requestAnimationFrame(() => {\n cleanup = fn();\n });\n return () => {\n globalThis.cancelAnimationFrame(id);\n cleanup?.();\n };\n}\nfunction queueBeforeEvent(el, type, cb) {\n const cancelTimer = raf(() => {\n el.removeEventListener(type, exec, true);\n cb();\n });\n const exec = () => {\n cancelTimer();\n cb();\n };\n el.addEventListener(type, exec, { once: true, capture: true });\n return cancelTimer;\n}\n\n// src/mutation-observer.ts\nfunction observeAttributesImpl(node, options) {\n if (!node) return;\n const { attributes, callback: fn } = options;\n const win = node.ownerDocument.defaultView || window;\n const obs = new win.MutationObserver((changes) => {\n for (const change of changes) {\n if (change.type === \"attributes\" && change.attributeName && attributes.includes(change.attributeName)) {\n fn(change);\n }\n }\n });\n obs.observe(node, { attributes: true, attributeFilter: attributes });\n return () => obs.disconnect();\n}\nfunction observeAttributes(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof nodeOrFn === \"function\" ? nodeOrFn() : nodeOrFn;\n cleanups.push(observeAttributesImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction observeChildrenImpl(node, options) {\n const { callback: fn } = options;\n if (!node) return;\n const win = node.ownerDocument.defaultView || window;\n const obs = new win.MutationObserver(fn);\n obs.observe(node, { childList: true, subtree: true });\n return () => obs.disconnect();\n}\nfunction observeChildren(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof nodeOrFn === \"function\" ? nodeOrFn() : nodeOrFn;\n cleanups.push(observeChildrenImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\n// src/navigate.ts\nfunction clickIfLink(el) {\n const click = () => el.click();\n if (isFirefox()) {\n queueBeforeEvent(el, \"keyup\", click);\n } else {\n queueMicrotask(click);\n }\n}\n\n// src/overflow.ts\nfunction getNearestOverflowAncestor(el) {\n const parentNode = getParentNode(el);\n if (isRootElement(parentNode)) return getDocument(parentNode).body;\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) return parentNode;\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(el, list = []) {\n const scrollableAncestor = getNearestOverflowAncestor(el);\n const isBody = scrollableAncestor === el.ownerDocument.body;\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));\n}\nvar getElementRect = (el) => {\n if (isHTMLElement(el)) return el.getBoundingClientRect();\n if (isVisualViewport(el)) return { top: 0, left: 0, bottom: el.height, right: el.width };\n return { top: 0, left: 0, bottom: el.innerHeight, right: el.innerWidth };\n};\nfunction isInView(el, ancestor) {\n if (!isHTMLElement(el)) return true;\n const ancestorRect = getElementRect(ancestor);\n const elRect = el.getBoundingClientRect();\n return elRect.top >= ancestorRect.top && elRect.left >= ancestorRect.left && elRect.bottom <= ancestorRect.bottom && elRect.right <= ancestorRect.right;\n}\nvar OVERFLOW_RE = /auto|scroll|overlay|hidden|clip/;\nfunction isOverflowElement(el) {\n const win = getWindow(el);\n const { overflow, overflowX, overflowY, display } = win.getComputedStyle(el);\n return OVERFLOW_RE.test(overflow + overflowY + overflowX) && ![\"inline\", \"contents\"].includes(display);\n}\nfunction isScrollable(el) {\n return el.scrollHeight > el.clientHeight || el.scrollWidth > el.clientWidth;\n}\nfunction scrollIntoView(el, options) {\n const { rootEl, ...scrollOptions } = options || {};\n if (!el || !rootEl) return;\n if (!isOverflowElement(rootEl) || !isScrollable(rootEl)) return;\n el.scrollIntoView(scrollOptions);\n}\nfunction getScrollPosition(element) {\n if (isHTMLElement(element)) {\n return { scrollLeft: element.scrollLeft, scrollTop: element.scrollTop };\n }\n return { scrollLeft: element.scrollX, scrollTop: element.scrollY };\n}\n\n// src/point.ts\nfunction getRelativePoint(point, element) {\n const { left, top, width, height } = element.getBoundingClientRect();\n const offset = { x: point.x - left, y: point.y - top };\n const percent = { x: clamp(offset.x / width), y: clamp(offset.y / height) };\n function getPercentValue(options = {}) {\n const { dir = \"ltr\", orientation = \"horizontal\", inverted } = options;\n const invertX = typeof inverted === \"object\" ? inverted.x : inverted;\n const invertY = typeof inverted === \"object\" ? inverted.y : inverted;\n if (orientation === \"horizontal\") {\n return dir === \"rtl\" || invertX ? 1 - percent.x : percent.x;\n }\n return invertY ? 1 - percent.y : percent.y;\n }\n return { offset, percent, getPercentValue };\n}\n\n// src/pointer-lock.ts\nfunction requestPointerLock(doc, fn) {\n const body = doc.body;\n const supported = \"pointerLockElement\" in doc || \"mozPointerLockElement\" in doc;\n const isLocked = () => !!doc.pointerLockElement;\n function onPointerChange() {\n fn?.(isLocked());\n }\n function onPointerError(event) {\n if (isLocked()) fn?.(false);\n console.error(\"PointerLock error occurred:\", event);\n doc.exitPointerLock();\n }\n if (!supported) return;\n try {\n body.requestPointerLock();\n } catch {\n }\n const cleanup = [\n addDomEvent(doc, \"pointerlockchange\", onPointerChange, false),\n addDomEvent(doc, \"pointerlockerror\", onPointerError, false)\n ];\n return () => {\n cleanup.forEach((cleanup2) => cleanup2());\n doc.exitPointerLock();\n };\n}\n\n// src/text-selection.ts\nvar state = \"default\";\nvar userSelect = \"\";\nvar elementMap = /* @__PURE__ */ new WeakMap();\nfunction disableTextSelectionImpl(options = {}) {\n const { target, doc } = options;\n const docNode = doc ?? document;\n const rootEl = docNode.documentElement;\n if (isIos()) {\n if (state === \"default\") {\n userSelect = rootEl.style.webkitUserSelect;\n rootEl.style.webkitUserSelect = \"none\";\n }\n state = \"disabled\";\n } else if (target) {\n elementMap.set(target, target.style.userSelect);\n target.style.userSelect = \"none\";\n }\n return () => restoreTextSelection({ target, doc: docNode });\n}\nfunction restoreTextSelection(options = {}) {\n const { target, doc } = options;\n const docNode = doc ?? document;\n const rootEl = docNode.documentElement;\n if (isIos()) {\n if (state !== \"disabled\") return;\n state = \"restoring\";\n setTimeout(() => {\n nextTick(() => {\n if (state === \"restoring\") {\n if (rootEl.style.webkitUserSelect === \"none\") {\n rootEl.style.webkitUserSelect = userSelect || \"\";\n }\n userSelect = \"\";\n state = \"default\";\n }\n });\n }, 300);\n } else {\n if (target && elementMap.has(target)) {\n const prevUserSelect = elementMap.get(target);\n if (target.style.userSelect === \"none\") {\n target.style.userSelect = prevUserSelect ?? \"\";\n }\n if (target.getAttribute(\"style\") === \"\") {\n target.removeAttribute(\"style\");\n }\n elementMap.delete(target);\n }\n }\n}\nfunction disableTextSelection(options = {}) {\n const { defer, target, ...restOptions } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof target === \"function\" ? target() : target;\n cleanups.push(disableTextSelectionImpl({ ...restOptions, target: node }));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\n// src/pointer-move.ts\nfunction trackPointerMove(doc, handlers) {\n const { onPointerMove, onPointerUp } = handlers;\n const handleMove = (event) => {\n const point = getEventPoint(event);\n const distance = Math.sqrt(point.x ** 2 + point.y ** 2);\n const moveBuffer = event.pointerType === \"touch\" ? 10 : 5;\n if (distance < moveBuffer) return;\n if (event.pointerType === \"mouse\" && event.button === 0) {\n onPointerUp();\n return;\n }\n onPointerMove({ point, event });\n };\n const cleanups = [\n addDomEvent(doc, \"pointermove\", handleMove, false),\n addDomEvent(doc, \"pointerup\", onPointerUp, false),\n addDomEvent(doc, \"pointercancel\", onPointerUp, false),\n addDomEvent(doc, \"contextmenu\", onPointerUp, false),\n disableTextSelection({ doc })\n ];\n return () => {\n cleanups.forEach((cleanup) => cleanup());\n };\n}\n\n// src/press.ts\nfunction trackPress(options) {\n const {\n pointerNode,\n keyboardNode = pointerNode,\n onPress,\n onPressStart,\n onPressEnd,\n isValidKey = (e) => e.key === \"Enter\"\n } = options;\n if (!pointerNode) return noop;\n const win = getWindow(pointerNode);\n const doc = getDocument(pointerNode);\n let removeStartListeners = noop;\n let removeEndListeners = noop;\n let removeAccessibleListeners = noop;\n const getInfo = (event) => ({\n point: getEventPoint(event),\n event\n });\n function startPress(event) {\n onPressStart?.(getInfo(event));\n }\n function cancelPress(event) {\n onPressEnd?.(getInfo(event));\n }\n const startPointerPress = (startEvent) => {\n removeEndListeners();\n const endPointerPress = (endEvent) => {\n const target = getEventTarget(endEvent);\n if (contains(pointerNode, target)) {\n onPress?.(getInfo(endEvent));\n } else {\n onPressEnd?.(getInfo(endEvent));\n }\n };\n const removePointerUpListener = addDomEvent(win, \"pointerup\", endPointerPress, { passive: !onPress, once: true });\n const removePointerCancelListener = addDomEvent(win, \"pointercancel\", cancelPress, {\n passive: !onPressEnd,\n once: true\n });\n removeEndListeners = pipe(removePointerUpListener, removePointerCancelListener);\n if (doc.activeElement === keyboardNode && startEvent.pointerType === \"mouse\") {\n startEvent.preventDefault();\n }\n startPress(startEvent);\n };\n const removePointerListener = addDomEvent(pointerNode, \"pointerdown\", startPointerPress, { passive: !onPressStart });\n const removeFocusListener = addDomEvent(keyboardNode, \"focus\", startAccessiblePress);\n removeStartListeners = pipe(removePointerListener, removeFocusListener);\n function startAccessiblePress() {\n const handleKeydown = (keydownEvent) => {\n if (!isValidKey(keydownEvent)) return;\n const handleKeyup = (keyupEvent) => {\n if (!isValidKey(keyupEvent)) return;\n const evt2 = new win.PointerEvent(\"pointerup\");\n const info = getInfo(evt2);\n onPress?.(info);\n onPressEnd?.(info);\n };\n removeEndListeners();\n removeEndListeners = addDomEvent(keyboardNode, \"keyup\", handleKeyup);\n const evt = new win.PointerEvent(\"pointerdown\");\n startPress(evt);\n };\n const handleBlur = () => {\n const evt = new win.PointerEvent(\"pointercancel\");\n cancelPress(evt);\n };\n const removeKeydownListener = addDomEvent(keyboardNode, \"keydown\", handleKeydown);\n const removeBlurListener = addDomEvent(keyboardNode, \"blur\", handleBlur);\n removeAccessibleListeners = pipe(removeKeydownListener, removeBlurListener);\n }\n return () => {\n removeStartListeners();\n removeEndListeners();\n removeAccessibleListeners();\n };\n}\n\n// src/proxy-tab-focus.ts\nfunction proxyTabFocusImpl(container, options = {}) {\n const { triggerElement, onFocus, onFocusEnter } = options;\n const doc = container?.ownerDocument || document;\n const body = doc.body;\n function onKeyDown(event) {\n if (event.key !== \"Tab\") return;\n let elementToFocus = null;\n const [firstTabbable, lastTabbable] = getTabbableEdges(container, true);\n const nextTabbableAfterTrigger = getNextTabbable(body, triggerElement);\n const noTabbableElements = !firstTabbable && !lastTabbable;\n if (event.shiftKey && nextTabbableAfterTrigger === doc.activeElement) {\n onFocusEnter?.();\n elementToFocus = lastTabbable;\n } else if (event.shiftKey && (doc.activeElement === firstTabbable || noTabbableElements)) {\n elementToFocus = triggerElement;\n } else if (!event.shiftKey && doc.activeElement === triggerElement) {\n onFocusEnter?.();\n elementToFocus = firstTabbable;\n } else if (!event.shiftKey && (doc.activeElement === lastTabbable || noTabbableElements)) {\n elementToFocus = nextTabbableAfterTrigger;\n }\n if (!elementToFocus) return;\n event.preventDefault();\n if (typeof onFocus === \"function\") {\n onFocus(elementToFocus);\n } else {\n elementToFocus.focus();\n }\n }\n return addDomEvent(doc, \"keydown\", onKeyDown, true);\n}\nfunction proxyTabFocus(container, options) {\n const { defer, triggerElement, ...restOptions } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof container === \"function\" ? container() : container;\n const trigger = typeof triggerElement === \"function\" ? triggerElement() : triggerElement;\n cleanups.push(proxyTabFocusImpl(node, { triggerElement: trigger, ...restOptions }));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\n// src/query.ts\nfunction queryAll(root, selector) {\n return Array.from(root?.querySelectorAll(selector) ?? []);\n}\nfunction query(root, selector) {\n return root?.querySelector(selector) ?? null;\n}\nvar defaultItemToId = (v) => v.id;\nfunction itemById(v, id, itemToId = defaultItemToId) {\n return v.find((item) => itemToId(item) === id);\n}\nfunction indexOfId(v, id, itemToId = defaultItemToId) {\n const item = itemById(v, id, itemToId);\n return item ? v.indexOf(item) : -1;\n}\nfunction nextById(v, id, loop = true) {\n let idx = indexOfId(v, id);\n idx = loop ? (idx + 1) % v.length : Math.min(idx + 1, v.length - 1);\n return v[idx];\n}\nfunction prevById(v, id, loop = true) {\n let idx = indexOfId(v, id);\n if (idx === -1) return loop ? v[v.length - 1] : null;\n idx = loop ? (idx - 1 + v.length) % v.length : Math.max(0, idx - 1);\n return v[idx];\n}\n\n// src/resize-observer.ts\nfunction trackElementRect(elements, options) {\n const { onEntry, measure, box = \"border-box\" } = options;\n const elems = (Array.isArray(elements) ? elements : [elements]).filter(isHTMLElement);\n const win = getWindow(elems[0]);\n const trigger = (entries) => {\n const rects = elems.map((el) => measure(el));\n onEntry({ rects, entries });\n };\n trigger([]);\n const obs = new win.ResizeObserver(trigger);\n elems.forEach((el) => obs.observe(el, { box }));\n return () => obs.disconnect();\n}\n\n// src/scope.ts\nfunction createScope(methods) {\n const dom = {\n getRootNode: (ctx) => ctx.getRootNode?.() ?? document,\n getDoc: (ctx) => getDocument(dom.getRootNode(ctx)),\n getWin: (ctx) => dom.getDoc(ctx).defaultView ?? window,\n getActiveElement: (ctx) => getActiveElement(dom.getRootNode(ctx)),\n isActiveElement: (ctx, elem) => elem === dom.getActiveElement(ctx),\n getById: (ctx, id) => dom.getRootNode(ctx).getElementById(id),\n setValue: (elem, value) => {\n if (elem == null || value == null) return;\n setElementValue(elem, value.toString());\n }\n };\n return { ...dom, ...methods };\n}\n\n// src/searchable.ts\nvar sanitize = (str) => str.split(\"\").map((char) => {\n const code = char.charCodeAt(0);\n if (code > 0 && code < 128) return char;\n if (code >= 128 && code <= 255) return `/x${code.toString(16)}`.replace(\"/\", \"\\\\\");\n return \"\";\n}).join(\"\").trim();\nvar getValueText = (el) => {\n return sanitize(el.dataset?.valuetext ?? el.textContent ?? \"\");\n};\nvar match = (valueText, query2) => {\n return valueText.trim().toLowerCase().startsWith(query2.toLowerCase());\n};\nfunction getByText(v, text, currentId, itemToId = defaultItemToId) {\n const index = currentId ? indexOfId(v, currentId, itemToId) : -1;\n let items = currentId ? wrap(v, index) : v;\n const isSingleKey = text.length === 1;\n if (isSingleKey) {\n items = items.filter((item) => itemToId(item) !== currentId);\n }\n return items.find((item) => match(getValueText(item), text));\n}\n\n// src/set.ts\nfunction setAttribute(el, attr, v) {\n const prev = el.getAttribute(attr);\n const exists = prev != null;\n el.setAttribute(attr, v);\n return () => {\n if (!exists) {\n el.removeAttribute(attr);\n } else {\n el.setAttribute(attr, prev);\n }\n };\n}\nfunction setProperty(el, prop, v) {\n const exists = prop in el;\n const prev = el[prop];\n el[prop] = v;\n return () => {\n if (!exists) {\n delete el[prop];\n } else {\n el[prop] = prev;\n }\n };\n}\nfunction setStyle(el, style) {\n if (!el) return noop;\n const prev = Object.keys(style).reduce((acc, key) => {\n acc[key] = el.style.getPropertyValue(key);\n return acc;\n }, {});\n Object.assign(el.style, style);\n return () => {\n Object.assign(el.style, prev);\n if (el.style.length === 0) {\n el.removeAttribute(\"style\");\n }\n };\n}\nfunction setStyleProperty(el, prop, value) {\n if (!el) return noop;\n const prev = el.style.getPropertyValue(prop);\n el.style.setProperty(prop, value);\n return () => {\n el.style.setProperty(prop, prev);\n if (el.style.length === 0) {\n el.removeAttribute(\"style\");\n }\n };\n}\n\n// src/typeahead.ts\nfunction getByTypeaheadImpl(baseItems, options) {\n const { state: state2, activeId, key, timeout = 350, itemToId } = options;\n const search = state2.keysSoFar + key;\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const query2 = isRepeated ? search[0] : search;\n let items = baseItems.slice();\n const next = getByText(items, query2, activeId, itemToId);\n function cleanup() {\n clearTimeout(state2.timer);\n state2.timer = -1;\n }\n function update(value) {\n state2.keysSoFar = value;\n cleanup();\n if (value !== \"\") {\n state2.timer = +setTimeout(() => {\n update(\"\");\n cleanup();\n }, timeout);\n }\n }\n update(search);\n return next;\n}\nvar getByTypeahead = /* @__PURE__ */ Object.assign(getByTypeaheadImpl, {\n defaultOptions: { keysSoFar: \"\", timer: -1 },\n isValidEvent: isValidTypeaheadEvent\n});\nfunction isValidTypeaheadEvent(event) {\n return event.key.length === 1 && !event.ctrlKey && !event.metaKey;\n}\n\n// src/visual-viewport.ts\nfunction trackVisualViewport(doc, fn) {\n const win = doc?.defaultView || window;\n const onResize = () => {\n fn?.(getViewportSize(win));\n };\n onResize();\n return addDomEvent(win.visualViewport ?? win, \"resize\", onResize);\n}\nfunction getViewportSize(win) {\n return {\n width: win.visualViewport?.width || win.innerWidth,\n height: win.visualViewport?.height || win.innerHeight\n };\n}\n\n// src/visually-hidden.ts\nvar visuallyHiddenStyle = {\n border: \"0\",\n clip: \"rect(0 0 0 0)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: \"0\",\n position: \"absolute\",\n width: \"1px\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n};\nfunction setVisuallyHidden(el) {\n Object.assign(el.style, visuallyHiddenStyle);\n}\n\n// src/wait-for.ts\nvar fps = 1e3 / 60;\nfunction waitForElement(query2, cb) {\n const el = query2();\n if (isHTMLElement(el) && el.isConnected) {\n cb(el);\n return () => void 0;\n } else {\n const timerId = setInterval(() => {\n const el2 = query2();\n if (isHTMLElement(el2) && el2.isConnected) {\n cb(el2);\n clearInterval(timerId);\n }\n }, fps);\n return () => clearInterval(timerId);\n }\n}\nfunction waitForElements(queries, cb) {\n const cleanups = [];\n queries?.forEach((query2) => {\n const clean = waitForElement(query2, cb);\n cleanups.push(clean);\n });\n return () => {\n cleanups.forEach((fn) => fn());\n };\n}\n\nexport { MAX_Z_INDEX, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, indexOfId, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackElementRect, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForElements };\n","import { callAll, isEqual, isString } from '@zag-js/utils';\nimport { getActiveElement, getDocument } from '@zag-js/dom-query';\n\n// src/merge-props.ts\nvar clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(\" \");\nvar CSS_REGEX = /((?:--)?(?:\\w+-?)+)\\s*:\\s*([^;]*)/g;\nvar serialize = (style) => {\n const res = {};\n let match;\n while (match = CSS_REGEX.exec(style)) {\n res[match[1]] = match[2];\n }\n return res;\n};\nvar css = (a, b) => {\n if (isString(a)) {\n if (isString(b)) return `${a};${b}`;\n a = serialize(a);\n } else if (isString(b)) {\n b = serialize(b);\n }\n return Object.assign({}, a ?? {}, b ?? {});\n};\nfunction mergeProps(...args) {\n let result = {};\n for (let props of args) {\n for (let key in result) {\n if (key.startsWith(\"on\") && typeof result[key] === \"function\" && typeof props[key] === \"function\") {\n result[key] = callAll(props[key], result[key]);\n continue;\n }\n if (key === \"className\" || key === \"class\") {\n result[key] = clsx(result[key], props[key]);\n continue;\n }\n if (key === \"style\") {\n result[key] = css(result[key], props[key]);\n continue;\n }\n result[key] = props[key] !== void 0 ? props[key] : result[key];\n }\n for (let key in props) {\n if (result[key] === void 0) {\n result[key] = props[key];\n }\n }\n }\n return result;\n}\nfunction memo(getDeps, fn, opts) {\n let deps = [];\n let result;\n return (depArgs) => {\n const newDeps = getDeps(depArgs);\n const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => !isEqual(deps[index], dep));\n if (!depsChanged) return result;\n deps = newDeps;\n result = fn(...newDeps);\n opts?.onChange?.(result);\n return result;\n };\n}\n\n// src/create-machine.ts\nfunction createGuards() {\n return {\n and: (...guards) => {\n return function andGuard(params) {\n return guards.every((str) => params.guard(str));\n };\n },\n or: (...guards) => {\n return function orGuard(params) {\n return guards.some((str) => params.guard(str));\n };\n },\n not: (guard) => {\n return function notGuard(params) {\n return !params.guard(guard);\n };\n }\n };\n}\nfunction createMachine(config) {\n return config;\n}\nfunction setup() {\n return {\n guards: createGuards(),\n createMachine: (config) => {\n return createMachine(config);\n },\n choose: (transitions) => {\n return function chooseFn({ choose }) {\n return choose(transitions)?.actions;\n };\n }\n };\n}\n\n// src/types.ts\nvar MachineStatus = /* @__PURE__ */ ((MachineStatus2) => {\n MachineStatus2[\"NotStarted\"] = \"Not Started\";\n MachineStatus2[\"Started\"] = \"Started\";\n MachineStatus2[\"Stopped\"] = \"Stopped\";\n return MachineStatus2;\n})(MachineStatus || {});\nvar INIT_STATE = \"__init__\";\nfunction createScope(props) {\n const getRootNode = () => props.getRootNode?.() ?? document;\n const getDoc = () => getDocument(getRootNode());\n const getWin = () => getDoc().defaultView ?? window;\n const getActiveElementFn = () => getActiveElement(getRootNode());\n const isActiveElement = (elem) => elem === getActiveElementFn();\n const getById = (id) => getRootNode().getElementById(id);\n return {\n ...props,\n getRootNode,\n getDoc,\n getWin,\n getActiveElement: getActiveElementFn,\n isActiveElement,\n getById\n };\n}\n\nexport { INIT_STATE, MachineStatus, createGuards, createMachine, createScope, memo, mergeProps, setup };\n","// src/create-anatomy.ts\nvar createAnatomy = (name, parts = []) => ({\n parts: (...values) => {\n if (isEmpty(parts)) {\n return createAnatomy(name, values);\n }\n throw new Error(\"createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?\");\n },\n extendWith: (...values) => createAnatomy(name, [...parts, ...values]),\n rename: (newName) => createAnatomy(newName, parts),\n keys: () => parts,\n build: () => [...new Set(parts)].reduce(\n (prev, part) => Object.assign(prev, {\n [part]: {\n selector: [\n `&[data-scope=\"${toKebabCase(name)}\"][data-part=\"${toKebabCase(part)}\"]`,\n `& [data-scope=\"${toKebabCase(name)}\"][data-part=\"${toKebabCase(part)}\"]`\n ].join(\", \"),\n attrs: { \"data-scope\": toKebabCase(name), \"data-part\": toKebabCase(part) }\n }\n }),\n {}\n )\n});\nvar toKebabCase = (value) => value.replace(/([A-Z])([A-Z])/g, \"$1-$2\").replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[\\s_]+/g, \"-\").toLowerCase();\nvar isEmpty = (v) => v.length === 0;\n\nexport { createAnatomy };\n","import { raf, getDocument, getWindow, isShadowRoot, addDomEvent, isTouchDevice, getEventTarget, isFocusable, isContextMenuEvent, isHTMLElement, contains, getNearestOverflowAncestor } from '@zag-js/dom-query';\nimport { callAll } from '@zag-js/utils';\n\n// src/index.ts\n\n// src/frame-utils.ts\nfunction getWindowFrames(win) {\n const frames = {\n each(cb) {\n for (let i = 0; i < win.frames?.length; i += 1) {\n const frame = win.frames[i];\n if (frame) cb(frame);\n }\n },\n addEventListener(event, listener, options) {\n frames.each((frame) => {\n try {\n frame.document.addEventListener(event, listener, options);\n } catch {\n }\n });\n return () => {\n try {\n frames.removeEventListener(event, listener, options);\n } catch {\n }\n };\n },\n removeEventListener(event, listener, options) {\n frames.each((frame) => {\n try {\n frame.document.removeEventListener(event, listener, options);\n } catch {\n }\n });\n }\n };\n return frames;\n}\nfunction getParentWindow(win) {\n const parent = win.frameElement != null ? win.parent : null;\n return {\n addEventListener: (event, listener, options) => {\n try {\n parent?.addEventListener(event, listener, options);\n } catch {\n }\n return () => {\n try {\n parent?.removeEventListener(event, listener, options);\n } catch {\n }\n };\n },\n removeEventListener: (event, listener, options) => {\n try {\n parent?.removeEventListener(event, listener, options);\n } catch {\n }\n }\n };\n}\n\n// src/index.ts\nvar POINTER_OUTSIDE_EVENT = \"pointerdown.outside\";\nvar FOCUS_OUTSIDE_EVENT = \"focus.outside\";\nfunction isComposedPathFocusable(composedPath) {\n for (const node of composedPath) {\n if (isHTMLElement(node) && isFocusable(node)) return true;\n }\n return false;\n}\nvar isPointerEvent = (event) => \"clientY\" in event;\nfunction isEventPointWithin(node, event) {\n if (!isPointerEvent(event) || !node) return false;\n const rect = node.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) return false;\n return rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width;\n}\nfunction isPointInRect(rect, point) {\n return rect.y <= point.y && point.y <= rect.y + rect.height && rect.x <= point.x && point.x <= rect.x + rect.width;\n}\nfunction isEventWithinScrollbar(event, ancestor) {\n if (!ancestor || !isPointerEvent(event)) return false;\n const isScrollableY = ancestor.scrollHeight > ancestor.clientHeight;\n const onScrollbarY = isScrollableY && event.clientX > ancestor.offsetLeft + ancestor.clientWidth;\n const isScrollableX = ancestor.scrollWidth > ancestor.clientWidth;\n const onScrollbarX = isScrollableX && event.clientY > ancestor.offsetTop + ancestor.clientHeight;\n const rect = {\n x: ancestor.offsetLeft,\n y: ancestor.offsetTop,\n width: ancestor.clientWidth + (isScrollableY ? 16 : 0),\n height: ancestor.clientHeight + (isScrollableX ? 16 : 0)\n };\n const point = {\n x: event.clientX,\n y: event.clientY\n };\n if (!isPointInRect(rect, point)) return false;\n return onScrollbarY || onScrollbarX;\n}\nfunction trackInteractOutsideImpl(node, options) {\n const { exclude, onFocusOutside, onPointerDownOutside, onInteractOutside, defer } = options;\n if (!node) return;\n const doc = getDocument(node);\n const win = getWindow(node);\n const frames = getWindowFrames(win);\n const parentWin = getParentWindow(win);\n function isEventOutside(event, target) {\n if (!isHTMLElement(target)) return false;\n if (!target.isConnected) return false;\n if (contains(node, target)) return false;\n if (isEventPointWithin(node, event)) return false;\n const triggerEl = doc.querySelector(`[aria-controls=\"${node.id}\"]`);\n if (triggerEl) {\n const triggerAncestor = getNearestOverflowAncestor(triggerEl);\n if (isEventWithinScrollbar(event, triggerAncestor)) return false;\n }\n const nodeAncestor = getNearestOverflowAncestor(node);\n if (isEventWithinScrollbar(event, nodeAncestor)) return false;\n return !exclude?.(target);\n }\n const pointerdownCleanups = /* @__PURE__ */ new Set();\n const isInShadowRoot = isShadowRoot(node?.getRootNode());\n function onPointerDown(event) {\n function handler(clickEvent) {\n const func = defer && !isTouchDevice() ? raf : (v) => v();\n const evt = clickEvent ?? event;\n const composedPath = evt?.composedPath?.() ?? [evt?.target];\n func(() => {\n const target = isInShadowRoot ? composedPath[0] : getEventTarget(event);\n if (!node || !isEventOutside(event, target)) return;\n if (onPointerDownOutside || onInteractOutside) {\n const handler2 = callAll(onPointerDownOutside, onInteractOutside);\n node.addEventListener(POINTER_OUTSIDE_EVENT, handler2, { once: true });\n }\n fireCustomEvent(node, POINTER_OUTSIDE_EVENT, {\n bubbles: false,\n cancelable: true,\n detail: {\n originalEvent: evt,\n contextmenu: isContextMenuEvent(evt),\n focusable: isComposedPathFocusable(composedPath),\n target\n }\n });\n });\n }\n if (event.pointerType === \"touch\") {\n pointerdownCleanups.forEach((fn) => fn());\n pointerdownCleanups.add(addDomEvent(doc, \"click\", handler, { once: true }));\n pointerdownCleanups.add(parentWin.addEventListener(\"click\", handler, { once: true }));\n pointerdownCleanups.add(frames.addEventListener(\"click\", handler, { once: true }));\n } else {\n handler();\n }\n }\n const cleanups = /* @__PURE__ */ new Set();\n const timer = setTimeout(() => {\n cleanups.add(addDomEvent(doc, \"pointerdown\", onPointerDown, true));\n cleanups.add(parentWin.addEventListener(\"pointerdown\", onPointerDown, true));\n cleanups.add(frames.addEventListener(\"pointerdown\", onPointerDown, true));\n }, 0);\n function onFocusin(event) {\n const func = defer ? raf : (v) => v();\n func(() => {\n const target = getEventTarget(event);\n if (!node || !isEventOutside(event, target)) return;\n if (onFocusOutside || onInteractOutside) {\n const handler = callAll(onFocusOutside, onInteractOutside);\n node.addEventListener(FOCUS_OUTSIDE_EVENT, handler, { once: true });\n }\n fireCustomEvent(node, FOCUS_OUTSIDE_EVENT, {\n bubbles: false,\n cancelable: true,\n detail: {\n originalEvent: event,\n contextmenu: false,\n focusable: isFocusable(target),\n target\n }\n });\n });\n }\n if (!isTouchDevice()) {\n cleanups.add(addDomEvent(doc, \"focusin\", onFocusin, true));\n cleanups.add(parentWin.addEventListener(\"focusin\", onFocusin, true));\n cleanups.add(frames.addEventListener(\"focusin\", onFocusin, true));\n }\n return () => {\n clearTimeout(timer);\n pointerdownCleanups.forEach((fn) => fn());\n cleanups.forEach((fn) => fn());\n };\n}\nfunction trackInteractOutside(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof nodeOrFn === \"function\" ? nodeOrFn() : nodeOrFn;\n cleanups.push(trackInteractOutsideImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction fireCustomEvent(el, type, init) {\n const win = el.ownerDocument.defaultView || window;\n const event = new win.CustomEvent(type, init);\n return el.dispatchEvent(event);\n}\n\nexport { trackInteractOutside };\n","import { raf, contains, getDocument, waitForElements, setStyle, addDomEvent, getEventTarget, isHTMLElement } from '@zag-js/dom-query';\nimport { trackInteractOutside } from '@zag-js/interact-outside';\nimport { isFunction, warn } from '@zag-js/utils';\n\n// src/dismissable-layer.ts\nfunction trackEscapeKeydown(node, fn) {\n const handleKeyDown = (event) => {\n if (event.key !== \"Escape\") return;\n if (event.isComposing) return;\n fn?.(event);\n };\n return addDomEvent(getDocument(node), \"keydown\", handleKeyDown, { capture: true });\n}\nvar layerStack = {\n layers: [],\n branches: [],\n count() {\n return this.layers.length;\n },\n pointerBlockingLayers() {\n return this.layers.filter((layer) => layer.pointerBlocking);\n },\n topMostPointerBlockingLayer() {\n return [...this.pointerBlockingLayers()].slice(-1)[0];\n },\n hasPointerBlockingLayer() {\n return this.pointerBlockingLayers().length > 0;\n },\n isBelowPointerBlockingLayer(node) {\n const index = this.indexOf(node);\n const highestBlockingIndex = this.topMostPointerBlockingLayer() ? this.indexOf(this.topMostPointerBlockingLayer()?.node) : -1;\n return index < highestBlockingIndex;\n },\n isTopMost(node) {\n const layer = this.layers[this.count() - 1];\n return layer?.node === node;\n },\n getNestedLayers(node) {\n return Array.from(this.layers).slice(this.indexOf(node) + 1);\n },\n isInNestedLayer(node, target) {\n return this.getNestedLayers(node).some((layer) => contains(layer.node, target));\n },\n isInBranch(target) {\n return Array.from(this.branches).some((branch) => contains(branch, target));\n },\n add(layer) {\n const num = this.layers.push(layer);\n layer.node.style.setProperty(\"--layer-index\", `${num}`);\n },\n addBranch(node) {\n this.branches.push(node);\n },\n remove(node) {\n const index = this.indexOf(node);\n if (index < 0) return;\n if (index < this.count() - 1) {\n const _layers = this.getNestedLayers(node);\n _layers.forEach((layer) => layer.dismiss());\n }\n this.layers.splice(index, 1);\n node.style.removeProperty(\"--layer-index\");\n },\n removeBranch(node) {\n const index = this.branches.indexOf(node);\n if (index >= 0) this.branches.splice(index, 1);\n },\n indexOf(node) {\n return this.layers.findIndex((layer) => layer.node === node);\n },\n dismiss(node) {\n this.layers[this.indexOf(node)]?.dismiss();\n },\n clear() {\n this.remove(this.layers[0].node);\n }\n};\nvar originalBodyPointerEvents;\nfunction assignPointerEventToLayers() {\n layerStack.layers.forEach(({ node }) => {\n node.style.pointerEvents = layerStack.isBelowPointerBlockingLayer(node) ? \"none\" : \"auto\";\n });\n}\nfunction clearPointerEvent(node) {\n node.style.pointerEvents = \"\";\n}\nfunction disablePointerEventsOutside(node, persistentElements) {\n const doc = getDocument(node);\n const cleanups = [];\n if (layerStack.hasPointerBlockingLayer() && !doc.body.hasAttribute(\"data-inert\")) {\n originalBodyPointerEvents = document.body.style.pointerEvents;\n queueMicrotask(() => {\n doc.body.style.pointerEvents = \"none\";\n doc.body.setAttribute(\"data-inert\", \"\");\n });\n }\n if (persistentElements) {\n const persistedCleanup = waitForElements(persistentElements, (el) => {\n cleanups.push(setStyle(el, { pointerEvents: \"auto\" }));\n });\n cleanups.push(persistedCleanup);\n }\n return () => {\n if (layerStack.hasPointerBlockingLayer()) return;\n queueMicrotask(() => {\n doc.body.style.pointerEvents = originalBodyPointerEvents;\n doc.body.removeAttribute(\"data-inert\");\n if (doc.body.style.length === 0) doc.body.removeAttribute(\"style\");\n });\n cleanups.forEach((fn) => fn());\n };\n}\n\n// src/dismissable-layer.ts\nfunction trackDismissableElementImpl(node, options) {\n const { warnOnMissingNode = true } = options;\n if (warnOnMissingNode && !node) {\n warn(\"[@zag-js/dismissable] node is `null` or `undefined`\");\n return;\n }\n if (!node) {\n return;\n }\n const { onDismiss, pointerBlocking, exclude: excludeContainers, debug } = options;\n const layer = { dismiss: onDismiss, node, pointerBlocking };\n layerStack.add(layer);\n assignPointerEventToLayers();\n function onPointerDownOutside(event) {\n const target = getEventTarget(event.detail.originalEvent);\n if (layerStack.isBelowPointerBlockingLayer(node) || layerStack.isInBranch(target)) return;\n options.onPointerDownOutside?.(event);\n options.onInteractOutside?.(event);\n if (event.defaultPrevented) return;\n if (debug) {\n console.log(\"onPointerDownOutside:\", event.detail.originalEvent);\n }\n onDismiss?.();\n }\n function onFocusOutside(event) {\n const target = getEventTarget(event.detail.originalEvent);\n if (layerStack.isInBranch(target)) return;\n options.onFocusOutside?.(event);\n options.onInteractOutside?.(event);\n if (event.defaultPrevented) return;\n if (debug) {\n console.log(\"onFocusOutside:\", event.detail.originalEvent);\n }\n onDismiss?.();\n }\n function onEscapeKeyDown(event) {\n if (!layerStack.isTopMost(node)) return;\n options.onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }\n function exclude(target) {\n if (!node) return false;\n const containers = typeof excludeContainers === \"function\" ? excludeContainers() : excludeContainers;\n const _containers = Array.isArray(containers) ? containers : [containers];\n const persistentElements = options.persistentElements?.map((fn) => fn()).filter(isHTMLElement);\n if (persistentElements) _containers.push(...persistentElements);\n return _containers.some((node2) => contains(node2, target)) || layerStack.isInNestedLayer(node, target);\n }\n const cleanups = [\n pointerBlocking ? disablePointerEventsOutside(node, options.persistentElements) : void 0,\n trackEscapeKeydown(node, onEscapeKeyDown),\n trackInteractOutside(node, { exclude, onFocusOutside, onPointerDownOutside, defer: options.defer })\n ];\n return () => {\n layerStack.remove(node);\n assignPointerEventToLayers();\n clearPointerEvent(node);\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction trackDismissableElement(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = isFunction(nodeOrFn) ? nodeOrFn() : nodeOrFn;\n cleanups.push(trackDismissableElementImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction trackDismissableBranch(nodeOrFn, options = {}) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = isFunction(nodeOrFn) ? nodeOrFn() : nodeOrFn;\n if (!node) {\n warn(\"[@zag-js/dismissable] branch node is `null` or `undefined`\");\n return;\n }\n layerStack.addBranch(node);\n cleanups.push(() => {\n layerStack.removeBranch(node);\n });\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { trackDismissableBranch, trackDismissableElement };\n"],"names":["toArray","v","fromLength","length","first","last","has","add","items","remove","t","addOrRemove","item","nextIndex","idx","opts","step","loop","next2","len","last2","next","prevIndex","prev","index","flatArray","arr","flat","isArrayLike","value","isArrayEqual","a","b","i","isEqual","keys","key","isArray","isObjectLike","isObject","isNumber","isString","isFunction","isNull","hasProp","obj","prop","fnToString","runIfFn","identity","noop","callAll","fns","fn","uuid","id","tryCatch","fallback","error","floor","abs","round","min","max","pow","sign","isNaN","nan","mod","m","wrap","vmax","getMinValueAtIndex","vmin","getMaxValueAtIndex","isValueAtMax","isValueAtMin","isValueWithinRange","roundValue","clampValue","getValuePercent","getPercentValue","p","roundToStepPrecision","rv","ss","pi","pw","roundToDpr","dpr","snapValueToStep","remainder","sv","setValueAtIndex","vs","getValueSetterAtIndex","ctx","minValueAtIndex","maxValueAtIndex","nextValues","nextValue","getNextStepValue","getPreviousStepValue","getClosestValueIndex","vLeft","vRight","getValueRanges","gap","getValueTransformer","va","vb","c","d","toFixedNumber","pow2","countDecimals","e","decimalOp","op","result","multiplier","incrementValue","s","decrementValue","toPx","compact","isPlainObject2","filtered","pick","setRafTimeout","callback","delay","start","handle","now","warn","invariant","ensure","ensureProps","props","scope","missingKeys","clamp","_","pipe","arg","acc","MAX_Z_INDEX","dataAttr","guard","ariaAttr","ELEMENT_NODE","DOCUMENT_NODE","DOCUMENT_FRAGMENT_NODE","isHTMLElement","el","isDocument","isWindow","getNodeName","node","isRootElement","isNode","isShadowRoot","isInputElement","isAnchorElement","isElementVisible","TEXTAREA_SELECT_REGEX","isEditableElement","contains","parent","child","rootNode","getDocument","getDocumentElement","getWindow","getActiveElement","activeElement","getParentNode","styleCache","getComputedStyle","getDataUrl","svg","type","quality","background","win","doc","svgBounds","svgClone","source","svgString","str","canvas","image","context","resolve","isDom","getPlatform","getUserAgent","ua2","brand","version","pt","ua","vn","isTouchDevice","isIPhone","isIPad","isMac","isIos","isApple","isSafari","isFirefox","isAndroid","getBeforeInputValue","event","selectionStart","selectionEnd","getComposedPath","getEventTarget","isSelfTarget","isOpeningInNewTab","element","isAppleDevice","localName","isDownloadingEvent","isComposingEvent","getNativeEvent","isPrintableKey","isVirtualClick","isLeftClick","isContextMenuEvent","isModifierKey","isTouchEvent","keyMap","rtlKeyMap","getEventKey","options","dir","orientation","pageKeys","arrowKeys","getEventStep","getEventPoint","point","addDomEvent","target","eventName","handler","getDescriptor","property","proto","getElementType","setElementValue","setElementChecked","checked","dispatchInputValueEvent","bubbles","dispatchInputCheckedEvent","getClosestForm","isFormElement","trackFormReset","form","onReset","trackFieldsetDisabled","fieldset","obs","trackFormControl","onFieldsetDisabledChange","onFormReset","cleanups","cleanup","isFrame","hasTabIndex","hasNegativeTabIndex","focusableSelector","getFocusables","container","includeContainer","elements","isFocusable","focusableElements","frameBody","getTabbables","tabbableElements","isTabbable","allFrameTabbable","getTabbableEdges","getNextTabbable","current","tabbables","currentElement","getTabIndex","getInitialFocus","root","getInitialEl","filter","enabled","isValidTabEvent","firstTabbable","lastTabbable","nextTick","set","raf2","fn2","raf","queueBeforeEvent","cb","cancelTimer","exec","observeAttributesImpl","attributes","changes","change","observeAttributes","nodeOrFn","defer","func","observeChildrenImpl","observeChildren","clickIfLink","click","getNearestOverflowAncestor","parentNode","isOverflowElement","OVERFLOW_RE","overflow","overflowX","overflowY","display","isScrollable","scrollIntoView","rootEl","scrollOptions","getRelativePoint","left","top","width","height","offset","percent","inverted","invertX","invertY","requestPointerLock","body","supported","isLocked","onPointerChange","onPointerError","cleanup2","state","userSelect","elementMap","disableTextSelectionImpl","docNode","restoreTextSelection","prevUserSelect","disableTextSelection","restOptions","trackPointerMove","handlers","onPointerMove","onPointerUp","distance","moveBuffer","trackPress","pointerNode","keyboardNode","onPress","onPressStart","onPressEnd","isValidKey","removeStartListeners","removeEndListeners","removeAccessibleListeners","getInfo","startPress","cancelPress","removePointerListener","startEvent","removePointerUpListener","endEvent","removePointerCancelListener","removeFocusListener","startAccessiblePress","handleKeydown","keydownEvent","handleKeyup","keyupEvent","evt2","info","evt","handleBlur","removeKeydownListener","removeBlurListener","proxyTabFocusImpl","triggerElement","onFocus","onFocusEnter","onKeyDown","elementToFocus","nextTabbableAfterTrigger","noTabbableElements","proxyTabFocus","trigger","queryAll","selector","query","defaultItemToId","itemById","itemToId","indexOfId","nextById","prevById","trackElementRect","onEntry","measure","box","elems","entries","rects","sanitize","char","code","getValueText","match","valueText","query2","getByText","text","currentId","setStyle","style","setStyleProperty","getByTypeaheadImpl","baseItems","state2","activeId","timeout","search","update","getByTypeahead","isValidTypeaheadEvent","visuallyHiddenStyle","fps","waitForElement","timerId","el2","waitForElements","queries","clean","clsx","args","CSS_REGEX","serialize","res","css","mergeProps","memo","getDeps","deps","depArgs","newDeps","dep","createGuards","guards","params","createMachine","config","setup","transitions","choose","MachineStatus","MachineStatus2","INIT_STATE","createScope","getRootNode","getDoc","getWin","getActiveElementFn","elem","createAnatomy","name","parts","values","isEmpty","newName","part","toKebabCase","getWindowFrames","frames","frame","listener","getParentWindow","POINTER_OUTSIDE_EVENT","FOCUS_OUTSIDE_EVENT","isComposedPathFocusable","composedPath","isPointerEvent","isEventPointWithin","rect","isPointInRect","isEventWithinScrollbar","ancestor","isScrollableY","onScrollbarY","isScrollableX","onScrollbarX","trackInteractOutsideImpl","exclude","onFocusOutside","onPointerDownOutside","onInteractOutside","parentWin","isEventOutside","triggerEl","triggerAncestor","nodeAncestor","pointerdownCleanups","isInShadowRoot","onPointerDown","clickEvent","handler2","fireCustomEvent","timer","onFocusin","trackInteractOutside","init","trackEscapeKeydown","handleKeyDown","layerStack","layer","highestBlockingIndex","branch","num","originalBodyPointerEvents","assignPointerEventToLayers","clearPointerEvent","disablePointerEventsOutside","persistentElements","persistedCleanup","trackDismissableElementImpl","warnOnMissingNode","onDismiss","pointerBlocking","excludeContainers","debug","onEscapeKeyDown","containers","_containers","node2","trackDismissableElement","trackDismissableBranch"],"mappings":"aACA,SAASA,GAAQC,EAAG,CAClB,OAAKA,EACE,MAAM,QAAQA,CAAC,EAAIA,EAAI,CAACA,CAAC,EADjB,CAAE,CAEnB,CACG,IAACC,GAAcC,GAAW,MAAM,KAAK,MAAMA,CAAM,EAAE,KAAM,CAAA,EACxDC,GAASH,GAAMA,EAAE,CAAC,EAClBI,GAAQJ,GAAMA,EAAEA,EAAE,OAAS,CAAC,EAE5BK,GAAM,CAACL,EAAG,IAAMA,EAAE,QAAQ,CAAC,IAAM,GACjCM,GAAM,CAACN,KAAMO,IAAUP,EAAE,OAAOO,CAAK,EACrCC,GAAS,CAACR,KAAMO,IAAUP,EAAE,OAAQS,GAAM,CAACF,EAAM,SAASE,CAAC,CAAC,EAI5DC,GA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SAASmf,GAAwB7O,EAAU9E,EAAS,CAClD,KAAM,CAAE,MAAA+E,CAAK,EAAK/E,EACZgF,EAAOD,EAAQX,EAAOhT,GAAMA,EAAG,EAC/B6Q,EAAW,CAAE,EACnB,OAAAA,EAAS,KACP+C,EAAK,IAAM,CACT,MAAM9J,EAAOrH,GAAWiR,CAAQ,EAAIA,EAAU,EAAGA,EACjD7C,EAAS,KAAKgR,GAA4B/X,EAAM8E,CAAO,CAAC,CACzD,CAAA,CACF,EACM,IAAM,CACXiC,EAAS,QAASzN,GAAOA,IAAE,CAAI,CAChC,CACH,CACA,SAASof,GAAuB9O,EAAU9E,EAAU,GAAI,CACtD,KAAM,CAAE,MAAA+E,CAAK,EAAK/E,EACZgF,EAAOD,EAAQX,EAAOhT,GAAMA,EAAG,EAC/B6Q,EAAW,CAAE,EACnB,OAAAA,EAAS,KACP+C,EAAK,IAAM,CACT,MAAM9J,EAAOrH,GAAWiR,CAAQ,EAAIA,EAAU,EAAGA,EACjD,GAAI,CAAC5J,EAAM,CACTxB,GAAK,4DAA4D,EACjE,MACR,CACM4Y,EAAW,UAAUpX,CAAI,EACzB+G,EAAS,KAAK,IAAM,CAClBqQ,EAAW,aAAapX,CAAI,CACpC,CAAO,CACF,CAAA,CACF,EACM,IAAM,CACX+G,EAAS,QAASzN,GAAOA,IAAE,CAAI,CAChC,CACH","x_google_ignoreList":[0,1,2,3,4,5]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const s=require("./index-BlGAWSIX.js"),f=require("./portal-TWtD47zg.js");var S=(e,t)=>({x:e,y:t});function z(e){const{x:t,y:r,width:n,height:o}=e,c=t+n/2,a=r+o/2;return{x:t,y:r,width:n,height:o,minX:t,minY:r,maxX:t+n,maxY:r+o,midX:c,midY:a,center:S(c,a)}}function ee(e){const t=S(e.minX,e.minY),r=S(e.maxX,e.minY),n=S(e.maxX,e.maxY),o=S(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function te(e,t){const r=z(e),{top:n,right:o,left:c,bottom:a}=ee(r),[g]=t.split("-");return{top:[c,n,o,a],right:[n,o,a,c],bottom:[n,c,a,o],left:[o,n,c,a]}[g]}function ne(e,t){const{x:r,y:n}=t;let o=!1;for(let c=0,a=e.length-1;c<e.length;a=c++){const g=e[c].x,u=e[c].y,P=e[a].x,A=e[a].y;u>n!=A>n&&r<(P-g)*(n-u)/(A-u)+g&&(o=!o)}return o}var q=s.createAnatomy("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),p=q.build(),D=e=>e.ids?.trigger??`menu:${e.id}:trigger`,j=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,N=e=>e.ids?.content??`menu:${e.id}:content`,ie=e=>e.ids?.arrow??`menu:${e.id}:arrow`,J=e=>e.ids?.positioner??`menu:${e.id}:popper`,re=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,k=(e,t)=>`${e.id}/${t}`,C=e=>e?.dataset.value??null,X=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,y=e=>e.getById(N(e)),K=e=>e.getById(J(e)),M=e=>e.getById(D(e)),Q=(e,t)=>t?e.getById(k(e,t)):null,Y=e=>e.getById(j(e)),L=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(N(e))}]:not([data-disabled])`;return s.queryAll(y(e),r)},oe=e=>s.first(L(e)),ae=e=>s.last(L(e)),U=(e,t)=>t?e.id===t||e.dataset.value===t:!1,se=(e,t)=>{const r=L(e),n=r.findIndex(o=>U(o,t.value));return s.next(r,n,{loop:t.loop??t.loopFocus})},le=(e,t)=>{const r=L(e),n=r.findIndex(o=>U(o,t.value));return s.prev(r,n,{loop:t.loop??t.loopFocus})},ge=(e,t)=>{const r=L(e),n=r.find(o=>U(o,t.value));return s.getByTypeahead(r,{state:t.typeaheadState,key:t.key,activeId:n?.id??null})},_=e=>s.isHTMLElement(e)&&(e.dataset.disabled===""||e.hasAttribute("disabled")),ce=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),F="menu:select";function de(e,t){if(!e)return;const r=s.getWindow(e),n=new r.CustomEvent(F,{detail:{value:t}});e.dispatchEvent(n)}function ue(e,t){const{context:r,send:n,state:o,computed:c,prop:a,scope:g}=e,u=o.hasTag("open"),P=c("isSubmenu"),A=c("isTypingAhead"),x=a("composite"),W=r.get("currentPlacement"),Z=r.get("anchorPoint"),R=r.get("highlightedValue"),H=f.getPlacementStyles({...a("positioning"),placement:Z?"bottom":W});function w(i){return{id:k(g,i.value),disabled:!!i.disabled,highlighted:R===i.value}}function B(i){const l=i.valueText??i.value;return{...i,id:i.value,valueText:l}}function b(i){return{...w(B(i)),checked:!!i.checked}}function G(i){const{closeOnSelect:l,valueText:m,value:T}=i,O=w(i),I=k(g,T);return t.element({...p.item.attrs,id:I,role:"menuitem","aria-disabled":s.ariaAttr(O.disabled),"data-disabled":s.dataAttr(O.disabled),"data-ownedby":N(g),"data-highlighted":s.dataAttr(O.highlighted),"data-value":T,"data-valuetext":m,onDragStart(d){d.currentTarget.matches("a[href]")&&d.preventDefault()},onPointerMove(d){if(O.disabled||d.pointerType!=="mouse")return;const h=d.currentTarget;O.highlighted||n({type:"ITEM_POINTERMOVE",id:I,target:h,closeOnSelect:l})},onPointerLeave(d){if(O.disabled||d.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER"))return;const V=d.currentTarget;n({type:"ITEM_POINTERLEAVE",id:I,target:V,closeOnSelect:l})},onPointerDown(d){if(O.disabled)return;const h=d.currentTarget;n({type:"ITEM_POINTERDOWN",target:h,id:I,closeOnSelect:l})},onClick(d){if(s.isDownloadingEvent(d)||s.isOpeningInNewTab(d)||O.disabled)return;const h=d.currentTarget;n({type:"ITEM_CLICK",target:h,id:I,closeOnSelect:l})}})}return{highlightedValue:R,open:u,setOpen(i){o.hasTag("open")!==i&&n({type:i?"OPEN":"CLOSE"})},setHighlightedValue(i){n({type:"HIGHLIGHTED.SET",value:i})},setParent(i){n({type:"PARENT.SET",value:i,id:i.prop("id")})},setChild(i){n({type:"CHILD.SET",value:i,id:i.prop("id")})},reposition(i={}){n({type:"POSITIONING.SET",options:i})},addItemListener(i){const l=g.getById(i.id);if(!l)return;const m=()=>i.onSelect?.();return l.addEventListener(F,m),()=>l.removeEventListener(F,m)},getContextTriggerProps(){return t.element({...p.contextTrigger.attrs,dir:a("dir"),id:j(g),onPointerDown(i){if(i.pointerType==="mouse")return;const l=s.getEventPoint(i);n({type:"CONTEXT_MENU_START",point:l})},onPointerCancel(i){i.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(i){i.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(i){i.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(i){const l=s.getEventPoint(i);n({type:"CONTEXT_MENU",point:l}),i.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},getTriggerItemProps(i){const l=i.getTriggerProps();return s.mergeProps(G({value:l.id}),l)},getTriggerProps(){return t.button({...P?p.triggerItem.attrs:p.trigger.attrs,"data-placement":r.get("currentPlacement"),type:"button",dir:a("dir"),id:D(g),"data-uid":a("id"),"aria-haspopup":x?"menu":"dialog","aria-controls":N(g),"aria-expanded":u||void 0,"data-state":u?"open":"closed",onPointerMove(i){if(i.pointerType!=="mouse"||_(i.currentTarget)||!P)return;const m=s.getEventPoint(i);n({type:"TRIGGER_POINTERMOVE",target:i.currentTarget,point:m})},onPointerLeave(i){if(_(i.currentTarget)||i.pointerType!=="mouse"||!P)return;const l=s.getEventPoint(i);n({type:"TRIGGER_POINTERLEAVE",target:i.currentTarget,point:l})},onPointerDown(i){_(i.currentTarget)||s.isContextMenuEvent(i)||i.preventDefault()},onClick(i){i.defaultPrevented||_(i.currentTarget)||n({type:"TRIGGER_CLICK",target:i.currentTarget})},onBlur(){n({type:"TRIGGER_BLUR"})},onFocus(){n({type:"TRIGGER_FOCUS"})},onKeyDown(i){if(i.defaultPrevented)return;const l={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},Enter(){n({type:"ARROW_DOWN",src:"enter"})},Space(){n({type:"ARROW_DOWN",src:"space"})}},m=s.getEventKey(i,{orientation:"vertical",dir:a("dir")}),T=l[m];T&&(i.preventDefault(),T(i))}})},getIndicatorProps(){return t.element({...p.indicator.attrs,dir:a("dir"),"data-state":u?"open":"closed"})},getPositionerProps(){return t.element({...p.positioner.attrs,dir:a("dir"),id:J(g),style:H.floating})},getArrowProps(){return t.element({id:ie(g),...p.arrow.attrs,dir:a("dir"),style:H.arrow})},getArrowTipProps(){return t.element({...p.arrowTip.attrs,dir:a("dir"),style:H.arrowTip})},getContentProps(){return t.element({...p.content.attrs,id:N(g),"aria-label":a("aria-label"),hidden:!u,"data-state":u?"open":"closed",role:x?"menu":"dialog",tabIndex:0,dir:a("dir"),"aria-activedescendant":c("highlightedId")||void 0,"aria-labelledby":D(g),"data-placement":W,onPointerEnter(i){i.pointerType==="mouse"&&n({type:"MENU_POINTERENTER"})},onKeyDown(i){if(i.defaultPrevented||!s.isSelfTarget(i))return;const l=s.getEventTarget(i);if(!(l?.closest("[role=menu]")===i.currentTarget||l===i.currentTarget))return;if(i.key==="Tab"&&!s.isValidTabEvent(i)){i.preventDefault();return}const T=Q(g,R),O={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},ArrowLeft(){n({type:"ARROW_LEFT"})},ArrowRight(){n({type:"ARROW_RIGHT"})},Enter(){n({type:"ENTER"}),R!=null&&s.isAnchorElement(T)&&a("navigate")?.({value:R,node:T,href:T.href})},Space(h){A?n({type:"TYPEAHEAD",key:h.key}):O.Enter?.(h)},Home(){n({type:"HOME"})},End(){n({type:"END"})}},I=s.getEventKey(i,{dir:a("dir")}),d=O[I];if(d){d(i),i.stopPropagation(),i.preventDefault();return}a("typeahead")&&s.isPrintableKey(i)&&(s.isModifierKey(i)||s.isEditableElement(l)||(n({type:"TYPEAHEAD",key:i.key}),i.preventDefault()))}})},getSeparatorProps(){return t.element({...p.separator.attrs,role:"separator",dir:a("dir"),"aria-orientation":"horizontal"})},getItemState:w,getItemProps:G,getOptionItemState:b,getOptionItemProps(i){const{type:l,disabled:m,onCheckedChange:T,closeOnSelect:O}=i,I=B(i),d=b(i);return{...G(I),...t.element({"data-type":l,...p.item.attrs,dir:a("dir"),"data-value":I.value,role:`menuitem${l}`,"aria-checked":!!d.checked,"data-state":d.checked?"checked":"unchecked",onClick(h){if(m||s.isDownloadingEvent(h)||s.isOpeningInNewTab(h))return;const V=h.currentTarget;n({type:"ITEM_CLICK",target:V,option:I,closeOnSelect:O}),T?.(!d.checked)}})}},getItemIndicatorProps(i){const l=b(i);return t.element({...p.itemIndicator.attrs,dir:a("dir"),"data-disabled":s.dataAttr(l.disabled),"data-highlighted":s.dataAttr(l.highlighted),"data-state":l.checked?"checked":"unchecked",hidden:!l.checked})},getItemTextProps(i){const l=b(i);return t.element({...p.itemText.attrs,dir:a("dir"),"data-disabled":s.dataAttr(l.disabled),"data-highlighted":s.dataAttr(l.highlighted),"data-state":l.checked?"checked":"unchecked"})},getItemGroupLabelProps(i){return t.element({...p.itemGroupLabel.attrs,id:X(g,i.htmlFor),dir:a("dir")})},getItemGroupProps(i){return t.element({id:re(g,i.id),...p.itemGroup.attrs,dir:a("dir"),"aria-labelledby":X(g,i.id),role:"group"})}}}var{not:E,and:v,or:he}=s.createGuards(),pe=s.createMachine({props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(t){s.clickIfLink(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:{...s.getByTypeahead.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})=>Ee(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:E("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:he("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:v(E("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:E("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:v("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:E("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:v(E("isPointerSuspended"),E("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:v(E("isTriggerItemHighlighted"),E("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:v(E("isTriggerItemHighlighted"),E("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:v(E("isTriggerItemHighlighted"),E("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})=>ce(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})=>s.isEditableElement(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(Y(r))return;const o={...t("positioning"),...n.get("positioningOverride")};e.set("currentPlacement",o.placement);const c=()=>K(r);return f.getPlacement(M(r),c,{...o,defer:!0,onComplete(a){e.set("currentPlacement",a.placement)}})},trackInteractOutside({refs:e,scope:t,prop:r,computed:n,send:o}){const c=()=>y(t);let a=!0;return s.trackDismissableElement(c,{defer:!0,exclude:[M(t)],onInteractOutside:r("onInteractOutside"),onFocusOutside:r("onFocusOutside"),onEscapeKeyDown(g){r("onEscapeKeyDown")?.(g),n("isSubmenu")&&g.preventDefault(),$({parent:e.get("parent")})},onPointerDownOutside(g){const u=s.getEventTarget(g.detail.originalEvent);if(s.contains(Y(t),u)&&g.detail.contextmenu){g.preventDefault();return}a=!g.detail.focusable,r("onPointerDownOutside")?.(g)},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:a})}})},trackPointerMove({context:e,scope:t,send:r,refs:n,flush:o}){const c=n.get("parent");o(()=>{c.context.set("suspendPointer",!0)});const a=t.getDoc();return s.addDomEvent(a,"pointermove",g=>{Oe(e.get("intentPolygon"),{x:g.clientX,y:g.clientY})||(r({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),c.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:r}){const n=()=>{if(e.type.startsWith("ITEM_POINTER"))return;const c=t.getById(r("highlightedId")),a=y(t);s.scrollIntoView(c,{rootEl:a,block:"nearest"})};s.raf(()=>n());const o=()=>y(t);return s.observeAttributes(o,{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 c=()=>K(t),a=e.get("anchorPoint"),g=a?()=>({width:0,height:0,...a}):void 0,u={...r("positioning"),...o.get("positioningOverride")};f.getPlacement(M(t),c,{...u,defer:!0,getAnchorRect:g,...n.options??{},listeners:!1,onComplete(P){e.set("currentPlacement",P.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=y(t),o=e.get("currentPlacement");if(!n||!o)return;const c=n.getBoundingClientRect(),a=te(c,o);if(!a)return;const u=f.getPlacementSide(o)==="right"?-5:5;e.set("intentPolygon",[{...r.point,x:r.point.x+u},...a])},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||C(t.target);e.set("highlightedValue",r)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){s.raf(()=>{const t=y(e);s.getInitialFocus({root:t,enabled:!s.contains(t,e.getActiveElement()),filter(n){return!n.role?.startsWith("menuitem")}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(y(t)?queueMicrotask:s.raf)(()=>{const n=oe(t);n&&e.set("highlightedValue",C(n))})},highlightLastItem({context:e,scope:t}){(y(t)?queueMicrotask:s.raf)(()=>{const n=ae(t);n&&e.set("highlightedValue",C(n))})},highlightNextItem({context:e,scope:t,event:r,prop:n}){const o=se(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",C(o))},highlightPrevItem({context:e,scope:t,event:r,prop:n}){const o=le(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",C(o))},invokeOnSelect({context:e,prop:t,scope:r}){const n=e.get("highlightedValue");if(n==null)return;const o=Q(r,n);de(o,n),t("onSelect")?.({value:n})},focusTrigger({scope:e,context:t,event:r,computed:n}){n("isSubmenu")||t.get("anchorPoint")||r.restoreFocus===!1||queueMicrotask(()=>M(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:r,refs:n}){const o=ge(e,{key:r.key,value:t.get("highlightedValue"),typeaheadState:n.get("typeaheadState")});o&&t.set("highlightedValue",C(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}){$({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:r}){const o=t.getById(r("highlightedId"))?.getAttribute("data-uid"),c=e.get("children");(o?c[o]:null)?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",C(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 $(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function Oe(e,t){return e?ne(e,t):!1}function Ee(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return k(r,t);for(const o in e){const c=e[o],a=D(c.scope);if(a===t)return a}return k(r,t)}f.createProps()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);f.createProps()(["closeOnSelect","disabled","value","valueText"]);f.createProps()(["htmlFor"]);f.createProps()(["id"]);f.createProps()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);exports.anatomy=q;exports.connect=ue;exports.machine=pe;
|
|
2
|
+
//# sourceMappingURL=index-BmcSWiFh.js.map
|