@ryuzaki13/react-foundation-ui 1.1.9 → 1.2.1
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/advanced-search/index.js +1 -1
- package/dist/check-box/CheckBox.d.ts +3 -1
- package/dist/check-box/CheckBox.d.ts.map +1 -1
- package/dist/check-box/index.js +1 -1
- package/dist/chunks/{CheckBox.module-D0Ze9qh3.js → CheckBox.module-C5SjPwSj.js} +2 -1
- package/dist/chunks/{CheckBox.module-D0Ze9qh3.js.map → CheckBox.module-C5SjPwSj.js.map} +1 -1
- package/dist/chunks/{TextEditorLexicalClient-DeBA6fQX.js → TextEditorLexicalClient-D2P2VLL0.js} +2 -2
- package/dist/chunks/{TextEditorLexicalClient-DeBA6fQX.js.map → TextEditorLexicalClient-D2P2VLL0.js.map} +1 -1
- package/dist/chunks/check-box-Dd3YFuxd.js +51 -0
- package/dist/chunks/check-box-Dd3YFuxd.js.map +1 -0
- package/dist/chunks/{multi-select-BCpRct-k.js → multi-select-Bg7Psslp.js} +56 -81
- package/dist/chunks/multi-select-Bg7Psslp.js.map +1 -0
- package/dist/chunks/{picker-DTZk09Ag.js → picker-BAQ9NeHe.js} +117 -88
- package/dist/chunks/picker-BAQ9NeHe.js.map +1 -0
- package/dist/chunks/{select-Bd48kVI3.js → select-DKbSVCp4.js} +16 -16
- package/dist/chunks/{select-Bd48kVI3.js.map → select-DKbSVCp4.js.map} +1 -1
- package/dist/layout-picker/index.js +11 -11
- package/dist/layout-picker/index.js.map +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/multi-select/ui/defaultRenderers.d.ts.map +1 -1
- package/dist/picker/PickerPopup.d.ts +4 -1
- package/dist/picker/PickerPopup.d.ts.map +1 -1
- package/dist/picker/PickerSelectionToolbar.d.ts +13 -0
- package/dist/picker/PickerSelectionToolbar.d.ts.map +1 -0
- package/dist/picker/index.d.ts +1 -0
- package/dist/picker/index.d.ts.map +1 -1
- package/dist/picker/index.js +2 -2
- package/dist/picker/model/usePickerFloatingListbox.d.ts +3 -0
- package/dist/picker/model/usePickerFloatingListbox.d.ts.map +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/radio-button/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/slider/index.js +1 -1
- package/dist/state-select/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/text-editor/index.js +1 -1
- package/dist/tree-select/ODataTreeMultiSelect.d.ts +4 -2
- package/dist/tree-select/ODataTreeMultiSelect.d.ts.map +1 -1
- package/dist/tree-select/TreeMultiSelect.d.ts +4 -2
- package/dist/tree-select/TreeMultiSelect.d.ts.map +1 -1
- package/dist/tree-select/TreeNodeContent.d.ts +4 -2
- package/dist/tree-select/TreeNodeContent.d.ts.map +1 -1
- package/dist/tree-select/TreePickerBase.d.ts +8 -2
- package/dist/tree-select/TreePickerBase.d.ts.map +1 -1
- package/dist/tree-select/index.js +341 -235
- package/dist/tree-select/index.js.map +1 -1
- package/dist/tree-select/model/resolveBalancedTreeColumnsLayout.d.ts +22 -0
- package/dist/tree-select/model/resolveBalancedTreeColumnsLayout.d.ts.map +1 -0
- package/dist/tree-select/model/treeUtils.d.ts +6 -0
- package/dist/tree-select/model/treeUtils.d.ts.map +1 -1
- package/dist/tree-select/types.d.ts +2 -0
- package/dist/tree-select/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/storybook-static/assets/{Badge-CYUtks4i.js → Badge-DGkAgQtD.js} +1 -1
- package/storybook-static/assets/{Badge.stories-CiwiuZND.js → Badge.stories-BNnfMijp.js} +1 -1
- package/storybook-static/assets/{Button-DxBLrgCb.js → Button-2V7cFs7U.js} +1 -1
- package/storybook-static/assets/{Button-GcMG_GZZ.js → Button-vNsY1Xgh.js} +1 -1
- package/storybook-static/assets/{Button.stories-Cd0Os334.js → Button.stories-qrLBulWZ.js} +1 -1
- package/storybook-static/assets/{CheckBox-B1xm2kwz.css → CheckBox-CT1_Mjc0.css} +1 -1
- package/storybook-static/assets/{CheckBox-DFUUkGhT.js → CheckBox-DeEGRsNS.js} +1 -1
- package/storybook-static/assets/CheckBox-Dnxk4w_M.js +2 -0
- package/storybook-static/assets/CheckBox.module-ezWPE2pa.js +1 -0
- package/storybook-static/assets/{CheckBox.stories-CJ_3y5UH.js → CheckBox.stories-CuPBzuQf.js} +1 -1
- package/storybook-static/assets/{Color-KMSTOMOX-D_F5kPOR.js → Color-KMSTOMOX-3kWYdPbk.js} +1 -1
- package/storybook-static/assets/{ContextMenu-Bwi_RCid.js → ContextMenu-C1EU4pnG.js} +1 -1
- package/storybook-static/assets/{ContextMenu.stories-CD3V_TkA.js → ContextMenu.stories-BWOdu8nd.js} +1 -1
- package/storybook-static/assets/{DateInput-D838WG9k.js → DateInput-D1rE9ZF6.js} +1 -1
- package/storybook-static/assets/{DateInput-BLOXukhB.js → DateInput-Qi0iElov.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-B5IcEl_E.js → DateInput.stories-DfNzJVzP.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-nV0sOrrq.js → DateRangePresetSelect-B5FJLqSK.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-D-5OmKVI.js → DateRangePresetSelect-DASkcMx3.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-B0OEeGyM.js → DateRangePresetSelect.stories-3ZcfGTpo.js} +1 -1
- package/storybook-static/assets/{Detail-BoRol63k.js → Detail-B02ATDwL.js} +1 -1
- package/storybook-static/assets/{Detail.stories-Bvoc4JyH.js → Detail.stories-ehMtdhKV.js} +1 -1
- package/storybook-static/assets/{Dialog-6f4X_UF_.js → Dialog-CB0KyNOp.js} +1 -1
- package/storybook-static/assets/{Dialog.stories-DupxCJ26.js → Dialog.stories-CO5-c6KC.js} +1 -1
- package/storybook-static/assets/{Disclosure-mjTMcSOm.js → Disclosure-CWvegL_8.js} +1 -1
- package/storybook-static/assets/{Disclosure.stories-BXY5v1i7.js → Disclosure.stories-_0z-uGCF.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-B5gLF2_w.js → DocsRenderer-JROSPFPF-e6fFOpcs.js} +2 -2
- package/storybook-static/assets/{DropZone-BWidhx3w.js → DropZone-BQryB_S-.js} +1 -1
- package/storybook-static/assets/{DropZone.stories-DdzxEO58.js → DropZone.stories-viPFVTfL.js} +1 -1
- package/storybook-static/assets/{DropdownMenu-CTP2q7WN.js → DropdownMenu-CJiWiCWO.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel.stories-zrVipsOg.js → ExpandableActionPanel.stories-DwL1eUl0.js} +1 -1
- package/storybook-static/assets/{Flex-BOdbeJ0I.js → Flex-HhZPENBj.js} +1 -1
- package/storybook-static/assets/{Flex-DZrPfPl7.js → Flex-c2FgZKph.js} +1 -1
- package/storybook-static/assets/{Flex.stories-BXa9Ld3i.js → Flex.stories-BdEfqTKQ.js} +1 -1
- package/storybook-static/assets/{Grid-BHcgytfy.js → Grid-CMUBLPOI.js} +1 -1
- package/storybook-static/assets/{Grid-JvQFWmt_.js → Grid-CXYJrcNO.js} +1 -1
- package/storybook-static/assets/{Grid.stories-B5poAGUr.js → Grid.stories-CSo_R9bk.js} +1 -1
- package/storybook-static/assets/{ImageCropper.stories-DddyTDWa.js → ImageCropper.stories-DPUCdwDr.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-VdBmXv1k.js → ImageRenderer-DIEFIwlO.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories-B5W5SEMP.js → ImageRenderer.stories-BAzbbd54.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-Bxdytr0W.js → ImageView.stories-d6p9XR7R.js} +1 -1
- package/storybook-static/assets/{ImageViewer.stories-BXJN4esR.js → ImageViewer.stories-DqBkvrje.js} +2 -2
- package/storybook-static/assets/{ImageViewerRuntime-DLzkYOMn.js → ImageViewerRuntime-DVM6ctfF.js} +1 -1
- package/storybook-static/assets/{Input-D6FlpB4Y.js → Input-KjqYLUEq.js} +1 -1
- package/storybook-static/assets/{Input-DoKDcdGf.js → Input-v-SWe_uB.js} +1 -1
- package/storybook-static/assets/{Input.stories-tR41eQh7.js → Input.stories-0dcZXgca.js} +1 -1
- package/storybook-static/assets/{InputDateTime-BpvZYBm8.js → InputDateTime-BMM480ZM.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-BOVClwU1.js → InputDateTime.stories-B8BnTwZN.js} +1 -1
- package/storybook-static/assets/{InputFile-BGHb93zX.js → InputFile-vetf3pm3.js} +1 -1
- package/storybook-static/assets/{InputFile.stories-CmhCmMX6.js → InputFile.stories-DCg1YCRD.js} +1 -1
- package/storybook-static/assets/{InputFiles-CLnOm0x9.js → InputFiles-B3lJfRWZ.js} +1 -1
- package/storybook-static/assets/{InputFiles-Bsatbrje.js → InputFiles-DsMZLICv.js} +1 -1
- package/storybook-static/assets/{InputFiles.stories-BOH1-zD8.js → InputFiles.stories-DwLeAv35.js} +1 -1
- package/storybook-static/assets/{InputImage-CZAwib3W.js → InputImage-DMMraEzR.js} +1 -1
- package/storybook-static/assets/{InputImage.stories-BobdHmpf.js → InputImage.stories-CMOZu1f6.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-BNQIVp3u.js → LayoutPicker-CoTbJOK9.js} +1 -1
- package/storybook-static/assets/{LayoutPicker.stories-Du0HfXjJ.js → LayoutPicker.stories-BXk3mwYX.js} +1 -1
- package/storybook-static/assets/{Listbox-Cup327ne.js → Listbox-BQHunK7L.js} +1 -1
- package/storybook-static/assets/{Listbox.stories-BlrBt5zM.js → Listbox.stories-DxGIgwKd.js} +1 -1
- package/storybook-static/assets/{Modal-d1loZR-M.js → Modal-wvQf3E-t.js} +1 -1
- package/storybook-static/assets/{Modal.stories-ClQnn-f_.js → Modal.stories-CV9fGbCP.js} +1 -1
- package/storybook-static/assets/{MultiSelect-CUQV67Ev.css → MultiSelect-BoIwmje6.css} +1 -1
- package/storybook-static/assets/{MultiSelect-DydDWE0p.js → MultiSelect-BwIbw9ss.js} +1 -1
- package/storybook-static/assets/MultiSelect-DMbWfmcw.js +2 -0
- package/storybook-static/assets/{MultiSelect.stories-iBixjG7e.js → MultiSelect.stories-CKbPYanW.js} +1 -1
- package/storybook-static/assets/{NotificationsHost-C86XqiWb.js → NotificationsHost-v6O42GH9.js} +1 -1
- package/storybook-static/assets/{NotificationsHost.stories-B1zhHRl_.js → NotificationsHost.stories-DWtIwIMT.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-wVgBQ88Z.js → ODataMultiSelect-B7VmCCyD.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-Cv2ibcVz.js → ODataMultiSelect.stories-B_GztBj9.js} +1 -1
- package/storybook-static/assets/{ODataSelect-BMymfHVd.js → ODataSelect-BCq3J8js.js} +1 -1
- package/storybook-static/assets/{ODataSelect-Rq48Ismc.js → ODataSelect-CHD3MCHd.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-DFID1Uev.js → ODataSelect.stories-C3G6df2Y.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect-y1_5XOhF.js → ODataTreeMultiSelect-CFEzZtem.js} +1 -1
- package/storybook-static/assets/ODataTreeMultiSelect.stories-BJpkyABJ.js +28 -0
- package/storybook-static/assets/{ODataTreeSelect-Dxo-54Zi.js → ODataTreeSelect-Dmk59MWR.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-B3SQ3ubn.js → ODataTreeSelect.stories-KV2ngm1a.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-B2brJahg.js → PeriodSelect-xv0hygbe.js} +1 -1
- package/storybook-static/assets/{PeriodSelect.stories-Je8sNgoc.js → PeriodSelect.stories-D9VNWc-J.js} +1 -1
- package/storybook-static/assets/{Popover-Dqyna8Ub.js → Popover-DI7zaH4O.js} +1 -1
- package/storybook-static/assets/{Popover.stories-DHGRJd3v.js → Popover.stories-CA57v2N3.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-Bq32kP8I.js → PresetRangeDateInput-3AIccdEE.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput.stories-C34e4bWa.js → PresetRangeDateInput.stories-7pPiYINM.js} +1 -1
- package/storybook-static/assets/{RadioButton-D6gcuP42.js → RadioButton-BGfGiK2D.js} +1 -1
- package/storybook-static/assets/{RadioButton.stories-CcupC0LJ.js → RadioButton.stories-BOeSQ7Qy.js} +1 -1
- package/storybook-static/assets/{RadioGroup-BfsMzoOg.js → RadioGroup-BXdWvE2x.js} +1 -1
- package/storybook-static/assets/{RadioGroup-B1nKl71P.js → RadioGroup-BteZ8Zfh.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-WojhAYJm.js → RadioGroup.stories-DdCAD6fi.js} +1 -1
- package/storybook-static/assets/{Select-_QFx3i7X.js → Select-BA_oiGy1.js} +1 -1
- package/storybook-static/assets/{Select-BxZr4NfI.js → Select-S1Kq352p.js} +1 -1
- package/storybook-static/assets/{Select.stories-2_XweKMH.js → Select.stories-0y2Tbi0E.js} +1 -1
- package/storybook-static/assets/{SelectOptionContent-YY3Lf4SM.js → SelectOptionContent-DNO6pn8i.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-BxIcA2AU.js → SerializableSelect-DLLMZfeg.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-CDQfz0rk.js → SerializableSelect-d1Emzd9y.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-D23YkoRX.js → SerializableSelect.stories-DlrUNt98.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-Ds1pL3ge.js → SingleDateTimeInput-PZjf5coN.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput.stories-DaHEQhiz.js → SingleDateTimeInput.stories-D-LF20Xf.js} +1 -1
- package/storybook-static/assets/{Slider-D4sBhVAB.js → Slider-Cnt-h4QU.js} +1 -1
- package/storybook-static/assets/{Slider.stories-BsM03Rby.js → Slider.stories-CspORXQq.js} +1 -1
- package/storybook-static/assets/{SliderInput-cP0GSpO-.js → SliderInput-DKEzvdee.js} +1 -1
- package/storybook-static/assets/{SliderInput.stories-BGk9ZIYB.js → SliderInput.stories-Ds7ENz3W.js} +1 -1
- package/storybook-static/assets/{Sortable-CW9mxBpj.js → Sortable-Boktuyds.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-CkFOw5CW.js → Sortable.stories-DVP9I-8-.js} +1 -1
- package/storybook-static/assets/{Splitter-BFbFbn0X.js → Splitter-DjjitTJC.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-Dj4bWJtu.js → Splitter.stories-TONEtB2o.js} +1 -1
- package/storybook-static/assets/{StateSelect-CHvxD1oY.js → StateSelect-CKS5OKFD.js} +1 -1
- package/storybook-static/assets/{StateSelect.stories-DiAdGF8Q.js → StateSelect.stories-1PpI7sB7.js} +1 -1
- package/storybook-static/assets/{Switch-DzE9B2Ue.js → Switch-DJpASzdE.js} +1 -1
- package/storybook-static/assets/{Switch.stories-DmRSgOsO.js → Switch.stories-DFrplfI2.js} +1 -1
- package/storybook-static/assets/{Table-DgbZNzAp.js → Table-BhHNM7kb.js} +1 -1
- package/storybook-static/assets/{Table.stories-DqYHNHnR.js → Table.stories-BifwgPO8.js} +1 -1
- package/storybook-static/assets/{Tabs-DSUhNbam.js → Tabs-p9UXYlyD.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-DKsEFwhg.js → Tabs.stories-Fiib2sS7.js} +1 -1
- package/storybook-static/assets/{TagInput.stories-B8x2doJL.js → TagInput.stories-Gg038VKV.js} +1 -1
- package/storybook-static/assets/{Textarea-ZqM5o8fk.js → Textarea-SlgV7esV.js} +1 -1
- package/storybook-static/assets/{Textarea.stories-B0IBcsuI.js → Textarea.stories-DBFORAfY.js} +1 -1
- package/storybook-static/assets/{TimePanel-DFVpYrKi.js → TimePanel-C0P98Tt-.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-Dah8MdEV.js → TimePanel.stories-Dp993HaV.js} +1 -1
- package/storybook-static/assets/{Toggle-CE93J6yJ.js → Toggle-CWy__Mll.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-DQSLZ16I.js → Toggle.stories-BvLgd3ea.js} +1 -1
- package/storybook-static/assets/TreeMultiSelect-CDFFjZnT.js +1 -0
- package/storybook-static/assets/{TreeMultiSelect-DtUozmC9.js → TreeMultiSelect-CrDJlnbX.js} +1 -1
- package/storybook-static/assets/TreeMultiSelect.stories-C3zkS-ak.js +31 -0
- package/storybook-static/assets/TreePickerBase-B35lReuv.css +1 -0
- package/storybook-static/assets/TreePickerBase-Bn8pSo-u.js +22 -0
- package/storybook-static/assets/{TreeSelect-C1dHJDVC.js → TreeSelect-BrFxwiBP.js} +1 -1
- package/storybook-static/assets/TreeSelect-CuaoMlYe.js +1 -0
- package/storybook-static/assets/{TreeSelect.stories-C_fffAaM.js → TreeSelect.stories-rzd0vNoK.js} +1 -1
- package/storybook-static/assets/{TreeTable-mGpVE4fE.js → TreeTable-uvfUlKoJ.js} +1 -1
- package/storybook-static/assets/{TreeTable.stories-on_ck1LO.js → TreeTable.stories-FUOaBB9J.js} +1 -1
- package/storybook-static/assets/{WithTooltip-7X4HQR7L-BP3dvWMO.js → WithTooltip-7X4HQR7L-LW5ygQJA.js} +1 -1
- package/storybook-static/assets/base-table-DPs5qte-.js +18 -0
- package/storybook-static/assets/{blocks-CdNjp0UR.js → blocks-C6uFFMmb.js} +6 -6
- package/storybook-static/assets/{button-mxhQ6kpI.js → button-DyEbX-UX.js} +1 -1
- package/storybook-static/assets/{check-box-CuugSv5K.js → check-box-ByXAYB_w.js} +1 -1
- package/storybook-static/assets/{chunk-3LY4VQVK-CNZt5fIP.js → chunk-3LY4VQVK-D0GJRVS7.js} +1 -1
- package/storybook-static/assets/{chunk-LITCR56V--UakKRHa.js → chunk-LITCR56V-CElM9plZ.js} +1 -1
- package/storybook-static/assets/{contextMenu-DRYHg4YV.js → contextMenu-BQKOQzU1.js} +1 -1
- package/storybook-static/assets/{error-s5vKL37a.js → error-SC0Oqs6M.js} +1 -1
- package/storybook-static/assets/{flex-4NGrP0a9.js → flex-BOqV4dzk.js} +1 -1
- package/storybook-static/assets/floating-ui.react-CiEPwtuP.js +1 -0
- package/storybook-static/assets/formatter-L2YTDE3Q-DfQ24eKP.js +1 -0
- package/storybook-static/assets/{formatters-D4nD5Nic.js → formatters-C29y1vJ_.js} +1 -1
- package/storybook-static/assets/grid-DNJaN2X3.js +1 -0
- package/storybook-static/assets/hooks-4Gvtb540.js +5 -0
- package/storybook-static/assets/{iframe-BxBCFrOJ.js → iframe-Cqdlb8-A.js} +3 -3
- package/storybook-static/assets/{input-CjJ-AgIT.js → input-BcaISJRy.js} +1 -1
- package/storybook-static/assets/{lucide-react-BmnaUuit.js → lucide-react-BdqrDz6_.js} +1 -1
- package/storybook-static/assets/{mdx-react-shim-BEzdmfRR.js → mdx-react-shim-Rn_bm6Wj.js} +1 -1
- package/storybook-static/assets/{media-NSeJNB4V.js → media-dmdQkM5d.js} +1 -1
- package/storybook-static/assets/{misc-_2j1xxm-.js → misc-C1Uf9TI0.js} +1 -1
- package/storybook-static/assets/{notifications-Bb4NwpnZ.js → notifications-Br3lffDl.js} +1 -1
- package/storybook-static/assets/{odata-DkCpE6Ui.js → odata-BT-Vuah1.js} +1 -1
- package/storybook-static/assets/odata-service-QOs47Qvv.js +1 -0
- package/storybook-static/assets/{odataStoryFixtures-h0MkHLcZ.js → odataStoryFixtures-CEQgZ8Ju.js} +1 -1
- package/storybook-static/assets/{picker-BmTTr59E.css → picker-DzBkX15M.css} +1 -1
- package/storybook-static/assets/picker-eODRzsH5.js +2 -0
- package/storybook-static/assets/{popover-DBec4vEA.js → popover-Cf-d9CBe.js} +2 -2
- package/storybook-static/assets/{preset-select-CaY8SOYT.js → preset-select-Divqvyhr.js} +1 -1
- package/storybook-static/assets/{react-18-DPMOLLe1.js → react-18-C8ZBY1Ky.js} +1 -1
- package/storybook-static/assets/{react-dom-BKRiX1TT.js → react-dom-DEo6Vc1z.js} +1 -1
- package/storybook-static/assets/{react-0gkFNWVQ.js → react-oW-8yUPs.js} +1 -1
- package/storybook-static/assets/select-B2Yo9S2f.js +1 -0
- package/storybook-static/assets/{slider-BqG2yvL2.js → slider-BgZTddiR.js} +1 -1
- package/storybook-static/assets/{sortable-Viqf8wuB.js → sortable-BZttsbB-.js} +1 -1
- package/storybook-static/assets/{syntaxhighlighter-RTCFPKCB-DuzwRVHO.js → syntaxhighlighter-RTCFPKCB-DHMad3_O.js} +1 -1
- package/storybook-static/assets/{text-B62c97-X.js → text-DX5yXvyz.js} +1 -1
- package/storybook-static/assets/{theming-CG2b7751.js → theming-x5D2-3Wh.js} +1 -1
- package/storybook-static/assets/ui-CuulZK-0.js +1 -0
- package/storybook-static/assets/{useODataSelectBase-J0YKxol4.js → useODataSelectBase-ByD_yhA4.js} +1 -1
- package/storybook-static/assets/{useODataTreeData-wlNQaI0p.js → useODataTreeData-C-pt6PNC.js} +1 -1
- package/storybook-static/assets/{utils-CMnxoKbT.js → utils-238J8rpj.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/chunks/check-box-BowNqqd3.js +0 -48
- package/dist/chunks/check-box-BowNqqd3.js.map +0 -1
- package/dist/chunks/multi-select-BCpRct-k.js.map +0 -1
- package/dist/chunks/picker-DTZk09Ag.js.map +0 -1
- package/dist/multi-select/ui/MultiSelectOptionsToolbar.d.ts +0 -8
- package/dist/multi-select/ui/MultiSelectOptionsToolbar.d.ts.map +0 -1
- package/storybook-static/assets/CheckBox-m8RUUjvq.js +0 -2
- package/storybook-static/assets/CheckBox.module-Hr3mvdAC.js +0 -1
- package/storybook-static/assets/MultiSelect-BUWlGDnx.js +0 -2
- package/storybook-static/assets/ODataTreeMultiSelect.stories-Be4AaF8U.js +0 -24
- package/storybook-static/assets/TreeMultiSelect-Cm8XLcaB.js +0 -1
- package/storybook-static/assets/TreeMultiSelect.stories-DKd_qDqk.js +0 -14
- package/storybook-static/assets/TreePickerBase-qreyVjhY.css +0 -1
- package/storybook-static/assets/TreePickerBase-xFkOCgy0.js +0 -19
- package/storybook-static/assets/TreeSelect-C0Oxcp_s.js +0 -1
- package/storybook-static/assets/base-table-XPKfaZOF.js +0 -18
- package/storybook-static/assets/floating-ui.react-DV6_xxif.js +0 -1
- package/storybook-static/assets/formatter-L2YTDE3Q-BC5xVOel.js +0 -1
- package/storybook-static/assets/grid-DZrPQELi.js +0 -1
- package/storybook-static/assets/hooks-hqscBU_x.js +0 -5
- package/storybook-static/assets/odata-service-BO_9B-Az.js +0 -1
- package/storybook-static/assets/picker-CxN205s6.js +0 -1
- package/storybook-static/assets/select-C23Vd0JX.js +0 -1
- package/storybook-static/assets/ui-CAk1ISqX.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./theming-
|
|
2
|
-
import{a as e,c as t,i as n,n as r,r as i,t as a}from"./preload-helper-B45gAKPr.js";import{C as o,S as s,_ as c,a as l,b as u,c as d,d as f,g as p,h as m,i as h,m as g,o as _,p as v,s as y,u as b,v as x,x as S,y as C}from"./iframe-BxBCFrOJ.js";import{C as w,S as T,_ as E,a as D,b as O,c as k,d as A,f as j,g as M,h as ee,i as te,l as N,m as ne,n as re,o as ie,p as ae,r as oe,s as se,t as ce,v as le,w as ue,x as de,y as fe}from"./theming-CG2b7751.js";import{i as pe,n as me,r as he,t as ge}from"./chunk-3LY4VQVK-CNZt5fIP.js";import{t as _e}from"./react-dom-BKRiX1TT.js";import{t as ve}from"./jsx-runtime-BBQGix-2.js";import{a as ye,o as be,r as xe,t as Se}from"./chunk-LITCR56V--UakKRHa.js";import{n as Ce,t as we}from"./chunk-242VQQM5-Dtm7LRbQ.js";function Te(e){let t=De.useContext(ke);return De.useMemo(function(){return typeof e==`function`?e(t):{...t,...e}},[t,e])}function Ee(e){let t;return t=e.disableParentContext?typeof e.components==`function`?e.components(Oe):e.components||Oe:Te(e.components),De.createElement(ke.Provider,{value:t},e.children)}var De,Oe,ke,Ae=n((()=>{De=t(o(),1),Oe={},ke=De.createContext(Oe)})),je=e({MDXProvider:()=>Ee}),Me=n((()=>{Ae()})),Ne,Pe,Fe=n((()=>{Ne=(e,t)=>{let n=e.replace(/\s+/g,`-`);return t?`control-${t}-${n}`:`control-${n}`},Pe=(e,t)=>{let n=e.replace(/\s+/g,`-`);return t?`set-${t}-${n}`:`set-${n}`}}));function Ie(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var Le=n((()=>{})),P,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct=n((()=>{P=t(o(),1),Re=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z`,fill:e}))),ze=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z`,fill:e}))),Be=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z`,fill:e}))),Ve=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z`,fill:e}))),He=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z`,fill:e}))),Ue=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z`,fill:e}))),We=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z`,fill:e}))),Ge=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z`,fill:e}))),Ke=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z`,fill:e}))),qe=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`,fill:e}))),Je=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z`,fill:e}))),Ye=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`,fill:e}))),Xe=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z`,fill:e}))),Ze=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z`,fill:e}),P.createElement(`path`,{d:`M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z`,fill:e}))),Qe=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z`,fill:e}),P.createElement(`path`,{d:`M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z`,fill:e}))),$e=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z`,fill:e}))),et=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z`,fill:e}))),tt=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z`,fill:e}))),nt=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z`,fill:e}))),rt=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z`,fill:e}))),it=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z`,fill:e}))),at=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z`,fill:e}))),ot=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z`,fill:e}))),st=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z`,fill:e})))}));function lt(e){let t=gn.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of _n.filter(t=>e[t]!==void 0))t[n]=e[n];return t}function ut(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}function dt(e){var t=fr.call(e,mr),n=e[mr];try{e[mr]=void 0;var r=!0}catch{}var i=pr.call(e);return r&&(t?e[mr]=n:delete e[mr]),i}function ft(e){return gr.call(e)}function pt(e){return e==null?e===void 0?yr:vr:br&&br in Object(e)?hr(e):_r(e)}function mt(e){return typeof e==`object`&&!!e}function ht(e){return typeof e==`symbol`||Sr(e)&&xr(e)==Cr}function gt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function _t(e){if(typeof e==`string`)return e;if(Er(e))return Tr(e,_t)+``;if(wr(e))return kr?kr.call(e):``;var t=e+``;return t==`0`&&1/e==-Dr?`-0`:t}function vt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function yt(e){if(!jr(e))return!1;var t=xr(e);return t==Nr||t==Pr||t==Mr||t==Fr}function bt(e){return!!Rr&&Rr in e}function xt(e){if(e!=null){try{return Br.call(e)}catch{}try{return e+``}catch{}}return``}function St(e){return!jr(e)||zr(e)?!1:(Ir(e)?Jr:Ur).test(Vr(e))}function Ct(e,t){return e?.[t]}function wt(e,t){var n=Xr(e,t);return Yr(n)?n:void 0}function Tt(e,t){return e===t||e!==e&&t!==t}function Et(e,t){if(Er(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||wr(e)?!0:ei.test(e)||!$r.test(e)||t!=null&&e in Object(t)}function Dt(){this.__data__=ni?ni(null):{},this.size=0}function Ot(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function kt(e){var t=this.__data__;if(ni){var n=t[e];return n===ai?void 0:n}return oi.call(t,e)?t[e]:void 0}function At(e){var t=this.__data__;return ni?t[e]!==void 0:ci.call(t,e)}function jt(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=ni&&t===void 0?ui:t,this}function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nt(){this.__data__=[],this.size=0}function Pt(e,t){for(var n=e.length;n--;)if(Qr(e[n][0],t))return n;return-1}function Ft(e){var t=this.__data__,n=mi(t,e);return n<0?!1:(n==t.length-1?t.pop():hi.call(t,n,1),--this.size,!0)}function It(e){var t=this.__data__,n=mi(t,e);return n<0?void 0:t[n][1]}function Lt(e){return mi(this.__data__,e)>-1}function Rt(e,t){var n=this.__data__,r=mi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function zt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Bt(){this.size=0,this.__data__={hash:new fi,map:new(xi||bi),string:new fi}}function Vt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ht(e,t){var n=e.__data__;return Ci(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ut(e){var t=wi(this,e).delete(e);return this.size-=+!!t,t}function Wt(e){return wi(this,e).get(e)}function Gt(e){return wi(this,e).has(e)}function Kt(e,t){var n=wi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function qt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jt(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Ai);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Jt.Cache||ki),n}function Yt(e){var t=ji(e,function(e){return n.size===Mi&&n.clear(),e}),n=t.cache;return t}function Xt(e){return e==null?``:Ar(e)}function Zt(e,t){return Er(e)?e:ti(e,t)?[e]:Ii(Li(e))}function Qt(e){if(typeof e==`string`||wr(e))return e;var t=e+``;return t==`0`&&1/e==-zi?`-0`:t}function $t(e,t){t=Ri(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Bi(t[n++])];return n&&n==r?e:void 0}function en(e,t,n){var r=e==null?void 0:Vi(e,t);return r===void 0?n:r}function tn(e){if(!Ui(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=lt(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,F,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi=n((()=>{me(),nn=new Map,rn=`UNIVERSAL_STORE:`,an={PENDING:`PENDING`,RESOLVED:`RESOLVED`,REJECTED:`REJECTED`},on=class e{constructor(t,n){if(this.debugging=!1,this.listeners=new Map([[`*`,new Set]]),this.getState=()=>(this.debug(`getState`,{state:this.state}),this.state),this.subscribe=(e,t)=>{let n=typeof e==`function`,r=n?`*`:e,i=n?e:t;if(this.debug(`subscribe`,{eventType:r,listener:i}),!i)throw TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(r)||this.listeners.set(r,new Set),this.listeners.get(r).add(i),()=>{this.debug(`unsubscribe`,{eventType:r,listener:i}),this.listeners.has(r)&&(this.listeners.get(r).delete(i),this.listeners.get(r)?.size===0&&this.listeners.delete(r))}},this.send=t=>{if(this.debug(`send`,{event:t}),this.status!==e.Status.READY)throw TypeError(ge`Cannot send event before store is ready. You can get the current status with store.status,
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./theming-x5D2-3Wh.js","./preload-helper-B45gAKPr.js","./iframe-Cqdlb8-A.js","./chunk-3LY4VQVK-D0GJRVS7.js","./syntaxhighlighter-RTCFPKCB-DHMad3_O.js","./chunk-LITCR56V-CElM9plZ.js","./react-dom-DEo6Vc1z.js","./jsx-runtime-BBQGix-2.js","./chunk-242VQQM5-Dtm7LRbQ.js","./formatter-L2YTDE3Q-DfQ24eKP.js","./WithTooltip-7X4HQR7L-LW5ygQJA.js","./Color-KMSTOMOX-3kWYdPbk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,c as t,i as n,n as r,r as i,t as a}from"./preload-helper-B45gAKPr.js";import{C as o,S as s,_ as c,a as l,b as u,c as d,d as f,g as p,h as m,i as h,m as g,o as _,p as v,s as y,u as b,v as x,x as S,y as C}from"./iframe-Cqdlb8-A.js";import{C as w,S as T,_ as E,a as D,b as O,c as k,d as A,f as j,g as M,h as ee,i as te,l as N,m as ne,n as re,o as ie,p as ae,r as oe,s as se,t as ce,v as le,w as ue,x as de,y as fe}from"./theming-x5D2-3Wh.js";import{i as pe,n as me,r as he,t as ge}from"./chunk-3LY4VQVK-D0GJRVS7.js";import{t as _e}from"./react-dom-DEo6Vc1z.js";import{t as ve}from"./jsx-runtime-BBQGix-2.js";import{a as ye,o as be,r as xe,t as Se}from"./chunk-LITCR56V-CElM9plZ.js";import{n as Ce,t as we}from"./chunk-242VQQM5-Dtm7LRbQ.js";function Te(e){let t=De.useContext(ke);return De.useMemo(function(){return typeof e==`function`?e(t):{...t,...e}},[t,e])}function Ee(e){let t;return t=e.disableParentContext?typeof e.components==`function`?e.components(Oe):e.components||Oe:Te(e.components),De.createElement(ke.Provider,{value:t},e.children)}var De,Oe,ke,Ae=n((()=>{De=t(o(),1),Oe={},ke=De.createContext(Oe)})),je=e({MDXProvider:()=>Ee}),Me=n((()=>{Ae()})),Ne,Pe,Fe=n((()=>{Ne=(e,t)=>{let n=e.replace(/\s+/g,`-`);return t?`control-${t}-${n}`:`control-${n}`},Pe=(e,t)=>{let n=e.replace(/\s+/g,`-`);return t?`set-${t}-${n}`:`set-${n}`}}));function Ie(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var Le=n((()=>{})),P,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct=n((()=>{P=t(o(),1),Re=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z`,fill:e}))),ze=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z`,fill:e}))),Be=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z`,fill:e}))),Ve=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z`,fill:e}))),He=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z`,fill:e}))),Ue=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z`,fill:e}))),We=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z`,fill:e}))),Ge=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z`,fill:e}))),Ke=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z`,fill:e}))),qe=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`,fill:e}))),Je=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z`,fill:e}))),Ye=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z`,fill:e}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`,fill:e}))),Xe=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z`,fill:e}))),Ze=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z`,fill:e}),P.createElement(`path`,{d:`M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z`,fill:e}))),Qe=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z`,fill:e}),P.createElement(`path`,{d:`M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z`,fill:e}))),$e=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z`,fill:e}))),et=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z`,fill:e}))),tt=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z`,fill:e}))),nt=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z`,fill:e}))),rt=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z`,fill:e}))),it=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z`,fill:e}))),at=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z`,fill:e}))),ot=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z`,fill:e}))),st=P.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>P.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},P.createElement(`path`,{d:`M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z`,fill:e})))}));function lt(e){let t=gn.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of _n.filter(t=>e[t]!==void 0))t[n]=e[n];return t}function ut(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}function dt(e){var t=fr.call(e,mr),n=e[mr];try{e[mr]=void 0;var r=!0}catch{}var i=pr.call(e);return r&&(t?e[mr]=n:delete e[mr]),i}function ft(e){return gr.call(e)}function pt(e){return e==null?e===void 0?yr:vr:br&&br in Object(e)?hr(e):_r(e)}function mt(e){return typeof e==`object`&&!!e}function ht(e){return typeof e==`symbol`||Sr(e)&&xr(e)==Cr}function gt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function _t(e){if(typeof e==`string`)return e;if(Er(e))return Tr(e,_t)+``;if(wr(e))return kr?kr.call(e):``;var t=e+``;return t==`0`&&1/e==-Dr?`-0`:t}function vt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function yt(e){if(!jr(e))return!1;var t=xr(e);return t==Nr||t==Pr||t==Mr||t==Fr}function bt(e){return!!Rr&&Rr in e}function xt(e){if(e!=null){try{return Br.call(e)}catch{}try{return e+``}catch{}}return``}function St(e){return!jr(e)||zr(e)?!1:(Ir(e)?Jr:Ur).test(Vr(e))}function Ct(e,t){return e?.[t]}function wt(e,t){var n=Xr(e,t);return Yr(n)?n:void 0}function Tt(e,t){return e===t||e!==e&&t!==t}function Et(e,t){if(Er(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||wr(e)?!0:ei.test(e)||!$r.test(e)||t!=null&&e in Object(t)}function Dt(){this.__data__=ni?ni(null):{},this.size=0}function Ot(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function kt(e){var t=this.__data__;if(ni){var n=t[e];return n===ai?void 0:n}return oi.call(t,e)?t[e]:void 0}function At(e){var t=this.__data__;return ni?t[e]!==void 0:ci.call(t,e)}function jt(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=ni&&t===void 0?ui:t,this}function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nt(){this.__data__=[],this.size=0}function Pt(e,t){for(var n=e.length;n--;)if(Qr(e[n][0],t))return n;return-1}function Ft(e){var t=this.__data__,n=mi(t,e);return n<0?!1:(n==t.length-1?t.pop():hi.call(t,n,1),--this.size,!0)}function It(e){var t=this.__data__,n=mi(t,e);return n<0?void 0:t[n][1]}function Lt(e){return mi(this.__data__,e)>-1}function Rt(e,t){var n=this.__data__,r=mi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function zt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Bt(){this.size=0,this.__data__={hash:new fi,map:new(xi||bi),string:new fi}}function Vt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ht(e,t){var n=e.__data__;return Ci(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ut(e){var t=wi(this,e).delete(e);return this.size-=+!!t,t}function Wt(e){return wi(this,e).get(e)}function Gt(e){return wi(this,e).has(e)}function Kt(e,t){var n=wi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function qt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jt(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Ai);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Jt.Cache||ki),n}function Yt(e){var t=ji(e,function(e){return n.size===Mi&&n.clear(),e}),n=t.cache;return t}function Xt(e){return e==null?``:Ar(e)}function Zt(e,t){return Er(e)?e:ti(e,t)?[e]:Ii(Li(e))}function Qt(e){if(typeof e==`string`||wr(e))return e;var t=e+``;return t==`0`&&1/e==-zi?`-0`:t}function $t(e,t){t=Ri(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Bi(t[n++])];return n&&n==r?e:void 0}function en(e,t,n){var r=e==null?void 0:Vi(e,t);return r===void 0?n:r}function tn(e){if(!Ui(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=lt(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,F,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi=n((()=>{me(),nn=new Map,rn=`UNIVERSAL_STORE:`,an={PENDING:`PENDING`,RESOLVED:`RESOLVED`,REJECTED:`REJECTED`},on=class e{constructor(t,n){if(this.debugging=!1,this.listeners=new Map([[`*`,new Set]]),this.getState=()=>(this.debug(`getState`,{state:this.state}),this.state),this.subscribe=(e,t)=>{let n=typeof e==`function`,r=n?`*`:e,i=n?e:t;if(this.debug(`subscribe`,{eventType:r,listener:i}),!i)throw TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(r)||this.listeners.set(r,new Set),this.listeners.get(r).add(i),()=>{this.debug(`unsubscribe`,{eventType:r,listener:i}),this.listeners.has(r)&&(this.listeners.get(r).delete(i),this.listeners.get(r)?.size===0&&this.listeners.delete(r))}},this.send=t=>{if(this.debug(`send`,{event:t}),this.status!==e.Status.READY)throw TypeError(ge`Cannot send event before store is ready. You can get the current status with store.status,
|
|
3
3
|
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
4
4
|
${JSON.stringify({event:t,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(t,{actor:this.actor}),this.emitToChannel(t,{actor:this.actor})},this.debugging=t.debug??!1,!e.isInternalConstructing)throw TypeError(`UniversalStore is not constructable - use UniversalStore.create() instead`);if(e.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?e.ActorType.LEADER:e.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${rn}${this.id}`,this.debug(`constructor`,{options:t,environmentOverrides:n,channelEventName:this.channelEventName}),this.actor.type===e.ActorType.LEADER)this.syncing={state:an.RESOLVED,promise:Promise.resolve()};else{let e,t,n=new Promise((n,r)=>{e=()=>{this.syncing.state===an.PENDING&&(this.syncing.state=an.RESOLVED,n())},t=e=>{this.syncing.state===an.PENDING&&(this.syncing.state=an.REJECTED,r(e))}});this.syncing={state:an.PENDING,promise:n,resolve:e,reject:t}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=n?.channel??e.preparation.channel,this.environment=n?.environment??e.preparation.environment,this.channel&&this.environment?(e.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):e.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,n,r=new Promise((e,r)=>{t=t=>{e(t)},n=(...e)=>{r(e)}});e.preparation={resolve:t,reject:n,promise:r}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??e.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return e.Status.UNPREPARED;switch(this.syncing?.state){case an.PENDING:case void 0:return e.Status.SYNCING;case an.REJECTED:return e.Status.ERROR;case an.RESOLVED:default:return e.Status.READY}}untilReady(){return Promise.all([e.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!=`string`)throw TypeError(`id is required and must be a string, when creating a UniversalStore`);t.debug&&console.debug(ge`[UniversalStore]
|
|
5
5
|
create`,{options:t});let n=nn.get(t.id);if(n)return console.warn(ge`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
@@ -182,7 +182,7 @@ Inner error message: ${r?.message}`))}}var ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,S
|
|
|
182
182
|
it's possible a CORS error happened.
|
|
183
183
|
|
|
184
184
|
Please check your dev-tools network tab.
|
|
185
|
-
`});let m=e.versions&&Object.keys(e.versions).length?e.versions:s.versions;await a.setRef(t,{id:t,url:u.url,...s,...m?{versions:m}:{},type:s.storyIndex?`lazy`:`auto-inject`})},getRefs:()=>{let{refs:t={}}=e.getState();return t},setRef:async(i,{storyIndex:o,setStoriesData:s,...c},l=!1)=>{if(n)return;let u,d,f,{filters:p}=e.getState(),{storyMapper:m=o_}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?Yg(l_(s,h,{storyMapper:m})):o,f=$g(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=$g(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=s_(d,h),f&&=s_(f,h),await a.updateRef(i,{...h,...c,index:d,filteredIndex:f,internal_index:u})},updateRef:async(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,...n};let o=Object.keys(s).reduce((e,t)=>(e[t]=i[t],e),{});await e.setState({refs:o})}},o=!n&&Wg.REFS||{},s=o;return i&&new Promise(async e=>{for(let e of Object.values(o))await a.checkRef({...e,stories:{}});e(void 0)}),{api:a,state:{refs:s}}},d_=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=a_(n,r),s;(r||a===`external`)&&(s=r&&t.getRefs()[r]?t.getRefs()[r]:t.findRef(o));let c={source:n,sourceType:a,sourceLocation:o,refId:r,ref:s,type:i};switch(!0){case typeof r==`string`:case a===`local`:case a===`external`:return c;default:return Hg.warn(`Received a ${i} frame that was not configured as a ref`),null}},f_=({store:e,fullAPI:t,provider:n})=>{let r={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(e){n.channel?.emit(Vg,{globals:e,options:{target:`storybook-preview-iframe`}})}},i={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:t,storyGlobals:n,userGlobals:r})=>{let{globals:i,userGlobals:a,storyGlobals:o}=e.getState();Sa(t,i)||e.setState({globals:t}),Sa(r,a)||e.setState({userGlobals:r}),Sa(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(zg,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=d_(this,t);i?Rg.warn(`received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.`):a({globals:e,storyGlobals:n,userGlobals:r})}),n.channel?.on(Bg,function({globals:n,globalTypes:i}){let{ref:a}=d_(this,t),o=e.getState()?.userGlobals;a?Object.keys(n).length>0&&Rg.warn(`received globals from a non-local ref. This is not currently supported.`):e.setState({globals:n,userGlobals:n,globalTypes:i}),o&&Object.keys(o).length!==0&&!Sa(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},p_={},f(p_,{ActiveTabs:()=>v_,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>b_,DEFAULT_NAV_SIZE:()=>y_,DEFAULT_RIGHT_PANEL_WIDTH:()=>x_,focusableUIElements:()=>C_,getDefaultLayoutState:()=>S_,init:()=>O_}),{SET_CONFIG:m_}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:h_}=__STORYBOOK_MODULE_GLOBAL__,{document:g_}=h_,__=e=>typeof e==`function`,v_={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},y_=300,b_=300,x_=400,S_=()=>({ui:{enableShortcuts:!0},layout:{initialActive:v_.CANVAS,showToolbar:!0,navSize:y_,bottomPanelHeight:b_,rightPanelWidth:x_,recentVisibleSizes:{navSize:y_,bottomPanelHeight:b_,rightPanelWidth:x_},panelPosition:`bottom`,showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:ae()}),C_={addonPanel:`storybook-panel-region`,storySearchField:`storybook-explorer-searchfield`,storyListMenu:`storybook-explorer-menu`,storyPanelRoot:`storybook-panel-root`,showAddonPanel:`storybook-show-addon-panel`,sidebarRegion:`storybook-sidebar-region`,showSidebar:`storybook-show-sidebar`},w_=e=>e.layout.navSize>0,T_=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},E_=e=>!w_(e)&&!T_(e),D_=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),O_=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=E_(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:D_(e.layout)}}:{layout:{...e.layout,navSize:e.singleStory?0:e.layout.recentVisibleSizes.navSize,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`session`})},togglePanel(t){return e.setState(e=>{let n=T_(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...e.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:D_(e.layout)}}},{persistence:`session`})},togglePanelPosition(t){return e.setState(e=>{let n=t||(e.layout.panelPosition===`right`?`bottom`:`right`);return{layout:{...e.layout,panelPosition:n,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`permanent`})},toggleNav(t){return e.setState(e=>{if(e.singleStory)return{layout:e.layout};let n=w_(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:e.layout.recentVisibleSizes.navSize}}:{layout:{...e.layout,navSize:0,recentVisibleSizes:D_(e.layout)}}},{persistence:`session`})},toggleToolbar(t){return e.setState(e=>{let n=typeof t<`u`?t:!e.layout.showToolbar;return{layout:{...e.layout,showToolbar:n}}},{persistence:`session`})},setSizes({navSize:t,bottomPanelHeight:n,rightPanelWidth:r}){return e.setState(e=>{let i={...e.layout,navSize:t??e.layout.navSize,bottomPanelHeight:n??e.layout.bottomPanelHeight,rightPanelWidth:r??e.layout.rightPanelWidth};return{layout:{...i,recentVisibleSizes:D_(i)}}},{persistence:`session`})},focusOnUIElement(e,t){let{forceFocus:n=!1,select:r=!1,poll:i=!0}=typeof t==`boolean`?{select:t}:t??{};if(!e)return!1;let a=()=>{let t=g_.getElementById(e);return!t||(t.focus(),t!==g_.activeElement&&n&&t.getAttribute(`tabindex`)===null&&(t.setAttribute(`tabindex`,`-1`),t.focus()),t!==g_.activeElement&&t.id!==g_.activeElement?.id)?!1:(r&&t.select?.(),!0)};return a()?!0:i?new Promise(e=>{let t=Date.now(),n=setInterval(()=>{let r=Date.now()-t;if(a()){clearInterval(n),e(!0);return}r>=500&&(clearInterval(n),e(!1))},50)}):!1},getInitialOptions(){let{theme:e,selectedPanel:r,layoutCustomisations:i,...a}=t.getConfig(),o=S_();return{...o,layout:{...u(o.layout,C(a,Object.keys(o.layout))),...n&&{navSize:0}},layoutCustomisations:{...o.layoutCustomisations,...i??{}},ui:u(o.ui,C(a,Object.keys(o.ui))),selectedPanel:r||o.selectedPanel,theme:e||o.theme}},getIsFullscreen(){return E_(e.getState())},getIsPanelShown(){return T_(e.getState())},getIsNavShown(){return w_(e.getState())},getShowToolbarWithCustomisations(t){let n=e.getState();return __(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return __(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(__(n.layoutCustomisations.showSidebar)){let e=n.layoutCustomisations.showSidebar(n,t!==0);if(t===0&&e===!0)return n.layout.recentVisibleSizes.navSize;if(t!==0&&e===!1)return 0}return t},setOptions:t=>{let{layout:r,ui:i,selectedPanel:a,theme:o}=e.getState();if(!t)return;let s={...r,...t.layout||{},...C(t,Object.keys(r)),...n&&{navSize:0}},c={...i,...t.ui,...u(t.ui||{},C(t,Object.keys(i)))},l={...o,...t.theme},d={};_(i,c)||(d.ui=c),_(r,s)||(d.layout=s),t.selectedPanel&&!_(a,t.selectedPanel)&&(d.selectedPanel=t.selectedPanel),Object.keys(d).length&&e.setState(d,{persistence:`permanent`}),_(o,l)||e.setState({theme:l})}},i=C(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(m_,()=>{r.setOptions(bg(r.getInitialOptions(),i))}),{api:r,state:bg(r.getInitialOptions(),i)}},k_={},f(k_,{init:()=>A_}),A_=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Ca(e,e=>e.id===t.id);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:[...r,t]}})},clearNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Ca(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),j_={},f(j_,{init:()=>P_}),{OPEN_IN_EDITOR_REQUEST:M_,OPEN_IN_EDITOR_RESPONSE:N_}=__STORYBOOK_MODULE_CORE_EVENTS__,P_=({provider:e,fullAPI:t})=>({api:{openInEditor(t){return new Promise(n=>{let{file:r,line:i,column:a}=t,o=t=>{t.file===r&&t.line===i&&t.column===a&&(e.channel?.off(N_,o),n(t))};e.channel?.on(N_,o),e.channel?.emit(M_,t)})}},state:{notifications:[]},init:async()=>{let{color:n}=await a(async()=>{let{color:e}=await import(`./theming-CG2b7751.js`).then(e=>(e.a(),e.u));return{color:e}},__vite__mapDeps([0,1,2,3]),import.meta.url);e.channel?.on(N_,e=>{e.error!==null&&t.addNotification({id:`open-in-editor-error`,content:{headline:`Failed to open in editor`,subHeadline:e.error||`Check the Storybook process on the command line for more details.`},icon:ag.createElement(Xe,{color:n.negative}),duration:8e3})})}}),F_={},f(F_,{init:()=>I_}),I_=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),L_={},f(L_,{init:()=>R_}),R_=({store:e,navigate:t,fullAPI:n})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:t}}=e.getState();t?n.selectStory(t):n.selectFirstStory()},changeSettingsTab:e=>{t(`/settings/${e}`)},isSettingsScreenActive:()=>{let{path:e}=n.getUrlState();return!!(e||``).match(/^\/settings/)},retrieveSelection(){let{settings:t}=e.getState();return t.lastTrackedStoryId},storeSelection:async()=>{let{storyId:t,settings:n}=e.getState();await e.setState({settings:{...n,lastTrackedStoryId:t}})}}}),z_={},f(z_,{controlOrMetaKey:()=>iv,defaultShortcuts:()=>av,init:()=>sv,isMacLike:()=>rv,keys:()=>Yh}),B_=v(ug(),1),{FORCE_REMOUNT:V_,PREVIEW_KEYDOWN:H_,STORIES_COLLAPSE_ALL:U_,STORIES_EXPAND_ALL:W_}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:G_}=__STORYBOOK_MODULE_GLOBAL__,{global:K_}=__STORYBOOK_MODULE_GLOBAL__,{navigator:q_}=K_,J_=()=>q_&&q_.platform?!!q_.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Y_=()=>J_()?`⌥`:`alt`,X_=e=>{if([`Meta`,`Alt`,`Control`,`Shift`,`Tab`].includes(e.key))return null;let t=[];e.altKey&&t.push(`alt`),e.ctrlKey&&t.push(`control`),e.metaKey&&t.push(`meta`),e.shiftKey&&t.push(`shift`);let n=e.code?.toUpperCase(),r=n?n.startsWith(`KEY`)&&n.length===4?n.replace(`KEY`,``):n.startsWith(`DIGIT`)?n.replace(`DIGIT`,``):{MINUS:`-`,EQUAL:`=`,BRACKETLEFT:`[`,BRACKETRIGHT:`]`,BACKSLASH:`\\`,SEMICOLON:`;`,QUOTE:`'`,BACKQUOTE:"`",COMMA:`,`,PERIOD:`.`,SLASH:`/`}[n]:void 0;if(e.key&&e.key.length===1&&e.key!==` `){let n=e.key.toUpperCase(),i=r;i&&i.length===1&&i!==n?t.push([n,i]):t.push(n)}else e.key===`Dead`&&r&&t.push(r);return e.key===` `&&t.push(`space`),e.key===`Escape`&&t.push(`escape`),e.key===`ArrowRight`&&t.push(`ArrowRight`),e.key===`ArrowDown`&&t.push(`ArrowDown`),e.key===`ArrowUp`&&t.push(`ArrowUp`),e.key===`ArrowLeft`&&t.push(`ArrowLeft`),t.length>0?t:null},Z_=(e,t)=>!e||!t||(e.join(``).startsWith(`shift/`)&&e.shift(),e.length!==t.length)?!1:!e.find((e,n)=>Array.isArray(e)?!e.includes(t[n]):e!==t[n]),Q_=e=>e===`alt`?Y_():e===`control`?`⌃`:e===`meta`?`⌘`:e===`shift`?`⇧`:e===`Enter`||e===`Backspace`||e===`Esc`||e===`escape`?``:e===` `?`SPACE`:e===`ArrowUp`?`↑`:e===`ArrowDown`?`↓`:e===`ArrowLeft`?`←`:e===`ArrowRight`?`→`:e?.toUpperCase(),$_=e=>e.map(Q_).join(` `),ev=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:tv,document:nv}=G_,rv=()=>tv&&tv.platform?!!tv.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,iv=()=>rv()?`meta`:`control`,av=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[iv(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[iv(),`shift`,`,`],aboutPage:[iv(),`,`],escape:[`escape`],collapseAll:[iv(),`shift`,`ArrowUp`],expandAll:[iv(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),ov={},sv=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...av,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return ov},getAddonsShortcutLabels(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{label:n}])=>{e[t]=n}),e},getAddonsShortcutDefaults(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{defaultShortcut:n}])=>{e[t]=n}),e},async setShortcuts(t){let{shortcuts:n}=await e.setState(e=>({shortcuts:typeof t==`function`?t(e.shortcuts):t}),{persistence:`permanent`});return n},async restoreAllDefaultShortcuts(){return r.setShortcuts(r.getDefaultShortcuts())},async setShortcut(e,t){return await r.setShortcuts(n=>({...n,[e]:t})),t},async setAddonShortcut(e,t){return await r.setShortcuts(n=>({...n,[`${e}-${t.actionName}`]:t.defaultShortcut})),ov[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=X_(e),n=r.getShortcutKeys(),i=Yh(n).find(e=>Z_(t,n[e]));i&&r.handleShortcutFeature(i,e)},handleShortcutFeature(n,r){let{ui:{enableShortcuts:i},storyId:a,refId:o,viewMode:s}=e.getState();if(i)switch(r?.preventDefault&&r.preventDefault(),n){case`escape`:t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break;case`goToNextLandmark`:case`goToPreviousLandmark`:break;case`focusNav`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(C_.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(C_.storySearchField,!0)},0);break;case`focusIframe`:{let e=nv.getElementById(`storybook-preview-iframe`);if(e)try{e.contentWindow.focus()}catch{}break}case`focusPanel`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(C_.storyPanelRoot);break;case`nextStory`:t.jumpToStory(1);break;case`prevStory`:t.jumpToStory(-1);break;case`nextComponent`:t.jumpToComponent(1);break;case`prevComponent`:t.jumpToComponent(-1);break;case`fullScreen`:t.toggleFullscreen();break;case`togglePanel`:{let e=t.getIsPanelShown(),n=nv.getElementById(C_.addonPanel);t.togglePanel(),e&&Jh(n)&&t.focusOnUIElement(C_.showAddonPanel,{poll:!0}).then(e=>{e===!1&&nv.body.focus()}),e||t.focusOnUIElement(C_.addonPanel,{forceFocus:!0,poll:!0});break}case`toggleNav`:{let e=t.getIsNavShown(),n=nv.getElementById(C_.sidebarRegion);t.toggleNav(),e&&Jh(n)&&t.focusOnUIElement(C_.showSidebar,{poll:!0}).then(e=>{e===!1&&nv.body.focus()}),e||t.focusOnUIElement(C_.sidebarRegion,{forceFocus:!0,poll:!0});break}case`toolbar`:t.toggleToolbar();break;case`panelPosition`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break;case`aboutPage`:t.navigate(`/settings/about`);break;case`shortcutsPage`:t.navigate(`/settings/shortcuts`);break;case`collapseAll`:t.emit(U_);break;case`expandAll`:t.emit(W_);break;case`remount`:t.emit(V_,{storyId:a});break;case`openInEditor`:G_.CONFIG_TYPE===`DEVELOPMENT`&&t.openInEditor({file:t.getCurrentStoryData().importPath});break;case`openInIsolation`:if(a&&s===`story`){let{previewHref:e}=t.getStoryHrefs(a,{refId:o});window.open(e,`_blank`,`noopener,noreferrer`)}break;case`copyStoryLink`:if(a){let{managerHref:e}=t.getStoryHrefs(a,{refId:o});(0,B_.default)(e)}break;default:ov[n].action();break}}},{shortcuts:i=av}=e.getState();return{api:r,state:{shortcuts:Yh(av).reduce((e,t)=>({...e,[t]:i[t]||av[t]}),av)},init:()=>{nv.addEventListener(`keydown`,e=>{Xh(e)||r.handleKeydownEvent(e)}),n.channel?.on(H_,e=>{r.handleKeydownEvent(e.event)})}}},cv={},f(cv,{init:()=>ty}),{logger:lv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:uv,CURRENT_STORY_WAS_SET:dv,DOCS_PREPARED:fv,PRELOAD_ENTRIES:pv,RESET_STORY_ARGS:mv,SELECT_STORY:hv,SET_CONFIG:gv,SET_CURRENT_STORY:_v,SET_FILTER:vv,SET_INDEX:yv,SET_STORIES:bv,SIDEBAR_FILTER_CHANGED:xv,STORY_ARGS_UPDATED:Sv,STORY_CHANGED:Cv,STORY_INDEX_INVALIDATED:wv,STORY_MISSING:Tv,STORY_PREPARED:Ev,STORY_SPECIFIED:Dv,UPDATE_STORY_ARGS:Ov}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:kv}=__STORYBOOK_MODULE_GLOBAL__,Av=(e,t={})=>[e,...Object.entries(t).filter(([,e])=>e!=null).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),jv=(e,t)=>{let n=og.useRef(t?t(e.getState()):e.getState()),r=og.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e);!_(a,t(i))&&(n.current=a,r())}),[e,t]),i=og.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return _(i,n.current)||(n.current=i),n.current},[e,t]);return[og.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:Mv,getStatusStoreByTypeId:Nv,useStatusStore:Pv,universalStatusStore:Fv}=fa({universalStatusStore:sn.create({...va,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:jv,environment:`manager`}),Iv=(e,t)=>{if(!e)return{included:[],excluded:[]};let n=[],r=[];return e.split(`;`).forEach(e=>{if(!e)return;let i=e.startsWith(`!`),a=t(i?e.slice(1):e);a!=null&&(i?r.push(a):n.push(a))}),{included:n,excluded:r}},Lv=e=>Iv(e,ga),Rv=(e,t)=>{if(!e.length&&!t.length)return;let n=e.map(e=>_a(e)).sort(),r=t.map(e=>`!${_a(e)}`).sort();return[...n,...r].join(`;`)},zv=(e,t)=>n=>{if(!e.length&&!t.length)return!0;let r=(Mv.getAll()??{})[n.id],i=r?Object.values(r).map(e=>e.value):[],a=!e.length||e.some(e=>i.includes(e)),o=!t.length||t.every(e=>!i.includes(e));return a&&o},Bv=v(pe(),1),Vv={$docs:`_docs`,$play:`_play`,$test:`_test`},Hv=e=>Iv(e,e=>Vv[e]??e),Uv=(e,t)=>{if(!e.length&&!t.length)return``;let n=Object.fromEntries(Object.entries(Vv).map(([e,t])=>[t,e])),r=e.map(e=>n[e]??e).sort(),i=t.map(e=>`!${n[e]??e}`).sort();return[...r,...i].join(`;`)},Wv=(0,Bv.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,e])=>e.defaultFilterSelection===`include`).map(([e])=>e),excluded:t.filter(([,e])=>e.defaultFilterSelection===`exclude`).map(([e])=>e)}}),Gv=e=>{let t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r.excludeFromSidebar&&(e[n]=!0),e},{});return e=>{let n=e.tags??[],r=e.type===`docs`&&!n.includes(Da.ATTACHED_MDX)&&!n.includes(Da.UNATTACHED_MDX);return(n.includes(Da.DEV)||r)&&n.filter(e=>t[e]).length===0}},Kv=(e,t)=>{let n=e=>Object.values(e.reduce((e,t)=>(Object.hasOwn(Oa,t)?e[`built-in`].push(Oa[t]):e.user.push(ka(t)),e),{"built-in":[],user:[]})).filter(e=>e.length>0);return r=>{let i=n(e),a=n(t);return(!i.length||i.every(e=>e.some(e=>e(r,!1))))&&(!a.length||a.every(e=>e.every(e=>e(r,!0))))}},{fetch:qv}=kv,Jv=`./index.json`,Yv=`tags-filter`,Xv=`static-filter`,Zv=`status-filter`,Qv=new Set(Object.keys(Oa)),$v=[`enableShortcuts`,`theme`,`showRoots`],ey={tag:{included:`includedTagFilters`,excluded:`excludedTagFilters`},status:{included:`includedStatusFilters`,excluded:`excludedStatusFilters`}},ty=({fullAPI:e,store:t,navigate:n,provider:r,state:{location:i}={},storyId:a,viewMode:o,docsOptions:s={}})=>{let c=(e,r)=>{let{customQueryParams:i}=t.getState();n(Av(e,i??{}),r)},l=e=>t.setState(e,{persistence:`url`,serialize:e=>{let t=Uv(e.includedTagFilters,e.excludedTagFilters),n=Rv(e.includedStatusFilters,e.excludedStatusFilters);return{tags:t??null,statuses:n??null}}}),u=!1,d=async(e,n,r)=>{let{included:i,excluded:a}=ey[e],o=t.getState(),s=new Set(o[i]),c=new Set(o[a]);for(let e of n){let[t,n]=r?[c,s]:[s,c];n.delete(e),t.add(e)}await l({[i]:Array.from(s),[a]:Array.from(c)})},f=async(e,n)=>{let{included:r,excluded:i}=ey[e],a=t.getState(),o=new Set(n);await l({[r]:a[r].filter(e=>!o.has(e)),[i]:a[i].filter(e=>!o.has(e))})},p=(e,n)=>{let i=t.getState(),a=(i.includedTagFilters??[]).filter(e=>Qv.has(e)),o=(i.excludedTagFilters??[]).filter(e=>Qv.has(e)),s=!!globalThis?.FEATURES?.changeDetection,c=s?i.includedStatusFilters??[]:[],l=s?i.excludedStatusFilters??[]:[],u={},d=i.internal_index?Object.values(i.internal_index.entries):[];for(let e of new Set([...a,...o])){let t=Oa[e];u[e]=d.filter(e=>t(e)).length}if(c.length>0||l.length>0){let e=da(Mv.getAll());for(let t of new Set([...c,...l]))e[t]!==void 0&&(u[t]=e[t])}r.channel?.emit(xv,{trigger:e,changed:n,activeTagFilters:{included:a,excluded:o},activeStatusFilters:{included:c,excluded:l},storyCounts:u})},m={storyId:np,getData:(e,t)=>{let n=m.resolveStory(e,t);if(n?.type===`story`||n?.type===`docs`)return n},isPrepared:(e,t)=>{let n=m.getData(e,t);return n?n.type===`story`?n.prepared:!0:!1},resolveStory:(e,n)=>{let{refs:r,index:i}=t.getState();if(!(n&&!r[n]))return n?r?.[n]?.index?.[e]??void 0:i?i[e]:void 0},getCurrentStoryData:()=>{let{storyId:e,refId:n}=t.getState();return m.getData(e,n)},getIndex:()=>{let{internal_index:e}=t.getState();return e},getParameters:(e,t)=>{let{storyId:n,refId:r}=typeof e==`string`?{storyId:e,refId:void 0}:e,i=m.getData(n,r);if([`story`,`docs`].includes(i?.type)){let{parameters:e}=i;if(e)return t?e[t]:e}return null},getCurrentParameter:e=>{let{storyId:n,refId:r}=t.getState();return m.getParameters({storyId:n,refId:r},e)||void 0},jumpToComponent:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState();if(!m.getData(r,a))return;let o=a?i[a].filteredIndex||{}:n;if(!o)return;let s=m.findSiblingStoryId(r,o,e,!0);s&&m.selectStory(s,void 0,{ref:a})},jumpToStory:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState(),o=m.getData(r,a);if(!o)return;let s=o.refId?i[o.refId].filteredIndex:n;if(!s)return;let c=m.findSiblingStoryId(r,s,e,!1);c&&m.selectStory(c,void 0,{ref:a})},selectFirstStory:()=>{let e=t.getState();if(ja(e)){let{filteredIndex:t}=e;if(!t)return;let n=Object.keys(t).find(e=>t[e].type===`story`);n&&m.selectStory(n);return}let{index:n}=e;if(!n)return;let r=Object.keys(n).find(e=>n[e].type===`story`);if(r){m.selectStory(r);return}c(`/`)},selectStory:(e=void 0,n=void 0,r={})=>{let{ref:i}=r,{storyId:a,index:o,filteredIndex:s,refs:l,settings:u}=t.getState(),d=e=>e?.type===`docs`||e?.type===`story`?(t.setState({settings:{...u,lastTrackedStoryId:e.id}}),c(`/${e.type}/${e.refId?`${e.refId}_${e.id}`:e.id}`),!0):!1,f=a?.split(`--`,2)[0],p=i?l[i].index:o,h=i?l[i].filteredIndex:s;if(!(!p||!h))if(n)if(!e)d(p[np(f,n)]);else{let t=i?`${i}_${np(e,n)}`:np(e,n);if(p[t])d(p[t]);else{let t=p[ep(e)];if(t?.type===`component`){let e=t.children.find(e=>p[e].name===n);d(e?p[e]:void 0)}}}else{let t=e?p[e]||p[ep(e)]:p[f];if(!t)throw Error(`Unknown id or title: '${e}'`);d(t)||d(m.findLeafEntry(h,t.id))}},findLeafEntry(e,t){let n=e[t];if(!n)return;if(n.type===`docs`||n.type===`story`)return n;let r=n.children.find(t=>e[t]);return r?m.findLeafEntry(e,r):void 0},findLeafStoryId(e,t){return m.findLeafEntry(e,t)?.id},findAllLeafStoryIds(e){let{index:n}=t.getState();if(!n)return[];let r=(e,t=[])=>{let i=n[e];return i&&(i.type===`story`&&t.push(i.id),`children`in i&&i.children?.forEach(e=>r(e,t))),t};return r(e,[])},findSiblingStoryId(e,t,n,r){if(r){let r=t_(t),i=r.findIndex(t=>t.includes(e));return i===r.length-1&&n>0||i===0&&n<0?void 0:r[i+n]?r[i+n][0]:void 0}let i=n_(t),a=i.indexOf(e);if(!(a===i.length-1&&n>0)&&!(a===0&&n<0))return i[a+n]},updateStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(Ov,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(mv,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await qv(Jv);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){lv.warn(`Skipping story index with version v${t.v}, awaiting SET_STORIES.`);return}await m.setIndex(t)}catch(e){await t.setState({indexError:e})}},setIndex:async e=>{let{filteredIndex:n,index:i,filters:a}=t.getState(),o=Mv.getAll(),c=$g(e,{provider:r,docsOptions:s,filters:a,allStatuses:o,statusFilterKey:Zv}),l=$g(e,{provider:r,docsOptions:s,filters:{},allStatuses:o});await t.setState({internal_index:e,filteredIndex:e_(c,n),index:e_(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i;a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o})}else{let{index:e,filteredIndex:i}=t.getState();e&&e[n]&&(e[n]={...e[n],...r}),i&&i[n]&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},updateDocs:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i;a[n]={...a[n],...r},o[n]={...o[n],...r},await e.updateRef(t,{index:a,filteredIndex:o})}else{let{index:e,filteredIndex:i}=t.getState();e&&(e[n]={...e[n],...r}),i&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},setPreviewInitialized:async n=>{n?e.updateRef(n.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(n,i)=>{await t.setState({filters:{...t.getState().filters,[n]:i}});let{internal_index:a}=t.getState();if(!a)return;await m.setIndex(a);let o=await e.getRefs();for(let[t,{internal_index:n,...r}]of Object.entries(o))await e.setRef(t,{...r,storyIndex:n},!0);r.channel?.emit(vv,{id:n})},resetTagFilters:async()=>{await l(e=>({includedTagFilters:e.defaultIncludedTagFilters,excludedTagFilters:e.defaultExcludedTagFilters})),await h()},setAllTagFilters:async(e,t)=>{await l({includedTagFilters:e,excludedTagFilters:t}),await h()},addTagFilters:async(e,t)=>{await d(`tag`,e,t),await h(),e.length===1&&Qv.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:t?`exclude`:`include`})},removeTagFilters:async e=>{await f(`tag`,e),await h(),e.length===1&&Qv.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:`remove`})},resetStatusFilters:async()=>{await l({includedStatusFilters:[],excludedStatusFilters:[]}),await g()},setAllStatusFilters:async(e,n)=>{let r=t.getState(),i=new Set(r.includedStatusFilters??[]),a=new Set(r.excludedStatusFilters??[]),o=new Set(e),s=new Set(n);await l({includedStatusFilters:e,excludedStatusFilters:n}),await g();let c=new Set([...i,...a,...o,...s]);for(let e of c){let t=i.has(e),n=a.has(e),r=o.has(e),c=s.has(e);if(t===r&&n===c)continue;let l;l=r?`include`:c?`exclude`:`remove`,p(`interaction`,{filterType:`status`,filterId:e,action:l})}},addStatusFilters:async(e,t)=>{await d(`status`,e,t),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:t?`exclude`:`include`})},removeStatusFilters:async e=>{await f(`status`,e),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:`remove`})}},h=()=>{let{includedTagFilters:e,excludedTagFilters:n}=t.getState();return m.experimental_setFilter(Yv,Kv(e,n))},g=()=>{let{includedStatusFilters:e,excludedStatusFilters:n}=t.getState();return m.experimental_setFilter(Zv,zv(e??[],n??[]))};r.channel?.on(Dv,function({storyId:n,viewMode:i}){let{sourceType:a}=d_(this,e);if(a===`local`){let e=t.getState(),a=e.path===`/`||e.viewMode===`story`||e.viewMode===`docs`,o=e.viewMode&&e.storyId,s=e.viewMode!==i||e.storyId!==n,{type:l}=e.index?.[e.storyId]||{},u=!(l===`root`||l===`component`||l===`group`);if(a){if(ja(e)&&!o){let{filteredIndex:t}=e;if(!(t&&t[n]?.type===`story`)){let e=t?Object.keys(t).find(e=>{let n=t[e];return n.type===`story`||n.type===`docs`}):void 0;e&&c(`/${i}/${e}`);return}}o&&s&&u?r.channel?.emit(_v,{storyId:e.storyId,viewMode:e.viewMode}):s&&c(`/${i}/${n}`)}}}),r.channel?.on(dv,function(){let{ref:t}=d_(this,e);m.setPreviewInitialized(t)}),r.channel?.on(Cv,function(){let{sourceType:t}=d_(this,e);if(t===`local`){let t=m.getCurrentParameter(`options`);t&&e.setOptions(Zh(t))}}),r.channel?.on(Ev,function({id:n,...i}){let{ref:a,sourceType:o}=d_(this,e);if(m.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(Zh(n)),t.setState({hasCalledSetOptions:!0})}if(o===`local`){let{storyId:e,index:n,refId:i}=t.getState();if(!n)return;let a=Array.from(new Set([m.findSiblingStoryId(e,n,1,!0),m.findSiblingStoryId(e,n,-1,!0)])).filter(Boolean);r.channel?.emit(pv,{ids:a,options:{target:i}})}}),r.channel?.on(fv,function({id:t,...n}){let{ref:r}=d_(this,e);m.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(yv,function(t){let{ref:n}=d_(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{m.setIndex(t);let n=m.getCurrentParameter(`options`);e.setOptions(Zh(n))}}),r.channel?.on(bv,function(t){let{ref:n}=d_(this,e),r=t.v?Jg(t):t.stories;if(n)e.setRef(n.id,{...n,setStoriesData:r},!0);else throw Error(`Cannot call SET_STORIES for local frame`)}),r.channel?.on(hv,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=d_(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(Sv,function({storyId:t,args:n}){let{ref:r}=d_(this,e);m.updateStory(t,{args:n},r)}),r.channel?.on(uv,function(t){let{ref:n}=d_(this,e);m.setPreviewInitialized(n)}),r.channel?.on(Tv,function(t){let{ref:n}=d_(this,e);m.setPreviewInitialized(n)}),r.channel?.on(gv,()=>{let e=r.getConfig()?.sidebar?.filters||{},{includedTagFilters:n,excludedTagFilters:i,includedStatusFilters:a,excludedStatusFilters:o,tagPresets:s}=t.getState();t.setState({filters:{...t.getState().filters,...e,[Xv]:Gv(s),[Yv]:Kv(n,i),[Zv]:zv(a,o)}})}),Mv.onAllStatusChange(async()=>{g();let{internal_index:n}=t.getState();if(!n)return;await m.setIndex(n);let r=await e.getRefs();Object.entries(r).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)})});let _=r.getConfig()?.sidebar?.filters||{},v=kv.TAGS_OPTIONS||{},y=Wv(v),{tags:b,statuses:x}=hm(i??{search:``}),S=Hv(b),C=b!==void 0,w=C?S.included:y.included,T=C?S.excluded:y.excluded,E=Lv(x),D=E.included,O=E.excluded;return{api:m,state:{storyId:a,viewMode:o,hasCalledSetOptions:!1,previewInitialized:!1,filters:{..._,[Xv]:Gv(v),[Yv]:Kv(w,T),[Zv]:zv(D,O)},tagPresets:v,defaultIncludedTagFilters:y.included,defaultExcludedTagFilters:y.excluded,includedTagFilters:w,excludedTagFilters:T,includedStatusFilters:D,excludedStatusFilters:O},init:async()=>{if(r.channel?.on(wv,()=>m.fetchIndex()),await m.fetchIndex(),u)return;u=!0;let e=w.some(e=>Qv.has(e))||T.some(e=>Qv.has(e)),t=!!globalThis?.FEATURES?.changeDetection&&(D.length>0||O.length>0);(e||t)&&p(`url`)}}},ny={},f(ny,{init:()=>hy}),{GLOBALS_UPDATED:ry,NAVIGATE_URL:iy,SET_CURRENT_STORY:ay,STORY_ARGS_UPDATED:oy,UPDATE_QUERY_PARAMS:sy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:cy}=__STORYBOOK_MODULE_GLOBAL__,ly=v(za(),1),uy=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},dy=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),fy=(e,t)=>{let n=dy(e),r=dy(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},my=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u,path:d,...f}=hm(e),p,m,h;uy(a)===!0?(p=0,m=0,h=0):uy(a)===!1&&(p=y_,m=b_,h=x_),i||(uy(s)===!0&&(p=y_),uy(s)===!1&&(p=0)),uy(o)===!1&&(m=0,h=0);let g={navSize:p,bottomPanelHeight:m,rightPanelWidth:h,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:uy(u)},_={enableShortcuts:uy(c)},v=l||void 0,y=r,b=Sa(py,f)?py:f;return py=b,{viewMode:n,layout:g,ui:_,selectedPanel:v,location:e,path:t,customQueryParams:b,storyId:y}},hy=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n(Av(e,t),r),o={getStoryHrefs(e,n={}){let{id:r,refId:a}=i.getCurrentStoryData()??{},o=e===r&&n.refId===a,{customQueryParams:s,location:c,refs:l}=t.getState(),{base:u,inheritArgs:d=o,inheritGlobals:f=!0,queryParams:p={},refId:m,viewMode:h=`story`}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let g=c.pathname||`/`,_=cy.window.location.origin+g,v=cy.STORYBOOK_NETWORK_ADDRESS??_,y=u===`origin`?_:u===`network`?v:g,b=m?l[m].url+`/iframe.html`:cy.PREVIEW_URL||`${y.replace(/\/[^/]*\.html$/,``).replace(/\/?$/,`/`)}iframe.html`,S=m?`&refId=${encodeURIComponent(m)}`:``,{args:C=``,globals:w=``,...T}=p,E=d?fy(s?.args??``,C):C,D=f?fy(s?.globals??``,w):w,O=(0,ly.stringify)(T,{nesting:!0,nestingSyntax:`js`}),k=(0,ly.stringify)(x(T,[`id`,`viewMode`]),{nesting:!0,nestingSyntax:`js`});return E&&=`&args=${E}`,D&&=`&globals=${D}`,O&&=`&${O}`,k&&=`&${k}`,{managerHref:`${y}?path=/${h}/${m?`${m}_`:``}${e}${E}${D}${O}`,previewHref:`${b}?id=${e}&viewMode=${h}${S}${E}${m?``:D}${k}`}},getQueryParam(e){let{customQueryParams:n}=t.getState();return n?n[e]:void 0},getUrlState(){let{location:e,path:n,customQueryParams:r,storyId:i,url:a,viewMode:o}=t.getState();return{path:n,hash:e?.hash??``,queryParams:r,storyId:i,url:a,viewMode:o}},setQueryParams(e){let{customQueryParams:n}=t.getState(),i={...n};for(let[t,n]of Object.entries(e))n==null?delete i[t]:i[t]=n;Sa(n,i)||(t.setState({customQueryParams:i}),r.channel?.emit(sy,i))},applyQueryParams(e,t){let{path:n,hash:r=``,queryParams:i}=o.getUrlState();a(`${n}${r}`,{...i,...e},t),o.setQueryParams(e)},navigateUrl(e,t){n(e,{plain:!0,...t})}},s=()=>{let{path:e,hash:t=``,queryParams:n,viewMode:r}=o.getUrlState();if(r!==`story`)return;let s=i.getCurrentStoryData();if(s?.type!==`story`)return;let{args:c,initialArgs:l}=s,u=pm(l,c);a(`${e}${t}`,{...n,args:u||null},{replace:!0}),o.setQueryParams({args:u||null})};r.channel?.on(ay,()=>s());let c;return r.channel?.on(oy,()=>{`requestIdleCallback`in cy.window?(c&&cy.window.cancelIdleCallback(c),c=cy.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(ry,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=pm(t,bg(t,e));a(`${n}${r}`,{...i,globals:s||null},{replace:!0}),o.setQueryParams({globals:s||null})}),r.channel?.on(iy,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:my(e),init:()=>{t.registerPersistenceHandler(`url`,(e,n)=>{if(n){let e=n(t.getState());o.applyQueryParams(e,{replace:!0})}})}}},gy={},f(gy,{init:()=>Cy}),_y=v(pe(),1),{global:vy}=__STORYBOOK_MODULE_GLOBAL__,yy=`10.4.6`,{VERSIONCHECK:by}=vy,xy=(0,_y.default)(1)(()=>{try{return{...JSON.parse(by).data||{}}}catch{return{}}}),Sy=e=>e.includes(`vue`)?`vue`:e,Cy=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:yy},...xy()},dismissedVersionNotification:t},r={getCurrentVersion:()=>{let{versions:{current:t}}=e.getState();return t},getLatestVersion:()=>{let{versions:{latest:t,next:n,current:r}}=e.getState();return r&&sg.default.prerelease(r.version)&&n?t&&sg.default.gt(t.version,n.version)?t:n:t},getDocsUrl:({asset:t,subpath:n=t,versioned:r,renderer:i,ref:a=`ui`})=>{let{versions:o}=e.getState(),s=o.latest?.version,c=o.current?.version,l=c?.startsWith(`0.0.0`)&&s||c,u=`https://storybook.js.org/${t?`docs-assets`:`docs`}/`;if(t&&l)u+=`${sg.default.major(l)}.${sg.default.minor(l)}/`;else if(r&&l&&s){let e=sg.default.diff(s,l);e===`patch`||e===null||(u+=`${sg.default.major(l)}.${sg.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof vy.STORYBOOK_RENDERER<`u`){let e=vy.STORYBOOK_RENDERER;e&&(u+=`?renderer=${Sy(e)}`)}return a&&(u+=`${u.includes(`?`)?`&`:`?`}ref=${a}`),f&&(u+=`#${f}`),u},versionUpdateAvailable:()=>{let e=r.getLatestVersion(),t=r.getCurrentVersion();if(e){if(!e.version||!t.version)return!0;let n=sg.default.prerelease(t.version)?`${sg.default.major(t.version)}.${sg.default.minor(t.version)}.${sg.default.patch(t.version)}`:t.version,r=sg.default.diff(n,e.version);return sg.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=xy();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},wy={},f(wy,{init:()=>My}),{REQUEST_WHATS_NEW_DATA:Ty,RESULT_WHATS_NEW_DATA:Ey,SET_WHATS_NEW_CACHE:Dy,TOGGLE_WHATS_NEW_NOTIFICATIONS:Oy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ky}=__STORYBOOK_MODULE_GLOBAL__,Ay=`whats-new`,jy=({color:e=`currentColor`,size:t=14})=>cg.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},cg.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z`,fill:e})),My=({fullAPI:e,store:t,provider:n})=>{let r={whatsNewData:void 0};function i(e){t.setState({whatsNewData:e}),r.whatsNewData=e}let a={isWhatsNewUnread(){return r.whatsNewData?.status===`SUCCESS`&&!r.whatsNewData.postIsRead},whatsNewHasBeenRead(){r.whatsNewData?.status===`SUCCESS`&&(s({lastReadPost:r.whatsNewData.url}),i({...r.whatsNewData,postIsRead:!0}),e.clearNotification(Ay))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(Oy,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(Ty),new Promise(e=>n.channel?.once(Ey,({data:t})=>e(t)))}function s(e){n.channel?.emit(Dy,e)}return{init:async()=>{if(ky.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState();!(n?.path===`/onboarding`||n.queryParams?.onboarding===`true`)&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:Ay,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:cg.createElement(jy,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},Ny=v(dg(),1),Py=e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),Yi(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:Zi(r)})},Py(Ny.default._),Fy=`@storybook/manager/store`,Iy=class{constructor({allowPersistence:e,setState:t,getState:n}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=n}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let e of[Ny.default.local,Ny.default.session]){let t=Qh(e);if(`includedTagFilters`in t||`excludedTagFilters`in t){let{includedTagFilters:n,excludedTagFilters:r,...i}=t;$h(e,i)}}let t=Qh(Ny.default.local),n=Qh(Ny.default.session);return{...e,...t,...n}}getState(){return this.upstreamGetState()}async setState(e,t,n){let r,i;typeof t==`function`?(r=t,i=n):i=t;let{persistence:a=`none`}=i||{},o={},s={};typeof e==`function`?o=t=>(s=e(t),s):(o=e,s=o);let c=await new Promise(e=>{this.upstreamSetState(o,()=>{e(this.getState())})});if(a!==`none`&&this.upstreamPersistence)if(a===`url`){let e=this.persistenceHandlers.get(`url`);e&&await e(s,i?.serialize)}else await eg(a===`session`?Ny.default.session:Ny.default.local,s);return r&&r(c),c}},{ActiveTabs:Ly}=p_,Ry=vg({api:void 0,state:Cg({})}),zy=(...e)=>xg({},...e),By=class extends rg.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(e=>{`init`in e&&e.init()})};let{location:t,path:n,refId:r,viewMode:i=e.docsOptions.docsMode?`docs`:e.viewMode,singleStory:a,storyId:o,docsOptions:s,navigate:c}=e,l=new Iy({getState:()=>this.state,setState:(e,t)=>(this.setState(e,()=>t(this.state)),this.state)}),u={location:t,path:n,viewMode:i,singleStory:a,storyId:o,refId:r},d={docsOptions:s};this.state=l.getInitialState(Cg({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[F_,Fg,jg,p_,k_,L_,z_,cv,Ug,Lg,ny,gy,wy,j_].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=Cg(this.state,...this.modules.map(e=>e.state)),m=Object.assign(this.api,{navigate:c},...this.modules.map(e=>e.api));this.state=p,this.api=m}static getDerivedStateFromProps(e,t){return t.path===e.path?null:{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!_(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return rg.createElement(Vy,{effect:this.initModules},rg.createElement(Ry.Provider,{value:t},rg.createElement(tg,null,e)))}},By.displayName=`Manager`,Vy=({children:e,effect:t})=>(rg.useEffect(t,[]),e),Hy=e=>e,globalThis.STORYBOOK_ADDON_STATE={},{STORYBOOK_ADDON_STATE:Uy}=globalThis,{Channel:Wy}=__STORYBOOK_MODULE_CHANNELS__,Gy={id:`storybook/test-provider`,leader:!0,initialState:{}},{fullTestProviderStore:Ky,getTestProviderStoreById:qy,useTestProviderStore:Jy,universalTestProviderStore:Yy}=ng({universalTestProviderStore:sn.create({...Gy,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:jv}),Xy={id:`storybook/checklist`,initialState:{items:{accessibilityTests:{status:`open`},aiSetup:{status:`open`},autodocs:{status:`open`},ciTests:{status:`open`},controls:{status:`open`},coverage:{status:`open`},guidedTour:{status:`open`},installA11y:{status:`open`},installChromatic:{status:`open`},installDocs:{status:`open`},installVitest:{status:`open`},mdxDocs:{status:`open`},moreComponents:{status:`open`},moreStories:{status:`open`},onboardingSurvey:{status:`open`},organizeStories:{status:`open`},renderComponent:{status:`open`},runTests:{status:`open`},publishStorybook:{status:`open`},shareStorybook:{status:`open`},viewports:{status:`open`},visualTests:{status:`open`},whatsNewStorybook10:{status:`open`},writeInteractions:{status:`open`}},widget:{}}},Zy=e=>({getValue:t=>e.getState().items[t]??{status:`open`,mutedAt:void 0},accept:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`accepted`}}}))},done:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`done`}}}))},skip:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`skipped`}}}))},reset:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`open`}}}))},mute:t=>{e.setState(e=>({...e,items:t.reduce((t,n)=>({...t,[n]:{...e.items[n],mutedAt:Date.now()}}),e.items)}))},disable:t=>{e.setState(e=>({...e,widget:{...e.widget,disable:t},items:Object.entries(e.items).reduce((e,[t,n])=>({...e,[t]:{...n,mutedAt:void 0}}),e.items)}))}}),Qy=sn.create({...Xy,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),Zy(Qy)})),eb=i((e=>{var t=o();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})},[e,n,t]),a(function(){return u(o)&&l({inst:o}),e(function(){u(o)&&l({inst:o})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),tb=i(((e,t)=>{t.exports=eb()})),nb=e({A:()=>qk,ActionList:()=>nF,Bar:()=>jR,Blockquote:()=>Jk,Button:()=>VP,Code:()=>iA,DL:()=>aA,Div:()=>oA,EmptyTabContent:()=>qR,ErrorFormatter:()=>oI,FlexBar:()=>FR,Form:()=>KI,H1:()=>sA,H2:()=>cA,H3:()=>lA,H4:()=>uA,H5:()=>dA,H6:()=>fA,HR:()=>pA,IconButton:()=>UP,Img:()=>mA,LI:()=>hA,Link:()=>MA,ListItem:()=>SR,Loader:()=>Kz,OL:()=>_A,P:()=>vA,Popover:()=>YI,PopoverProvider:()=>cR,Pre:()=>yA,ResetWrapper:()=>Gk,ScrollArea:()=>ye,Select:()=>iL,Separator:()=>lz,Span:()=>bA,SyntaxHighlighter:()=>$k,TT:()=>xA,TabBar:()=>rz,TabButton:()=>VR,TabList:()=>xz,TabPanel:()=>Cz,TabWrapper:()=>az,Table:()=>SA,Tabs:()=>sz,TabsState:()=>cz,TabsView:()=>kz,ToggleButton:()=>WP,Toolbar:()=>uz,Tooltip:()=>lR,TooltipLinkList:()=>ER,TooltipNote:()=>HA,TooltipProvider:()=>zP,UL:()=>wA,Zoom:()=>XF,codeCommon:()=>Hk,components:()=>Yz,convertToReactAriaPlacement:()=>LP,createCopyToClipboardFunction:()=>ab,nameSpaceClassNames:()=>Bk,resetComponents:()=>Xz,useTabsState:()=>Tz,withReset:()=>Uk});async function rb(e){try{await FA.top?.navigator.clipboard.writeText(e)}catch{await FA.navigator.clipboard.writeText(e)}}async function ib(e){let t=PA.createElement(`TEXTAREA`),n=PA.activeElement;t.value=e,PA.body.appendChild(t),t.select(),PA.execCommand(`copy`),PA.body.removeChild(t),n.focus()}function ab(){return FA.navigator?.clipboard?rb:ib}function ob(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function sb(...e){return t=>{let n=!1,r=e.map(e=>{let r=ob(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ob(e[t],null)}}}}function cb(e){return typeof e==`object`&&!!e&&`then`in e}function lb(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===LA&&`_payload`in e&&cb(e._payload)}function ub(e){let t=db(e),n=sD.forwardRef((e,n)=>{let{children:r,...i}=e;lb(r)&&typeof RA==`function`&&(r=RA(r._payload));let a=sD.Children.toArray(r),o=a.find(pb);if(o){let e=o.props.children,r=a.map(t=>t===o?sD.Children.count(e)>1?sD.Children.only(null):sD.isValidElement(e)?e.props.children:null:t);return(0,cD.jsx)(t,{...i,ref:n,children:sD.isValidElement(e)?sD.cloneElement(e,void 0,r):null})}return(0,cD.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function db(e){let t=sD.forwardRef((e,t)=>{let{children:n,...r}=e;if(lb(n)&&typeof RA==`function`&&(n=RA(n._payload)),sD.isValidElement(n)){let e=hb(n),i=mb(r,n.props);return n.type!==sD.Fragment&&(i.ref=t?sb(t,e):e),sD.cloneElement(n,i)}return sD.Children.count(n)>1?sD.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function fb(e){let t=({children:e})=>(0,cD.jsx)(cD.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=BA,t}function pb(e){return sD.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===BA}function mb(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function hb(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gb(e){let[t,n]=(0,pD.useState)(e),r=(0,pD.useRef)(t),i=(0,pD.useRef)(null),a=(0,pD.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return W(()=>{r.current=t,i.current&&a.current()}),[t,(0,pD.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}function _b(e=!1){let t=(0,hD.useContext)(GA),n=(0,hD.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=hD.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=qA.get(e);n==null?qA.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,qA.delete(e))}n.current=++t.current}return n.current}function vb(e){let t=(0,hD.useContext)(GA),n=_b(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function yb(e){let t=hD.useId(),[n]=(0,hD.useState)(Cb()),r=n?`react-aria`:`react-aria${WA.prefix}`;return e||`${r}-${t}`}function bb(){return!1}function xb(){return!0}function Sb(e){return()=>{}}function Cb(){return typeof hD.useSyncExternalStore==`function`?hD.useSyncExternalStore(Sb,bb,xb):(0,hD.useContext)(KA)}function wb(e){let[t,n]=(0,mD.useState)(e),r=(0,mD.useRef)(null),i=JA(t),a=(0,mD.useRef)(null);if(ZA&&ZA.register(a,i),YA){let e=XA.get(i);e&&!e.includes(r)?e.push(r):XA.set(i,[r])}return W(()=>{let e=i;return()=>{ZA&&ZA.unregister(a),XA.delete(e)}},[i]),(0,mD.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function Tb(e,t){if(e===t)return e;let n=XA.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=XA.get(t);return r?(r.forEach(t=>t.current=e),e):t}function Eb(e=[]){let t=wb(),[n,r]=gb(t),i=(0,mD.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return W(i,[t,i,...e]),n}function Db(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function Ob(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function kb(e){return Ob(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}function Ab(){return $A}function jb(e,t){if(!Ab())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:kb(n)?n.host:n.parentNode}return!1}function Mb(e){return Ab()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Nb(e,t,n,r){return Ab()?new tj(e,t,n,r):e.createTreeWalker(t,n,r)}function Pb(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Pb(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Fb(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Pb(e))&&(r&&(r+=` `),r+=t);return r}function z(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Db(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=nj(n,i):e===`id`&&n&&i?t.id=Tb(n,i):t[e]=i===void 0?n:i}}return t}function Ib(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=Lb(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():Lb(e[n],null)})}}}function Lb(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Rb(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(rj.has(t)||n&&ij.has(t)||r&&aj.has(t)||i&&oj.has(t)||a&&(sj.has(t)||t.endsWith(`Capture`)&&sj.has(t.slice(0,-7)))||o?.has(t)||cj.test(t))&&(s[t]=e[t]);return s}function zb(e){if(Bb())e.focus({preventScroll:!0});else{let t=Vb(e);e.focus(),Hb(t)}}function Bb(){if(lj==null){lj=!1;try{document.createElement(`div`).focus({get preventScroll(){return lj=!0,!0}})}catch{}}return lj}function Vb(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Hb(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ub(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function Wb(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Gb(e){let t=null;return()=>(t??=e(),t)}function Kb(){return(0,gD.useContext)(yj)}function qb(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Jb(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;vj()&&!((i=window.event)==null||(r=i.type)==null)&&r.startsWith(`key`)&&e.target===`_blank`&&(uj()?a=!0:o=!0);let l=hj()&&uj()&&!fj()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent(`click`,{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Jb.isOpening=n,zb(e),e.dispatchEvent(l),Jb.isOpening=!1}function Yb(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function Xb(e,t){Yb(e,e=>Jb(e,t))}function Zb(e){let t=Kb().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function Qb(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&qb(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}function $b(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=bj.get(t.target);r||(r=new Set,bj.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=bj.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),bj.delete(t.target)),bj.size===0)){for(let e of xj)e();xj.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function ex(){for(let[e]of bj)`isConnected`in e&&!e.isConnected&&bj.delete(e)}function tx(e){requestAnimationFrame(()=>{ex(),bj.size===0?e():xj.add(e)})}function nx(){let e=(0,_D.useRef)(new Map),t=(0,_D.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,_D.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,_D.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,_D.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function rx(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=wb(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function ix(e){let t=(0,vD.useRef)(null),n=(0,vD.useRef)(void 0),r=(0,vD.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}else if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,vD.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}function ax(e){let t=(0,yD.useRef)(null);return Sj(()=>{t.current=e},[e]),(0,yD.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function ox(e,t){let n=(0,bD.useRef)(!0),r=(0,bD.useRef)(null);W(()=>(n.current=!0,()=>{n.current=!1}),[]),W(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function sx(){return typeof window.ResizeObserver<`u`}function cx(e){let{ref:t,box:n,onResize:r}=e,i=ax(r);(0,xD.useEffect)(()=>{let e=t?.current;if(e)if(sx()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}else return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}},[t,n])}function lx(e,t){W(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ux(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function dx(e,t){let n=e;for(ux(n,t)&&(n=n.parentElement);n&&!ux(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function fx(e,t){let n=[];for(;e&&e!==document.documentElement;)ux(e,t)&&n.push(e),e=e.parentElement;return n}function px(e){return uj()?e.metaKey:e.ctrlKey}function mx(e){return e instanceof HTMLInputElement&&!Cj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function hx(e){let[t,n]=(0,SD.useState)();return W(()=>{if(!e)return;let t=Tj.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${wj++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},Tj.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),Tj.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function gx(e,t,n,r){let i=ax(n),a=n==null;(0,CD.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}function _x(e,t){let n=vx(e,t,`left`),r=vx(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:l,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=o+parseInt(l,10),h=s+parseInt(c,10),g=m+e.clientWidth,_=h+e.clientHeight,v=parseInt(u,10)||0,y=parseInt(f,10)||0,b=parseInt(d,10)||0,x=parseInt(p,10)||0;n<=o+x?o=n-parseInt(l,10)-x:n+i>g-b&&(o+=n+i-g+b),r<=h+v?s=r-parseInt(c,10)-v:r+a>_-y&&(s+=r+a-_+y),e.scrollLeft=o,e.scrollTop=s}function vx(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function yx(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=fx(e);s||t.push(o);for(let n of t)_x(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)==null||n.call(e,{block:`nearest`});let{left:c,top:l}=e.getBoundingClientRect();if(Math.abs(o-c)>1||Math.abs(s-l)>1){var r,i,a;t==null||(i=t.containingElement)==null||(r=i.scrollIntoView)==null||r.call(i,{block:`center`,inline:`center`}),(a=e.scrollIntoView)==null||a.call(e,{block:`nearest`})}}}}function bx(e){return e.pointerType===``&&e.isTrusted?!0:_j()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function xx(e){return!_j()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function Sx(e){let t=wD.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}function Cx(e,t=!0){let[n,r]=(0,ED.useState)(!0),i=n&&t;return W(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),Tx(e,i,(0,ED.useCallback)(()=>r(!1),[])),i}function wx(e,t){let[n,r]=(0,ED.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`);break}let i=n===`exiting`;return Tx(e,i,(0,ED.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function Tx(e,t,n){W(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,TD.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function Ex(e){let t=QA(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function Dx(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function Ox(e,t){return Oj?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&Ex(e)&&Dx(e,t)&&(!e.parentElement||Ox(e.parentElement,e))}function kx(e){return e.matches(Aj)&&Ox(e)&&!jx(e)}function Ax(e){return e.matches(jj)&&Ox(e)&&!jx(e)}function jx(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Mx(e,t,n){let[r,i]=(0,DD.useState)(e||t),a=(0,DD.useRef)(r),o=(0,DD.useRef)(e!==void 0),s=e!==void 0;(0,DD.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;Mj(()=>{a.current=c});let[,l]=(0,DD.useReducer)(()=>({}),{});return[c,(0,DD.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function Nx(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Px(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Fx(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Ix(e){let t=(0,OD.useRef)({isFocused:!1,observer:null});W(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=ax(t=>{e?.(t)});return(0,OD.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{if(t.current.isFocused=!1,r.disabled){let t=Px(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}function Lx(e){for(;e&&!kx(e);)e=e.parentElement;let t=QA(e),n=t.document.activeElement;if(!n||n===e)return;Nj=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,zb(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,zb(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),Nj=!1,r=!1},l=requestAnimationFrame(c);return c}function Rx(e){if(pj()){if(Pj==="default"){let t=G(e);Fj=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}Pj=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;Ij.set(e,e.style[t]),e.style[t]=`none`}}function zx(e){if(pj()){if(Pj!==`disabled`)return;Pj=`restoring`,setTimeout(()=>{tx(()=>{if(Pj===`restoring`){let t=G(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=Fj||``),Fj=``,Pj=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ij.has(e)){let t=Ij.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),Ij.delete(e)}}function Bx(e,t){return t.get?t.get.call(e):t.value}function Vx(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function Hx(e,t){return Bx(e,Vx(e,t,`get`))}function Ux(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Wx(e,t,n){Ux(e,t),t.set(e,n)}function Gx(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(`attempted to set read only private field`);t.value=n}}function Kx(e,t,n){return Gx(e,Vx(e,t,`set`),n),n}function qx(e){let t=(0,AD.useContext)(Lj);if(t){let{register:n,...r}=t;e=z(r,e),n()}return lx(t,e.ref),e}function Jx(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=qx(e),[m,h]=(0,AD.useState)(!1),g=(0,AD.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=nx(),y=ax((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new zj(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=ax((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new zj(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new zj(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=ax((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new zj(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=ax(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(Zx(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||zx(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=ax(e=>{u&&S(e)}),w=ax(e=>{s||o?.(e)}),T=ax((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);Fx(n,t),o(Px(n))}}),E=(0,AD.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(Xx(t.nativeEvent,t.currentTarget)&&jb(t.currentTarget,Mb(t.nativeEvent))){var r;$x(Mb(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,i=y(t,`keyboard`);let r=t.currentTarget;_(G(t.currentTarget),`keyup`,Db(t=>{Xx(t,r)&&!t.repeat&&jb(r,Mb(t))&&e.target&&x(Zx(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&uj()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!jb(t.currentTarget,Mb(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!Jb.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||bx(t.nativeEvent))){let e=y(t,`virtual`),r=x(t,`virtual`),i=b(t,`virtual`);w(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=x(Zx(t.currentTarget,t),r),a=b(Zx(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,w(t),S(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&Xx(t,e.target)){var r;$x(Mb(t),t.key)&&t.preventDefault();let n=Mb(t),i=jb(e.target,Mb(t));b(Zx(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&Yx(e.target)&&jb(e.target,n)&&!t[Bj]&&(t[Bj]=!0,Jb(e.target,t,!1)),e.isPressed=!1,(r=e.metaKeyEvents)==null||r.delete(t.key)}else if(t.key===`Meta`&&(n=e.metaKeyEvents)!=null&&n.size){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())(i=e.target)==null||i.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!jb(t.currentTarget,Mb(t.nativeEvent)))return;if(xx(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||Rx(e.target),i=y(t,e.pointerType);let a=Mb(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(G(t.currentTarget),`pointerup`,n,!1),_(G(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(jb(t.currentTarget,Mb(t.nativeEvent))&&t.button===0){if(l){let n=Lx(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!jb(t.currentTarget,Mb(t.nativeEvent))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&x(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(Zx(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b(Zx(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(jb(e.target,Mb(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(zb(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{jb(e.currentTarget,Mb(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,AD.useEffect)(()=>{if(!f)return;let e=G(f.current);if(!e||!e.head||e.getElementById(Vj))return;let t=e.createElement(`style`);t.id=Vj,t.textContent=`
|
|
185
|
+
`});let m=e.versions&&Object.keys(e.versions).length?e.versions:s.versions;await a.setRef(t,{id:t,url:u.url,...s,...m?{versions:m}:{},type:s.storyIndex?`lazy`:`auto-inject`})},getRefs:()=>{let{refs:t={}}=e.getState();return t},setRef:async(i,{storyIndex:o,setStoriesData:s,...c},l=!1)=>{if(n)return;let u,d,f,{filters:p}=e.getState(),{storyMapper:m=o_}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?Yg(l_(s,h,{storyMapper:m})):o,f=$g(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=$g(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=s_(d,h),f&&=s_(f,h),await a.updateRef(i,{...h,...c,index:d,filteredIndex:f,internal_index:u})},updateRef:async(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,...n};let o=Object.keys(s).reduce((e,t)=>(e[t]=i[t],e),{});await e.setState({refs:o})}},o=!n&&Wg.REFS||{},s=o;return i&&new Promise(async e=>{for(let e of Object.values(o))await a.checkRef({...e,stories:{}});e(void 0)}),{api:a,state:{refs:s}}},d_=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=a_(n,r),s;(r||a===`external`)&&(s=r&&t.getRefs()[r]?t.getRefs()[r]:t.findRef(o));let c={source:n,sourceType:a,sourceLocation:o,refId:r,ref:s,type:i};switch(!0){case typeof r==`string`:case a===`local`:case a===`external`:return c;default:return Hg.warn(`Received a ${i} frame that was not configured as a ref`),null}},f_=({store:e,fullAPI:t,provider:n})=>{let r={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(e){n.channel?.emit(Vg,{globals:e,options:{target:`storybook-preview-iframe`}})}},i={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:t,storyGlobals:n,userGlobals:r})=>{let{globals:i,userGlobals:a,storyGlobals:o}=e.getState();Sa(t,i)||e.setState({globals:t}),Sa(r,a)||e.setState({userGlobals:r}),Sa(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(zg,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=d_(this,t);i?Rg.warn(`received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.`):a({globals:e,storyGlobals:n,userGlobals:r})}),n.channel?.on(Bg,function({globals:n,globalTypes:i}){let{ref:a}=d_(this,t),o=e.getState()?.userGlobals;a?Object.keys(n).length>0&&Rg.warn(`received globals from a non-local ref. This is not currently supported.`):e.setState({globals:n,userGlobals:n,globalTypes:i}),o&&Object.keys(o).length!==0&&!Sa(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},p_={},f(p_,{ActiveTabs:()=>v_,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>b_,DEFAULT_NAV_SIZE:()=>y_,DEFAULT_RIGHT_PANEL_WIDTH:()=>x_,focusableUIElements:()=>C_,getDefaultLayoutState:()=>S_,init:()=>O_}),{SET_CONFIG:m_}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:h_}=__STORYBOOK_MODULE_GLOBAL__,{document:g_}=h_,__=e=>typeof e==`function`,v_={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},y_=300,b_=300,x_=400,S_=()=>({ui:{enableShortcuts:!0},layout:{initialActive:v_.CANVAS,showToolbar:!0,navSize:y_,bottomPanelHeight:b_,rightPanelWidth:x_,recentVisibleSizes:{navSize:y_,bottomPanelHeight:b_,rightPanelWidth:x_},panelPosition:`bottom`,showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:ae()}),C_={addonPanel:`storybook-panel-region`,storySearchField:`storybook-explorer-searchfield`,storyListMenu:`storybook-explorer-menu`,storyPanelRoot:`storybook-panel-root`,showAddonPanel:`storybook-show-addon-panel`,sidebarRegion:`storybook-sidebar-region`,showSidebar:`storybook-show-sidebar`},w_=e=>e.layout.navSize>0,T_=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},E_=e=>!w_(e)&&!T_(e),D_=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),O_=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=E_(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:D_(e.layout)}}:{layout:{...e.layout,navSize:e.singleStory?0:e.layout.recentVisibleSizes.navSize,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`session`})},togglePanel(t){return e.setState(e=>{let n=T_(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...e.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:D_(e.layout)}}},{persistence:`session`})},togglePanelPosition(t){return e.setState(e=>{let n=t||(e.layout.panelPosition===`right`?`bottom`:`right`);return{layout:{...e.layout,panelPosition:n,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`permanent`})},toggleNav(t){return e.setState(e=>{if(e.singleStory)return{layout:e.layout};let n=w_(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:e.layout.recentVisibleSizes.navSize}}:{layout:{...e.layout,navSize:0,recentVisibleSizes:D_(e.layout)}}},{persistence:`session`})},toggleToolbar(t){return e.setState(e=>{let n=typeof t<`u`?t:!e.layout.showToolbar;return{layout:{...e.layout,showToolbar:n}}},{persistence:`session`})},setSizes({navSize:t,bottomPanelHeight:n,rightPanelWidth:r}){return e.setState(e=>{let i={...e.layout,navSize:t??e.layout.navSize,bottomPanelHeight:n??e.layout.bottomPanelHeight,rightPanelWidth:r??e.layout.rightPanelWidth};return{layout:{...i,recentVisibleSizes:D_(i)}}},{persistence:`session`})},focusOnUIElement(e,t){let{forceFocus:n=!1,select:r=!1,poll:i=!0}=typeof t==`boolean`?{select:t}:t??{};if(!e)return!1;let a=()=>{let t=g_.getElementById(e);return!t||(t.focus(),t!==g_.activeElement&&n&&t.getAttribute(`tabindex`)===null&&(t.setAttribute(`tabindex`,`-1`),t.focus()),t!==g_.activeElement&&t.id!==g_.activeElement?.id)?!1:(r&&t.select?.(),!0)};return a()?!0:i?new Promise(e=>{let t=Date.now(),n=setInterval(()=>{let r=Date.now()-t;if(a()){clearInterval(n),e(!0);return}r>=500&&(clearInterval(n),e(!1))},50)}):!1},getInitialOptions(){let{theme:e,selectedPanel:r,layoutCustomisations:i,...a}=t.getConfig(),o=S_();return{...o,layout:{...u(o.layout,C(a,Object.keys(o.layout))),...n&&{navSize:0}},layoutCustomisations:{...o.layoutCustomisations,...i??{}},ui:u(o.ui,C(a,Object.keys(o.ui))),selectedPanel:r||o.selectedPanel,theme:e||o.theme}},getIsFullscreen(){return E_(e.getState())},getIsPanelShown(){return T_(e.getState())},getIsNavShown(){return w_(e.getState())},getShowToolbarWithCustomisations(t){let n=e.getState();return __(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return __(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(__(n.layoutCustomisations.showSidebar)){let e=n.layoutCustomisations.showSidebar(n,t!==0);if(t===0&&e===!0)return n.layout.recentVisibleSizes.navSize;if(t!==0&&e===!1)return 0}return t},setOptions:t=>{let{layout:r,ui:i,selectedPanel:a,theme:o}=e.getState();if(!t)return;let s={...r,...t.layout||{},...C(t,Object.keys(r)),...n&&{navSize:0}},c={...i,...t.ui,...u(t.ui||{},C(t,Object.keys(i)))},l={...o,...t.theme},d={};_(i,c)||(d.ui=c),_(r,s)||(d.layout=s),t.selectedPanel&&!_(a,t.selectedPanel)&&(d.selectedPanel=t.selectedPanel),Object.keys(d).length&&e.setState(d,{persistence:`permanent`}),_(o,l)||e.setState({theme:l})}},i=C(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(m_,()=>{r.setOptions(bg(r.getInitialOptions(),i))}),{api:r,state:bg(r.getInitialOptions(),i)}},k_={},f(k_,{init:()=>A_}),A_=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Ca(e,e=>e.id===t.id);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:[...r,t]}})},clearNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Ca(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),j_={},f(j_,{init:()=>P_}),{OPEN_IN_EDITOR_REQUEST:M_,OPEN_IN_EDITOR_RESPONSE:N_}=__STORYBOOK_MODULE_CORE_EVENTS__,P_=({provider:e,fullAPI:t})=>({api:{openInEditor(t){return new Promise(n=>{let{file:r,line:i,column:a}=t,o=t=>{t.file===r&&t.line===i&&t.column===a&&(e.channel?.off(N_,o),n(t))};e.channel?.on(N_,o),e.channel?.emit(M_,t)})}},state:{notifications:[]},init:async()=>{let{color:n}=await a(async()=>{let{color:e}=await import(`./theming-x5D2-3Wh.js`).then(e=>(e.a(),e.u));return{color:e}},__vite__mapDeps([0,1,2,3]),import.meta.url);e.channel?.on(N_,e=>{e.error!==null&&t.addNotification({id:`open-in-editor-error`,content:{headline:`Failed to open in editor`,subHeadline:e.error||`Check the Storybook process on the command line for more details.`},icon:ag.createElement(Xe,{color:n.negative}),duration:8e3})})}}),F_={},f(F_,{init:()=>I_}),I_=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),L_={},f(L_,{init:()=>R_}),R_=({store:e,navigate:t,fullAPI:n})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:t}}=e.getState();t?n.selectStory(t):n.selectFirstStory()},changeSettingsTab:e=>{t(`/settings/${e}`)},isSettingsScreenActive:()=>{let{path:e}=n.getUrlState();return!!(e||``).match(/^\/settings/)},retrieveSelection(){let{settings:t}=e.getState();return t.lastTrackedStoryId},storeSelection:async()=>{let{storyId:t,settings:n}=e.getState();await e.setState({settings:{...n,lastTrackedStoryId:t}})}}}),z_={},f(z_,{controlOrMetaKey:()=>iv,defaultShortcuts:()=>av,init:()=>sv,isMacLike:()=>rv,keys:()=>Yh}),B_=v(ug(),1),{FORCE_REMOUNT:V_,PREVIEW_KEYDOWN:H_,STORIES_COLLAPSE_ALL:U_,STORIES_EXPAND_ALL:W_}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:G_}=__STORYBOOK_MODULE_GLOBAL__,{global:K_}=__STORYBOOK_MODULE_GLOBAL__,{navigator:q_}=K_,J_=()=>q_&&q_.platform?!!q_.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Y_=()=>J_()?`⌥`:`alt`,X_=e=>{if([`Meta`,`Alt`,`Control`,`Shift`,`Tab`].includes(e.key))return null;let t=[];e.altKey&&t.push(`alt`),e.ctrlKey&&t.push(`control`),e.metaKey&&t.push(`meta`),e.shiftKey&&t.push(`shift`);let n=e.code?.toUpperCase(),r=n?n.startsWith(`KEY`)&&n.length===4?n.replace(`KEY`,``):n.startsWith(`DIGIT`)?n.replace(`DIGIT`,``):{MINUS:`-`,EQUAL:`=`,BRACKETLEFT:`[`,BRACKETRIGHT:`]`,BACKSLASH:`\\`,SEMICOLON:`;`,QUOTE:`'`,BACKQUOTE:"`",COMMA:`,`,PERIOD:`.`,SLASH:`/`}[n]:void 0;if(e.key&&e.key.length===1&&e.key!==` `){let n=e.key.toUpperCase(),i=r;i&&i.length===1&&i!==n?t.push([n,i]):t.push(n)}else e.key===`Dead`&&r&&t.push(r);return e.key===` `&&t.push(`space`),e.key===`Escape`&&t.push(`escape`),e.key===`ArrowRight`&&t.push(`ArrowRight`),e.key===`ArrowDown`&&t.push(`ArrowDown`),e.key===`ArrowUp`&&t.push(`ArrowUp`),e.key===`ArrowLeft`&&t.push(`ArrowLeft`),t.length>0?t:null},Z_=(e,t)=>!e||!t||(e.join(``).startsWith(`shift/`)&&e.shift(),e.length!==t.length)?!1:!e.find((e,n)=>Array.isArray(e)?!e.includes(t[n]):e!==t[n]),Q_=e=>e===`alt`?Y_():e===`control`?`⌃`:e===`meta`?`⌘`:e===`shift`?`⇧`:e===`Enter`||e===`Backspace`||e===`Esc`||e===`escape`?``:e===` `?`SPACE`:e===`ArrowUp`?`↑`:e===`ArrowDown`?`↓`:e===`ArrowLeft`?`←`:e===`ArrowRight`?`→`:e?.toUpperCase(),$_=e=>e.map(Q_).join(` `),ev=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:tv,document:nv}=G_,rv=()=>tv&&tv.platform?!!tv.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,iv=()=>rv()?`meta`:`control`,av=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[iv(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[iv(),`shift`,`,`],aboutPage:[iv(),`,`],escape:[`escape`],collapseAll:[iv(),`shift`,`ArrowUp`],expandAll:[iv(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),ov={},sv=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...av,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return ov},getAddonsShortcutLabels(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{label:n}])=>{e[t]=n}),e},getAddonsShortcutDefaults(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{defaultShortcut:n}])=>{e[t]=n}),e},async setShortcuts(t){let{shortcuts:n}=await e.setState(e=>({shortcuts:typeof t==`function`?t(e.shortcuts):t}),{persistence:`permanent`});return n},async restoreAllDefaultShortcuts(){return r.setShortcuts(r.getDefaultShortcuts())},async setShortcut(e,t){return await r.setShortcuts(n=>({...n,[e]:t})),t},async setAddonShortcut(e,t){return await r.setShortcuts(n=>({...n,[`${e}-${t.actionName}`]:t.defaultShortcut})),ov[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=X_(e),n=r.getShortcutKeys(),i=Yh(n).find(e=>Z_(t,n[e]));i&&r.handleShortcutFeature(i,e)},handleShortcutFeature(n,r){let{ui:{enableShortcuts:i},storyId:a,refId:o,viewMode:s}=e.getState();if(i)switch(r?.preventDefault&&r.preventDefault(),n){case`escape`:t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break;case`goToNextLandmark`:case`goToPreviousLandmark`:break;case`focusNav`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(C_.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(C_.storySearchField,!0)},0);break;case`focusIframe`:{let e=nv.getElementById(`storybook-preview-iframe`);if(e)try{e.contentWindow.focus()}catch{}break}case`focusPanel`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(C_.storyPanelRoot);break;case`nextStory`:t.jumpToStory(1);break;case`prevStory`:t.jumpToStory(-1);break;case`nextComponent`:t.jumpToComponent(1);break;case`prevComponent`:t.jumpToComponent(-1);break;case`fullScreen`:t.toggleFullscreen();break;case`togglePanel`:{let e=t.getIsPanelShown(),n=nv.getElementById(C_.addonPanel);t.togglePanel(),e&&Jh(n)&&t.focusOnUIElement(C_.showAddonPanel,{poll:!0}).then(e=>{e===!1&&nv.body.focus()}),e||t.focusOnUIElement(C_.addonPanel,{forceFocus:!0,poll:!0});break}case`toggleNav`:{let e=t.getIsNavShown(),n=nv.getElementById(C_.sidebarRegion);t.toggleNav(),e&&Jh(n)&&t.focusOnUIElement(C_.showSidebar,{poll:!0}).then(e=>{e===!1&&nv.body.focus()}),e||t.focusOnUIElement(C_.sidebarRegion,{forceFocus:!0,poll:!0});break}case`toolbar`:t.toggleToolbar();break;case`panelPosition`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break;case`aboutPage`:t.navigate(`/settings/about`);break;case`shortcutsPage`:t.navigate(`/settings/shortcuts`);break;case`collapseAll`:t.emit(U_);break;case`expandAll`:t.emit(W_);break;case`remount`:t.emit(V_,{storyId:a});break;case`openInEditor`:G_.CONFIG_TYPE===`DEVELOPMENT`&&t.openInEditor({file:t.getCurrentStoryData().importPath});break;case`openInIsolation`:if(a&&s===`story`){let{previewHref:e}=t.getStoryHrefs(a,{refId:o});window.open(e,`_blank`,`noopener,noreferrer`)}break;case`copyStoryLink`:if(a){let{managerHref:e}=t.getStoryHrefs(a,{refId:o});(0,B_.default)(e)}break;default:ov[n].action();break}}},{shortcuts:i=av}=e.getState();return{api:r,state:{shortcuts:Yh(av).reduce((e,t)=>({...e,[t]:i[t]||av[t]}),av)},init:()=>{nv.addEventListener(`keydown`,e=>{Xh(e)||r.handleKeydownEvent(e)}),n.channel?.on(H_,e=>{r.handleKeydownEvent(e.event)})}}},cv={},f(cv,{init:()=>ty}),{logger:lv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:uv,CURRENT_STORY_WAS_SET:dv,DOCS_PREPARED:fv,PRELOAD_ENTRIES:pv,RESET_STORY_ARGS:mv,SELECT_STORY:hv,SET_CONFIG:gv,SET_CURRENT_STORY:_v,SET_FILTER:vv,SET_INDEX:yv,SET_STORIES:bv,SIDEBAR_FILTER_CHANGED:xv,STORY_ARGS_UPDATED:Sv,STORY_CHANGED:Cv,STORY_INDEX_INVALIDATED:wv,STORY_MISSING:Tv,STORY_PREPARED:Ev,STORY_SPECIFIED:Dv,UPDATE_STORY_ARGS:Ov}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:kv}=__STORYBOOK_MODULE_GLOBAL__,Av=(e,t={})=>[e,...Object.entries(t).filter(([,e])=>e!=null).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),jv=(e,t)=>{let n=og.useRef(t?t(e.getState()):e.getState()),r=og.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e);!_(a,t(i))&&(n.current=a,r())}),[e,t]),i=og.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return _(i,n.current)||(n.current=i),n.current},[e,t]);return[og.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:Mv,getStatusStoreByTypeId:Nv,useStatusStore:Pv,universalStatusStore:Fv}=fa({universalStatusStore:sn.create({...va,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:jv,environment:`manager`}),Iv=(e,t)=>{if(!e)return{included:[],excluded:[]};let n=[],r=[];return e.split(`;`).forEach(e=>{if(!e)return;let i=e.startsWith(`!`),a=t(i?e.slice(1):e);a!=null&&(i?r.push(a):n.push(a))}),{included:n,excluded:r}},Lv=e=>Iv(e,ga),Rv=(e,t)=>{if(!e.length&&!t.length)return;let n=e.map(e=>_a(e)).sort(),r=t.map(e=>`!${_a(e)}`).sort();return[...n,...r].join(`;`)},zv=(e,t)=>n=>{if(!e.length&&!t.length)return!0;let r=(Mv.getAll()??{})[n.id],i=r?Object.values(r).map(e=>e.value):[],a=!e.length||e.some(e=>i.includes(e)),o=!t.length||t.every(e=>!i.includes(e));return a&&o},Bv=v(pe(),1),Vv={$docs:`_docs`,$play:`_play`,$test:`_test`},Hv=e=>Iv(e,e=>Vv[e]??e),Uv=(e,t)=>{if(!e.length&&!t.length)return``;let n=Object.fromEntries(Object.entries(Vv).map(([e,t])=>[t,e])),r=e.map(e=>n[e]??e).sort(),i=t.map(e=>`!${n[e]??e}`).sort();return[...r,...i].join(`;`)},Wv=(0,Bv.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,e])=>e.defaultFilterSelection===`include`).map(([e])=>e),excluded:t.filter(([,e])=>e.defaultFilterSelection===`exclude`).map(([e])=>e)}}),Gv=e=>{let t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r.excludeFromSidebar&&(e[n]=!0),e},{});return e=>{let n=e.tags??[],r=e.type===`docs`&&!n.includes(Da.ATTACHED_MDX)&&!n.includes(Da.UNATTACHED_MDX);return(n.includes(Da.DEV)||r)&&n.filter(e=>t[e]).length===0}},Kv=(e,t)=>{let n=e=>Object.values(e.reduce((e,t)=>(Object.hasOwn(Oa,t)?e[`built-in`].push(Oa[t]):e.user.push(ka(t)),e),{"built-in":[],user:[]})).filter(e=>e.length>0);return r=>{let i=n(e),a=n(t);return(!i.length||i.every(e=>e.some(e=>e(r,!1))))&&(!a.length||a.every(e=>e.every(e=>e(r,!0))))}},{fetch:qv}=kv,Jv=`./index.json`,Yv=`tags-filter`,Xv=`static-filter`,Zv=`status-filter`,Qv=new Set(Object.keys(Oa)),$v=[`enableShortcuts`,`theme`,`showRoots`],ey={tag:{included:`includedTagFilters`,excluded:`excludedTagFilters`},status:{included:`includedStatusFilters`,excluded:`excludedStatusFilters`}},ty=({fullAPI:e,store:t,navigate:n,provider:r,state:{location:i}={},storyId:a,viewMode:o,docsOptions:s={}})=>{let c=(e,r)=>{let{customQueryParams:i}=t.getState();n(Av(e,i??{}),r)},l=e=>t.setState(e,{persistence:`url`,serialize:e=>{let t=Uv(e.includedTagFilters,e.excludedTagFilters),n=Rv(e.includedStatusFilters,e.excludedStatusFilters);return{tags:t??null,statuses:n??null}}}),u=!1,d=async(e,n,r)=>{let{included:i,excluded:a}=ey[e],o=t.getState(),s=new Set(o[i]),c=new Set(o[a]);for(let e of n){let[t,n]=r?[c,s]:[s,c];n.delete(e),t.add(e)}await l({[i]:Array.from(s),[a]:Array.from(c)})},f=async(e,n)=>{let{included:r,excluded:i}=ey[e],a=t.getState(),o=new Set(n);await l({[r]:a[r].filter(e=>!o.has(e)),[i]:a[i].filter(e=>!o.has(e))})},p=(e,n)=>{let i=t.getState(),a=(i.includedTagFilters??[]).filter(e=>Qv.has(e)),o=(i.excludedTagFilters??[]).filter(e=>Qv.has(e)),s=!!globalThis?.FEATURES?.changeDetection,c=s?i.includedStatusFilters??[]:[],l=s?i.excludedStatusFilters??[]:[],u={},d=i.internal_index?Object.values(i.internal_index.entries):[];for(let e of new Set([...a,...o])){let t=Oa[e];u[e]=d.filter(e=>t(e)).length}if(c.length>0||l.length>0){let e=da(Mv.getAll());for(let t of new Set([...c,...l]))e[t]!==void 0&&(u[t]=e[t])}r.channel?.emit(xv,{trigger:e,changed:n,activeTagFilters:{included:a,excluded:o},activeStatusFilters:{included:c,excluded:l},storyCounts:u})},m={storyId:np,getData:(e,t)=>{let n=m.resolveStory(e,t);if(n?.type===`story`||n?.type===`docs`)return n},isPrepared:(e,t)=>{let n=m.getData(e,t);return n?n.type===`story`?n.prepared:!0:!1},resolveStory:(e,n)=>{let{refs:r,index:i}=t.getState();if(!(n&&!r[n]))return n?r?.[n]?.index?.[e]??void 0:i?i[e]:void 0},getCurrentStoryData:()=>{let{storyId:e,refId:n}=t.getState();return m.getData(e,n)},getIndex:()=>{let{internal_index:e}=t.getState();return e},getParameters:(e,t)=>{let{storyId:n,refId:r}=typeof e==`string`?{storyId:e,refId:void 0}:e,i=m.getData(n,r);if([`story`,`docs`].includes(i?.type)){let{parameters:e}=i;if(e)return t?e[t]:e}return null},getCurrentParameter:e=>{let{storyId:n,refId:r}=t.getState();return m.getParameters({storyId:n,refId:r},e)||void 0},jumpToComponent:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState();if(!m.getData(r,a))return;let o=a?i[a].filteredIndex||{}:n;if(!o)return;let s=m.findSiblingStoryId(r,o,e,!0);s&&m.selectStory(s,void 0,{ref:a})},jumpToStory:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState(),o=m.getData(r,a);if(!o)return;let s=o.refId?i[o.refId].filteredIndex:n;if(!s)return;let c=m.findSiblingStoryId(r,s,e,!1);c&&m.selectStory(c,void 0,{ref:a})},selectFirstStory:()=>{let e=t.getState();if(ja(e)){let{filteredIndex:t}=e;if(!t)return;let n=Object.keys(t).find(e=>t[e].type===`story`);n&&m.selectStory(n);return}let{index:n}=e;if(!n)return;let r=Object.keys(n).find(e=>n[e].type===`story`);if(r){m.selectStory(r);return}c(`/`)},selectStory:(e=void 0,n=void 0,r={})=>{let{ref:i}=r,{storyId:a,index:o,filteredIndex:s,refs:l,settings:u}=t.getState(),d=e=>e?.type===`docs`||e?.type===`story`?(t.setState({settings:{...u,lastTrackedStoryId:e.id}}),c(`/${e.type}/${e.refId?`${e.refId}_${e.id}`:e.id}`),!0):!1,f=a?.split(`--`,2)[0],p=i?l[i].index:o,h=i?l[i].filteredIndex:s;if(!(!p||!h))if(n)if(!e)d(p[np(f,n)]);else{let t=i?`${i}_${np(e,n)}`:np(e,n);if(p[t])d(p[t]);else{let t=p[ep(e)];if(t?.type===`component`){let e=t.children.find(e=>p[e].name===n);d(e?p[e]:void 0)}}}else{let t=e?p[e]||p[ep(e)]:p[f];if(!t)throw Error(`Unknown id or title: '${e}'`);d(t)||d(m.findLeafEntry(h,t.id))}},findLeafEntry(e,t){let n=e[t];if(!n)return;if(n.type===`docs`||n.type===`story`)return n;let r=n.children.find(t=>e[t]);return r?m.findLeafEntry(e,r):void 0},findLeafStoryId(e,t){return m.findLeafEntry(e,t)?.id},findAllLeafStoryIds(e){let{index:n}=t.getState();if(!n)return[];let r=(e,t=[])=>{let i=n[e];return i&&(i.type===`story`&&t.push(i.id),`children`in i&&i.children?.forEach(e=>r(e,t))),t};return r(e,[])},findSiblingStoryId(e,t,n,r){if(r){let r=t_(t),i=r.findIndex(t=>t.includes(e));return i===r.length-1&&n>0||i===0&&n<0?void 0:r[i+n]?r[i+n][0]:void 0}let i=n_(t),a=i.indexOf(e);if(!(a===i.length-1&&n>0)&&!(a===0&&n<0))return i[a+n]},updateStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(Ov,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(mv,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await qv(Jv);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){lv.warn(`Skipping story index with version v${t.v}, awaiting SET_STORIES.`);return}await m.setIndex(t)}catch(e){await t.setState({indexError:e})}},setIndex:async e=>{let{filteredIndex:n,index:i,filters:a}=t.getState(),o=Mv.getAll(),c=$g(e,{provider:r,docsOptions:s,filters:a,allStatuses:o,statusFilterKey:Zv}),l=$g(e,{provider:r,docsOptions:s,filters:{},allStatuses:o});await t.setState({internal_index:e,filteredIndex:e_(c,n),index:e_(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i;a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o})}else{let{index:e,filteredIndex:i}=t.getState();e&&e[n]&&(e[n]={...e[n],...r}),i&&i[n]&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},updateDocs:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i;a[n]={...a[n],...r},o[n]={...o[n],...r},await e.updateRef(t,{index:a,filteredIndex:o})}else{let{index:e,filteredIndex:i}=t.getState();e&&(e[n]={...e[n],...r}),i&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},setPreviewInitialized:async n=>{n?e.updateRef(n.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(n,i)=>{await t.setState({filters:{...t.getState().filters,[n]:i}});let{internal_index:a}=t.getState();if(!a)return;await m.setIndex(a);let o=await e.getRefs();for(let[t,{internal_index:n,...r}]of Object.entries(o))await e.setRef(t,{...r,storyIndex:n},!0);r.channel?.emit(vv,{id:n})},resetTagFilters:async()=>{await l(e=>({includedTagFilters:e.defaultIncludedTagFilters,excludedTagFilters:e.defaultExcludedTagFilters})),await h()},setAllTagFilters:async(e,t)=>{await l({includedTagFilters:e,excludedTagFilters:t}),await h()},addTagFilters:async(e,t)=>{await d(`tag`,e,t),await h(),e.length===1&&Qv.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:t?`exclude`:`include`})},removeTagFilters:async e=>{await f(`tag`,e),await h(),e.length===1&&Qv.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:`remove`})},resetStatusFilters:async()=>{await l({includedStatusFilters:[],excludedStatusFilters:[]}),await g()},setAllStatusFilters:async(e,n)=>{let r=t.getState(),i=new Set(r.includedStatusFilters??[]),a=new Set(r.excludedStatusFilters??[]),o=new Set(e),s=new Set(n);await l({includedStatusFilters:e,excludedStatusFilters:n}),await g();let c=new Set([...i,...a,...o,...s]);for(let e of c){let t=i.has(e),n=a.has(e),r=o.has(e),c=s.has(e);if(t===r&&n===c)continue;let l;l=r?`include`:c?`exclude`:`remove`,p(`interaction`,{filterType:`status`,filterId:e,action:l})}},addStatusFilters:async(e,t)=>{await d(`status`,e,t),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:t?`exclude`:`include`})},removeStatusFilters:async e=>{await f(`status`,e),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:`remove`})}},h=()=>{let{includedTagFilters:e,excludedTagFilters:n}=t.getState();return m.experimental_setFilter(Yv,Kv(e,n))},g=()=>{let{includedStatusFilters:e,excludedStatusFilters:n}=t.getState();return m.experimental_setFilter(Zv,zv(e??[],n??[]))};r.channel?.on(Dv,function({storyId:n,viewMode:i}){let{sourceType:a}=d_(this,e);if(a===`local`){let e=t.getState(),a=e.path===`/`||e.viewMode===`story`||e.viewMode===`docs`,o=e.viewMode&&e.storyId,s=e.viewMode!==i||e.storyId!==n,{type:l}=e.index?.[e.storyId]||{},u=!(l===`root`||l===`component`||l===`group`);if(a){if(ja(e)&&!o){let{filteredIndex:t}=e;if(!(t&&t[n]?.type===`story`)){let e=t?Object.keys(t).find(e=>{let n=t[e];return n.type===`story`||n.type===`docs`}):void 0;e&&c(`/${i}/${e}`);return}}o&&s&&u?r.channel?.emit(_v,{storyId:e.storyId,viewMode:e.viewMode}):s&&c(`/${i}/${n}`)}}}),r.channel?.on(dv,function(){let{ref:t}=d_(this,e);m.setPreviewInitialized(t)}),r.channel?.on(Cv,function(){let{sourceType:t}=d_(this,e);if(t===`local`){let t=m.getCurrentParameter(`options`);t&&e.setOptions(Zh(t))}}),r.channel?.on(Ev,function({id:n,...i}){let{ref:a,sourceType:o}=d_(this,e);if(m.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(Zh(n)),t.setState({hasCalledSetOptions:!0})}if(o===`local`){let{storyId:e,index:n,refId:i}=t.getState();if(!n)return;let a=Array.from(new Set([m.findSiblingStoryId(e,n,1,!0),m.findSiblingStoryId(e,n,-1,!0)])).filter(Boolean);r.channel?.emit(pv,{ids:a,options:{target:i}})}}),r.channel?.on(fv,function({id:t,...n}){let{ref:r}=d_(this,e);m.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(yv,function(t){let{ref:n}=d_(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{m.setIndex(t);let n=m.getCurrentParameter(`options`);e.setOptions(Zh(n))}}),r.channel?.on(bv,function(t){let{ref:n}=d_(this,e),r=t.v?Jg(t):t.stories;if(n)e.setRef(n.id,{...n,setStoriesData:r},!0);else throw Error(`Cannot call SET_STORIES for local frame`)}),r.channel?.on(hv,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=d_(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(Sv,function({storyId:t,args:n}){let{ref:r}=d_(this,e);m.updateStory(t,{args:n},r)}),r.channel?.on(uv,function(t){let{ref:n}=d_(this,e);m.setPreviewInitialized(n)}),r.channel?.on(Tv,function(t){let{ref:n}=d_(this,e);m.setPreviewInitialized(n)}),r.channel?.on(gv,()=>{let e=r.getConfig()?.sidebar?.filters||{},{includedTagFilters:n,excludedTagFilters:i,includedStatusFilters:a,excludedStatusFilters:o,tagPresets:s}=t.getState();t.setState({filters:{...t.getState().filters,...e,[Xv]:Gv(s),[Yv]:Kv(n,i),[Zv]:zv(a,o)}})}),Mv.onAllStatusChange(async()=>{g();let{internal_index:n}=t.getState();if(!n)return;await m.setIndex(n);let r=await e.getRefs();Object.entries(r).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)})});let _=r.getConfig()?.sidebar?.filters||{},v=kv.TAGS_OPTIONS||{},y=Wv(v),{tags:b,statuses:x}=hm(i??{search:``}),S=Hv(b),C=b!==void 0,w=C?S.included:y.included,T=C?S.excluded:y.excluded,E=Lv(x),D=E.included,O=E.excluded;return{api:m,state:{storyId:a,viewMode:o,hasCalledSetOptions:!1,previewInitialized:!1,filters:{..._,[Xv]:Gv(v),[Yv]:Kv(w,T),[Zv]:zv(D,O)},tagPresets:v,defaultIncludedTagFilters:y.included,defaultExcludedTagFilters:y.excluded,includedTagFilters:w,excludedTagFilters:T,includedStatusFilters:D,excludedStatusFilters:O},init:async()=>{if(r.channel?.on(wv,()=>m.fetchIndex()),await m.fetchIndex(),u)return;u=!0;let e=w.some(e=>Qv.has(e))||T.some(e=>Qv.has(e)),t=!!globalThis?.FEATURES?.changeDetection&&(D.length>0||O.length>0);(e||t)&&p(`url`)}}},ny={},f(ny,{init:()=>hy}),{GLOBALS_UPDATED:ry,NAVIGATE_URL:iy,SET_CURRENT_STORY:ay,STORY_ARGS_UPDATED:oy,UPDATE_QUERY_PARAMS:sy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:cy}=__STORYBOOK_MODULE_GLOBAL__,ly=v(za(),1),uy=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},dy=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),fy=(e,t)=>{let n=dy(e),r=dy(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},my=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u,path:d,...f}=hm(e),p,m,h;uy(a)===!0?(p=0,m=0,h=0):uy(a)===!1&&(p=y_,m=b_,h=x_),i||(uy(s)===!0&&(p=y_),uy(s)===!1&&(p=0)),uy(o)===!1&&(m=0,h=0);let g={navSize:p,bottomPanelHeight:m,rightPanelWidth:h,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:uy(u)},_={enableShortcuts:uy(c)},v=l||void 0,y=r,b=Sa(py,f)?py:f;return py=b,{viewMode:n,layout:g,ui:_,selectedPanel:v,location:e,path:t,customQueryParams:b,storyId:y}},hy=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n(Av(e,t),r),o={getStoryHrefs(e,n={}){let{id:r,refId:a}=i.getCurrentStoryData()??{},o=e===r&&n.refId===a,{customQueryParams:s,location:c,refs:l}=t.getState(),{base:u,inheritArgs:d=o,inheritGlobals:f=!0,queryParams:p={},refId:m,viewMode:h=`story`}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let g=c.pathname||`/`,_=cy.window.location.origin+g,v=cy.STORYBOOK_NETWORK_ADDRESS??_,y=u===`origin`?_:u===`network`?v:g,b=m?l[m].url+`/iframe.html`:cy.PREVIEW_URL||`${y.replace(/\/[^/]*\.html$/,``).replace(/\/?$/,`/`)}iframe.html`,S=m?`&refId=${encodeURIComponent(m)}`:``,{args:C=``,globals:w=``,...T}=p,E=d?fy(s?.args??``,C):C,D=f?fy(s?.globals??``,w):w,O=(0,ly.stringify)(T,{nesting:!0,nestingSyntax:`js`}),k=(0,ly.stringify)(x(T,[`id`,`viewMode`]),{nesting:!0,nestingSyntax:`js`});return E&&=`&args=${E}`,D&&=`&globals=${D}`,O&&=`&${O}`,k&&=`&${k}`,{managerHref:`${y}?path=/${h}/${m?`${m}_`:``}${e}${E}${D}${O}`,previewHref:`${b}?id=${e}&viewMode=${h}${S}${E}${m?``:D}${k}`}},getQueryParam(e){let{customQueryParams:n}=t.getState();return n?n[e]:void 0},getUrlState(){let{location:e,path:n,customQueryParams:r,storyId:i,url:a,viewMode:o}=t.getState();return{path:n,hash:e?.hash??``,queryParams:r,storyId:i,url:a,viewMode:o}},setQueryParams(e){let{customQueryParams:n}=t.getState(),i={...n};for(let[t,n]of Object.entries(e))n==null?delete i[t]:i[t]=n;Sa(n,i)||(t.setState({customQueryParams:i}),r.channel?.emit(sy,i))},applyQueryParams(e,t){let{path:n,hash:r=``,queryParams:i}=o.getUrlState();a(`${n}${r}`,{...i,...e},t),o.setQueryParams(e)},navigateUrl(e,t){n(e,{plain:!0,...t})}},s=()=>{let{path:e,hash:t=``,queryParams:n,viewMode:r}=o.getUrlState();if(r!==`story`)return;let s=i.getCurrentStoryData();if(s?.type!==`story`)return;let{args:c,initialArgs:l}=s,u=pm(l,c);a(`${e}${t}`,{...n,args:u||null},{replace:!0}),o.setQueryParams({args:u||null})};r.channel?.on(ay,()=>s());let c;return r.channel?.on(oy,()=>{`requestIdleCallback`in cy.window?(c&&cy.window.cancelIdleCallback(c),c=cy.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(ry,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=pm(t,bg(t,e));a(`${n}${r}`,{...i,globals:s||null},{replace:!0}),o.setQueryParams({globals:s||null})}),r.channel?.on(iy,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:my(e),init:()=>{t.registerPersistenceHandler(`url`,(e,n)=>{if(n){let e=n(t.getState());o.applyQueryParams(e,{replace:!0})}})}}},gy={},f(gy,{init:()=>Cy}),_y=v(pe(),1),{global:vy}=__STORYBOOK_MODULE_GLOBAL__,yy=`10.4.6`,{VERSIONCHECK:by}=vy,xy=(0,_y.default)(1)(()=>{try{return{...JSON.parse(by).data||{}}}catch{return{}}}),Sy=e=>e.includes(`vue`)?`vue`:e,Cy=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:yy},...xy()},dismissedVersionNotification:t},r={getCurrentVersion:()=>{let{versions:{current:t}}=e.getState();return t},getLatestVersion:()=>{let{versions:{latest:t,next:n,current:r}}=e.getState();return r&&sg.default.prerelease(r.version)&&n?t&&sg.default.gt(t.version,n.version)?t:n:t},getDocsUrl:({asset:t,subpath:n=t,versioned:r,renderer:i,ref:a=`ui`})=>{let{versions:o}=e.getState(),s=o.latest?.version,c=o.current?.version,l=c?.startsWith(`0.0.0`)&&s||c,u=`https://storybook.js.org/${t?`docs-assets`:`docs`}/`;if(t&&l)u+=`${sg.default.major(l)}.${sg.default.minor(l)}/`;else if(r&&l&&s){let e=sg.default.diff(s,l);e===`patch`||e===null||(u+=`${sg.default.major(l)}.${sg.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof vy.STORYBOOK_RENDERER<`u`){let e=vy.STORYBOOK_RENDERER;e&&(u+=`?renderer=${Sy(e)}`)}return a&&(u+=`${u.includes(`?`)?`&`:`?`}ref=${a}`),f&&(u+=`#${f}`),u},versionUpdateAvailable:()=>{let e=r.getLatestVersion(),t=r.getCurrentVersion();if(e){if(!e.version||!t.version)return!0;let n=sg.default.prerelease(t.version)?`${sg.default.major(t.version)}.${sg.default.minor(t.version)}.${sg.default.patch(t.version)}`:t.version,r=sg.default.diff(n,e.version);return sg.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=xy();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},wy={},f(wy,{init:()=>My}),{REQUEST_WHATS_NEW_DATA:Ty,RESULT_WHATS_NEW_DATA:Ey,SET_WHATS_NEW_CACHE:Dy,TOGGLE_WHATS_NEW_NOTIFICATIONS:Oy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ky}=__STORYBOOK_MODULE_GLOBAL__,Ay=`whats-new`,jy=({color:e=`currentColor`,size:t=14})=>cg.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},cg.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z`,fill:e})),My=({fullAPI:e,store:t,provider:n})=>{let r={whatsNewData:void 0};function i(e){t.setState({whatsNewData:e}),r.whatsNewData=e}let a={isWhatsNewUnread(){return r.whatsNewData?.status===`SUCCESS`&&!r.whatsNewData.postIsRead},whatsNewHasBeenRead(){r.whatsNewData?.status===`SUCCESS`&&(s({lastReadPost:r.whatsNewData.url}),i({...r.whatsNewData,postIsRead:!0}),e.clearNotification(Ay))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(Oy,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(Ty),new Promise(e=>n.channel?.once(Ey,({data:t})=>e(t)))}function s(e){n.channel?.emit(Dy,e)}return{init:async()=>{if(ky.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState();!(n?.path===`/onboarding`||n.queryParams?.onboarding===`true`)&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:Ay,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:cg.createElement(jy,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},Ny=v(dg(),1),Py=e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),Yi(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:Zi(r)})},Py(Ny.default._),Fy=`@storybook/manager/store`,Iy=class{constructor({allowPersistence:e,setState:t,getState:n}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=n}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let e of[Ny.default.local,Ny.default.session]){let t=Qh(e);if(`includedTagFilters`in t||`excludedTagFilters`in t){let{includedTagFilters:n,excludedTagFilters:r,...i}=t;$h(e,i)}}let t=Qh(Ny.default.local),n=Qh(Ny.default.session);return{...e,...t,...n}}getState(){return this.upstreamGetState()}async setState(e,t,n){let r,i;typeof t==`function`?(r=t,i=n):i=t;let{persistence:a=`none`}=i||{},o={},s={};typeof e==`function`?o=t=>(s=e(t),s):(o=e,s=o);let c=await new Promise(e=>{this.upstreamSetState(o,()=>{e(this.getState())})});if(a!==`none`&&this.upstreamPersistence)if(a===`url`){let e=this.persistenceHandlers.get(`url`);e&&await e(s,i?.serialize)}else await eg(a===`session`?Ny.default.session:Ny.default.local,s);return r&&r(c),c}},{ActiveTabs:Ly}=p_,Ry=vg({api:void 0,state:Cg({})}),zy=(...e)=>xg({},...e),By=class extends rg.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(e=>{`init`in e&&e.init()})};let{location:t,path:n,refId:r,viewMode:i=e.docsOptions.docsMode?`docs`:e.viewMode,singleStory:a,storyId:o,docsOptions:s,navigate:c}=e,l=new Iy({getState:()=>this.state,setState:(e,t)=>(this.setState(e,()=>t(this.state)),this.state)}),u={location:t,path:n,viewMode:i,singleStory:a,storyId:o,refId:r},d={docsOptions:s};this.state=l.getInitialState(Cg({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[F_,Fg,jg,p_,k_,L_,z_,cv,Ug,Lg,ny,gy,wy,j_].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=Cg(this.state,...this.modules.map(e=>e.state)),m=Object.assign(this.api,{navigate:c},...this.modules.map(e=>e.api));this.state=p,this.api=m}static getDerivedStateFromProps(e,t){return t.path===e.path?null:{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!_(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return rg.createElement(Vy,{effect:this.initModules},rg.createElement(Ry.Provider,{value:t},rg.createElement(tg,null,e)))}},By.displayName=`Manager`,Vy=({children:e,effect:t})=>(rg.useEffect(t,[]),e),Hy=e=>e,globalThis.STORYBOOK_ADDON_STATE={},{STORYBOOK_ADDON_STATE:Uy}=globalThis,{Channel:Wy}=__STORYBOOK_MODULE_CHANNELS__,Gy={id:`storybook/test-provider`,leader:!0,initialState:{}},{fullTestProviderStore:Ky,getTestProviderStoreById:qy,useTestProviderStore:Jy,universalTestProviderStore:Yy}=ng({universalTestProviderStore:sn.create({...Gy,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:jv}),Xy={id:`storybook/checklist`,initialState:{items:{accessibilityTests:{status:`open`},aiSetup:{status:`open`},autodocs:{status:`open`},ciTests:{status:`open`},controls:{status:`open`},coverage:{status:`open`},guidedTour:{status:`open`},installA11y:{status:`open`},installChromatic:{status:`open`},installDocs:{status:`open`},installVitest:{status:`open`},mdxDocs:{status:`open`},moreComponents:{status:`open`},moreStories:{status:`open`},onboardingSurvey:{status:`open`},organizeStories:{status:`open`},renderComponent:{status:`open`},runTests:{status:`open`},publishStorybook:{status:`open`},shareStorybook:{status:`open`},viewports:{status:`open`},visualTests:{status:`open`},whatsNewStorybook10:{status:`open`},writeInteractions:{status:`open`}},widget:{}}},Zy=e=>({getValue:t=>e.getState().items[t]??{status:`open`,mutedAt:void 0},accept:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`accepted`}}}))},done:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`done`}}}))},skip:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`skipped`}}}))},reset:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`open`}}}))},mute:t=>{e.setState(e=>({...e,items:t.reduce((t,n)=>({...t,[n]:{...e.items[n],mutedAt:Date.now()}}),e.items)}))},disable:t=>{e.setState(e=>({...e,widget:{...e.widget,disable:t},items:Object.entries(e.items).reduce((e,[t,n])=>({...e,[t]:{...n,mutedAt:void 0}}),e.items)}))}}),Qy=sn.create({...Xy,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),Zy(Qy)})),eb=i((e=>{var t=o();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})},[e,n,t]),a(function(){return u(o)&&l({inst:o}),e(function(){u(o)&&l({inst:o})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),tb=i(((e,t)=>{t.exports=eb()})),nb=e({A:()=>qk,ActionList:()=>nF,Bar:()=>jR,Blockquote:()=>Jk,Button:()=>VP,Code:()=>iA,DL:()=>aA,Div:()=>oA,EmptyTabContent:()=>qR,ErrorFormatter:()=>oI,FlexBar:()=>FR,Form:()=>KI,H1:()=>sA,H2:()=>cA,H3:()=>lA,H4:()=>uA,H5:()=>dA,H6:()=>fA,HR:()=>pA,IconButton:()=>UP,Img:()=>mA,LI:()=>hA,Link:()=>MA,ListItem:()=>SR,Loader:()=>Kz,OL:()=>_A,P:()=>vA,Popover:()=>YI,PopoverProvider:()=>cR,Pre:()=>yA,ResetWrapper:()=>Gk,ScrollArea:()=>ye,Select:()=>iL,Separator:()=>lz,Span:()=>bA,SyntaxHighlighter:()=>$k,TT:()=>xA,TabBar:()=>rz,TabButton:()=>VR,TabList:()=>xz,TabPanel:()=>Cz,TabWrapper:()=>az,Table:()=>SA,Tabs:()=>sz,TabsState:()=>cz,TabsView:()=>kz,ToggleButton:()=>WP,Toolbar:()=>uz,Tooltip:()=>lR,TooltipLinkList:()=>ER,TooltipNote:()=>HA,TooltipProvider:()=>zP,UL:()=>wA,Zoom:()=>XF,codeCommon:()=>Hk,components:()=>Yz,convertToReactAriaPlacement:()=>LP,createCopyToClipboardFunction:()=>ab,nameSpaceClassNames:()=>Bk,resetComponents:()=>Xz,useTabsState:()=>Tz,withReset:()=>Uk});async function rb(e){try{await FA.top?.navigator.clipboard.writeText(e)}catch{await FA.navigator.clipboard.writeText(e)}}async function ib(e){let t=PA.createElement(`TEXTAREA`),n=PA.activeElement;t.value=e,PA.body.appendChild(t),t.select(),PA.execCommand(`copy`),PA.body.removeChild(t),n.focus()}function ab(){return FA.navigator?.clipboard?rb:ib}function ob(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function sb(...e){return t=>{let n=!1,r=e.map(e=>{let r=ob(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ob(e[t],null)}}}}function cb(e){return typeof e==`object`&&!!e&&`then`in e}function lb(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===LA&&`_payload`in e&&cb(e._payload)}function ub(e){let t=db(e),n=sD.forwardRef((e,n)=>{let{children:r,...i}=e;lb(r)&&typeof RA==`function`&&(r=RA(r._payload));let a=sD.Children.toArray(r),o=a.find(pb);if(o){let e=o.props.children,r=a.map(t=>t===o?sD.Children.count(e)>1?sD.Children.only(null):sD.isValidElement(e)?e.props.children:null:t);return(0,cD.jsx)(t,{...i,ref:n,children:sD.isValidElement(e)?sD.cloneElement(e,void 0,r):null})}return(0,cD.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function db(e){let t=sD.forwardRef((e,t)=>{let{children:n,...r}=e;if(lb(n)&&typeof RA==`function`&&(n=RA(n._payload)),sD.isValidElement(n)){let e=hb(n),i=mb(r,n.props);return n.type!==sD.Fragment&&(i.ref=t?sb(t,e):e),sD.cloneElement(n,i)}return sD.Children.count(n)>1?sD.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function fb(e){let t=({children:e})=>(0,cD.jsx)(cD.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=BA,t}function pb(e){return sD.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===BA}function mb(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function hb(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gb(e){let[t,n]=(0,pD.useState)(e),r=(0,pD.useRef)(t),i=(0,pD.useRef)(null),a=(0,pD.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return W(()=>{r.current=t,i.current&&a.current()}),[t,(0,pD.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}function _b(e=!1){let t=(0,hD.useContext)(GA),n=(0,hD.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=hD.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=qA.get(e);n==null?qA.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,qA.delete(e))}n.current=++t.current}return n.current}function vb(e){let t=(0,hD.useContext)(GA),n=_b(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function yb(e){let t=hD.useId(),[n]=(0,hD.useState)(Cb()),r=n?`react-aria`:`react-aria${WA.prefix}`;return e||`${r}-${t}`}function bb(){return!1}function xb(){return!0}function Sb(e){return()=>{}}function Cb(){return typeof hD.useSyncExternalStore==`function`?hD.useSyncExternalStore(Sb,bb,xb):(0,hD.useContext)(KA)}function wb(e){let[t,n]=(0,mD.useState)(e),r=(0,mD.useRef)(null),i=JA(t),a=(0,mD.useRef)(null);if(ZA&&ZA.register(a,i),YA){let e=XA.get(i);e&&!e.includes(r)?e.push(r):XA.set(i,[r])}return W(()=>{let e=i;return()=>{ZA&&ZA.unregister(a),XA.delete(e)}},[i]),(0,mD.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function Tb(e,t){if(e===t)return e;let n=XA.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=XA.get(t);return r?(r.forEach(t=>t.current=e),e):t}function Eb(e=[]){let t=wb(),[n,r]=gb(t),i=(0,mD.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return W(i,[t,i,...e]),n}function Db(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function Ob(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function kb(e){return Ob(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}function Ab(){return $A}function jb(e,t){if(!Ab())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:kb(n)?n.host:n.parentNode}return!1}function Mb(e){return Ab()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Nb(e,t,n,r){return Ab()?new tj(e,t,n,r):e.createTreeWalker(t,n,r)}function Pb(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Pb(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Fb(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Pb(e))&&(r&&(r+=` `),r+=t);return r}function z(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Db(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=nj(n,i):e===`id`&&n&&i?t.id=Tb(n,i):t[e]=i===void 0?n:i}}return t}function Ib(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=Lb(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():Lb(e[n],null)})}}}function Lb(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Rb(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(rj.has(t)||n&&ij.has(t)||r&&aj.has(t)||i&&oj.has(t)||a&&(sj.has(t)||t.endsWith(`Capture`)&&sj.has(t.slice(0,-7)))||o?.has(t)||cj.test(t))&&(s[t]=e[t]);return s}function zb(e){if(Bb())e.focus({preventScroll:!0});else{let t=Vb(e);e.focus(),Hb(t)}}function Bb(){if(lj==null){lj=!1;try{document.createElement(`div`).focus({get preventScroll(){return lj=!0,!0}})}catch{}}return lj}function Vb(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Hb(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ub(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function Wb(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Gb(e){let t=null;return()=>(t??=e(),t)}function Kb(){return(0,gD.useContext)(yj)}function qb(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Jb(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;vj()&&!((i=window.event)==null||(r=i.type)==null)&&r.startsWith(`key`)&&e.target===`_blank`&&(uj()?a=!0:o=!0);let l=hj()&&uj()&&!fj()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent(`click`,{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Jb.isOpening=n,zb(e),e.dispatchEvent(l),Jb.isOpening=!1}function Yb(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function Xb(e,t){Yb(e,e=>Jb(e,t))}function Zb(e){let t=Kb().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function Qb(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&qb(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}function $b(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=bj.get(t.target);r||(r=new Set,bj.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=bj.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),bj.delete(t.target)),bj.size===0)){for(let e of xj)e();xj.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function ex(){for(let[e]of bj)`isConnected`in e&&!e.isConnected&&bj.delete(e)}function tx(e){requestAnimationFrame(()=>{ex(),bj.size===0?e():xj.add(e)})}function nx(){let e=(0,_D.useRef)(new Map),t=(0,_D.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,_D.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,_D.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,_D.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function rx(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=wb(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function ix(e){let t=(0,vD.useRef)(null),n=(0,vD.useRef)(void 0),r=(0,vD.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}else if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,vD.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}function ax(e){let t=(0,yD.useRef)(null);return Sj(()=>{t.current=e},[e]),(0,yD.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function ox(e,t){let n=(0,bD.useRef)(!0),r=(0,bD.useRef)(null);W(()=>(n.current=!0,()=>{n.current=!1}),[]),W(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function sx(){return typeof window.ResizeObserver<`u`}function cx(e){let{ref:t,box:n,onResize:r}=e,i=ax(r);(0,xD.useEffect)(()=>{let e=t?.current;if(e)if(sx()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}else return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}},[t,n])}function lx(e,t){W(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ux(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function dx(e,t){let n=e;for(ux(n,t)&&(n=n.parentElement);n&&!ux(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function fx(e,t){let n=[];for(;e&&e!==document.documentElement;)ux(e,t)&&n.push(e),e=e.parentElement;return n}function px(e){return uj()?e.metaKey:e.ctrlKey}function mx(e){return e instanceof HTMLInputElement&&!Cj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function hx(e){let[t,n]=(0,SD.useState)();return W(()=>{if(!e)return;let t=Tj.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${wj++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},Tj.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),Tj.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function gx(e,t,n,r){let i=ax(n),a=n==null;(0,CD.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}function _x(e,t){let n=vx(e,t,`left`),r=vx(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:l,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=o+parseInt(l,10),h=s+parseInt(c,10),g=m+e.clientWidth,_=h+e.clientHeight,v=parseInt(u,10)||0,y=parseInt(f,10)||0,b=parseInt(d,10)||0,x=parseInt(p,10)||0;n<=o+x?o=n-parseInt(l,10)-x:n+i>g-b&&(o+=n+i-g+b),r<=h+v?s=r-parseInt(c,10)-v:r+a>_-y&&(s+=r+a-_+y),e.scrollLeft=o,e.scrollTop=s}function vx(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function yx(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=fx(e);s||t.push(o);for(let n of t)_x(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)==null||n.call(e,{block:`nearest`});let{left:c,top:l}=e.getBoundingClientRect();if(Math.abs(o-c)>1||Math.abs(s-l)>1){var r,i,a;t==null||(i=t.containingElement)==null||(r=i.scrollIntoView)==null||r.call(i,{block:`center`,inline:`center`}),(a=e.scrollIntoView)==null||a.call(e,{block:`nearest`})}}}}function bx(e){return e.pointerType===``&&e.isTrusted?!0:_j()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function xx(e){return!_j()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function Sx(e){let t=wD.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}function Cx(e,t=!0){let[n,r]=(0,ED.useState)(!0),i=n&&t;return W(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),Tx(e,i,(0,ED.useCallback)(()=>r(!1),[])),i}function wx(e,t){let[n,r]=(0,ED.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`);break}let i=n===`exiting`;return Tx(e,i,(0,ED.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function Tx(e,t,n){W(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,TD.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function Ex(e){let t=QA(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function Dx(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function Ox(e,t){return Oj?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&Ex(e)&&Dx(e,t)&&(!e.parentElement||Ox(e.parentElement,e))}function kx(e){return e.matches(Aj)&&Ox(e)&&!jx(e)}function Ax(e){return e.matches(jj)&&Ox(e)&&!jx(e)}function jx(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Mx(e,t,n){let[r,i]=(0,DD.useState)(e||t),a=(0,DD.useRef)(r),o=(0,DD.useRef)(e!==void 0),s=e!==void 0;(0,DD.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;Mj(()=>{a.current=c});let[,l]=(0,DD.useReducer)(()=>({}),{});return[c,(0,DD.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function Nx(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Px(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Fx(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Ix(e){let t=(0,OD.useRef)({isFocused:!1,observer:null});W(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=ax(t=>{e?.(t)});return(0,OD.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{if(t.current.isFocused=!1,r.disabled){let t=Px(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}function Lx(e){for(;e&&!kx(e);)e=e.parentElement;let t=QA(e),n=t.document.activeElement;if(!n||n===e)return;Nj=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,zb(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,zb(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),Nj=!1,r=!1},l=requestAnimationFrame(c);return c}function Rx(e){if(pj()){if(Pj==="default"){let t=G(e);Fj=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}Pj=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;Ij.set(e,e.style[t]),e.style[t]=`none`}}function zx(e){if(pj()){if(Pj!==`disabled`)return;Pj=`restoring`,setTimeout(()=>{tx(()=>{if(Pj===`restoring`){let t=G(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=Fj||``),Fj=``,Pj=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ij.has(e)){let t=Ij.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),Ij.delete(e)}}function Bx(e,t){return t.get?t.get.call(e):t.value}function Vx(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function Hx(e,t){return Bx(e,Vx(e,t,`get`))}function Ux(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Wx(e,t,n){Ux(e,t),t.set(e,n)}function Gx(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(`attempted to set read only private field`);t.value=n}}function Kx(e,t,n){return Gx(e,Vx(e,t,`set`),n),n}function qx(e){let t=(0,AD.useContext)(Lj);if(t){let{register:n,...r}=t;e=z(r,e),n()}return lx(t,e.ref),e}function Jx(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=qx(e),[m,h]=(0,AD.useState)(!1),g=(0,AD.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=nx(),y=ax((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new zj(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=ax((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new zj(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new zj(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=ax((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new zj(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=ax(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(Zx(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||zx(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=ax(e=>{u&&S(e)}),w=ax(e=>{s||o?.(e)}),T=ax((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);Fx(n,t),o(Px(n))}}),E=(0,AD.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(Xx(t.nativeEvent,t.currentTarget)&&jb(t.currentTarget,Mb(t.nativeEvent))){var r;$x(Mb(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,i=y(t,`keyboard`);let r=t.currentTarget;_(G(t.currentTarget),`keyup`,Db(t=>{Xx(t,r)&&!t.repeat&&jb(r,Mb(t))&&e.target&&x(Zx(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&uj()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!jb(t.currentTarget,Mb(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!Jb.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||bx(t.nativeEvent))){let e=y(t,`virtual`),r=x(t,`virtual`),i=b(t,`virtual`);w(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=x(Zx(t.currentTarget,t),r),a=b(Zx(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,w(t),S(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&Xx(t,e.target)){var r;$x(Mb(t),t.key)&&t.preventDefault();let n=Mb(t),i=jb(e.target,Mb(t));b(Zx(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&Yx(e.target)&&jb(e.target,n)&&!t[Bj]&&(t[Bj]=!0,Jb(e.target,t,!1)),e.isPressed=!1,(r=e.metaKeyEvents)==null||r.delete(t.key)}else if(t.key===`Meta`&&(n=e.metaKeyEvents)!=null&&n.size){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())(i=e.target)==null||i.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!jb(t.currentTarget,Mb(t.nativeEvent)))return;if(xx(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||Rx(e.target),i=y(t,e.pointerType);let a=Mb(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(G(t.currentTarget),`pointerup`,n,!1),_(G(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(jb(t.currentTarget,Mb(t.nativeEvent))&&t.button===0){if(l){let n=Lx(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!jb(t.currentTarget,Mb(t.nativeEvent))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&x(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(Zx(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b(Zx(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(jb(e.target,Mb(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(zb(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{jb(e.currentTarget,Mb(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,AD.useEffect)(()=>{if(!f)return;let e=G(f.current);if(!e||!e.head||e.getElementById(Vj))return;let t=e.createElement(`style`);t.id=Vj,t.textContent=`
|
|
186
186
|
@layer {
|
|
187
187
|
[${Hj}] {
|
|
188
188
|
touch-action: pan-x pan-y pinch-zoom;
|
|
@@ -194,7 +194,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
194
194
|
* {
|
|
195
195
|
overscroll-behavior: contain;
|
|
196
196
|
}
|
|
197
|
-
}`,document.head.prepend(r);let i=n=>{if(!(n.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&n.preventDefault()}},a=e=>{let t=e.target,n=e.relatedTarget;n&&mx(n)?(n.focus({preventScroll:!0}),Ww(n,mx(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=document.activeElement!=null&&mx(document.activeElement);o.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&Ww(this,t)};let s=Db(Uw(document,`touchstart`,n,{passive:!1,capture:!0}),Uw(document,`touchmove`,i,{passive:!1,capture:!0}),Uw(document,`blur`,a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function Hw(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Uw(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ww(e,t){t||!FN?Gw(e):FN.addEventListener(`resize`,()=>Gw(e),{once:!0})}function Gw(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=dx(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;FN&&(n=Math.min(n,FN.offsetTop+FN.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function Kw(){return(0,eO.useContext)(RN)??{}}function qw(e){let{children:t}=e,n=(0,tO.useContext)(zN),[r,i]=(0,tO.useState)(0),a=(0,tO.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return tO.createElement(zN.Provider,{value:a},t)}function Jw(){let e=(0,tO.useContext)(zN);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function Yw(e){let{modalProviderProps:t}=Jw();return tO.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function Xw(e){return tO.createElement(qw,null,tO.createElement(Yw,e))}function Zw(e){let t=Cb(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=Kw();if(!e.portalContainer&&i&&(n=i()),tO.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=tO.createElement(Xw,r);return nO.createPortal(a,n)}function Qw(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,iO.useState)(!1),{focusWithinProps:a}=SS({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,iO.useMemo)(()=>r?t:t?{...xP,...t}:xP,[r]);return{visuallyHiddenProps:{...a,style:o}}}function $w(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=Qw(e);return iO.createElement(n,z(a,o),t)}function eT(e){return e&&e.__esModule?e.default:e}function tT(e){let{onDismiss:t,...n}=e,r=rx(n,tw(eT(bP),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return rO.createElement($w,null,rO.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}function nT(e,t){let n=QA(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&SP,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&d(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)d(e),e=n.nextNode()}},d=e=>{let t=CP.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),CP.set(e,t+1))};wP.length&&wP[wP.length-1].disconnect(),u(i);let f=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`&&![...o,...s].some(e=>e.contains(t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?o.add(e):e instanceof Element&&u(e)});f.observe(i,{childList:!0,subtree:!0});let p={visibleNodes:o,hiddenNodes:s,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return wP.push(p),()=>{f.disconnect();for(let e of s){let t=CP.get(e);t!=null&&(t===1?(l(e,!1),CP.delete(e)):CP.set(e,t-1))}p===wP[wP.length-1]?(wP.pop(),wP.length&&wP[wP.length-1].observe()):wP.splice(wP.indexOf(p),1)}}function rT(e){let t=wP[wP.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function iT(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=Lw({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=ow({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return zw({isDisabled:a||!t.isOpen}),(0,aO.useEffect)(()=>{if(t.isOpen&&r.current)return a?rT(i?.current??r.current):nT([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:z(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}function aT(e){let t=Cb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,oO.useState)(!1),o=(0,oO.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=Kw();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=oO.createElement(lw,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=oO.createElement(TP.Provider,{value:o},oO.createElement(xS,null,c)),sO.createPortal(c,n)}function oT(){let e=(0,oO.useContext)(TP)?.setContain;W(()=>{e?.(!0)},[e])}function sT(e,t,n){let{overlayProps:r,underlayProps:i}=Lw({...e,isOpen:t.isOpen,onClose:t.close},n);return zw({isDisabled:!t.isOpen}),oT(),(0,cO.useEffect)(()=>{if(t.isOpen&&n.current)return nT([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:z(r),underlayProps:i}}function cT(e){let[t,n]=Mx(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:n,open:(0,uO.useCallback)(()=>{n(!0)},[n]),close:(0,uO.useCallback)(()=>{n(!1)},[n]),toggle:(0,uO.useCallback)(()=>{n(!t)},[n,t])}}function lT(e={}){let{delay:t=EP,closeDelay:n=DP}=e,{isOpen:r,open:i,close:a}=cT(e),o=(0,lO.useMemo)(()=>`${++kP}`,[]),s=(0,lO.useRef)(null),c=(0,lO.useRef)(a),l=()=>{OP[o]=f},u=()=>{for(let e in OP)e!==o&&(OP[e](!0),delete OP[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),AP=!0,i(),jP&&=(clearTimeout(jP),null),MP&&=(clearTimeout(MP),null)},f=e=>{e||n<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||=setTimeout(()=>{s.current=null,c.current()},n),jP&&=(clearTimeout(jP),null),AP&&(MP&&clearTimeout(MP),MP=setTimeout(()=>{delete OP[o],MP=null,AP=!1},Math.max(DP,n)))},p=()=>{u(),l(),!r&&!jP&&!AP?jP=setTimeout(()=>{jP=null,AP=!0,d()},t):r||d()};return(0,lO.useEffect)(()=>{c.current=a},[a]),(0,lO.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),OP[o]&&delete OP[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function uT(e){let t=lT(e),n=(0,dO.useRef)(null),{triggerProps:r,tooltipProps:i}=IS(e,t,n);return dO.createElement(AS,{values:[[NP,t],[PP,{...i,triggerRef:n}]]},dO.createElement($j,{...r,ref:n},e.children))}function dT(e){let t=(0,dO.useContext)(NP),n=(0,dO.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=ow({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=Cx(e.tooltipRef,!!a)||e.isEntering||!1,c=jS({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=z(e,r);let{tooltipProps:l}=FS(e,t),u=Rb(e,{global:!0});return dO.createElement(`div`,{...z(u,c,l),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...c.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},dO.createElement(sM.Provider,{value:{...i,placement:a,ref:n}},c.children))}function fT(e=``){let t=e.toLowerCase().trim().replace(/\s+/g,`-`);return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?pO.createElement(`span`,{id:t,hidden:!0},e):null}}function pT(e){let t=e=>typeof window<`u`?window.matchMedia(e).matches:!1,[n,r]=(0,yO.useState)(t(e));function i(){r(t(e))}return(0,yO.useEffect)(()=>{let t=window.matchMedia(e);return i(),t.addEventListener(`change`,i),()=>{t.removeEventListener(`change`,i)}},[e]),n}function mT({container:e,portalSelector:t,children:n,width:r,height:i,ariaLabel:a,dismissOnClickOutside:o=!0,dismissOnEscape:s=!0,className:c,open:l,onEscapeKeyDown:u,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:m=200,variant:h=`dialog`,...g}){let _;(a===void 0||a===``)&&(_=`ariaLabel`,dF("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),u!==void 0&&(_=`onEscapeKeyDown`,dF("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(_=`onInteractOutside`,dF("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=(0,_O.useRef)(null),[{status:y,isMounted:b},x]=yF({timeout:pT(`(prefers-reduced-motion: reduce)`)?0:m,mountOnEnter:!0,unmountOnExit:!0}),S=cT({isOpen:l||b,defaultOpen:p,onOpenChange:e=>{x(e),f?.(e)}}),C=()=>{S.close()},{modalProps:w,underlayProps:T}=sT({isDismissable:o,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?e=>{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,relatedTarget:e});return d(t),!t.defaultPrevented}:void 0},S,v);if((0,_O.useEffect)(()=>{let e=l??p??!1;e&&!b?x(!0):!e&&b&&x(!1)},[l,p,b,x]),(0,_O.useEffect)(()=>{b&&(l||p)&&f?.(!0)},[b]),(0,_O.useEffect)(()=>{if(b&&(l||p)&&v.current)return nT([v.current],{shouldUseInert:!0})},[b,l,p,v]),!b||y===`exited`||y===`unmounted`)return null;let E=z(w,{onKeyDown:e=>{e.key===`Escape`?s&&(u?.(e.nativeEvent),e.nativeEvent.defaultPrevented||C()):w.onKeyDown?.(e)}}),D=e??(t?document.querySelector(t):void 0);return _O.createElement(aT,{disableFocusManagement:!0,portalContainer:D||void 0},_O.createElement(lw,{restoreFocus:!0,contain:!0,autoFocus:!0},_O.createElement(NF,{$status:y,$transitionDuration:m,...T}),_O.createElement(`div`,{role:`dialog`,"aria-label":a,ref:v,...E},_O.createElement(qF.Provider,{value:{close:C}},_O.createElement(`div`,{tabIndex:-1},_O.createElement(PF,{"data-deprecated":_,$variant:h,$status:y,$transitionDuration:m,className:c,width:r,height:i,...g},n))))))}function hT(e,t){var n=(0,TO.useRef)(null),r=(0,TO.useRef)(null);r.current=t;var i=(0,TO.useRef)(null);(0,TO.useEffect)(function(){a()});var a=(0,TO.useCallback)(function(){var t=i.current,a=r.current,o=t||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===o&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:o,subscriber:e,cleanup:o?e(o):void 0})},[e]);return(0,TO.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,TO.useCallback)(function(e){i.current=e,a()},[a])}function gT(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t===`contentBoxSize`?e.contentRect[n===`inlineSize`?`width`:`height`]:void 0}function _T(e){e===void 0&&(e={});var t=e.onResize,n=(0,TO.useRef)(void 0);n.current=t;var r=e.round||Math.round,i=(0,TO.useRef)(),a=(0,TO.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],c=(0,TO.useRef)(!1);(0,TO.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]);var l=(0,TO.useRef)({width:void 0,height:void 0}),u=hT((0,TO.useCallback)(function(t){return(!i.current||i.current.box!==e.box||i.current.round!==r)&&(i.current={box:e.box,round:r,instance:new ResizeObserver(function(t){var i=t[0],a=e.box===`border-box`?`borderBoxSize`:e.box===`device-pixel-content-box`?`devicePixelContentBoxSize`:`contentBoxSize`,o=gT(i,a,`inlineSize`),u=gT(i,a,`blockSize`),d=o?r(o):void 0,f=u?r(u):void 0;if(l.current.width!==d||l.current.height!==f){var p={width:d,height:f};l.current.width=d,l.current.height=f,n.current?n.current(p):c.current||s(p)}})}),i.current.instance.observe(t,{box:e.box}),function(){i.current&&i.current.instance.unobserve(t)}},[e.box,r]),e.ref);return(0,TO.useMemo)(function(){return{ref:u,width:o.width,height:o.height}},[u,o.width,o.height])}function vT({centered:e,scale:t,children:n}){let r=(0,wO.useRef)(null),[i,a]=(0,wO.useState)(0),o=(0,wO.useCallback)(({height:e})=>{e&&a(e/t)},[t]);return(0,wO.useEffect)(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[t]),_T({ref:r,onResize:o}),wO.createElement(JF,{centered:e,scale:t,elementHeight:i},wO.createElement(`div`,{ref:r,className:`innerZoomElementWrapper`},n))}function yT(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),jI||(jI=document.createElement(`textarea`),jI.setAttribute(`tabindex`,`-1`),jI.setAttribute(`aria-hidden`,`true`),AI(jI)),jI.parentNode===null&&document.body.appendChild(jI);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;jI.style[t]=o[t]}),AI(jI),jI.value=t;var c=MI(jI,e);jI.value=t,c=MI(jI,e),jI.value=`x`;var l=jI.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function bT(e,t,n){var r=TI(n);FO.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}function xT(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function ST(e){return{...e,type:`option`,value:TT(e.value)}}function CT(e){return`type`in e&&e.type===`reset`?e:ST(e)}function wT(e){if(e!==QI)return e}function TT(e){return e===void 0?QI:e}function ET(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}function DT(e,t){return t===void 0?[]:xT(t)?e.filter(e=>e.value===t).map(ST):e.filter(e=>t.some(t=>e.value===t)).map(ST)}function OT(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function kT(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,HO.useMemo)(()=>new WeakMap,a);return(0,HO.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=o.get(a);if(!n){n=t(a);let e=n.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);r&&(e=r+`:`+e),n=(0,HO.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}else if(typeof t!=`function`)return t},[t,n,o,r,i])}function AT(e){if((0,UO.useContext)(gL))return UO.createElement(UO.Fragment,null,e.children);let t=UO.createElement(gL.Provider,{value:!0},e.children);return UO.createElement(`template`,{"data-react-aria-hidden":!0},t)}function jT(e){let t=(t,n)=>(0,UO.useContext)(gL)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,UO.forwardRef)(t)}function MT(){return(0,UO.useContext)(gL)}function NT(e){if((0,H.useContext)(vL))return e.content;let{collection:t,document:n}=IT(e.createCollection);return H.createElement(H.Fragment,null,H.createElement(AT,null,H.createElement(vL.Provider,{value:n},e.content)),H.createElement(PT,{render:e.children,collection:t}))}function PT({collection:e,render:t}){return t(e)}function FT(e,t,n){let r=Cb(),i=(0,H.useRef)(r);return i.current=r,(0,GO.useSyncExternalStore)(e,(0,H.useCallback)(()=>i.current?n():t(),[t,n]))}function IT(e){let[t]=(0,H.useState)(()=>new hL(e?.()||new fL)),n=yL((0,H.useCallback)(e=>t.subscribe(e),[t]),(0,H.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,H.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return W(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}function LT(e){var t;return t=class extends oL{},t.type=e,t}function RT(e,t,n,r,i,a){typeof e==`string`&&(e=LT(e));let o=(0,H.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,H.useContext)(bL);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?H.createElement(bL.Provider,{value:o},i):null}return H.createElement(e.type,{ref:o},i)}function zT(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,H.forwardRef)((r,i)=>{let a=(0,H.useContext)(Qj);if(!(0,H.useContext)(_L)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return RT(e,r,i,`children`in r?r.children:null,null,e=>H.createElement(Qj.Provider,{value:a},H.createElement(n,{node:e})))});return r.displayName=t.name,r}function BT(e,t,n=VT){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,H.forwardRef)((t,i)=>RT(e,t,i,null,n(t),e=>H.createElement(r,{node:e}))??H.createElement(H.Fragment,null));return i.displayName=t.name,i}function VT(e){return kT({...e,addIdAndValue:!0})}function HT(e){let t=(0,H.useContext)(xL),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=VT({...e,idScope:r,dependencies:n});return(0,H.useContext)(vL)&&(i=H.createElement(UT,null,i)),t=(0,H.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),H.createElement(xL.Provider,{value:t},i)}function UT({children:e}){let t=(0,H.useContext)(vL),n=(0,H.useMemo)(()=>H.createElement(vL.Provider,{value:null},H.createElement(_L.Provider,{value:!0},e)),[e]);return Cb()?H.createElement(bL.Provider,{value:t},n):(0,WO.createPortal)(n,t)}function WT(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=wb(t);let o=wb(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=rx({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function GT(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=Rb(e,{labelable:!0}),{labelProps:c,fieldProps:l}=WT({...e,labelElementType:`span`});t=Nx(t,n,r);let u=(t-n)/(r-n),d=iw(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:z(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}function KT(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=Jx({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=bS(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=z(y,_,Rb(e,{labelable:!0}));return{isPressed:v,buttonProps:z(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}function qT(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}function JT({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,YO.useRef)(null),o=(0,YO.useRef)(null),s=(0,YO.useContext)(EL),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=iT({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=Cx(m,!!f)||i.isEntering||!1,g=jS({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,YO.useState)(!1);W(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,YO.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&hS(m.current)},[v,m,i.trigger]);let b=(0,YO.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=YO.createElement(t.Provider,{value:null},e);return e},[g.children,r]),x={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style},S=YO.createElement(`div`,{...z(Rb(i,{global:!0}),l),...g,role:v?`dialog`:void 0,tabIndex:v?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:x,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&YO.createElement(tT,{onDismiss:e.close}),YO.createElement(sM.Provider,{value:{...d,placement:f,ref:a}},b),YO.createElement(tT,{onDismiss:e.close}));return c?YO.createElement(aT,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):YO.createElement(aT,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&YO.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),YO.createElement(`div`,{ref:o,style:{display:`contents`}},YO.createElement(EL.Provider,{value:o},S)))}function YT(e,t,n){return kT({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:XO.createElement(XO.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,XT(e,t,n))}})}function XT(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,XO.isValidElement)(t)&&s.push((0,XO.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}function ZT(e){return(0,XO.useMemo)(()=>e==null?null:new Set([e]),[e])}function QT(e){let t=Rb(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}function $T(e){return mj()?e.altKey:e.ctrlKey}function eE(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}function tE(e){let t=wb();return RL.set(e,t),t}function nE(e){return RL.get(e)}function rE(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,tk.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=iE(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target)||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},zL)}}:void 0}}}function iE(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function aE(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:h=`action`}=e,{direction:g}=rC(),_=Kb(),v=e=>{var i;if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!((i=r.current)!=null&&i.contains(e.target)))return;let u=(n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&l&&!$T(e)){(0,nk.flushSync)(()=>{t.setFocusedKey(n,i)});let a=eE(r,n),o=t.getItemProps(n);a&&_.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!$T(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.call(n):n.getKeyBelow?.call(n,t.focusedKey);r==null&&a&&(r=n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.call(n):n.getKeyAbove?.call(n,t.focusedKey);r==null&&a&&(r=n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?null:n.getKeyLeftOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getFirstKey?.call(n,t.focusedKey):n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?null:n.getKeyRightOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getLastKey?.call(n,t.focusedKey):n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,px(e));t.setFocusedKey(r),r!=null&&(px(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,px(e));t.setFocusedKey(r),r!=null&&(px(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`a`:px(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=Ow(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&zb(t)}break}}},y=(0,rk.useRef)({top:0,left:0});gx(m,`scroll`,p?void 0:()=>{y.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let b=e=>{if(t.isFocused){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.call(n)):r(t.firstSelectedKey??n.getFirstKey?.call(n))}else!p&&m.current&&(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&m.current){let e=eE(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&zb(e),dS()===`keyboard`&&yx(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,rk.useRef)(!1);gx(r,Dj,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=ax(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=ej();Nw(r.current),Fw(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});ox(()=>{S.current&&C()},[t.collection,C]);let w=ax(()=>{t.collection.size>0&&(S.current=!1)});ox(()=>{w()},[t.focusedKey,w]),gx(r,Ej,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,rk.useRef)(i),E=(0,rk.useRef)(!1);(0,rk.useEffect)(()=>{if(T.current){let e=null;i===`first`&&(e=n.getFirstKey?.call(n)??null),i===`last`&&(e=n.getLastKey?.call(n)??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e==null&&!d&&r.current&&hS(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,rk.useRef)(t.focusedKey),O=(0,rk.useRef)(null);(0,rk.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=dS(),n=eE(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(_x(m.current,n),e!==`virtual`&&yx(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&hS(r.current),D.current=t.focusedKey,E.current=!1}),(0,rk.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),gx(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:v,onFocus:b,onBlur:x,onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:A}=rE({keyboardDelegate:n,selectionManager:t});u||(k=z(A,k));let j;d||(j=t.focusedKey==null?0:-1);let M=tE(t.collection);return{collectionProps:z(k,{tabIndex:j,"data-collection":M})}}function oE(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=Kb();t=wb(t);let p=e=>{if(e.pointerType===`keyboard`&&$T(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(px(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,ik.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?Nw(i.current):s?s():document.activeElement!==i.current&&i.current&&hS(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()});let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,ik.useRef)(null),w=S&&v,T=(0,ik.useRef)(!1),E=(0,ik.useRef)(!1),D=n.getItemProps(r),O=e=>{if(l){var t;l(),(t=i.current)==null||t.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))}_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};if(a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||cE())&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!sE())return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||cE()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&sE()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=nE(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=z(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=Db(k[e],D[e]));let{pressProps:A,isPressed:j}=Jx(k),M=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:ee}=kS({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),te=e=>{C.current===`touch`&&T.current&&e.preventDefault()},N=d!==`none`&&n.isLink(r)?e=>{Jb.isOpening||e.preventDefault()}:void 0;return{itemProps:z(m,v||b||o&&!c?A:{},w?ee:{},{onDoubleClick:M,onDragStartCapture:te,onClick:N,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:j,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function sE(){return window.event?.key===`Enter`}function cE(){let e=window.event;return e?.key===` `||e?.code===`Space`}function lE(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=aw({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,ak.useMemo)(()=>a||new VL({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=aE({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function uE(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=Rb(e,{labelable:!0}),{listProps:c}=lE({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return LL.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:z(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{var n;(t.key!==`Escape`||e.shouldUseVirtualFocus)&&((n=c.onKeyDown)==null||n.call(c,t))}})}}function dE(e){return null}function fE(e){return e.hasChildItems==null?!!(e.childItems||e.title&&ok.Children.count(e.children)>0):e.hasChildItems}function pE(e){return null}function mE(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function hE(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function gE(e){return e[0].toUpperCase()+e.slice(1)}function _E(e,t,n){let r=(0,lk.useMemo)(()=>new UL,[]),{children:i,items:a,collection:o}=e;return(0,lk.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function vE(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function yE(e){return bE(e,0)}function bE(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function xE(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...SE(e,t),t],i=[...SE(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function SE(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function CE(e){let t=WL.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(vE(i,e)):i.type===`item`&&n++};return r(e),WL.set(e,n),n}function wE(e,t,n){let{id:r,key:i,closeOnSelect:a,isVirtualized:o,"aria-haspopup":s,onPressStart:c,onPressUp:l,onPress:u,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:h,onHoverEnd:g,onKeyDown:_,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:x,selectionManager:S=t.selectionManager}=e,C=!!s,w=C&&e[`aria-expanded`]===`true`,T=e.isDisabled??S.isDisabled(i),E=e.isSelected??S.isSelected(i),D=LL.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,A=Kb(),j=()=>{var t;if(!C&&(!(O==null||(t=O.props)==null)&&t.onAction?O.props.onAction():e.onAction&&e.onAction(i),D.onAction)){let e=D.onAction;e(i)}},M=`menuitem`;C||(S.selectionMode===`single`?M=`menuitemradio`:S.selectionMode===`multiple`&&(M=`menuitemcheckbox`));let ee=Eb(),te=Eb(),N=Eb(),ne={id:r,"aria-disabled":T||void 0,role:M,"aria-label":e[`aria-label`],"aria-labelledby":ee,"aria-describedby":[te,N].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(ne[`aria-checked`]=E),o&&(ne[`aria-posinset`]=O?.index,ne[`aria-setsize`]=CE(t.collection));let re=(0,uk.useRef)(!1),ie=e=>{d?.(e),re.current=e},ae=(0,uk.useRef)(null),oe=e=>{e.pointerType!==`keyboard`&&(ae.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(re.current||e.target.click()),l?.(e)},se=e=>{p?.(e),j(),Qb(e,A,O.props.href,O?.props.routerOptions);let t=ae.current?.pointerType===`keyboard`?ae.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),ae.current=null},{itemProps:ce,isFocused:le}=oE({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:ue,isPressed:de}=Jx({onPressStart:c,onPress:u,onPressUp:oe,onPressChange:ie,onPressEnd:f,isDisabled:T}),{hoverProps:fe}=ES({isDisabled:T,onHoverStart(e){!uS()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:pe}=vS({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:ae.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:ae.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e);break}},onKeyUp:v}),{focusProps:me}=gS({onBlur:x,onFocus:y,onFocusChange:b}),he=Rb(O?.props);delete he.id;let ge=Zb(O?.props);return{menuItemProps:{...ne,...z(he,ge,C?{onFocus:ce.onFocus,"data-collection":ce[`data-collection`],"data-key":ce[`data-key`]}:ce,ue,fe,pe,me,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:se}),tabIndex:ce.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:ce.tabIndex},labelProps:{id:ee},descriptionProps:{id:te},keyboardShortcutProps:{id:N},isFocused:le,isFocusVisible:le&&S.isFocused&&uS()&&!w,isSelected:E,isPressed:de,isDisabled:T}}function TE(e){let{heading:t,"aria-label":n}=e,r=wb();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function EE(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,dk.useRef)(void 0),o=(0,dk.useRef)(void 0),s=(0,dk.useRef)(0),c=(0,dk.useRef)(void 0),l=(0,dk.useRef)(void 0),u=(0,dk.useRef)(void 0),d=(0,dk.useRef)(2),[f,p]=(0,dk.useState)(!1);cx({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=GL,a.current=void 0},h=fS(),g=ax(e=>{f&&e.preventDefault()});(0,dk.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,dk.useEffect)(()=>{let e=n.current,f=t.current;if(i||!e||!r||h!==`pointer`||!f){m();return}o.current=e.getBoundingClientRect();let _=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-s.current<KL)return;clearTimeout(c.current),clearTimeout(l.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(u.current||=n>o.current.right?`left`:`right`,n<f.getBoundingClientRect().left||n>f.getBoundingClientRect().right||r<f.getBoundingClientRect().top||r>f.getBoundingClientRect().bottom){m();return}let i=a.current.x,h=a.current.y,g=u.current===`right`?o.current.left-i:i-o.current.right,_=Math.atan2(h-o.current.top,g)+JL,v=Math.atan2(h-o.current.bottom,g)-JL,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,GL):Math.max(d.current-1,0),d.current>=GL?p(!0):p(!1),s.current=t,a.current={x:n,y:r},b&&(c.current=setTimeout(()=>{m(),l.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&f.contains(e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},qL))};return window.addEventListener(`pointermove`,_),window.addEventListener(`pointerdown`,g,!0),()=>{window.removeEventListener(`pointermove`,_),window.removeEventListener(`pointerdown`,g,!0),clearTimeout(c.current),clearTimeout(l.current),d.current=GL}},[i,r,t,h,p,g,n])}function DE(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=wb(),u=wb(),{direction:d}=rC(),f=(0,fk.useRef)(void 0),p=(0,fk.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=ax(e=>{p(),t.open(e)}),h=ax(()=>{p(),t.close()});W(()=>()=>{p()},[p]);let g={id:u,"aria-labelledby":l,submenuLevel:t.submenuLevel,...a===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:e=>{if(e.currentTarget.contains(document.activeElement))switch(e.key){case`ArrowLeft`:d===`ltr`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&zb(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&zb(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&zb(n.current));break}}}};return gx(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()}),EE({menuRef:r,submenuRef:i,isOpen:t.isOpen,isDisabled:o}),{submenuTriggerProps:{id:l,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":o?void 0:a,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:e=>{!o&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&m(`first`)},onPress:e=>{!o&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&m()},onHoverChange:e=>{o||(e&&!t.isOpen?f.current||=setTimeout(()=>{m()},s):e||p())},onKeyDown:e=>{switch(e.key){case`ArrowRight`:o||(d===`ltr`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&zb(i.current)):t.isOpen?h():e.continuePropagation());break;case`ArrowLeft`:o||(d===`rtl`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&zb(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation();break}},isOpen:t.isOpen},submenuProps:g,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}function OE(e){let t=cT(e),[n,r]=(0,pk.useState)(null),[i,a]=(0,pk.useState)([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)}}}function kE(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,mk.useState)(r?.length),c=(0,mk.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,mk.useState)(null),d=(0,mk.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,mk.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,mk.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,mk.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}function AE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function jE(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,hk.useRef)(!1),[,s]=(0,hk.useState)(!1),c=(0,hk.useRef)(null),l=(0,hk.useRef)(null),[,u]=(0,hk.useState)(null),[d,f]=Mx((0,hk.useMemo)(()=>ME(e.selectedKeys),[e.selectedKeys]),(0,hk.useMemo)(()=>ME(e.defaultSelectedKeys,new XL),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,hk.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,hk.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,hk.useRef)(i);return(0,hk.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!AE(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function ME(e,t){return e?e===`all`?`all`:new XL(e):t}function NE(e){let{onExpandedChange:t}=e,[n,r]=Mx(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=jE(e),a=(0,gk.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=_E(e,(0,gk.useCallback)(e=>new YL(e,{expandedKeys:n}),[n]),null);return(0,gk.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(PE(n,e))},setExpandedKeys:r,selectionManager:new ZL(o,i)}}function PE(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function FE({props:e,collection:t,menuRef:n}){[e,n]=NS(e,n,jL);let{filter:r,...i}=e,a=(0,U.useMemo)(()=>r?t.filter(r):t,[t,r]),o=NE({...e,collection:a,children:void 0}),s=(0,U.useContext)(eR),{isVirtualized:c,CollectionRoot:l}=(0,U.useContext)(AL),{menuProps:u}=uE({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=jS({defaultClassName:`react-aria-Menu`,className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=U.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=Rb(e,{global:!0});return U.createElement(lw,null,U.createElement(`div`,{...z(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},U.createElement(AS,{values:[[$L,o],[FL,{elementType:`div`}],[OL,{name:`MenuSection`,render:IE}],[nR,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[aR,null],[jL,null],[ML,null],[tR,o.selectionManager],[eR,s??OE({})]]},U.createElement(l,{collection:o.collection,persistedKeys:ZT(o.selectionManager.focusedKey),scrollRef:n})),f))}function IE(e,t,n,r=`react-aria-MenuSection`){let i=(0,U.useContext)($L),{CollectionBranch:a}=(0,U.useContext)(AL),[o,s]=PS(),{headingProps:c,groupProps:l}=TE({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=jS({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,U.useContext)(tR),f=jE(e),p=e.selectionMode==null?d:new iR(d,f),m=Rb(e,{global:!0});return delete m.id,U.createElement(`section`,{...z(m,u,l),ref:t},U.createElement(AS,{values:[[NL,{...c,ref:o}],[tR,p]]},U.createElement(a,{collection:i.collection,parent:n})))}function LE(e,t){let{role:n=`dialog`}=e,r=Eb();r=e[`aria-label`]?void 0:r;let i=(0,_k.useRef)(!1);return(0,_k.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){hS(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),hS(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),oT(),{dialogProps:{...Rb(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}function RE(e){let t=OE(e),n=(0,vk.useRef)(null),{triggerProps:r,overlayProps:i}=Rw({type:`dialog`},t,n),[a,o]=(0,vk.useState)(null);return cx({ref:n,onResize:(0,vk.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=wb(),i[`aria-labelledby`]=r.id,vk.createElement(AS,{values:[[sR,t],[eR,t],[oR,i],[TL,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},vk.createElement(nM,{...r,ref:n,isPressed:t.isOpen},e.children))}function zE({children:e,...t},n){let r={props:t,ref:n};if(LR(r))return Tk.createElement(`a`,{ref:r.ref,...r.props},e);if(RR(r))return Tk.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}function BE(e){ZR("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=(0,Ok.useRef)(),n=(0,Ok.useRef)(),r=(0,Ok.useRef)(new Map),{width:i=1}=_T({ref:t}),[a,o]=(0,Ok.useState)(e),[s,c]=(0,Ok.useState)([]),l=(0,Ok.useRef)(e),u=(0,Ok.useCallback)(({menuName:e,actions:t})=>{let i=s.some(({active:e})=>e),[a,o]=(0,Ok.useState)(!1);return Ok.createElement(Ok.Fragment,null,Ok.createElement(cR,{ariaLabel:`Additional tabs`,visible:a,onVisibleChange:o,placement:`bottom`,popover:Ok.createElement(ER,{links:s.map(({title:e,id:n,color:r,active:i})=>({id:n,title:e,color:r,active:i,onClick:e=>{e.preventDefault(),t.onSelect(n)}}))})},Ok.createElement($R,{id:`addons-menu-button`,ref:n,active:i,preActive:a,style:{visibility:s.length?`visible`:`hidden`},"aria-hidden":!s.length,className:`tabbutton`,type:`button`,role:`tab`},e,Ok.createElement(QR,{className:`addon-collapsible-icon`,isActive:i||a}))),s.map(({title:e,id:t,color:n},i)=>{let a=`index-${i}`;return Ok.createElement(VR,{id:`tabbutton-${ep(t)??a}`,style:{visibility:`hidden`},"aria-hidden":!0,tabIndex:-1,ref:e=>{r.current.set(t,e)},className:`tabbutton`,type:`button`,key:t,textColor:n,role:`tab`},e)}))},[s]),d=(0,Ok.useCallback)(()=>{if(!t.current||!n.current)return;let{x:i,width:u}=t.current.getBoundingClientRect(),{width:d}=n.current.getBoundingClientRect(),f=s.length?i+u-d:i+u,p=[],m=0,h=e.filter(e=>{let{id:t}=e,n=r.current.get(t),{width:a=0}=n?.getBoundingClientRect()||{},o=i+m+a>f;return(!o||!n)&&p.push(e),m+=a,o});(p.length!==a.length||l.current!==e)&&(o(p),c(h),l.current=e)},[s.length,e,a]);return(0,Ok.useLayoutEffect)(d,[d,i]),{tabRefs:r,addonsRef:n,tabBarRef:t,visibleList:a,invisibleList:s,AddonTab:u}}function VE(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,Ak.useState)(!1);W(()=>{var e;o(!!(t.current&&(e=t.current.parentElement)!=null&&e.closest(`[role="toolbar"]`)))});let{direction:s}=rC(),c=s===`rtl`&&i===`horizontal`,l=kw(t),u=e=>{if(e.currentTarget.contains(e.target)){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){e.stopPropagation(),d.current=document.activeElement,e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,Ak.useRef)(null),f=e=>{!e.currentTarget.contains(e.relatedTarget)&&!d.current&&(d.current=e.target)},p=e=>{var n;if(d.current&&!e.currentTarget.contains(e.relatedTarget)&&(n=t.current)!=null&&n.contains(e.target)){var r;(r=d.current)==null||r.focus(),d.current=null}};return{toolbarProps:{...Rb(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function HE(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${dz.get(e)}-${n}-${t}`):``}function UE(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=oE({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a,linkBehavior:`selection`}),f=HE(t,r,`tab`),p=HE(t,r,`tabpanel`),{tabIndex:m}=u,h=t.collection.getItem(r),g=Rb(h?.props,{labelable:!0});delete g.id;let _=Zb(h?.props),{focusableProps:v}=bS({isDisabled:l},n);return{tabProps:z(g,v,_,u,{id:f,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?p:void 0,tabIndex:l?void 0:m,role:`tab`}),isSelected:c,isDisabled:l,isPressed:d}}function WE(e,t,n){let r=Mw(n)?void 0:0,i=HE(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:z(rx({...e,id:i,"aria-labelledby":HE(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}function GE(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=rC(),{collectionProps:l}=aE({ref:n,selectionManager:o,keyboardDelegate:(0,Mk.useMemo)(()=>new fz(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=wb();return dz.set(t,u),{tabListProps:{...z(l,rx({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function KE(e){let{filter:t,layoutDelegate:n}=e,r=jE(e),i=(0,Fk.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=_E(e,(0,Fk.useCallback)(e=>t?new wz(t(e)):new wz(e),[t]),(0,Fk.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,Fk.useMemo)(()=>new ZL(a,r,{layoutDelegate:n}),[a,r,n]);return qE(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function qE(e,t){let n=(0,Fk.useRef)(null);(0,Fk.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getItem(t.focusedKey),i=[...n.current.getKeys()].map(e=>{let t=n.current.getItem(e);return t?.type===`item`?t:null}).filter(e=>e!==null),a=[...e.getKeys()].map(t=>{let n=e.getItem(t);return n?.type===`item`?n:null}).filter(e=>e!==null),o=(i?.length??0)-(a?.length??0),s=Math.min(o>1?Math.max((r?.index??0)-o+1,0):r?.index??0,(a?.length??0)-1),c=null,l=!1;for(;s>=0;){if(!t.isDisabled(a[s].key)){c=a[s];break}s<a.length-1&&!l?s++:(l=!0,s>(r?.index??0)&&(s=r?.index??0),s--)}t.setFocusedKey(c?c.key:null)}n.current=e},[e,t])}function JE(e){let[t,n]=Mx(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,Ik.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=KE({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function YE(e){let t=JE({...e,onSelectionChange:e.onSelectionChange?t=>{var n;t!=null&&((n=e.onSelectionChange)==null||n.call(e,t))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??XE(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,Lk.useRef)(i);return(0,Lk.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=XE(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function XE(e,t){let n=null;if(e){var r,i,a,o;for(n=e.getFirstKey();n!=null&&(t.has(n)||!((i=e.getItem(n))==null||(r=i.props)==null)&&r.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||!((o=e.getItem(n))==null||(a=o.props)==null)&&a.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}function ZE({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=YE({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=jw({within:!0}),c=(0,Rk.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=jS({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=Rb(e,{global:!0});return Rk.createElement(`div`,{...z(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},Rk.createElement(AS,{values:[[Az,e],[jz,i]]},l.children))}function QE({props:e,forwardedRef:t}){let n=(0,Rk.useContext)(jz),{CollectionRoot:r}=(0,Rk.useContext)(AL),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=MS(Az),o=ix(t),{tabListProps:s}=GE({...e,orientation:i,keyboardActivation:a},n,o),c=jS({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=Rb(e,{global:!0});return delete l.id,Rk.createElement(`div`,{...z(l,c,s),ref:o,"data-orientation":i||void 0},Rk.createElement(r,{collection:n.collection,persistedKeys:ZT(n.selectionManager.focusedKey)}))}var $E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO,iO,aO,oO,sO,cO,lO,uO,dO,fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,V,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,H,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,U,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,W,WA,GA,KA,qA,JA,YA,XA,ZA,G,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,K,CM,wM,TM,EM,q,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM,KM,qM,JM,YM,XM,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz=n((()=>{be(),xe(),Ce(),de(),ue(),Le(),he(),g(),$E=t(o(),1),eD=t(o(),1),D(),tD=t(o(),1),nD=t(o(),1),rD=t(o(),1),o(),iD=t(o(),1),ct(),aD=t(o(),1),oD=t(o(),1),sD=t(o(),1),o(),cD=ve(),$y(),lD=t(o(),1),uD=t(o(),1),dD=t(o(),1),fD=t(o(),1),pD=t(o(),1),mD=t(o(),1),hD=t(o(),1),gD=t(o(),1),o(),_D=t(o(),1),vD=t(o(),1),yD=t(o(),1),o(),bD=t(o(),1),xD=t(o(),1),o(),SD=t(o(),1),CD=t(o(),1),o(),o(),o(),o(),wD=t(o(),1),TD=t(_e(),1),ED=t(o(),1),DD=t(o(),1),OD=t(o(),1),kD=t(o(),1),_e(),AD=t(o(),1),jD=t(o(),1),MD=t(o(),1),ND=t(o(),1),PD=t(o(),1),FD=t(o(),1),ID=t(o(),1),LD=t(o(),1),RD=t(o(),1),o(),o(),zD=t(o(),1),BD=t(o(),1),VD=t(o(),1),HD=t(o(),1),UD=t(o(),1),WD=t(o(),1),GD=t(o(),1),KD=t(o(),1),o(),qD=t(o(),1),o(),o(),JD=t(o(),1),o(),YD=t(o(),1),XD=t(o(),1),o(),ZD=t(o(),1),QD=t(o(),1),$D=t(o(),1),eO=t(o(),1),tO=t(o(),1),nO=t(_e(),1),rO=t(o(),1),iO=t(o(),1),aO=t(o(),1),oO=t(o(),1),sO=t(_e(),1),cO=t(o(),1),lO=t(o(),1),uO=t(o(),1),dO=t(o(),1),fO=t(o(),1),pO=t(o(),1),mO=t(o(),1),hO=t(o(),1),gO=t(o(),1),_O=t(o(),1),vO=t(o(),1),o(),yO=t(o(),1),bO=t(o(),1),xO=t(o(),1),SO=t(o(),1),CO=t(o(),1),o(),o(),wO=t(o(),1),TO=t(o(),1),EO=t(o(),1),DO=t(o(),1),V=t(o(),1),OO=t(o(),1),kO=t(o(),1),AO=t(o(),1),jO=t(o(),1),MO=t(o(),1),NO=t(o(),1),PO=t(o(),1),FO=t(o(),1),IO=t(o(),1),LO=t(o(),1),RO=t(o(),1),zO=t(o(),1),BO=t(o(),1),VO=t(o(),1),HO=t(o(),1),UO=t(o(),1),WO=t(_e(),1),H=t(o(),1),GO=tb(),KO=t(o(),1),qO=t(o(),1),o(),JO=t(o(),1),YO=t(o(),1),XO=t(o(),1),ZO=t(o(),1),QO=t(o(),1),$O=t(o(),1),ek=t(o(),1),tk=t(o(),1),nk=t(_e(),1),rk=t(o(),1),ik=t(o(),1),ak=t(o(),1),ok=t(o(),1),sk=t(o(),1),ck=t(o(),1),lk=t(o(),1),uk=t(o(),1),dk=t(o(),1),fk=t(o(),1),pk=t(o(),1),mk=t(o(),1),hk=t(o(),1),gk=t(o(),1),U=t(o(),1),_k=t(o(),1),vk=t(o(),1),yk=t(o(),1),bk=t(o(),1),o(),xk=t(o(),1),Sk=t(o(),1),Ck=t(o(),1),rp(),wk=t(o(),1),Tk=t(o(),1),Ek=t(o(),1),Dk=t(o(),1),Ok=t(o(),1),o(),o(),kk=t(o(),1),Ak=t(o(),1),jk=t(o(),1),Mk=t(o(),1),Nk=t(o(),1),Pk=t(o(),1),Fk=t(o(),1),Ik=t(o(),1),Lk=t(o(),1),o(),Rk=t(o(),1),o(),o(),o(),o(),o(),zk=t(o(),1),o(),o(),r(),Bk=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},Vk=({theme:e})=>({margin:`20px 0 8px`,padding:0,cursor:`text`,position:`relative`,color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& tt, & code":{fontSize:`inherit`}}),Hk=({theme:e})=>({lineHeight:1,margin:`0 2px`,padding:`3px 5px`,whiteSpace:`nowrap`,borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base===`light`?`1px solid hsl(0 0 0 / 0.05)`:`1px solid hsl(0 0 100 / 0.05)`,color:e.color.defaultText,backgroundColor:e.base===`light`?`hsl(0 0 0 / 0.01)`:`hsl(0 0 100 / 0.02)`}),Uk=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`}),Wk={margin:`16px 0`},Gk=N.div(Uk),Kk=({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return tD.createElement(`a`,{href:n,target:r,...t})},qk=N(Kk)(({theme:e})=>({...Uk({theme:e}),fontSize:`inherit`,lineHeight:`24px`,color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"&.absent":{color:`#cc0000`},"&.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`},"& code":{color:`inherit`,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,paddingLeft:0,paddingRight:0,"&::before":{content:`"\\00a0"`,fontSize:`0.5em`},"&::after":{content:`"\\00a0"`,fontSize:`0.5em`}}})),Jk=N.blockquote(({theme:e})=>({...Uk({theme:e}),...Wk,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Yk=[],Xk=null,Zk=(0,rD.lazy)(async()=>{let{SyntaxHighlighter:e}=await a(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-RTCFPKCB-DuzwRVHO.js`);return{SyntaxHighlighter:e}},__vite__mapDeps([4,1,2,0,3,5,6,7,8]),import.meta.url);return Yk.length>0&&(Yk.forEach(t=>{e.registerLanguage(...t)}),Yk=[]),Xk===null&&(Xk=e),{default:t=>rD.createElement(e,{...t})}}),Qk=(0,rD.lazy)(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([a(()=>import(`./syntaxhighlighter-RTCFPKCB-DuzwRVHO.js`),__vite__mapDeps([4,1,2,0,3,5,6,7,8]),import.meta.url),a(()=>import(`./formatter-L2YTDE3Q-BC5xVOel.js`),__vite__mapDeps([9,1,2,3]),import.meta.url)]);return Yk.length>0&&(Yk.forEach(t=>{e.registerLanguage(...t)}),Yk=[]),Xk===null&&(Xk=e),{default:n=>rD.createElement(e,{...n,formatter:t})}}),$k=e=>rD.createElement(rD.Suspense,{fallback:rD.createElement(`div`,null)},e.format===!1?rD.createElement(Zk,{...e}):rD.createElement(Qk,{...e})),$k.registerLanguage=(...e)=>{if(Xk!==null){Xk.registerLanguage(...e);return}Yk.push(e)},eA=e=>typeof e==`string`,tA=/[\n\r]/g,nA=N.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`,...Hk({theme:e})})),rA=N($k)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:`19px`,margin:`25px 0 40px`,borderRadius:e.appBorderRadius,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,"pre.prismjs":{padding:20,background:`inherit`}})),iA=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=nD.Children.toArray(t);return i.filter(eA).some(e=>e.match(tA))?nD.createElement(rA,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):nD.createElement(nA,{...n,className:e},i)},aA=N.dl(({theme:e})=>({...Uk({theme:e}),...Wk,padding:0,"& dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,padding:0,margin:`16px 0 4px`},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:`0 0 16px`,padding:`0 15px`},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),oA=N.div(Uk),sA=N.h1(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),cA=N.h2(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),lA=N.h3(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.m1}px`})),uA=N.h4(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.s3}px`})),dA=N.h5(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.s2}px`})),fA=N.h6(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),pA=N.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),mA=N.img({maxWidth:`100%`}),hA=N.li(({theme:e})=>({...Uk({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":Hk({theme:e})})),gA={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},_A=N.ol(({theme:e})=>({...Uk({theme:e}),...Wk,...gA,listStyle:`decimal`})),vA=N.p(({theme:e})=>({...Uk({theme:e}),...Wk,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":Hk({theme:e})})),yA=N.pre(({theme:e})=>({...Uk({theme:e}),...Wk,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,lineHeight:`18px`,padding:`11px 1rem`,whiteSpace:`pre-wrap`,color:`inherit`,borderRadius:3,margin:`1rem 0`,"&:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`,code:{color:`inherit`,fontSize:`inherit`}},"& code":{whiteSpace:`pre`},"& code, & tt":{border:`none`}})),bA=N.span(({theme:e})=>({...Uk({theme:e}),"&.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"&.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"&.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"&.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"&.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}}})),xA=N.title(Hk),SA=N.table(({theme:e})=>({...Uk({theme:e}),...Wk,fontSize:e.typography.size.s2,lineHeight:`24px`,padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base===`dark`?e.color.darker:e.color.lighter},"& tr th":{fontWeight:`bold`,color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:`6px 13px`},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:`6px 13px`},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),CA={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},wA=N.ul(({theme:e})=>({...Uk({theme:e}),...Wk,...CA,listStyle:`disc`})),TA={h1:e=>eD.createElement(sA,{...Bk(e,`h1`)}),h2:e=>eD.createElement(cA,{...Bk(e,`h2`)}),h3:e=>eD.createElement(lA,{...Bk(e,`h3`)}),h4:e=>eD.createElement(uA,{...Bk(e,`h4`)}),h5:e=>eD.createElement(dA,{...Bk(e,`h5`)}),h6:e=>eD.createElement(fA,{...Bk(e,`h6`)}),pre:e=>eD.createElement(yA,{...Bk(e,`pre`)}),a:e=>eD.createElement(qk,{...Bk(e,`a`)}),hr:e=>eD.createElement(pA,{...Bk(e,`hr`)}),dl:e=>eD.createElement(aA,{...Bk(e,`dl`)}),blockquote:e=>eD.createElement(Jk,{...Bk(e,`blockquote`)}),table:e=>eD.createElement(SA,{...Bk(e,`table`)}),img:e=>eD.createElement(mA,{...Bk(e,`img`)}),div:e=>eD.createElement(oA,{...Bk(e,`div`)}),span:e=>eD.createElement(bA,{...Bk(e,`span`)}),li:e=>eD.createElement(hA,{...Bk(e,`li`)}),ul:e=>eD.createElement(wA,{...Bk(e,`ul`)}),ol:e=>eD.createElement(_A,{...Bk(e,`ol`)}),p:e=>eD.createElement(vA,{...Bk(e,`p`)}),code:e=>eD.createElement(iA,{...Bk(e,`code`)}),tt:e=>eD.createElement(xA,{...Bk(e,`tt`)}),resetwrapper:e=>eD.createElement(Gk,{...Bk(e,`resetwrapper`)})},N.div(({theme:e,compact:t})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:`12px`,minWidth:20,borderRadius:20,padding:t?`4px 7px`:`4px 10px`}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:`currentColor`}}},({theme:e,status:t})=>{switch(t){case`critical`:return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case`negative`:return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case`warning`:return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case`neutral`:return{color:e.fgColor.muted,background:e.base===`dark`?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${O(.8,e.textMutedColor)}`};case`positive`:return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case`active`:return{color:e.base===`light`?le(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${O(.9,e.color.secondary)}`};default:return{}}}),{deprecate:EA}=__STORYBOOK_MODULE_CLIENT_LOGGER__,DA=0,OA=e=>e.button===DA&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,kA=(e,t)=>{OA(e)&&(e.preventDefault(),t(e))},AA=N.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:`0.7em`,width:`0.7em`,marginRight:0,marginLeft:`0.25em`,bottom:`auto`,verticalAlign:`inherit`}}:{},({containsIcon:e})=>e?{svg:{height:`1em`,width:`1em`,verticalAlign:`middle`,position:`relative`,bottom:0,marginRight:0}}:{}),jA=N.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:le(.07,e.color.secondary),"svg path:not([fill])":{fill:le(.07,e.color.secondary)}},"&:active":{color:le(.1,e.color.secondary),"svg path:not([fill])":{fill:le(.1,e.color.secondary)}},svg:{display:`inline-block`,height:`1em`,width:`1em`,verticalAlign:`text-top`,position:`relative`,bottom:`-0.125em`,marginRight:`0.4em`,"& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:n})=>{let r;return t&&(r=[e.textMutedColor,e.color.secondary,e.color.secondary]),n&&(r=[e.color.dark,e.color.secondary,e.color.secondary]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[2]}}}:{}},({nochrome:e})=>e?{color:`inherit`,"&:hover, &:active":{color:`inherit`,textDecoration:`underline`}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:`none`,padding:0,fontSize:`inherit`,lineHeight:`inherit`,"&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:`1`}}:{}),MA=(0,iD.forwardRef)(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:i=!1,className:a=void 0,isButton:o=void 0,href:s,...c},l)=>(o!==void 0&&EA("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),iD.createElement(jA,{as:s?`a`:`button`,href:s,...c,ref:l,isButton:!s||o===!0,onClick:n&&e?e=>kA(e,n):n,className:a},iD.createElement(AA,{withArrow:r,containsIcon:i},t,r&&iD.createElement(et,null))))),MA.displayName=`Link`,N.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:`1.6`,h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`},"pre pre code, pre.prismjs code":{color:`inherit`,fontSize:`inherit`},"pre code":{margin:0,padding:0,whiteSpace:`pre`,border:`none`,background:`transparent`},"pre code, pre tt":{backgroundColor:`transparent`,border:`none`},"body > *:first-of-type":{marginTop:`0 !important`},"body > *:last-child":{marginBottom:`0 !important`},a:{color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"& code":{color:`inherit`,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,paddingLeft:0,paddingRight:0,"&::before":{content:`"\\00a0"`,fontSize:`0.5em`},"&::after":{content:`"\\00a0"`,fontSize:`0.5em`}}},"a.absent":{color:`#cc0000`},"a.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`},"h1, h2, h3, h4, h5, h6":{margin:`20px 0 10px`,padding:0,cursor:`text`,position:`relative`,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& tt, & code":{fontSize:`inherit`}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:`15px 0`},hr:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:`inline-block`},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,margin:`0 0 15px`,padding:`0 15px`,"&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:`white`,margin:0,padding:0,"& th":{fontWeight:`bold`,border:`1px solid ${e.appBorderColor}`,textAlign:`left`,margin:0,padding:`6px 13px`},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:`left`,margin:0,padding:`6px 13px`},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:`100%`},"span.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"span.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"span.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"span.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"span.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}},"code, tt":{margin:`0 2px`,padding:`0 5px`,whiteSpace:`nowrap`,border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base===`dark`?e.color.darkest:e.color.dark}})),{global:NA}=__STORYBOOK_MODULE_GLOBAL__,{document:PA,window:FA}=NA,{deprecate:IA}=__STORYBOOK_MODULE_CLIENT_LOGGER__,LA=Symbol.for(`react.lazy`),RA=sD.use,zA=ub(`Slot`),BA=Symbol(`radix.slottable`),fb(`Slottable`),VA=N.div(({theme:e})=>({padding:`2px 6px`,lineHeight:`16px`,fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:`0 0 5px 0 rgba(0, 0, 0, 0.3)`,borderRadius:4,whiteSpace:`nowrap`,pointerEvents:`none`,zIndex:-1,background:e.base===`light`?`rgba(60, 60, 60, 0.9)`:`rgba(0, 0, 0, 0.95)`})),HA=({note:e,...t})=>uD.createElement(VA,{...t},e),{deprecate:UA}=__STORYBOOK_MODULE_CLIENT_LOGGER__,W=typeof document<`u`?fD.useLayoutEffect:()=>{},WA={prefix:String(Math.round(Math.random()*1e10)),current:0},GA=hD.createContext(WA),KA=hD.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,qA=new WeakMap,JA=typeof hD.useId==`function`?yb:vb,YA=!!(typeof window<`u`&&window.document&&window.document.createElement),XA=new Map,typeof FinalizationRegistry<`u`&&(ZA=new FinalizationRegistry(e=>{XA.delete(e)})),G=e=>e?.ownerDocument??document,QA=e=>e&&`window`in e&&e.window===e?e:G(e).defaultView||window,$A=!1,ej=(e=document)=>{var t;if(!Ab())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n},tj=class{get currentNode(){return this._currentNode}set currentNode(e){if(!jb(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return jb(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter==`function`?n=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if(typeof this.filter==`function`?e=this.filter(t):(n=this.filter)!=null&&n.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else{var t;if(typeof this.filter==`function`)return this.filter(e);if((t=this.filter)!=null&&t.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}},nj=Fb,rj=new Set([`id`]),ij=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),aj=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),oj=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),sj=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),cj=/^(data-.*)$/,lj=null,uj=Gb(function(){return Wb(/^Mac/i)}),dj=Gb(function(){return Wb(/^iPhone/i)}),fj=Gb(function(){return Wb(/^iPad/i)||uj()&&navigator.maxTouchPoints>1}),pj=Gb(function(){return dj()||fj()}),mj=Gb(function(){return uj()||pj()}),hj=Gb(function(){return Ub(/AppleWebKit/i)&&!gj()}),gj=Gb(function(){return Ub(/Chrome/i)}),_j=Gb(function(){return Ub(/Android/i)}),vj=Gb(function(){return Ub(/Firefox/i)}),yj=(0,gD.createContext)({isNative:!0,open:Xb,useHref:e=>e}),Jb.isOpening=!1,bj=new Map,xj=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,$b):$b()),Sj=yD.useInsertionEffect??W,Cj=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),typeof document<`u`&&window.visualViewport,wj=0,Tj=new Map,Ej=`react-aria-clear-focus`,Dj=`react-aria-focus`,Oj=typeof Element<`u`&&`checkVisibility`in Element.prototype,kj=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],Aj=kj.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,kj.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),jj=kj.join(`:not([hidden]):not([tabindex="-1"]),`),Mj=typeof document<`u`?DD.useInsertionEffect??DD.useLayoutEffect:()=>{},Nj=!1,Pj=`default`,Fj=``,Ij=new WeakMap,Lj=kD.createContext({register:()=>{}}),Lj.displayName=`PressResponderContext`,Rj=new WeakMap,zj=class{continuePropagation(){Kx(this,Rj,!1)}get shouldStopPropagation(){return Hx(this,Rj)}constructor(e,t,n,r){Wx(this,Rj,{writable:!0,value:void 0}),Kx(this,Rj,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o}},Bj=Symbol(`linkClicked`),Vj=`react-aria-pressable-style`,Hj=`data-react-aria-pressable`,Uj=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Wj=null,Gj=new Set,Kj=new Map,qj=!1,Jj=!1,Yj={Tab:!0,Escape:!0},Xj=(e,t)=>{let n=QA(e),r=G(e);t&&r.removeEventListener(`DOMContentLoaded`,t),Kj.has(n)&&(n.HTMLElement.prototype.focus=Kj.get(n).focus,r.removeEventListener(`keydown`,rS,!0),r.removeEventListener(`keyup`,rS,!0),r.removeEventListener(`click`,aS,!0),n.removeEventListener(`focus`,oS,!0),n.removeEventListener(`blur`,sS,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,iS,!0),r.removeEventListener(`pointermove`,iS,!0),r.removeEventListener(`pointerup`,iS,!0)),Kj.delete(n))},typeof document<`u`&&lS(),Zj=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Qj=ND.createContext(null),$j=ND.forwardRef(function(e,t){let{children:n,...r}=e,i=ix(t),a={...r,ref:i};return ND.createElement(Qj.Provider,{value:a},n)}),eM=(0,ND.forwardRef)(({children:e,...t},n)=>{n=ix(n);let{focusableProps:r}=bS(t,n),i=ND.Children.only(e);(0,ND.useEffect)(()=>{},[n,t.isDisabled]);let a=i.props.ref;return ND.cloneElement(i,{...z(r,i.props),ref:Ib(a,n)})}),tM=PD.forwardRef(({children:e,...t},n)=>{n=ix(n);let{pressProps:r}=Jx({...t,ref:n}),{focusableProps:i}=bS(t,n),a=PD.Children.only(e);(0,PD.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return PD.cloneElement(a,{...z(r,i,a.props),ref:Ib(o,n)})}),nM=FD.forwardRef(({children:e,...t},n)=>{let r=(0,FD.useRef)(!1),i=(0,FD.useContext)(Lj);n=ix(n||i?.ref);let a=z(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return lx(i,n),(0,FD.useEffect)(()=>{r.current||=!0},[]),FD.createElement(Lj.Provider,{value:a},e)}),rM=!1,iM=0,aM=500,oM=Symbol(`default`),sM=(0,VD.createContext)({placement:`bottom`}),(0,VD.forwardRef)(function(e,t){[e,t]=NS(e,t,sM);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=jS({...e,defaultClassName:`react-aria-OverlayArrow`,values:{placement:n}});i.style&&Object.keys(i.style).forEach(e=>i.style[e]===void 0&&delete i.style[e]);let a=Rb(e);return VD.createElement(`div`,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),cM={top:`top`,bottom:`top`,left:`left`,right:`left`},lM={top:`bottom`,bottom:`top`,left:`right`,right:`left`},uM={top:`left`,left:`top`},dM={top:`height`,left:`width`},fM={width:`totalWidth`,height:`totalHeight`},pM={},mM=typeof document<`u`?window.visualViewport:null,hM=new WeakMap,gM=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),_M=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),vM=Symbol.for(`react-aria.i18n.locale`),yM=eC(),bM=new Set,xM=KD.createContext(null),SM=function(e,t){return SM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},SM(e,t)},K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K.apply(this,arguments)},CM=function(){return JSON.stringify(arguments)},wM=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e})(),TM={create:function(){return new wM}},EM={variadic:pC,monadic:mC},(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`})(q||={}),(function(e){e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`,e[e.tag=8]=`tag`})(DM||={}),(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(OM||={}),kM=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,AM=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,jM=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,MM=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,NM=/^(@+)?(\+|#+)?[rs]?$/g,PM=/(\*)(0+)|(#+)(0+)|(0+)/g,FM=/^(0+)$/,IM={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]},LM=RegExp(`^${kM.source}*`),RM=RegExp(`${kM.source}*\$`),zM=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),BM=!!String.fromCodePoint,VM=!!Object.fromEntries,HM=!!String.prototype.codePointAt,UM=!!String.prototype.trimStart,WM=!!String.prototype.trimEnd,GM=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},KM=!0;try{qM=IC(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),KM=qM.exec(`a`)?.[0]===`a`}catch{KM=!1}JM=zM?(function(e,t,n){return e.startsWith(t,n)}):(function(e,t,n){return e.slice(n,n+t.length)===t}),YM=BM?String.fromCodePoint:(function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t}),XM=VM?Object.fromEntries:(function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t}),ZM=HM?(function(e,t){return e.codePointAt(t)}):(function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}}),QM=UM?(function(e){return e.trimStart()}):(function(e){return e.replace(LM,``)}),$M=WM?(function(e){return e.trimEnd()}):(function(e){return e.replace(RM,``)}),KM?(tN=IC(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),eN=function(e,t){return tN.lastIndex=t,tN.exec(e)[1]??``}):eN=function(e,t){for(var n=[];;){var r=ZM(e,t);if(r===void 0||BC(r)||VC(r))break;n.push(r),t+=r>=65536?2:1}return YM.apply(void 0,n)},nN=(function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(i===125&&e>0)break;if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:DM.pound,location:B(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(q.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&LC(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:DM.literal,value:`<${r}/>`,location:B(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!LC(this.char()))return this.error(q.INVALID_TAG,B(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:DM.tag,value:r,children:a,location:B(n,this.clonePosition())},err:null}:this.error(q.INVALID_TAG,B(o,this.clonePosition()))):this.error(q.UNMATCHED_CLOSING_TAG,B(s,this.clonePosition()))}else return this.error(q.UNCLOSED_TAG,B(n,this.clonePosition()))}else return this.error(q.INVALID_TAG,B(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&zC(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=B(n,this.clonePosition());return{val:{type:DM.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!RC(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return YM.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),YM(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(q.EMPTY_ARGUMENT,B(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(q.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:DM.argument,value:r,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(q.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=eN(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:B(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(q.EXPECT_ARGUMENT_TYPE,B(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=$M(l.val);if(u.length===0)return this.error(q.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:B(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=B(r,this.clonePosition());if(s&&JM(s?.style,`::`,0)){var p=QM(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:DM.number,value:n,location:f,style:l.val},err:null}}else{if(p.length===0)return this.error(q.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=PC(p,this.locale));var u={type:OM.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?EC(m):{}};return{val:{type:a===`date`?DM.date:DM.time,value:n,location:f,style:u},err:null}}}return{val:{type:a===`number`?DM.number:a===`date`?DM.date:DM.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(q.EXPECT_SELECT_ARGUMENT_OPTIONS,B(h,K({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=B(r,this.clonePosition());return a===`select`?{val:{type:DM.select,value:n,options:XM(v.val),location:y},err:null}:{val:{type:DM.plural,value:n,options:XM(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(q.INVALID_ARGUMENT_TYPE,B(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=DC(e)}catch{return this.error(q.INVALID_NUMBER_SKELETON,t)}return{val:{type:OM.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?NC(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_SELECTOR,q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=B(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:B(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?q.EXPECT_SELECT_ARGUMENT_SELECTOR:q.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(q.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=B(r,this.clonePosition());return i?(a*=n,GM(a)?{val:a,err:null}:this.error(t,s)):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=ZM(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(JM(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&BC(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e})(),(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(rN||={}),iN=(function(e){iC(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t})(Error),aN=(function(e){iC(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,rN.INVALID_VALUE,i)||this}return t})(iN),oN=(function(e){iC(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,rN.INVALID_VALUE,r)||this}return t})(iN),sN=(function(e){iC(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,rN.MISSING_VALUE,n)||this}return t})(iN),(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(cN||={}),(function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==cN.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return KC(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=aC(o,[`formatters`]);this.ast=e.__parse(t,K(K({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=JC(e.formats,r),this.formatters=i&&i.formatters||XC(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(!(typeof Intl.Locale>`u`)){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=UC,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},e})(),lN=Symbol.for(`react-aria.i18n.locale`),uN=Symbol.for(`react-aria.i18n.strings`),fN=class e{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=ZC(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[lN];if(dN===void 0){let t=window[uN];if(!t)return null;dN={};for(let r in t)dN[r]=new e({[n]:t[r]},n)}let r=dN?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}},pN=new Map,mN=new Map,hN=class{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=pN.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),pN.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=mN.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),mN.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}constructor(e,t){this.locale=e,this.strings=t}},gN=new WeakMap,_N=1080,vN=24*_N,yN=29,bN=12*_N+793,yN*vN+bN,xN=new Map,SN=!1;try{SN=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}CN=!1;try{CN=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}if(wN={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},TN=class{format(e){let t=``;if(t=!SN&&this.options.signDisplay!=null?rw(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!CN){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=wN[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u2013 ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!SN&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!CN&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=nw(e,t),this.options=t}},EN=new Map,DN=typeof document<`u`?window.visualViewport:null,ON=YD.createContext(null),kN=`react-aria-focus-scope-restore`,AN=null,jN=class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new MN({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&gw(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new MN({scopeRef:null}),this.fastMap.set(null,this.root)}},MN=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},NN=new jN,PN=[],FN=typeof document<`u`&&window.visualViewport,IN=0,RN=(0,eO.createContext)({}),zN=tO.createContext(null),BN={},BN={dismiss:`تجاهل`},VN={},VN={dismiss:`Отхвърляне`},HN={},HN={dismiss:`Odstranit`},UN={},UN={dismiss:`Luk`},WN={},WN={dismiss:`Schließen`},GN={},GN={dismiss:`Απόρριψη`},KN={},KN={dismiss:`Dismiss`},qN={},qN={dismiss:`Descartar`},JN={},JN={dismiss:`Lõpeta`},YN={},YN={dismiss:`Hylkää`},XN={},XN={dismiss:`Rejeter`},ZN={},ZN={dismiss:`התעלם`},QN={},QN={dismiss:`Odbaci`},$N={},$N={dismiss:`Elutasítás`},eP={},eP={dismiss:`Ignora`},tP={},tP={dismiss:`閉じる`},nP={},nP={dismiss:`무시`},rP={},rP={dismiss:`Atmesti`},iP={},iP={dismiss:`Nerādīt`},aP={},aP={dismiss:`Lukk`},oP={},oP={dismiss:`Negeren`},sP={},sP={dismiss:`Zignoruj`},cP={},cP={dismiss:`Descartar`},lP={},lP={dismiss:`Dispensar`},uP={},uP={dismiss:`Revocare`},dP={},dP={dismiss:`Пропустить`},fP={},fP={dismiss:`Zrušiť`},pP={},pP={dismiss:`Opusti`},mP={},mP={dismiss:`Odbaci`},hP={},hP={dismiss:`Avvisa`},gP={},gP={dismiss:`Kapat`},_P={},_P={dismiss:`Скасувати`},vP={},vP={dismiss:`取消`},yP={},yP={dismiss:`關閉`},bP={},bP={"ar-AE":BN,"bg-BG":VN,"cs-CZ":HN,"da-DK":UN,"de-DE":WN,"el-GR":GN,"en-US":KN,"es-ES":qN,"et-EE":JN,"fi-FI":YN,"fr-FR":XN,"he-IL":ZN,"hr-HR":QN,"hu-HU":$N,"it-IT":eP,"ja-JP":tP,"ko-KR":nP,"lt-LT":rP,"lv-LV":iP,"nb-NO":aP,"nl-NL":oP,"pl-PL":sP,"pt-BR":cP,"pt-PT":lP,"ro-RO":uP,"ru-RU":dP,"sk-SK":fP,"sl-SI":pP,"sr-SP":mP,"sv-SE":hP,"tr-TR":gP,"uk-UA":_P,"zh-CN":vP,"zh-TW":yP},xP={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`},SP=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype,CP=new WeakMap,wP=[],TP=oO.createContext(null),EP=1500,DP=500,OP={},kP=0,AP=!1,jP=null,MP=null,NP=(0,dO.createContext)(null),PP=(0,dO.createContext)(null),FP=(0,dO.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=NS(t,n,PP);let r=(0,dO.useContext)(NP),i=lT(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=wx(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:dO.createElement(Zw,{portalContainer:e},dO.createElement(dT,{...t,tooltipRef:n,isExiting:o}))}),IP=v(pe(),1),LP=(0,IP.default)(1e3)(e=>e===`left-end`?`left bottom`:e===`right-end`?`right bottom`:e===`left-start`?`left top`:e===`right-start`?`right top`:e.replace(`-`,` `)),N.div({width:500,height:500,paddingTop:100,overflowY:`scroll`,background:`#eee`,position:`relative`}),RP=(0,fO.forwardRef)((e,t)=>fO.createElement(`button`,{...e,ref:t,style:{width:120,height:50,margin:10}})),RP.displayName=`Trigger`,zP=({triggerOnFocusOnly:e=!1,placement:t=`top`,offset:n=8,tooltip:r,children:i,defaultVisible:a,startOpen:o,delayShow:s=400,delayHide:c=200,visible:l,onVisibleChange:u,...d})=>{let f=LP(t),p=dD.Children.only(i);o!==void 0&&UA("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,h]=(0,dD.useState)(a??o??!1),g=(0,dD.useCallback)(e=>{h(e),u?.(e)},[u]);return dD.createElement(uT,{delay:s,closeDelay:c,isOpen:l??m,onOpenChange:g,trigger:e?`focus`:void 0,...d},dD.createElement(eM,null,dD.cloneElement(p,{"aria-describedby":null})),dD.createElement(FP,{"data-testid":`tooltip`,placement:f,offset:n,onOpenChange:g,style:{outline:`none`},...d},r))},BP=({children:e,disableAllTooltips:t,shortcut:n,tooltip:r})=>{let i=(0,lD.useMemo)(()=>{let e=document?.body?.getAttribute(`data-shortcuts-enabled`)!==`false`;if(!(!r&&(!n||!e)))return[r,n&&e&&`[${$_(n)}]`].filter(Boolean).join(` `)},[n,r]);return i?lD.createElement(zP,{placement:`top`,tooltip:lD.createElement(HA,{note:i}),visible:t?!1:void 0},e):lD.createElement(lD.Fragment,null,e)},BP.displayName=`InteractiveTooltipWrapper`,VP=(0,oD.forwardRef)(({as:e=`button`,asChild:t=!1,animation:n=`none`,size:r=`small`,variant:i=`outline`,padding:a=`medium`,disabled:o=!1,readOnly:s=!1,active:c,onClick:l,ariaLabel:u,ariaDescription:d=void 0,tooltip:f=void 0,shortcut:p=void 0,disableAllTooltips:m=!1,...h},g)=>{let _=t?zA:e,v;!s&&(u===void 0||u===``)&&(v=`ariaLabel`,IA(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${h.children}.`)),c!==void 0&&(v=`active`,IA("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:y,AriaDescription:b}=fT(d),x=(0,oD.useMemo)(()=>p?ev(p):void 0,[p]),[S,C]=(0,oD.useState)(!1);return(0,oD.useEffect)(()=>{let e=setTimeout(()=>{S&&C(!1)},1e3);return()=>clearTimeout(e)},[S]),oD.createElement(oD.Fragment,null,oD.createElement(BP,{disableAllTooltips:m,shortcut:p,tooltip:f||(u===!1?void 0:u)},oD.createElement(HP,{"data-deprecated":v,as:_,ref:g,variant:i,size:r,padding:a,$disabled:o||s,"aria-disabled":o||s?`true`:void 0,readOnly:s,active:c,animating:S,animation:n,onClick:o||s?void 0:e=>{l&&l(e),n!==`none`&&C(!0)},"aria-label":!s&&u!==!1?u:void 0,"aria-keyshortcuts":s?void 0:x,...s?{}:y,...h})),oD.createElement(b,null))}),VP.displayName=`Button`,HP=N(`button`,{shouldForwardProp:e=>ie(e)})(({theme:e,variant:t,size:n,$disabled:r,readOnly:i,active:a,animating:o,animation:s=`none`,padding:c})=>({border:0,cursor:i?`inherit`:r?`not-allowed`:`pointer`,display:`inline-flex`,gap:`6px`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,padding:c===`none`?0:c===`small`&&n===`small`?`0 7px`:c===`small`&&n===`medium`?`0 9px`:n===`small`?`0 10px`:n===`medium`?`0 12px`:0,height:n===`small`?`28px`:`32px`,position:`relative`,textAlign:`center`,textDecoration:`none`,transitionProperty:`background, box-shadow`,transitionDuration:`150ms`,transitionTimingFunction:`ease-out`,verticalAlign:`top`,whiteSpace:`nowrap`,userSelect:`none`,opacity:r&&!i?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:`1`,background:t===`solid`?e.base===`light`?e.color.secondary:le(.18,e.color.secondary):t===`outline`?e.button.background:t===`ghost`&&a?O(.93,e.barSelectedColor):`transparent`,color:t===`solid`?e.color.lightest:t===`outline`?e.input.color:t===`ghost`&&a?e.base===`light`?le(.1,e.color.secondary):e.color.secondary:t===`ghost`?e.textMutedColor:e.input.color,boxShadow:t===`outline`?`${e.button.border} 0 0 0 1px inset`:`none`,borderRadius:e.input.borderRadius,flexShrink:0,...!i&&{"&:hover":{color:t===`ghost`?e.color.secondary:void 0,background:(()=>{let n=e.color.secondary;return t===`solid`&&(n=e.base===`light`?fe(.1,e.color.secondary):le(.3,e.color.secondary)),t===`outline`&&(n=e.button.background),t===`ghost`?O(.86,e.color.secondary):e.base===`light`?le(.02,n):fe(.03,n)})()},"&:active":{color:t===`ghost`?e.color.secondary:void 0,background:(()=>{let n=e.color.secondary;return t===`solid`&&(n=e.color.secondary),t===`outline`&&(n=e.button.background),t===`ghost`?e.background.hoverable:e.base===`light`?le(.02,n):fe(.03,n)})()},"&:focus-visible":{outline:`2px solid ${T(e.color.secondary,1)}`,outlineOffset:2,zIndex:`1`},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:`0 0 auto`,animation:o&&s!==`none`?`${e.animation[s]} 1000ms ease-out`:``}})),UP=(0,oD.forwardRef)((e,t)=>(IA("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),oD.createElement(VP,{ref:t,...e,"data-deprecated":`IconButton`}))),UP.displayName=`IconButton`,WP=(0,mO.forwardRef)(({pressed:e,...t},n)=>mO.createElement(GP,{role:`switch`,"aria-checked":e,ref:n,pressed:e,...t})),WP.displayName=`ToggleButton`,GP=N(VP)(({theme:e,variant:t=`outline`,pressed:n})=>({...n?{...t===`solid`?{background:e.base===`lighten`?le(.1,e.color.secondary):le(.2,e.color.secondary)}:{},...t===`outline`?{background:O(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t===`ghost`?{background:O(.93,e.barSelectedColor),color:e.base===`light`?le(.1,e.color.secondary):e.color.secondary}:{}}:{}})),KP=N.li(({active:e,theme:t})=>({display:`flex`,alignItems:`center`,justifyContent:`space-between`,flex:`0 0 auto`,overflow:`hidden`,minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?`var(--listbox-item-active-color)`:t.color.defaultText,"--listbox-item-active-color":t.base===`light`?le(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?`var(--listbox-item-active-color)`:t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:`not-allowed`},'&[aria-selected="true"]':{color:`var(--listbox-item-active-color)`,fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":`var(--listbox-item-active-color)`},"&:not(:hover, :has(:focus-visible)) :not(input) + input":{position:`absolute`,opacity:0},'&[role="option"]':{cursor:`pointer`,borderRadius:t.input.borderRadius,outlineOffset:-2,padding:`0 9px`,gap:8,"&:hover":{background:O(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transitionBehavior:`allow-discrete`,transitionDuration:`var(--transition-duration, 0.2s)`,transitionProperty:`opacity, block-size, content-visibility`},"@media (prefers-reduced-motion: reduce)":{transition:`none`}}),({transitionStatus:e})=>{switch(e){case`preEnter`:case`exiting`:case`exited`:return{opacity:0,blockSize:0,contentVisibility:`hidden`};default:return{opacity:1,blockSize:`auto`,contentVisibility:`visible`}}}),qP=N(KP)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:`auto`,marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transitionProperty:`inline-size, margin-left, opacity, padding-inline`,transitionDuration:`var(--transition-duration, 0.2s)`}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),JP=N(VP)(({size:e})=>({gap:e===`small`?6:8,"&:focus-visible":{outlineOffset:-2}})),YP=N(WP)({"&:focus-visible":{outlineOffset:-2}}),XP=(0,aD.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return aD.createElement(JP,{...r,variant:n,padding:e,size:t,ref:i})}),ZP=(0,aD.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return aD.createElement(YP,{...r,variant:n,padding:e,size:t,ref:i})}),QP=N(XP)(({theme:e})=>({height:`auto`,minHeight:32,flex:`0 1 100%`,textAlign:`start`,justifyContent:`space-between`,fontWeight:`inherit`,color:`inherit`,"&:hover":{color:`inherit`},"& input:enabled:focus-visible":{outline:`none`},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),$P=e=>aD.createElement(QP,{as:`a`,...e}),eF=N.div(({theme:e})=>({display:`flex`,flexDirection:`column`,justifyContent:`center`,flexGrow:1,minWidth:0,padding:`8px 0`,lineHeight:`16px`,"& > *":{margin:0,whiteSpace:`normal`},"& > span":{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},"& small":{fontSize:`inherit`,color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),tF=N.div({display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`0 0 14px`,width:14,height:14,color:`var(--listbox-item-muted-color)`}),nF=Object.assign(N.ul(({theme:e,onClick:t})=>({listStyle:`none`,margin:0,padding:4,cursor:t?`pointer`:`default`,"& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:KP,HoverItem:qP,Button:XP,Toggle:ZP,Action:QP,Link:$P,Text:eF,Icon:tF}),rF=N.div(({collapsed:e=!1})=>({blockSize:e?0:`auto`,contentVisibility:e?`hidden`:`visible`,transform:e?`translateY(-10px)`:`translateY(0)`,opacity:+!e,overflow:`hidden`,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transition:`all var(--transition-duration, 0.2s)`,transitionBehavior:`allow-discrete`},"@media (prefers-reduced-motion: reduce)":{transition:`none`}})),Object.assign(function({children:e,summary:t,collapsed:n,disabled:r,initialCollapsed:i,storageKey:a,state:o,...s}){let c=aF({collapsed:n,disabled:r,initialCollapsed:i,storageKey:a}),l=o||c;return hO.createElement(hO.Fragment,null,typeof t==`function`?t(l):t,hO.createElement(rF,{...s,id:l.contentId,collapsed:l.isCollapsed,"aria-hidden":l.isCollapsed},typeof e==`function`?e(l):e))},{Content:rF}),iF=(e,t)=>{let[n,r]=(0,hO.useState)(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return(0,hO.useEffect)(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]},aF=({collapsed:e,disabled:t,initialCollapsed:n=e,storageKey:r})=>{let[i,a]=iF(r&&`useCollapsible:${r}`,!!n);(0,hO.useEffect)(()=>{e!==void 0&&a(e)},[e,a]);let o=(0,hO.useCallback)(e=>{e?.stopPropagation(),t||a(e=>!e)},[t,a]),s=wb();return{contentId:s,isCollapsed:i,isDisabled:!!t,setCollapsed:a,toggleCollapsed:o,toggleProps:{disabled:t,onClick:o,"aria-controls":s,"aria-expanded":!i}}},oF=se({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),sF=se({"0%":{transform:`rotate(0deg)`},"10%":{transform:`rotate(10deg)`},"40%":{transform:`rotate(170deg)`},"50%":{transform:`rotate(180deg)`},"60%":{transform:`rotate(190deg)`},"90%":{transform:`rotate(350deg)`},"100%":{transform:`rotate(360deg)`}}),cF=se({to:{backgroundPositionX:`36%`}}),lF=N.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:`relative`})),uF=N.div(({animation:e=`none`,color:t,theme:n})=>({position:`relative`,width:`100%`,padding:1,overflow:`hidden`,backgroundColor:n.background.content,borderRadius:n.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e===`none`&&t&&n.color[t]||n.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:`box-shadow 1s`,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transition:`all var(--transition-duration, 0.2s), box-shadow 1s`,transitionBehavior:`allow-discrete`},"@media (prefers-reduced-motion: reduce)":{transition:`box-shadow 1s`},"&:before":{content:`""`,display:e===`none`?`none`:`block`,position:`absolute`,left:0,top:0,width:`100%`,height:`100%`,opacity:1,...e===`rainbow`&&{animation:`${cF} 10s infinite linear, ${oF} 60s infinite linear`,backgroundImage:`linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))`,backgroundSize:`1000%`,backgroundPositionX:`100%`},...e===`spin`&&{left:`50%`,top:`50%`,marginLeft:`calc(max(100vw, 100vh) * -0.5)`,marginTop:`calc(max(100vw, 100vh) * -0.5)`,height:`max(100vw, 100vh)`,width:`max(100vw, 100vh)`,animation:`${sF} 3s linear infinite`,backgroundImage:t===`negative`?`conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)`:`conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)`}}})),Object.assign((0,gO.forwardRef)(function({outlineAnimation:e=`none`,outlineColor:t,outlineAttrs:n={},...r},i){return gO.createElement(uF,{animation:e,color:t,ref:i,...n},gO.createElement(lF,{...r}))}),{Content:lF,Outline:uF}),{deprecate:dF}=__STORYBOOK_MODULE_CLIENT_LOGGER__,fF=[`preEnter`,`entering`,`entered`,`preExit`,`exiting`,`exited`,`unmounted`],pF=e=>({_s:e,status:fF[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),mF=e=>e?6:5,hF=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return mF(t)}},gF=e=>typeof e==`object`?[e.enter,e.exit]:[e,e],_F=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),vF=(e,t,n,r,i)=>{clearTimeout(r.current);let a=pF(e);t(a),n.current=a,i&&i({current:a})},yF=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:i,initialEntered:a,mountOnEnter:o,unmountOnExit:s,onStateChange:c}={})=>{let[l,u]=(0,vO.useState)(()=>pF(a?2:mF(o))),d=(0,vO.useRef)(l),f=(0,vO.useRef)(),[p,m]=gF(i),h=(0,vO.useCallback)(()=>{let e=hF(d.current._s,s);e&&vF(e,u,d,f,c)},[c,s]);return[l,(0,vO.useCallback)(i=>{let a=e=>{switch(vF(e,u,d,f,c),e){case 1:p>=0&&(f.current=setTimeout(h,p));break;case 4:m>=0&&(f.current=setTimeout(h,m));break;case 0:case 3:f.current=_F(a,e);break}},o=d.current.isEnter;typeof i!=`boolean`&&(i=!o),i?!o&&a(e?+!n:2):o&&a(t?r?3:4:mF(s))},[h,c,e,t,n,r,p,m,s]),h]},bF={},f(bF,{Actions:()=>WF,Close:()=>FF,CloseButton:()=>LF,Col:()=>BF,Container:()=>PF,Content:()=>RF,Description:()=>UF,Dialog:()=>IF,Error:()=>KF,ErrorWrapper:()=>GF,Header:()=>VF,Overlay:()=>NF,Row:()=>zF,Title:()=>HF}),{deprecate:xF}=__STORYBOOK_MODULE_CLIENT_LOGGER__,(0,xO.createContext)(null),(0,xO.createContext)(null),(0,xO.createContext)(null),(0,xO.createContext)(null),(0,xO.createContext)(null),SF=(0,xO.createContext)({}),CF=(0,SO.forwardRef)(function(e,t){[e,t]=NS(e,t,SF);let{children:n,level:r=3,className:i,...a}=e,o=`h${r}`;return SO.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),wF=(0,CO.createContext)({}),TF=(0,CO.forwardRef)(function(e,t){[e,t]=NS(e,t,wF);let{elementType:n=`span`,...r}=e;return CO.createElement(n,{className:`react-aria-Text`,...r,ref:t})}),EF=se({from:{opacity:0},to:{opacity:1}}),DF=se({from:{opacity:1},to:{opacity:0}}),OF=se({from:{maxHeight:0},to:{}}),kF=se({from:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`},to:{opacity:1,transform:`translate(-50%, -50%) scale(1)`}}),AF=se({from:{opacity:1,transform:`translate(-50%, -50%) scale(1)`},to:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`}}),jF=se({from:{opacity:0,maxHeight:`0px`},to:{opacity:1,maxHeight:`80vh`}}),MF=se({from:{opacity:1,maxHeight:`80vh`},to:{opacity:0,maxHeight:`0px`}}),NF=N.div(({$status:e,$transitionDuration:t})=>({backdropFilter:`blur(24px)`,background:`rgba(0, 0, 0, 0.4)`,position:`absolute`,inset:0,width:`100%`,height:`100%`,zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e===`exiting`||e===`preExit`?`${DF} ${t}ms`:`${EF} ${t}ms`,animationFillMode:`forwards`}})),PF=N.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:`0px 4px 67px 0px #00000040`,position:`absolute`,overflow:`auto`,zIndex:1e5,"&:focus-visible":{outline:`none`}}),({theme:e,width:t,height:n,$variant:r,$status:i,$transitionDuration:a})=>r===`dialog`?{top:`50%`,left:`50%`,width:t??740,height:n??`auto`,maxWidth:`calc(100% - 40px)`,maxHeight:`85vh`,"@media (prefers-reduced-motion: no-preference)":{willChange:`transform, opacity`,animationTimingFunction:`cubic-bezier(0.32, 0.72, 0, 1)`,animation:i===`exiting`||i===`preExit`?`${AF} ${a}ms`:`${kF} ${a}ms`,animationFillMode:`forwards !important`},"@media (prefers-reduced-motion: reduce)":{transform:`translate(-50%, -50%) scale(1)`}}:{bottom:`0`,left:`0`,right:`0`,borderRadius:`10px 10px 0 0`,overflow:`hidden`,width:t??`100%`,height:n??`80%`,maxWidth:`100%`,background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:`cubic-bezier(.9,.16,.77,.64)`,animation:i===`exiting`||i===`preExit`?`${MF} ${a}ms`:`${jF} ${a}ms`,animationFillMode:`forwards !important`}}),FF=({asChild:e,children:t,onClick:n,...r})=>{let{close:i}=(0,bO.useContext)(qF);if(e&&bO.isValidElement(t)){let e=e=>{n?.(e),t.props.onClick?.(e),i?.()};return bO.cloneElement(t,{...r,onClick:e})}return bO.createElement(VP,{type:`button`,padding:`small`,ariaLabel:`Close modal`,variant:`ghost`,shortcut:[`Escape`],onClick:i},bO.createElement(Ke,null))},IF={Close:()=>(xF(`Modal.Dialog.Close is deprecated, please use Modal.Close instead.`),bO.createElement(FF,{"data-deprecated":`Modal.Dialog.Close`}))},LF=({ariaLabel:e,...t})=>(xF(`Modal.CloseButton is deprecated, please use Modal.Close instead.`),bO.createElement(FF,{asChild:!0},bO.createElement(VP,{ariaLabel:e||`Close`,"data-deprecated":`Modal.CloseButton`,...t},bO.createElement(Ke,null)))),RF=N.div({display:`flex`,flexDirection:`column`,margin:16,gap:16}),zF=N.div({display:`flex`,justifyContent:`space-between`,gap:16}),BF=N.div({display:`flex`,flexDirection:`column`,gap:4}),VF=({hasClose:e=!0,onClose:t,...n})=>bO.createElement(zF,null,bO.createElement(BF,{...n}),e&&bO.createElement(FF,{onClick:t})),HF=N(e=>bO.createElement(CF,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),UF=N(TF)(({theme:e})=>({position:`relative`,zIndex:1,margin:0,fontSize:e.typography.size.s2})),WF=N.div({display:`flex`,flexDirection:`row-reverse`,gap:8}),GF=N.div(({theme:e})=>({maxHeight:100,overflow:`auto`,"@media (prefers-reduced-motion: no-preference)":{animation:`${OF} 300ms, ${EF} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:`relative`,padding:`8px 16px`}})),KF=({children:e,...t})=>bO.createElement(GF,{...t},bO.createElement(`div`,null,e)),qF=(0,_O.createContext)({}),Object.assign(mT,bF),N.div(({theme:e,col:t,row:n=1})=>t?{display:`inline-block`,verticalAlign:`inherit`,"& > *":{marginLeft:t*e.layoutMargin,verticalAlign:`inherit`},[`& > *:first-child${te}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${te}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:r})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&r):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),N.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),N.div(),N.div(({theme:e})=>({padding:30,textAlign:`center`,color:e.color.defaultText,fontSize:e.typography.size.s2-1})),JF=N.div(({centered:e=!1,scale:t=1,elementHeight:n})=>({height:n||`auto`,transformOrigin:e?`center top`:`left top`,transform:`scale(${1/t})`})),YF=class extends EO.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:n}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),n!==e.active&&this.iframe.setAttribute(`data-is-storybook`,e.active?`true`:`false`),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}render(){let{children:e}=this.props;return EO.createElement(EO.Fragment,null,e)}},XF={Element:vT,IFrame:YF},{global:ZF}=__STORYBOOK_MODULE_GLOBAL__,{document:QF}=ZF,$F=N.strong(({theme:e})=>({color:e.color.orange})),eI=N.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:`underline`})),tI=N.em(({theme:e})=>({color:e.textMutedColor})),nI=/(Error): (.*)\n/,rI=/at (?:(.*) )?\(?(.+)\)?/,iI=/([^@]+)?(?:\/<)?@(.+)?/,aI=/([^@]+)?@(.+)?/,oI=({error:e})=>{if(!e)return DO.createElement(DO.Fragment,null,`This error has no stack or message`);if(!e.stack)return DO.createElement(DO.Fragment,null,e.message||`This error has no stack or message`);let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
|
|
197
|
+
}`,document.head.prepend(r);let i=n=>{if(!(n.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&n.preventDefault()}},a=e=>{let t=e.target,n=e.relatedTarget;n&&mx(n)?(n.focus({preventScroll:!0}),Ww(n,mx(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=document.activeElement!=null&&mx(document.activeElement);o.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&Ww(this,t)};let s=Db(Uw(document,`touchstart`,n,{passive:!1,capture:!0}),Uw(document,`touchmove`,i,{passive:!1,capture:!0}),Uw(document,`blur`,a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function Hw(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Uw(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ww(e,t){t||!FN?Gw(e):FN.addEventListener(`resize`,()=>Gw(e),{once:!0})}function Gw(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=dx(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;FN&&(n=Math.min(n,FN.offsetTop+FN.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function Kw(){return(0,eO.useContext)(RN)??{}}function qw(e){let{children:t}=e,n=(0,tO.useContext)(zN),[r,i]=(0,tO.useState)(0),a=(0,tO.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return tO.createElement(zN.Provider,{value:a},t)}function Jw(){let e=(0,tO.useContext)(zN);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function Yw(e){let{modalProviderProps:t}=Jw();return tO.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function Xw(e){return tO.createElement(qw,null,tO.createElement(Yw,e))}function Zw(e){let t=Cb(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=Kw();if(!e.portalContainer&&i&&(n=i()),tO.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=tO.createElement(Xw,r);return nO.createPortal(a,n)}function Qw(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,iO.useState)(!1),{focusWithinProps:a}=SS({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,iO.useMemo)(()=>r?t:t?{...xP,...t}:xP,[r]);return{visuallyHiddenProps:{...a,style:o}}}function $w(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=Qw(e);return iO.createElement(n,z(a,o),t)}function eT(e){return e&&e.__esModule?e.default:e}function tT(e){let{onDismiss:t,...n}=e,r=rx(n,tw(eT(bP),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return rO.createElement($w,null,rO.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}function nT(e,t){let n=QA(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&SP,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&d(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)d(e),e=n.nextNode()}},d=e=>{let t=CP.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),CP.set(e,t+1))};wP.length&&wP[wP.length-1].disconnect(),u(i);let f=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`&&![...o,...s].some(e=>e.contains(t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?o.add(e):e instanceof Element&&u(e)});f.observe(i,{childList:!0,subtree:!0});let p={visibleNodes:o,hiddenNodes:s,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return wP.push(p),()=>{f.disconnect();for(let e of s){let t=CP.get(e);t!=null&&(t===1?(l(e,!1),CP.delete(e)):CP.set(e,t-1))}p===wP[wP.length-1]?(wP.pop(),wP.length&&wP[wP.length-1].observe()):wP.splice(wP.indexOf(p),1)}}function rT(e){let t=wP[wP.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function iT(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=Lw({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=ow({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return zw({isDisabled:a||!t.isOpen}),(0,aO.useEffect)(()=>{if(t.isOpen&&r.current)return a?rT(i?.current??r.current):nT([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:z(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}function aT(e){let t=Cb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,oO.useState)(!1),o=(0,oO.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=Kw();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=oO.createElement(lw,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=oO.createElement(TP.Provider,{value:o},oO.createElement(xS,null,c)),sO.createPortal(c,n)}function oT(){let e=(0,oO.useContext)(TP)?.setContain;W(()=>{e?.(!0)},[e])}function sT(e,t,n){let{overlayProps:r,underlayProps:i}=Lw({...e,isOpen:t.isOpen,onClose:t.close},n);return zw({isDisabled:!t.isOpen}),oT(),(0,cO.useEffect)(()=>{if(t.isOpen&&n.current)return nT([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:z(r),underlayProps:i}}function cT(e){let[t,n]=Mx(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:n,open:(0,uO.useCallback)(()=>{n(!0)},[n]),close:(0,uO.useCallback)(()=>{n(!1)},[n]),toggle:(0,uO.useCallback)(()=>{n(!t)},[n,t])}}function lT(e={}){let{delay:t=EP,closeDelay:n=DP}=e,{isOpen:r,open:i,close:a}=cT(e),o=(0,lO.useMemo)(()=>`${++kP}`,[]),s=(0,lO.useRef)(null),c=(0,lO.useRef)(a),l=()=>{OP[o]=f},u=()=>{for(let e in OP)e!==o&&(OP[e](!0),delete OP[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),AP=!0,i(),jP&&=(clearTimeout(jP),null),MP&&=(clearTimeout(MP),null)},f=e=>{e||n<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||=setTimeout(()=>{s.current=null,c.current()},n),jP&&=(clearTimeout(jP),null),AP&&(MP&&clearTimeout(MP),MP=setTimeout(()=>{delete OP[o],MP=null,AP=!1},Math.max(DP,n)))},p=()=>{u(),l(),!r&&!jP&&!AP?jP=setTimeout(()=>{jP=null,AP=!0,d()},t):r||d()};return(0,lO.useEffect)(()=>{c.current=a},[a]),(0,lO.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),OP[o]&&delete OP[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function uT(e){let t=lT(e),n=(0,dO.useRef)(null),{triggerProps:r,tooltipProps:i}=IS(e,t,n);return dO.createElement(AS,{values:[[NP,t],[PP,{...i,triggerRef:n}]]},dO.createElement($j,{...r,ref:n},e.children))}function dT(e){let t=(0,dO.useContext)(NP),n=(0,dO.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=ow({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=Cx(e.tooltipRef,!!a)||e.isEntering||!1,c=jS({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=z(e,r);let{tooltipProps:l}=FS(e,t),u=Rb(e,{global:!0});return dO.createElement(`div`,{...z(u,c,l),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...c.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},dO.createElement(sM.Provider,{value:{...i,placement:a,ref:n}},c.children))}function fT(e=``){let t=e.toLowerCase().trim().replace(/\s+/g,`-`);return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?pO.createElement(`span`,{id:t,hidden:!0},e):null}}function pT(e){let t=e=>typeof window<`u`?window.matchMedia(e).matches:!1,[n,r]=(0,yO.useState)(t(e));function i(){r(t(e))}return(0,yO.useEffect)(()=>{let t=window.matchMedia(e);return i(),t.addEventListener(`change`,i),()=>{t.removeEventListener(`change`,i)}},[e]),n}function mT({container:e,portalSelector:t,children:n,width:r,height:i,ariaLabel:a,dismissOnClickOutside:o=!0,dismissOnEscape:s=!0,className:c,open:l,onEscapeKeyDown:u,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:m=200,variant:h=`dialog`,...g}){let _;(a===void 0||a===``)&&(_=`ariaLabel`,dF("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),u!==void 0&&(_=`onEscapeKeyDown`,dF("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(_=`onInteractOutside`,dF("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=(0,_O.useRef)(null),[{status:y,isMounted:b},x]=yF({timeout:pT(`(prefers-reduced-motion: reduce)`)?0:m,mountOnEnter:!0,unmountOnExit:!0}),S=cT({isOpen:l||b,defaultOpen:p,onOpenChange:e=>{x(e),f?.(e)}}),C=()=>{S.close()},{modalProps:w,underlayProps:T}=sT({isDismissable:o,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?e=>{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,relatedTarget:e});return d(t),!t.defaultPrevented}:void 0},S,v);if((0,_O.useEffect)(()=>{let e=l??p??!1;e&&!b?x(!0):!e&&b&&x(!1)},[l,p,b,x]),(0,_O.useEffect)(()=>{b&&(l||p)&&f?.(!0)},[b]),(0,_O.useEffect)(()=>{if(b&&(l||p)&&v.current)return nT([v.current],{shouldUseInert:!0})},[b,l,p,v]),!b||y===`exited`||y===`unmounted`)return null;let E=z(w,{onKeyDown:e=>{e.key===`Escape`?s&&(u?.(e.nativeEvent),e.nativeEvent.defaultPrevented||C()):w.onKeyDown?.(e)}}),D=e??(t?document.querySelector(t):void 0);return _O.createElement(aT,{disableFocusManagement:!0,portalContainer:D||void 0},_O.createElement(lw,{restoreFocus:!0,contain:!0,autoFocus:!0},_O.createElement(NF,{$status:y,$transitionDuration:m,...T}),_O.createElement(`div`,{role:`dialog`,"aria-label":a,ref:v,...E},_O.createElement(qF.Provider,{value:{close:C}},_O.createElement(`div`,{tabIndex:-1},_O.createElement(PF,{"data-deprecated":_,$variant:h,$status:y,$transitionDuration:m,className:c,width:r,height:i,...g},n))))))}function hT(e,t){var n=(0,TO.useRef)(null),r=(0,TO.useRef)(null);r.current=t;var i=(0,TO.useRef)(null);(0,TO.useEffect)(function(){a()});var a=(0,TO.useCallback)(function(){var t=i.current,a=r.current,o=t||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===o&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:o,subscriber:e,cleanup:o?e(o):void 0})},[e]);return(0,TO.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,TO.useCallback)(function(e){i.current=e,a()},[a])}function gT(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t===`contentBoxSize`?e.contentRect[n===`inlineSize`?`width`:`height`]:void 0}function _T(e){e===void 0&&(e={});var t=e.onResize,n=(0,TO.useRef)(void 0);n.current=t;var r=e.round||Math.round,i=(0,TO.useRef)(),a=(0,TO.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],c=(0,TO.useRef)(!1);(0,TO.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]);var l=(0,TO.useRef)({width:void 0,height:void 0}),u=hT((0,TO.useCallback)(function(t){return(!i.current||i.current.box!==e.box||i.current.round!==r)&&(i.current={box:e.box,round:r,instance:new ResizeObserver(function(t){var i=t[0],a=e.box===`border-box`?`borderBoxSize`:e.box===`device-pixel-content-box`?`devicePixelContentBoxSize`:`contentBoxSize`,o=gT(i,a,`inlineSize`),u=gT(i,a,`blockSize`),d=o?r(o):void 0,f=u?r(u):void 0;if(l.current.width!==d||l.current.height!==f){var p={width:d,height:f};l.current.width=d,l.current.height=f,n.current?n.current(p):c.current||s(p)}})}),i.current.instance.observe(t,{box:e.box}),function(){i.current&&i.current.instance.unobserve(t)}},[e.box,r]),e.ref);return(0,TO.useMemo)(function(){return{ref:u,width:o.width,height:o.height}},[u,o.width,o.height])}function vT({centered:e,scale:t,children:n}){let r=(0,wO.useRef)(null),[i,a]=(0,wO.useState)(0),o=(0,wO.useCallback)(({height:e})=>{e&&a(e/t)},[t]);return(0,wO.useEffect)(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[t]),_T({ref:r,onResize:o}),wO.createElement(JF,{centered:e,scale:t,elementHeight:i},wO.createElement(`div`,{ref:r,className:`innerZoomElementWrapper`},n))}function yT(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),jI||(jI=document.createElement(`textarea`),jI.setAttribute(`tabindex`,`-1`),jI.setAttribute(`aria-hidden`,`true`),AI(jI)),jI.parentNode===null&&document.body.appendChild(jI);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;jI.style[t]=o[t]}),AI(jI),jI.value=t;var c=MI(jI,e);jI.value=t,c=MI(jI,e),jI.value=`x`;var l=jI.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function bT(e,t,n){var r=TI(n);FO.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}function xT(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function ST(e){return{...e,type:`option`,value:TT(e.value)}}function CT(e){return`type`in e&&e.type===`reset`?e:ST(e)}function wT(e){if(e!==QI)return e}function TT(e){return e===void 0?QI:e}function ET(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}function DT(e,t){return t===void 0?[]:xT(t)?e.filter(e=>e.value===t).map(ST):e.filter(e=>t.some(t=>e.value===t)).map(ST)}function OT(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function kT(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,HO.useMemo)(()=>new WeakMap,a);return(0,HO.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=o.get(a);if(!n){n=t(a);let e=n.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);r&&(e=r+`:`+e),n=(0,HO.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}else if(typeof t!=`function`)return t},[t,n,o,r,i])}function AT(e){if((0,UO.useContext)(gL))return UO.createElement(UO.Fragment,null,e.children);let t=UO.createElement(gL.Provider,{value:!0},e.children);return UO.createElement(`template`,{"data-react-aria-hidden":!0},t)}function jT(e){let t=(t,n)=>(0,UO.useContext)(gL)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,UO.forwardRef)(t)}function MT(){return(0,UO.useContext)(gL)}function NT(e){if((0,H.useContext)(vL))return e.content;let{collection:t,document:n}=IT(e.createCollection);return H.createElement(H.Fragment,null,H.createElement(AT,null,H.createElement(vL.Provider,{value:n},e.content)),H.createElement(PT,{render:e.children,collection:t}))}function PT({collection:e,render:t}){return t(e)}function FT(e,t,n){let r=Cb(),i=(0,H.useRef)(r);return i.current=r,(0,GO.useSyncExternalStore)(e,(0,H.useCallback)(()=>i.current?n():t(),[t,n]))}function IT(e){let[t]=(0,H.useState)(()=>new hL(e?.()||new fL)),n=yL((0,H.useCallback)(e=>t.subscribe(e),[t]),(0,H.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,H.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return W(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}function LT(e){var t;return t=class extends oL{},t.type=e,t}function RT(e,t,n,r,i,a){typeof e==`string`&&(e=LT(e));let o=(0,H.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,H.useContext)(bL);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?H.createElement(bL.Provider,{value:o},i):null}return H.createElement(e.type,{ref:o},i)}function zT(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,H.forwardRef)((r,i)=>{let a=(0,H.useContext)(Qj);if(!(0,H.useContext)(_L)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return RT(e,r,i,`children`in r?r.children:null,null,e=>H.createElement(Qj.Provider,{value:a},H.createElement(n,{node:e})))});return r.displayName=t.name,r}function BT(e,t,n=VT){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,H.forwardRef)((t,i)=>RT(e,t,i,null,n(t),e=>H.createElement(r,{node:e}))??H.createElement(H.Fragment,null));return i.displayName=t.name,i}function VT(e){return kT({...e,addIdAndValue:!0})}function HT(e){let t=(0,H.useContext)(xL),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=VT({...e,idScope:r,dependencies:n});return(0,H.useContext)(vL)&&(i=H.createElement(UT,null,i)),t=(0,H.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),H.createElement(xL.Provider,{value:t},i)}function UT({children:e}){let t=(0,H.useContext)(vL),n=(0,H.useMemo)(()=>H.createElement(vL.Provider,{value:null},H.createElement(_L.Provider,{value:!0},e)),[e]);return Cb()?H.createElement(bL.Provider,{value:t},n):(0,WO.createPortal)(n,t)}function WT(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=wb(t);let o=wb(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=rx({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function GT(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=Rb(e,{labelable:!0}),{labelProps:c,fieldProps:l}=WT({...e,labelElementType:`span`});t=Nx(t,n,r);let u=(t-n)/(r-n),d=iw(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:z(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}function KT(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=Jx({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=bS(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=z(y,_,Rb(e,{labelable:!0}));return{isPressed:v,buttonProps:z(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}function qT(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}function JT({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,YO.useRef)(null),o=(0,YO.useRef)(null),s=(0,YO.useContext)(EL),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=iT({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=Cx(m,!!f)||i.isEntering||!1,g=jS({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,YO.useState)(!1);W(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,YO.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&hS(m.current)},[v,m,i.trigger]);let b=(0,YO.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=YO.createElement(t.Provider,{value:null},e);return e},[g.children,r]),x={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style},S=YO.createElement(`div`,{...z(Rb(i,{global:!0}),l),...g,role:v?`dialog`:void 0,tabIndex:v?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:x,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&YO.createElement(tT,{onDismiss:e.close}),YO.createElement(sM.Provider,{value:{...d,placement:f,ref:a}},b),YO.createElement(tT,{onDismiss:e.close}));return c?YO.createElement(aT,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):YO.createElement(aT,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&YO.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),YO.createElement(`div`,{ref:o,style:{display:`contents`}},YO.createElement(EL.Provider,{value:o},S)))}function YT(e,t,n){return kT({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:XO.createElement(XO.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,XT(e,t,n))}})}function XT(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,XO.isValidElement)(t)&&s.push((0,XO.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}function ZT(e){return(0,XO.useMemo)(()=>e==null?null:new Set([e]),[e])}function QT(e){let t=Rb(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}function $T(e){return mj()?e.altKey:e.ctrlKey}function eE(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}function tE(e){let t=wb();return RL.set(e,t),t}function nE(e){return RL.get(e)}function rE(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,tk.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=iE(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target)||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},zL)}}:void 0}}}function iE(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function aE(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:h=`action`}=e,{direction:g}=rC(),_=Kb(),v=e=>{var i;if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!((i=r.current)!=null&&i.contains(e.target)))return;let u=(n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&l&&!$T(e)){(0,nk.flushSync)(()=>{t.setFocusedKey(n,i)});let a=eE(r,n),o=t.getItemProps(n);a&&_.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!$T(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.call(n):n.getKeyBelow?.call(n,t.focusedKey);r==null&&a&&(r=n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.call(n):n.getKeyAbove?.call(n,t.focusedKey);r==null&&a&&(r=n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?null:n.getKeyLeftOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getFirstKey?.call(n,t.focusedKey):n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?null:n.getKeyRightOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getLastKey?.call(n,t.focusedKey):n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,px(e));t.setFocusedKey(r),r!=null&&(px(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,px(e));t.setFocusedKey(r),r!=null&&(px(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`a`:px(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=Ow(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&zb(t)}break}}},y=(0,rk.useRef)({top:0,left:0});gx(m,`scroll`,p?void 0:()=>{y.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let b=e=>{if(t.isFocused){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.call(n)):r(t.firstSelectedKey??n.getFirstKey?.call(n))}else!p&&m.current&&(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&m.current){let e=eE(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&zb(e),dS()===`keyboard`&&yx(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,rk.useRef)(!1);gx(r,Dj,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=ax(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=ej();Nw(r.current),Fw(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});ox(()=>{S.current&&C()},[t.collection,C]);let w=ax(()=>{t.collection.size>0&&(S.current=!1)});ox(()=>{w()},[t.focusedKey,w]),gx(r,Ej,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,rk.useRef)(i),E=(0,rk.useRef)(!1);(0,rk.useEffect)(()=>{if(T.current){let e=null;i===`first`&&(e=n.getFirstKey?.call(n)??null),i===`last`&&(e=n.getLastKey?.call(n)??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e==null&&!d&&r.current&&hS(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,rk.useRef)(t.focusedKey),O=(0,rk.useRef)(null);(0,rk.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=dS(),n=eE(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(_x(m.current,n),e!==`virtual`&&yx(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&hS(r.current),D.current=t.focusedKey,E.current=!1}),(0,rk.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),gx(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:v,onFocus:b,onBlur:x,onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:A}=rE({keyboardDelegate:n,selectionManager:t});u||(k=z(A,k));let j;d||(j=t.focusedKey==null?0:-1);let M=tE(t.collection);return{collectionProps:z(k,{tabIndex:j,"data-collection":M})}}function oE(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=Kb();t=wb(t);let p=e=>{if(e.pointerType===`keyboard`&&$T(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(px(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,ik.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?Nw(i.current):s?s():document.activeElement!==i.current&&i.current&&hS(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()});let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,ik.useRef)(null),w=S&&v,T=(0,ik.useRef)(!1),E=(0,ik.useRef)(!1),D=n.getItemProps(r),O=e=>{if(l){var t;l(),(t=i.current)==null||t.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))}_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};if(a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||cE())&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!sE())return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||cE()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&sE()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=nE(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=z(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=Db(k[e],D[e]));let{pressProps:A,isPressed:j}=Jx(k),M=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:ee}=kS({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),te=e=>{C.current===`touch`&&T.current&&e.preventDefault()},N=d!==`none`&&n.isLink(r)?e=>{Jb.isOpening||e.preventDefault()}:void 0;return{itemProps:z(m,v||b||o&&!c?A:{},w?ee:{},{onDoubleClick:M,onDragStartCapture:te,onClick:N,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:j,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function sE(){return window.event?.key===`Enter`}function cE(){let e=window.event;return e?.key===` `||e?.code===`Space`}function lE(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=aw({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,ak.useMemo)(()=>a||new VL({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=aE({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function uE(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=Rb(e,{labelable:!0}),{listProps:c}=lE({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return LL.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:z(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{var n;(t.key!==`Escape`||e.shouldUseVirtualFocus)&&((n=c.onKeyDown)==null||n.call(c,t))}})}}function dE(e){return null}function fE(e){return e.hasChildItems==null?!!(e.childItems||e.title&&ok.Children.count(e.children)>0):e.hasChildItems}function pE(e){return null}function mE(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function hE(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function gE(e){return e[0].toUpperCase()+e.slice(1)}function _E(e,t,n){let r=(0,lk.useMemo)(()=>new UL,[]),{children:i,items:a,collection:o}=e;return(0,lk.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function vE(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function yE(e){return bE(e,0)}function bE(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function xE(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...SE(e,t),t],i=[...SE(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function SE(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function CE(e){let t=WL.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(vE(i,e)):i.type===`item`&&n++};return r(e),WL.set(e,n),n}function wE(e,t,n){let{id:r,key:i,closeOnSelect:a,isVirtualized:o,"aria-haspopup":s,onPressStart:c,onPressUp:l,onPress:u,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:h,onHoverEnd:g,onKeyDown:_,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:x,selectionManager:S=t.selectionManager}=e,C=!!s,w=C&&e[`aria-expanded`]===`true`,T=e.isDisabled??S.isDisabled(i),E=e.isSelected??S.isSelected(i),D=LL.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,A=Kb(),j=()=>{var t;if(!C&&(!(O==null||(t=O.props)==null)&&t.onAction?O.props.onAction():e.onAction&&e.onAction(i),D.onAction)){let e=D.onAction;e(i)}},M=`menuitem`;C||(S.selectionMode===`single`?M=`menuitemradio`:S.selectionMode===`multiple`&&(M=`menuitemcheckbox`));let ee=Eb(),te=Eb(),N=Eb(),ne={id:r,"aria-disabled":T||void 0,role:M,"aria-label":e[`aria-label`],"aria-labelledby":ee,"aria-describedby":[te,N].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(ne[`aria-checked`]=E),o&&(ne[`aria-posinset`]=O?.index,ne[`aria-setsize`]=CE(t.collection));let re=(0,uk.useRef)(!1),ie=e=>{d?.(e),re.current=e},ae=(0,uk.useRef)(null),oe=e=>{e.pointerType!==`keyboard`&&(ae.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(re.current||e.target.click()),l?.(e)},se=e=>{p?.(e),j(),Qb(e,A,O.props.href,O?.props.routerOptions);let t=ae.current?.pointerType===`keyboard`?ae.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),ae.current=null},{itemProps:ce,isFocused:le}=oE({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:ue,isPressed:de}=Jx({onPressStart:c,onPress:u,onPressUp:oe,onPressChange:ie,onPressEnd:f,isDisabled:T}),{hoverProps:fe}=ES({isDisabled:T,onHoverStart(e){!uS()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:pe}=vS({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:ae.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:ae.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e);break}},onKeyUp:v}),{focusProps:me}=gS({onBlur:x,onFocus:y,onFocusChange:b}),he=Rb(O?.props);delete he.id;let ge=Zb(O?.props);return{menuItemProps:{...ne,...z(he,ge,C?{onFocus:ce.onFocus,"data-collection":ce[`data-collection`],"data-key":ce[`data-key`]}:ce,ue,fe,pe,me,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:se}),tabIndex:ce.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:ce.tabIndex},labelProps:{id:ee},descriptionProps:{id:te},keyboardShortcutProps:{id:N},isFocused:le,isFocusVisible:le&&S.isFocused&&uS()&&!w,isSelected:E,isPressed:de,isDisabled:T}}function TE(e){let{heading:t,"aria-label":n}=e,r=wb();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function EE(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,dk.useRef)(void 0),o=(0,dk.useRef)(void 0),s=(0,dk.useRef)(0),c=(0,dk.useRef)(void 0),l=(0,dk.useRef)(void 0),u=(0,dk.useRef)(void 0),d=(0,dk.useRef)(2),[f,p]=(0,dk.useState)(!1);cx({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=GL,a.current=void 0},h=fS(),g=ax(e=>{f&&e.preventDefault()});(0,dk.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,dk.useEffect)(()=>{let e=n.current,f=t.current;if(i||!e||!r||h!==`pointer`||!f){m();return}o.current=e.getBoundingClientRect();let _=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-s.current<KL)return;clearTimeout(c.current),clearTimeout(l.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(u.current||=n>o.current.right?`left`:`right`,n<f.getBoundingClientRect().left||n>f.getBoundingClientRect().right||r<f.getBoundingClientRect().top||r>f.getBoundingClientRect().bottom){m();return}let i=a.current.x,h=a.current.y,g=u.current===`right`?o.current.left-i:i-o.current.right,_=Math.atan2(h-o.current.top,g)+JL,v=Math.atan2(h-o.current.bottom,g)-JL,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,GL):Math.max(d.current-1,0),d.current>=GL?p(!0):p(!1),s.current=t,a.current={x:n,y:r},b&&(c.current=setTimeout(()=>{m(),l.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&f.contains(e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},qL))};return window.addEventListener(`pointermove`,_),window.addEventListener(`pointerdown`,g,!0),()=>{window.removeEventListener(`pointermove`,_),window.removeEventListener(`pointerdown`,g,!0),clearTimeout(c.current),clearTimeout(l.current),d.current=GL}},[i,r,t,h,p,g,n])}function DE(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=wb(),u=wb(),{direction:d}=rC(),f=(0,fk.useRef)(void 0),p=(0,fk.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=ax(e=>{p(),t.open(e)}),h=ax(()=>{p(),t.close()});W(()=>()=>{p()},[p]);let g={id:u,"aria-labelledby":l,submenuLevel:t.submenuLevel,...a===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:e=>{if(e.currentTarget.contains(document.activeElement))switch(e.key){case`ArrowLeft`:d===`ltr`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&zb(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&zb(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&zb(n.current));break}}}};return gx(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()}),EE({menuRef:r,submenuRef:i,isOpen:t.isOpen,isDisabled:o}),{submenuTriggerProps:{id:l,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":o?void 0:a,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:e=>{!o&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&m(`first`)},onPress:e=>{!o&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&m()},onHoverChange:e=>{o||(e&&!t.isOpen?f.current||=setTimeout(()=>{m()},s):e||p())},onKeyDown:e=>{switch(e.key){case`ArrowRight`:o||(d===`ltr`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&zb(i.current)):t.isOpen?h():e.continuePropagation());break;case`ArrowLeft`:o||(d===`rtl`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&zb(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation();break}},isOpen:t.isOpen},submenuProps:g,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}function OE(e){let t=cT(e),[n,r]=(0,pk.useState)(null),[i,a]=(0,pk.useState)([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)}}}function kE(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,mk.useState)(r?.length),c=(0,mk.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,mk.useState)(null),d=(0,mk.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,mk.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,mk.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,mk.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}function AE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function jE(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,hk.useRef)(!1),[,s]=(0,hk.useState)(!1),c=(0,hk.useRef)(null),l=(0,hk.useRef)(null),[,u]=(0,hk.useState)(null),[d,f]=Mx((0,hk.useMemo)(()=>ME(e.selectedKeys),[e.selectedKeys]),(0,hk.useMemo)(()=>ME(e.defaultSelectedKeys,new XL),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,hk.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,hk.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,hk.useRef)(i);return(0,hk.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!AE(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function ME(e,t){return e?e===`all`?`all`:new XL(e):t}function NE(e){let{onExpandedChange:t}=e,[n,r]=Mx(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=jE(e),a=(0,gk.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=_E(e,(0,gk.useCallback)(e=>new YL(e,{expandedKeys:n}),[n]),null);return(0,gk.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(PE(n,e))},setExpandedKeys:r,selectionManager:new ZL(o,i)}}function PE(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function FE({props:e,collection:t,menuRef:n}){[e,n]=NS(e,n,jL);let{filter:r,...i}=e,a=(0,U.useMemo)(()=>r?t.filter(r):t,[t,r]),o=NE({...e,collection:a,children:void 0}),s=(0,U.useContext)(eR),{isVirtualized:c,CollectionRoot:l}=(0,U.useContext)(AL),{menuProps:u}=uE({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=jS({defaultClassName:`react-aria-Menu`,className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=U.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=Rb(e,{global:!0});return U.createElement(lw,null,U.createElement(`div`,{...z(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},U.createElement(AS,{values:[[$L,o],[FL,{elementType:`div`}],[OL,{name:`MenuSection`,render:IE}],[nR,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[aR,null],[jL,null],[ML,null],[tR,o.selectionManager],[eR,s??OE({})]]},U.createElement(l,{collection:o.collection,persistedKeys:ZT(o.selectionManager.focusedKey),scrollRef:n})),f))}function IE(e,t,n,r=`react-aria-MenuSection`){let i=(0,U.useContext)($L),{CollectionBranch:a}=(0,U.useContext)(AL),[o,s]=PS(),{headingProps:c,groupProps:l}=TE({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=jS({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,U.useContext)(tR),f=jE(e),p=e.selectionMode==null?d:new iR(d,f),m=Rb(e,{global:!0});return delete m.id,U.createElement(`section`,{...z(m,u,l),ref:t},U.createElement(AS,{values:[[NL,{...c,ref:o}],[tR,p]]},U.createElement(a,{collection:i.collection,parent:n})))}function LE(e,t){let{role:n=`dialog`}=e,r=Eb();r=e[`aria-label`]?void 0:r;let i=(0,_k.useRef)(!1);return(0,_k.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){hS(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),hS(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),oT(),{dialogProps:{...Rb(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}function RE(e){let t=OE(e),n=(0,vk.useRef)(null),{triggerProps:r,overlayProps:i}=Rw({type:`dialog`},t,n),[a,o]=(0,vk.useState)(null);return cx({ref:n,onResize:(0,vk.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=wb(),i[`aria-labelledby`]=r.id,vk.createElement(AS,{values:[[sR,t],[eR,t],[oR,i],[TL,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},vk.createElement(nM,{...r,ref:n,isPressed:t.isOpen},e.children))}function zE({children:e,...t},n){let r={props:t,ref:n};if(LR(r))return Tk.createElement(`a`,{ref:r.ref,...r.props},e);if(RR(r))return Tk.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}function BE(e){ZR("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=(0,Ok.useRef)(),n=(0,Ok.useRef)(),r=(0,Ok.useRef)(new Map),{width:i=1}=_T({ref:t}),[a,o]=(0,Ok.useState)(e),[s,c]=(0,Ok.useState)([]),l=(0,Ok.useRef)(e),u=(0,Ok.useCallback)(({menuName:e,actions:t})=>{let i=s.some(({active:e})=>e),[a,o]=(0,Ok.useState)(!1);return Ok.createElement(Ok.Fragment,null,Ok.createElement(cR,{ariaLabel:`Additional tabs`,visible:a,onVisibleChange:o,placement:`bottom`,popover:Ok.createElement(ER,{links:s.map(({title:e,id:n,color:r,active:i})=>({id:n,title:e,color:r,active:i,onClick:e=>{e.preventDefault(),t.onSelect(n)}}))})},Ok.createElement($R,{id:`addons-menu-button`,ref:n,active:i,preActive:a,style:{visibility:s.length?`visible`:`hidden`},"aria-hidden":!s.length,className:`tabbutton`,type:`button`,role:`tab`},e,Ok.createElement(QR,{className:`addon-collapsible-icon`,isActive:i||a}))),s.map(({title:e,id:t,color:n},i)=>{let a=`index-${i}`;return Ok.createElement(VR,{id:`tabbutton-${ep(t)??a}`,style:{visibility:`hidden`},"aria-hidden":!0,tabIndex:-1,ref:e=>{r.current.set(t,e)},className:`tabbutton`,type:`button`,key:t,textColor:n,role:`tab`},e)}))},[s]),d=(0,Ok.useCallback)(()=>{if(!t.current||!n.current)return;let{x:i,width:u}=t.current.getBoundingClientRect(),{width:d}=n.current.getBoundingClientRect(),f=s.length?i+u-d:i+u,p=[],m=0,h=e.filter(e=>{let{id:t}=e,n=r.current.get(t),{width:a=0}=n?.getBoundingClientRect()||{},o=i+m+a>f;return(!o||!n)&&p.push(e),m+=a,o});(p.length!==a.length||l.current!==e)&&(o(p),c(h),l.current=e)},[s.length,e,a]);return(0,Ok.useLayoutEffect)(d,[d,i]),{tabRefs:r,addonsRef:n,tabBarRef:t,visibleList:a,invisibleList:s,AddonTab:u}}function VE(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,Ak.useState)(!1);W(()=>{var e;o(!!(t.current&&(e=t.current.parentElement)!=null&&e.closest(`[role="toolbar"]`)))});let{direction:s}=rC(),c=s===`rtl`&&i===`horizontal`,l=kw(t),u=e=>{if(e.currentTarget.contains(e.target)){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){e.stopPropagation(),d.current=document.activeElement,e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,Ak.useRef)(null),f=e=>{!e.currentTarget.contains(e.relatedTarget)&&!d.current&&(d.current=e.target)},p=e=>{var n;if(d.current&&!e.currentTarget.contains(e.relatedTarget)&&(n=t.current)!=null&&n.contains(e.target)){var r;(r=d.current)==null||r.focus(),d.current=null}};return{toolbarProps:{...Rb(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function HE(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${dz.get(e)}-${n}-${t}`):``}function UE(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=oE({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a,linkBehavior:`selection`}),f=HE(t,r,`tab`),p=HE(t,r,`tabpanel`),{tabIndex:m}=u,h=t.collection.getItem(r),g=Rb(h?.props,{labelable:!0});delete g.id;let _=Zb(h?.props),{focusableProps:v}=bS({isDisabled:l},n);return{tabProps:z(g,v,_,u,{id:f,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?p:void 0,tabIndex:l?void 0:m,role:`tab`}),isSelected:c,isDisabled:l,isPressed:d}}function WE(e,t,n){let r=Mw(n)?void 0:0,i=HE(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:z(rx({...e,id:i,"aria-labelledby":HE(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}function GE(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=rC(),{collectionProps:l}=aE({ref:n,selectionManager:o,keyboardDelegate:(0,Mk.useMemo)(()=>new fz(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=wb();return dz.set(t,u),{tabListProps:{...z(l,rx({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function KE(e){let{filter:t,layoutDelegate:n}=e,r=jE(e),i=(0,Fk.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=_E(e,(0,Fk.useCallback)(e=>t?new wz(t(e)):new wz(e),[t]),(0,Fk.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,Fk.useMemo)(()=>new ZL(a,r,{layoutDelegate:n}),[a,r,n]);return qE(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function qE(e,t){let n=(0,Fk.useRef)(null);(0,Fk.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getItem(t.focusedKey),i=[...n.current.getKeys()].map(e=>{let t=n.current.getItem(e);return t?.type===`item`?t:null}).filter(e=>e!==null),a=[...e.getKeys()].map(t=>{let n=e.getItem(t);return n?.type===`item`?n:null}).filter(e=>e!==null),o=(i?.length??0)-(a?.length??0),s=Math.min(o>1?Math.max((r?.index??0)-o+1,0):r?.index??0,(a?.length??0)-1),c=null,l=!1;for(;s>=0;){if(!t.isDisabled(a[s].key)){c=a[s];break}s<a.length-1&&!l?s++:(l=!0,s>(r?.index??0)&&(s=r?.index??0),s--)}t.setFocusedKey(c?c.key:null)}n.current=e},[e,t])}function JE(e){let[t,n]=Mx(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,Ik.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=KE({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function YE(e){let t=JE({...e,onSelectionChange:e.onSelectionChange?t=>{var n;t!=null&&((n=e.onSelectionChange)==null||n.call(e,t))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??XE(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,Lk.useRef)(i);return(0,Lk.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=XE(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function XE(e,t){let n=null;if(e){var r,i,a,o;for(n=e.getFirstKey();n!=null&&(t.has(n)||!((i=e.getItem(n))==null||(r=i.props)==null)&&r.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||!((o=e.getItem(n))==null||(a=o.props)==null)&&a.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}function ZE({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=YE({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=jw({within:!0}),c=(0,Rk.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=jS({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=Rb(e,{global:!0});return Rk.createElement(`div`,{...z(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},Rk.createElement(AS,{values:[[Az,e],[jz,i]]},l.children))}function QE({props:e,forwardedRef:t}){let n=(0,Rk.useContext)(jz),{CollectionRoot:r}=(0,Rk.useContext)(AL),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=MS(Az),o=ix(t),{tabListProps:s}=GE({...e,orientation:i,keyboardActivation:a},n,o),c=jS({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=Rb(e,{global:!0});return delete l.id,Rk.createElement(`div`,{...z(l,c,s),ref:o,"data-orientation":i||void 0},Rk.createElement(r,{collection:n.collection,persistedKeys:ZT(n.selectionManager.focusedKey)}))}var $E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO,iO,aO,oO,sO,cO,lO,uO,dO,fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,V,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,H,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,U,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,W,WA,GA,KA,qA,JA,YA,XA,ZA,G,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,K,CM,wM,TM,EM,q,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM,KM,qM,JM,YM,XM,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz=n((()=>{be(),xe(),Ce(),de(),ue(),Le(),he(),g(),$E=t(o(),1),eD=t(o(),1),D(),tD=t(o(),1),nD=t(o(),1),rD=t(o(),1),o(),iD=t(o(),1),ct(),aD=t(o(),1),oD=t(o(),1),sD=t(o(),1),o(),cD=ve(),$y(),lD=t(o(),1),uD=t(o(),1),dD=t(o(),1),fD=t(o(),1),pD=t(o(),1),mD=t(o(),1),hD=t(o(),1),gD=t(o(),1),o(),_D=t(o(),1),vD=t(o(),1),yD=t(o(),1),o(),bD=t(o(),1),xD=t(o(),1),o(),SD=t(o(),1),CD=t(o(),1),o(),o(),o(),o(),wD=t(o(),1),TD=t(_e(),1),ED=t(o(),1),DD=t(o(),1),OD=t(o(),1),kD=t(o(),1),_e(),AD=t(o(),1),jD=t(o(),1),MD=t(o(),1),ND=t(o(),1),PD=t(o(),1),FD=t(o(),1),ID=t(o(),1),LD=t(o(),1),RD=t(o(),1),o(),o(),zD=t(o(),1),BD=t(o(),1),VD=t(o(),1),HD=t(o(),1),UD=t(o(),1),WD=t(o(),1),GD=t(o(),1),KD=t(o(),1),o(),qD=t(o(),1),o(),o(),JD=t(o(),1),o(),YD=t(o(),1),XD=t(o(),1),o(),ZD=t(o(),1),QD=t(o(),1),$D=t(o(),1),eO=t(o(),1),tO=t(o(),1),nO=t(_e(),1),rO=t(o(),1),iO=t(o(),1),aO=t(o(),1),oO=t(o(),1),sO=t(_e(),1),cO=t(o(),1),lO=t(o(),1),uO=t(o(),1),dO=t(o(),1),fO=t(o(),1),pO=t(o(),1),mO=t(o(),1),hO=t(o(),1),gO=t(o(),1),_O=t(o(),1),vO=t(o(),1),o(),yO=t(o(),1),bO=t(o(),1),xO=t(o(),1),SO=t(o(),1),CO=t(o(),1),o(),o(),wO=t(o(),1),TO=t(o(),1),EO=t(o(),1),DO=t(o(),1),V=t(o(),1),OO=t(o(),1),kO=t(o(),1),AO=t(o(),1),jO=t(o(),1),MO=t(o(),1),NO=t(o(),1),PO=t(o(),1),FO=t(o(),1),IO=t(o(),1),LO=t(o(),1),RO=t(o(),1),zO=t(o(),1),BO=t(o(),1),VO=t(o(),1),HO=t(o(),1),UO=t(o(),1),WO=t(_e(),1),H=t(o(),1),GO=tb(),KO=t(o(),1),qO=t(o(),1),o(),JO=t(o(),1),YO=t(o(),1),XO=t(o(),1),ZO=t(o(),1),QO=t(o(),1),$O=t(o(),1),ek=t(o(),1),tk=t(o(),1),nk=t(_e(),1),rk=t(o(),1),ik=t(o(),1),ak=t(o(),1),ok=t(o(),1),sk=t(o(),1),ck=t(o(),1),lk=t(o(),1),uk=t(o(),1),dk=t(o(),1),fk=t(o(),1),pk=t(o(),1),mk=t(o(),1),hk=t(o(),1),gk=t(o(),1),U=t(o(),1),_k=t(o(),1),vk=t(o(),1),yk=t(o(),1),bk=t(o(),1),o(),xk=t(o(),1),Sk=t(o(),1),Ck=t(o(),1),rp(),wk=t(o(),1),Tk=t(o(),1),Ek=t(o(),1),Dk=t(o(),1),Ok=t(o(),1),o(),o(),kk=t(o(),1),Ak=t(o(),1),jk=t(o(),1),Mk=t(o(),1),Nk=t(o(),1),Pk=t(o(),1),Fk=t(o(),1),Ik=t(o(),1),Lk=t(o(),1),o(),Rk=t(o(),1),o(),o(),o(),o(),o(),zk=t(o(),1),o(),o(),r(),Bk=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},Vk=({theme:e})=>({margin:`20px 0 8px`,padding:0,cursor:`text`,position:`relative`,color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& tt, & code":{fontSize:`inherit`}}),Hk=({theme:e})=>({lineHeight:1,margin:`0 2px`,padding:`3px 5px`,whiteSpace:`nowrap`,borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base===`light`?`1px solid hsl(0 0 0 / 0.05)`:`1px solid hsl(0 0 100 / 0.05)`,color:e.color.defaultText,backgroundColor:e.base===`light`?`hsl(0 0 0 / 0.01)`:`hsl(0 0 100 / 0.02)`}),Uk=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`}),Wk={margin:`16px 0`},Gk=N.div(Uk),Kk=({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return tD.createElement(`a`,{href:n,target:r,...t})},qk=N(Kk)(({theme:e})=>({...Uk({theme:e}),fontSize:`inherit`,lineHeight:`24px`,color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"&.absent":{color:`#cc0000`},"&.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`},"& code":{color:`inherit`,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,paddingLeft:0,paddingRight:0,"&::before":{content:`"\\00a0"`,fontSize:`0.5em`},"&::after":{content:`"\\00a0"`,fontSize:`0.5em`}}})),Jk=N.blockquote(({theme:e})=>({...Uk({theme:e}),...Wk,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Yk=[],Xk=null,Zk=(0,rD.lazy)(async()=>{let{SyntaxHighlighter:e}=await a(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-RTCFPKCB-DHMad3_O.js`);return{SyntaxHighlighter:e}},__vite__mapDeps([4,1,2,0,3,5,6,7,8]),import.meta.url);return Yk.length>0&&(Yk.forEach(t=>{e.registerLanguage(...t)}),Yk=[]),Xk===null&&(Xk=e),{default:t=>rD.createElement(e,{...t})}}),Qk=(0,rD.lazy)(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([a(()=>import(`./syntaxhighlighter-RTCFPKCB-DHMad3_O.js`),__vite__mapDeps([4,1,2,0,3,5,6,7,8]),import.meta.url),a(()=>import(`./formatter-L2YTDE3Q-DfQ24eKP.js`),__vite__mapDeps([9,1,2,3]),import.meta.url)]);return Yk.length>0&&(Yk.forEach(t=>{e.registerLanguage(...t)}),Yk=[]),Xk===null&&(Xk=e),{default:n=>rD.createElement(e,{...n,formatter:t})}}),$k=e=>rD.createElement(rD.Suspense,{fallback:rD.createElement(`div`,null)},e.format===!1?rD.createElement(Zk,{...e}):rD.createElement(Qk,{...e})),$k.registerLanguage=(...e)=>{if(Xk!==null){Xk.registerLanguage(...e);return}Yk.push(e)},eA=e=>typeof e==`string`,tA=/[\n\r]/g,nA=N.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`,...Hk({theme:e})})),rA=N($k)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:`19px`,margin:`25px 0 40px`,borderRadius:e.appBorderRadius,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,"pre.prismjs":{padding:20,background:`inherit`}})),iA=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=nD.Children.toArray(t);return i.filter(eA).some(e=>e.match(tA))?nD.createElement(rA,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):nD.createElement(nA,{...n,className:e},i)},aA=N.dl(({theme:e})=>({...Uk({theme:e}),...Wk,padding:0,"& dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,padding:0,margin:`16px 0 4px`},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:`0 0 16px`,padding:`0 15px`},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),oA=N.div(Uk),sA=N.h1(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),cA=N.h2(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),lA=N.h3(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.m1}px`})),uA=N.h4(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.s3}px`})),dA=N.h5(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.s2}px`})),fA=N.h6(({theme:e})=>({...Uk({theme:e}),...Vk({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),pA=N.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),mA=N.img({maxWidth:`100%`}),hA=N.li(({theme:e})=>({...Uk({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":Hk({theme:e})})),gA={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},_A=N.ol(({theme:e})=>({...Uk({theme:e}),...Wk,...gA,listStyle:`decimal`})),vA=N.p(({theme:e})=>({...Uk({theme:e}),...Wk,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":Hk({theme:e})})),yA=N.pre(({theme:e})=>({...Uk({theme:e}),...Wk,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,lineHeight:`18px`,padding:`11px 1rem`,whiteSpace:`pre-wrap`,color:`inherit`,borderRadius:3,margin:`1rem 0`,"&:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`,code:{color:`inherit`,fontSize:`inherit`}},"& code":{whiteSpace:`pre`},"& code, & tt":{border:`none`}})),bA=N.span(({theme:e})=>({...Uk({theme:e}),"&.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"&.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"&.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"&.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"&.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}}})),xA=N.title(Hk),SA=N.table(({theme:e})=>({...Uk({theme:e}),...Wk,fontSize:e.typography.size.s2,lineHeight:`24px`,padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base===`dark`?e.color.darker:e.color.lighter},"& tr th":{fontWeight:`bold`,color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:`6px 13px`},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:`6px 13px`},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),CA={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},wA=N.ul(({theme:e})=>({...Uk({theme:e}),...Wk,...CA,listStyle:`disc`})),TA={h1:e=>eD.createElement(sA,{...Bk(e,`h1`)}),h2:e=>eD.createElement(cA,{...Bk(e,`h2`)}),h3:e=>eD.createElement(lA,{...Bk(e,`h3`)}),h4:e=>eD.createElement(uA,{...Bk(e,`h4`)}),h5:e=>eD.createElement(dA,{...Bk(e,`h5`)}),h6:e=>eD.createElement(fA,{...Bk(e,`h6`)}),pre:e=>eD.createElement(yA,{...Bk(e,`pre`)}),a:e=>eD.createElement(qk,{...Bk(e,`a`)}),hr:e=>eD.createElement(pA,{...Bk(e,`hr`)}),dl:e=>eD.createElement(aA,{...Bk(e,`dl`)}),blockquote:e=>eD.createElement(Jk,{...Bk(e,`blockquote`)}),table:e=>eD.createElement(SA,{...Bk(e,`table`)}),img:e=>eD.createElement(mA,{...Bk(e,`img`)}),div:e=>eD.createElement(oA,{...Bk(e,`div`)}),span:e=>eD.createElement(bA,{...Bk(e,`span`)}),li:e=>eD.createElement(hA,{...Bk(e,`li`)}),ul:e=>eD.createElement(wA,{...Bk(e,`ul`)}),ol:e=>eD.createElement(_A,{...Bk(e,`ol`)}),p:e=>eD.createElement(vA,{...Bk(e,`p`)}),code:e=>eD.createElement(iA,{...Bk(e,`code`)}),tt:e=>eD.createElement(xA,{...Bk(e,`tt`)}),resetwrapper:e=>eD.createElement(Gk,{...Bk(e,`resetwrapper`)})},N.div(({theme:e,compact:t})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:`12px`,minWidth:20,borderRadius:20,padding:t?`4px 7px`:`4px 10px`}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:`currentColor`}}},({theme:e,status:t})=>{switch(t){case`critical`:return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case`negative`:return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case`warning`:return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case`neutral`:return{color:e.fgColor.muted,background:e.base===`dark`?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${O(.8,e.textMutedColor)}`};case`positive`:return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case`active`:return{color:e.base===`light`?le(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${O(.9,e.color.secondary)}`};default:return{}}}),{deprecate:EA}=__STORYBOOK_MODULE_CLIENT_LOGGER__,DA=0,OA=e=>e.button===DA&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,kA=(e,t)=>{OA(e)&&(e.preventDefault(),t(e))},AA=N.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:`0.7em`,width:`0.7em`,marginRight:0,marginLeft:`0.25em`,bottom:`auto`,verticalAlign:`inherit`}}:{},({containsIcon:e})=>e?{svg:{height:`1em`,width:`1em`,verticalAlign:`middle`,position:`relative`,bottom:0,marginRight:0}}:{}),jA=N.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:le(.07,e.color.secondary),"svg path:not([fill])":{fill:le(.07,e.color.secondary)}},"&:active":{color:le(.1,e.color.secondary),"svg path:not([fill])":{fill:le(.1,e.color.secondary)}},svg:{display:`inline-block`,height:`1em`,width:`1em`,verticalAlign:`text-top`,position:`relative`,bottom:`-0.125em`,marginRight:`0.4em`,"& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:n})=>{let r;return t&&(r=[e.textMutedColor,e.color.secondary,e.color.secondary]),n&&(r=[e.color.dark,e.color.secondary,e.color.secondary]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[2]}}}:{}},({nochrome:e})=>e?{color:`inherit`,"&:hover, &:active":{color:`inherit`,textDecoration:`underline`}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:`none`,padding:0,fontSize:`inherit`,lineHeight:`inherit`,"&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:`1`}}:{}),MA=(0,iD.forwardRef)(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:i=!1,className:a=void 0,isButton:o=void 0,href:s,...c},l)=>(o!==void 0&&EA("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),iD.createElement(jA,{as:s?`a`:`button`,href:s,...c,ref:l,isButton:!s||o===!0,onClick:n&&e?e=>kA(e,n):n,className:a},iD.createElement(AA,{withArrow:r,containsIcon:i},t,r&&iD.createElement(et,null))))),MA.displayName=`Link`,N.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:`1.6`,h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`},"pre pre code, pre.prismjs code":{color:`inherit`,fontSize:`inherit`},"pre code":{margin:0,padding:0,whiteSpace:`pre`,border:`none`,background:`transparent`},"pre code, pre tt":{backgroundColor:`transparent`,border:`none`},"body > *:first-of-type":{marginTop:`0 !important`},"body > *:last-child":{marginBottom:`0 !important`},a:{color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"& code":{color:`inherit`,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,paddingLeft:0,paddingRight:0,"&::before":{content:`"\\00a0"`,fontSize:`0.5em`},"&::after":{content:`"\\00a0"`,fontSize:`0.5em`}}},"a.absent":{color:`#cc0000`},"a.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`},"h1, h2, h3, h4, h5, h6":{margin:`20px 0 10px`,padding:0,cursor:`text`,position:`relative`,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& tt, & code":{fontSize:`inherit`}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:`15px 0`},hr:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:`inline-block`},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,margin:`0 0 15px`,padding:`0 15px`,"&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:`white`,margin:0,padding:0,"& th":{fontWeight:`bold`,border:`1px solid ${e.appBorderColor}`,textAlign:`left`,margin:0,padding:`6px 13px`},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:`left`,margin:0,padding:`6px 13px`},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:`100%`},"span.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"span.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"span.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"span.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"span.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}},"code, tt":{margin:`0 2px`,padding:`0 5px`,whiteSpace:`nowrap`,border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base===`dark`?e.color.darkest:e.color.dark}})),{global:NA}=__STORYBOOK_MODULE_GLOBAL__,{document:PA,window:FA}=NA,{deprecate:IA}=__STORYBOOK_MODULE_CLIENT_LOGGER__,LA=Symbol.for(`react.lazy`),RA=sD.use,zA=ub(`Slot`),BA=Symbol(`radix.slottable`),fb(`Slottable`),VA=N.div(({theme:e})=>({padding:`2px 6px`,lineHeight:`16px`,fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:`0 0 5px 0 rgba(0, 0, 0, 0.3)`,borderRadius:4,whiteSpace:`nowrap`,pointerEvents:`none`,zIndex:-1,background:e.base===`light`?`rgba(60, 60, 60, 0.9)`:`rgba(0, 0, 0, 0.95)`})),HA=({note:e,...t})=>uD.createElement(VA,{...t},e),{deprecate:UA}=__STORYBOOK_MODULE_CLIENT_LOGGER__,W=typeof document<`u`?fD.useLayoutEffect:()=>{},WA={prefix:String(Math.round(Math.random()*1e10)),current:0},GA=hD.createContext(WA),KA=hD.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,qA=new WeakMap,JA=typeof hD.useId==`function`?yb:vb,YA=!!(typeof window<`u`&&window.document&&window.document.createElement),XA=new Map,typeof FinalizationRegistry<`u`&&(ZA=new FinalizationRegistry(e=>{XA.delete(e)})),G=e=>e?.ownerDocument??document,QA=e=>e&&`window`in e&&e.window===e?e:G(e).defaultView||window,$A=!1,ej=(e=document)=>{var t;if(!Ab())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n},tj=class{get currentNode(){return this._currentNode}set currentNode(e){if(!jb(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return jb(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter==`function`?n=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if(typeof this.filter==`function`?e=this.filter(t):(n=this.filter)!=null&&n.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else{var t;if(typeof this.filter==`function`)return this.filter(e);if((t=this.filter)!=null&&t.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}},nj=Fb,rj=new Set([`id`]),ij=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),aj=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),oj=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),sj=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),cj=/^(data-.*)$/,lj=null,uj=Gb(function(){return Wb(/^Mac/i)}),dj=Gb(function(){return Wb(/^iPhone/i)}),fj=Gb(function(){return Wb(/^iPad/i)||uj()&&navigator.maxTouchPoints>1}),pj=Gb(function(){return dj()||fj()}),mj=Gb(function(){return uj()||pj()}),hj=Gb(function(){return Ub(/AppleWebKit/i)&&!gj()}),gj=Gb(function(){return Ub(/Chrome/i)}),_j=Gb(function(){return Ub(/Android/i)}),vj=Gb(function(){return Ub(/Firefox/i)}),yj=(0,gD.createContext)({isNative:!0,open:Xb,useHref:e=>e}),Jb.isOpening=!1,bj=new Map,xj=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,$b):$b()),Sj=yD.useInsertionEffect??W,Cj=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),typeof document<`u`&&window.visualViewport,wj=0,Tj=new Map,Ej=`react-aria-clear-focus`,Dj=`react-aria-focus`,Oj=typeof Element<`u`&&`checkVisibility`in Element.prototype,kj=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],Aj=kj.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,kj.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),jj=kj.join(`:not([hidden]):not([tabindex="-1"]),`),Mj=typeof document<`u`?DD.useInsertionEffect??DD.useLayoutEffect:()=>{},Nj=!1,Pj=`default`,Fj=``,Ij=new WeakMap,Lj=kD.createContext({register:()=>{}}),Lj.displayName=`PressResponderContext`,Rj=new WeakMap,zj=class{continuePropagation(){Kx(this,Rj,!1)}get shouldStopPropagation(){return Hx(this,Rj)}constructor(e,t,n,r){Wx(this,Rj,{writable:!0,value:void 0}),Kx(this,Rj,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o}},Bj=Symbol(`linkClicked`),Vj=`react-aria-pressable-style`,Hj=`data-react-aria-pressable`,Uj=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Wj=null,Gj=new Set,Kj=new Map,qj=!1,Jj=!1,Yj={Tab:!0,Escape:!0},Xj=(e,t)=>{let n=QA(e),r=G(e);t&&r.removeEventListener(`DOMContentLoaded`,t),Kj.has(n)&&(n.HTMLElement.prototype.focus=Kj.get(n).focus,r.removeEventListener(`keydown`,rS,!0),r.removeEventListener(`keyup`,rS,!0),r.removeEventListener(`click`,aS,!0),n.removeEventListener(`focus`,oS,!0),n.removeEventListener(`blur`,sS,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,iS,!0),r.removeEventListener(`pointermove`,iS,!0),r.removeEventListener(`pointerup`,iS,!0)),Kj.delete(n))},typeof document<`u`&&lS(),Zj=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Qj=ND.createContext(null),$j=ND.forwardRef(function(e,t){let{children:n,...r}=e,i=ix(t),a={...r,ref:i};return ND.createElement(Qj.Provider,{value:a},n)}),eM=(0,ND.forwardRef)(({children:e,...t},n)=>{n=ix(n);let{focusableProps:r}=bS(t,n),i=ND.Children.only(e);(0,ND.useEffect)(()=>{},[n,t.isDisabled]);let a=i.props.ref;return ND.cloneElement(i,{...z(r,i.props),ref:Ib(a,n)})}),tM=PD.forwardRef(({children:e,...t},n)=>{n=ix(n);let{pressProps:r}=Jx({...t,ref:n}),{focusableProps:i}=bS(t,n),a=PD.Children.only(e);(0,PD.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return PD.cloneElement(a,{...z(r,i,a.props),ref:Ib(o,n)})}),nM=FD.forwardRef(({children:e,...t},n)=>{let r=(0,FD.useRef)(!1),i=(0,FD.useContext)(Lj);n=ix(n||i?.ref);let a=z(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return lx(i,n),(0,FD.useEffect)(()=>{r.current||=!0},[]),FD.createElement(Lj.Provider,{value:a},e)}),rM=!1,iM=0,aM=500,oM=Symbol(`default`),sM=(0,VD.createContext)({placement:`bottom`}),(0,VD.forwardRef)(function(e,t){[e,t]=NS(e,t,sM);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=jS({...e,defaultClassName:`react-aria-OverlayArrow`,values:{placement:n}});i.style&&Object.keys(i.style).forEach(e=>i.style[e]===void 0&&delete i.style[e]);let a=Rb(e);return VD.createElement(`div`,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),cM={top:`top`,bottom:`top`,left:`left`,right:`left`},lM={top:`bottom`,bottom:`top`,left:`right`,right:`left`},uM={top:`left`,left:`top`},dM={top:`height`,left:`width`},fM={width:`totalWidth`,height:`totalHeight`},pM={},mM=typeof document<`u`?window.visualViewport:null,hM=new WeakMap,gM=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),_M=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),vM=Symbol.for(`react-aria.i18n.locale`),yM=eC(),bM=new Set,xM=KD.createContext(null),SM=function(e,t){return SM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},SM(e,t)},K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K.apply(this,arguments)},CM=function(){return JSON.stringify(arguments)},wM=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e})(),TM={create:function(){return new wM}},EM={variadic:pC,monadic:mC},(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`})(q||={}),(function(e){e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`,e[e.tag=8]=`tag`})(DM||={}),(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(OM||={}),kM=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,AM=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,jM=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,MM=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,NM=/^(@+)?(\+|#+)?[rs]?$/g,PM=/(\*)(0+)|(#+)(0+)|(0+)/g,FM=/^(0+)$/,IM={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]},LM=RegExp(`^${kM.source}*`),RM=RegExp(`${kM.source}*\$`),zM=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),BM=!!String.fromCodePoint,VM=!!Object.fromEntries,HM=!!String.prototype.codePointAt,UM=!!String.prototype.trimStart,WM=!!String.prototype.trimEnd,GM=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},KM=!0;try{qM=IC(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),KM=qM.exec(`a`)?.[0]===`a`}catch{KM=!1}JM=zM?(function(e,t,n){return e.startsWith(t,n)}):(function(e,t,n){return e.slice(n,n+t.length)===t}),YM=BM?String.fromCodePoint:(function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t}),XM=VM?Object.fromEntries:(function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t}),ZM=HM?(function(e,t){return e.codePointAt(t)}):(function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}}),QM=UM?(function(e){return e.trimStart()}):(function(e){return e.replace(LM,``)}),$M=WM?(function(e){return e.trimEnd()}):(function(e){return e.replace(RM,``)}),KM?(tN=IC(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),eN=function(e,t){return tN.lastIndex=t,tN.exec(e)[1]??``}):eN=function(e,t){for(var n=[];;){var r=ZM(e,t);if(r===void 0||BC(r)||VC(r))break;n.push(r),t+=r>=65536?2:1}return YM.apply(void 0,n)},nN=(function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(i===125&&e>0)break;if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:DM.pound,location:B(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(q.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&LC(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:DM.literal,value:`<${r}/>`,location:B(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!LC(this.char()))return this.error(q.INVALID_TAG,B(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:DM.tag,value:r,children:a,location:B(n,this.clonePosition())},err:null}:this.error(q.INVALID_TAG,B(o,this.clonePosition()))):this.error(q.UNMATCHED_CLOSING_TAG,B(s,this.clonePosition()))}else return this.error(q.UNCLOSED_TAG,B(n,this.clonePosition()))}else return this.error(q.INVALID_TAG,B(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&zC(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=B(n,this.clonePosition());return{val:{type:DM.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!RC(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return YM.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),YM(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(q.EMPTY_ARGUMENT,B(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(q.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:DM.argument,value:r,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(q.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=eN(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:B(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(q.EXPECT_ARGUMENT_TYPE,B(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=$M(l.val);if(u.length===0)return this.error(q.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:B(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=B(r,this.clonePosition());if(s&&JM(s?.style,`::`,0)){var p=QM(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:DM.number,value:n,location:f,style:l.val},err:null}}else{if(p.length===0)return this.error(q.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=PC(p,this.locale));var u={type:OM.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?EC(m):{}};return{val:{type:a===`date`?DM.date:DM.time,value:n,location:f,style:u},err:null}}}return{val:{type:a===`number`?DM.number:a===`date`?DM.date:DM.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(q.EXPECT_SELECT_ARGUMENT_OPTIONS,B(h,K({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=B(r,this.clonePosition());return a===`select`?{val:{type:DM.select,value:n,options:XM(v.val),location:y},err:null}:{val:{type:DM.plural,value:n,options:XM(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(q.INVALID_ARGUMENT_TYPE,B(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=DC(e)}catch{return this.error(q.INVALID_NUMBER_SKELETON,t)}return{val:{type:OM.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?NC(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_SELECTOR,q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=B(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:B(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?q.EXPECT_SELECT_ARGUMENT_SELECTOR:q.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(q.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=B(r,this.clonePosition());return i?(a*=n,GM(a)?{val:a,err:null}:this.error(t,s)):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=ZM(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(JM(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&BC(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e})(),(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(rN||={}),iN=(function(e){iC(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t})(Error),aN=(function(e){iC(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,rN.INVALID_VALUE,i)||this}return t})(iN),oN=(function(e){iC(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,rN.INVALID_VALUE,r)||this}return t})(iN),sN=(function(e){iC(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,rN.MISSING_VALUE,n)||this}return t})(iN),(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(cN||={}),(function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==cN.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return KC(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=aC(o,[`formatters`]);this.ast=e.__parse(t,K(K({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=JC(e.formats,r),this.formatters=i&&i.formatters||XC(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(!(typeof Intl.Locale>`u`)){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=UC,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},e})(),lN=Symbol.for(`react-aria.i18n.locale`),uN=Symbol.for(`react-aria.i18n.strings`),fN=class e{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=ZC(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[lN];if(dN===void 0){let t=window[uN];if(!t)return null;dN={};for(let r in t)dN[r]=new e({[n]:t[r]},n)}let r=dN?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}},pN=new Map,mN=new Map,hN=class{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=pN.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),pN.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=mN.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),mN.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}constructor(e,t){this.locale=e,this.strings=t}},gN=new WeakMap,_N=1080,vN=24*_N,yN=29,bN=12*_N+793,yN*vN+bN,xN=new Map,SN=!1;try{SN=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}CN=!1;try{CN=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}if(wN={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},TN=class{format(e){let t=``;if(t=!SN&&this.options.signDisplay!=null?rw(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!CN){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=wN[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u2013 ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!SN&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!CN&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=nw(e,t),this.options=t}},EN=new Map,DN=typeof document<`u`?window.visualViewport:null,ON=YD.createContext(null),kN=`react-aria-focus-scope-restore`,AN=null,jN=class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new MN({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&gw(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new MN({scopeRef:null}),this.fastMap.set(null,this.root)}},MN=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},NN=new jN,PN=[],FN=typeof document<`u`&&window.visualViewport,IN=0,RN=(0,eO.createContext)({}),zN=tO.createContext(null),BN={},BN={dismiss:`تجاهل`},VN={},VN={dismiss:`Отхвърляне`},HN={},HN={dismiss:`Odstranit`},UN={},UN={dismiss:`Luk`},WN={},WN={dismiss:`Schließen`},GN={},GN={dismiss:`Απόρριψη`},KN={},KN={dismiss:`Dismiss`},qN={},qN={dismiss:`Descartar`},JN={},JN={dismiss:`Lõpeta`},YN={},YN={dismiss:`Hylkää`},XN={},XN={dismiss:`Rejeter`},ZN={},ZN={dismiss:`התעלם`},QN={},QN={dismiss:`Odbaci`},$N={},$N={dismiss:`Elutasítás`},eP={},eP={dismiss:`Ignora`},tP={},tP={dismiss:`閉じる`},nP={},nP={dismiss:`무시`},rP={},rP={dismiss:`Atmesti`},iP={},iP={dismiss:`Nerādīt`},aP={},aP={dismiss:`Lukk`},oP={},oP={dismiss:`Negeren`},sP={},sP={dismiss:`Zignoruj`},cP={},cP={dismiss:`Descartar`},lP={},lP={dismiss:`Dispensar`},uP={},uP={dismiss:`Revocare`},dP={},dP={dismiss:`Пропустить`},fP={},fP={dismiss:`Zrušiť`},pP={},pP={dismiss:`Opusti`},mP={},mP={dismiss:`Odbaci`},hP={},hP={dismiss:`Avvisa`},gP={},gP={dismiss:`Kapat`},_P={},_P={dismiss:`Скасувати`},vP={},vP={dismiss:`取消`},yP={},yP={dismiss:`關閉`},bP={},bP={"ar-AE":BN,"bg-BG":VN,"cs-CZ":HN,"da-DK":UN,"de-DE":WN,"el-GR":GN,"en-US":KN,"es-ES":qN,"et-EE":JN,"fi-FI":YN,"fr-FR":XN,"he-IL":ZN,"hr-HR":QN,"hu-HU":$N,"it-IT":eP,"ja-JP":tP,"ko-KR":nP,"lt-LT":rP,"lv-LV":iP,"nb-NO":aP,"nl-NL":oP,"pl-PL":sP,"pt-BR":cP,"pt-PT":lP,"ro-RO":uP,"ru-RU":dP,"sk-SK":fP,"sl-SI":pP,"sr-SP":mP,"sv-SE":hP,"tr-TR":gP,"uk-UA":_P,"zh-CN":vP,"zh-TW":yP},xP={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`},SP=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype,CP=new WeakMap,wP=[],TP=oO.createContext(null),EP=1500,DP=500,OP={},kP=0,AP=!1,jP=null,MP=null,NP=(0,dO.createContext)(null),PP=(0,dO.createContext)(null),FP=(0,dO.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=NS(t,n,PP);let r=(0,dO.useContext)(NP),i=lT(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=wx(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:dO.createElement(Zw,{portalContainer:e},dO.createElement(dT,{...t,tooltipRef:n,isExiting:o}))}),IP=v(pe(),1),LP=(0,IP.default)(1e3)(e=>e===`left-end`?`left bottom`:e===`right-end`?`right bottom`:e===`left-start`?`left top`:e===`right-start`?`right top`:e.replace(`-`,` `)),N.div({width:500,height:500,paddingTop:100,overflowY:`scroll`,background:`#eee`,position:`relative`}),RP=(0,fO.forwardRef)((e,t)=>fO.createElement(`button`,{...e,ref:t,style:{width:120,height:50,margin:10}})),RP.displayName=`Trigger`,zP=({triggerOnFocusOnly:e=!1,placement:t=`top`,offset:n=8,tooltip:r,children:i,defaultVisible:a,startOpen:o,delayShow:s=400,delayHide:c=200,visible:l,onVisibleChange:u,...d})=>{let f=LP(t),p=dD.Children.only(i);o!==void 0&&UA("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,h]=(0,dD.useState)(a??o??!1),g=(0,dD.useCallback)(e=>{h(e),u?.(e)},[u]);return dD.createElement(uT,{delay:s,closeDelay:c,isOpen:l??m,onOpenChange:g,trigger:e?`focus`:void 0,...d},dD.createElement(eM,null,dD.cloneElement(p,{"aria-describedby":null})),dD.createElement(FP,{"data-testid":`tooltip`,placement:f,offset:n,onOpenChange:g,style:{outline:`none`},...d},r))},BP=({children:e,disableAllTooltips:t,shortcut:n,tooltip:r})=>{let i=(0,lD.useMemo)(()=>{let e=document?.body?.getAttribute(`data-shortcuts-enabled`)!==`false`;if(!(!r&&(!n||!e)))return[r,n&&e&&`[${$_(n)}]`].filter(Boolean).join(` `)},[n,r]);return i?lD.createElement(zP,{placement:`top`,tooltip:lD.createElement(HA,{note:i}),visible:t?!1:void 0},e):lD.createElement(lD.Fragment,null,e)},BP.displayName=`InteractiveTooltipWrapper`,VP=(0,oD.forwardRef)(({as:e=`button`,asChild:t=!1,animation:n=`none`,size:r=`small`,variant:i=`outline`,padding:a=`medium`,disabled:o=!1,readOnly:s=!1,active:c,onClick:l,ariaLabel:u,ariaDescription:d=void 0,tooltip:f=void 0,shortcut:p=void 0,disableAllTooltips:m=!1,...h},g)=>{let _=t?zA:e,v;!s&&(u===void 0||u===``)&&(v=`ariaLabel`,IA(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${h.children}.`)),c!==void 0&&(v=`active`,IA("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:y,AriaDescription:b}=fT(d),x=(0,oD.useMemo)(()=>p?ev(p):void 0,[p]),[S,C]=(0,oD.useState)(!1);return(0,oD.useEffect)(()=>{let e=setTimeout(()=>{S&&C(!1)},1e3);return()=>clearTimeout(e)},[S]),oD.createElement(oD.Fragment,null,oD.createElement(BP,{disableAllTooltips:m,shortcut:p,tooltip:f||(u===!1?void 0:u)},oD.createElement(HP,{"data-deprecated":v,as:_,ref:g,variant:i,size:r,padding:a,$disabled:o||s,"aria-disabled":o||s?`true`:void 0,readOnly:s,active:c,animating:S,animation:n,onClick:o||s?void 0:e=>{l&&l(e),n!==`none`&&C(!0)},"aria-label":!s&&u!==!1?u:void 0,"aria-keyshortcuts":s?void 0:x,...s?{}:y,...h})),oD.createElement(b,null))}),VP.displayName=`Button`,HP=N(`button`,{shouldForwardProp:e=>ie(e)})(({theme:e,variant:t,size:n,$disabled:r,readOnly:i,active:a,animating:o,animation:s=`none`,padding:c})=>({border:0,cursor:i?`inherit`:r?`not-allowed`:`pointer`,display:`inline-flex`,gap:`6px`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,padding:c===`none`?0:c===`small`&&n===`small`?`0 7px`:c===`small`&&n===`medium`?`0 9px`:n===`small`?`0 10px`:n===`medium`?`0 12px`:0,height:n===`small`?`28px`:`32px`,position:`relative`,textAlign:`center`,textDecoration:`none`,transitionProperty:`background, box-shadow`,transitionDuration:`150ms`,transitionTimingFunction:`ease-out`,verticalAlign:`top`,whiteSpace:`nowrap`,userSelect:`none`,opacity:r&&!i?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:`1`,background:t===`solid`?e.base===`light`?e.color.secondary:le(.18,e.color.secondary):t===`outline`?e.button.background:t===`ghost`&&a?O(.93,e.barSelectedColor):`transparent`,color:t===`solid`?e.color.lightest:t===`outline`?e.input.color:t===`ghost`&&a?e.base===`light`?le(.1,e.color.secondary):e.color.secondary:t===`ghost`?e.textMutedColor:e.input.color,boxShadow:t===`outline`?`${e.button.border} 0 0 0 1px inset`:`none`,borderRadius:e.input.borderRadius,flexShrink:0,...!i&&{"&:hover":{color:t===`ghost`?e.color.secondary:void 0,background:(()=>{let n=e.color.secondary;return t===`solid`&&(n=e.base===`light`?fe(.1,e.color.secondary):le(.3,e.color.secondary)),t===`outline`&&(n=e.button.background),t===`ghost`?O(.86,e.color.secondary):e.base===`light`?le(.02,n):fe(.03,n)})()},"&:active":{color:t===`ghost`?e.color.secondary:void 0,background:(()=>{let n=e.color.secondary;return t===`solid`&&(n=e.color.secondary),t===`outline`&&(n=e.button.background),t===`ghost`?e.background.hoverable:e.base===`light`?le(.02,n):fe(.03,n)})()},"&:focus-visible":{outline:`2px solid ${T(e.color.secondary,1)}`,outlineOffset:2,zIndex:`1`},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:`0 0 auto`,animation:o&&s!==`none`?`${e.animation[s]} 1000ms ease-out`:``}})),UP=(0,oD.forwardRef)((e,t)=>(IA("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),oD.createElement(VP,{ref:t,...e,"data-deprecated":`IconButton`}))),UP.displayName=`IconButton`,WP=(0,mO.forwardRef)(({pressed:e,...t},n)=>mO.createElement(GP,{role:`switch`,"aria-checked":e,ref:n,pressed:e,...t})),WP.displayName=`ToggleButton`,GP=N(VP)(({theme:e,variant:t=`outline`,pressed:n})=>({...n?{...t===`solid`?{background:e.base===`lighten`?le(.1,e.color.secondary):le(.2,e.color.secondary)}:{},...t===`outline`?{background:O(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t===`ghost`?{background:O(.93,e.barSelectedColor),color:e.base===`light`?le(.1,e.color.secondary):e.color.secondary}:{}}:{}})),KP=N.li(({active:e,theme:t})=>({display:`flex`,alignItems:`center`,justifyContent:`space-between`,flex:`0 0 auto`,overflow:`hidden`,minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?`var(--listbox-item-active-color)`:t.color.defaultText,"--listbox-item-active-color":t.base===`light`?le(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?`var(--listbox-item-active-color)`:t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:`not-allowed`},'&[aria-selected="true"]':{color:`var(--listbox-item-active-color)`,fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":`var(--listbox-item-active-color)`},"&:not(:hover, :has(:focus-visible)) :not(input) + input":{position:`absolute`,opacity:0},'&[role="option"]':{cursor:`pointer`,borderRadius:t.input.borderRadius,outlineOffset:-2,padding:`0 9px`,gap:8,"&:hover":{background:O(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transitionBehavior:`allow-discrete`,transitionDuration:`var(--transition-duration, 0.2s)`,transitionProperty:`opacity, block-size, content-visibility`},"@media (prefers-reduced-motion: reduce)":{transition:`none`}}),({transitionStatus:e})=>{switch(e){case`preEnter`:case`exiting`:case`exited`:return{opacity:0,blockSize:0,contentVisibility:`hidden`};default:return{opacity:1,blockSize:`auto`,contentVisibility:`visible`}}}),qP=N(KP)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:`auto`,marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transitionProperty:`inline-size, margin-left, opacity, padding-inline`,transitionDuration:`var(--transition-duration, 0.2s)`}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),JP=N(VP)(({size:e})=>({gap:e===`small`?6:8,"&:focus-visible":{outlineOffset:-2}})),YP=N(WP)({"&:focus-visible":{outlineOffset:-2}}),XP=(0,aD.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return aD.createElement(JP,{...r,variant:n,padding:e,size:t,ref:i})}),ZP=(0,aD.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return aD.createElement(YP,{...r,variant:n,padding:e,size:t,ref:i})}),QP=N(XP)(({theme:e})=>({height:`auto`,minHeight:32,flex:`0 1 100%`,textAlign:`start`,justifyContent:`space-between`,fontWeight:`inherit`,color:`inherit`,"&:hover":{color:`inherit`},"& input:enabled:focus-visible":{outline:`none`},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),$P=e=>aD.createElement(QP,{as:`a`,...e}),eF=N.div(({theme:e})=>({display:`flex`,flexDirection:`column`,justifyContent:`center`,flexGrow:1,minWidth:0,padding:`8px 0`,lineHeight:`16px`,"& > *":{margin:0,whiteSpace:`normal`},"& > span":{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},"& small":{fontSize:`inherit`,color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),tF=N.div({display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`0 0 14px`,width:14,height:14,color:`var(--listbox-item-muted-color)`}),nF=Object.assign(N.ul(({theme:e,onClick:t})=>({listStyle:`none`,margin:0,padding:4,cursor:t?`pointer`:`default`,"& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:KP,HoverItem:qP,Button:XP,Toggle:ZP,Action:QP,Link:$P,Text:eF,Icon:tF}),rF=N.div(({collapsed:e=!1})=>({blockSize:e?0:`auto`,contentVisibility:e?`hidden`:`visible`,transform:e?`translateY(-10px)`:`translateY(0)`,opacity:+!e,overflow:`hidden`,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transition:`all var(--transition-duration, 0.2s)`,transitionBehavior:`allow-discrete`},"@media (prefers-reduced-motion: reduce)":{transition:`none`}})),Object.assign(function({children:e,summary:t,collapsed:n,disabled:r,initialCollapsed:i,storageKey:a,state:o,...s}){let c=aF({collapsed:n,disabled:r,initialCollapsed:i,storageKey:a}),l=o||c;return hO.createElement(hO.Fragment,null,typeof t==`function`?t(l):t,hO.createElement(rF,{...s,id:l.contentId,collapsed:l.isCollapsed,"aria-hidden":l.isCollapsed},typeof e==`function`?e(l):e))},{Content:rF}),iF=(e,t)=>{let[n,r]=(0,hO.useState)(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return(0,hO.useEffect)(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]},aF=({collapsed:e,disabled:t,initialCollapsed:n=e,storageKey:r})=>{let[i,a]=iF(r&&`useCollapsible:${r}`,!!n);(0,hO.useEffect)(()=>{e!==void 0&&a(e)},[e,a]);let o=(0,hO.useCallback)(e=>{e?.stopPropagation(),t||a(e=>!e)},[t,a]),s=wb();return{contentId:s,isCollapsed:i,isDisabled:!!t,setCollapsed:a,toggleCollapsed:o,toggleProps:{disabled:t,onClick:o,"aria-controls":s,"aria-expanded":!i}}},oF=se({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),sF=se({"0%":{transform:`rotate(0deg)`},"10%":{transform:`rotate(10deg)`},"40%":{transform:`rotate(170deg)`},"50%":{transform:`rotate(180deg)`},"60%":{transform:`rotate(190deg)`},"90%":{transform:`rotate(350deg)`},"100%":{transform:`rotate(360deg)`}}),cF=se({to:{backgroundPositionX:`36%`}}),lF=N.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:`relative`})),uF=N.div(({animation:e=`none`,color:t,theme:n})=>({position:`relative`,width:`100%`,padding:1,overflow:`hidden`,backgroundColor:n.background.content,borderRadius:n.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e===`none`&&t&&n.color[t]||n.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:`box-shadow 1s`,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transition:`all var(--transition-duration, 0.2s), box-shadow 1s`,transitionBehavior:`allow-discrete`},"@media (prefers-reduced-motion: reduce)":{transition:`box-shadow 1s`},"&:before":{content:`""`,display:e===`none`?`none`:`block`,position:`absolute`,left:0,top:0,width:`100%`,height:`100%`,opacity:1,...e===`rainbow`&&{animation:`${cF} 10s infinite linear, ${oF} 60s infinite linear`,backgroundImage:`linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))`,backgroundSize:`1000%`,backgroundPositionX:`100%`},...e===`spin`&&{left:`50%`,top:`50%`,marginLeft:`calc(max(100vw, 100vh) * -0.5)`,marginTop:`calc(max(100vw, 100vh) * -0.5)`,height:`max(100vw, 100vh)`,width:`max(100vw, 100vh)`,animation:`${sF} 3s linear infinite`,backgroundImage:t===`negative`?`conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)`:`conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)`}}})),Object.assign((0,gO.forwardRef)(function({outlineAnimation:e=`none`,outlineColor:t,outlineAttrs:n={},...r},i){return gO.createElement(uF,{animation:e,color:t,ref:i,...n},gO.createElement(lF,{...r}))}),{Content:lF,Outline:uF}),{deprecate:dF}=__STORYBOOK_MODULE_CLIENT_LOGGER__,fF=[`preEnter`,`entering`,`entered`,`preExit`,`exiting`,`exited`,`unmounted`],pF=e=>({_s:e,status:fF[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),mF=e=>e?6:5,hF=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return mF(t)}},gF=e=>typeof e==`object`?[e.enter,e.exit]:[e,e],_F=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),vF=(e,t,n,r,i)=>{clearTimeout(r.current);let a=pF(e);t(a),n.current=a,i&&i({current:a})},yF=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:i,initialEntered:a,mountOnEnter:o,unmountOnExit:s,onStateChange:c}={})=>{let[l,u]=(0,vO.useState)(()=>pF(a?2:mF(o))),d=(0,vO.useRef)(l),f=(0,vO.useRef)(),[p,m]=gF(i),h=(0,vO.useCallback)(()=>{let e=hF(d.current._s,s);e&&vF(e,u,d,f,c)},[c,s]);return[l,(0,vO.useCallback)(i=>{let a=e=>{switch(vF(e,u,d,f,c),e){case 1:p>=0&&(f.current=setTimeout(h,p));break;case 4:m>=0&&(f.current=setTimeout(h,m));break;case 0:case 3:f.current=_F(a,e);break}},o=d.current.isEnter;typeof i!=`boolean`&&(i=!o),i?!o&&a(e?+!n:2):o&&a(t?r?3:4:mF(s))},[h,c,e,t,n,r,p,m,s]),h]},bF={},f(bF,{Actions:()=>WF,Close:()=>FF,CloseButton:()=>LF,Col:()=>BF,Container:()=>PF,Content:()=>RF,Description:()=>UF,Dialog:()=>IF,Error:()=>KF,ErrorWrapper:()=>GF,Header:()=>VF,Overlay:()=>NF,Row:()=>zF,Title:()=>HF}),{deprecate:xF}=__STORYBOOK_MODULE_CLIENT_LOGGER__,(0,xO.createContext)(null),(0,xO.createContext)(null),(0,xO.createContext)(null),(0,xO.createContext)(null),(0,xO.createContext)(null),SF=(0,xO.createContext)({}),CF=(0,SO.forwardRef)(function(e,t){[e,t]=NS(e,t,SF);let{children:n,level:r=3,className:i,...a}=e,o=`h${r}`;return SO.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),wF=(0,CO.createContext)({}),TF=(0,CO.forwardRef)(function(e,t){[e,t]=NS(e,t,wF);let{elementType:n=`span`,...r}=e;return CO.createElement(n,{className:`react-aria-Text`,...r,ref:t})}),EF=se({from:{opacity:0},to:{opacity:1}}),DF=se({from:{opacity:1},to:{opacity:0}}),OF=se({from:{maxHeight:0},to:{}}),kF=se({from:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`},to:{opacity:1,transform:`translate(-50%, -50%) scale(1)`}}),AF=se({from:{opacity:1,transform:`translate(-50%, -50%) scale(1)`},to:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`}}),jF=se({from:{opacity:0,maxHeight:`0px`},to:{opacity:1,maxHeight:`80vh`}}),MF=se({from:{opacity:1,maxHeight:`80vh`},to:{opacity:0,maxHeight:`0px`}}),NF=N.div(({$status:e,$transitionDuration:t})=>({backdropFilter:`blur(24px)`,background:`rgba(0, 0, 0, 0.4)`,position:`absolute`,inset:0,width:`100%`,height:`100%`,zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e===`exiting`||e===`preExit`?`${DF} ${t}ms`:`${EF} ${t}ms`,animationFillMode:`forwards`}})),PF=N.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:`0px 4px 67px 0px #00000040`,position:`absolute`,overflow:`auto`,zIndex:1e5,"&:focus-visible":{outline:`none`}}),({theme:e,width:t,height:n,$variant:r,$status:i,$transitionDuration:a})=>r===`dialog`?{top:`50%`,left:`50%`,width:t??740,height:n??`auto`,maxWidth:`calc(100% - 40px)`,maxHeight:`85vh`,"@media (prefers-reduced-motion: no-preference)":{willChange:`transform, opacity`,animationTimingFunction:`cubic-bezier(0.32, 0.72, 0, 1)`,animation:i===`exiting`||i===`preExit`?`${AF} ${a}ms`:`${kF} ${a}ms`,animationFillMode:`forwards !important`},"@media (prefers-reduced-motion: reduce)":{transform:`translate(-50%, -50%) scale(1)`}}:{bottom:`0`,left:`0`,right:`0`,borderRadius:`10px 10px 0 0`,overflow:`hidden`,width:t??`100%`,height:n??`80%`,maxWidth:`100%`,background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:`cubic-bezier(.9,.16,.77,.64)`,animation:i===`exiting`||i===`preExit`?`${MF} ${a}ms`:`${jF} ${a}ms`,animationFillMode:`forwards !important`}}),FF=({asChild:e,children:t,onClick:n,...r})=>{let{close:i}=(0,bO.useContext)(qF);if(e&&bO.isValidElement(t)){let e=e=>{n?.(e),t.props.onClick?.(e),i?.()};return bO.cloneElement(t,{...r,onClick:e})}return bO.createElement(VP,{type:`button`,padding:`small`,ariaLabel:`Close modal`,variant:`ghost`,shortcut:[`Escape`],onClick:i},bO.createElement(Ke,null))},IF={Close:()=>(xF(`Modal.Dialog.Close is deprecated, please use Modal.Close instead.`),bO.createElement(FF,{"data-deprecated":`Modal.Dialog.Close`}))},LF=({ariaLabel:e,...t})=>(xF(`Modal.CloseButton is deprecated, please use Modal.Close instead.`),bO.createElement(FF,{asChild:!0},bO.createElement(VP,{ariaLabel:e||`Close`,"data-deprecated":`Modal.CloseButton`,...t},bO.createElement(Ke,null)))),RF=N.div({display:`flex`,flexDirection:`column`,margin:16,gap:16}),zF=N.div({display:`flex`,justifyContent:`space-between`,gap:16}),BF=N.div({display:`flex`,flexDirection:`column`,gap:4}),VF=({hasClose:e=!0,onClose:t,...n})=>bO.createElement(zF,null,bO.createElement(BF,{...n}),e&&bO.createElement(FF,{onClick:t})),HF=N(e=>bO.createElement(CF,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),UF=N(TF)(({theme:e})=>({position:`relative`,zIndex:1,margin:0,fontSize:e.typography.size.s2})),WF=N.div({display:`flex`,flexDirection:`row-reverse`,gap:8}),GF=N.div(({theme:e})=>({maxHeight:100,overflow:`auto`,"@media (prefers-reduced-motion: no-preference)":{animation:`${OF} 300ms, ${EF} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:`relative`,padding:`8px 16px`}})),KF=({children:e,...t})=>bO.createElement(GF,{...t},bO.createElement(`div`,null,e)),qF=(0,_O.createContext)({}),Object.assign(mT,bF),N.div(({theme:e,col:t,row:n=1})=>t?{display:`inline-block`,verticalAlign:`inherit`,"& > *":{marginLeft:t*e.layoutMargin,verticalAlign:`inherit`},[`& > *:first-child${te}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${te}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:r})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&r):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),N.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),N.div(),N.div(({theme:e})=>({padding:30,textAlign:`center`,color:e.color.defaultText,fontSize:e.typography.size.s2-1})),JF=N.div(({centered:e=!1,scale:t=1,elementHeight:n})=>({height:n||`auto`,transformOrigin:e?`center top`:`left top`,transform:`scale(${1/t})`})),YF=class extends EO.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:n}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),n!==e.active&&this.iframe.setAttribute(`data-is-storybook`,e.active?`true`:`false`),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}render(){let{children:e}=this.props;return EO.createElement(EO.Fragment,null,e)}},XF={Element:vT,IFrame:YF},{global:ZF}=__STORYBOOK_MODULE_GLOBAL__,{document:QF}=ZF,$F=N.strong(({theme:e})=>({color:e.color.orange})),eI=N.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:`underline`})),tI=N.em(({theme:e})=>({color:e.textMutedColor})),nI=/(Error): (.*)\n/,rI=/at (?:(.*) )?\(?(.+)\)?/,iI=/([^@]+)?(?:\/<)?@(.+)?/,aI=/([^@]+)?@(.+)?/,oI=({error:e})=>{if(!e)return DO.createElement(DO.Fragment,null,`This error has no stack or message`);if(!e.stack)return DO.createElement(DO.Fragment,null,e.message||`This error has no stack or message`);let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
|
|
198
198
|
|
|
199
199
|
${t}`);let n=t.match(nI);if(!n)return DO.createElement(DO.Fragment,null,t);let[,r,i]=n,[,...a]=t.split(/\n/).slice(1).map(e=>{let t=e.match(rI)||e.match(iI)||e.match(aI);return t?{name:(t[1]||``).replace(`/<`,``),location:t[2].replace(QF.location.origin,``)}:null}).filter(Boolean);return DO.createElement(DO.Fragment,null,DO.createElement(`span`,null,r),`: `,DO.createElement($F,null,i),DO.createElement(`br`,null),a.map((e,t)=>e?.name?DO.createElement(DO.Fragment,{key:t},` `,`at `,DO.createElement(eI,null,e.name),` (`,DO.createElement(tI,null,e.location),`)`,DO.createElement(`br`,null)):DO.createElement(DO.Fragment,{key:t},` `,`at `,DO.createElement(tI,null,e?.location),DO.createElement(`br`,null))))},sI=N.input(({theme:e})=>({appearance:`none`,backgroundColor:e.input.background,border:`1px solid ${e.base===`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,borderRadius:2,display:`grid`,flexShrink:0,height:14,margin:0,placeContent:`center`,transition:`background-color 0.1s`,width:14,"&:enabled":{cursor:`pointer`},"&:disabled":{backgroundColor:`transparent`,borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base===`dark`?j.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:`none`,backgroundColor:j.secondary},"&:checked::before":{content:`""`,width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:`""`,width:8,height:2,background:`white`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),cI=e=>OO.createElement(sI,{...e,type:`checkbox`}),lI=N.label(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,margin:`0 15px`,padding:`8px 0`,"&:last-child":{marginBottom:`3rem`}})),uI=N.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,lineHeight:`16px`})),dI=({label:e,children:t,...n})=>kO.createElement(lI,{...n},e?kO.createElement(uI,null,kO.createElement(`span`,null,e)):null,t),fI=(({size:e})=>{switch(e){case`100%`:return{width:`100%`};case`flex`:return{flex:1};default:return{display:`inline`}}}),pI=(({align:e})=>{switch(e){case`end`:return{textAlign:`right`};case`center`:return{textAlign:`center`};default:return{textAlign:`left`}}}),mI=(({valid:e,theme:t})=>{switch(e){case`valid`:return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case`error`:return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case`warn`:return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}}),hI={appearance:`none`,border:`0 none`,boxSizing:`inherit`,display:`block`,margin:` 0`,background:`transparent`,padding:0,fontSize:`inherit`,position:`relative`},gI=(({theme:e})=>({...hI,transition:`box-shadow 200ms ease-out, opacity 200ms ease-out`,color:e.input.color||`inherit`,background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:`20px`,padding:`6px 10px`,boxSizing:`border-box`,height:32,'&[type="file"]':{height:`auto`},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:`none`,"@media (forced-colors: active)":{outline:`1px solid highlight`}},'&[disabled], &[aria-disabled="true"]':{background:e.base===`light`?e.color.lighter:`transparent`,cursor:`not-allowed`},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}})),_I=N.div({position:`relative`,width:`100%`}),vI=N.div(({theme:e})=>({position:`absolute`,left:0,right:0,top:0,bottom:0,display:`flex`,alignItems:`center`,pointerEvents:`none`,overflow:`hidden`,color:e.textMutedColor,"span:first-of-type":{opacity:0}}),e=>{let{fontSize:t,lineHeight:n,padding:r}=gI(e);return{fontSize:t,lineHeight:n,padding:r}}),yI=Object.assign(N((0,jO.forwardRef)(function({size:e,valid:t,align:n,value:r,suffix:i,...a},o){let s=wb();return AO.createElement(_I,null,AO.createElement(`input`,{...a,value:r,ref:o,"aria-describedby":i?s:void 0}),i&&AO.createElement(vI,{"aria-hidden":!0},AO.createElement(`span`,null,r),AO.createElement(`span`,{id:s},i)))}))(gI,fI,pI,mI,{minHeight:32,width:`100%`}),{displayName:`Input`}),bI=N.input(({theme:e})=>({appearance:`none`,backgroundColor:e.input.background,border:`1px solid ${e.base===`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,borderRadius:8,display:`grid`,flexShrink:0,height:16,margin:-1,placeContent:`center`,transition:`background-color 0.1s`,width:16,"&:enabled":{cursor:`pointer`},"&:disabled":{backgroundColor:`transparent`,borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base===`dark`?j.dark:e.color.mediumdark,borderColor:e.base===`dark`?j.dark:e.color.mediumdark},"&:checked":{backgroundColor:j.secondary,borderColor:j.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),xI=e=>MO.createElement(bI,{...e,type:`radio`}),SI=N.select(fI,({theme:e})=>({appearance:`none`,background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:`6px 30px 6px 10px`,"@supports (appearance: base-select)":{appearance:`base-select`,background:e.input.background,padding:`6px 10px`},transition:`box-shadow 200ms ease-out, opacity 200ms ease-out`,color:e.input.color||`inherit`,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:`20px`,boxSizing:`border-box`,border:`none`,cursor:`pointer`,"& > button":{display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`,gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:`none`,boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:`none`},"&::picker(select)":{appearance:`base-select`,border:`1px solid ${e.input.border}`,padding:4,marginTop:4,background:e.base===`light`?ee(e.background.app):e.background.app,filter:`
|
|
200
200
|
drop-shadow(0 5px 5px rgba(0,0,0,0.05))
|
|
@@ -202,7 +202,7 @@ ${t}`);let n=t.match(nI);if(!n)return DO.createElement(DO.Fragment,null,t);let[,
|
|
|
202
202
|
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:`default`,transition:`opacity 100ms ease-in-out, transform 100ms ease-in-out`,transformOrigin:`top`,transform:`translateY(0)`,opacity:1,"@starting-style":{transform:`translateY(-0.25rem) scale(0.95)`,opacity:0}},"& optgroup label":{display:`block`,padding:`3px 6px`},"& option":{lineHeight:`18px`,padding:`7px 10px`,borderRadius:4,outline:`none`,cursor:`pointer`,color:e.color.defaultText,"&::checkmark":{display:`none`},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:`transparent`,cursor:`default`,color:e.color.defaultText}}})),CI=({children:e,...t})=>NO.createElement(SI,{...t},!Ie()&&NO.createElement(`button`,null,NO.createElement(`selectedcontent`,null),NO.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},NO.createElement(`path`,{d:`m6 9 6 6 6-6`}))),NO.createElement(`optgroup`,null,e)),wI=LO.useLayoutEffect,TI=function(e){var t=IO.useRef(e);return wI(function(){t.current=e}),t},EI=function(e,t){if(typeof e==`function`){e(t);return}e.current=t},DI=function(e,t){var n=RO.useRef();return RO.useCallback(function(r){e.current=r,n.current&&EI(n.current,null),n.current=t,t&&EI(t,r)},[t])},OI={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`},kI=function(e){Object.keys(OI).forEach(function(t){e.style.setProperty(t,OI[t],`important`)})},AI=kI,jI=null,MI=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize},NI=function(){},PI=function(e,t){return e.reduce(function(e,n){return e[n]=t[n],e},{})},FI=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],II=!!document.documentElement.currentStyle,LI=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=PI(FI,t),r=n.boxSizing;return r===``?null:(II&&r===`border-box`&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+`px`),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})},RI=LI,zI=function(e,t){bT(document.body,`reset`,function(n){e.current.form===n.target&&t(n)})},BI=function(e){bT(window,`resize`,e)},VI=function(e){bT(document.fonts,`loadingdone`,e)},HI=[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`],UI=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=a===void 0?NI:a,s=e.onHeightChange,c=s===void 0?NI:s,l=we(e,HI),u=l.value!==void 0,d=FO.useRef(null),f=DI(d,t),p=FO.useRef(0),m=FO.useRef(),h=function(){var e=d.current,t=n&&m.current?m.current:RI(e);if(t){m.current=t;var a=yT(t,e.value||e.placeholder||`x`,i,r),o=a[0],s=a[1];p.current!==o&&(p.current=o,e.style.setProperty(`height`,o+`px`,`important`),c(o,{rowHeight:s}))}};return FO.useLayoutEffect(h),zI(d,function(){if(!u){var e=d.current.value;requestAnimationFrame(function(){var t=d.current;t&&e!==t.value&&h()})}}),BI(h),VI(h),FO.createElement(`textarea`,w({},l,{onChange:function(e){u||h(),o(e)},ref:f}))},WI=FO.forwardRef(UI),GI=Object.assign(N((0,PO.forwardRef)(function({size:e,valid:t,align:n,...r},i){return PO.createElement(WI,{...r,ref:i})}))(gI,fI,pI,mI,({height:e=400})=>({overflow:`visible`,maxHeight:e})),{displayName:`Textarea`}),KI=Object.assign(N.form({boxSizing:`border-box`,width:`100%`}),{Field:dI,Input:yI,Select:CI,Textarea:GI,Button:VP,Checkbox:cI,Radio:xI}),qI=N.div(({hasCloseButton:e,padding:t})=>({display:`inline-block`,position:`relative`,minHeight:e?36:void 0,zIndex:2147483647,colorScheme:`light dark`,padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
|
|
203
203
|
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
204
204
|
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
205
|
-
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base===`light`?ee(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t===`inverse`&&{background:e.base===`light`?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t===`positive`||t===`negative`||t===`warning`)&&{background:e.background[t],color:e.color[`${t}Text`]}),JI=N(VP)({position:`absolute`,top:4,right:4}),YI=(0,zO.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>zO.createElement(qI,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&zO.createElement(JI,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},zO.createElement(Ye,null)))),YI.displayName=`Popover`,XI=({id:e,title:t,description:n,icon:r,aside:i,children:a,isSelected:o,isActive:s,onClick:c,onFocus:l,onKeyDown:u,shouldLookDisabled:d=!1,...f})=>BO.createElement(nF.Item,{...f,id:e,role:`option`,tabIndex:s?0:-1,"aria-selected":o,"aria-disabled":d?!0:void 0,onClick:c,onFocus:l,onKeyDown:u},a??BO.createElement(BO.Fragment,null,r&&BO.createElement(nF.Icon,null,r),BO.createElement(nF.Text,null,BO.createElement(`p`,null,t),n&&BO.createElement(`small`,null,n)),i)),XI.displayName=`SelectOption`,ZI=5,QI=Symbol.for(`undefined`),$I=N(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4}),eL=N.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12})),tL=N(VP)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:O(.93,n.barSelectedColor),color:n.base===`light`?le(.1,n.color.secondary):n.color.secondary}:{}),nL=N.div({position:`fixed`,inset:0,zIndex:1e3}),rL=({children:e,handleClose:t,triggerRef:n})=>{let r=V.useRef(null);DS({ref:r,onInteractOutside:t}),(0,V.useEffect)(()=>{if(r.current)return nT([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=ow({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=Lw({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=A();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},V.createElement(aT,{disableFocusManagement:!0,...a},V.createElement(nL,{...o}),V.createElement(YI,{hasChrome:!0,ref:r,padding:0,...i},e))},iL=(0,V.forwardRef)(({children:e,icon:t,disabled:n=!1,options:r,defaultOptions:i,multiSelect:a=!1,onReset:o,padding:s=`small`,resetLabel:c,onSelect:l,onDeselect:u,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:m=!0,...h},g)=>{let[_,v]=(0,V.useState)(h.defaultOpen||!1),[y,b]=(0,V.useState)(!1),x=ix(g),S=(0,V.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,V.useRef)(null),T=cT({isOpen:_&&!n,onOpenChange:v}),E=(0,V.useCallback)(()=>{v(!1),b(!0)},[]);(0,V.useEffect)(()=>{!T.isOpen&&y&&(x.current?.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,V.useState)(DT(r,i)),k=(0,V.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(wT(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(wT(e.value)),n=[...t??[],e]),d?.(n.map(e=>wT(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(wT(e.value)),d?.([wT(e.value)]),[e]):t)},[a,d,l,u,o]),A=(0,V.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:V.createElement(st,null),description:void 0,children:void 0}:void 0,[o,c]),j=(0,V.useMemo)(()=>A?[A,...r]:r,[r,A]);(0,V.useEffect)(()=>{i&&O(DT(r,i))},[i,r]);let[M,ee]=(0,V.useState)(void 0),te=(0,V.useCallback)((e,t=!0)=>{ee(CT(e)),!a&&t&&k(CT(e))},[a,k]),N=(0,V.useCallback)((e=1)=>{if(!_||!M){te(j[e===1?0:Math.min(e,j.length-1)]);return}let t=j.findIndex(e=>M.type===`reset`?`type`in e&&e.type===`reset`:TT(e.value)===M.value),n=t+e,r;r=n>=j.length&&t===j.length-1?j[0]:j[Math.min(j.length-1,n)],te(r)},[_,M,te,j]),ne=(0,V.useCallback)((e=1)=>{if(!_||!M){te(j[Math.max(0,j.length-e)]);return}let t=j.findIndex(e=>M.type===`reset`?`type`in e&&e.type===`reset`:TT(e.value)===M.value),n=t-e,r;r=n<0&&t===0?j[j.length-1]:j[Math.max(0,n)],te(r)},[_,M,te,j]),re=(0,V.useCallback)(e=>{let t=t=>{e.preventDefault(),te(j[t]),v(!0)},n=j.findIndex(e=>D.some(t=>t.value===TT(e.value))),r=n!==-1,i=A&&!r?1:0,a=j.length-1;e.key===`Enter`||e.key===` `?t(r?Math.min(n,a):i):e.key===`ArrowDown`?t(r?Math.min(n+1,a):i):e.key===`ArrowUp`?t(r?Math.max(n-1,i):a):e.key===`Home`?t(i):e.key===`End`?t(a):e.key===`PageDown`?t(Math.min((r?n:i)+ZI,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-ZI))},[j,A,te,D]),ie=(0,V.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?N():e.key===`ArrowUp`?ne():e.key===`Home`?te(j[0]):e.key===`End`?te(j[j.length-1]):e.key===`PageDown`?N(ZI):e.key===`PageUp`&&ne(ZI)},[E,N,ne,j,te]);(0,V.useEffect)(()=>{if(_&&M){let e=document.getElementById(ET(S,M));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,M,S]);let ae=(0,V.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return V.createElement(V.Fragment,null,V.createElement(tL,{...h,variant:`ghost`,ariaLabel:ae,tooltip:f??p,disableAllTooltips:_,id:S,ref:x,padding:s,$isOpen:_,$hasSelection:!!D.length,"aria-disabled":n,disabled:n,onClick:()=>{_?E():v(!0)},tabIndex:_?-1:0,onKeyDown:re,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&V.createElement(V.Fragment,null,t,m&&D[0]?.title||e),a&&V.createElement(V.Fragment,null,t,e,!!D.length&&V.createElement(eL,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&V.createElement(rL,{handleClose:E,triggerRef:x},V.createElement($I,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:ie,tabIndex:_?0:-1},j.map(e=>({option:CT(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==A,r=t===A;return V.createElement(XI,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?V.createElement(KI.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:ET(S,t),isActive:_&&M?.value===t.value,isSelected:n,onClick:()=>{k(t),a||E()},onFocus:()=>te(e,!1),shouldLookDisabled:r&&D.length===0&&a,onKeyDown:e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),k(t),a||E()):e.key===`Tab`&&(a||k(t),E())}},t.children)}))))}),iL.displayName=`Select`,{deprecate:aL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,oL=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},sL=class extends oL{filter(e,t,n){let[r,i]=OT(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},cL=class extends oL{},cL.type=`header`,lL=class extends oL{},lL.type=`loader`,uL=class extends sL{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},uL.type=`item`,dL=class extends sL{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},dL.type=`section`,fL=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=OT(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}},pL=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},mL=class e extends pL{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,i,a,o,s;let c=this.nextVisibleSibling,l=this.getMutableNode();if(l!=null){l.index=this.index,l.level=this.level;var u;if(l.parentKey=this.parentNode instanceof e&&(u=this.parentNode.node?.key)!=null?u:null,l.prevKey=((n=this.previousVisibleSibling)==null||(t=n.node)==null?void 0:t.key)??null,l.nextKey=(c==null||(r=c.node)==null?void 0:r.key)??null,l.hasChildNodes=!!this.firstChild,l.firstChildKey=((a=this.firstVisibleChild)==null||(i=a.node)==null?void 0:i.key)??null,l.lastChildKey=((s=this.lastVisibleChild)==null||(o=s.node)==null?void 0:o.key)??null,(l.colSpan!=null||l.colIndex!=null)&&c){let e=(l.colIndex??l.index)+(l.colSpan??1);if(c.node!=null&&e!==c.node.colIndex){let t=c.getMutableNode();t.colIndex=e}}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},hL=class extends pL{get isConnected(){return this.isMounted}createElement(e){return new mL(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof mL&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof mL&&(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,r;this.nextCollection.commit(((t=this.firstVisibleChild)==null||(e=t.node)==null?void 0:e.key)??null,((r=this.lastVisibleChild)==null||(n=r.node)==null?void 0:n.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}},typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}gL=(0,UO.createContext)(!1),_L=(0,H.createContext)(!1),vL=(0,H.createContext)(null),yL=typeof H.useSyncExternalStore==`function`?H.useSyncExternalStore:FT,bL=(0,H.createContext)(null),xL=(0,H.createContext)(null),SL=(0,KO.createContext)({}),jT(function(e,t){[e,t]=NS(e,t,SL);let{elementType:n=`label`,...r}=e;return KO.createElement(n,{className:`react-aria-Label`,...r,ref:t})}),CL=(0,qO.createContext)(null),(0,qO.forwardRef)(function(e,t){[e,t]=NS(e,t,CL);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=Nx(n,r,i);let[o,s]=PS(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=GT({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=jS({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=Rb(e,{global:!0});return qO.createElement(`div`,{...z(f,d,c),ref:t,slot:e.slot||void 0},qO.createElement(SL.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))}),wL=(0,JO.createContext)({}),jT(function(e,t){[e,t]=NS(e,t,wL),e=qT(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=KT(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=jw(e),{hoverProps:l,isHovered:u}=ES({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=jS({...e,values:d,defaultClassName:`react-aria-Button`}),p=wb(i.id),m=wb(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,JO.useRef)(r);(0,JO.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&Se(e,`assertive`),g.current=r},[r,s,h,p]);let _=Rb(e,{global:!0});return delete _.onClick,JO.createElement(`button`,{...z(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},JO.createElement(CL.Provider,{value:{id:m}},f.children))}),TL=(0,YO.createContext)(null),EL=(0,YO.createContext)(null),DL=(0,YO.forwardRef)(function(e,t){[e,t]=NS(e,t,TL);let n=(0,YO.useContext)(sR),r=cT(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=wx(t,i.isOpen)||e.isExiting||!1,o=MT(),{direction:s}=rC();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),YO.createElement(YO.Fragment,null,t)}return i&&!i.isOpen&&!a?null:YO.createElement(JT,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})}),OL=(0,XO.createContext)(null),BT(`section`,(e,t,n)=>{let{name:r,render:i}=(0,XO.useContext)(OL);return i(e,t,n,`react-aria-Section`)}),kL={CollectionRoot({collection:e,renderDropIndicator:t}){return YT(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return YT(e,t,n)}},AL=(0,XO.createContext)(kL),jL=(0,ZO.createContext)(null),ML=(0,ZO.createContext)(null),NL=(0,QO.createContext)({}),zT(cL,function(e,t){return[e,t]=NS(e,t,NL),QO.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)}),PL=(0,$O.createContext)({}),(0,$O.forwardRef)(function(e,t){return[e,t]=NS(e,t,PL),$O.createElement(`kbd`,{dir:`ltr`,...e,ref:t})}),FL=(0,ek.createContext)({}),IL=class extends oL{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},IL.type=`separator`,zT(IL,function(e,t){[e,t]=NS(e,t,FL);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let{separatorProps:l}=QT({...s,elementType:n,orientation:r}),u=Rb(e,{global:!0});return ek.createElement(c,{...z(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),LL=new WeakMap,RL=new WeakMap,zL=1e3,BL=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:eE(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}constructor(e){this.ref=e}},VL=class{isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let e=this.collection.getItem(n);if(e?.type===`item`&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`):null}getKeyLeftOf(e){let t=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!ux(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!ux(t))return this.getLastKey();let r=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new BL(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new BL(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}},dE.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:i}=e,a=e.title||e.children,o=e.textValue||(typeof a==`string`?a:``)||e[`aria-label`]||``;!o&&t?.suppressTextValueWarning,yield{type:`item`,props:e,rendered:a,textValue:o,"aria-label":e[`aria-label`],hasChildNodes:fE(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];ok.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}},HL=dE,pE.getCollectionNode=function*(e){let{children:t,title:n,items:r}=e;yield{type:`section`,props:e,hasChildNodes:!0,rendered:n,"aria-label":e[`aria-label`],*childNodes(){if(typeof t==`function`){if(!r)throw Error(`props.children was a function but props.items is missing`);for(let e of r)yield{type:`item`,value:e,renderer:t}}else{let e=[];sk.Children.forEach(t,t=>{e.push({type:`item`,element:t})}),yield*e}}}},UL=class{build(e,t){return this.context=t,mE(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(ck.isValidElement(t)&&t.type===ck.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];ck.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(ck.isValidElement(e.element)&&e.element.type===ck.Fragment){let i=[];ck.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(ck.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:hE(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${gE(t.type)}> in <${gE(r?.type??`unknown parent type`)}>. Only <${gE(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:mE(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}},WL=new WeakMap,GL=2,KL=50,qL=1e3,JL=Math.PI/12,YL=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&(n=t.prevKey)!=null?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!=null?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}},XL=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}},ZL=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&xE(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&xE(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new XL([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new XL(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?xE(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if((n=this.layoutDelegate)!=null&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;i!=null;){let e=this.collection.getItem(i);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new XL(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new XL([t],t,t):new XL;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new XL;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(yE(vE(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new XL)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(t=n.props)==null)&&t.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.isDisabled))}isLink(e){var t,n;return!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}},QL=(0,U.createContext)(null),$L=(0,U.createContext)(null),eR=(0,U.createContext)(null),tR=(0,U.createContext)(null),nR=(0,U.createContext)(null),rR=class extends oL{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},rR.type=`submenutrigger`,BT(rR,(e,t,n)=>{let{CollectionBranch:r}=(0,U.useContext)(AL),i=(0,U.useContext)($L),a=(0,U.useContext)(eR),o=kE({triggerKey:n.key},a),s=(0,U.useRef)(null),c=ix(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,U.useContext)(nR),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=DE({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return U.createElement(AS,{values:[[aR,{...d,onAction:void 0,ref:c}],[QL,{ref:s,...f}],[sR,o],[TL,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},U.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,U.forwardRef)(function(e,t){return[e,t]=NS(e,t,QL),U.createElement(NT,{content:U.createElement(HT,e)},n=>U.createElement(FE,{props:e,collection:n,menuRef:t}))}),iR=class extends ZL{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}},BT(dL,IE),aR=(0,U.createContext)(null),zT(uL,function(e,t,n){[e,t]=NS(e,t,aR);let r=MS(aR)?.id,i=(0,U.useContext)($L),a=ix(t),o=(0,U.useContext)(tR),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=wE({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=ES({isDisabled:d.isDisabled}),m=jS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...d,isHovered:p,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),h=e.href?`a`:`div`,g=Rb(e,{global:!0});return delete g.id,delete g.onClick,U.createElement(h,{...z(g,m,s,f),ref:a,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},U.createElement(AS,{values:[[wF,{slots:{[oM]:c,label:c,description:l}}],[PL,u]]},m.children))}),oR=(0,vk.createContext)(null),sR=(0,vk.createContext)(null),(0,vk.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=NS(e,t,oR);let{dialogProps:r,titleProps:i}=LE({...e,"aria-labelledby":n},t),a=(0,vk.useContext)(sR);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=jS({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=Rb(e,{global:!0});return vk.createElement(`section`,{...z(s,o,r),ref:t,slot:e.slot||void 0},vk.createElement(AS,{values:[[SF,{slots:{[oM]:{},title:{...i,level:2}}}],[wL,{slots:{[oM]:{},close:{onPress:()=>a?.close()}}}]]},o.children))}),cR=({ariaLabel:e,placement:t=`bottom-start`,hasChrome:n=!0,hasCloseButton:r=!1,closeLabel:i,offset:a=8,padding:o,popover:s,children:c,defaultVisible:l,visible:u,onVisibleChange:d,...f})=>{e||aL(`The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.`);let p=LP(t),[m,h]=(0,VO.useState)(l??!1),g=(0,VO.useCallback)(e=>{h(e),d?.(e)},[d]),_=(0,VO.useCallback)(()=>g(!1),[g]);return VO.createElement(RE,{defaultOpen:l,isOpen:u??m,onOpenChange:g,...f},VO.createElement(tM,null,(0,VO.cloneElement)(c,{"aria-haspopup":`dialog`})),VO.createElement(DL,{"aria-label":e,placement:p,offset:a,style:{outline:`none`}},VO.createElement(YI,{hasChrome:n,hideLabel:i,onHide:r?_:void 0,padding:o},typeof s==`function`?s({onHide:_}):s)))},lR=(0,yk.forwardRef)((e,t)=>yk.createElement(YI,{ref:t,...e})),lR.displayName=`Tooltip`,(0,bk.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-BP3dvWMO.js`).then(e=>({default:e.WithTooltip})),__vite__mapDeps([10,1,2,0,3,6,8]),import.meta.url)),(0,bk.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-BP3dvWMO.js`).then(e=>({default:e.WithTooltipPure})),__vite__mapDeps([10,1,2,0,3,6,8]),import.meta.url)),{deprecate:uR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,N.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),N.span(),N.div(({theme:e})=>({marginTop:8,textAlign:`center`,"> *":{margin:`0 8px`,fontWeight:e.typography.weight.bold}})),N.div(({theme:e})=>({color:e.color.defaultText,lineHeight:`18px`})),N.div({padding:15,width:280,boxSizing:`border-box`}),{deprecate:dR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,fR=v(pe(),1),{deprecate:pR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,mR=N(({active:e,loading:t,disabled:n,...r})=>Sk.createElement(`span`,{...r}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:`inline-block`,flex:`none`,...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),hR=N.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),gR=N.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),_R=N.span(({theme:e})=>({fontSize:`11px`,lineHeight:`14px`}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),vR=N.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),yR=N.button(({theme:e})=>({width:`100%`,minWidth:0,border:`none`,borderRadius:e.appBorderRadius,background:`none`,fontSize:e.typography.size.s1,transition:`background 150ms ease-out`,color:e.color.dark,textDecoration:`none`,justifyContent:`space-between`,lineHeight:`18px`,padding:`7px 10px`,display:`flex`,alignItems:`center`,"& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:n})=>(t||n)&&{cursor:`pointer`,"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t===`label`&&{"&:has(input:not(:disabled))":{cursor:`pointer`,"&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:`not-allowed`}),bR=(0,fR.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:r})=>({...e&&{as:`button`,role:`button`,onClick:e},...t&&{as:`label`},...n&&{as:`a`,role:`link`,href:n,...r&&{as:r,to:n}}})),xR=(0,Sk.forwardRef)((e,t)=>{let{loading:n=!1,title:r=Sk.createElement(`span`,null,`Loading state`),center:i=null,right:a=null,active:o=!1,disabled:s=!1,isIndented:c=!1,href:l=void 0,onClick:u=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,h={active:o,disabled:s},g=bR(e),_=d||f;return pR("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),Sk.createElement(yR,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},Sk.createElement(Sk.Fragment,null,_&&Sk.createElement(vR,{...h},_),r||i?Sk.createElement(gR,{isIndented:c&&!_},r&&Sk.createElement(mR,{...h,loading:n},r),i&&Sk.createElement(_R,{...h},i)):null,a&&Sk.createElement(hR,{...h},a)))}),xR.displayName=`ListItem`,SR=xR,CR=N.div({minWidth:180,overflow:`hidden`,overflowY:`auto`,maxHeight:504},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base===`dark`?{background:e.background.content}:{}),wR=N.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),TR=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,xk.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return xk.createElement(SR,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},ER=({links:e,LinkWrapper:t,...n})=>{dR("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let r=Array.isArray(e[0])?e:[e],i=r.some(e=>e.some(e=>`icon`in e&&e.icon||`input`in e&&e.input));return xk.createElement(CR,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>xk.createElement(wR,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?xk.createElement(xk.Fragment,{key:e.id},e.content):xk.createElement(TR,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:DR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:OR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,kR=N.div(({backgroundColor:e,border:t=!1,innerStyle:n={},scrollable:r,theme:i})=>({color:i.barTextColor,width:`100%`,minHeight:40,flexShrink:0,scrollbarColor:`${i.barTextColor} ${t?e||i.barBg:`transparent`}`,scrollbarWidth:`thin`,overflow:r?`auto`:`hidden`,overflowY:`hidden`,display:`flex`,alignItems:`center`,gap:r?0:6,paddingInline:r?0:6,...t?{boxShadow:`${i.appBorderColor} 0 -1px 0 0 inset`,background:e||i.barBg}:{},...n})),AR=N.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),jR=(0,wk.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>wk.createElement(kR,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?wk.createElement(AR,{innerStyle:n},t):t)),jR.displayName=`Bar`,MR=N.div({display:`flex`,whiteSpace:`nowrap`,flexBasis:`auto`,marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{}),MR.displayName=`Side`,NR=N.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),PR=N(jR)({paddingInline:0}),FR=({children:e,backgroundColor:t,className:n=``,...r})=>{OR(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=wk.Children.toArray(e);return wk.createElement(PR,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},wk.createElement(NR,{bgColor:t},wk.createElement(MR,{scrollable:r.scrollable,left:!0},i),a?wk.createElement(MR,{right:!0},a):null))},FR.displayName=`FlexBar`,{deprecate:IR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,LR=e=>typeof e.props.href==`string`,RR=e=>typeof e.props.href!=`string`,zR=(0,Tk.forwardRef)(zE),zR.displayName=`ButtonOrLink`,BR=N(zR,{shouldForwardProp:ie})({whiteSpace:`normal`,display:`inline-flex`,overflow:`hidden`,verticalAlign:`top`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,textDecoration:`none`,"&:empty":{display:`none`},"&[hidden]":{display:`none`}},({theme:e})=>({padding:`0 15px`,transition:`color 0.2s linear, border-bottom-color 0.2s linear`,height:40,lineHeight:`12px`,cursor:`pointer`,background:`transparent`,border:`0 solid transparent`,borderTop:`3px solid transparent`,borderBottom:`3px solid transparent`,fontWeight:`bold`,fontSize:13,"&:focus":{outline:`0 none`,borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:`transparent`,"&:hover":{color:n.barHoverColor}}),VR=(0,Tk.forwardRef)((e,t)=>(IR("The `TabButton` component is deprecated. Use `TabList` instead."),Tk.createElement(BR,{"data-deprecated":`TabButton`,ref:t,...e}))),VR.displayName=`TabButton`,HR=N.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),UR=N.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),WR=N.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),GR=N.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),KR=N.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),qR=({title:e,description:t,footer:n})=>Ek.createElement(HR,null,Ek.createElement(UR,null,Ek.createElement(WR,null,e),t&&Ek.createElement(KR,null,t)),n&&Ek.createElement(GR,null,n)),{deprecate:JR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,YR=N.div(({active:e})=>e?{display:`block`}:{display:`none`}),XR=e=>(JR("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),Dk.Children.toArray(e).map(({props:{title:e,id:t,color:n,children:r}})=>{let i=Array.isArray(r)?r[0]:r;return{title:e,id:t,...n?{color:n}:{},render:typeof i==`function`?i:({active:e})=>Dk.createElement(YR,{active:e,role:`tabpanel`},i)}})),{deprecate:ZR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,QR=N.span(({theme:e,isActive:t})=>({display:`inline-block`,width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:`3px solid transparent`,borderLeft:`3px solid transparent`,borderTop:`3px solid`,transition:`transform .1s ease-out`})),$R=N(VR)(({active:e,theme:t,preActive:n})=>`
|
|
205
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base===`light`?ee(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t===`inverse`&&{background:e.base===`light`?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t===`positive`||t===`negative`||t===`warning`)&&{background:e.background[t],color:e.color[`${t}Text`]}),JI=N(VP)({position:`absolute`,top:4,right:4}),YI=(0,zO.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>zO.createElement(qI,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&zO.createElement(JI,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},zO.createElement(Ye,null)))),YI.displayName=`Popover`,XI=({id:e,title:t,description:n,icon:r,aside:i,children:a,isSelected:o,isActive:s,onClick:c,onFocus:l,onKeyDown:u,shouldLookDisabled:d=!1,...f})=>BO.createElement(nF.Item,{...f,id:e,role:`option`,tabIndex:s?0:-1,"aria-selected":o,"aria-disabled":d?!0:void 0,onClick:c,onFocus:l,onKeyDown:u},a??BO.createElement(BO.Fragment,null,r&&BO.createElement(nF.Icon,null,r),BO.createElement(nF.Text,null,BO.createElement(`p`,null,t),n&&BO.createElement(`small`,null,n)),i)),XI.displayName=`SelectOption`,ZI=5,QI=Symbol.for(`undefined`),$I=N(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4}),eL=N.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12})),tL=N(VP)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:O(.93,n.barSelectedColor),color:n.base===`light`?le(.1,n.color.secondary):n.color.secondary}:{}),nL=N.div({position:`fixed`,inset:0,zIndex:1e3}),rL=({children:e,handleClose:t,triggerRef:n})=>{let r=V.useRef(null);DS({ref:r,onInteractOutside:t}),(0,V.useEffect)(()=>{if(r.current)return nT([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=ow({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=Lw({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=A();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},V.createElement(aT,{disableFocusManagement:!0,...a},V.createElement(nL,{...o}),V.createElement(YI,{hasChrome:!0,ref:r,padding:0,...i},e))},iL=(0,V.forwardRef)(({children:e,icon:t,disabled:n=!1,options:r,defaultOptions:i,multiSelect:a=!1,onReset:o,padding:s=`small`,resetLabel:c,onSelect:l,onDeselect:u,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:m=!0,...h},g)=>{let[_,v]=(0,V.useState)(h.defaultOpen||!1),[y,b]=(0,V.useState)(!1),x=ix(g),S=(0,V.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,V.useRef)(null),T=cT({isOpen:_&&!n,onOpenChange:v}),E=(0,V.useCallback)(()=>{v(!1),b(!0)},[]);(0,V.useEffect)(()=>{!T.isOpen&&y&&(x.current?.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,V.useState)(DT(r,i)),k=(0,V.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(wT(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(wT(e.value)),n=[...t??[],e]),d?.(n.map(e=>wT(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(wT(e.value)),d?.([wT(e.value)]),[e]):t)},[a,d,l,u,o]),A=(0,V.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:V.createElement(st,null),description:void 0,children:void 0}:void 0,[o,c]),j=(0,V.useMemo)(()=>A?[A,...r]:r,[r,A]);(0,V.useEffect)(()=>{i&&O(DT(r,i))},[i,r]);let[M,ee]=(0,V.useState)(void 0),te=(0,V.useCallback)((e,t=!0)=>{ee(CT(e)),!a&&t&&k(CT(e))},[a,k]),N=(0,V.useCallback)((e=1)=>{if(!_||!M){te(j[e===1?0:Math.min(e,j.length-1)]);return}let t=j.findIndex(e=>M.type===`reset`?`type`in e&&e.type===`reset`:TT(e.value)===M.value),n=t+e,r;r=n>=j.length&&t===j.length-1?j[0]:j[Math.min(j.length-1,n)],te(r)},[_,M,te,j]),ne=(0,V.useCallback)((e=1)=>{if(!_||!M){te(j[Math.max(0,j.length-e)]);return}let t=j.findIndex(e=>M.type===`reset`?`type`in e&&e.type===`reset`:TT(e.value)===M.value),n=t-e,r;r=n<0&&t===0?j[j.length-1]:j[Math.max(0,n)],te(r)},[_,M,te,j]),re=(0,V.useCallback)(e=>{let t=t=>{e.preventDefault(),te(j[t]),v(!0)},n=j.findIndex(e=>D.some(t=>t.value===TT(e.value))),r=n!==-1,i=A&&!r?1:0,a=j.length-1;e.key===`Enter`||e.key===` `?t(r?Math.min(n,a):i):e.key===`ArrowDown`?t(r?Math.min(n+1,a):i):e.key===`ArrowUp`?t(r?Math.max(n-1,i):a):e.key===`Home`?t(i):e.key===`End`?t(a):e.key===`PageDown`?t(Math.min((r?n:i)+ZI,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-ZI))},[j,A,te,D]),ie=(0,V.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?N():e.key===`ArrowUp`?ne():e.key===`Home`?te(j[0]):e.key===`End`?te(j[j.length-1]):e.key===`PageDown`?N(ZI):e.key===`PageUp`&&ne(ZI)},[E,N,ne,j,te]);(0,V.useEffect)(()=>{if(_&&M){let e=document.getElementById(ET(S,M));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,M,S]);let ae=(0,V.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return V.createElement(V.Fragment,null,V.createElement(tL,{...h,variant:`ghost`,ariaLabel:ae,tooltip:f??p,disableAllTooltips:_,id:S,ref:x,padding:s,$isOpen:_,$hasSelection:!!D.length,"aria-disabled":n,disabled:n,onClick:()=>{_?E():v(!0)},tabIndex:_?-1:0,onKeyDown:re,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&V.createElement(V.Fragment,null,t,m&&D[0]?.title||e),a&&V.createElement(V.Fragment,null,t,e,!!D.length&&V.createElement(eL,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&V.createElement(rL,{handleClose:E,triggerRef:x},V.createElement($I,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:ie,tabIndex:_?0:-1},j.map(e=>({option:CT(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==A,r=t===A;return V.createElement(XI,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?V.createElement(KI.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:ET(S,t),isActive:_&&M?.value===t.value,isSelected:n,onClick:()=>{k(t),a||E()},onFocus:()=>te(e,!1),shouldLookDisabled:r&&D.length===0&&a,onKeyDown:e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),k(t),a||E()):e.key===`Tab`&&(a||k(t),E())}},t.children)}))))}),iL.displayName=`Select`,{deprecate:aL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,oL=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},sL=class extends oL{filter(e,t,n){let[r,i]=OT(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},cL=class extends oL{},cL.type=`header`,lL=class extends oL{},lL.type=`loader`,uL=class extends sL{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},uL.type=`item`,dL=class extends sL{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},dL.type=`section`,fL=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=OT(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}},pL=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},mL=class e extends pL{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,i,a,o,s;let c=this.nextVisibleSibling,l=this.getMutableNode();if(l!=null){l.index=this.index,l.level=this.level;var u;if(l.parentKey=this.parentNode instanceof e&&(u=this.parentNode.node?.key)!=null?u:null,l.prevKey=((n=this.previousVisibleSibling)==null||(t=n.node)==null?void 0:t.key)??null,l.nextKey=(c==null||(r=c.node)==null?void 0:r.key)??null,l.hasChildNodes=!!this.firstChild,l.firstChildKey=((a=this.firstVisibleChild)==null||(i=a.node)==null?void 0:i.key)??null,l.lastChildKey=((s=this.lastVisibleChild)==null||(o=s.node)==null?void 0:o.key)??null,(l.colSpan!=null||l.colIndex!=null)&&c){let e=(l.colIndex??l.index)+(l.colSpan??1);if(c.node!=null&&e!==c.node.colIndex){let t=c.getMutableNode();t.colIndex=e}}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},hL=class extends pL{get isConnected(){return this.isMounted}createElement(e){return new mL(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof mL&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof mL&&(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,r;this.nextCollection.commit(((t=this.firstVisibleChild)==null||(e=t.node)==null?void 0:e.key)??null,((r=this.lastVisibleChild)==null||(n=r.node)==null?void 0:n.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}},typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}gL=(0,UO.createContext)(!1),_L=(0,H.createContext)(!1),vL=(0,H.createContext)(null),yL=typeof H.useSyncExternalStore==`function`?H.useSyncExternalStore:FT,bL=(0,H.createContext)(null),xL=(0,H.createContext)(null),SL=(0,KO.createContext)({}),jT(function(e,t){[e,t]=NS(e,t,SL);let{elementType:n=`label`,...r}=e;return KO.createElement(n,{className:`react-aria-Label`,...r,ref:t})}),CL=(0,qO.createContext)(null),(0,qO.forwardRef)(function(e,t){[e,t]=NS(e,t,CL);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=Nx(n,r,i);let[o,s]=PS(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=GT({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=jS({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=Rb(e,{global:!0});return qO.createElement(`div`,{...z(f,d,c),ref:t,slot:e.slot||void 0},qO.createElement(SL.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))}),wL=(0,JO.createContext)({}),jT(function(e,t){[e,t]=NS(e,t,wL),e=qT(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=KT(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=jw(e),{hoverProps:l,isHovered:u}=ES({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=jS({...e,values:d,defaultClassName:`react-aria-Button`}),p=wb(i.id),m=wb(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,JO.useRef)(r);(0,JO.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&Se(e,`assertive`),g.current=r},[r,s,h,p]);let _=Rb(e,{global:!0});return delete _.onClick,JO.createElement(`button`,{...z(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},JO.createElement(CL.Provider,{value:{id:m}},f.children))}),TL=(0,YO.createContext)(null),EL=(0,YO.createContext)(null),DL=(0,YO.forwardRef)(function(e,t){[e,t]=NS(e,t,TL);let n=(0,YO.useContext)(sR),r=cT(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=wx(t,i.isOpen)||e.isExiting||!1,o=MT(),{direction:s}=rC();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),YO.createElement(YO.Fragment,null,t)}return i&&!i.isOpen&&!a?null:YO.createElement(JT,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})}),OL=(0,XO.createContext)(null),BT(`section`,(e,t,n)=>{let{name:r,render:i}=(0,XO.useContext)(OL);return i(e,t,n,`react-aria-Section`)}),kL={CollectionRoot({collection:e,renderDropIndicator:t}){return YT(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return YT(e,t,n)}},AL=(0,XO.createContext)(kL),jL=(0,ZO.createContext)(null),ML=(0,ZO.createContext)(null),NL=(0,QO.createContext)({}),zT(cL,function(e,t){return[e,t]=NS(e,t,NL),QO.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)}),PL=(0,$O.createContext)({}),(0,$O.forwardRef)(function(e,t){return[e,t]=NS(e,t,PL),$O.createElement(`kbd`,{dir:`ltr`,...e,ref:t})}),FL=(0,ek.createContext)({}),IL=class extends oL{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},IL.type=`separator`,zT(IL,function(e,t){[e,t]=NS(e,t,FL);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let{separatorProps:l}=QT({...s,elementType:n,orientation:r}),u=Rb(e,{global:!0});return ek.createElement(c,{...z(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),LL=new WeakMap,RL=new WeakMap,zL=1e3,BL=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:eE(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}constructor(e){this.ref=e}},VL=class{isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let e=this.collection.getItem(n);if(e?.type===`item`&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`):null}getKeyLeftOf(e){let t=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!ux(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!ux(t))return this.getLastKey();let r=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new BL(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new BL(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}},dE.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:i}=e,a=e.title||e.children,o=e.textValue||(typeof a==`string`?a:``)||e[`aria-label`]||``;!o&&t?.suppressTextValueWarning,yield{type:`item`,props:e,rendered:a,textValue:o,"aria-label":e[`aria-label`],hasChildNodes:fE(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];ok.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}},HL=dE,pE.getCollectionNode=function*(e){let{children:t,title:n,items:r}=e;yield{type:`section`,props:e,hasChildNodes:!0,rendered:n,"aria-label":e[`aria-label`],*childNodes(){if(typeof t==`function`){if(!r)throw Error(`props.children was a function but props.items is missing`);for(let e of r)yield{type:`item`,value:e,renderer:t}}else{let e=[];sk.Children.forEach(t,t=>{e.push({type:`item`,element:t})}),yield*e}}}},UL=class{build(e,t){return this.context=t,mE(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(ck.isValidElement(t)&&t.type===ck.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];ck.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(ck.isValidElement(e.element)&&e.element.type===ck.Fragment){let i=[];ck.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(ck.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:hE(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${gE(t.type)}> in <${gE(r?.type??`unknown parent type`)}>. Only <${gE(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:mE(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}},WL=new WeakMap,GL=2,KL=50,qL=1e3,JL=Math.PI/12,YL=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&(n=t.prevKey)!=null?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!=null?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}},XL=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}},ZL=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&xE(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&xE(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new XL([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new XL(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?xE(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if((n=this.layoutDelegate)!=null&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;i!=null;){let e=this.collection.getItem(i);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new XL(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new XL([t],t,t):new XL;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new XL;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(yE(vE(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new XL)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(t=n.props)==null)&&t.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.isDisabled))}isLink(e){var t,n;return!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}},QL=(0,U.createContext)(null),$L=(0,U.createContext)(null),eR=(0,U.createContext)(null),tR=(0,U.createContext)(null),nR=(0,U.createContext)(null),rR=class extends oL{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},rR.type=`submenutrigger`,BT(rR,(e,t,n)=>{let{CollectionBranch:r}=(0,U.useContext)(AL),i=(0,U.useContext)($L),a=(0,U.useContext)(eR),o=kE({triggerKey:n.key},a),s=(0,U.useRef)(null),c=ix(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,U.useContext)(nR),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=DE({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return U.createElement(AS,{values:[[aR,{...d,onAction:void 0,ref:c}],[QL,{ref:s,...f}],[sR,o],[TL,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},U.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,U.forwardRef)(function(e,t){return[e,t]=NS(e,t,QL),U.createElement(NT,{content:U.createElement(HT,e)},n=>U.createElement(FE,{props:e,collection:n,menuRef:t}))}),iR=class extends ZL{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}},BT(dL,IE),aR=(0,U.createContext)(null),zT(uL,function(e,t,n){[e,t]=NS(e,t,aR);let r=MS(aR)?.id,i=(0,U.useContext)($L),a=ix(t),o=(0,U.useContext)(tR),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=wE({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=ES({isDisabled:d.isDisabled}),m=jS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...d,isHovered:p,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),h=e.href?`a`:`div`,g=Rb(e,{global:!0});return delete g.id,delete g.onClick,U.createElement(h,{...z(g,m,s,f),ref:a,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},U.createElement(AS,{values:[[wF,{slots:{[oM]:c,label:c,description:l}}],[PL,u]]},m.children))}),oR=(0,vk.createContext)(null),sR=(0,vk.createContext)(null),(0,vk.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=NS(e,t,oR);let{dialogProps:r,titleProps:i}=LE({...e,"aria-labelledby":n},t),a=(0,vk.useContext)(sR);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=jS({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=Rb(e,{global:!0});return vk.createElement(`section`,{...z(s,o,r),ref:t,slot:e.slot||void 0},vk.createElement(AS,{values:[[SF,{slots:{[oM]:{},title:{...i,level:2}}}],[wL,{slots:{[oM]:{},close:{onPress:()=>a?.close()}}}]]},o.children))}),cR=({ariaLabel:e,placement:t=`bottom-start`,hasChrome:n=!0,hasCloseButton:r=!1,closeLabel:i,offset:a=8,padding:o,popover:s,children:c,defaultVisible:l,visible:u,onVisibleChange:d,...f})=>{e||aL(`The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.`);let p=LP(t),[m,h]=(0,VO.useState)(l??!1),g=(0,VO.useCallback)(e=>{h(e),d?.(e)},[d]),_=(0,VO.useCallback)(()=>g(!1),[g]);return VO.createElement(RE,{defaultOpen:l,isOpen:u??m,onOpenChange:g,...f},VO.createElement(tM,null,(0,VO.cloneElement)(c,{"aria-haspopup":`dialog`})),VO.createElement(DL,{"aria-label":e,placement:p,offset:a,style:{outline:`none`}},VO.createElement(YI,{hasChrome:n,hideLabel:i,onHide:r?_:void 0,padding:o},typeof s==`function`?s({onHide:_}):s)))},lR=(0,yk.forwardRef)((e,t)=>yk.createElement(YI,{ref:t,...e})),lR.displayName=`Tooltip`,(0,bk.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-LW5ygQJA.js`).then(e=>({default:e.WithTooltip})),__vite__mapDeps([10,1,2,0,3,6,8]),import.meta.url)),(0,bk.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-LW5ygQJA.js`).then(e=>({default:e.WithTooltipPure})),__vite__mapDeps([10,1,2,0,3,6,8]),import.meta.url)),{deprecate:uR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,N.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),N.span(),N.div(({theme:e})=>({marginTop:8,textAlign:`center`,"> *":{margin:`0 8px`,fontWeight:e.typography.weight.bold}})),N.div(({theme:e})=>({color:e.color.defaultText,lineHeight:`18px`})),N.div({padding:15,width:280,boxSizing:`border-box`}),{deprecate:dR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,fR=v(pe(),1),{deprecate:pR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,mR=N(({active:e,loading:t,disabled:n,...r})=>Sk.createElement(`span`,{...r}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:`inline-block`,flex:`none`,...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),hR=N.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),gR=N.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),_R=N.span(({theme:e})=>({fontSize:`11px`,lineHeight:`14px`}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),vR=N.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),yR=N.button(({theme:e})=>({width:`100%`,minWidth:0,border:`none`,borderRadius:e.appBorderRadius,background:`none`,fontSize:e.typography.size.s1,transition:`background 150ms ease-out`,color:e.color.dark,textDecoration:`none`,justifyContent:`space-between`,lineHeight:`18px`,padding:`7px 10px`,display:`flex`,alignItems:`center`,"& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:n})=>(t||n)&&{cursor:`pointer`,"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t===`label`&&{"&:has(input:not(:disabled))":{cursor:`pointer`,"&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:`not-allowed`}),bR=(0,fR.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:r})=>({...e&&{as:`button`,role:`button`,onClick:e},...t&&{as:`label`},...n&&{as:`a`,role:`link`,href:n,...r&&{as:r,to:n}}})),xR=(0,Sk.forwardRef)((e,t)=>{let{loading:n=!1,title:r=Sk.createElement(`span`,null,`Loading state`),center:i=null,right:a=null,active:o=!1,disabled:s=!1,isIndented:c=!1,href:l=void 0,onClick:u=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,h={active:o,disabled:s},g=bR(e),_=d||f;return pR("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),Sk.createElement(yR,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},Sk.createElement(Sk.Fragment,null,_&&Sk.createElement(vR,{...h},_),r||i?Sk.createElement(gR,{isIndented:c&&!_},r&&Sk.createElement(mR,{...h,loading:n},r),i&&Sk.createElement(_R,{...h},i)):null,a&&Sk.createElement(hR,{...h},a)))}),xR.displayName=`ListItem`,SR=xR,CR=N.div({minWidth:180,overflow:`hidden`,overflowY:`auto`,maxHeight:504},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base===`dark`?{background:e.background.content}:{}),wR=N.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),TR=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,xk.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return xk.createElement(SR,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},ER=({links:e,LinkWrapper:t,...n})=>{dR("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let r=Array.isArray(e[0])?e:[e],i=r.some(e=>e.some(e=>`icon`in e&&e.icon||`input`in e&&e.input));return xk.createElement(CR,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>xk.createElement(wR,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?xk.createElement(xk.Fragment,{key:e.id},e.content):xk.createElement(TR,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:DR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:OR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,kR=N.div(({backgroundColor:e,border:t=!1,innerStyle:n={},scrollable:r,theme:i})=>({color:i.barTextColor,width:`100%`,minHeight:40,flexShrink:0,scrollbarColor:`${i.barTextColor} ${t?e||i.barBg:`transparent`}`,scrollbarWidth:`thin`,overflow:r?`auto`:`hidden`,overflowY:`hidden`,display:`flex`,alignItems:`center`,gap:r?0:6,paddingInline:r?0:6,...t?{boxShadow:`${i.appBorderColor} 0 -1px 0 0 inset`,background:e||i.barBg}:{},...n})),AR=N.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),jR=(0,wk.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>wk.createElement(kR,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?wk.createElement(AR,{innerStyle:n},t):t)),jR.displayName=`Bar`,MR=N.div({display:`flex`,whiteSpace:`nowrap`,flexBasis:`auto`,marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{}),MR.displayName=`Side`,NR=N.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),PR=N(jR)({paddingInline:0}),FR=({children:e,backgroundColor:t,className:n=``,...r})=>{OR(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=wk.Children.toArray(e);return wk.createElement(PR,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},wk.createElement(NR,{bgColor:t},wk.createElement(MR,{scrollable:r.scrollable,left:!0},i),a?wk.createElement(MR,{right:!0},a):null))},FR.displayName=`FlexBar`,{deprecate:IR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,LR=e=>typeof e.props.href==`string`,RR=e=>typeof e.props.href!=`string`,zR=(0,Tk.forwardRef)(zE),zR.displayName=`ButtonOrLink`,BR=N(zR,{shouldForwardProp:ie})({whiteSpace:`normal`,display:`inline-flex`,overflow:`hidden`,verticalAlign:`top`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,textDecoration:`none`,"&:empty":{display:`none`},"&[hidden]":{display:`none`}},({theme:e})=>({padding:`0 15px`,transition:`color 0.2s linear, border-bottom-color 0.2s linear`,height:40,lineHeight:`12px`,cursor:`pointer`,background:`transparent`,border:`0 solid transparent`,borderTop:`3px solid transparent`,borderBottom:`3px solid transparent`,fontWeight:`bold`,fontSize:13,"&:focus":{outline:`0 none`,borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:`transparent`,"&:hover":{color:n.barHoverColor}}),VR=(0,Tk.forwardRef)((e,t)=>(IR("The `TabButton` component is deprecated. Use `TabList` instead."),Tk.createElement(BR,{"data-deprecated":`TabButton`,ref:t,...e}))),VR.displayName=`TabButton`,HR=N.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),UR=N.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),WR=N.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),GR=N.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),KR=N.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),qR=({title:e,description:t,footer:n})=>Ek.createElement(HR,null,Ek.createElement(UR,null,Ek.createElement(WR,null,e),t&&Ek.createElement(KR,null,t)),n&&Ek.createElement(GR,null,n)),{deprecate:JR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,YR=N.div(({active:e})=>e?{display:`block`}:{display:`none`}),XR=e=>(JR("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),Dk.Children.toArray(e).map(({props:{title:e,id:t,color:n,children:r}})=>{let i=Array.isArray(r)?r[0]:r;return{title:e,id:t,...n?{color:n}:{},render:typeof i==`function`?i:({active:e})=>Dk.createElement(YR,{active:e,role:`tabpanel`},i)}})),{deprecate:ZR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,QR=N.span(({theme:e,isActive:t})=>({display:`inline-block`,width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:`3px solid transparent`,borderLeft:`3px solid transparent`,borderTop:`3px solid`,transition:`transform .1s ease-out`})),$R=N(VR)(({active:e,theme:t,preActive:n})=>`
|
|
206
206
|
color: ${n||e?t.barSelectedColor:t.barTextColor};
|
|
207
207
|
.addon-collapsible-icon {
|
|
208
208
|
color: ${n||e?t.barSelectedColor:t.barTextColor};
|
|
@@ -266,7 +266,7 @@ ${t}`);let n=t.match(nI);if(!n)return DO.createElement(DO.Fragment,null,t);let[,
|
|
|
266
266
|
${cV(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
267
267
|
${e.color.green} 0%, ${e.color.green} ${(r-t)/(n-t)*100}%,
|
|
268
268
|
${lV(.02,e.input.background)} ${(r-t)/(n-t)*100}%,
|
|
269
|
-
${lV(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`} 0 0 0 1px inset`,cursor:i?`not-allowed`:`pointer`,height:6,width:`100%`},o={borderColor:CB(e.color.secondary,.4)},s={width:16,height:16,borderRadius:50,cursor:i?`not-allowed`:`grab`,background:e.input.background,border:`1px solid ${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,boxShadow:e.base===`light`?`0 1px 3px 0px ${CB(e.appBorderColor,.2)}`:`unset`,transition:`all 150ms ease-out`},c={background:`${cV(.05,e.input.background)}`,transform:`scale3d(1.1, 1.1, 1.1) translateY(-1px)`,transition:`all 50ms ease-out`},l={background:`${e.input.background}`,transform:`scale3d(1, 1, 1) translateY(0px)`},u={borderColor:e.color.secondary,boxShadow:e.base===`light`?`0 0px 5px 0px ${e.color.secondary}`:`unset`};return{appearance:`none`,backgroundColor:`transparent`,width:`100%`,"&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:`transparent`},"&::-moz-range-thumb":{...s,"&:hover":c,"&:active":l},"&::-webkit-slider-thumb":{...s,marginTop:`-6px`,appearance:`none`,"&:hover":c,"&:active":l},"&::-ms-thumb":{...s,marginTop:0,"&:hover":c,"&:active":l},"&:focus":{outline:`none`,"&::-webkit-slider-runnable-track":o,"&::-moz-range-track":o,"&::-ms-track":o,"&::-webkit-slider-thumb":u,"&::-moz-range-thumb":u,"&::-ms-thumb":u},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:`0`}}}}),uJ=N.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:`nowrap`,fontFeatureSettings:`tnum`,fontVariantNumeric:`tabular-nums`}),dJ=N(uJ)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:`right`,flexShrink:0})),fJ=N.div(({readOnly:e})=>({display:`flex`,alignItems:`center`,width:`100%`,opacity:e?.5:1})),pJ=({name:e,storyId:t,value:n,onChange:r,min:i=0,max:a=100,step:o=1,onBlur:s,onFocus:c,argType:l})=>{let u=e=>{r(tq(e.target.value))},d=n!==void 0,f=(0,rW.useMemo)(()=>fH(o),[o]),p=!!l?.table?.readonly,m=Ne(e,t);return rW.createElement(fJ,{readOnly:p},rW.createElement(`label`,{htmlFor:m,className:`sb-sr-only`},e),rW.createElement(uJ,null,i),rW.createElement(lJ,{id:m,type:`range`,disabled:p,onChange:u,name:e,min:i,max:a,step:o,onFocus:c,onBlur:s,value:n??i}),rW.createElement(dJ,{numberOFDecimalsPlaces:f,max:a},d?n.toFixed(f):`--`,` / `,a))},mJ=N.label({display:`flex`}),hJ=N.div(({isMaxed:e})=>({marginLeft:`0.75rem`,paddingTop:`0.35rem`,color:e?`red`:void 0})),gJ=({name:e,storyId:t,value:n,onChange:r,onFocus:i,onBlur:a,maxLength:o,argType:s})=>{let c=e=>{r(e.target.value)},l=!!s?.table?.readonly,[u,d]=(0,iW.useState)(!1),f=(0,iW.useCallback)(()=>{r(``),d(!0)},[d]);if(n===void 0)return iW.createElement(VP,{ariaLabel:!1,variant:`outline`,size:`medium`,disabled:l,id:Pe(e,t),onClick:f},`Set string`);let p=typeof n==`string`;return iW.createElement(mJ,null,iW.createElement(KI.Textarea,{id:Ne(e,t),maxLength:o,onChange:c,disabled:l,size:`flex`,placeholder:`Edit string...`,autoFocus:u,valid:p?void 0:`error`,name:e,value:p?n:``,onFocus:i,onBlur:a}),o&&iW.createElement(hJ,{isMaxed:n?.length===o},n?.length??0,` / `,o))},_J=N(KI.Input)({padding:10}),vJ=({onChange:e,name:t,storyId:n,accept:r=`image/*`,value:i,argType:a})=>{let o=(0,aW.useRef)(null),s=a?.control?.readOnly;function c(t){t.target.files&&(e(Array.from(t.target.files).map(e=>URL.createObjectURL(e))),pH(i||[]))}(0,aW.useEffect)(()=>{i==null&&o.current&&(o.current.value=``)},[i,t]);let l=Ne(t,n);return aW.createElement(aW.Fragment,null,aW.createElement(`label`,{htmlFor:l,className:`sb-sr-only`},t),aW.createElement(_J,{ref:o,id:l,type:`file`,name:t,multiple:!0,disabled:s,onChange:c,accept:r,size:`flex`}))},yJ=(0,KU.lazy)(()=>a(()=>import(`./Color-KMSTOMOX-D_F5kPOR.js`),__vite__mapDeps([11,1,2,0,3]),import.meta.url)),bJ=e=>KU.createElement(KU.Suspense,{fallback:KU.createElement(`div`,null)},KU.createElement(yJ,{...e})),xJ={array:cJ,object:cJ,boolean:KK,color:bJ,date:$K,number:rq,check:Eq,"inline-check":Eq,radio:Eq,"inline-radio":Eq,select:Eq,"multi-select":Eq,range:pJ,text:gJ,file:vJ},SJ=()=>GU.createElement(GU.Fragment,null,`-`),CJ=({row:e,arg:t,updateArgs:n,isHovered:r,storyId:i})=>{let{key:a,control:o}=e,[s,c]=(0,GU.useState)(!1),[l,u]=(0,GU.useState)({value:t});(0,GU.useEffect)(()=>{s||u({value:t})},[s,t]);let d=(0,GU.useCallback)(e=>(u({value:e}),n({[a]:e}),e),[n,a]),f=(0,GU.useCallback)(()=>c(!1),[]),p=(0,GU.useCallback)(()=>c(!0),[]);if(!o||o.disable){let t=o?.disable!==!0&&e?.type?.name!==`function`;return r&&t?GU.createElement(MA,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},`Setup controls`):GU.createElement(SJ,null)}let m={name:a,storyId:i,argType:e,value:l.value,onChange:d,onBlur:f,onFocus:p},h=xJ[o.type]||SJ;return GU.createElement(h,{...m,...o,controlType:o.type})},wJ=N.table(({theme:e})=>({"&&":{borderCollapse:`collapse`,borderSpacing:0,border:`none`,tr:{border:`none !important`,background:`none`},"td, th":{padding:0,border:`none`,width:`auto!important`},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:`none`,border:`none`},code:Hk({theme:e}),div:{span:{fontWeight:`bold`}},"& code":{margin:0,display:`inline-block`,fontSize:e.typography.size.s1}}})),TJ=({tags:e})=>{let t=(e.params||[]).filter(e=>e.description),n=t.length!==0,r=e.deprecated!=null,i=e.returns!=null&&e.returns.description!=null;return!n&&!i&&!r?null:oW.createElement(oW.Fragment,null,oW.createElement(wJ,null,oW.createElement(`tbody`,null,r&&oW.createElement(`tr`,{key:`deprecated`},oW.createElement(`td`,{colSpan:2},oW.createElement(`strong`,null,`Deprecated`),`: `,e.deprecated?.toString())),n&&t.map(e=>oW.createElement(`tr`,{key:e.name},oW.createElement(`td`,null,oW.createElement(`code`,null,e.name)),oW.createElement(`td`,null,e.description))),i&&oW.createElement(`tr`,{key:`returns`},oW.createElement(`td`,null,oW.createElement(`code`,null,`Returns`)),oW.createElement(`td`,null,e.returns?.description)))))},EJ=8,DJ=N.div(({isExpanded:e})=>({display:`flex`,flexDirection:e?`column`:`row`,flexWrap:`wrap`,alignItems:`flex-start`,marginBottom:`-4px`,minWidth:100})),OJ=N.details({display:`flex`,flexDirection:`column`,summary:{order:2},"summary::-webkit-details-marker":{display:`none`},"summary::marker":{content:`none`}}),kJ=N.div({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,alignItems:`flex-start`}),AJ=N.span(Hk,({theme:e,simple:t=!1})=>({flex:`0 0 auto`,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:`break-word`,whiteSpace:`normal`,maxWidth:`100%`,margin:0,marginRight:`4px`,marginBottom:`4px`,paddingTop:`2px`,paddingBottom:`2px`,lineHeight:`13px`,...t&&{background:`transparent`,border:`0 none`,paddingLeft:0}})),jJ=N.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:`pointer`,lineHeight:`normal`,margin:`0 0 4px`,padding:`1px 6px`,background:`none`,border:`none`})),MJ=N.button(Hk,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:`nowrap`,display:`flex`,alignItems:`center`,cursor:`pointer`,"&:hover":{border:e.base===`light`?`1px solid hsl(0 0 0 / 0.15)`:`1px solid hsl(0 0 100 / 0.15)`},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:`2px`}})),NJ=N.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:`content-box`,"& code":{padding:`0 !important`}})),PJ=N(tt)({marginLeft:4}),FJ=N(nt)({marginLeft:4}),IJ=()=>sW.createElement(`span`,null,`-`),LJ=({text:e,simple:t})=>sW.createElement(AJ,{simple:t},e),RJ=e=>e?mH(e.split(`|`).map(e=>e.trim())):[e],zJ=e=>e.slice(0,EJ).map(e=>sW.createElement(LJ,{key:e,text:e===``?`""`:e})),BJ=e=>e.slice(EJ).map(e=>sW.createElement(LJ,{key:e,text:e===``?`""`:e})),VJ=({value:e,initialExpandedArgs:t})=>{let{summary:n,detail:r}=e,[i,a]=(0,sW.useState)(!1),[o,s]=(0,sW.useState)(t||!1);if(n==null)return null;let c=typeof n.toString==`function`?n.toString():n;if(r==null){if(/[(){}[\]<>]/.test(c))return sW.createElement(LJ,{text:c});let e=RJ(c),t=e.length;return t>EJ?sW.createElement(DJ,{isExpanded:o},zJ(e),sW.createElement(OJ,{open:o,onToggle:e=>s(e.currentTarget.open)},sW.createElement(kJ,null,BJ(e)),sW.createElement(jJ,{role:`button`},o?`Show less...`:`Show ${t-EJ} more...`))):sW.createElement(DJ,null,zJ(e))}return sW.createElement(cR,{ariaLabel:`Arg value details`,placement:`bottom`,visible:i,onVisibleChange:e=>{a(e)},hasCloseButton:!0,popover:sW.createElement(NJ,null,sW.createElement($k,{language:`jsx`,format:!1},r))},sW.createElement(MJ,{className:`sbdocs-expandable`},sW.createElement(`span`,null,c),i?sW.createElement(PJ,null):sW.createElement(FJ,null)))},HJ=({value:e,initialExpandedArgs:t})=>e==null?sW.createElement(IJ,null):sW.createElement(VJ,{value:e,initialExpandedArgs:t}),UJ=N.span({fontWeight:`bold`}),WJ=N.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:`help`})),GJ=N.div(({theme:e})=>({"&&":{p:{margin:`0 0 10px 0`},a:{color:e.color.secondary}},code:{...Hk({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:`inline-block`},"& pre > code":{whiteSpace:`pre-wrap`}})),KJ=N.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?fV(.1,e.color.defaultText):fV(.2,e.color.defaultText),marginTop:t?4:0})),qJ=N.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?fV(.1,e.color.defaultText):fV(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),JJ=N.td(({expandable:e})=>({paddingLeft:e?`40px !important`:`20px !important`})),YJ=e=>e&&{summary:typeof e==`string`?e:e.name},XJ=e=>{let[t,n]=(0,UU.useState)(!1),{row:r,updateArgs:i,compact:a,expandable:o,initialExpandedArgs:s}=e,{name:c,description:l}=r,u=r.table||{},d=u.type||YJ(r.type),f=u.defaultValue||r.defaultValue,p=r.type?.required,m=l!=null&&l!==``;return UU.createElement(`tr`,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},UU.createElement(JJ,{expandable:o??!1},UU.createElement(UJ,null,c),p?UU.createElement(WJ,{title:`Required`},`*`):null),a?null:UU.createElement(`td`,null,m&&UU.createElement(GJ,null,UU.createElement(HK,null,l)),u.jsDocTags==null?UU.createElement(KJ,{hasDescription:m},UU.createElement(HJ,{value:d,initialExpandedArgs:s})):UU.createElement(UU.Fragment,null,UU.createElement(qJ,{hasDescription:m},UU.createElement(HJ,{value:d,initialExpandedArgs:s})),UU.createElement(TJ,{tags:u.jsDocTags}))),a?null:UU.createElement(`td`,null,UU.createElement(HJ,{value:f,initialExpandedArgs:s})),i?UU.createElement(`td`,null,UU.createElement(CJ,{...e,isHovered:t})):null)},ZJ=N.div(({inAddonPanel:e,theme:t})=>({height:e?`100%`:`auto`,display:`flex`,border:e?`none`:`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:t.background.content})),QJ=N.div(({theme:e})=>({display:`flex`,fontSize:e.typography.size.s2-1,gap:25})),$J=({inAddonPanel:e})=>{let[t,n]=(0,cW.useState)(!0);return(0,cW.useEffect)(()=>{let e=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(e)},[]),t?null:cW.createElement(ZJ,{inAddonPanel:e},cW.createElement(qR,{title:e?`Interactive story playground`:`Args table with interactive controls couldn't be auto-generated`,description:cW.createElement(cW.Fragment,null,`Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.`),footer:cW.createElement(QJ,null,e&&cW.createElement(cW.Fragment,null,cW.createElement(MA,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},cW.createElement(He,null),` Read docs`)),!e&&cW.createElement(MA,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},cW.createElement(He,null),` Learn how to set that up`))}))},eY=N($e)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?fV(.25,e.color.defaultText):fV(.3,e.color.defaultText),border:`none`,display:`inline-block`})),tY=N(et)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?fV(.25,e.color.defaultText):fV(.3,e.color.defaultText),border:`none`,display:`inline-block`})),nY=N.span(({theme:e})=>({display:`flex`,lineHeight:`20px`,alignItems:`center`})),rY=N.td(({theme:e})=>({position:`relative`,letterSpacing:`0.35em`,textTransform:`uppercase`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base===`light`?fV(.4,e.color.defaultText):fV(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),iY=N.td(({theme:e})=>({position:`relative`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),aY=N.td({position:`relative`}),oY=N.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${lV(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:`row-resize`}})),sY=N.button({background:`none`,border:`none`,padding:`0`,font:`inherit`,position:`absolute`,top:0,bottom:0,left:0,right:0,height:`100%`,width:`100%`,color:`transparent`,cursor:`row-resize !important`}),cY=({level:e=`section`,label:t,children:n,initialExpanded:r=!0,colSpan:i=3})=>{let[a,o]=(0,lW.useState)(r),s=e===`subsection`?iY:rY,c=n?.length||0,l=e===`subsection`?`${c} item${c===1?``:`s`}`:``,u=`${a?`Hide`:`Show`} ${e===`subsection`?c:t} item${c===1?``:`s`}`;return lW.createElement(lW.Fragment,null,lW.createElement(oY,{title:u},lW.createElement(s,{colSpan:1},lW.createElement(sY,{onClick:e=>o(!a),tabIndex:0},u),lW.createElement(nY,null,a?lW.createElement(eY,null):lW.createElement(tY,null),t)),lW.createElement(aY,{colSpan:i-1},lW.createElement(sY,{onClick:e=>o(!a),tabIndex:-1,style:{outline:`none`}},u),a?null:l)),a?n:null)},lY=N.div(({theme:e})=>({width:`100%`,borderSpacing:0,color:e.color.defaultText})),uY=N.div(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),dY=N.div(({position:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,gap:5,padding:`10px 15px`,alignItems:`flex-start`};switch(e){case`first`:return{...n,width:`25%`,paddingLeft:20};case`second`:return{...n,width:`35%`};case`third`:return{...n,width:`15%`};case`last`:return{...n,width:`25%`,paddingRight:20}}}),fY=N.div(({theme:e,width:t,height:n})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||`100%`,height:n||16,borderRadius:3})),pY=()=>X.createElement(lY,null,X.createElement(uY,null,X.createElement(dY,{position:`first`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`second`},X.createElement(fY,{width:`30%`})),X.createElement(dY,{position:`third`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`last`},X.createElement(fY,{width:`60%`}))),X.createElement(uY,null,X.createElement(dY,{position:`first`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`second`},X.createElement(fY,{width:`80%`}),X.createElement(fY,{width:`30%`})),X.createElement(dY,{position:`third`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`last`},X.createElement(fY,{width:`60%`}))),X.createElement(uY,null,X.createElement(dY,{position:`first`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`second`},X.createElement(fY,{width:`80%`}),X.createElement(fY,{width:`30%`})),X.createElement(dY,{position:`third`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`last`},X.createElement(fY,{width:`60%`}))),X.createElement(uY,null,X.createElement(dY,{position:`first`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`second`},X.createElement(fY,{width:`80%`}),X.createElement(fY,{width:`30%`})),X.createElement(dY,{position:`third`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`last`},X.createElement(fY,{width:`60%`})))),mY=N.table(({theme:e,compact:t,inAddonPanel:n,inTabPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:`none`,verticalAlign:`top`,textOverflow:`ellipsis`},fontSize:e.typography.size.s2-1,lineHeight:`19px`,textAlign:`left`,width:`100%`,marginTop:n?0:25,marginBottom:n?0:40,"thead th:first-of-type, td:first-of-type":{width:`25%`},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:`35%`}},"td:nth-of-type(3)":{...t?null:{width:`15%`}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:`25%`}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:`10px`,paddingBottom:`10px`,"&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:n||r?0:1,paddingInline:r?3:0,tbody:{...n?null:{filter:e.base===`light`?`drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))`:`drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))`},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...n?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}},"@media (forced-colors: active)":{tbody:{filter:`none`,"> tr > *":{borderColor:`CanvasText`}}}}})),hY=N.div({position:`relative`}),gY=N.div({position:`absolute`,right:22,top:10}),_Y=N(VP)({margin:`-4px -12px -4px 0`}),vY={alpha:(e,t)=>(e.name??``).localeCompare(t.name??``),requiredFirst:(e,t)=>!!t.type?.required-+!!e.type?.required||(e.name??``).localeCompare(t.name??``),none:null},yY=(e,t)=>{let n={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return n;Object.entries(e).forEach(([e,t])=>{let{category:r,subcategory:i}=t?.table||{};if(r){let a=n.sections[r]||{ungrouped:[],subsections:{}};if(!i)a.ungrouped.push({key:e,...t});else{let n=a.subsections[i]||[];n.push({key:e,...t}),a.subsections[i]=n}n.sections[r]=a}else if(i){let r=n.ungroupedSubsections[i]||[];r.push({key:e,...t}),n.ungroupedSubsections[i]=r}else n.ungrouped.push({key:e,...t})});let r=vY[t],i=e=>r?Object.keys(e).reduce((t,n)=>({...t,[n]:e[n].sort(r)}),{}):e;return{ungrouped:r?n.ungrouped.sort(r):n.ungrouped,ungroupedSubsections:i(n.ungroupedSubsections),sections:Object.keys(n.sections).reduce((e,t)=>({...e,[t]:{ungrouped:r?n.sections[t].ungrouped.sort(r):n.sections[t].ungrouped,subsections:i(n.sections[t].subsections)}}),{})}},bY=(e,t,n)=>{try{return ef(e,t,n)}catch(e){return tG.warn(e.message),!1}},xY=e=>{let{updateArgs:t,resetArgs:n,compact:r,inAddonPanel:i,inTabPanel:a,initialExpandedArgs:o,sort:s=`none`,isLoading:c,storyId:l}=e;if(`error`in e){let{error:t}=e;return J.createElement(mV,null,t,`\xA0`,J.createElement(MA,{href:`http://storybook.js.org/docs/?ref=ui`,target:`_blank`,withArrow:!0},J.createElement(He,null),` Read the docs`))}if(c)return J.createElement(pY,null);let{rows:u,args:d,globals:f}=`rows`in e?e:{rows:void 0,args:void 0,globals:void 0},p=yY(jV(u||{},e=>!e?.table?.disable&&bY(e,d||{},f||{})),s),m=p.ungrouped.length===0,h=Object.entries(p.sections).length===0,g=Object.entries(p.ungroupedSubsections).length===0;if(m&&h&&g)return J.createElement($J,{inAddonPanel:i});let _=1;t&&(_+=1),r||(_+=2);let v=Object.keys(p.sections).length>0,y={updateArgs:t,compact:r,inAddonPanel:i,initialExpandedArgs:o,storyId:l};return J.createElement(Gk,null,J.createElement(hY,null,t&&!c&&n&&J.createElement(gY,null,J.createElement(_Y,{variant:`ghost`,padding:`small`,onClick:()=>n(),ariaLabel:`Reset controls`},J.createElement(at,null))),J.createElement(mY,{compact:r,inAddonPanel:i,inTabPanel:a,className:`docblock-argstable sb-unstyled`},J.createElement(`thead`,{className:`docblock-argstable-head`},J.createElement(`tr`,null,J.createElement(`th`,null,J.createElement(`span`,null,`Name`)),r?null:J.createElement(`th`,null,J.createElement(`span`,null,`Description`)),r?null:J.createElement(`th`,null,J.createElement(`span`,null,`Default`)),t?J.createElement(`th`,null,J.createElement(`span`,null,`Control`)):null)),J.createElement(`tbody`,{className:`docblock-argstable-body`},p.ungrouped.map(e=>J.createElement(XJ,{key:e.key,row:e,arg:d&&d[e.key],...y})),Object.entries(p.ungroupedSubsections).map(([e,t])=>J.createElement(cY,{key:e,label:e,level:`subsection`,colSpan:_},t.map(e=>J.createElement(XJ,{key:e.key,row:e,arg:d&&d[e.key],expandable:v,...y})))),Object.entries(p.sections).map(([e,t])=>J.createElement(cY,{key:e,label:e,level:`section`,colSpan:_},t.ungrouped.map(e=>J.createElement(XJ,{key:e.key,row:e,arg:d&&d[e.key],...y})),Object.entries(t.subsections).map(([e,t])=>J.createElement(cY,{key:e,label:e,level:`subsection`,colSpan:_},t.map(e=>J.createElement(XJ,{key:e.key,row:e,arg:d&&d[e.key],expandable:v,...y}))))))))))},SY=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,CY=600,wY=N.h1(({theme:e})=>({...Uk({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:`32px`,[`@media (min-width: ${CY}px)`]:{fontSize:e.typography.size.l1,lineHeight:`36px`,marginBottom:`16px`}})),TY=N.h2(({theme:e})=>({...Uk({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:`20px`,borderBottom:`none`,marginBottom:15,[`@media (min-width: ${CY}px)`]:{fontSize:e.typography.size.m1,lineHeight:`28px`,marginBottom:24},color:fV(.25,e.color.defaultText)})),EY=N.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`},n={margin:`20px 0 8px`,padding:0,cursor:`text`,position:`relative`,color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& code":{fontSize:`inherit`}},r={lineHeight:1,margin:`0 2px`,padding:`3px 5px`,whiteSpace:`nowrap`,borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base===`light`?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base===`light`?fV(.1,e.color.defaultText):fV(.3,e.color.defaultText),backgroundColor:e.base===`light`?e.color.lighter:e.color.border};return{maxWidth:1e3,width:`100%`,minWidth:0,[SY(`a`)]:{...t,fontSize:`inherit`,lineHeight:`24px`,color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"&.absent":{color:`#cc0000`},"&.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`}},[SY(`blockquote`)]:{...t,margin:`16px 0`,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[SY(`div`)]:t,[SY(`dl`)]:{...t,margin:`16px 0`,padding:0,"& dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,padding:0,margin:`16px 0 4px`},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:`0 0 16px`,padding:`0 15px`},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[SY(`h1`)]:{...t,...n,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[SY(`h2`)]:{...t,...n,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[SY(`h3`)]:{...t,...n,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[SY(`h4`)]:{...t,...n,fontSize:`${e.typography.size.s3}px`},[SY(`h5`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`},[SY(`h6`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[SY(`hr`)]:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[SY(`img`)]:{maxWidth:`100%`},[SY(`li`)]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":r},[SY(`ol`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[SY(`p`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":r},[SY(`pre`)]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,lineHeight:`18px`,padding:`11px 1rem`,whiteSpace:`pre-wrap`,color:`inherit`,borderRadius:3,margin:`1rem 0`,"&:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`,code:{color:`inherit`,fontSize:`inherit`}},"& code":{whiteSpace:`pre`},"& code, & tt":{border:`none`}},[SY(`span`)]:{...t,"&.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"&.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"&.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"&.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"&.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}}},[SY(`table`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base===`dark`?e.color.darker:e.color.lighter},"& tr th":{fontWeight:`bold`,color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:`6px 13px`},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:`6px 13px`},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[SY(`ul`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:`disc`}}}),DY=N.div(({theme:e})=>({background:e.background.content,display:`flex`,flexDirection:`row-reverse`,justifyContent:`center`,padding:`4rem 20px`,minHeight:`100vh`,boxSizing:`border-box`,gap:`3rem`,[`@media (min-width: ${CY}px)`]:{}})),OY=({children:e,toc:t})=>uW.createElement(DY,{className:`sbdocs sbdocs-wrapper`},t,uW.createElement(EY,{className:`sbdocs sbdocs-content`},e)),{logger:kY}=__STORYBOOK_MODULE_CLIENT_LOGGER__,AY=typeof document<`u`?dW.useLayoutEffect:()=>{},jY={prefix:String(Math.round(Math.random()*1e10)),current:0},MY=pW.createContext(jY),NY=pW.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,PY=new WeakMap,FY=typeof pW.useId==`function`?_H:gH,IY=!!(typeof window<`u`&&window.document&&window.document.createElement),LY=new Map,typeof FinalizationRegistry<`u`&&(RY=new FinalizationRegistry(e=>{LY.delete(e)})),zY=null,BY=kH(function(){return OH(/^Mac/i)}),VY=kH(function(){return OH(/^iPad/i)||BY()&&navigator.maxTouchPoints>1}),HY=kH(function(){return DH(/AppleWebKit/i)&&!UY()}),UY=kH(function(){return DH(/Chrome/i)}),WY=kH(function(){return DH(/Firefox/i)}),(0,mW.createContext)({isNative:!0,open:MH,useHref:e=>e}),AH.isOpening=!1,GY=new Map,KY=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,NH):NH()),hW.useInsertionEffect,typeof document<`u`&&window.visualViewport,typeof Element<`u`&&`checkVisibility`in Element.prototype,qY=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],qY.join(`:not([hidden]),`)+``,qY.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),qY.join(`:not([hidden]):not([tabindex="-1"]),`),typeof document<`u`&&(gW.useInsertionEffect??gW.useLayoutEffect),globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=(0,_W.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName=`DocsContext`),JY=globalThis?globalThis.__DOCS_CONTEXT__:(0,_W.createContext)(null),{InvalidBlockOfPropError:YY}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,XY=Symbol(`mdxWrappedBlock`),ZY=bW.createContext(null),QY=(e,t)=>{let n=r=>{let i=bW.useContext(ZY),a=Te()[e];if(i?.has(e)||a===n)return bW.createElement(t,{...r});if(a){let t=new Set(i??[]);return t.add(e),bW.createElement(ZY.Provider,{value:t},bW.createElement(a,{...r}))}return bW.createElement(t,{...r})};return n.displayName=e,n[XY]=!0,n},$Y=(e,t)=>{let{of:n,meta:r}=e;if(`of`in e&&n===void 0)throw new YY;return r&&t.referenceMeta(r,!1),t.resolveOf(n||`story`,[`story`]).story.id},eX=(e,t,n)=>{let{parameters:r={}}=t||{},{docs:i={}}=r,a=i.story||{};return i.disable?null:e.inline??a.inline??!1?{story:t,inline:!0,height:e.height??a.height,autoplay:e.autoplay??a.autoplay??!1,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:n.renderStoryToElement}:{story:t,inline:!1,height:e.height??a.height??a.iframeHeight??`100px`,primary:!!e.__primary}},tX=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=(0,vW.useContext)(JY),n=PH($Y(e,t),t);if(!n)return vW.createElement(pX,null);let r=eX(e,n,t);return r?vW.createElement(fX,{...r}):null},nX=QY(`Story`,tX),rX=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,border:`1px solid ${e.appBorderColor}`}),iX=(e,t={})=>{let[n,r]=(globalThis.PREVIEW_URL||`iframe.html`).split(`?`),i=new URLSearchParams(r||``);return Object.entries(t).forEach(([e,t])=>{i.set(e,t)}),i.set(`id`,e),`${n}?${i.toString()}`},{window:aX}=globalThis,oX=class extends SW.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=aX.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:`top left`}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:n,allowFullScreen:r,scale:i,...a}=this.props;return SW.createElement(`iframe`,{id:e,title:t,src:n,...r?{allow:`fullscreen`}:{},loading:`lazy`,...a})}},sX=(0,CW.createContext)({scale:1}),cX=({story:e,primary:t})=>`story--${e.id}${t?`--primary`:``}`,lX=e=>{let t=(0,xW.useRef)(),[n,r]=(0,xW.useState)(!0),[i,a]=(0,xW.useState)(),{story:o,height:s,autoplay:c,forceInitialArgs:l,renderStoryToElement:u}=e;return(0,xW.useEffect)(()=>{if(!(o&&t.current))return()=>{};let e=t.current,n=u(o,e,{showMain:()=>{},showError:({title:e,description:t})=>a(Error(`${e} - ${t}`)),showException:e=>a(e)},{autoplay:c,forceInitialArgs:l});return r(!1),()=>{Promise.resolve().then(()=>n())}},[c,u,o]),i?xW.createElement(`pre`,null,xW.createElement(oI,{error:i})):xW.createElement(xW.Fragment,null,s?xW.createElement(`style`,null,`#${cX(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,n&&xW.createElement(pX,null),xW.createElement(`div`,{ref:t,id:`${cX(e)}-inner`,"data-name":o.name}))},uX=({story:e,height:t=`500px`})=>xW.createElement(`div`,{style:{width:`100%`,height:t}},xW.createElement(sX.Consumer,null,({scale:t})=>xW.createElement(oX,{key:`iframe`,id:`iframe--${e.id}`,title:e.name,src:iX(e.id,{viewMode:`story`}),allowFullScreen:!0,scale:t,style:{width:`100%`,height:`100%`,border:`0 none`}}))),dX=N.strong(({theme:e})=>({color:e.color.orange})),fX=e=>{let{inline:t,story:n}=e;return t&&!e.autoplay&&n.usesMount?xW.createElement(dX,null,`This story mounts inside of play. Set`,` `,xW.createElement(`a`,{href:`https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay`},`autoplay`),` `,`to true to view this story.`):xW.createElement(`div`,{id:cX(e),className:`sb-story sb-unstyled`,"data-story-block":`true`},t?xW.createElement(lX,{...e}):xW.createElement(uX,{...e}))},pX=()=>xW.createElement(Kz,null),mX=N(uz)({position:`absolute`,left:0,right:0,top:0,transition:`transform .2s linear`,display:`flex`,alignItems:`center`}),hX=N.div({display:`flex`,alignItems:`center`,gap:4}),gX=N.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:`0 7px`,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),_X=({isLoading:e,storyId:t,zoom:n,resetZoom:r,onReloadStory:i,...a})=>wW.createElement(mX,{innerStyle:{gap:4,paddingInline:7,justifyContent:`space-between`},...a},wW.createElement(hX,{key:`left`},e?[1,2,3].map(e=>wW.createElement(gX,{key:e})):wW.createElement(wW.Fragment,null,i&&wW.createElement(VP,{padding:`small`,variant:`ghost`,key:`reload`,onClick:i,ariaLabel:`Reload story`},wW.createElement(ot,null)),wW.createElement(VP,{padding:`small`,variant:`ghost`,key:`zoomin`,onClick:e=>{e.preventDefault(),n(.8)},ariaLabel:`Zoom in`},wW.createElement(Re,null)),wW.createElement(VP,{padding:`small`,variant:`ghost`,key:`zoomout`,onClick:e=>{e.preventDefault(),n(1.25)},ariaLabel:`Zoom out`},wW.createElement(ze,null)),wW.createElement(VP,{padding:`small`,variant:`ghost`,key:`zoomreset`,onClick:e=>{e.preventDefault(),r()},ariaLabel:`Reset zoom`},wW.createElement(Be,null)))),e?wW.createElement(hX,{key:`right`},wW.createElement(gX,null)):t&&wW.createElement(hX,{key:`right`},wW.createElement(VP,{asChild:!0,padding:`small`,variant:`ghost`,key:`opener`,ariaLabel:`Open canvas in new tab`},wW.createElement(`a`,{href:iX(t),target:`_blank`,rel:`noopener noreferrer`},wW.createElement(Qe,null))))),vX=N.div(({isColumn:e,columns:t,layout:n})=>({display:e||!t?`block`:`flex`,position:`relative`,flexWrap:`wrap`,overflow:`auto`,flexDirection:e?`column`:`row`,"& .innerZoomElementWrapper > *":e?{width:n===`fullscreen`?`100%`:`calc(100% - 20px)`,display:`block`}:{maxWidth:n===`fullscreen`?`100%`:`calc(100% - 20px)`,display:`inline-block`}}),({layout:e=`padded`,inline:t})=>e===`centered`||e===`padded`?{padding:t?`32px 22px`:`0px`,"& .innerZoomElementWrapper > *":{width:`auto`,border:`8px solid transparent!important`}}:{},({layout:e=`padded`,inline:t})=>e===`centered`&&t?{display:`flex`,justifyContent:`center`,justifyItems:`center`,alignContent:`center`,alignItems:`center`}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),yX=N(jR)({marginTop:-40,marginBottom:40}),bX=N(yV)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:`none`,background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:cV(.05,e.background.content),color:e.color.lightest,button:{background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:cV(.05,e.background.content)}})),xX=N.div(({theme:e})=>({position:`relative`,overflow:`hidden`,margin:`25px 0 40px`,...rX(e),"h3 + &":{marginTop:`16px`}}),({withToolbar:e})=>e&&{paddingTop:40}),SX=N(_X)({position:`absolute`,top:0,left:0,right:0,height:40}),CX=2e3,wX=({isLoading:e,isColumn:t,columns:n,children:r,withSource:i,withToolbar:o=!1,isExpanded:s=!1,additionalActions:c,className:l,layout:u=`padded`,inline:d=!1,onReloadStory:f,...p})=>{let[m,h]=(0,Z.useState)(s),[g,_]=(0,Z.useState)(null),[v,y]=(0,Z.useState)(1),b=(0,Z.useMemo)(()=>c?[...c]:[],[c]),x=SH(),S=[l,`sbdocs`,`sbdocs-preview`,`sb-unstyled`],C=(0,Z.useContext)(JY),w=(0,Z.useCallback)(async e=>{let{createCopyToClipboardFunction:t}=await a(async()=>{let{createCopyToClipboardFunction:e}=await Promise.resolve().then(()=>(Zz(),nb));return{createCopyToClipboardFunction:e}},void 0,import.meta.url);await t()(e)},[]),T=(0,Z.useCallback)(async()=>{try{await w(i?.code??``),_(`Copied!`)}catch(e){kY.error(e),_(`Copy error!`)}globalThis.window.setTimeout(()=>_(null),CX)},[w,i?.code]),E=IH(r),D=!!(i&&i.error),O=!!(i&&!i.error);return Z.createElement(Z.Fragment,null,Z.createElement(xX,{withSource:i,withToolbar:o,...p,className:S.join(` `)},o&&Z.createElement(SX,{isLoading:e,border:!0,zoom:e=>y(v*e),resetZoom:()=>y(1),storyId:!e&&E?$Y(E,C):void 0,onReloadStory:f}),Z.createElement(sX.Provider,{value:{scale:v}},Z.createElement(vX,{isColumn:t||!Array.isArray(r),columns:n,layout:u,inline:d,className:`docs-story`},Z.createElement(XF.Element,{centered:u===`centered`,scale:d?v:1},Array.isArray(r)?r.map((e,t)=>Z.createElement(`div`,{key:t},e)):Z.createElement(`div`,null,r)))),O&&m&&Z.createElement(`div`,{id:x},Z.createElement(bX,{...i,dark:!0,copyable:!1}))),(i||b.length>0)&&Z.createElement(yX,{className:`sbdocs sbdocs-preview-actions`,innerStyle:{paddingInline:0}},D&&Z.createElement(VP,{ariaLabel:!1,disabled:!0,variant:`ghost`,className:`docblock-code-toggle docblock-code-toggle--disabled`},Z.createElement(We,null),` No code available`),O&&Z.createElement(Z.Fragment,null,Z.createElement(WP,{ariaLabel:!1,pressed:m,"aria-expanded":m,"aria-controls":x,onClick:()=>h(!m),variant:`ghost`,className:`docblock-code-toggle${m?` docblock-code-toggle--expanded`:``}`},Z.createElement(We,null),` `,m?`Hide code`:`Show code`),Z.createElement(VP,{ariaLabel:!1,variant:`ghost`,onClick:T},Z.createElement(Ue,null),` `,g??`Copy code`)),b.map(({title:e,className:t,onClick:n,disabled:r},i)=>Z.createElement(VP,{key:i,className:t,onClick:n,disabled:!!r,variant:`ghost`},e))))},N(wX)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}})),TX=N(kz)({height:`fit-content`}),EX=({tabs:e,...t})=>{let n=Object.entries(e);if(n.length===1)return TW.createElement(xY,{...n[0][1],...t});let r=n.map(([e,n],r)=>({id:`prop_table_div_${e}`,title:e,children:()=>{let i=r===0?t:{sort:t.sort};return TW.createElement(xY,{inTabPanel:!0,key:`prop_table_${e}`,...n,...i})}}));return TW.createElement(TX,{tabs:r})},N.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base===`light`?fV(.4,e.color.defaultText):fV(.6,e.color.defaultText)})),N.div({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`}),N.div({display:`flex`,flexDirection:`row`,alignItems:`baseline`,"&:not(:last-child)":{marginBottom:`1rem`}}),N.div(Uk,({theme:e})=>({...rX(e),margin:`25px 0 40px`,padding:`30px 20px`})),N.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),N.div(({theme:e})=>({color:fV(.3,e.color.defaultText)})),N.div({flex:`0 0 30%`,lineHeight:`20px`,marginTop:5}),N.div(({theme:e})=>({flex:1,textAlign:`center`,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:`hidden`,color:fV(.3,e.color.defaultText),"> div":{display:`inline-block`,overflow:`hidden`,maxWidth:`100%`,textOverflow:`ellipsis`},span:{display:`block`,marginTop:2}})),N.div({display:`flex`,flexDirection:`row`}),N.div(({background:e})=>({position:`relative`,flex:1,"&::before":{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,background:e,content:`""`}})),N.div(({theme:e})=>({...rX(e),display:`flex`,flexDirection:`row`,height:50,marginBottom:5,overflow:`hidden`,backgroundColor:`white`,backgroundImage:`repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)`,backgroundClip:`padding-box`})),N.div({display:`flex`,flexDirection:`column`,flex:1,position:`relative`,marginBottom:30}),N.div({flex:1,display:`flex`,flexDirection:`row`}),N.div({display:`flex`,alignItems:`flex-start`}),N.div({flex:`0 0 30%`}),N.div({flex:1}),N.div(({theme:e})=>({display:`flex`,flexDirection:`row`,alignItems:`center`,paddingBottom:20,fontWeight:e.typography.weight.bold,color:fV(.3,e.color.defaultText)})),N.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:`20px`,display:`flex`,flexDirection:`column`})),N.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:`-webkit-box`,overflow:`hidden`,wordBreak:`break-word`,textOverflow:`ellipsis`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`})),N.div(({theme:e})=>({...rX(e),overflow:`hidden`,height:40,width:40,display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`none`,"> img, > svg":{width:20,height:20}})),N.div({display:`inline-flex`,flexDirection:`row`,alignItems:`center`,width:`100%`}),N.div({display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(140px, 1fr))`,gridGap:`8px 16px`,gridAutoFlow:`row dense`,gridAutoRows:50}),{NAVIGATE_URL:DX}=__STORYBOOK_MODULE_CORE_EVENTS__,OX={tocSelector:`.js-toc`,tocElement:null,contentSelector:`.js-toc-content`,contentElement:null,headingSelector:`h1, h2, h3`,ignoreSelector:`.js-toc-ignore`,hasInnerContainers:!1,linkClass:`toc-link`,extraLinkClasses:``,activeLinkClass:`is-active-link`,listClass:`toc-list`,extraListClasses:``,isCollapsedClass:`is-collapsed`,collapsibleClass:`is-collapsible`,listItemClass:`toc-list-item`,activeListItemClass:`is-active-li`,collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:`auto`,scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:`is-position-fixed`,fixedSidebarOffset:`auto`,includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:``,disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30},Q={},PX=Object.prototype.hasOwnProperty,FX={destroy:UH,init:HH,refresh:WH},IX=N.aside(()=>({width:`10rem`,"@media (max-width: 768px)":{display:`none`}})),LX=N.nav(({theme:e})=>({position:`fixed`,bottom:0,top:0,width:`10rem`,paddingTop:`4rem`,paddingBottom:`2rem`,overflowY:`auto`,fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`,"& *":{boxSizing:`border-box`},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:`relative`,listStyleType:`none`,marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:`""`,position:`absolute`,height:`100%`,top:0,left:0,transform:`translateX(calc(-2px - 20px))`,borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:`opacity 0.2s`},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:`none`},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:`none`}})),RX=N.p(({theme:e})=>({fontWeight:600,fontSize:`0.875em`,color:e.color.defaultText,textTransform:`uppercase`,marginBottom:10})),zX=({headingId:e,title:t})=>typeof t==`string`||!t?EW.createElement(RX,{as:`h2`,id:e,className:t?``:`sb-sr-only`},t||`Table of contents`):EW.createElement(`div`,{id:e},t),BX=({title:e,disable:t,headingSelector:n,contentsSelector:r,ignoreSelector:i,unsafeTocbotOptions:a,channel:o,className:s})=>{(0,EW.useEffect)(()=>{if(t)return()=>{};let e={tocSelector:`.toc-wrapper`,contentSelector:r??`.sbdocs-content`,headingSelector:n??`h3`,ignoreSelector:i??`.docs-story *, .skip-toc`,headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:e=>{if(e.preventDefault(),e.currentTarget instanceof HTMLAnchorElement){let[,t]=e.currentTarget.href.split(`#`);t&&o.emit(DX,`#${t}`)}},...a},s=setTimeout(()=>FX.init(e),100);return()=>{clearTimeout(s),FX.destroy()}},[o,t,i,r,n,a]);let c=`table-of-contents`;return EW.createElement(IX,{className:s},t?null:EW.createElement(LX,{"aria-labelledby":c},EW.createElement(zX,{headingId:c,title:e}),EW.createElement(`div`,{className:`toc-wrapper`})))},VX=e=>`anchor--${e}`,HX=({storyId:e,children:t})=>DW.createElement(`div`,{id:VX(e),className:`sb-anchor`},t),{InvalidBlockOfPropError:UX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:WX}=__STORYBOOK_MODULE_PREVIEW_API__,GX=(e,t)=>(0,kW.useContext)(JY).resolveOf(e,t),KX=e=>e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),qX=e=>{if(e)return typeof e==`string`?e.includes(`-`)?KX(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name},JX=e=>{let{of:t}=e;if(`of`in e&&t===void 0)throw new UX;let{argTypes:n,parameters:r,component:i,subcomponents:a}=$H(GX(t||`meta`)),o=r?.docs?.argTypes||{},s=e.include??o.include,c=e.exclude??o.exclude,l=e.sort??o.sort,u=WX(n,s,c);if(!(a&&Object.keys(a||{}).length>0))return OW.createElement(xY,{rows:u,sort:l});let d=qX(i)||`Main`,f=Object.fromEntries(Object.entries(a||{}).map(([e,t])=>[e,{rows:WX(QH(t,r),s,c),sort:l}])),p={[d]:{rows:u,sort:l},...f};return OW.createElement(EX,{tabs:p,sort:l})},YX=QY(`ArgTypes`,JX),{FORCE_REMOUNT:XX}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:ZX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:QX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,$X=Object.create,eZ=Object.defineProperty,tZ=Object.getOwnPropertyDescriptor,nZ=Object.getOwnPropertyNames,rZ=Object.getPrototypeOf,iZ=Object.prototype.hasOwnProperty,$=(e,t)=>function(){return t||(0,e[nZ(e)[0]])((t={exports:{}}).exports,t),t.exports},aZ=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of nZ(t))!iZ.call(e,i)&&i!==n&&eZ(e,i,{get:()=>t[i],enumerable:!(r=tZ(t,i))||r.enumerable});return e},oZ=(e,t,n)=>(n=e==null?{}:$X(rZ(e)),aZ(t||!e||!e.__esModule?eZ(n,`default`,{value:e,enumerable:!0}):n,e)),sZ=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],cZ=[`detail`],lZ=$({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),uZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),dZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),fZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),pZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),mZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),hZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),gZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),_Z=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),vZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),yZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),bZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),xZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),SZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),CZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),wZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=CZ();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),TZ=$({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),EZ=$({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=TZ();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),DZ=$({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}}),OZ=$({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),kZ=$({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=OZ();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),AZ=$({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}}),jZ=$({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=lZ().getPrototypeOf||null}}),MZ=$({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}}}),NZ=$({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=MZ();t.exports=Function.prototype.bind||n}}),PZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),FZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),IZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}}),LZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=NZ(),r=FZ(),i=PZ();t.exports=IZ()||n.call(i,r)}}),RZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=NZ(),r=hZ(),i=PZ(),a=LZ();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),zZ=$({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=RZ(),r=EZ(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?(function(e){return s(e==null?e:o(e))}):!1}}),BZ=$({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=AZ(),r=jZ(),i=zZ();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),VZ=$({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=NZ().call(n,r)}}),HZ=$({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=lZ(),i=uZ(),a=dZ(),o=fZ(),s=pZ(),c=mZ(),l=hZ(),u=gZ(),d=_Z(),f=vZ(),p=yZ(),m=bZ(),h=xZ(),g=SZ(),_=wZ(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=EZ(),x=DZ(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=kZ()(),T=BZ(),E=jZ(),D=AZ(),O=FZ(),k=PZ(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){ee=T(T(e)),M[`%Error.prototype%`]=ee}var ee,te=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},N={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},ne=NZ(),re=VZ(),ie=ne.call(k,Array.prototype.concat),ae=ne.call(O,Array.prototype.splice),oe=ne.call(k,String.prototype.replace),se=ne.call(k,String.prototype.slice),ce=ne.call(k,RegExp.prototype.exec),le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,de=function(e){var t=se(e,0,1),n=se(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return oe(e,le,function(e,t,n,i){r[r.length]=n?oe(i,ue,`$1`):t||e}),r},fe=function(e,t){var n=e,r;if(re(N,n)&&(r=N[n],n=`%`+r[0]+`%`),re(M,n)){var i=M[n];if(i===A&&(i=te(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ce(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=de(e),r=n.length>0?n[0]:``,i=fe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ae(n,ie([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=se(p,0,1),h=se(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,re(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=re(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),UZ=$({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=HZ(),r=RZ(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),WZ=$({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=OZ();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),GZ=$({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=UZ(),r=WZ()(),i=VZ(),a=EZ(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),KZ=$({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),qZ=$({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=UZ(),r=GZ(),i=n(`RegExp.prototype.exec`),a=hZ();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),JZ=$({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=UZ(),r=n(`Object.prototype.toString`),i=kZ()(),a=qZ();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),YZ=oZ(GZ()),XZ=oZ(KZ()),ZZ=oZ(JZ()),QZ=typeof global==`object`&&global&&global.Object===Object&&global,$Z=typeof self==`object`&&self&&self.Object===Object&&self,eQ=QZ||$Z||Function(`return this`)(),tQ=eQ.Symbol,nQ=Object.prototype,rQ=nQ.hasOwnProperty,iQ=nQ.toString,aQ=tQ?tQ.toStringTag:void 0,oQ=nU,sQ=Object.prototype.toString,cQ=rU,lQ=`[object Null]`,uQ=`[object Undefined]`,dQ=tQ?tQ.toStringTag:void 0,fQ=iU,pQ=tQ?tQ.prototype:void 0,pQ&&pQ.toString,mQ=aU,hQ=`[object AsyncFunction]`,gQ=`[object Function]`,_Q=`[object GeneratorFunction]`,vQ=`[object Proxy]`,yQ=oU,bQ=eQ[`__core-js_shared__`],xQ=(function(){var e=/[^.]+$/.exec(bQ&&bQ.keys&&bQ.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),SQ=sU,CQ=Function.prototype.toString,wQ=cU,TQ=/[\\^$.*+?()[\]{}|]/g,EQ=/^\[object .+?Constructor\]$/,DQ=Function.prototype,OQ=Object.prototype,kQ=DQ.toString,AQ=OQ.hasOwnProperty,jQ=RegExp(`^`+kQ.call(AQ).replace(TQ,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),MQ=lU,NQ=uU,PQ=dU,FQ=fU,IQ=PQ(Object,`create`),LQ=pU,RQ=mU,zQ=`__lodash_hash_undefined__`,BQ=Object.prototype.hasOwnProperty,VQ=hU,HQ=Object.prototype.hasOwnProperty,UQ=gU,WQ=`__lodash_hash_undefined__`,GQ=_U,vU.prototype.clear=LQ,vU.prototype.delete=RQ,vU.prototype.get=VQ,vU.prototype.has=UQ,vU.prototype.set=GQ,KQ=vU,qQ=yU,JQ=bU,YQ=Array.prototype.splice,XQ=xU,ZQ=SU,QQ=CU,$Q=wU,TU.prototype.clear=qQ,TU.prototype.delete=XQ,TU.prototype.get=ZQ,TU.prototype.has=QQ,TU.prototype.set=$Q,e$=TU,t$=PQ(eQ,`Map`),n$=EU,r$=DU,i$=OU,a$=kU,o$=AU,s$=jU,c$=MU,NU.prototype.clear=n$,NU.prototype.delete=a$,NU.prototype.get=o$,NU.prototype.has=s$,NU.prototype.set=c$,l$=NU,u$=`Expected a function`,PU.Cache=l$,d$=PU,f$=500,p$=FU,m$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h$=/\\(\\)?/g,p$(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m$,function(e,n,r,i){t.push(r?i.replace(h$,`$1`):n||e)}),t}),g$=tU,_$=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,v$=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return _$.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,YZ.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,XZ.default)(o))return;if((0,ZZ.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:IU(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},y$={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},b$=(e,t={})=>{let n={...y$,...t};return JSON.stringify(IU(e),v$(n),t.space)},x$=(0,MW.createContext)({sources:{}}),S$=`--unknown--`,C$=({children:e,channel:t})=>{let[n,r]=(0,MW.useState)({});return(0,MW.useEffect)(()=>{let e=(e,t=null,n=!1)=>{let{id:i,args:a=void 0,source:o,format:s}=typeof e==`string`?{id:e,source:t,format:n}:e,c=a?LU(a):S$;r(e=>({...e,[i]:{...e[i],[c]:{code:o||``,format:s}}}))};return t.on(y,e),()=>t.off(y,e)},[]),MW.createElement(x$.Provider,{value:{sources:n}},e)},w$={sources:{}},T$=(e,t,n)=>{let{sources:r}=n,i=r?.[e];return i?.[LU(t)]||i?.[`--unknown--`]||{code:``}},E$=({snippet:e,storyContext:t,typeFromProps:n,transformFromProps:r})=>{let i=t.parameters??{},{__isArgsStory:a}=i,o=i.docs?.source||{},s=n||o.type||d.AUTO,c=s===d.DYNAMIC||s===d.AUTO&&e&&a?e:o.originalSource||``,l=r??o.transform,u=l?RU(c,l,t):c;return o.code===void 0?u:o.code},D$=(e,t,n)=>{let{of:r}=e,i=(0,jW.useMemo)(()=>{if(r)return t.resolveOf(r,[`story`]).story;try{return t.storyById()}catch{}},[t,r]),a=i?t.getStoryContext(i):{},o=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,s=i?T$(i.id,o,n):null,c=E$({snippet:s?s.code:``,storyContext:{...a,args:o},typeFromProps:e.type,transformFromProps:e.transform});if(`of`in e&&r===void 0)throw new QX;let l=i?.parameters?.docs?.source||{},u=e.format,d=e.language??l.language??`jsx`,f=e.dark??l.dark??!1;return e.code===void 0&&!i?{error:`Oh no! The source is not available.`}:e.code===void 0?(u=s?.format??!0,{code:c,format:u,language:d,dark:f}):{code:e.code,format:u,language:d,dark:f}},O$=e=>{let t=(0,jW.useContext)(x$),n=D$(e,(0,jW.useContext)(JY),t);return jW.createElement(yV,{...n})},k$=e=>{let t=D$(e,(0,jW.useContext)(JY),w$);return jW.createElement(yV,{...t})},A$=e=>e.code===void 0?jW.createElement(O$,{...e}):jW.createElement(k$,{...e}),QY(`Source`,A$),j$=e=>{let t=(0,AW.useContext)(JY),n=(0,AW.useContext)(x$),{of:r,source:i}=e;if(`of`in e&&r===void 0)throw new ZX;let{story:a}=GX(r||`story`,[`story`]),o=D$({...i,...r&&{of:r}},t,n),s=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??`padded`,c=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,l=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,u=e.sourceState??a.parameters.docs?.canvas?.sourceState??`hidden`,d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1,p=(0,AW.useCallback)(()=>{t.channel.emit(XX,{storyId:a.id})},[t.channel,a.id]);return AW.createElement(wX,{withSource:u===`none`?void 0:o,isExpanded:u===`shown`,withToolbar:c,additionalActions:l,className:d,layout:s,inline:f,onReloadStory:f?p:void 0},AW.createElement(nX,{of:r||a.moduleExport,meta:e.meta,...e.story}))},M$=QY(`Canvas`,j$),{filterArgTypes:N$}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:P$,STORY_ARGS_UPDATED:F$,UPDATE_STORY_ARGS:I$}=__STORYBOOK_MODULE_CORE_EVENTS__,L$=(e,t)=>{let n=R$(e,t);if(!n)throw Error(`No result when story was defined`);return n},R$=(e,t)=>{let n=e?t.getStoryContext(e):{args:{}},{id:r}=e||{id:`none`},[i,a]=(0,FW.useState)(n.args);(0,FW.useEffect)(()=>{let e=e=>{e.storyId===r&&a(e.args)};return t.channel.on(F$,e),()=>t.channel.off(F$,e)},[r,t.channel]);let o=(0,FW.useCallback)(e=>t.channel.emit(I$,{storyId:r,updatedArgs:e}),[r,t.channel]),s=(0,FW.useCallback)(e=>t.channel.emit(P$,{storyId:r,argNames:e}),[r,t.channel]);return e&&[i,o,s]},{GLOBALS_UPDATED:z$}=__STORYBOOK_MODULE_CORE_EVENTS__,B$=(e,t)=>{let[n,r]=(0,IW.useState)(t.getStoryContext(e).globals);return(0,IW.useEffect)(()=>{let e=e=>{r(e.globals)};return t.channel.on(z$,e),()=>t.channel.off(z$,e)},[t.channel]),[n]},{Tag:V$}=__STORYBOOK_MODULE_PREVIEW_API__,H$=()=>{let e=(0,LW.useContext)(JY),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(e=>e.tags.includes(V$.AUTODOCS))},U$=e=>{let{of:t}=e,n=(0,PW.useContext)(JY),r=H$(),i=t?n.resolveOf(t,[`story`]).story:r;if(!i)return null;let{parameters:a,argTypes:o,component:s,subcomponents:c}=i,l=a.docs?.controls||{},u=e.include??l.include,d=e.exclude??l.exclude,f=e.sort??l.sort,[p,m,h]=L$(i,n),[g]=B$(i,n),_=N$(o,u,d);if(!(c&&Object.keys(c||{}).length>0))return Object.keys(_).length>0||Object.keys(p).length>0?PW.createElement(xY,{storyId:i.id,rows:_,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h}):null;let v=qX(s)||`Story`,y=Object.fromEntries(Object.entries(c||{}).map(([e,t])=>[e,{rows:N$(zU(t,a),u,d),sort:f}])),b={[v]:{rows:_,sort:f},...y};return PW.createElement(EX,{tabs:b,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h,storyId:i.id})},W$=QY(`Controls`,U$),{InvalidBlockOfPropError:G$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:K$}=__STORYBOOK_MODULE_CORE_EVENTS__,{document:q$}=globalThis,J$=({className:e,children:t,...n})=>{if(typeof e!=`string`&&(typeof t!=`string`||!t.match(/[\n\r]/g)))return BW.createElement(iA,null,t);let r=e&&e.split(`-`);return BW.createElement(yV,{language:r&&r[1]||`text`,format:!1,code:t,...n})},Y$=Yz.a,X$=({hash:e,children:t})=>{let n=(0,BW.useContext)(JY);return BW.createElement(Y$,{href:e,target:`_self`,onClick:t=>{let r=e.substring(1);q$.getElementById(r)&&BU(n,e)}},t)},Z$=e=>{let{href:t,target:n,children:r,...i}=e,a=(0,BW.useContext)(JY);return!t||n===`_blank`||/^https?:\/\//.test(t)?BW.createElement(Y$,{...e}):t.startsWith(`#`)?BW.createElement(X$,{hash:t},r):BW.createElement(Y$,{href:t,onClick:e=>{e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&(e.preventDefault(),BU(a,e.currentTarget.getAttribute(`href`)||``))},target:n,...i},r)},Q$=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],$$=Q$.reduce((e,t)=>({...e,[t]:N(t)({"& svg":{position:`relative`,top:`-0.1em`,visibility:`hidden`},"&:hover svg":{visibility:`visible`}})}),{}),e1=N.a(()=>({float:`left`,lineHeight:`inherit`,paddingRight:`10px`,marginLeft:`-24px`,color:`inherit`})),t1=({as:e,id:t,children:n,...r})=>{let i=(0,BW.useContext)(JY),a=$$[e],o=`#${t}`;return BW.createElement(a,{id:t,...r},BW.createElement(e1,{"aria-hidden":`true`,href:o,tabIndex:-1,target:`_self`,onClick:e=>{q$.getElementById(t)&&BU(i,o)}},BW.createElement(Ze,null)),n)},n1=e=>{let{as:t,id:n,children:r,...i}=e;if(n)return BW.createElement(t1,{as:t,id:n,...i},r);let a=t,{as:o,...s}=e;return BW.createElement(a,{...Bk(s,t)})},r1=Q$.reduce((e,t)=>({...e,[t]:e=>BW.createElement(n1,{as:t,...e})}),{}),i1=e=>{if(!e.children)return null;if(typeof e.children!=`string`)throw Error(xV`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
269
|
+
${lV(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`} 0 0 0 1px inset`,cursor:i?`not-allowed`:`pointer`,height:6,width:`100%`},o={borderColor:CB(e.color.secondary,.4)},s={width:16,height:16,borderRadius:50,cursor:i?`not-allowed`:`grab`,background:e.input.background,border:`1px solid ${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,boxShadow:e.base===`light`?`0 1px 3px 0px ${CB(e.appBorderColor,.2)}`:`unset`,transition:`all 150ms ease-out`},c={background:`${cV(.05,e.input.background)}`,transform:`scale3d(1.1, 1.1, 1.1) translateY(-1px)`,transition:`all 50ms ease-out`},l={background:`${e.input.background}`,transform:`scale3d(1, 1, 1) translateY(0px)`},u={borderColor:e.color.secondary,boxShadow:e.base===`light`?`0 0px 5px 0px ${e.color.secondary}`:`unset`};return{appearance:`none`,backgroundColor:`transparent`,width:`100%`,"&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:`transparent`},"&::-moz-range-thumb":{...s,"&:hover":c,"&:active":l},"&::-webkit-slider-thumb":{...s,marginTop:`-6px`,appearance:`none`,"&:hover":c,"&:active":l},"&::-ms-thumb":{...s,marginTop:0,"&:hover":c,"&:active":l},"&:focus":{outline:`none`,"&::-webkit-slider-runnable-track":o,"&::-moz-range-track":o,"&::-ms-track":o,"&::-webkit-slider-thumb":u,"&::-moz-range-thumb":u,"&::-ms-thumb":u},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:`0`}}}}),uJ=N.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:`nowrap`,fontFeatureSettings:`tnum`,fontVariantNumeric:`tabular-nums`}),dJ=N(uJ)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:`right`,flexShrink:0})),fJ=N.div(({readOnly:e})=>({display:`flex`,alignItems:`center`,width:`100%`,opacity:e?.5:1})),pJ=({name:e,storyId:t,value:n,onChange:r,min:i=0,max:a=100,step:o=1,onBlur:s,onFocus:c,argType:l})=>{let u=e=>{r(tq(e.target.value))},d=n!==void 0,f=(0,rW.useMemo)(()=>fH(o),[o]),p=!!l?.table?.readonly,m=Ne(e,t);return rW.createElement(fJ,{readOnly:p},rW.createElement(`label`,{htmlFor:m,className:`sb-sr-only`},e),rW.createElement(uJ,null,i),rW.createElement(lJ,{id:m,type:`range`,disabled:p,onChange:u,name:e,min:i,max:a,step:o,onFocus:c,onBlur:s,value:n??i}),rW.createElement(dJ,{numberOFDecimalsPlaces:f,max:a},d?n.toFixed(f):`--`,` / `,a))},mJ=N.label({display:`flex`}),hJ=N.div(({isMaxed:e})=>({marginLeft:`0.75rem`,paddingTop:`0.35rem`,color:e?`red`:void 0})),gJ=({name:e,storyId:t,value:n,onChange:r,onFocus:i,onBlur:a,maxLength:o,argType:s})=>{let c=e=>{r(e.target.value)},l=!!s?.table?.readonly,[u,d]=(0,iW.useState)(!1),f=(0,iW.useCallback)(()=>{r(``),d(!0)},[d]);if(n===void 0)return iW.createElement(VP,{ariaLabel:!1,variant:`outline`,size:`medium`,disabled:l,id:Pe(e,t),onClick:f},`Set string`);let p=typeof n==`string`;return iW.createElement(mJ,null,iW.createElement(KI.Textarea,{id:Ne(e,t),maxLength:o,onChange:c,disabled:l,size:`flex`,placeholder:`Edit string...`,autoFocus:u,valid:p?void 0:`error`,name:e,value:p?n:``,onFocus:i,onBlur:a}),o&&iW.createElement(hJ,{isMaxed:n?.length===o},n?.length??0,` / `,o))},_J=N(KI.Input)({padding:10}),vJ=({onChange:e,name:t,storyId:n,accept:r=`image/*`,value:i,argType:a})=>{let o=(0,aW.useRef)(null),s=a?.control?.readOnly;function c(t){t.target.files&&(e(Array.from(t.target.files).map(e=>URL.createObjectURL(e))),pH(i||[]))}(0,aW.useEffect)(()=>{i==null&&o.current&&(o.current.value=``)},[i,t]);let l=Ne(t,n);return aW.createElement(aW.Fragment,null,aW.createElement(`label`,{htmlFor:l,className:`sb-sr-only`},t),aW.createElement(_J,{ref:o,id:l,type:`file`,name:t,multiple:!0,disabled:s,onChange:c,accept:r,size:`flex`}))},yJ=(0,KU.lazy)(()=>a(()=>import(`./Color-KMSTOMOX-3kWYdPbk.js`),__vite__mapDeps([11,1,2,0,3]),import.meta.url)),bJ=e=>KU.createElement(KU.Suspense,{fallback:KU.createElement(`div`,null)},KU.createElement(yJ,{...e})),xJ={array:cJ,object:cJ,boolean:KK,color:bJ,date:$K,number:rq,check:Eq,"inline-check":Eq,radio:Eq,"inline-radio":Eq,select:Eq,"multi-select":Eq,range:pJ,text:gJ,file:vJ},SJ=()=>GU.createElement(GU.Fragment,null,`-`),CJ=({row:e,arg:t,updateArgs:n,isHovered:r,storyId:i})=>{let{key:a,control:o}=e,[s,c]=(0,GU.useState)(!1),[l,u]=(0,GU.useState)({value:t});(0,GU.useEffect)(()=>{s||u({value:t})},[s,t]);let d=(0,GU.useCallback)(e=>(u({value:e}),n({[a]:e}),e),[n,a]),f=(0,GU.useCallback)(()=>c(!1),[]),p=(0,GU.useCallback)(()=>c(!0),[]);if(!o||o.disable){let t=o?.disable!==!0&&e?.type?.name!==`function`;return r&&t?GU.createElement(MA,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},`Setup controls`):GU.createElement(SJ,null)}let m={name:a,storyId:i,argType:e,value:l.value,onChange:d,onBlur:f,onFocus:p},h=xJ[o.type]||SJ;return GU.createElement(h,{...m,...o,controlType:o.type})},wJ=N.table(({theme:e})=>({"&&":{borderCollapse:`collapse`,borderSpacing:0,border:`none`,tr:{border:`none !important`,background:`none`},"td, th":{padding:0,border:`none`,width:`auto!important`},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:`none`,border:`none`},code:Hk({theme:e}),div:{span:{fontWeight:`bold`}},"& code":{margin:0,display:`inline-block`,fontSize:e.typography.size.s1}}})),TJ=({tags:e})=>{let t=(e.params||[]).filter(e=>e.description),n=t.length!==0,r=e.deprecated!=null,i=e.returns!=null&&e.returns.description!=null;return!n&&!i&&!r?null:oW.createElement(oW.Fragment,null,oW.createElement(wJ,null,oW.createElement(`tbody`,null,r&&oW.createElement(`tr`,{key:`deprecated`},oW.createElement(`td`,{colSpan:2},oW.createElement(`strong`,null,`Deprecated`),`: `,e.deprecated?.toString())),n&&t.map(e=>oW.createElement(`tr`,{key:e.name},oW.createElement(`td`,null,oW.createElement(`code`,null,e.name)),oW.createElement(`td`,null,e.description))),i&&oW.createElement(`tr`,{key:`returns`},oW.createElement(`td`,null,oW.createElement(`code`,null,`Returns`)),oW.createElement(`td`,null,e.returns?.description)))))},EJ=8,DJ=N.div(({isExpanded:e})=>({display:`flex`,flexDirection:e?`column`:`row`,flexWrap:`wrap`,alignItems:`flex-start`,marginBottom:`-4px`,minWidth:100})),OJ=N.details({display:`flex`,flexDirection:`column`,summary:{order:2},"summary::-webkit-details-marker":{display:`none`},"summary::marker":{content:`none`}}),kJ=N.div({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,alignItems:`flex-start`}),AJ=N.span(Hk,({theme:e,simple:t=!1})=>({flex:`0 0 auto`,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:`break-word`,whiteSpace:`normal`,maxWidth:`100%`,margin:0,marginRight:`4px`,marginBottom:`4px`,paddingTop:`2px`,paddingBottom:`2px`,lineHeight:`13px`,...t&&{background:`transparent`,border:`0 none`,paddingLeft:0}})),jJ=N.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:`pointer`,lineHeight:`normal`,margin:`0 0 4px`,padding:`1px 6px`,background:`none`,border:`none`})),MJ=N.button(Hk,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:`nowrap`,display:`flex`,alignItems:`center`,cursor:`pointer`,"&:hover":{border:e.base===`light`?`1px solid hsl(0 0 0 / 0.15)`:`1px solid hsl(0 0 100 / 0.15)`},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:`2px`}})),NJ=N.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:`content-box`,"& code":{padding:`0 !important`}})),PJ=N(tt)({marginLeft:4}),FJ=N(nt)({marginLeft:4}),IJ=()=>sW.createElement(`span`,null,`-`),LJ=({text:e,simple:t})=>sW.createElement(AJ,{simple:t},e),RJ=e=>e?mH(e.split(`|`).map(e=>e.trim())):[e],zJ=e=>e.slice(0,EJ).map(e=>sW.createElement(LJ,{key:e,text:e===``?`""`:e})),BJ=e=>e.slice(EJ).map(e=>sW.createElement(LJ,{key:e,text:e===``?`""`:e})),VJ=({value:e,initialExpandedArgs:t})=>{let{summary:n,detail:r}=e,[i,a]=(0,sW.useState)(!1),[o,s]=(0,sW.useState)(t||!1);if(n==null)return null;let c=typeof n.toString==`function`?n.toString():n;if(r==null){if(/[(){}[\]<>]/.test(c))return sW.createElement(LJ,{text:c});let e=RJ(c),t=e.length;return t>EJ?sW.createElement(DJ,{isExpanded:o},zJ(e),sW.createElement(OJ,{open:o,onToggle:e=>s(e.currentTarget.open)},sW.createElement(kJ,null,BJ(e)),sW.createElement(jJ,{role:`button`},o?`Show less...`:`Show ${t-EJ} more...`))):sW.createElement(DJ,null,zJ(e))}return sW.createElement(cR,{ariaLabel:`Arg value details`,placement:`bottom`,visible:i,onVisibleChange:e=>{a(e)},hasCloseButton:!0,popover:sW.createElement(NJ,null,sW.createElement($k,{language:`jsx`,format:!1},r))},sW.createElement(MJ,{className:`sbdocs-expandable`},sW.createElement(`span`,null,c),i?sW.createElement(PJ,null):sW.createElement(FJ,null)))},HJ=({value:e,initialExpandedArgs:t})=>e==null?sW.createElement(IJ,null):sW.createElement(VJ,{value:e,initialExpandedArgs:t}),UJ=N.span({fontWeight:`bold`}),WJ=N.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:`help`})),GJ=N.div(({theme:e})=>({"&&":{p:{margin:`0 0 10px 0`},a:{color:e.color.secondary}},code:{...Hk({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:`inline-block`},"& pre > code":{whiteSpace:`pre-wrap`}})),KJ=N.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?fV(.1,e.color.defaultText):fV(.2,e.color.defaultText),marginTop:t?4:0})),qJ=N.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?fV(.1,e.color.defaultText):fV(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),JJ=N.td(({expandable:e})=>({paddingLeft:e?`40px !important`:`20px !important`})),YJ=e=>e&&{summary:typeof e==`string`?e:e.name},XJ=e=>{let[t,n]=(0,UU.useState)(!1),{row:r,updateArgs:i,compact:a,expandable:o,initialExpandedArgs:s}=e,{name:c,description:l}=r,u=r.table||{},d=u.type||YJ(r.type),f=u.defaultValue||r.defaultValue,p=r.type?.required,m=l!=null&&l!==``;return UU.createElement(`tr`,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},UU.createElement(JJ,{expandable:o??!1},UU.createElement(UJ,null,c),p?UU.createElement(WJ,{title:`Required`},`*`):null),a?null:UU.createElement(`td`,null,m&&UU.createElement(GJ,null,UU.createElement(HK,null,l)),u.jsDocTags==null?UU.createElement(KJ,{hasDescription:m},UU.createElement(HJ,{value:d,initialExpandedArgs:s})):UU.createElement(UU.Fragment,null,UU.createElement(qJ,{hasDescription:m},UU.createElement(HJ,{value:d,initialExpandedArgs:s})),UU.createElement(TJ,{tags:u.jsDocTags}))),a?null:UU.createElement(`td`,null,UU.createElement(HJ,{value:f,initialExpandedArgs:s})),i?UU.createElement(`td`,null,UU.createElement(CJ,{...e,isHovered:t})):null)},ZJ=N.div(({inAddonPanel:e,theme:t})=>({height:e?`100%`:`auto`,display:`flex`,border:e?`none`:`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:t.background.content})),QJ=N.div(({theme:e})=>({display:`flex`,fontSize:e.typography.size.s2-1,gap:25})),$J=({inAddonPanel:e})=>{let[t,n]=(0,cW.useState)(!0);return(0,cW.useEffect)(()=>{let e=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(e)},[]),t?null:cW.createElement(ZJ,{inAddonPanel:e},cW.createElement(qR,{title:e?`Interactive story playground`:`Args table with interactive controls couldn't be auto-generated`,description:cW.createElement(cW.Fragment,null,`Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.`),footer:cW.createElement(QJ,null,e&&cW.createElement(cW.Fragment,null,cW.createElement(MA,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},cW.createElement(He,null),` Read docs`)),!e&&cW.createElement(MA,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},cW.createElement(He,null),` Learn how to set that up`))}))},eY=N($e)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?fV(.25,e.color.defaultText):fV(.3,e.color.defaultText),border:`none`,display:`inline-block`})),tY=N(et)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?fV(.25,e.color.defaultText):fV(.3,e.color.defaultText),border:`none`,display:`inline-block`})),nY=N.span(({theme:e})=>({display:`flex`,lineHeight:`20px`,alignItems:`center`})),rY=N.td(({theme:e})=>({position:`relative`,letterSpacing:`0.35em`,textTransform:`uppercase`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base===`light`?fV(.4,e.color.defaultText):fV(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),iY=N.td(({theme:e})=>({position:`relative`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),aY=N.td({position:`relative`}),oY=N.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${lV(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:`row-resize`}})),sY=N.button({background:`none`,border:`none`,padding:`0`,font:`inherit`,position:`absolute`,top:0,bottom:0,left:0,right:0,height:`100%`,width:`100%`,color:`transparent`,cursor:`row-resize !important`}),cY=({level:e=`section`,label:t,children:n,initialExpanded:r=!0,colSpan:i=3})=>{let[a,o]=(0,lW.useState)(r),s=e===`subsection`?iY:rY,c=n?.length||0,l=e===`subsection`?`${c} item${c===1?``:`s`}`:``,u=`${a?`Hide`:`Show`} ${e===`subsection`?c:t} item${c===1?``:`s`}`;return lW.createElement(lW.Fragment,null,lW.createElement(oY,{title:u},lW.createElement(s,{colSpan:1},lW.createElement(sY,{onClick:e=>o(!a),tabIndex:0},u),lW.createElement(nY,null,a?lW.createElement(eY,null):lW.createElement(tY,null),t)),lW.createElement(aY,{colSpan:i-1},lW.createElement(sY,{onClick:e=>o(!a),tabIndex:-1,style:{outline:`none`}},u),a?null:l)),a?n:null)},lY=N.div(({theme:e})=>({width:`100%`,borderSpacing:0,color:e.color.defaultText})),uY=N.div(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),dY=N.div(({position:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,gap:5,padding:`10px 15px`,alignItems:`flex-start`};switch(e){case`first`:return{...n,width:`25%`,paddingLeft:20};case`second`:return{...n,width:`35%`};case`third`:return{...n,width:`15%`};case`last`:return{...n,width:`25%`,paddingRight:20}}}),fY=N.div(({theme:e,width:t,height:n})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||`100%`,height:n||16,borderRadius:3})),pY=()=>X.createElement(lY,null,X.createElement(uY,null,X.createElement(dY,{position:`first`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`second`},X.createElement(fY,{width:`30%`})),X.createElement(dY,{position:`third`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`last`},X.createElement(fY,{width:`60%`}))),X.createElement(uY,null,X.createElement(dY,{position:`first`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`second`},X.createElement(fY,{width:`80%`}),X.createElement(fY,{width:`30%`})),X.createElement(dY,{position:`third`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`last`},X.createElement(fY,{width:`60%`}))),X.createElement(uY,null,X.createElement(dY,{position:`first`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`second`},X.createElement(fY,{width:`80%`}),X.createElement(fY,{width:`30%`})),X.createElement(dY,{position:`third`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`last`},X.createElement(fY,{width:`60%`}))),X.createElement(uY,null,X.createElement(dY,{position:`first`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`second`},X.createElement(fY,{width:`80%`}),X.createElement(fY,{width:`30%`})),X.createElement(dY,{position:`third`},X.createElement(fY,{width:`60%`})),X.createElement(dY,{position:`last`},X.createElement(fY,{width:`60%`})))),mY=N.table(({theme:e,compact:t,inAddonPanel:n,inTabPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:`none`,verticalAlign:`top`,textOverflow:`ellipsis`},fontSize:e.typography.size.s2-1,lineHeight:`19px`,textAlign:`left`,width:`100%`,marginTop:n?0:25,marginBottom:n?0:40,"thead th:first-of-type, td:first-of-type":{width:`25%`},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:`35%`}},"td:nth-of-type(3)":{...t?null:{width:`15%`}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:`25%`}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:`10px`,paddingBottom:`10px`,"&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:n||r?0:1,paddingInline:r?3:0,tbody:{...n?null:{filter:e.base===`light`?`drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))`:`drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))`},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...n?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}},"@media (forced-colors: active)":{tbody:{filter:`none`,"> tr > *":{borderColor:`CanvasText`}}}}})),hY=N.div({position:`relative`}),gY=N.div({position:`absolute`,right:22,top:10}),_Y=N(VP)({margin:`-4px -12px -4px 0`}),vY={alpha:(e,t)=>(e.name??``).localeCompare(t.name??``),requiredFirst:(e,t)=>!!t.type?.required-+!!e.type?.required||(e.name??``).localeCompare(t.name??``),none:null},yY=(e,t)=>{let n={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return n;Object.entries(e).forEach(([e,t])=>{let{category:r,subcategory:i}=t?.table||{};if(r){let a=n.sections[r]||{ungrouped:[],subsections:{}};if(!i)a.ungrouped.push({key:e,...t});else{let n=a.subsections[i]||[];n.push({key:e,...t}),a.subsections[i]=n}n.sections[r]=a}else if(i){let r=n.ungroupedSubsections[i]||[];r.push({key:e,...t}),n.ungroupedSubsections[i]=r}else n.ungrouped.push({key:e,...t})});let r=vY[t],i=e=>r?Object.keys(e).reduce((t,n)=>({...t,[n]:e[n].sort(r)}),{}):e;return{ungrouped:r?n.ungrouped.sort(r):n.ungrouped,ungroupedSubsections:i(n.ungroupedSubsections),sections:Object.keys(n.sections).reduce((e,t)=>({...e,[t]:{ungrouped:r?n.sections[t].ungrouped.sort(r):n.sections[t].ungrouped,subsections:i(n.sections[t].subsections)}}),{})}},bY=(e,t,n)=>{try{return ef(e,t,n)}catch(e){return tG.warn(e.message),!1}},xY=e=>{let{updateArgs:t,resetArgs:n,compact:r,inAddonPanel:i,inTabPanel:a,initialExpandedArgs:o,sort:s=`none`,isLoading:c,storyId:l}=e;if(`error`in e){let{error:t}=e;return J.createElement(mV,null,t,`\xA0`,J.createElement(MA,{href:`http://storybook.js.org/docs/?ref=ui`,target:`_blank`,withArrow:!0},J.createElement(He,null),` Read the docs`))}if(c)return J.createElement(pY,null);let{rows:u,args:d,globals:f}=`rows`in e?e:{rows:void 0,args:void 0,globals:void 0},p=yY(jV(u||{},e=>!e?.table?.disable&&bY(e,d||{},f||{})),s),m=p.ungrouped.length===0,h=Object.entries(p.sections).length===0,g=Object.entries(p.ungroupedSubsections).length===0;if(m&&h&&g)return J.createElement($J,{inAddonPanel:i});let _=1;t&&(_+=1),r||(_+=2);let v=Object.keys(p.sections).length>0,y={updateArgs:t,compact:r,inAddonPanel:i,initialExpandedArgs:o,storyId:l};return J.createElement(Gk,null,J.createElement(hY,null,t&&!c&&n&&J.createElement(gY,null,J.createElement(_Y,{variant:`ghost`,padding:`small`,onClick:()=>n(),ariaLabel:`Reset controls`},J.createElement(at,null))),J.createElement(mY,{compact:r,inAddonPanel:i,inTabPanel:a,className:`docblock-argstable sb-unstyled`},J.createElement(`thead`,{className:`docblock-argstable-head`},J.createElement(`tr`,null,J.createElement(`th`,null,J.createElement(`span`,null,`Name`)),r?null:J.createElement(`th`,null,J.createElement(`span`,null,`Description`)),r?null:J.createElement(`th`,null,J.createElement(`span`,null,`Default`)),t?J.createElement(`th`,null,J.createElement(`span`,null,`Control`)):null)),J.createElement(`tbody`,{className:`docblock-argstable-body`},p.ungrouped.map(e=>J.createElement(XJ,{key:e.key,row:e,arg:d&&d[e.key],...y})),Object.entries(p.ungroupedSubsections).map(([e,t])=>J.createElement(cY,{key:e,label:e,level:`subsection`,colSpan:_},t.map(e=>J.createElement(XJ,{key:e.key,row:e,arg:d&&d[e.key],expandable:v,...y})))),Object.entries(p.sections).map(([e,t])=>J.createElement(cY,{key:e,label:e,level:`section`,colSpan:_},t.ungrouped.map(e=>J.createElement(XJ,{key:e.key,row:e,arg:d&&d[e.key],...y})),Object.entries(t.subsections).map(([e,t])=>J.createElement(cY,{key:e,label:e,level:`subsection`,colSpan:_},t.map(e=>J.createElement(XJ,{key:e.key,row:e,arg:d&&d[e.key],expandable:v,...y}))))))))))},SY=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,CY=600,wY=N.h1(({theme:e})=>({...Uk({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:`32px`,[`@media (min-width: ${CY}px)`]:{fontSize:e.typography.size.l1,lineHeight:`36px`,marginBottom:`16px`}})),TY=N.h2(({theme:e})=>({...Uk({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:`20px`,borderBottom:`none`,marginBottom:15,[`@media (min-width: ${CY}px)`]:{fontSize:e.typography.size.m1,lineHeight:`28px`,marginBottom:24},color:fV(.25,e.color.defaultText)})),EY=N.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`},n={margin:`20px 0 8px`,padding:0,cursor:`text`,position:`relative`,color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& code":{fontSize:`inherit`}},r={lineHeight:1,margin:`0 2px`,padding:`3px 5px`,whiteSpace:`nowrap`,borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base===`light`?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base===`light`?fV(.1,e.color.defaultText):fV(.3,e.color.defaultText),backgroundColor:e.base===`light`?e.color.lighter:e.color.border};return{maxWidth:1e3,width:`100%`,minWidth:0,[SY(`a`)]:{...t,fontSize:`inherit`,lineHeight:`24px`,color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"&.absent":{color:`#cc0000`},"&.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`}},[SY(`blockquote`)]:{...t,margin:`16px 0`,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[SY(`div`)]:t,[SY(`dl`)]:{...t,margin:`16px 0`,padding:0,"& dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,padding:0,margin:`16px 0 4px`},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:`0 0 16px`,padding:`0 15px`},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[SY(`h1`)]:{...t,...n,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[SY(`h2`)]:{...t,...n,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[SY(`h3`)]:{...t,...n,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[SY(`h4`)]:{...t,...n,fontSize:`${e.typography.size.s3}px`},[SY(`h5`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`},[SY(`h6`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[SY(`hr`)]:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[SY(`img`)]:{maxWidth:`100%`},[SY(`li`)]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":r},[SY(`ol`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[SY(`p`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":r},[SY(`pre`)]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,lineHeight:`18px`,padding:`11px 1rem`,whiteSpace:`pre-wrap`,color:`inherit`,borderRadius:3,margin:`1rem 0`,"&:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`,code:{color:`inherit`,fontSize:`inherit`}},"& code":{whiteSpace:`pre`},"& code, & tt":{border:`none`}},[SY(`span`)]:{...t,"&.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"&.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"&.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"&.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"&.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}}},[SY(`table`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base===`dark`?e.color.darker:e.color.lighter},"& tr th":{fontWeight:`bold`,color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:`6px 13px`},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:`6px 13px`},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[SY(`ul`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:`disc`}}}),DY=N.div(({theme:e})=>({background:e.background.content,display:`flex`,flexDirection:`row-reverse`,justifyContent:`center`,padding:`4rem 20px`,minHeight:`100vh`,boxSizing:`border-box`,gap:`3rem`,[`@media (min-width: ${CY}px)`]:{}})),OY=({children:e,toc:t})=>uW.createElement(DY,{className:`sbdocs sbdocs-wrapper`},t,uW.createElement(EY,{className:`sbdocs sbdocs-content`},e)),{logger:kY}=__STORYBOOK_MODULE_CLIENT_LOGGER__,AY=typeof document<`u`?dW.useLayoutEffect:()=>{},jY={prefix:String(Math.round(Math.random()*1e10)),current:0},MY=pW.createContext(jY),NY=pW.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,PY=new WeakMap,FY=typeof pW.useId==`function`?_H:gH,IY=!!(typeof window<`u`&&window.document&&window.document.createElement),LY=new Map,typeof FinalizationRegistry<`u`&&(RY=new FinalizationRegistry(e=>{LY.delete(e)})),zY=null,BY=kH(function(){return OH(/^Mac/i)}),VY=kH(function(){return OH(/^iPad/i)||BY()&&navigator.maxTouchPoints>1}),HY=kH(function(){return DH(/AppleWebKit/i)&&!UY()}),UY=kH(function(){return DH(/Chrome/i)}),WY=kH(function(){return DH(/Firefox/i)}),(0,mW.createContext)({isNative:!0,open:MH,useHref:e=>e}),AH.isOpening=!1,GY=new Map,KY=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,NH):NH()),hW.useInsertionEffect,typeof document<`u`&&window.visualViewport,typeof Element<`u`&&`checkVisibility`in Element.prototype,qY=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],qY.join(`:not([hidden]),`)+``,qY.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),qY.join(`:not([hidden]):not([tabindex="-1"]),`),typeof document<`u`&&(gW.useInsertionEffect??gW.useLayoutEffect),globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=(0,_W.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName=`DocsContext`),JY=globalThis?globalThis.__DOCS_CONTEXT__:(0,_W.createContext)(null),{InvalidBlockOfPropError:YY}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,XY=Symbol(`mdxWrappedBlock`),ZY=bW.createContext(null),QY=(e,t)=>{let n=r=>{let i=bW.useContext(ZY),a=Te()[e];if(i?.has(e)||a===n)return bW.createElement(t,{...r});if(a){let t=new Set(i??[]);return t.add(e),bW.createElement(ZY.Provider,{value:t},bW.createElement(a,{...r}))}return bW.createElement(t,{...r})};return n.displayName=e,n[XY]=!0,n},$Y=(e,t)=>{let{of:n,meta:r}=e;if(`of`in e&&n===void 0)throw new YY;return r&&t.referenceMeta(r,!1),t.resolveOf(n||`story`,[`story`]).story.id},eX=(e,t,n)=>{let{parameters:r={}}=t||{},{docs:i={}}=r,a=i.story||{};return i.disable?null:e.inline??a.inline??!1?{story:t,inline:!0,height:e.height??a.height,autoplay:e.autoplay??a.autoplay??!1,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:n.renderStoryToElement}:{story:t,inline:!1,height:e.height??a.height??a.iframeHeight??`100px`,primary:!!e.__primary}},tX=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=(0,vW.useContext)(JY),n=PH($Y(e,t),t);if(!n)return vW.createElement(pX,null);let r=eX(e,n,t);return r?vW.createElement(fX,{...r}):null},nX=QY(`Story`,tX),rX=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,border:`1px solid ${e.appBorderColor}`}),iX=(e,t={})=>{let[n,r]=(globalThis.PREVIEW_URL||`iframe.html`).split(`?`),i=new URLSearchParams(r||``);return Object.entries(t).forEach(([e,t])=>{i.set(e,t)}),i.set(`id`,e),`${n}?${i.toString()}`},{window:aX}=globalThis,oX=class extends SW.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=aX.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:`top left`}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:n,allowFullScreen:r,scale:i,...a}=this.props;return SW.createElement(`iframe`,{id:e,title:t,src:n,...r?{allow:`fullscreen`}:{},loading:`lazy`,...a})}},sX=(0,CW.createContext)({scale:1}),cX=({story:e,primary:t})=>`story--${e.id}${t?`--primary`:``}`,lX=e=>{let t=(0,xW.useRef)(),[n,r]=(0,xW.useState)(!0),[i,a]=(0,xW.useState)(),{story:o,height:s,autoplay:c,forceInitialArgs:l,renderStoryToElement:u}=e;return(0,xW.useEffect)(()=>{if(!(o&&t.current))return()=>{};let e=t.current,n=u(o,e,{showMain:()=>{},showError:({title:e,description:t})=>a(Error(`${e} - ${t}`)),showException:e=>a(e)},{autoplay:c,forceInitialArgs:l});return r(!1),()=>{Promise.resolve().then(()=>n())}},[c,u,o]),i?xW.createElement(`pre`,null,xW.createElement(oI,{error:i})):xW.createElement(xW.Fragment,null,s?xW.createElement(`style`,null,`#${cX(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,n&&xW.createElement(pX,null),xW.createElement(`div`,{ref:t,id:`${cX(e)}-inner`,"data-name":o.name}))},uX=({story:e,height:t=`500px`})=>xW.createElement(`div`,{style:{width:`100%`,height:t}},xW.createElement(sX.Consumer,null,({scale:t})=>xW.createElement(oX,{key:`iframe`,id:`iframe--${e.id}`,title:e.name,src:iX(e.id,{viewMode:`story`}),allowFullScreen:!0,scale:t,style:{width:`100%`,height:`100%`,border:`0 none`}}))),dX=N.strong(({theme:e})=>({color:e.color.orange})),fX=e=>{let{inline:t,story:n}=e;return t&&!e.autoplay&&n.usesMount?xW.createElement(dX,null,`This story mounts inside of play. Set`,` `,xW.createElement(`a`,{href:`https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay`},`autoplay`),` `,`to true to view this story.`):xW.createElement(`div`,{id:cX(e),className:`sb-story sb-unstyled`,"data-story-block":`true`},t?xW.createElement(lX,{...e}):xW.createElement(uX,{...e}))},pX=()=>xW.createElement(Kz,null),mX=N(uz)({position:`absolute`,left:0,right:0,top:0,transition:`transform .2s linear`,display:`flex`,alignItems:`center`}),hX=N.div({display:`flex`,alignItems:`center`,gap:4}),gX=N.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:`0 7px`,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),_X=({isLoading:e,storyId:t,zoom:n,resetZoom:r,onReloadStory:i,...a})=>wW.createElement(mX,{innerStyle:{gap:4,paddingInline:7,justifyContent:`space-between`},...a},wW.createElement(hX,{key:`left`},e?[1,2,3].map(e=>wW.createElement(gX,{key:e})):wW.createElement(wW.Fragment,null,i&&wW.createElement(VP,{padding:`small`,variant:`ghost`,key:`reload`,onClick:i,ariaLabel:`Reload story`},wW.createElement(ot,null)),wW.createElement(VP,{padding:`small`,variant:`ghost`,key:`zoomin`,onClick:e=>{e.preventDefault(),n(.8)},ariaLabel:`Zoom in`},wW.createElement(Re,null)),wW.createElement(VP,{padding:`small`,variant:`ghost`,key:`zoomout`,onClick:e=>{e.preventDefault(),n(1.25)},ariaLabel:`Zoom out`},wW.createElement(ze,null)),wW.createElement(VP,{padding:`small`,variant:`ghost`,key:`zoomreset`,onClick:e=>{e.preventDefault(),r()},ariaLabel:`Reset zoom`},wW.createElement(Be,null)))),e?wW.createElement(hX,{key:`right`},wW.createElement(gX,null)):t&&wW.createElement(hX,{key:`right`},wW.createElement(VP,{asChild:!0,padding:`small`,variant:`ghost`,key:`opener`,ariaLabel:`Open canvas in new tab`},wW.createElement(`a`,{href:iX(t),target:`_blank`,rel:`noopener noreferrer`},wW.createElement(Qe,null))))),vX=N.div(({isColumn:e,columns:t,layout:n})=>({display:e||!t?`block`:`flex`,position:`relative`,flexWrap:`wrap`,overflow:`auto`,flexDirection:e?`column`:`row`,"& .innerZoomElementWrapper > *":e?{width:n===`fullscreen`?`100%`:`calc(100% - 20px)`,display:`block`}:{maxWidth:n===`fullscreen`?`100%`:`calc(100% - 20px)`,display:`inline-block`}}),({layout:e=`padded`,inline:t})=>e===`centered`||e===`padded`?{padding:t?`32px 22px`:`0px`,"& .innerZoomElementWrapper > *":{width:`auto`,border:`8px solid transparent!important`}}:{},({layout:e=`padded`,inline:t})=>e===`centered`&&t?{display:`flex`,justifyContent:`center`,justifyItems:`center`,alignContent:`center`,alignItems:`center`}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),yX=N(jR)({marginTop:-40,marginBottom:40}),bX=N(yV)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:`none`,background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:cV(.05,e.background.content),color:e.color.lightest,button:{background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:cV(.05,e.background.content)}})),xX=N.div(({theme:e})=>({position:`relative`,overflow:`hidden`,margin:`25px 0 40px`,...rX(e),"h3 + &":{marginTop:`16px`}}),({withToolbar:e})=>e&&{paddingTop:40}),SX=N(_X)({position:`absolute`,top:0,left:0,right:0,height:40}),CX=2e3,wX=({isLoading:e,isColumn:t,columns:n,children:r,withSource:i,withToolbar:o=!1,isExpanded:s=!1,additionalActions:c,className:l,layout:u=`padded`,inline:d=!1,onReloadStory:f,...p})=>{let[m,h]=(0,Z.useState)(s),[g,_]=(0,Z.useState)(null),[v,y]=(0,Z.useState)(1),b=(0,Z.useMemo)(()=>c?[...c]:[],[c]),x=SH(),S=[l,`sbdocs`,`sbdocs-preview`,`sb-unstyled`],C=(0,Z.useContext)(JY),w=(0,Z.useCallback)(async e=>{let{createCopyToClipboardFunction:t}=await a(async()=>{let{createCopyToClipboardFunction:e}=await Promise.resolve().then(()=>(Zz(),nb));return{createCopyToClipboardFunction:e}},void 0,import.meta.url);await t()(e)},[]),T=(0,Z.useCallback)(async()=>{try{await w(i?.code??``),_(`Copied!`)}catch(e){kY.error(e),_(`Copy error!`)}globalThis.window.setTimeout(()=>_(null),CX)},[w,i?.code]),E=IH(r),D=!!(i&&i.error),O=!!(i&&!i.error);return Z.createElement(Z.Fragment,null,Z.createElement(xX,{withSource:i,withToolbar:o,...p,className:S.join(` `)},o&&Z.createElement(SX,{isLoading:e,border:!0,zoom:e=>y(v*e),resetZoom:()=>y(1),storyId:!e&&E?$Y(E,C):void 0,onReloadStory:f}),Z.createElement(sX.Provider,{value:{scale:v}},Z.createElement(vX,{isColumn:t||!Array.isArray(r),columns:n,layout:u,inline:d,className:`docs-story`},Z.createElement(XF.Element,{centered:u===`centered`,scale:d?v:1},Array.isArray(r)?r.map((e,t)=>Z.createElement(`div`,{key:t},e)):Z.createElement(`div`,null,r)))),O&&m&&Z.createElement(`div`,{id:x},Z.createElement(bX,{...i,dark:!0,copyable:!1}))),(i||b.length>0)&&Z.createElement(yX,{className:`sbdocs sbdocs-preview-actions`,innerStyle:{paddingInline:0}},D&&Z.createElement(VP,{ariaLabel:!1,disabled:!0,variant:`ghost`,className:`docblock-code-toggle docblock-code-toggle--disabled`},Z.createElement(We,null),` No code available`),O&&Z.createElement(Z.Fragment,null,Z.createElement(WP,{ariaLabel:!1,pressed:m,"aria-expanded":m,"aria-controls":x,onClick:()=>h(!m),variant:`ghost`,className:`docblock-code-toggle${m?` docblock-code-toggle--expanded`:``}`},Z.createElement(We,null),` `,m?`Hide code`:`Show code`),Z.createElement(VP,{ariaLabel:!1,variant:`ghost`,onClick:T},Z.createElement(Ue,null),` `,g??`Copy code`)),b.map(({title:e,className:t,onClick:n,disabled:r},i)=>Z.createElement(VP,{key:i,className:t,onClick:n,disabled:!!r,variant:`ghost`},e))))},N(wX)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}})),TX=N(kz)({height:`fit-content`}),EX=({tabs:e,...t})=>{let n=Object.entries(e);if(n.length===1)return TW.createElement(xY,{...n[0][1],...t});let r=n.map(([e,n],r)=>({id:`prop_table_div_${e}`,title:e,children:()=>{let i=r===0?t:{sort:t.sort};return TW.createElement(xY,{inTabPanel:!0,key:`prop_table_${e}`,...n,...i})}}));return TW.createElement(TX,{tabs:r})},N.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base===`light`?fV(.4,e.color.defaultText):fV(.6,e.color.defaultText)})),N.div({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`}),N.div({display:`flex`,flexDirection:`row`,alignItems:`baseline`,"&:not(:last-child)":{marginBottom:`1rem`}}),N.div(Uk,({theme:e})=>({...rX(e),margin:`25px 0 40px`,padding:`30px 20px`})),N.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),N.div(({theme:e})=>({color:fV(.3,e.color.defaultText)})),N.div({flex:`0 0 30%`,lineHeight:`20px`,marginTop:5}),N.div(({theme:e})=>({flex:1,textAlign:`center`,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:`hidden`,color:fV(.3,e.color.defaultText),"> div":{display:`inline-block`,overflow:`hidden`,maxWidth:`100%`,textOverflow:`ellipsis`},span:{display:`block`,marginTop:2}})),N.div({display:`flex`,flexDirection:`row`}),N.div(({background:e})=>({position:`relative`,flex:1,"&::before":{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,background:e,content:`""`}})),N.div(({theme:e})=>({...rX(e),display:`flex`,flexDirection:`row`,height:50,marginBottom:5,overflow:`hidden`,backgroundColor:`white`,backgroundImage:`repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)`,backgroundClip:`padding-box`})),N.div({display:`flex`,flexDirection:`column`,flex:1,position:`relative`,marginBottom:30}),N.div({flex:1,display:`flex`,flexDirection:`row`}),N.div({display:`flex`,alignItems:`flex-start`}),N.div({flex:`0 0 30%`}),N.div({flex:1}),N.div(({theme:e})=>({display:`flex`,flexDirection:`row`,alignItems:`center`,paddingBottom:20,fontWeight:e.typography.weight.bold,color:fV(.3,e.color.defaultText)})),N.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:`20px`,display:`flex`,flexDirection:`column`})),N.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:`-webkit-box`,overflow:`hidden`,wordBreak:`break-word`,textOverflow:`ellipsis`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`})),N.div(({theme:e})=>({...rX(e),overflow:`hidden`,height:40,width:40,display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`none`,"> img, > svg":{width:20,height:20}})),N.div({display:`inline-flex`,flexDirection:`row`,alignItems:`center`,width:`100%`}),N.div({display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(140px, 1fr))`,gridGap:`8px 16px`,gridAutoFlow:`row dense`,gridAutoRows:50}),{NAVIGATE_URL:DX}=__STORYBOOK_MODULE_CORE_EVENTS__,OX={tocSelector:`.js-toc`,tocElement:null,contentSelector:`.js-toc-content`,contentElement:null,headingSelector:`h1, h2, h3`,ignoreSelector:`.js-toc-ignore`,hasInnerContainers:!1,linkClass:`toc-link`,extraLinkClasses:``,activeLinkClass:`is-active-link`,listClass:`toc-list`,extraListClasses:``,isCollapsedClass:`is-collapsed`,collapsibleClass:`is-collapsible`,listItemClass:`toc-list-item`,activeListItemClass:`is-active-li`,collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:`auto`,scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:`is-position-fixed`,fixedSidebarOffset:`auto`,includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:``,disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30},Q={},PX=Object.prototype.hasOwnProperty,FX={destroy:UH,init:HH,refresh:WH},IX=N.aside(()=>({width:`10rem`,"@media (max-width: 768px)":{display:`none`}})),LX=N.nav(({theme:e})=>({position:`fixed`,bottom:0,top:0,width:`10rem`,paddingTop:`4rem`,paddingBottom:`2rem`,overflowY:`auto`,fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`,"& *":{boxSizing:`border-box`},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:`relative`,listStyleType:`none`,marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:`""`,position:`absolute`,height:`100%`,top:0,left:0,transform:`translateX(calc(-2px - 20px))`,borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:`opacity 0.2s`},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:`none`},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:`none`}})),RX=N.p(({theme:e})=>({fontWeight:600,fontSize:`0.875em`,color:e.color.defaultText,textTransform:`uppercase`,marginBottom:10})),zX=({headingId:e,title:t})=>typeof t==`string`||!t?EW.createElement(RX,{as:`h2`,id:e,className:t?``:`sb-sr-only`},t||`Table of contents`):EW.createElement(`div`,{id:e},t),BX=({title:e,disable:t,headingSelector:n,contentsSelector:r,ignoreSelector:i,unsafeTocbotOptions:a,channel:o,className:s})=>{(0,EW.useEffect)(()=>{if(t)return()=>{};let e={tocSelector:`.toc-wrapper`,contentSelector:r??`.sbdocs-content`,headingSelector:n??`h3`,ignoreSelector:i??`.docs-story *, .skip-toc`,headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:e=>{if(e.preventDefault(),e.currentTarget instanceof HTMLAnchorElement){let[,t]=e.currentTarget.href.split(`#`);t&&o.emit(DX,`#${t}`)}},...a},s=setTimeout(()=>FX.init(e),100);return()=>{clearTimeout(s),FX.destroy()}},[o,t,i,r,n,a]);let c=`table-of-contents`;return EW.createElement(IX,{className:s},t?null:EW.createElement(LX,{"aria-labelledby":c},EW.createElement(zX,{headingId:c,title:e}),EW.createElement(`div`,{className:`toc-wrapper`})))},VX=e=>`anchor--${e}`,HX=({storyId:e,children:t})=>DW.createElement(`div`,{id:VX(e),className:`sb-anchor`},t),{InvalidBlockOfPropError:UX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:WX}=__STORYBOOK_MODULE_PREVIEW_API__,GX=(e,t)=>(0,kW.useContext)(JY).resolveOf(e,t),KX=e=>e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),qX=e=>{if(e)return typeof e==`string`?e.includes(`-`)?KX(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name},JX=e=>{let{of:t}=e;if(`of`in e&&t===void 0)throw new UX;let{argTypes:n,parameters:r,component:i,subcomponents:a}=$H(GX(t||`meta`)),o=r?.docs?.argTypes||{},s=e.include??o.include,c=e.exclude??o.exclude,l=e.sort??o.sort,u=WX(n,s,c);if(!(a&&Object.keys(a||{}).length>0))return OW.createElement(xY,{rows:u,sort:l});let d=qX(i)||`Main`,f=Object.fromEntries(Object.entries(a||{}).map(([e,t])=>[e,{rows:WX(QH(t,r),s,c),sort:l}])),p={[d]:{rows:u,sort:l},...f};return OW.createElement(EX,{tabs:p,sort:l})},YX=QY(`ArgTypes`,JX),{FORCE_REMOUNT:XX}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:ZX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:QX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,$X=Object.create,eZ=Object.defineProperty,tZ=Object.getOwnPropertyDescriptor,nZ=Object.getOwnPropertyNames,rZ=Object.getPrototypeOf,iZ=Object.prototype.hasOwnProperty,$=(e,t)=>function(){return t||(0,e[nZ(e)[0]])((t={exports:{}}).exports,t),t.exports},aZ=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of nZ(t))!iZ.call(e,i)&&i!==n&&eZ(e,i,{get:()=>t[i],enumerable:!(r=tZ(t,i))||r.enumerable});return e},oZ=(e,t,n)=>(n=e==null?{}:$X(rZ(e)),aZ(t||!e||!e.__esModule?eZ(n,`default`,{value:e,enumerable:!0}):n,e)),sZ=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],cZ=[`detail`],lZ=$({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),uZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),dZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),fZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),pZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),mZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),hZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),gZ=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),_Z=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),vZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),yZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),bZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),xZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),SZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),CZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),wZ=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=CZ();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),TZ=$({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),EZ=$({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=TZ();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),DZ=$({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}}),OZ=$({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),kZ=$({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=OZ();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),AZ=$({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}}),jZ=$({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=lZ().getPrototypeOf||null}}),MZ=$({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}}}),NZ=$({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=MZ();t.exports=Function.prototype.bind||n}}),PZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),FZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),IZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}}),LZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=NZ(),r=FZ(),i=PZ();t.exports=IZ()||n.call(i,r)}}),RZ=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=NZ(),r=hZ(),i=PZ(),a=LZ();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),zZ=$({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=RZ(),r=EZ(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?(function(e){return s(e==null?e:o(e))}):!1}}),BZ=$({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=AZ(),r=jZ(),i=zZ();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),VZ=$({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=NZ().call(n,r)}}),HZ=$({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=lZ(),i=uZ(),a=dZ(),o=fZ(),s=pZ(),c=mZ(),l=hZ(),u=gZ(),d=_Z(),f=vZ(),p=yZ(),m=bZ(),h=xZ(),g=SZ(),_=wZ(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=EZ(),x=DZ(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=kZ()(),T=BZ(),E=jZ(),D=AZ(),O=FZ(),k=PZ(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){ee=T(T(e)),M[`%Error.prototype%`]=ee}var ee,te=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},N={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},ne=NZ(),re=VZ(),ie=ne.call(k,Array.prototype.concat),ae=ne.call(O,Array.prototype.splice),oe=ne.call(k,String.prototype.replace),se=ne.call(k,String.prototype.slice),ce=ne.call(k,RegExp.prototype.exec),le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,de=function(e){var t=se(e,0,1),n=se(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return oe(e,le,function(e,t,n,i){r[r.length]=n?oe(i,ue,`$1`):t||e}),r},fe=function(e,t){var n=e,r;if(re(N,n)&&(r=N[n],n=`%`+r[0]+`%`),re(M,n)){var i=M[n];if(i===A&&(i=te(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ce(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=de(e),r=n.length>0?n[0]:``,i=fe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ae(n,ie([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=se(p,0,1),h=se(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,re(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=re(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),UZ=$({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=HZ(),r=RZ(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),WZ=$({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=OZ();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),GZ=$({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=UZ(),r=WZ()(),i=VZ(),a=EZ(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),KZ=$({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),qZ=$({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=UZ(),r=GZ(),i=n(`RegExp.prototype.exec`),a=hZ();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),JZ=$({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=UZ(),r=n(`Object.prototype.toString`),i=kZ()(),a=qZ();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),YZ=oZ(GZ()),XZ=oZ(KZ()),ZZ=oZ(JZ()),QZ=typeof global==`object`&&global&&global.Object===Object&&global,$Z=typeof self==`object`&&self&&self.Object===Object&&self,eQ=QZ||$Z||Function(`return this`)(),tQ=eQ.Symbol,nQ=Object.prototype,rQ=nQ.hasOwnProperty,iQ=nQ.toString,aQ=tQ?tQ.toStringTag:void 0,oQ=nU,sQ=Object.prototype.toString,cQ=rU,lQ=`[object Null]`,uQ=`[object Undefined]`,dQ=tQ?tQ.toStringTag:void 0,fQ=iU,pQ=tQ?tQ.prototype:void 0,pQ&&pQ.toString,mQ=aU,hQ=`[object AsyncFunction]`,gQ=`[object Function]`,_Q=`[object GeneratorFunction]`,vQ=`[object Proxy]`,yQ=oU,bQ=eQ[`__core-js_shared__`],xQ=(function(){var e=/[^.]+$/.exec(bQ&&bQ.keys&&bQ.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),SQ=sU,CQ=Function.prototype.toString,wQ=cU,TQ=/[\\^$.*+?()[\]{}|]/g,EQ=/^\[object .+?Constructor\]$/,DQ=Function.prototype,OQ=Object.prototype,kQ=DQ.toString,AQ=OQ.hasOwnProperty,jQ=RegExp(`^`+kQ.call(AQ).replace(TQ,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),MQ=lU,NQ=uU,PQ=dU,FQ=fU,IQ=PQ(Object,`create`),LQ=pU,RQ=mU,zQ=`__lodash_hash_undefined__`,BQ=Object.prototype.hasOwnProperty,VQ=hU,HQ=Object.prototype.hasOwnProperty,UQ=gU,WQ=`__lodash_hash_undefined__`,GQ=_U,vU.prototype.clear=LQ,vU.prototype.delete=RQ,vU.prototype.get=VQ,vU.prototype.has=UQ,vU.prototype.set=GQ,KQ=vU,qQ=yU,JQ=bU,YQ=Array.prototype.splice,XQ=xU,ZQ=SU,QQ=CU,$Q=wU,TU.prototype.clear=qQ,TU.prototype.delete=XQ,TU.prototype.get=ZQ,TU.prototype.has=QQ,TU.prototype.set=$Q,e$=TU,t$=PQ(eQ,`Map`),n$=EU,r$=DU,i$=OU,a$=kU,o$=AU,s$=jU,c$=MU,NU.prototype.clear=n$,NU.prototype.delete=a$,NU.prototype.get=o$,NU.prototype.has=s$,NU.prototype.set=c$,l$=NU,u$=`Expected a function`,PU.Cache=l$,d$=PU,f$=500,p$=FU,m$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h$=/\\(\\)?/g,p$(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m$,function(e,n,r,i){t.push(r?i.replace(h$,`$1`):n||e)}),t}),g$=tU,_$=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,v$=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return _$.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,YZ.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,XZ.default)(o))return;if((0,ZZ.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:IU(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},y$={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},b$=(e,t={})=>{let n={...y$,...t};return JSON.stringify(IU(e),v$(n),t.space)},x$=(0,MW.createContext)({sources:{}}),S$=`--unknown--`,C$=({children:e,channel:t})=>{let[n,r]=(0,MW.useState)({});return(0,MW.useEffect)(()=>{let e=(e,t=null,n=!1)=>{let{id:i,args:a=void 0,source:o,format:s}=typeof e==`string`?{id:e,source:t,format:n}:e,c=a?LU(a):S$;r(e=>({...e,[i]:{...e[i],[c]:{code:o||``,format:s}}}))};return t.on(y,e),()=>t.off(y,e)},[]),MW.createElement(x$.Provider,{value:{sources:n}},e)},w$={sources:{}},T$=(e,t,n)=>{let{sources:r}=n,i=r?.[e];return i?.[LU(t)]||i?.[`--unknown--`]||{code:``}},E$=({snippet:e,storyContext:t,typeFromProps:n,transformFromProps:r})=>{let i=t.parameters??{},{__isArgsStory:a}=i,o=i.docs?.source||{},s=n||o.type||d.AUTO,c=s===d.DYNAMIC||s===d.AUTO&&e&&a?e:o.originalSource||``,l=r??o.transform,u=l?RU(c,l,t):c;return o.code===void 0?u:o.code},D$=(e,t,n)=>{let{of:r}=e,i=(0,jW.useMemo)(()=>{if(r)return t.resolveOf(r,[`story`]).story;try{return t.storyById()}catch{}},[t,r]),a=i?t.getStoryContext(i):{},o=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,s=i?T$(i.id,o,n):null,c=E$({snippet:s?s.code:``,storyContext:{...a,args:o},typeFromProps:e.type,transformFromProps:e.transform});if(`of`in e&&r===void 0)throw new QX;let l=i?.parameters?.docs?.source||{},u=e.format,d=e.language??l.language??`jsx`,f=e.dark??l.dark??!1;return e.code===void 0&&!i?{error:`Oh no! The source is not available.`}:e.code===void 0?(u=s?.format??!0,{code:c,format:u,language:d,dark:f}):{code:e.code,format:u,language:d,dark:f}},O$=e=>{let t=(0,jW.useContext)(x$),n=D$(e,(0,jW.useContext)(JY),t);return jW.createElement(yV,{...n})},k$=e=>{let t=D$(e,(0,jW.useContext)(JY),w$);return jW.createElement(yV,{...t})},A$=e=>e.code===void 0?jW.createElement(O$,{...e}):jW.createElement(k$,{...e}),QY(`Source`,A$),j$=e=>{let t=(0,AW.useContext)(JY),n=(0,AW.useContext)(x$),{of:r,source:i}=e;if(`of`in e&&r===void 0)throw new ZX;let{story:a}=GX(r||`story`,[`story`]),o=D$({...i,...r&&{of:r}},t,n),s=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??`padded`,c=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,l=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,u=e.sourceState??a.parameters.docs?.canvas?.sourceState??`hidden`,d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1,p=(0,AW.useCallback)(()=>{t.channel.emit(XX,{storyId:a.id})},[t.channel,a.id]);return AW.createElement(wX,{withSource:u===`none`?void 0:o,isExpanded:u===`shown`,withToolbar:c,additionalActions:l,className:d,layout:s,inline:f,onReloadStory:f?p:void 0},AW.createElement(nX,{of:r||a.moduleExport,meta:e.meta,...e.story}))},M$=QY(`Canvas`,j$),{filterArgTypes:N$}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:P$,STORY_ARGS_UPDATED:F$,UPDATE_STORY_ARGS:I$}=__STORYBOOK_MODULE_CORE_EVENTS__,L$=(e,t)=>{let n=R$(e,t);if(!n)throw Error(`No result when story was defined`);return n},R$=(e,t)=>{let n=e?t.getStoryContext(e):{args:{}},{id:r}=e||{id:`none`},[i,a]=(0,FW.useState)(n.args);(0,FW.useEffect)(()=>{let e=e=>{e.storyId===r&&a(e.args)};return t.channel.on(F$,e),()=>t.channel.off(F$,e)},[r,t.channel]);let o=(0,FW.useCallback)(e=>t.channel.emit(I$,{storyId:r,updatedArgs:e}),[r,t.channel]),s=(0,FW.useCallback)(e=>t.channel.emit(P$,{storyId:r,argNames:e}),[r,t.channel]);return e&&[i,o,s]},{GLOBALS_UPDATED:z$}=__STORYBOOK_MODULE_CORE_EVENTS__,B$=(e,t)=>{let[n,r]=(0,IW.useState)(t.getStoryContext(e).globals);return(0,IW.useEffect)(()=>{let e=e=>{r(e.globals)};return t.channel.on(z$,e),()=>t.channel.off(z$,e)},[t.channel]),[n]},{Tag:V$}=__STORYBOOK_MODULE_PREVIEW_API__,H$=()=>{let e=(0,LW.useContext)(JY),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(e=>e.tags.includes(V$.AUTODOCS))},U$=e=>{let{of:t}=e,n=(0,PW.useContext)(JY),r=H$(),i=t?n.resolveOf(t,[`story`]).story:r;if(!i)return null;let{parameters:a,argTypes:o,component:s,subcomponents:c}=i,l=a.docs?.controls||{},u=e.include??l.include,d=e.exclude??l.exclude,f=e.sort??l.sort,[p,m,h]=L$(i,n),[g]=B$(i,n),_=N$(o,u,d);if(!(c&&Object.keys(c||{}).length>0))return Object.keys(_).length>0||Object.keys(p).length>0?PW.createElement(xY,{storyId:i.id,rows:_,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h}):null;let v=qX(s)||`Story`,y=Object.fromEntries(Object.entries(c||{}).map(([e,t])=>[e,{rows:N$(zU(t,a),u,d),sort:f}])),b={[v]:{rows:_,sort:f},...y};return PW.createElement(EX,{tabs:b,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h,storyId:i.id})},W$=QY(`Controls`,U$),{InvalidBlockOfPropError:G$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:K$}=__STORYBOOK_MODULE_CORE_EVENTS__,{document:q$}=globalThis,J$=({className:e,children:t,...n})=>{if(typeof e!=`string`&&(typeof t!=`string`||!t.match(/[\n\r]/g)))return BW.createElement(iA,null,t);let r=e&&e.split(`-`);return BW.createElement(yV,{language:r&&r[1]||`text`,format:!1,code:t,...n})},Y$=Yz.a,X$=({hash:e,children:t})=>{let n=(0,BW.useContext)(JY);return BW.createElement(Y$,{href:e,target:`_self`,onClick:t=>{let r=e.substring(1);q$.getElementById(r)&&BU(n,e)}},t)},Z$=e=>{let{href:t,target:n,children:r,...i}=e,a=(0,BW.useContext)(JY);return!t||n===`_blank`||/^https?:\/\//.test(t)?BW.createElement(Y$,{...e}):t.startsWith(`#`)?BW.createElement(X$,{hash:t},r):BW.createElement(Y$,{href:t,onClick:e=>{e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&(e.preventDefault(),BU(a,e.currentTarget.getAttribute(`href`)||``))},target:n,...i},r)},Q$=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],$$=Q$.reduce((e,t)=>({...e,[t]:N(t)({"& svg":{position:`relative`,top:`-0.1em`,visibility:`hidden`},"&:hover svg":{visibility:`visible`}})}),{}),e1=N.a(()=>({float:`left`,lineHeight:`inherit`,paddingRight:`10px`,marginLeft:`-24px`,color:`inherit`})),t1=({as:e,id:t,children:n,...r})=>{let i=(0,BW.useContext)(JY),a=$$[e],o=`#${t}`;return BW.createElement(a,{id:t,...r},BW.createElement(e1,{"aria-hidden":`true`,href:o,tabIndex:-1,target:`_self`,onClick:e=>{q$.getElementById(t)&&BU(i,o)}},BW.createElement(Ze,null)),n)},n1=e=>{let{as:t,id:n,children:r,...i}=e;if(n)return BW.createElement(t1,{as:t,id:n,...i},r);let a=t,{as:o,...s}=e;return BW.createElement(a,{...Bk(s,t)})},r1=Q$.reduce((e,t)=>({...e,[t]:e=>BW.createElement(n1,{as:t,...e})}),{}),i1=e=>{if(!e.children)return null;if(typeof e.children!=`string`)throw Error(xV`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
270
270
|
This is often caused by not wrapping the child in a template string.
|
|
271
271
|
|
|
272
272
|
This is invalid:
|