@ryuzaki13/react-foundation-ui 3.10.0 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/badge/index.js +1 -1
- package/dist/barcode-scanner/index.js +1 -1
- package/dist/base-table/index.js +1 -1
- package/dist/chunks/{TextEditorLexicalClient-BQH41FFT.js → TextEditorLexicalClient-Cj6yjCGm.js} +3 -3
- package/dist/chunks/{TextEditorLexicalClient-BQH41FFT.js.map → TextEditorLexicalClient-Cj6yjCGm.js.map} +1 -1
- package/dist/chunks/{base-table-CacTH3BE.js → base-table-CoVXG2FT.js} +4 -4
- package/dist/chunks/{base-table-CacTH3BE.js.map → base-table-CoVXG2FT.js.map} +1 -1
- package/dist/chunks/{context-menu-BV8636Ou.js → context-menu-BlLesqpZ.js} +2 -2
- package/dist/chunks/{context-menu-BV8636Ou.js.map → context-menu-BlLesqpZ.js.map} +1 -1
- package/dist/chunks/flex-BhrQCH4I.js +401 -0
- package/dist/chunks/flex-BhrQCH4I.js.map +1 -0
- package/dist/chunks/grid-D6wPRCjx.js +394 -0
- package/dist/chunks/grid-D6wPRCjx.js.map +1 -0
- package/dist/chunks/{misc-BjdDK6mm.js → misc-Dcr24uDY.js} +2 -2
- package/dist/chunks/{misc-BjdDK6mm.js.map → misc-Dcr24uDY.js.map} +1 -1
- package/dist/chunks/{modal-CBGNsqrq.js → modal-DeABSKrb.js} +4 -4
- package/dist/chunks/{modal-CBGNsqrq.js.map → modal-DeABSKrb.js.map} +1 -1
- package/dist/chunks/{picker-DagDe9OH.js → picker-CWx7vPE8.js} +2 -2
- package/dist/chunks/{picker-DagDe9OH.js.map → picker-CWx7vPE8.js.map} +1 -1
- package/dist/chunks/responsiveLayout-D2mtCDdh.js +28 -0
- package/dist/chunks/responsiveLayout-D2mtCDdh.js.map +1 -0
- package/dist/chunks/{select-C-1U-ujV.js → select-CHBBo5fn.js} +2 -2
- package/dist/chunks/{select-C-1U-ujV.js.map → select-CHBBo5fn.js.map} +1 -1
- package/dist/chunks/{table-Cx__DvpN.js → table-Cm9NhT9K.js} +2 -2
- package/dist/chunks/{table-Cx__DvpN.js.map → table-Cm9NhT9K.js.map} +1 -1
- package/dist/context-menu/index.js +1 -1
- package/dist/disclosure/index.js +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/expandable-action-panel/index.js +1 -1
- package/dist/flex/FlexContainer.d.ts +1 -1
- package/dist/flex/FlexContainer.d.ts.map +1 -1
- package/dist/flex/FlexItem.d.ts +1 -1
- package/dist/flex/FlexItem.d.ts.map +1 -1
- package/dist/flex/PredefinedFlex.d.ts +1 -1
- package/dist/flex/PredefinedFlex.d.ts.map +1 -1
- package/dist/flex/getFlexClasses.d.ts +5 -0
- package/dist/flex/getFlexClasses.d.ts.map +1 -0
- package/dist/flex/index.js +1 -1
- package/dist/floating-windows/FloatingWindow.d.ts +19 -0
- package/dist/floating-windows/FloatingWindow.d.ts.map +1 -0
- package/dist/floating-windows/FloatingWindowHeader.d.ts +14 -0
- package/dist/floating-windows/FloatingWindowHeader.d.ts.map +1 -0
- package/dist/floating-windows/FloatingWindows.d.ts +16 -0
- package/dist/floating-windows/FloatingWindows.d.ts.map +1 -0
- package/dist/floating-windows/FloatingWindowsBoundary.d.ts +10 -0
- package/dist/floating-windows/FloatingWindowsBoundary.d.ts.map +1 -0
- package/dist/floating-windows/FloatingWindowsProvider.d.ts +11 -0
- package/dist/floating-windows/FloatingWindowsProvider.d.ts.map +1 -0
- package/dist/floating-windows/index.d.ts +4 -0
- package/dist/floating-windows/index.d.ts.map +1 -0
- package/dist/floating-windows/index.js +576 -0
- package/dist/floating-windows/index.js.map +1 -0
- package/dist/floating-windows/lib/constrainFloatingWindowPosition.d.ts +8 -0
- package/dist/floating-windows/lib/constrainFloatingWindowPosition.d.ts.map +1 -0
- package/dist/floating-windows/lib/floatingWindowsStorage.d.ts +10 -0
- package/dist/floating-windows/lib/floatingWindowsStorage.d.ts.map +1 -0
- package/dist/floating-windows/lib/getFloatingWindowStyle.d.ts +5 -0
- package/dist/floating-windows/lib/getFloatingWindowStyle.d.ts.map +1 -0
- package/dist/floating-windows/lib/isFloatingWindowId.d.ts +3 -0
- package/dist/floating-windows/lib/isFloatingWindowId.d.ts.map +1 -0
- package/dist/floating-windows/lib/selectFloatingWindowCascadePosition.d.ts +8 -0
- package/dist/floating-windows/lib/selectFloatingWindowCascadePosition.d.ts.map +1 -0
- package/dist/floating-windows/lib/selectFloatingWindowRestoreFocus.d.ts +3 -0
- package/dist/floating-windows/lib/selectFloatingWindowRestoreFocus.d.ts.map +1 -0
- package/dist/floating-windows/model/FloatingWindowsContext.d.ts +4 -0
- package/dist/floating-windows/model/FloatingWindowsContext.d.ts.map +1 -0
- package/dist/floating-windows/model/createFloatingWindowsStore.d.ts +8 -0
- package/dist/floating-windows/model/createFloatingWindowsStore.d.ts.map +1 -0
- package/dist/floating-windows/model/floatingWindowMoveTypes.d.ts +27 -0
- package/dist/floating-windows/model/floatingWindowMoveTypes.d.ts.map +1 -0
- package/dist/floating-windows/model/floatingWindowsTypes.d.ts +40 -0
- package/dist/floating-windows/model/floatingWindowsTypes.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowFocus.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowFocus.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowMeasurements.d.ts +5 -0
- package/dist/floating-windows/model/useFloatingWindowMeasurements.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowMove.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowMove.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowSnapshot.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowSnapshot.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowsBounds.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowsBounds.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowsPersistence.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowsPersistence.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowsStore.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowsStore.d.ts.map +1 -0
- package/dist/grid/GridContainer.d.ts.map +1 -1
- package/dist/grid/GridItem.d.ts.map +1 -1
- package/dist/grid/getGridClasses.d.ts +12 -0
- package/dist/grid/getGridClasses.d.ts.map +1 -0
- package/dist/grid/index.js +1 -1
- package/dist/image/index.js +2 -2
- package/dist/layout-picker/index.js +1 -1
- package/dist/list/index.js +2 -2
- package/dist/listbox/index.js +1 -1
- package/dist/misc/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/notifications/index.js +10 -10
- package/dist/picker/index.js +1 -1
- package/dist/preset-range-date-input/index.js +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/responsive-layout/responsiveLayout.d.ts +17 -0
- package/dist/responsive-layout/responsiveLayout.d.ts.map +1 -0
- package/dist/select/index.js +1 -1
- package/dist/simple-table/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/table/index.js +1 -1
- package/dist/table-sorting/index.js +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/text-editor/index.js +2 -2
- package/dist/toolbar/index.js +2 -2
- package/dist/tree-select/index.js +1 -1
- package/dist/tree-table/index.js +1 -1
- package/package.json +5 -1
- package/storybook-static/assets/{Badge-DxGi2POg.js → Badge-CVgLMAJT.js} +1 -1
- package/storybook-static/assets/{Badge.stories-D6Em1fN8.js → Badge.stories-KeadkKsz.js} +1 -1
- package/storybook-static/assets/{BadgeList-DemBuxUQ.js → BadgeList-_jBtMkE3.js} +1 -1
- package/storybook-static/assets/{BarcodeScannerDialog.stories-Bxnb0wH3.js → BarcodeScannerDialog.stories-J9XDExKK.js} +1 -1
- package/storybook-static/assets/{Button-dlGIhkja.js → Button-C-uRygWz.js} +1 -1
- package/storybook-static/assets/{Button-9vGUTM3m.js → Button-DegBPiAl.js} +1 -1
- package/storybook-static/assets/{Button.stories-WOE1_ovM.js → Button.stories-Ds4zCq_9.js} +1 -1
- package/storybook-static/assets/{CalendarView-Co2EiQf9.js → CalendarView-iyr_ipPy.js} +1 -1
- package/storybook-static/assets/{CheckBox-CwJshQX2.js → CheckBox-B0zrARHA.js} +1 -1
- package/storybook-static/assets/{CheckBox-Dpg2QsvS.js → CheckBox-nBqHJGY9.js} +1 -1
- package/storybook-static/assets/{CheckBox.stories-K8wng7-q.js → CheckBox.stories-CxO9FwA7.js} +1 -1
- package/storybook-static/assets/Color-6AOWCN3U-Dzuzn5Yr.js +1 -0
- package/storybook-static/assets/{ContextMenu-DbmUWR4I.js → ContextMenu-BC5OXqVj.js} +1 -1
- package/storybook-static/assets/{ContextMenu-C1zzFMni.js → ContextMenu-CnZu58rQ.js} +1 -1
- package/storybook-static/assets/{ContextMenu.stories-D0tclMo1.js → ContextMenu.stories-CPdTdVV7.js} +1 -1
- package/storybook-static/assets/{DateInput-BDxg1E80.js → DateInput-B5j7kofa.js} +1 -1
- package/storybook-static/assets/{DateInput-DxpENevn.js → DateInput-CuYe4WXO.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-De_AOkrK.js → DateInput.stories-C4ZaIPUG.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-CD7jNInU.js → DateRangePresetSelect-CbDK9t1J.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-CD8qu2LL.js → DateRangePresetSelect-Cg6yPY0K.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-phHkk3Q1.js → DateRangePresetSelect.stories-DPWUHjXu.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect-Bdv505U3.js → DeprecatedMultiSelect-DCReLsN-.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect-B4VEjiTj.js → DeprecatedMultiSelect-DkGsEVRD.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect.stories-DdPzDJjx.js → DeprecatedMultiSelect.stories-tbYFDSML.js} +1 -1
- package/storybook-static/assets/{Detail-BoazSWw_.js → Detail-CtVpK6xU.js} +1 -1
- package/storybook-static/assets/{Detail.stories-Cc9fEkdx.js → Detail.stories-zAQfXGuT.js} +1 -1
- package/storybook-static/assets/{Dialog-ieE9mpAU.js → Dialog-B9ltl4hS.js} +1 -1
- package/storybook-static/assets/{Dialog-VJ62BLtp.js → Dialog-JetMtpYt.js} +1 -1
- package/storybook-static/assets/{Dialog.stories-CUyAMGoD.js → Dialog.stories-tJymN3yq.js} +1 -1
- package/storybook-static/assets/{Disclosure-BP8VhRCA.js → Disclosure-j-RCrVFs.js} +1 -1
- package/storybook-static/assets/{Disclosure.stories-DwIo-o1J.js → Disclosure.stories-4Jj2XNlo.js} +1 -1
- package/storybook-static/assets/{DisclosureGroup-LjgDW-Z6.js → DisclosureGroup-CM7GlGI4.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-BjRaiNDG.js → DocsRenderer-JROSPFPF-DevtpZi5.js} +1 -1
- package/storybook-static/assets/{DropZone-BMT4jv2L.js → DropZone-Bwo7NG5D.js} +1 -1
- package/storybook-static/assets/{DropZone-Dg3GZxY8.js → DropZone-CPrhOtX-.js} +1 -1
- package/storybook-static/assets/{DropZone.stories-szOGIPHx.js → DropZone.stories-VyNhIaxw.js} +1 -1
- package/storybook-static/assets/{DropdownMenu-B0EI5ePH.js → DropdownMenu-DMWZzFK1.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel-D_qy2JID.js → ExpandableActionPanel-DmKB3xVB.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel.stories-wdmlBDmK.js → ExpandableActionPanel.stories-Kh_OSEIl.js} +1 -1
- package/storybook-static/assets/Flex-BZKhuaao.js +81 -0
- package/storybook-static/assets/Flex.stories-CrHxjVCH.js +454 -0
- package/storybook-static/assets/FlexContainer-DGc37vCr.js +1 -0
- package/storybook-static/assets/{FlexItem-BE_4juAd.js → FlexItem-DYv72TvP.js} +2 -2
- package/storybook-static/assets/{FloatingPopover-DHxMCBdS.js → FloatingPopover-Bd3b1U8c.js} +1 -1
- package/storybook-static/assets/FloatingWindows-C2FJO6ij.css +1 -0
- package/storybook-static/assets/FloatingWindows.stories-Cs_i092m.js +13 -0
- package/storybook-static/assets/FormattedTableCell-CdlWquoj.js +15 -0
- package/storybook-static/assets/Grid-DIKudfVu.js +84 -0
- package/storybook-static/assets/{Grid-0NnWfTJ7.js → Grid-DUcSdqsI.js} +2 -2
- package/storybook-static/assets/Grid.stories-sZUaIp7v.js +657 -0
- package/storybook-static/assets/{GridContainer-BHSfIiml.js → GridContainer-C5r-VTTG.js} +2 -2
- package/storybook-static/assets/GridContainer-DgBuOs_1.css +1 -0
- package/storybook-static/assets/{ImageCropper.stories-Cf5ogf7p.js → ImageCropper.stories-Bk3SF90a.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-CsN1-IP6.js → ImageRenderer-CM-YetP0.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories-DIC-UR-l.js → ImageRenderer.stories-CMqKyVuX.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-DT6QZR-1.js → ImageView.stories-9IjWDUev.js} +1 -1
- package/storybook-static/assets/{ImageViewer.stories-DxpCKbpk.js → ImageViewer.stories-D-Zzvzh3.js} +2 -2
- package/storybook-static/assets/{ImageViewerRuntime-COhNh4_y.js → ImageViewerRuntime-BRWmVnG3.js} +1 -1
- package/storybook-static/assets/{Input-BJ3sPHt1.js → Input-BaEhNNL0.js} +1 -1
- package/storybook-static/assets/{Input-D2eqioLp.js → Input-YuUUu0DD.js} +1 -1
- package/storybook-static/assets/{Input.stories-MtAx6H2F.js → Input.stories-CoJY4vR8.js} +1 -1
- package/storybook-static/assets/{InputDateTime-CNNqhoo6.js → InputDateTime-CPlDTMTI.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-DT3CvxRy.js → InputDateTime.stories-DaOA4pFM.js} +1 -1
- package/storybook-static/assets/{InputFile-RfdomZEH.js → InputFile-7PMO3B4Q.js} +1 -1
- package/storybook-static/assets/{InputFile-DiI_0QV5.js → InputFile-D2HPvbt_.js} +1 -1
- package/storybook-static/assets/{InputFile.stories-CiqGBnkS.js → InputFile.stories-CD4sJtXF.js} +1 -1
- package/storybook-static/assets/{InputFiles-CBrPDNlV.js → InputFiles-DSOs_hpc.js} +1 -1
- package/storybook-static/assets/{InputFiles-CgyVXpI1.js → InputFiles-DwgBtqPe.js} +1 -1
- package/storybook-static/assets/{InputFiles.stories-QHNxJjiV.js → InputFiles.stories-B2zPOUXW.js} +1 -1
- package/storybook-static/assets/{InputFilesList-BEIBTAEK.js → InputFilesList-DWtH6HFC.js} +1 -1
- package/storybook-static/assets/{InputImage-BBJr8TWl.js → InputImage-Cke0I8XV.js} +1 -1
- package/storybook-static/assets/{InputImage-vXbhnE46.js → InputImage-CnTU-bKF.js} +1 -1
- package/storybook-static/assets/{InputImage.stories-VoVU0QZB.js → InputImage.stories-CadyFqUh.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents-CjkX3vU6.js → InteractiveComponents-cNgymLXT.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents.stories-Gc_Ju4xJ.js → InteractiveComponents.stories-c5kIdj-d.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-DwpDr_Is.js → LayoutPicker-BydBdeCh.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-ONnrtLDR.js → LayoutPicker-u5tv4tmF.js} +1 -1
- package/storybook-static/assets/{LayoutPicker.stories-B-HIq6DD.js → LayoutPicker.stories-ZcTgJxX5.js} +1 -1
- package/storybook-static/assets/{Listbox-XIi0yHgl.js → Listbox-CaBDvhDA.js} +1 -1
- package/storybook-static/assets/{Listbox-DoF5nZIP.js → Listbox-CzmfAAEG.js} +1 -1
- package/storybook-static/assets/{Listbox.stories-DT8FJQ3z.js → Listbox.stories-B_tFWmxp.js} +1 -1
- package/storybook-static/assets/{Modal-C3F4r2UA.js → Modal-CIptTLdh.js} +1 -1
- package/storybook-static/assets/{Modal-Ml7EuSvu.js → Modal-DIJuHLSp.js} +1 -1
- package/storybook-static/assets/{Modal.stories-DRwnYxst.js → Modal.stories-BAh1Lzf0.js} +1 -1
- package/storybook-static/assets/{ModalManagerProvider-CmqdB_ni.js → ModalManagerProvider-DH2lt3jw.js} +1 -1
- package/storybook-static/assets/{MultiSelect-CAg-L0dM.js → MultiSelect-CbcU2Cam.js} +1 -1
- package/storybook-static/assets/{MultiSelect-B1QokJ3C.js → MultiSelect-OPkS-VFp.js} +1 -1
- package/storybook-static/assets/{MultiSelect.stories-Dfh2Lp0N.js → MultiSelect.stories-jghnBwe0.js} +1 -1
- package/storybook-static/assets/{MultiSelectCore-GRGtCBO1.js → MultiSelectCore-AgK9lN-8.js} +1 -1
- package/storybook-static/assets/{NoData-BZhNhaYV.js → NoData-CRi9NzcI.js} +1 -1
- package/storybook-static/assets/{NotificationsHost-BUPLrDM3.js → NotificationsHost-C8sCDEzY.js} +9 -9
- package/storybook-static/assets/{NotificationsHost.stories-CKbR-_nq.js → NotificationsHost.stories-BxpWtMHl.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-CDW0B1az.js → ODataMultiSelect-Cjptiw3k.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-BbKrxs7t.js → ODataMultiSelect.stories-B-tBcHkU.js} +2 -2
- package/storybook-static/assets/{ODataSelect-C5G0dCnn.js → ODataSelect-BdVlf2WW.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-DcX50cyD.js → ODataSelect.stories-DZv8DgW4.js} +2 -2
- package/storybook-static/assets/{ODataTreeMultiSelect-4mTjhnlJ.js → ODataTreeMultiSelect-B83uLKnT.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect.stories-B-4UUg5l.js → ODataTreeMultiSelect.stories-k92VjXYz.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect-D-wcx2OH.js → ODataTreeSelect-CkZeBBoA.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-uB_sG4ga.js → ODataTreeSelect.stories-COweaWEr.js} +1 -1
- package/storybook-static/assets/{OneStepScroller-DQI5POnJ.js → OneStepScroller-dD9RSWvg.js} +1 -1
- package/storybook-static/assets/{Option-CrEWqsFF.js → Option-lTkoUcHa.js} +1 -1
- package/storybook-static/assets/{OptionButton-BEQ2oSPf.js → OptionButton-Bt6YtqRZ.js} +1 -1
- package/storybook-static/assets/{OptionContent-C8S7IjI3.js → OptionContent-C7Zoef1L.js} +1 -1
- package/storybook-static/assets/{OptionContentContainer-ljQts_jY.js → OptionContentContainer-xpO-es_t.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-DuqatGdk.js → PeriodSelect-CmGjITS0.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-BTdDU06N.js → PeriodSelect-DkGZmPFu.js} +1 -1
- package/storybook-static/assets/{PeriodSelect.stories-CX4DSFJG.js → PeriodSelect.stories-BxkZen1s.js} +1 -1
- package/storybook-static/assets/{PickerField-Cgcm-Y5T.js → PickerField-vwGcXNU3.js} +1 -1
- package/storybook-static/assets/{PickerTriggerActions-DWe2uX0K.js → PickerTriggerActions-BVO2pwu2.js} +1 -1
- package/storybook-static/assets/{Popover-C55I0GTn.js → Popover-DU0wD6MT.js} +1 -1
- package/storybook-static/assets/{Popover-0QfSvwRS.js → Popover-PRWJVARx.js} +1 -1
- package/storybook-static/assets/{Popover.stories-Bgjomdgb.js → Popover.stories-CXKDCIfT.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-C-vQa5BZ.js → PresetRangeDateInput-B1oR9Z-A.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-Cai5fvRb.js → PresetRangeDateInput-DUcxF5lh.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput.stories-CWtIukRG.js → PresetRangeDateInput.stories-CAPHV6_P.js} +1 -1
- package/storybook-static/assets/{PresetSelect-HqtmoRLb.js → PresetSelect-Hrow5Qbz.js} +1 -1
- package/storybook-static/assets/{README-DfVaZ9rz.js → README-AWtoYOeO.js} +1 -1
- package/storybook-static/assets/{README-CxsbsDff.js → README-BB_tSzAG.js} +1 -1
- package/storybook-static/assets/{README-QWeHqOh2.js → README-BCBBtU0T.js} +1 -1
- package/storybook-static/assets/{README-BFjx8Jxa.js → README-BCXjh3I1.js} +1 -1
- package/storybook-static/assets/{README-CxMmicr4.js → README-BDdhvdKa.js} +1 -1
- package/storybook-static/assets/{README-UC0a4Wh9.js → README-BEUQd7JO.js} +1 -1
- package/storybook-static/assets/{README-BEypAdTE.js → README-BIHT1kGT.js} +1 -1
- package/storybook-static/assets/{README-CdnQbIDn.js → README-BJXCE3us.js} +1 -1
- package/storybook-static/assets/{README-B5wBU6mA.js → README-BLog3wnj.js} +1 -1
- package/storybook-static/assets/{README-C2xdMez4.js → README-BPOSX1IH.js} +1 -1
- package/storybook-static/assets/{README-DUShQLyj.js → README-BwSjP1rm.js} +1 -1
- package/storybook-static/assets/{README-BzIE9gSk.js → README-C8-H1dVZ.js} +1 -1
- package/storybook-static/assets/{README-CxEn3Q3j.js → README-CDYORt73.js} +1 -1
- package/storybook-static/assets/{README-DitsKP8x.js → README-CDq7upsw.js} +1 -1
- package/storybook-static/assets/{README-eRuOqnaA.js → README-CF5B-uBm.js} +1 -1
- package/storybook-static/assets/{README-DF3qw7Jo.js → README-CF79JAmm.js} +1 -1
- package/storybook-static/assets/{README-Bk6x-7we.js → README-CGalXaw7.js} +1 -1
- package/storybook-static/assets/{README-RGQ7HMZR.js → README-CHgqsGMV.js} +1 -1
- package/storybook-static/assets/{README-B5Lc1yT4.js → README-COzEPNJ8.js} +1 -1
- package/storybook-static/assets/{README-ClH6EKpO.js → README-CRfg4Opx.js} +1 -1
- package/storybook-static/assets/{README-C6ryhIOV.js → README-CRk_ElRL.js} +1 -1
- package/storybook-static/assets/{README-SafL9Bz5.js → README-CTbRRHIT.js} +1 -1
- package/storybook-static/assets/{README-2lBx3R6g.js → README-C_hI3IVn.js} +1 -1
- package/storybook-static/assets/{README-DycS0KDV.js → README-CbCzYjzO.js} +1 -1
- package/storybook-static/assets/{README-mxJzt2Xo.js → README-Cb_U_ZYK.js} +1 -1
- package/storybook-static/assets/{README-B8RrtmaZ.js → README-CdDd6nD8.js} +1 -1
- package/storybook-static/assets/{README-BqMpFJKP.js → README-Cu3r4RYC.js} +1 -1
- package/storybook-static/assets/{README-DFGUcAOx.js → README-CxBqJjI3.js} +1 -1
- package/storybook-static/assets/{README-QZrJnhYv.js → README-D0EguYwa.js} +1 -1
- package/storybook-static/assets/{README-Brd9di5k.js → README-DA8e0atn.js} +1 -1
- package/storybook-static/assets/{README-DAozVWEl.js → README-DUVORqie.js} +1 -1
- package/storybook-static/assets/{README-Dk7syFq-.js → README-DYjyXvbd.js} +1 -1
- package/storybook-static/assets/{README-C1BajdmC.js → README-D_iA9J4Q.js} +1 -1
- package/storybook-static/assets/{README-BHrzFd3i.js → README-De02nG6s.js} +1 -1
- package/storybook-static/assets/{README-C702dbsS.js → README-DjM1av8U.js} +1 -1
- package/storybook-static/assets/{README-BUKlvu1v.js → README-DmT1wyUb.js} +1 -1
- package/storybook-static/assets/{README-B41_J33v.js → README-DnpmMCNN.js} +1 -1
- package/storybook-static/assets/{README-B1IMnjhg.js → README-FJ4JNfan.js} +1 -1
- package/storybook-static/assets/{README-C8oftQ5c.js → README-JqCoy91R.js} +1 -1
- package/storybook-static/assets/{README-BNLmyDfy.js → README-JrppLPED.js} +1 -1
- package/storybook-static/assets/{README-_K214jGV.js → README-MUzkojYd.js} +1 -1
- package/storybook-static/assets/{README-DlBBM40-.js → README-O1ww7U1S.js} +1 -1
- package/storybook-static/assets/{README-BRJHDPaP.js → README-SkcZXYo1.js} +1 -1
- package/storybook-static/assets/{README-CdMmAh_G.js → README-UfCsOg0n.js} +1 -1
- package/storybook-static/assets/{README-DBpH2nf1.js → README-Xu3cmYZg.js} +1 -1
- package/storybook-static/assets/{README-BkFTTVE2.js → README-bcnh89ek.js} +1 -1
- package/storybook-static/assets/{README-Bl1rJEQE.js → README-ctVjdbq7.js} +1 -1
- package/storybook-static/assets/{README-CUUPvXQd.js → README-diVWU6bQ.js} +1 -1
- package/storybook-static/assets/{README-kvlO41U2.js → README-f5UPnPkY.js} +1 -1
- package/storybook-static/assets/{README-BTk3TSh8.js → README-mq6pyk4G.js} +1 -1
- package/storybook-static/assets/{README-BhvWyeL_.js → README-o-a96Aib.js} +1 -1
- package/storybook-static/assets/{README-BgbNoj4_.js → README-w3_FegOo.js} +1 -1
- package/storybook-static/assets/{README-CM5yZ6jf.js → README-zelg96nd.js} +1 -1
- package/storybook-static/assets/{RadioButton-BKsBk3--.js → RadioButton-BztQMLNR.js} +1 -1
- package/storybook-static/assets/{RadioButton-CsM-RT0A.js → RadioButton-DUOPHyRt.js} +1 -1
- package/storybook-static/assets/{RadioButton.stories-D5PGiHj5.js → RadioButton.stories-BOE5cGej.js} +1 -1
- package/storybook-static/assets/{RadioGroup-B3bLu8Qg.js → RadioGroup-CDqbnv4J.js} +1 -1
- package/storybook-static/assets/{RadioGroup-BZY_jeje.js → RadioGroup-QICEWbjz.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-DMfcZFp0.js → RadioGroup.stories-f2qU7hhM.js} +1 -1
- package/storybook-static/assets/ResponsiveLayoutPreview-BWBLsr8u.js +1 -0
- package/storybook-static/assets/ResponsiveLayoutPreview-CyXawjCA.css +1 -0
- package/storybook-static/assets/{Scrollable-DdXQmkMU.js → Scrollable-CAnjXb6_.js} +1 -1
- package/storybook-static/assets/{Scrollable-DLyQwImF.js → Scrollable-Cc641kuG.js} +1 -1
- package/storybook-static/assets/{Scrollable.stories-Du5joHAp.js → Scrollable.stories-ZQT-1f1f.js} +1 -1
- package/storybook-static/assets/{Select-CT_wwcDN.js → Select-BeoH_3V4.js} +1 -1
- package/storybook-static/assets/{Select-8PYQeQRR.js → Select-D6RLm9D5.js} +1 -1
- package/storybook-static/assets/{Select.stories-DIqia2Hb.js → Select.stories-DI6pVDzi.js} +1 -1
- package/storybook-static/assets/{Separator-DJ93-Cvq.js → Separator-De9vEg4j.js} +1 -1
- package/storybook-static/assets/{Separator-CelBAATq.js → Separator-tkZoR8Ft.js} +1 -1
- package/storybook-static/assets/{Separator.stories-DBEDpiqL.js → Separator.stories-CGZrsdLJ.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-C-00d6wC.js → SerializableSelect-BWgkYLIe.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-CP7fJBNa.js → SerializableSelect.stories-BfGg_SmN.js} +1 -1
- package/storybook-static/assets/{ShimmerText-qA7CslLE.js → ShimmerText-D1ygdKrh.js} +1 -1
- package/storybook-static/assets/{ShimmerText.stories-CiGIbhCm.js → ShimmerText.stories-D5AB85Hj.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-B7tnYWQl.js → SingleDateTimeInput-Bf2RpSbC.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-DJ2vRS9H.js → SingleDateTimeInput-C2O-fXgE.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput.stories-BK59HKLf.js → SingleDateTimeInput.stories-BUbSA1UY.js} +1 -1
- package/storybook-static/assets/{Slider-Cm6kd77G.js → Slider-BhfM7XZ9.js} +1 -1
- package/storybook-static/assets/{Slider-CXcIxUE3.js → Slider-CVPKS3XB.js} +1 -1
- package/storybook-static/assets/{Slider.stories-BuhFWvUX.js → Slider.stories-C6ZUJc4b.js} +1 -1
- package/storybook-static/assets/{SliderInput-DI2h4X8P.js → SliderInput-MMUGLDDl.js} +1 -1
- package/storybook-static/assets/{SliderInput-DpmYS5Zb.js → SliderInput-PwHeDeo2.js} +1 -1
- package/storybook-static/assets/{SliderInput.stories-CLdLS0_8.js → SliderInput.stories-zBDRonPh.js} +1 -1
- package/storybook-static/assets/{Sortable-CpjAZLxn.js → Sortable-BKNLJGIe.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-Ck2MHBoR.js → Sortable.stories-CLY263mj.js} +1 -1
- package/storybook-static/assets/{Splitter-Cpk_5dTf.js → Splitter-PyZco_V_.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-BIf9NNWq.js → Splitter.stories-CY3Itq_G.js} +1 -1
- package/storybook-static/assets/{StateSelect-BznE9WIu.js → StateSelect-BlEIRWer.js} +1 -1
- package/storybook-static/assets/{StateSelect-C5tnrhWT.js → StateSelect-DfUif3cG.js} +1 -1
- package/storybook-static/assets/{StateSelect.stories-DLvSnAcF.js → StateSelect.stories-ClSYkdz8.js} +1 -1
- package/storybook-static/assets/{StatusIndicator-vJAPPq2m.js → StatusIndicator-CL-WMBHT.js} +1 -1
- package/storybook-static/assets/{StatusIndicator.stories-B7PGK2_C.js → StatusIndicator.stories-BbpEocDe.js} +1 -1
- package/storybook-static/assets/{StringToggle.stories-DBpxJZL-.js → StringToggle.stories-0r9TfflS.js} +1 -1
- package/storybook-static/assets/{Switch-BkTvYjyQ.js → Switch-AoVSoc9P.js} +1 -1
- package/storybook-static/assets/{Switch-DlRrk6o7.js → Switch-HAWn3D1c.js} +1 -1
- package/storybook-static/assets/{Switch.stories-BtctkC2W.js → Switch.stories-D1VJIWsC.js} +1 -1
- package/storybook-static/assets/{Table-xOdM6spm.js → Table-CyX8frK4.js} +1 -1
- package/storybook-static/assets/Table.stories-DoGpFMZB.js +184 -0
- package/storybook-static/assets/{TableEditor.stories-GU46gl20.js → TableEditor.stories-Mh6q2awx.js} +1 -1
- package/storybook-static/assets/{Tabs-Cg_IYAXs.js → Tabs-BZfNXmy0.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-2cS0B94o.js → Tabs.stories-C9L4pJDb.js} +1 -1
- package/storybook-static/assets/{TabsBox-Dz3AsaoR.js → TabsBox-qRCIBtqi.js} +1 -1
- package/storybook-static/assets/{TagInput-CCTgbRhQ.js → TagInput-CPB6lb2J.js} +1 -1
- package/storybook-static/assets/{TagInput.stories-CevhCeXY.js → TagInput.stories-CT6B8CVV.js} +1 -1
- package/storybook-static/assets/{Text-CDCeYwIB.js → Text-AbSWZQO3.js} +1 -1
- package/storybook-static/assets/{Textarea-CNsrFSip.js → Textarea-BY51Li7J.js} +1 -1
- package/storybook-static/assets/{Textarea-Ba4MyNoY.js → Textarea-Bz9O1y1I.js} +1 -1
- package/storybook-static/assets/{Textarea.stories-laVFWVXL.js → Textarea.stories-CJbv3jrK.js} +1 -1
- package/storybook-static/assets/{TimePanel-Ddy67nzH.js → TimePanel-Wn5lUiwx.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-OLefy0XD.js → TimePanel.stories-dF5kTdp1.js} +1 -1
- package/storybook-static/assets/{Toggle-BGbyfmSW.js → Toggle-BpDn9f6k.js} +1 -1
- package/storybook-static/assets/{Toggle-BlCBtQd1.js → Toggle-CUO99pvo.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-BjeTDL90.js → Toggle.stories-T1Hk_etn.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-ZVSLdnCU.js → TreeMultiSelect-DEsECkRj.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-BJnAzsFO.js → TreeMultiSelect-bqQExCm8.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect.stories-BJOtdIDe.js → TreeMultiSelect.stories-DyK7bWZu.js} +1 -1
- package/storybook-static/assets/{TreePickerBase-BQKfhufH.js → TreePickerBase-BCbV37dL.js} +1 -1
- package/storybook-static/assets/{TreeSelect-BSr4FMlq.js → TreeSelect-CTvlmF81.js} +1 -1
- package/storybook-static/assets/{TreeSelect-DSHQjGD1.js → TreeSelect-Cepr58wS.js} +1 -1
- package/storybook-static/assets/{TreeSelect.stories-GRcEv-kN.js → TreeSelect.stories-RVPMBCd_.js} +1 -1
- package/storybook-static/assets/{TreeTable-CzmxD2ee.js → TreeTable-DznOmuAD.js} +1 -1
- package/storybook-static/assets/TreeTable.stories-Lx2ImfgC.js +138 -0
- package/storybook-static/assets/blocks-u0CCD6I1.js +287 -0
- package/storybook-static/assets/{check-BYM7OgKl.js → check-CHvYWZD5.js} +1 -1
- package/storybook-static/assets/{chevron-down-Mu7usNfR.js → chevron-down-DqHAghNU.js} +1 -1
- package/storybook-static/assets/{chevron-left-CiOR-CGA.js → chevron-left-Bj7vIyg-.js} +1 -1
- package/storybook-static/assets/{chevron-right-5Rrk5UhO.js → chevron-right-BUqG0v39.js} +1 -1
- package/storybook-static/assets/{chunk-W22LQPXL-Cj8Y9DHq.js → chunk-W22LQPXL-BSczDjJT.js} +1 -1
- package/storybook-static/assets/{circle-alert-BXB7LSDS.js → circle-alert-DXUFM6uc.js} +1 -1
- package/storybook-static/assets/{circle-check-DrVuYn1Q.js → circle-check-0x9vHUU_.js} +1 -1
- package/storybook-static/assets/{contextMenu-BaB_e0Tl.js → contextMenu-D8PjjiwD.js} +1 -1
- package/storybook-static/assets/{download-W-Vr_TI7.js → download-15Eb3eUj.js} +1 -1
- package/storybook-static/assets/{floating-ui.react-BTEwHffF.js → floating-ui.react-CypKyrM4.js} +1 -1
- package/storybook-static/assets/{foundationApi-BcoJ1zeX.js → foundationApi-dmPNotab.js} +1 -1
- package/storybook-static/assets/{foundationLib-B2kQ07LT.js → foundationLib-CyrgF87o.js} +1 -1
- package/storybook-static/assets/getFlexClasses-BBvI2V8h.css +1 -0
- package/storybook-static/assets/getFlexClasses-DOf6NlyJ.js +1 -0
- package/storybook-static/assets/{hooks-BgMXxXbY.js → hooks-DM8_3IU2.js} +1 -1
- package/storybook-static/assets/{iframe-CU98mtpe.js → iframe-BmGorvhi.js} +4 -4
- package/storybook-static/assets/iframe-WuXBbC_P.js +1 -0
- package/storybook-static/assets/{info-BhHmytIH.js → info-HMSnCOw2.js} +1 -1
- package/storybook-static/assets/isRecord-DXDTW-jA-DtM9YD3V.js +1 -0
- package/storybook-static/assets/odata-DLogt0PY.js +1 -0
- package/storybook-static/assets/{odataStoryFixtures-CnZ_YrUb.js → odataStoryFixtures-DiC-gXoK.js} +1 -1
- package/storybook-static/assets/{react-C2mSveWL.js → react-BLxZ0fqY.js} +1 -1
- package/storybook-static/assets/{refresh-cw-D8_L8K4Y.js → refresh-cw-Obk3FkLO.js} +1 -1
- package/storybook-static/assets/responsiveLayout-B9XAp69M.js +1 -0
- package/storybook-static/assets/{settings-2-jWGaWGT0.js → settings-2-BQ2LYeiA.js} +1 -1
- package/storybook-static/assets/{sortable-BteEe6X0.js → sortable-BrLDYUp8.js} +1 -1
- package/storybook-static/assets/{syntaxhighlighter-QEQV7K2Y-eEu1MRSg.js → syntaxhighlighter-QEQV7K2Y-JUCJEf5U.js} +1 -1
- package/storybook-static/assets/{trash-2-CwmbYA8i.js → trash-2-CzXfDl_F.js} +1 -1
- package/storybook-static/assets/{triangle-alert-TRLt6Woa.js → triangle-alert-Ww2Tuzxk.js} +1 -1
- package/storybook-static/assets/{useODataSelectBase-BxHmAh7D.js → useODataSelectBase-DIZSERuU.js} +1 -1
- package/storybook-static/assets/useODataTreeData-DLgIiNMG.js +1 -0
- package/storybook-static/assets/{usePickerQuery-ByBt1NRd.js → usePickerQuery-BZ1Hrn2J.js} +1 -1
- package/storybook-static/assets/{usePickerTriggerController-CqdXiV2q.js → usePickerTriggerController-BIarg6M4.js} +1 -1
- package/storybook-static/assets/{x-BPRzfyys.js → x-BmlmEU-a.js} +1 -1
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/chunks/flex-D86M_h-0.js +0 -222
- package/dist/chunks/flex-D86M_h-0.js.map +0 -1
- package/dist/chunks/grid-CFuzBigM.js +0 -186
- package/dist/chunks/grid-CFuzBigM.js.map +0 -1
- package/dist/flex/useFlexClasses.d.ts +0 -8
- package/dist/flex/useFlexClasses.d.ts.map +0 -1
- package/dist/grid/useGridClasses.d.ts +0 -10
- package/dist/grid/useGridClasses.d.ts.map +0 -1
- package/storybook-static/assets/Color-6AOWCN3U-D-64SqRn.js +0 -1
- package/storybook-static/assets/Flex-DYXuexPG.js +0 -61
- package/storybook-static/assets/Flex.stories-DH1BReS-.js +0 -300
- package/storybook-static/assets/FlexContainer-DO3X5f_1.js +0 -1
- package/storybook-static/assets/FormattedTableCell-BfEiCYOi.js +0 -15
- package/storybook-static/assets/Grid-ChS0GzNg.js +0 -61
- package/storybook-static/assets/Grid.stories-ClZzgSfZ.js +0 -495
- package/storybook-static/assets/GridContainer-K9R_IHaw.css +0 -1
- package/storybook-static/assets/Table.stories-FORIU5CX.js +0 -184
- package/storybook-static/assets/TreeTable.stories-35ufhVh1.js +0 -138
- package/storybook-static/assets/blocks-SX-KK9Lg.js +0 -48
- package/storybook-static/assets/components-BEDJAYMp.js +0 -241
- package/storybook-static/assets/iframe-DaZCH1M-.js +0 -1
- package/storybook-static/assets/media-D9cE2tzi.js +0 -1
- package/storybook-static/assets/odata-yWIAioh9.js +0 -1
- package/storybook-static/assets/useFlexClasses-IXK2se1Y.css +0 -1
- package/storybook-static/assets/useFlexClasses-SgVG37Bb.js +0 -1
- package/storybook-static/assets/useODataTreeData-dSt1HJsq.js +0 -1
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./theming-BgT2grXK.js","./rolldown-runtime-DkW27tQK.js","./react-BZJXY1be.js","./chunk-IMSF75WX-CGYlPTyG.js","./chunk-DRQKCCAG-DvsmU7ha.js","./syntaxhighlighter-QEQV7K2Y-JUCJEf5U.js","./chunk-W22LQPXL-BSczDjJT.js","./iframe-BmGorvhi.js","./preload-helper-wdlQj8DP.js","./chunk-KJHJLCBK-yRlRMfNs.js","./iframe-CfHCpaxi.css","./react-dom-BzEl8usk.js","./chunk-242VQQM5-bHL6qIJq.js","./formatter-L2YTDE3Q-CRGuSxAF.js","./WithTooltip-CDUNV5IS-mFMh6Qcu.js","./Color-6AOWCN3U-Dzuzn5Yr.js","./chunk-QQBDHPVZ-DC5n6Pix.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,n as t,r as n,t as r}from"./rolldown-runtime-DkW27tQK.js";import{n as i,t as a}from"./preload-helper-wdlQj8DP.js";import{t as o}from"./react-BZJXY1be.js";import{a as s,c,d as l,g as u,h as d,i as f,l as p,m,n as h,o as g,p as _,r as v,s as y,t as b,u as x}from"./chunk-KJHJLCBK-yRlRMfNs.js";import{a as S,i as C,n as w,o as T,t as E}from"./chunk-IMSF75WX-CGYlPTyG.js";import{c as D,d as O,f as k,l as A,n as j,p as M,u as ee}from"./iframe-BmGorvhi.js";import{i as te,t as ne}from"./react-Bl2r1tuC.js";import{n as re,r as ie,t as ae}from"./chunk-QQBDHPVZ-DC5n6Pix.js";import{a as oe,n as se,o as ce,r as le}from"./chunk-W22LQPXL-BSczDjJT.js";import{C as ue,S as de,_ as fe,a as pe,b as me,c as he,f as ge,g as _e,h as ve,i as ye,l as be,m as xe,n as Se,o as Ce,p as we,r as Te,s as Ee,t as De,u as N,v as Oe,w as ke,x as Ae,y as je}from"./theming-BgT2grXK.js";import{n as Me,t as Ne}from"./chunk-DRQKCCAG-DvsmU7ha.js";import{t as Pe}from"./react-dom-BzEl8usk.js";import{t as Fe}from"./chunk-242VQQM5-bHL6qIJq.js";import{t as Ie}from"./shim-DlYORV19.js";function Le(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var 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;function ct(){return(ct=t((()=>{P=e(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({code:e,category:t}){return`SB_${t}_${String(e).padStart(4,`0`)}`}function ut(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set(`ref`,`error`),t.toString()}catch{return e}}var dt;function ft(){return(ft=t((()=>{dt=class e extends Error{constructor(t){super(e.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return lt({code:this.code,category:this.category})}get name(){let e=this._name||this.constructor.name;return`${this.fullErrorCode} (${e})`}set name(e){this._name=e}static getFullMessage({documentation:e,code:t,category:n,message:r}){let i;return e===!0?i=`https://storybook.js.org/error/${lt({code:t,category:n})}?ref=error`:typeof e==`string`?i=ut(e):Array.isArray(e)&&(i=`
|
|
3
|
+
${e.map(e=>` - ${ut(e)}`).join(`
|
|
4
|
+
`)}`),`${r}${i==null?``:`
|
|
5
|
+
|
|
6
|
+
More info: ${i}
|
|
7
|
+
`}`}}})))()}var pt;function mt(){return(mt=t((()=>{ft(),pt=class extends dt{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`PREVIEW_API`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}}})))()}var ht;function gt(){return(gt=t((()=>{S(),ht=E({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r}})})))()}var _t;function vt(){return(vt=t((()=>{ft(),gt(),S(),C(ht(),1),_t=class extends dt{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`CORE-SERVER`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}}})))()}var yt,bt;function xt(){return(xt=t((()=>{ft(),yt=class extends dt{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`MANAGER_API`,code:1,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},bt=class extends dt{constructor(e){super({name:`UniversalStoreFollowerTimeoutError`,category:`MANAGER_UNIVERSAL-STORE`,code:1,message:`Timed out waiting for leader state for UniversalStore follower with id: '${e}'. Ensure a leader with the same id exists and is reachable before creating a follower.`})}}})))()}function St(e){let t={};for(let n of Object.values(e))for(let e of Object.values(n))t[e.value]=(t[e.value]??0)+1;return t}function Ct({universalStatusStore:e,useUniversalStore:t,environment:n}){let r={getAll(){return e.getState()},set(t){e.setState(e=>{let n={...e};for(let e of t){let{storyId:t,typeId:r}=e;n[t]={...n[t]??{},[r]:e}}return n})},onAllStatusChange(t){return e.onStateChange((e,n)=>{t(e,n)})},onSelect(t){return e.subscribe(kt.SELECT,e=>{t(e.payload)})},selectStatuses:t=>{e.send({type:kt.SELECT,payload:t})},unset(t){if(!t){e.setState({});return}e.setState(e=>{let n={...e};for(let e of t)delete n[e];return n})},typeId:void 0},i=t=>({getAll:r.getAll,set(r){e.setState(e=>{let i={...e};for(let e of r){let{storyId:r}=e;if(e.typeId!==t)switch(n){case`server`:throw new _t({status:e,typeId:t});case`manager`:throw new yt({status:e,typeId:t});default:throw new pt({status:e,typeId:t})}i[r]={...i[r]??{},[t]:e}}return i})},onAllStatusChange:r.onAllStatusChange,onSelect(n){return e.subscribe(kt.SELECT,e=>{e.payload.some(e=>e.typeId===t)&&n(e.payload)})},unset(n){e.setState(e=>{let r={...e};for(let e in r)if(r[e]?.[t]&&(!n||n?.includes(e))){let{[t]:n,...i}=r[e];r[e]=i}return r})},typeId:t});return t?{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e,useStatusStore:n=>t(e,n)[0]}:{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e}}var wt,Tt,Et,Dt,Ot,kt;function At(){return(At=t((()=>{mt(),vt(),xt(),wt=`status-value:`,Tt=[`status-value:pending`,`status-value:success`,`status-value:new`,`status-value:modified`,`status-value:affected`,`status-value:reviewing`,`status-value:warning`,`status-value:error`,`status-value:unknown`],Et=e=>{if(e===`related`)return`status-value:affected`;let t=`${wt}${e}`;return Tt.includes(t)?t:void 0},Dt=e=>e===`status-value:affected`?`related`:e.slice(wt.length),Ot={id:`storybook/status`,leader:!0,initialState:{}},kt={SELECT:`select`}})))()}var jt,Mt,Nt,Pt;function Ft(){return(Ft=t((()=>{jt=`collection`,Mt=e=>e===`/review/`||e===`/review`,Nt=(e,t)=>!!e&&e.startsWith(`/story/`)&&t?.[jt]!==void 0,Pt=(e,t)=>!!e&&(Mt(e)||e.startsWith(`/review/`)||Nt(e,t))})))()}function It(e){let t=Un.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of Wn.filter(t=>e[t]!==void 0))t[n]=e[n];return t}function Lt(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}function Rt(e){var t=zr.call(e,Vr),n=e[Vr];try{e[Vr]=void 0;var r=!0}catch{}var i=Br.call(e);return r&&(t?e[Vr]=n:delete e[Vr]),i}function zt(e){return Ur.call(e)}function Bt(e){return e==null?e===void 0?Kr:Gr:qr&&qr in Object(e)?Hr(e):Wr(e)}function Vt(e){return typeof e==`object`&&!!e}function Ht(e){return typeof e==`symbol`||Yr(e)&&Jr(e)==Xr}function Ut(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 Wt(e){if(typeof e==`string`)return e;if($r(e))return Qr(e,Wt)+``;if(Zr(e))return ni?ni.call(e):``;var t=e+``;return t==`0`&&1/e==-ei?`-0`:t}function Gt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Kt(e){if(!ii(e))return!1;var t=Jr(e);return t==oi||t==si||t==ai||t==ci}function qt(e){return!!di&&di in e}function Jt(e){if(e!=null){try{return pi.call(e)}catch{}try{return e+``}catch{}}return``}function Yt(e){return!ii(e)||fi(e)?!1:(li(e)?xi:gi).test(mi(e))}function Xt(e,t){return e?.[t]}function Zt(e,t){var n=Ci(e,t);return Si(n)?n:void 0}function Qt(e,t){return e===t||e!==e&&t!==t}function $t(e,t){if($r(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Zr(e)?!0:Di.test(e)||!Ei.test(e)||t!=null&&e in Object(t)}function en(){this.__data__=ki?ki(null):{},this.size=0}function tn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function nn(e){var t=this.__data__;if(ki){var n=t[e];return n===Mi?void 0:n}return Ni.call(t,e)?t[e]:void 0}function rn(e){var t=this.__data__;return ki?t[e]!==void 0:Fi.call(t,e)}function an(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=ki&&t===void 0?Li:t,this}function on(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 sn(){this.__data__=[],this.size=0}function cn(e,t){for(var n=e.length;n--;)if(Ti(e[n][0],t))return n;return-1}function ln(e){var t=this.__data__,n=Vi(t,e);return n<0?!1:(n==t.length-1?t.pop():Hi.call(t,n,1),--this.size,!0)}function un(e){var t=this.__data__,n=Vi(t,e);return n<0?void 0:t[n][1]}function dn(e){return Vi(this.__data__,e)>-1}function fn(e,t){var n=this.__data__,r=Vi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pn(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 mn(){this.size=0,this.__data__={hash:new zi,map:new(Ji||qi),string:new zi}}function hn(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function gn(e,t){var n=e.__data__;return Xi(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function _n(e){var t=Zi(this,e).delete(e);return this.size-=+!!t,t}function vn(e){return Zi(this,e).get(e)}function yn(e){return Zi(this,e).has(e)}function bn(e,t){var n=Zi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function xn(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 Sn(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(ra);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(Sn.Cache||na),n}function Cn(e){var t=ia(e,function(e){return n.size===aa&&n.clear(),e}),n=t.cache;return t}function wn(e){return e==null?``:ri(e)}function Tn(e,t){return $r(e)?e:Oi(e,t)?[e]:la(ua(e))}function En(e){if(typeof e==`string`||Zr(e))return e;var t=e+``;return t==`0`&&1/e==-fa?`-0`:t}function Dn(e,t){t=da(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[pa(t[n++])];return n&&n==r?e:void 0}function On(e,t,n){var r=e==null?void 0:ma(e,t);return r===void 0?n:r}function kn(e){if(!ga(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=It(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 An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,F,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,$i,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;function Ta(){return(Ta=t((()=>{xt(),An=new Map,jn=`UNIVERSAL_STORE:`,Mn={PENDING:`PENDING`,RESOLVED:`RESOLVED`,REJECTED:`REJECTED`},Nn=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(T`Cannot send event before store is ready. You can get the current status with store.status,
|
|
8
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
9
|
+
${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=`${jn}${this.id}`,this.debug(`constructor`,{options:t,environmentOverrides:n,channelEventName:this.channelEventName}),this.actor.type===e.ActorType.LEADER)this.syncing={state:Mn.RESOLVED,promise:Promise.resolve()};else{let e,t,n=new Promise((n,r)=>{e=()=>{this.syncing.state===Mn.PENDING&&(this.syncing.state=Mn.RESOLVED,n())},t=e=>{this.syncing.state===Mn.PENDING&&(this.syncing.state=Mn.REJECTED,r(e))}});this.syncing={state:Mn.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?(n||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 Mn.PENDING:case void 0:return e.Status.SYNCING;case Mn.REJECTED:return e.Status.ERROR;case Mn.RESOLVED:default:return e.Status.READY}}untilReady(){let t=this.channel&&this.environment?Promise.resolve():e.preparation.promise;return Promise.all([t,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(T`[UniversalStore]
|
|
10
|
+
create`,{options:t});let n=An.get(t.id);if(n)return console.warn(T`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
11
|
+
You should reuse the existing instance instead of trying to create a new one.`),n;e.isInternalConstructing=!0;let r=new e(t);return An.set(t.id,r),r}static __prepare(t,n){e.preparation.channel=t,e.preparation.environment=n,e.preparation.resolve({channel:t,environment:n})}setState(t){let n=this.state,r=typeof t==`function`?t(n):t;if(this.debug(`setState`,{newState:r,previousState:n,updater:t}),this.status!==e.Status.READY)throw TypeError(T`Cannot set state before store is ready. You can get the current status with store.status,
|
|
12
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
13
|
+
${JSON.stringify({newState:r,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=r;let i={type:e.InternalEventType.SET_STATE,payload:{state:r,previousState:n}};this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor})}onStateChange(t){return this.debug(`onStateChange`,{listener:t}),this.subscribe(e.InternalEventType.SET_STATE,({payload:e},n)=>{t(e.state,e.previousState,n)})}emitToChannel(e,t){this.debug(`emitToChannel`,{event:e,eventInfo:t,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:e,eventInfo:t})}prepareThis({channel:t,environment:n}){this.channel=t,this.environment=n,this.debug(`prepared`,{channel:!!t,environment:n}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===e.ActorType.LEADER?this.emitToChannel({type:e.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:e.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:e.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new bt(this.id))},1e3))}emitToListeners(e,t){let n=this.listeners.get(e.type),r=this.listeners.get(`*`);this.debug(`emitToListeners`,{event:e,eventInfo:t,eventTypeListeners:n,everythingListeners:r}),[...n??[],...r??[]].forEach(n=>n(e,t))}handleChannelEvents(t){let{event:n,eventInfo:r}=t;if([r.actor.id,r.forwardingActor?.id].includes(this.actor.id)){this.debug(`handleChannelEvents: Ignoring event from self`,{channelEvent:t});return}if(this.syncing?.state===Mn.PENDING&&n.type!==e.InternalEventType.EXISTING_STATE_RESPONSE){this.debug(`handleChannelEvents: Ignoring event while syncing`,{channelEvent:t});return}if(this.debug(`handleChannelEvents`,{channelEvent:t}),this.actor.type===e.ActorType.LEADER){let i=!0;switch(n.type){case e.InternalEventType.EXISTING_STATE_REQUEST:i=!1;let t={type:e.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug(`handleChannelEvents: responding to existing state request`,{responseEvent:t}),this.emitToChannel(t,{actor:this.actor}),this.emitToListeners(t,{actor:this.actor});break;case e.InternalEventType.LEADER_CREATED:i=!1,this.syncing.state=Mn.REJECTED,this.debug(`handleChannelEvents: erroring due to second leader being created`,{event:n}),console.error(T`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
14
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
15
|
+
Leaders detected:
|
|
16
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
17
|
+
other: ${JSON.stringify(r.actor,null,2)}`)}i&&(this.debug(`handleChannelEvents: forwarding event`,{channelEvent:t}),this.emitToChannel(n,{actor:r.actor,forwardingActor:this.actor}))}if(this.actor.type===e.ActorType.FOLLOWER)switch(n.type){case e.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug(`handleChannelEvents: Setting state from leader's existing state response`,{event:n}),this.syncing?.state!==Mn.PENDING)break;this.syncing.resolve?.();let t={type:e.InternalEventType.SET_STATE,payload:{state:n.payload,previousState:this.state}};this.state=n.payload,this.emitToListeners(t,r)}n.type===e.InternalEventType.SET_STATE&&(this.debug(`handleChannelEvents: Setting state`,{event:n}),this.state=n.payload.state),this.emitToListeners(n,{actor:r.actor})}debug(t,n){this.debugging&&console.debug(T`[UniversalStore::${this.id}::${this.environment??e.Environment.UNKNOWN}]
|
|
18
|
+
${t}`,JSON.stringify({data:n,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){e.preparation.reject(Error(`reset`)),e.setupPreparationPromise(),e.isInternalConstructing=!1}},Nn.ActorType={LEADER:`LEADER`,FOLLOWER:`FOLLOWER`},Nn.Environment={SERVER:`SERVER`,MANAGER:`MANAGER`,PREVIEW:`PREVIEW`,UNKNOWN:`UNKNOWN`,MOCK:`MOCK`},Nn.InternalEventType={EXISTING_STATE_REQUEST:`__EXISTING_STATE_REQUEST`,EXISTING_STATE_RESPONSE:`__EXISTING_STATE_RESPONSE`,SET_STATE:`__SET_STATE`,LEADER_CREATED:`__LEADER_CREATED`,FOLLOWER_CREATED:`__FOLLOWER_CREATED`},Nn.Status={UNPREPARED:`UNPREPARED`,SYNCING:`SYNCING`,READY:`READY`,ERROR:`ERROR`},Nn.isInternalConstructing=!1,Nn.setupPreparationPromise(),Pn=Nn,Fn=Object.create,In=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Rn=Object.getOwnPropertyNames,zn=Object.getPrototypeOf,Bn=Object.prototype.hasOwnProperty,F=(e,t)=>function(){return t||(0,e[Rn(e)[0]])((t={exports:{}}).exports,t),t.exports},Vn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Rn(t))!Bn.call(e,i)&&i!==n&&In(e,i,{get:()=>t[i],enumerable:!(r=Ln(t,i))||r.enumerable});return e},Hn=(e,t,n)=>(n=e==null?{}:Fn(zn(e)),Vn(t||!e||!e.__esModule?In(n,`default`,{value:e,enumerable:!0}):n,e)),Un=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],Wn=[`detail`],Gn=F({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),Kn=F({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),qn=F({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Jn=F({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Yn=F({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Xn=F({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Zn=F({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Qn=F({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),$n=F({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),er=F({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),tr=F({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),nr=F({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),rr=F({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),ir=F({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),ar=F({"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}}}),or=F({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=ar();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),sr=F({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),cr=F({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=sr();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),lr=F({"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}}),ur=F({"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}}}),dr=F({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=ur();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),fr=F({"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}}),pr=F({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=Gn().getPrototypeOf||null}}),mr=F({"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}}}),hr=F({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=mr();t.exports=Function.prototype.bind||n}}),gr=F({"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}}),_r=F({"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}}),vr=F({"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}}),yr=F({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=hr(),r=_r(),i=gr();t.exports=vr()||n.call(i,r)}}),br=F({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=hr(),r=Zn(),i=gr(),a=yr();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),xr=F({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=br(),r=cr(),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))})}}),Sr=F({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=fr(),r=pr(),i=xr();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}}),Cr=F({"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=hr().call(n,r)}}),wr=F({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=Gn(),i=Kn(),a=qn(),o=Jn(),s=Yn(),c=Xn(),l=Zn(),u=Qn(),d=$n(),f=er(),p=tr(),m=nr(),h=rr(),g=ir(),_=or(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=cr(),x=lr(),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=dr()(),T=Sr(),E=pr(),D=fr(),O=_r(),k=gr(),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},ne={__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`]},re=hr(),ie=Cr(),ae=re.call(k,Array.prototype.concat),oe=re.call(O,Array.prototype.splice),se=re.call(k,String.prototype.replace),ce=re.call(k,String.prototype.slice),le=re.call(k,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,de=/\\(\\)?/g,fe=function(e){var t=ce(e,0,1),n=ce(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 se(e,ue,function(e,t,n,i){r[r.length]=n?se(i,de,`$1`):t||e}),r},pe=function(e,t){var n=e,r;if(ie(ne,n)&&(r=ne[n],n=`%`+r[0]+`%`),ie(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(le(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fe(e),r=n.length>0?n[0]:``,i=pe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],oe(n,ae([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ce(p,0,1),h=ce(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+`%`,ie(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=ie(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),Tr=F({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=wr(),r=br(),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}}}),Er=F({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=ur();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),Dr=F({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=Tr(),r=Er()(),i=Cr(),a=cr(),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}}),Or=F({"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)}}}),kr=F({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=Tr(),r=Dr(),i=n(`RegExp.prototype.exec`),a=Zn();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),Ar=F({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=Tr(),r=n(`Object.prototype.toString`),i=dr()(),a=kr();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`&&s(o(e))},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}}),jr=Hn(Dr()),Mr=Hn(Or()),Nr=Hn(Ar()),Pr=typeof global==`object`&&global&&global.Object===Object&&global,Fr=typeof self==`object`&&self&&self.Object===Object&&self,Ir=Pr||Fr||Function(`return this`)(),Lr=Ir.Symbol,Rr=Object.prototype,zr=Rr.hasOwnProperty,Br=Rr.toString,Vr=Lr?Lr.toStringTag:void 0,Hr=Rt,Ur=Object.prototype.toString,Wr=zt,Gr=`[object Null]`,Kr=`[object Undefined]`,qr=Lr?Lr.toStringTag:void 0,Jr=Bt,Yr=Vt,Xr=`[object Symbol]`,Zr=Ht,Qr=Ut,$r=Array.isArray,ei=1/0,ti=Lr?Lr.prototype:void 0,ni=ti?ti.toString:void 0,ri=Wt,ii=Gt,ai=`[object AsyncFunction]`,oi=`[object Function]`,si=`[object GeneratorFunction]`,ci=`[object Proxy]`,li=Kt,ui=Ir[`__core-js_shared__`],di=(function(){var e=/[^.]+$/.exec(ui&&ui.keys&&ui.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),fi=qt,pi=Function.prototype.toString,mi=Jt,hi=/[\\^$.*+?()[\]{}|]/g,gi=/^\[object .+?Constructor\]$/,_i=Function.prototype,vi=Object.prototype,yi=_i.toString,bi=vi.hasOwnProperty,xi=RegExp(`^`+yi.call(bi).replace(hi,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Si=Yt,Ci=Xt,wi=Zt,Ti=Qt,Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Di=/^\w*$/,Oi=$t,ki=wi(Object,`create`),Ai=en,ji=tn,Mi=`__lodash_hash_undefined__`,Ni=Object.prototype.hasOwnProperty,Pi=nn,Fi=Object.prototype.hasOwnProperty,Ii=rn,Li=`__lodash_hash_undefined__`,Ri=an,on.prototype.clear=Ai,on.prototype.delete=ji,on.prototype.get=Pi,on.prototype.has=Ii,on.prototype.set=Ri,zi=on,Bi=sn,Vi=cn,Hi=Array.prototype.splice,Ui=ln,Wi=un,Gi=dn,Ki=fn,pn.prototype.clear=Bi,pn.prototype.delete=Ui,pn.prototype.get=Wi,pn.prototype.has=Gi,pn.prototype.set=Ki,qi=pn,Ji=wi(Ir,`Map`),Yi=mn,Xi=hn,Zi=gn,Qi=_n,$i=vn,ea=yn,ta=bn,xn.prototype.clear=Yi,xn.prototype.delete=Qi,xn.prototype.get=$i,xn.prototype.has=ea,xn.prototype.set=ta,na=xn,ra=`Expected a function`,Sn.Cache=na,ia=Sn,aa=500,oa=Cn,sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ca=/\\(\\)?/g,la=oa(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(sa,function(e,n,r,i){t.push(r?i.replace(ca,`$1`):n||e)}),t}),ua=wn,da=Tn,fa=1/0,pa=En,ma=Dn,ha=On,ga=Lt,_a=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,va=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),ya=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 _a.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,jr.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,Mr.default)(o))return;if((0,Nr.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:kn(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}}},ba=function(e){let t=[],n;return function(r,i){if(r===``&&(n=i,t.forEach(({target:e,container:t,replacement:r})=>{let i=va(r)?JSON.parse(r):r.split(`.`);t[e]=i.length===0?n:ha(n,i)})),r===`_constructor-name_`)return i;if(ga(i)&&i.__isConvertedError__){let{message:e,...t}=i.errorProperties,n=Error(e);return Object.assign(n,t),n}if(typeof i==`string`&&i.startsWith(`_regexp_`)&&e.allowRegExp){let[,e,t]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof i==`string`&&i.startsWith(`_date_`)&&e.allowDate?new Date(i.replace(`_date_`,``)):typeof i==`string`&&i.startsWith(`_duplicate_`)?(t.push({target:r,container:this,replacement:i.replace(/^_duplicate_/,``)}),null):typeof i==`string`&&i.startsWith(`_symbol_`)&&e.allowSymbol?Symbol(i.replace(`_symbol_`,``)):typeof i==`string`&&i.startsWith(`_gsymbol_`)&&e.allowSymbol?Symbol.for(i.replace(`_gsymbol_`,``)):typeof i==`string`&&i===`_-Infinity_`?-1/0:typeof i==`string`&&i===`_Infinity_`?1/0:typeof i==`string`&&i===`_NaN_`?NaN:typeof i==`string`&&i.startsWith(`_bigint_`)&&typeof BigInt==`function`?BigInt(i.replace(`_bigint_`,``)):i}},xa={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Sa=(e,t={})=>{let n={...xa,...t};return JSON.stringify(kn(e),ya(n),t.space)},Ca=()=>{let e=new Map;return function t(n){ga(n)&&Object.entries(n).forEach(([r,i])=>{i===`_undefined_`?n[r]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(n)&&n.forEach((r,i)=>{r===`_undefined_`?(e.set(r,!0),n[i]=void 0):e.get(r)||(e.set(r,!0),t(r))})}},wa=(e,t={})=>{let n={...xa,...t},r=JSON.parse(e,ba(n));return Ca()(r),r}})))()}function Ea(e,t){let n=t.status===`pending`,r=t.loadStatus===`loading`;return{data:e,error:t.error,status:t.status,loadStatus:t.loadStatus,isPending:n,isSuccess:t.status===`success`,isError:t.status===`error`,isLoading:r,isInitialLoading:n&&r&&e===void 0,isRefreshing:r&&!n}}function Da(e){return e instanceof Error?e:Error(String(e))}function Oa(e,t,n){try{let r=e.get(t);return Ea(n?n(r):r,{status:`pending`,error:void 0,loadStatus:`loading`})}catch(e){return Ea(void 0,{status:`error`,error:Da(e),loadStatus:`idle`})}}function ka(e){globalThis.__STORYBOOK_ADDONS_CHANNEL__=e}function Aa(){let e=globalThis.__STORYBOOK_ADDONS_CHANNEL__;return e&&(La=e),La??null}function ja(e){La=e??void 0,ka(La)}function Ma(){ja(new Ia({}))}function Na(){Aa()||Ma()}var Pa,Fa,Ia,La;function Ra(){return(Ra=t((()=>{Pa=e=>e.transports!==void 0,Fa=()=>Math.random().toString(16).slice(2),Ia=class{constructor(e={}){this.sender=Fa(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,Pa(e)?(this.transports=e.transports||[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let n={type:e,args:t,from:this.sender},r={};t.length>=1&&t[0]&&t[0].options&&(r=t[0].options);let i=()=>{this.transports.forEach(e=>{e.send(n,r)}),this.handleEvent(n)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let n=this.onceListener(e,t);this.addListener(e,n)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let n=this.listeners(e);n&&(this.events[e]=n.filter(e=>e!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(t=>{t.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let n=(...r)=>(this.removeListener(e,n),t(...r));return n}},typeof window>`u`&&Na()})))()}function za(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:So}function Ba(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function Va(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??Ba(a),c={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:`R`}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},l=e.kind===`schema`,u=i?.message??e.message??(e.reference,c.lang,void 0)??(l?(c.lang,void 0):null)??r.message??(c.lang,void 0);u!==void 0&&(c.message=typeof u==`function`?u(c):u),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function Ha(e){let t=Co.get(e);return t||(t={version:1,vendor:`valibot`,validate(t){return e[`~run`]({value:t},za())}},Co.set(e,t)),t}function Ua(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!==`__proto__`&&t!==`prototype`&&t!==`constructor`}function Wa(e,t){return{kind:`validation`,type:`min_value`,reference:Wa,async:!1,expects:`>=${e instanceof Date?e.toJSON():Ba(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&Va(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():Ba(e.value)}),e}}}function Ga(e){return{kind:`validation`,type:`safe_integer`,reference:Ga,async:!1,expects:null,requirement:Number.isSafeInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&Va(this,`safe integer`,e,t),e}}}function Ka(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function qa(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function Ja(e,t){return{kind:`schema`,type:`array`,reference:Ja,expects:`Array`,async:!1,item:e,message:t,get"~standard"(){return Ha(this)},"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.item[`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else Va(this,`type`,e,t);return e}}}function Ya(e,t){return{kind:`schema`,type:`custom`,reference:Ya,expects:`unknown`,async:!1,check:e,message:t,get"~standard"(){return Ha(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:Va(this,`type`,e,t),e}}}function Xa(e,t){return{kind:`schema`,type:`loose_object`,reference:Xa,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return Ha(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:qa(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Ka(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(Va(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly)for(let t in n)Ua(n,t)&&!(t in this.entries)&&(e.value[t]=n[t])}else Va(this,`type`,e,t);return e}}}function Za(e){return{kind:`schema`,type:`number`,reference:Za,expects:`number`,async:!1,message:e,get"~standard"(){return Ha(this)},"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:Va(this,`type`,e,t),e}}}function Qa(e,t){return{kind:`schema`,type:`object`,reference:Qa,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return Ha(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:qa(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Ka(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(Va(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}}else Va(this,`type`,e,t);return e}}}function $a(e,t){return{kind:`schema`,type:`optional`,reference:$a,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return Ha(this)},"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=qa(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}}}function eo(e,t,n){return{kind:`schema`,type:`record`,reference:eo,expects:`Object`,async:!1,key:e,value:t,message:n,get"~standard"(){return Ha(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in n)if(Ua(n,r)){let i=n[r],a=this.key[`~run`]({value:r},t);if(a.issues){let o={type:`object`,origin:`key`,input:n,key:r,value:i};for(let t of a.issues)t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}let o=this.value[`~run`]({value:i},t);if(o.issues){let a={type:`object`,origin:`value`,input:n,key:r,value:i};for(let t of o.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}(!a.typed||!o.typed)&&(e.typed=!1),a.typed&&(e.value[a.value]=o.value)}}else Va(this,`type`,e,t);return e}}}function to(e){return{kind:`schema`,type:`string`,reference:to,expects:`string`,async:!1,message:e,get"~standard"(){return Ha(this)},"~run"(e,t){return typeof e.value==`string`?e.typed=!0:Va(this,`type`,e,t),e}}}function no(e){return{kind:`schema`,type:`undefined`,reference:no,expects:`undefined`,async:!1,message:e,get"~standard"(){return Ha(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:Va(this,`type`,e,t),e}}}function ro(){return{kind:`schema`,type:`unknown`,reference:ro,expects:`unknown`,async:!1,get"~standard"(){return Ha(this)},"~run"(e){return e.typed=!0,e}}}function io(e){return{kind:`schema`,type:`void`,reference:io,expects:`void`,async:!1,message:e,get"~standard"(){return Ha(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:Va(this,`type`,e,t),e}}}function ao(...e){return{...e[0],pipe:e,get"~standard"(){return Ha(this)},"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r[`~run`](t,n))}return t}}}function oo(){if(Do>1)Do--;else{var e,t=!1;for((function(){var e=Ao;for(Ao=void 0;e!==void 0;)e.S.v===e.v&&(e.S.i=e.i),e=e.o})();Eo!==void 0;){var n=Eo;for(Eo=void 0,Oo++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&fo(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(Oo=0,Do--,t)throw e}}function so(e){var t=To;To=void 0;try{return e()}finally{To=t}}function co(e){if(To!==void 0){var t=e.n;if(t===void 0||t.t!==To)return t={i:0,S:e,p:To.s,n:void 0,t:To,e:void 0,x:void 0,r:t},To.s!==void 0&&(To.s.n=t),To.s=t,e.n=t,32&To.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=To.s,t.n=void 0,To.s.n=t,To.s=t),t}}function lo(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function uo(e,t){return new lo(e,t)}function fo(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function po(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function mo(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function ho(e,t){lo.call(this,void 0),this.x=e,this.s=void 0,this.g=jo-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function go(e,t){return new ho(e,t)}function _o(e){var t=e.m;if(e.m=void 0,typeof t==`function`){Do++;var n=To;To=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,vo(e),t}finally{To=n,oo()}}}function vo(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,_o(e)}function yo(e){if(To!==this)throw Error(`Out-of-order effect`);mo(this),To=e,this.f&=-2,8&this.f&&vo(this),oo()}function bo(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name}function xo(e,t){var n=new bo(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo;function Jo(){return(Jo=t((()=>{So={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0},Co=new WeakMap,ao(Za(),Ga(),Wa(0)),$a(ro()),$a(ro()),wo=Symbol.for(`preact-signals`),To=void 0,Eo=void 0,Do=0,Oo=0,ko=0,Ao=void 0,jo=0,lo.prototype.brand=wo,lo.prototype.h=function(){return!0},lo.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n===void 0?so(function(){var e;(e=t.W)==null||e.call(t)}):n.e=e)},lo.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&so(function(){var e;(e=t.Z)==null||e.call(t)}))}},lo.prototype.subscribe=function(e){var t=this;return xo(function(){var n=t.value,r=To;To=void 0;try{e(n)}finally{To=r}},{name:`sub`})},lo.prototype.valueOf=function(){return this.value},lo.prototype.toString=function(){return this.value+``},lo.prototype.toJSON=function(){return this.value},lo.prototype.peek=function(){var e=this;return so(function(){return e.value})},Object.defineProperty(lo.prototype,"value",{get:function(){var e=co(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Oo>100)throw Error(`Cycle detected`);(function(e){Do!==0&&Oo===0&&e.l!==ko&&(e.l=ko,Ao={S:e,v:e.v,i:e.i,o:Ao})})(this),this.v=e,this.i++,jo++,Do++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{oo()}}}}),ho.prototype=new lo,ho.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===jo))return!0;if(this.g=jo,this.f|=1,this.i>0&&!fo(this))return this.f&=-2,!0;var e=To;try{po(this),To=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return To=e,mo(this),this.f&=-2,!0},ho.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}lo.prototype.S.call(this,e)},ho.prototype.U=function(e){if(this.t!==void 0&&(lo.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},ho.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(ho.prototype,"value",{get:function(){if(1&this.f)throw Error(`Cycle detected`);var e=co(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),bo.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t==`function`&&(this.m=t)}finally{e()}},bo.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,_o(this),po(this),Do++;var e=To;return To=this,yo.bind(this,e)},bo.prototype.N=function(){2&this.f||(this.f|=2,this.u=Eo,Eo=this)},bo.prototype.d=function(){this.f|=8,1&this.f||vo(this)},bo.prototype.dispose=function(){this.d()},Mo=new WeakMap,No=new WeakMap,Po=new WeakMap,Fo=new WeakSet,Io=new WeakMap,Lo=/^\$/,Ro=Object.getOwnPropertyDescriptor,zo=!1,Bo=function(e,t){var n=new Proxy(e,t);return Fo.add(n),n},Vo=function(){throw Error(`Don't mutate the signals directly.`)},Ho=function(e){return function(t,n,r){if(zo)return Reflect.get(t,n,r);var i=e||n[0]===`$`;if(!e&&i&&Array.isArray(t)){if(n===`$`)return Po.has(t)||Po.set(t,Bo(t,Wo)),Po.get(t);i=n===`$length`}Mo.has(r)||Mo.set(r,new Map);var a=Mo.get(r),o=i?n.replace(Lo,``):n;if(a.has(o)||typeof Ro(t,o)?.get!=`function`){var s=Reflect.get(t,o,r);if(i&&typeof s==`function`)return;if(typeof o==`symbol`&&Go.has(o))return s;a.has(o)||(qo(s)&&(No.has(s)||No.set(s,Bo(s,Uo)),s=No.get(s)),a.set(o,uo(s)))}else a.set(o,go(function(){return Reflect.get(t,o,r)}));return i?a.get(o):a.get(o).value}},Uo={get:Ho(!1),set:function(e,t,n,r){if(typeof Ro(e,t)?.set==`function`)return Reflect.set(e,t,n,r);Mo.has(r)||Mo.set(r,new Map);var i=Mo.get(r);if(t[0]===`$`){n instanceof lo||Vo();var a=t.replace(Lo,``);return i.set(a,n),Reflect.set(e,a,n.peek(),r)}var o=n;qo(n)&&(No.has(n)||No.set(n,Bo(n,Uo)),o=No.get(n));var s=!(t in e),c=Reflect.set(e,t,n,r);return i.has(t)?i.get(t).value=o:i.set(t,uo(o)),s&&Io.has(e)&&Io.get(e).value++,Array.isArray(e)&&i.has(`length`)&&(i.get(`length`).value=e.length),c},deleteProperty:function(e,t){t[0]===`$`&&Vo();var n=Mo.get(No.get(e)),r=Reflect.deleteProperty(e,t);return n&&n.has(t)&&(n.get(t).value=void 0),Io.has(e)&&Io.get(e).value++,r},ownKeys:function(e){return Io.has(e)||Io.set(e,uo(0)),Io._=Io.get(e).value,Reflect.ownKeys(e)}},Wo={get:Ho(!0),set:Vo,deleteProperty:Vo},Go=new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return typeof e==`symbol`})),Ko=new Set([Object,Array]),qo=function(e){return typeof e==`object`&&!!e&&Ko.has(e.constructor)&&!Fo.has(e)}})))()}function Yo(e,t,n){for(n of e.keys())if(Xo(n,t))return n}function Xo(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Xo(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i==`object`&&(i=Yo(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i==`object`&&(i=Yo(t,i),!i)||!Xo(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if($o.call(e,n)&&++r&&!$o.call(t,n)||!(n in t)||!Xo(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Zo(e,t){let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i];t(a)?n.push(a):r.push(a)}return[n,r]}function Qo(e,t){let n={};for(let r=0;r<e.length;r++){let i=e[r],a=t(i);n[a]=(n[a]??0)+1}return n}var $o;function es(){return(es=t((()=>{o(),o(),$o=Object.prototype.hasOwnProperty})))()}function ts(){return new Ia({transport:{setHandler:()=>{},send:()=>{}}})}var ns,rs,is;function as(){return(as=t((()=>{Ra(),ns={AUTODOCS:`autodocs`,ATTACHED_MDX:`attached-mdx`,UNATTACHED_MDX:`unattached-mdx`,PLAY_FN:`play-fn`,TEST_FN:`test-fn`,DEV:`dev`,TEST:`test`,MANIFEST:`manifest`},rs={_docs:(e,t)=>t?e.type!==`docs`:e.type===`docs`,_play:(e,t)=>t?e.type!==`story`||!e.tags?.includes(ns.PLAY_FN):e.type===`story`&&!!e.tags?.includes(ns.PLAY_FN),_test:(e,t)=>t?e.type!==`story`||e.subtype!==`test`:e.type===`story`&&e.subtype===`test`},is=e=>(t,n)=>n?!t.tags?.includes(e):!!t.tags?.includes(e)})))()}function os(e){let t=e.length;if(t===0)return``;let n=``,r=0,i=0;outer:for(;i<t;i++){let a=e.charCodeAt(i);for(;a<128;){if(gs[a]!==1&&(r<i&&(n+=e.slice(r,i)),r=i+1,n+=hs[a]),++i===t)break outer;a=e.charCodeAt(i)}if(r<i&&(n+=e.slice(r,i)),a<2048){r=i+1,n+=hs[192|a>>6]+hs[128|a&63];continue}if(a<55296||a>=57344){r=i+1,n+=hs[224|a>>12]+hs[128|a>>6&63]+hs[128|a&63];continue}if(++i,i>=t)throw Error(`URI malformed`);let o=e.charCodeAt(i)&1023;r=i+1,a=65536+((a&1023)<<10|o),n+=hs[240|a>>18]+hs[128|a>>12&63]+hs[128|a>>6&63]+hs[128|a&63]}return r===0?e:r<t?n+e.slice(r):n}function ss(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function cs(e,t,n,r,i){if(ss(t))return e;let a=e[t];return typeof a==`object`&&a?a:e[t]=!r&&(i||typeof n==`number`||typeof n==`string`&&n*0==0&&n.indexOf(`.`)===-1)?[]:{}}function ls(e,t,n=0,r,i){let{nestingSyntax:a=bs.nestingSyntax,arrayRepeat:o=bs.arrayRepeat,arrayRepeatSyntax:s=bs.arrayRepeatSyntax,nesting:c=bs.nesting,delimiter:l=bs.delimiter,valueSerializer:u=bs.valueSerializer,shouldSerializeObject:d=bs.shouldSerializeObject}=t,f=typeof l==`number`?String.fromCharCode(l):l,p=i===!0&&o,m=a===`dot`||a===`js`&&!i;if(n>xs)return``;let h=``,g=!0,_=!1;for(let i in e){let a=e[i];if(a===void 0)continue;let l;r?(l=r,p?s===`bracket`&&(l+=Ss):m?(l+=Ts,l+=i):(l+=Cs,l+=i,l+=ws)):l=i,g||(h+=f),typeof a==`object`&&a&&!d(a)?(_=a.pop!==void 0,(c||o&&_)&&(h+=ls(a,t,n+1,l,_))):(h+=os(l),h+=`=`,h+=u(a,i)),g&&=!1}return h}function us(e){let t=e.indexOf(`%`);if(t===-1)return e;let n=e.length,r=``,i=0,a=0,o=t,s=12;for(;t>-1&&t<n;){let c=ds(e[t+1],4)|ds(e[t+2],0),l=Es[c];if(s=Es[256+s+l],a=a<<6|c&Es[364+l],s===12)r+=e.slice(i,o),r+=a<=65535?String.fromCharCode(a):String.fromCharCode(55232+(a>>10),56320+(a&1023)),a=0,i=t+3,t=o=e.indexOf(`%`,i);else{if(s===0)return null;if(t+=3,t<n&&e.charCodeAt(t)===37)continue;return null}}return r+e.slice(i)}function ds(e,t){let n=Ds[e];return n===void 0?255:n<<t}function fs(e,t,n,r,i){let a=e.substring(t,n);return r&&(a=a.replace(Os,` `)),i&&(a=us(a)||a),a}function ps(e,t){let{valueDeserializer:n=bs.valueDeserializer,keyDeserializer:r=bs.keyDeserializer,arrayRepeatSyntax:i=bs.arrayRepeatSyntax,nesting:a=bs.nesting,arrayRepeat:o=bs.arrayRepeat,nestingSyntax:s=bs.nestingSyntax,delimiter:c=bs.delimiter}=t??{},l=typeof c==`string`?c.charCodeAt(0):c,u=s===`js`,d=new ks;if(typeof e!=`string`)return d;let f=e.length,p=``,m=-1,h=-1,g=-1,_=d,v,y=``,b=``,x=!1,S=!1,C=!1,w=!1,T=!1,E=!1,D=0,O=-1,k=-1,A=-1;for(let t=0;t<f+1;t++){if(D=t===f?l:e.charCodeAt(t),D===l){if(E=h>m,E||(h=t),g!==h-1&&(b=fs(e,g+1,O>-1?O:h,C,x),y=r(b),v!==void 0&&(_=cs(_,v,y,u&&T,void 0))),E||y!==``){E&&(p=e.slice(h+1,t),w&&(p=p.replace(Os,` `)),S&&(p=us(p)||p));let r=n(p,y);if(o){let e=_[y];e===void 0?O>-1?_[y]=[r]:_[y]=r:e.pop?e.push(r):_[y]=[e,r]}else _[y]=r}p=``,m=t,h=t,x=!1,S=!1,C=!1,w=!1,T=!1,O=-1,g=t,_=d,v=void 0,y=``}else D===93?(o&&i===`bracket`&&A===91&&(O=k),a&&(s===`index`||u)&&h<=m&&(g!==k&&(b=fs(e,g+1,t,C,x),y=r(b),v!==void 0&&(_=cs(_,v,y,void 0,void 0)),v=y,C=!1,x=!1),g=t,T=!1)):D===46?a&&(s===`dot`||u)&&h<=m&&(g!==k&&(b=fs(e,g+1,t,C,x),y=r(b),v!==void 0&&(_=cs(_,v,y,u)),v=y,C=!1,x=!1),T=!0,g=t):D===91?a&&(s===`index`||u)&&h<=m&&(g!==k&&(b=fs(e,g+1,t,C,x),y=r(b),u&&v!==void 0&&(_=cs(_,v,y,u)),v=y,C=!1,x=!1,T=!1),g=t):D===61?h<=m?h=t:S=!0:D===43?h>m?w=!0:C=!0:D===37&&(h>m?S=!0:x=!0);k=t,A=D}return d}function ms(e,t){return typeof e!=`object`||!e?``:ls(e,t??{})}var hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks;function As(){return(As=t((()=>{hs=Array.from({length:256},(e,t)=>`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase()),gs=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]),_s=e=>{switch(typeof e){case`string`:return os(e);case`bigint`:case`boolean`:return``+e;case`number`:if(Number.isFinite(e))return e<1e21?``+e:os(``+e)}return e instanceof Date?os(e.toISOString()):``},vs=e=>e instanceof Date,ys=e=>e,bs={nesting:!0,nestingSyntax:`dot`,arrayRepeat:!1,arrayRepeatSyntax:`repeat`,delimiter:38,valueDeserializer:ys,valueSerializer:_s,keyDeserializer:ys,shouldSerializeObject:vs},xs=20,Ss=`[]`,Cs=`[`,ws=`]`,Ts=`.`,Es=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7],Ds={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},Os=/\+/g,ks=function(){},ks.prototype=Object.create(null)})))()}function js(e,t){let n=e?.trim();return n?`${n}
|
|
19
|
+
|
|
20
|
+
${t}`:t}function Ms(e,t){return e?.stories[t]}function Ns(e,t){let n=e?.stories[t];if(n?.snippet!==void 0)return js(e?.import,n.snippet)}var Ps;function Fs(){return(Fs=t((()=>{Ps=e=>e})))()}function Is(e){return`${e}.json`}var Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks;function qs(){return(qs=t((()=>{Jo(),Fs(),Ls=`storybook/measure-addon`,`${Ls}`,`${Ls}`,`${Ls}`,`${Ls}`,Rs=Qa({id:to()}),zs=Ya(e=>typeof e==`object`&&!!e&&!Array.isArray(e)),Bs=Qa({name:to(),message:to()}),Vs=eo(to(),Ja(to())),Hs={name:to(),path:to(),description:$a(to()),summary:$a(to()),jsDocTags:Vs,argTypes:$a(zs),error:$a(Bs)},Us={...Hs,import:$a(to())},Ws=Xa(Us),Gs=Xa({id:to(),...Hs,subcomponents:$a(eo(to(),Ws))}),Ks=$a(Gs),Ps({id:`core/docgen`,description:`Component documentation (name, description, props, JSDoc tags) keyed by component id.`,initialState:{components:{}},queries:{docgen:{description:`Returns the docgen payload for one component id, or undefined when not loaded.`,input:Rs,output:Ks,handler:(e,t)=>t.self.state.components[e.id],load:async(e,t)=>{await t.self.commands.extractDocgen(e)},staticPath:e=>Is(e.id)},docgenForAllComponents:{description:`Returns docgen payloads for every component in the story index.`,input:io(),output:eo(to(),Gs),handler:(e,t)=>t.self.state.components,load:async(e,t)=>{await t.self.commands.extractAllDocgen(void 0)}}},commands:{extractDocgen:{description:`Resolves the story entry for a component id, runs the registered provider chain, writes the result into state, and returns it (or undefined when no provider produced docgen).`,input:Rs,output:Ks},extractAllDocgen:{description:"Extracts docgen for every component id in the story index by invoking `extractDocgen` for each.",input:no(),output:io()}}})})))()}function Js(){return(Js=t((()=>{})))()}var Ys,Xs;function Zs(){return(Zs=t((()=>{Ys=`storybook/actions`,`${Ys}`,Xs=`${Ys}/action-event`,`${Ys}`})))()}function Qs(e,t={}){let n={...$s,...t},r=function(...r){if(t.implicit){let t=(`__STORYBOOK_PREVIEW__`in tc?tc.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(e=>e.phase===`playing`||e.phase===`rendering`);if(t){let n=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,r=new ec({phase:t.phase,name:e,deprecated:n});if(n)console.warn(r);else throw r}}let i=nc.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),o=r.map(ac),s={id:a,count:0,data:{name:e,args:r.length>1?o:o[0]},options:{...n,maxDepth:5+(n.depth||3)}};i.emit(Xs,s)};return r.isAction=!0,r.implicit=t.implicit,r}var $s,ec,tc,nc,rc,ic,ac;function oc(){return(oc=t((()=>{Zs(),$s={depth:10,clearOnStoryChange:!0,limit:50},{ImplicitActionsDuringRendering:ec}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:tc}=__STORYBOOK_MODULE_GLOBAL__,{addons:nc}=__STORYBOOK_MODULE_PREVIEW_API__,rc=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:rc(n,t)},ic=e=>!!(typeof e==`object`&&e&&rc(e,e=>/^Synthetic(?:Base)?Event$/.test(e.constructor.name))&&typeof e.persist==`function`),ac=e=>{if(ic(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,`view`),r=n?.value;return typeof r==`object`&&r?.constructor.name===`Window`&&Object.defineProperty(t,"view",{...n,value:Object.create(r.constructor.prototype)}),t}return e}})))()}var sc;function cc(){return(cc=t((()=>{sc=`storybook/background`,`${sc}`})))()}var lc;function uc(){return(uc=t((()=>{lc={CALL:`storybook/instrumenter/call`,SYNC:`storybook/instrumenter/sync`,START:`storybook/instrumenter/start`,BACK:`storybook/instrumenter/back`,GOTO:`storybook/instrumenter/goto`,NEXT:`storybook/instrumenter/next`,END:`storybook/instrumenter/end`}})))()}function dc(e){return String(e)}function fc(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function pc(e=!1){let t=fc(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of cd)i[e]=t?r(a(n[0]),a(n[1]),n[2]):dc;return i}function mc(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function hc(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function gc(e,t,n,r,i,a,o=`: `){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=`…`;break}let n=a(l.value[0],t,u,r,i),d=a(l.value[1],t,u,r,i);s+=n+o+d,l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function _c(e,t,n,r,i,a){let o=``,s=0,c=e.next();if(!c.done){o+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(o+=l,s++===t.maxWidth){o+=`…`;break}o+=a(c.value,t,l,r,i),c=e.next(),c.done?t.min||(o+=`,`):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function vc(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function yc(e,t,n,r,i,a){let o=``,s=hc(e,t.compareKeys);if(s.length>0){o+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<s.length;n++){let l=s[n],u=a(l,t,c,r,i),d=a(e[l],t,c,r,i);o+=`${c+u}: ${d}`,n<s.length-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function bc(e){return gd.has(e)||_d.test(e)}function xc(e){return e.constructor.name===`NamedNodeMap`}function Sc(e){return e.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}function Cc(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
|
|
21
|
+
`)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function wc(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?Tc(e,t):a(e,t,n,r,i))).join(``)}function Tc(e,t){let n=t.colors.content;return n.open+Sc(e)+n.close}function Ec(e,t){let n=t.colors.comment;return`${n.open}<!--${Sc(e)}-->${n.close}`}function Dc(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function Oc(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}function kc(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function Ac(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||kc(e);return n===xd&&(Td.test(t)||i)||n===Sd&&t===`Text`||n===Cd&&t===`Comment`||n===wd&&t===`DocumentFragment`}function jc(e){return e.nodeType===Sd}function Mc(e){return e.nodeType===Cd}function Nc(e){return e.nodeType===wd}function Pc(e,t,n,r,i,a,o){return++r>t.maxDepth?zd(Rd(o)):`${Rd(o)+Bd}{${gc(e.entries(),t,n,r,i,a)}}`}function Fc(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function Ic(e,t,n,r,i,a){let o=Rd(e._name||`Record`);return++r>t.maxDepth?zd(o):`${o+Bd}{${gc(Fc(e),t,n,r,i,a)}}`}function Lc(e,t,n,r,i,a){let o=Rd(`Seq`);return++r>t.maxDepth?zd(o):e[jd]?`${o+Bd}{${e._iter||e._object?gc(e.entries(),t,n,r,i,a):Vd}}`:`${o+Bd}[${e._iter||e._array||e._collection||e._iterable?_c(e.values(),t,n,r,i,a):Vd}]`}function Rc(e,t,n,r,i,a,o){return++r>t.maxDepth?zd(Rd(o)):`${Rd(o)+Bd}[${_c(e.values(),t,n,r,i,a)}]`}function zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Bc(){if(qd)return Kd;qd=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return Kd.ContextConsumer=a,Kd.ContextProvider=o,Kd.Element=e,Kd.ForwardRef=s,Kd.Fragment=n,Kd.Lazy=d,Kd.Memo=u,Kd.Portal=t,Kd.Profiler=i,Kd.StrictMode=r,Kd.Suspense=c,Kd.SuspenseList=l,Kd.isContextConsumer=function(e){return m(e)===a},Kd.isContextProvider=function(e){return m(e)===o},Kd.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},Kd.isForwardRef=function(e){return m(e)===s},Kd.isFragment=function(e){return m(e)===n},Kd.isLazy=function(e){return m(e)===d},Kd.isMemo=function(e){return m(e)===u},Kd.isPortal=function(e){return m(e)===t},Kd.isProfiler=function(e){return m(e)===i},Kd.isStrictMode=function(e){return m(e)===r},Kd.isSuspense=function(e){return m(e)===c},Kd.isSuspenseList=function(e){return m(e)===l},Kd.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&!!e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0)},Kd.typeOf=m,Kd}function Vc(){return Jd||(Jd=1,Gd.exports=Bc()),Gd.exports}function Hc(){if(Qd)return I;Qd=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return I.ContextConsumer=o,I.ContextProvider=a,I.Element=e,I.ForwardRef=c,I.Fragment=n,I.Lazy=f,I.Memo=d,I.Portal=t,I.Profiler=i,I.StrictMode=r,I.Suspense=l,I.SuspenseList=u,I.isAsyncMode=function(){return!1},I.isConcurrentMode=function(){return!1},I.isContextConsumer=function(e){return h(e)===o},I.isContextProvider=function(e){return h(e)===a},I.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},I.isForwardRef=function(e){return h(e)===c},I.isFragment=function(e){return h(e)===n},I.isLazy=function(e){return h(e)===f},I.isMemo=function(e){return h(e)===d},I.isPortal=function(e){return h(e)===t},I.isProfiler=function(e){return h(e)===i},I.isStrictMode=function(e){return h(e)===r},I.isSuspense=function(e){return h(e)===l},I.isSuspenseList=function(e){return h(e)===u},I.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0)},I.typeOf=h,I}function Uc(){return $d||($d=1,Zd.exports=Hc()),Zd.exports}function Wc(e,t=[]){if(Array.isArray(e))for(let n of e)Wc(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function Gc(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(nf.isFragment(e))return`React.Fragment`;if(nf.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(nf.isContextProvider(e))return`Context.Provider`;if(nf.isContextConsumer(e))return`Context.Consumer`;if(nf.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(nf.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function Kc(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}function qc(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}function Jc(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function Yc(e){return typeof window<`u`&&e===window}function Xc(e){return e===`[object Array]`||e===`[object ArrayBuffer]`||e===`[object DataView]`||e===`[object Float32Array]`||e===`[object Float64Array]`||e===`[object Int8Array]`||e===`[object Int16Array]`||e===`[object Int32Array]`||e===`[object Uint8Array]`||e===`[object Uint8ClampedArray]`||e===`[object Uint16Array]`||e===`[object Uint32Array]`}function Zc(e){return Object.is(e,-0)?`-0`:String(e)}function Qc(e){return`${e}n`}function $c(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function el(e){return String(e).replace(hf,`Symbol($1)`)}function tl(e){return`[${pf.call(e)}]`}function nl(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return Zc(e);if(i===`bigint`)return Qc(e);if(i===`string`)return r?`"${e.replaceAll(/"|\\/g,`\\$&`)}"`:`"${e}"`;if(i===`function`)return $c(e,t);if(i===`symbol`)return el(e);let a=df.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?$c(e,t):a===`[object Symbol]`?el(e):a===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:ff.call(e):a===`[object Error]`?tl(e):a===`[object RegExp]`?n?mf.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):mf.call(e):e instanceof Error?tl(e):null}function rl(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return sl(e.toJSON(),t,n,r,i,!0);let c=df.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${vc(e,t,n,r,i,sl)}]`:Xc(c)?o?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${vc(e,t,n,r,i,sl)}]`:c===`[object Map]`?o?`[Map]`:`Map {${gc(e.entries(),t,n,r,i,sl,` => `)}}`:c===`[object Set]`?o?`[Set]`:`Set {${_c(e.values(),t,n,r,i,sl)}}`:o||Yc(e)?`[${Jc(e)}]`:`${s||!t.printBasicPrototype&&Jc(e)===`Object`?``:`${Jc(e)} `}{${yc(e,t,n,r,i,sl)}}`}function il(e){return e.serialize!=null}function al(e,t,n,r,i,a){let o;try{o=il(e)?e.serialize(t,n,r,i,a,sl):e.print(t,e=>sl(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(gf,`
|
|
22
|
+
${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new _f(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function ol(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new _f(e.message,e.stack)}return null}function sl(e,t,n,r,i,a){let o=ol(t.plugins,e);if(o!==null)return al(o,e,t,n,r,i);let s=nl(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?rl(e,t,n,r,i,a):s}function cl(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(xf,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function ll(){return bf.reduce((e,t)=>{let n=yf[t],r=n&&ld[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function ul(){return bf.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function dl(e){return e?.printFunctionName??xf.printFunctionName}function fl(e){return e?.escapeRegex??xf.escapeRegex}function pl(e){return e?.escapeString??xf.escapeString}function ml(e){return{callToJSON:e?.callToJSON??xf.callToJSON,colors:e?.highlight?ll():ul(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:xf.compareKeys,escapeRegex:fl(e),escapeString:pl(e),indent:e?.min?``:hl(e?.indent??xf.indent),maxDepth:e?.maxDepth??xf.maxDepth,maxWidth:e?.maxWidth??xf.maxWidth,min:e?.min??xf.min,plugins:e?.plugins??xf.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:dl(e),spacingInner:e?.min?` `:`
|
|
23
|
+
`,spacingOuter:e?.min?``:`
|
|
24
|
+
`}}function hl(e){return Array.from({length:e+1}).join(` `)}function gl(e,t){if(t&&(cl(t),t.plugins)){let n=ol(t.plugins,e);if(n!==null)return al(n,e,ml(t),``,0,[])}let n=nl(e,dl(t),fl(t),pl(t));return n===null?rl(e,ml(t),``,0,[]):n}function _l(e,t){let n=Cf[wf[t]]||Cf[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function vl({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=_l),d}function yl(e){return e>=`\ud800`&&e<=`\udbff`}function bl(e,t,n=Tf){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&yl(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function xl(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${Tf}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${Tf}(${e.length-l-1})`;break}c=``}return`${o}${c}`}function Sl(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function Cl([e,t],n){return n.truncate-=2,typeof e==`string`?e=Sl(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function wl(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=xl(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=xl(n.map(t=>[t,e[t]]),t,Cl)),`[ ${r}${i?`, ${i}`:``} ]`}function Tl(e,t){let n=Ef(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(bl(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${Tf}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=xl(r.map(t=>[t,e[t]]),t,Cl)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function El(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${bl(r[1],t.truncate-i.length-1)}`,`date`)}function Dl(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${bl(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function Ol([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function kl(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function Al(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${xl(kl(e),t,Ol)} }`)}function jl(e,t){return Df(e)?t.stylize(`NaN`,`number`):e===1/0?t.stylize(`Infinity`,`number`):e===-1/0?t.stylize(`-Infinity`,`number`):e===0?t.stylize(1/e==1/0?`+0`:`-0`,`number`):t.stylize(bl(String(e),t.truncate),`number`)}function Ml(e,t){let n=bl(e.toString(),t.truncate-1);return n!==Tf&&(n+=`n`),t.stylize(n,`bigint`)}function Nl(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${bl(i,r)}/${n}`,`regexp`)}function Pl(e){let t=[];return e.forEach(e=>{t.push(e)}),t}function Fl(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${xl(Pl(e),t)} }`)}function Il(e){return kf[e]||`\\u${`0000${e.charCodeAt(0).toString(Af)}`.slice(-jf)}`}function Ll(e,t){return Of.test(e)&&(e=e.replace(Of,Il)),t.stylize(`'${bl(e,t.truncate-2)}'`,`string`)}function Rl(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}function zl(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=xl(n.map(t=>[t,e[t]]),t,Cl),a=xl(r.map(t=>[t,e[t]]),t,Cl);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}function Bl(e,t){let n=``;return Pf&&Pf in e&&(n=e[Pf]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${zl(e,t)}`}function Vl(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${xl(e,t)} ]`)}function Hl(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>Ff.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=bl(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=xl(n.map(t=>[t,e[t]]),t,Cl);return`${r}${i}${a?` { ${a} }`:``}`}function Ul([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function Wl(e,t){return xl(e,t,Gl,`
|
|
25
|
+
`)}function Gl(e,t){switch(e.nodeType){case 1:return Kl(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Kl(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=xl(n.map(t=>[t,e.getAttribute(t)]),t,Ul,` `)),t.truncate-=s.length;let c=t.truncate,l=Wl(e.children,t);return l&&l.length>c&&(l=`${Tf}(${e.children.length})`),`${i}${s}${a}${l}${o}`}function ql(e,t={}){let n=vl(t,ql),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=Hf.call(e).slice(8,-1)),i in Bf)return Bf[i](e,n);if(r&&e){let t=Vf(e,n,i);if(t)return typeof t==`string`?t:ql(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?zl(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?Kl(e,n):`constructor`in e?e.constructor===Object?zl(e,n):Bl(e,n):e===Object(e)?zl(e,n):n.stylize(String(e),i)}function Jl(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,a;try{a=gl(e,{maxDepth:t,escapeString:!1,plugins:Yf,...r})}catch{a=gl(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Yf,...r})}return a.length>=i&&t>1?Jl(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,...r}):a}function Yl(...e){if(typeof e[0]!=`string`){let t=[];for(let n=0;n<e.length;n++)t.push(Xl(e[n],{depth:0,colors:!1}));return t.join(` `)}let t=e.length,n=1,r=e[0],i=String(r).replace(Xf,r=>{if(r===`%%`)return`%`;if(n>=t)return r;switch(r){case`%s`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():Xl(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number(t).toString()}case`%i`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[n++])).toString();case`%o`:return Xl(e[n++],{showHidden:!0,showProxy:!0});case`%O`:return Xl(e[n++]);case`%c`:return n++,``;case`%j`:try{return JSON.stringify(e[n++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return r}});for(let r=e[n];n<t;r=e[++n])i+=typeof r!=`object`||!r?` ${r}`:` ${Xl(r)}`;return i}function Xl(e,t={}){return t.truncate===0&&(t.truncate=1/0),ql(e,t)}function Zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Ql(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function $l(e){return Object.prototype.toString.apply(e).slice(8,-1)}function eu(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function tu(e){let t=new Set;return Ql(e)?[]:(eu(e,t),Array.from(t))}function nu(e,t=Zf){return ru(e,new WeakMap,t)}function ru(e,t,n=Zf){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=ru(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=tu(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=ru(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}function iu(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function au(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function ou(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function su(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===ep?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===$f?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new tp(Qf,i)),e[n[r-1]+1][0]=$f,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&lu(e),cu(e),a=1;a<e.length;){if(e[a-1][0]===Qf&&e[a][0]===$f){let t=e[a-1][1],n=e[a][1],r=ou(t,n),i=ou(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new tp(ep,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new tp(ep,t.substring(0,i))),e[a-1][0]=$f,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=Qf,e[a+1][1]=t.substring(i),a++),a++}a++}}function cu(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===ep&&e[t+1][0]===ep){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=au(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=uu(n,r)+uu(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=uu(n,r)+uu(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function lu(e){e.push(new tp(ep,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case $f:r++,a+=e[t][1],t++;break;case Qf:n++,i+=e[t][1],t++;break;case ep:n+r>1?(n!==0&&r!==0&&(o=iu(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===ep?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new tp(ep,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=au(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new tp(Qf,i)),t++),a.length&&(e.splice(t,0,new tp($f,a)),t++),t++):t!==0&&e[t-1][0]===ep?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===ep&&e[t+1][0]===ep&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&lu(e)}function uu(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(np),a=r.match(np),o=i&&n.match(rp),s=a&&r.match(rp),c=o&&n.match(ip),l=s&&r.match(ip),u=c&&e.match(ap),d=l&&t.match(op);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}function du(){if(up)return lp;up=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,S=p+x-m,C=t(x+1,i,S+1,o,s),w=x+C;if(v=c[l],c[l]=w,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=w){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=C,C!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=S+1);let g=w+1,_=S+C+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,S=p+x-m,C=n(r,x-1,a,S-1,s),w=x-C;if(v=u[d],u[d]=w,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&w-1<=c[n]){let n=S-C;if(f.nChangePreceding=e,e===w+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=w,f.bEndPreceding=n),f.nCommonPreceding=C,C!==0&&(f.aCommonPreceding=w,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[+!!a];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:S,nChangeFollowing:C,aStartFollowing:w,bStartFollowing:T}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,S),w<n&&T<i&&c(C,w,n,T,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return lp}function fu(e,t){return e.replace(/\s+$/,e=>t(e))}function pu(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${fu(e,i)}`)}function mu(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return pu(e,t,n,r,i,a)}function hu(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return pu(e,t,n,r,i,a)}function gu(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return pu(e,t,n,r,i,a)}function _u(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function vu(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===ep;)c+=1;if(t!==c){if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}}for(;c!==n&&e[c][0]!==ep;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(gu(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(mu(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push(hu(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===ep;)c+=1;if(a!==c){if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=_u(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}}for(;c!==n&&e[c][0]===Qf;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===$f;)y(e[c][1]),c+=1}return l&&(d[f]=_u(p,h,m,g,t)),d.join(`
|
|
26
|
+
`)}function yu(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case Qf:return mu(i,a,t);case $f:return hu(i,a,t);default:return gu(i,a,t)}}).join(`
|
|
27
|
+
`)}function bu(){return{aAnnotation:`Expected`,aColor:ld.green,aIndicator:`-`,bAnnotation:`Received`,bColor:ld.red,bIndicator:`+`,changeColor:ld.inverse,changeLineTrailingSpaceColor:fp,commonColor:ld.dim,commonIndicator:` `,commonLineTrailingSpaceColor:fp,compareKeys:void 0,contextLines:pp,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:ld.yellow,printBasicPrototype:!1,truncateThreshold:mp,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:fp}}function xu(e){return e&&typeof e==`function`?e:void 0}function Su(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:pp}function Cu(e={}){return{...bu(),...e,compareKeys:xu(e.compareKeys),contextLines:Su(e.contextLines)}}function wu(e){return e.length===1&&e[0].length===0}function Tu(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case Qf:t+=1;break;case $f:n+=1}}),{a:t,b:n}}function Eu({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s} ${n} ${p}${t}`,u=`${d} ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}
|
|
28
|
+
${i(f)}
|
|
29
|
+
|
|
30
|
+
`}function Du(e,t,n){return Eu(n,Tu(e))+(n.expand?yu(e,n):vu(e,n))+(t?n.truncateAnnotationColor(`
|
|
31
|
+
${n.truncateAnnotation}`):``)}function Ou(e,t,n){let r=Cu(n),[i,a]=Au(wu(e)?[]:e,wu(t)?[]:t,r);return Du(i,a,r)}function ku(e,t,n,r,i){if(wu(e)&&wu(n)&&(e=[],n=[]),wu(t)&&wu(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return Ou(e,t,i);let[a,o]=Au(n,r,i),s=0,c=0;return a.forEach(n=>{switch(n[0]){case Qf:n[1]=e[s],s+=1;break;case $f:n[1]=t[c],c+=1;break;default:n[1]=t[c],s+=1,c+=1}}),Du(a,o,Cu(i))}function Au(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=[],u=0,d=0;for(dp(a,o,c,(n,r,i)=>{for(;u!==r;u+=1)l.push(new tp(Qf,e[u]));for(;d!==i;d+=1)l.push(new tp($f,t[d]));for(;n!==0;--n,u+=1,d+=1)l.push(new tp(ep,t[d]))});u!==a;u+=1)l.push(new tp(Qf,e[u]));for(;d!==o;d+=1)l.push(new tp($f,t[d]));return[l,s]}function ju(e){if(e===void 0)return`undefined`;if(e===null)return`null`;if(Array.isArray(e))return`array`;if(typeof e==`boolean`)return`boolean`;if(typeof e==`function`)return`function`;if(typeof e==`number`)return`number`;if(typeof e==`string`)return`string`;if(typeof e==`bigint`)return`bigint`;if(typeof e==`object`){if(e!=null){if(e.constructor===RegExp)return`regexp`;if(e.constructor===Map)return`map`;if(e.constructor===Set)return`set`;if(e.constructor===Date)return`date`}return`object`}if(typeof e==`symbol`)return`symbol`;throw Error(`value of unknown type: ${e}`)}function Mu(e){return e.includes(`\r
|
|
32
|
+
`)?`\r
|
|
33
|
+
`:`
|
|
34
|
+
`}function Nu(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=e.length,o=t.length;if(r){let n=e.includes(`
|
|
35
|
+
`),r=t.includes(`
|
|
36
|
+
`),s=Mu(e),c=Mu(t),l=n?`${e.split(s,i).join(s)}
|
|
37
|
+
`:e,u=r?`${t.split(c,i).join(c)}
|
|
38
|
+
`:t;a=l.length,o=u.length}let s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=0,u=0,d=[];return dp(a,o,c,(n,r,i)=>{l!==r&&d.push(new tp(Qf,e.slice(l,r))),u!==i&&d.push(new tp($f,t.slice(u,i))),l=r+n,u=i+n,d.push(new tp(ep,t.slice(i,u)))}),l!==a&&d.push(new tp(Qf,e.slice(l))),u!==o&&d.push(new tp($f,t.slice(u))),[d,s]}function Pu(e,t,n){return t.reduce((t,r)=>t+(r[0]===ep?r[1]:r[0]===e&&r[1].length!==0?n(r[1]):``),``)}function Fu(e,t){let n=new hp(Qf,t),r=new hp($f,t),i=new gp(n,r);return e.forEach(e=>{switch(e[0]){case Qf:n.align(e);break;case $f:r.align(e);break;default:i.align(e)}}),i.getLines()}function Iu(e,t){if(t){let t=e.length-1;return e.some((e,n)=>e[0]===ep&&(n!==t||e[1]!==`
|
|
39
|
+
`))}return e.some(e=>e[0]===ep)}function Lu(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
|
|
40
|
+
`)||t.includes(`
|
|
41
|
+
`),[i,a]=Ru(r?`${e}
|
|
42
|
+
`:e,r?`${t}
|
|
43
|
+
`:t,!0,n);if(Iu(i,r)){let e=Cu(n);return Du(Fu(i,e.changeColor),a,e)}}return Ou(e.split(`
|
|
44
|
+
`),t.split(`
|
|
45
|
+
`),n)}function Ru(e,t,n,r){let[i,a]=Nu(e,t,r);return n&&su(i),[i,a]}function zu(e,t){let{commonColor:n}=Cu(t);return n(e)}function Bu(e,t,n){if(Object.is(e,t))return``;let r=ju(e),i=r,a=!1;if(r===`object`&&typeof e.asymmetricMatch==`function`){if(e.$$typeof!==Symbol.for(`jest.asymmetricMatcher`)||typeof e.getExpectedType!=`function`)return;i=e.getExpectedType(),a=i===`string`}if(i!==ju(t)){let r=function(e){return e.length<=p?e:`${e.slice(0,p)}...`},{aAnnotation:i,aColor:a,aIndicator:o,bAnnotation:s,bColor:c,bIndicator:l}=Cu(n),u=Gu(Tp,n),d=gl(e,u),f=gl(t,u),p=1e5;return d=r(d),f=r(f),`${`${a(`${o} ${i}:`)}
|
|
46
|
+
${d}`}
|
|
47
|
+
|
|
48
|
+
${`${c(`${l} ${s}:`)}
|
|
49
|
+
${f}`}`}if(!a)switch(r){case`string`:return Ou(e.split(`
|
|
50
|
+
`),t.split(`
|
|
51
|
+
`),n);case`boolean`:case`number`:return Vu(e,t,n);case`map`:return Wu(Hu(e),Hu(t),n);case`set`:return Wu(Uu(e),Uu(t),n);default:return Wu(e,t,n)}}function Vu(e,t,n){let r=gl(e,wp),i=gl(t,wp);return r===i?``:Ou(r.split(`
|
|
52
|
+
`),i.split(`
|
|
53
|
+
`),n)}function Hu(e){return new Map(Array.from(e.entries()).sort())}function Uu(e){return new Set(Array.from(e.values()).sort())}function Wu(e,t,n){let r,i=!1;try{r=Ku(e,t,Gu(wp,n),n)}catch{i=!0}let a=zu(sp,n);return(r===void 0||r===a)&&(r=Ku(e,t,Gu(Tp,n),n),r!==a&&!i&&(r=`${zu(cp,n)}
|
|
54
|
+
|
|
55
|
+
${r}`)),r}function Gu(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=Cu(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function Ku(e,t,n,r){let i={...n,indent:0},a=gl(e,i),o=gl(t,i);if(a===o)return zu(sp,r);{let i=gl(e,n),s=gl(t,n);return ku(i.split(`
|
|
56
|
+
`),s.split(`
|
|
57
|
+
`),a.split(`
|
|
58
|
+
`),o.split(`
|
|
59
|
+
`),r)}}function qu(e){return $l(e)===`Object`&&typeof e.asymmetricMatch==`function`}function Ju(e,t){let n=$l(e);return n===$l(t)&&(n===`Object`||n===`Array`)}function Yu(e,t,n){let{aAnnotation:r,bAnnotation:i}=Cu(n);if(typeof t==`string`&&typeof e==`string`&&t.length>0&&e.length>0&&t.length<=Ep&&e.length<=Ep&&t!==e){if(t.includes(`
|
|
60
|
+
`)||e.includes(`
|
|
61
|
+
`))return Lu(t,e,n);let[a]=Ru(t,e,!0),o=a.some(e=>e[0]===ep),s=Zu(r,i);return`${s(r)+ed(td(a,Qf,o))}
|
|
62
|
+
${s(i)+$u(td(a,$f,o))}`}let a=nu(t,{forceWritable:!0}),{replacedExpected:o,replacedActual:s}=Xu(nu(e,{forceWritable:!0}),a);return Bu(o,s,n)}function Xu(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<`u`&&typeof t.cause>`u`?(delete e.cause,{replacedActual:e,replacedExpected:t}):Ju(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),tu(t).forEach(i=>{let a=t[i],o=e[i];if(qu(a))a.asymmetricMatch(o)&&(e[i]=a);else if(qu(o))o.asymmetricMatch(a)&&(t[i]=o);else if(Ju(o,a)){let s=Xu(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Zu(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}function Qu(e){return e.replace(/\s+$/gm,e=>Dp.repeat(e.length))}function $u(e){return ld.red(Qu(Jl(e)))}function ed(e){return ld.green(Qu(Jl(e)))}function td(e,t,n){return e.reduce((e,r)=>e+(r[0]===ep?r[1]:r[0]===t?n?ld.inverse(r[1]):r[1]:``),``)}function nd(e){return e&&(e[kp]||e[Op])}function rd(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}function id(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&ad(()=>n.message??=e.message),typeof e.stack==`string`&&ad(()=>n.stack??=e.stack),typeof e.name==`string`&&ad(()=>n.name??=e.name),e.cause!=null&&ad(()=>n.cause??=id(e.cause,t))),id(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(nd(e))return id(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype===`AsyncFunction`)return`Promise`;if(typeof Element<`u`&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch==`function`)return`${e.toString()} ${Yl(e.sample)}`;if(typeof e.toJSON==`function`)return id(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=id(e,t)}catch(e){n[r]=rd(e)}}),n}{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Ap;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=id(e[r],t)}catch(e){delete n[r],n[r]=rd(e)}}),r=Object.getPrototypeOf(r);return n}}function ad(e){try{return e()}catch{}}function od(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``)}function sd(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=Yu(r.actual,r.expected,{...t,...r.diffOptions})),`expected`in r&&typeof r.expected!=`string`&&(r.expected=Jl(r.expected,10)),`actual`in r&&typeof r.actual!=`string`&&(r.actual=Jl(r.actual,10));try{typeof r.message==`string`&&(r.message=od(r.message))}catch{}try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=sd(r.cause,t,n))}catch{}try{return id(r)}catch(e){return id(Error(`Failed to fully serialize error: ${e?.message}
|
|
63
|
+
Inner error message: ${r?.message}`))}}var 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,I,Qd,$d,ef,tf,nf,rf,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,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;function jp(){return(jp=t((()=>{cd=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}),dc.open=``,dc.close=``,cd.reduce((e,[t])=>(e[t]=dc,e),{isColorSupported:!1}),ld=pc(),ud=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,dd=` `,fd=(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+dd}[${vc(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+dd}{${yc(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+dd+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},pd=e=>e&&e.$$typeof===ud,md={serialize:fd,test:pd},hd=` `,gd=new Set([`DOMStringMap`,`NamedNodeMap`]),_d=/^(?:HTML\w*Collection|NodeList)$/,vd=e=>e&&e.constructor&&!!e.constructor.name&&bc(e.constructor.name),yd=(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+hd)+(gd.has(o)?`{${yc(xc(e)?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${vc([...e],t,n,r,i,a)}]`)},bd={serialize:yd,test:vd},xd=1,Sd=3,Cd=8,wd=11,Td=/^(?:(?:HTML|SVG)\w*)?Element$/,Ed=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&Ac(e)},Dd=(e,t,n,r,i,a)=>{if(jc(e))return Tc(e.data,t);if(Mc(e))return Ec(e.data,t);let o=Nc(e)?`DocumentFragment`:e.tagName.toLowerCase();return++r>t.maxDepth?Oc(o,t):Dc(o,Cc(Nc(e)?[]:Array.from(e.attributes,e=>e.name).sort(),Nc(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),wc(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,a),t,n)},Od={serialize:Dd,test:Ed},kd=`@@__IMMUTABLE_ITERABLE__@@`,Ad=`@@__IMMUTABLE_LIST__@@`,jd=`@@__IMMUTABLE_KEYED__@@`,Md=`@@__IMMUTABLE_MAP__@@`,Nd=`@@__IMMUTABLE_ORDERED__@@`,Pd=`@@__IMMUTABLE_RECORD__@@`,Fd=`@@__IMMUTABLE_SEQ__@@`,Id=`@@__IMMUTABLE_SET__@@`,Ld=`@@__IMMUTABLE_STACK__@@`,Rd=e=>`Immutable.${e}`,zd=e=>`[${e}]`,Bd=` `,Vd=`…`,Hd=(e,t,n,r,i,a)=>e[Md]?Pc(e,t,n,r,i,a,e[Nd]?`OrderedMap`:`Map`):e[Ad]?Rc(e,t,n,r,i,a,`List`):e[Id]?Rc(e,t,n,r,i,a,e[Nd]?`OrderedSet`:`Set`):e[Ld]?Rc(e,t,n,r,i,a,`Stack`):e[Fd]?Lc(e,t,n,r,i,a):Ic(e,t,n,r,i,a),Ud=e=>e&&(e[kd]===!0||e[Pd]===!0),Wd={serialize:Hd,test:Ud},Gd={exports:{}},Kd={},Yd=Vc(),Xd=mc({__proto__:null,default:zc(Yd)},[Yd]),Zd={exports:{}},I={},ef=Uc(),tf=mc({__proto__:null,default:zc(ef)},[ef]),nf=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>tf[e](t)||Xd[e](t)])),rf=(e,t,n,r,i,a)=>++r>t.maxDepth?Oc(Gc(e),t):Dc(Gc(e),Cc(Kc(e),e.props,t,n+t.indent,r,i,a),wc(Wc(e.props.children),t,n+t.indent,r,i,a),t,n),af=e=>e!=null&&nf.isElement(e),of={serialize:rf,test:af},sf=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487,cf=(e,t,n,r,i,a)=>++r>t.maxDepth?Oc(e.type,t):Dc(e.type,e.props?Cc(qc(e),e.props,t,n+t.indent,r,i,a):``,e.children?wc(e.children,t,n+t.indent,r,i,a):``,t,n),lf=e=>e&&e.$$typeof===sf,uf={serialize:cf,test:lf},df=Object.prototype.toString,ff=Date.prototype.toISOString,pf=Error.prototype.toString,mf=RegExp.prototype.toString,hf=/^Symbol\((.*)\)(.*)$/,gf=/\n/g,_f=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}},vf={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,u={message:s,...typeof c<`u`?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},d=e.name===`Error`?Jc(e):e.name;return o?`[${d}]`:`${d} {${gc(Object.entries(u).values(),t,n,r,i,a)}}`}},yf={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},bf=Object.keys(yf),xf={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:yf},Sf={AsymmetricMatcher:md,DOMCollection:bd,DOMElement:Od,Immutable:Wd,ReactElement:of,ReactTestComponent:uf,Error:vf},Cf={bold:[`1`,`22`],dim:[`2`,`22`],italic:[`3`,`23`],underline:[`4`,`24`],inverse:[`7`,`27`],hidden:[`8`,`28`],strike:[`9`,`29`],black:[`30`,`39`],red:[`31`,`39`],green:[`32`,`39`],yellow:[`33`,`39`],blue:[`34`,`39`],magenta:[`35`,`39`],cyan:[`36`,`39`],white:[`37`,`39`],brightblack:[`30;1`,`39`],brightred:[`31;1`,`39`],brightgreen:[`32;1`,`39`],brightyellow:[`33;1`,`39`],brightblue:[`34;1`,`39`],brightmagenta:[`35;1`,`39`],brightcyan:[`36;1`,`39`],brightwhite:[`37;1`,`39`],grey:[`90`,`39`]},wf={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},Tf=`…`,Ef=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,Df=Number.isNaN||(e=>e!==e),Of=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),kf={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},Af=16,jf=4,Mf=()=>`Promise{…}`;try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding(`util`);Array.isArray(e(Promise.resolve()))&&(Mf=(r,i)=>{let[a,o]=e(r);return a===t?`Promise{<pending>}`:`Promise${a===n?`!`:``}{${i.inspect(o,i)}}`})}catch{}Nf=Mf,Pf=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1,Ff=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`],If=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,Lf=Symbol.for(`nodejs.util.inspect.custom`),Rf=new WeakMap,zf={},Bf={undefined:(e,t)=>t.stylize(`undefined`,`undefined`),null:(e,t)=>t.stylize(`null`,`null`),boolean:(e,t)=>t.stylize(String(e),`boolean`),Boolean:(e,t)=>t.stylize(String(e),`boolean`),number:jl,Number:jl,bigint:Ml,BigInt:Ml,string:Ll,String:Ll,function:Dl,Function:Dl,symbol:Rl,Symbol:Rl,Array:wl,Date:El,Map:Al,Set:Fl,RegExp:Nl,Promise:Nf,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:Vl,Int8Array:Tl,Uint8Array:Tl,Uint8ClampedArray:Tl,Int16Array:Tl,Uint16Array:Tl,Int32Array:Tl,Uint32Array:Tl,Float32Array:Tl,Float64Array:Tl,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:Hl,HTMLCollection:Wl,NodeList:Wl},Vf=(e,t,n)=>If in e&&typeof e[If]==`function`?e[If](t):Lf in e&&typeof e[Lf]==`function`?e[Lf](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&Rf.has(e.constructor)?Rf.get(e.constructor)(e,t):zf[n]?zf[n](e,t):``,Hf=Object.prototype.toString,{AsymmetricMatcher:Uf,DOMCollection:Wf,DOMElement:Gf,Immutable:Kf,ReactElement:qf,ReactTestComponent:Jf}=Sf,Yf=[Jf,qf,Gf,Wf,Kf,Uf],Xf=/%[sdjifoOc%]/g,Zf={forceWritable:!1},Qf=-1,$f=1,ep=0,tp=class{0;1;constructor(e,t){this[0]=e,this[1]=t}},np=/[^a-z0-9]/i,rp=/\s/,ip=/[\r\n]/,ap=/\n\r?\n$/,op=/^\r?\n\r?\n/,sp=`Compared values have no visual difference.`,cp="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",lp={},dp=Zl(du()),fp=e=>e,pp=5,mp=0,hp=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new tp(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new tp(this.op,this.line[0][1]):new tp(this.op,Pu(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
64
|
+
`)){let e=t.split(`
|
|
65
|
+
`),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},gp=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
|
|
66
|
+
`)){let e=n.split(`
|
|
67
|
+
`),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new tp(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new tp(t,e)):e.length!==0&&this.pushDiffChangeLines(new tp(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}},{AsymmetricMatcher:_p,DOMCollection:vp,DOMElement:yp,Immutable:bp,ReactElement:xp,ReactTestComponent:Sp}=Sf,Cp=[Sp,xp,yp,vp,bp,_p,Sf.Error],wp={maxDepth:20,plugins:Cp},Tp={callToJSON:!1,maxDepth:8,plugins:Cp},Ep=2e4,Dp=`·`,Op=`@@__IMMUTABLE_RECORD__@@`,kp=`@@__IMMUTABLE_ITERABLE__@@`,Ap=Object.getPrototypeOf({})})))()}function Mp(e,t={}){try{let n=!1,r=!1;return zp.window?.location?.search?.includes(`instrument=true`)?n=!0:zp.window?.location?.search?.includes(`instrument=false`)&&(r=!0),zp.window?.parent===zp.window&&!n||r?e:(zp.window&&!zp.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(zp.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Jp),(zp.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(t){return Fp.warn(t),e}}function Np(e,t){let n=e;for(;n!=null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function Pp(e){if(typeof e!=`function`)return!1;let t=Object.getOwnPropertyDescriptor(e,`prototype`);return t?!t.writable:!1}var Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp;function Yp(){return(Yp=t((()=>{uc(),jp(),{once:Fp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Ip,SET_CURRENT_STORY:Lp,STORY_RENDER_PHASE_CHANGED:Rp}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:zp}=__STORYBOOK_MODULE_GLOBAL__,Bp=globalThis.__STORYBOOK_ADDONS_PREVIEW,Vp=Error("This function ran after the play function completed. Did you forget to `await` it?"),Hp=e=>Object.prototype.toString.call(e)===`[object Object]`,Up=e=>Object.prototype.toString.call(e)===`[object Module]`,Wp=e=>{if(!Hp(e)&&!Up(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Hp(t)},Gp=e=>{try{return new e.constructor}catch{return{}}},Kp=()=>({renderPhase:`preparing`,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),qp=(e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(e=>e.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,e])=>e.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},Jp=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=zp.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{zp.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:e,renderPhase:t,isPlaying:n=!0,isDebugging:r=!1})=>{let i=this.getState(e);this.setState(e,{...Kp(),...qp(i,r),renderPhase:t||i.renderPhase,shadowCalls:r?i.shadowCalls:[],chainedCallIds:r?i.chainedCallIds:new Set,playUntil:r?i.playUntil:void 0,isPlaying:n,isDebugging:r}),this.sync(e)},t=e=>({storyId:t,playUntil:n})=>{this.getState(t).isDebugging||this.setState(t,({calls:e})=>({calls:[],shadowCalls:e.map(e=>({...e,status:`waiting`})),isDebugging:!0}));let r=this.getLog(t);this.setState(t,({shadowCalls:e})=>{if(n||!r.length)return{playUntil:n};let t=e.findIndex(e=>e.id===r[0].callId);return{playUntil:e.slice(0,t).filter(e=>e.interceptable&&!e.ancestors?.length).slice(-1)[0]?.id}}),e.emit(Ip,{storyId:t,isDebugging:!0})},n=e=>({storyId:n})=>{let r=this.getLog(n).filter(e=>!e.ancestors?.length),i=r.reduceRight((e,t,n)=>e>=0||t.status===`waiting`?e:n,-1);t(e)({storyId:n,playUntil:r[i-1]?.callId})},r=e=>({storyId:n,callId:r})=>{let{calls:i,shadowCalls:a,resolvers:o}=this.getState(n),s=i.find(({id:e})=>e===r),c=a.find(({id:e})=>e===r);if(!s&&c&&Object.values(o).length>0){let e=this.getLog(n).find(e=>e.status===`waiting`)?.callId;c.id!==e&&this.setState(n,{playUntil:c.id}),Object.values(o).forEach(e=>e())}else t(e)({storyId:n,playUntil:r})},i=e=>({storyId:n})=>{let{resolvers:r}=this.getState(n);if(Object.values(r).length>0)Object.values(r).forEach(e=>e());else{let r=this.getLog(n).find(e=>e.status===`waiting`)?.callId;r?t(e)({storyId:n,playUntil:r}):a({storyId:n})}},a=({storyId:e})=>{this.setState(e,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(e).resolvers).forEach(e=>e())},o=({storyId:t,newPhase:n})=>{let{isDebugging:r}=this.getState(t);if(n===`preparing`&&r||n===`playing`)return e({storyId:t,renderPhase:n,isDebugging:r});n===`played`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1,isDebugging:!1}):n===`errored`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1}):n===`aborted`?this.setState(t,{renderPhase:n,isLocked:!0,isPlaying:!1}):this.setState(t,{renderPhase:n}),this.sync(t)};Bp&&Bp.ready().then(()=>{this.channel=Bp.getChannel(),this.channel.on(Ip,e),this.channel.on(Rp,o),this.channel.on(Lp,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(lc.START,t(this.channel)),this.channel.on(lc.BACK,n(this.channel)),this.channel.on(lc.GOTO,r(this.channel)),this.channel.on(lc.NEXT,i(this.channel)),this.channel.on(lc.END,a)})}getState(e){return this.state[e]||Kp()}setState(e,t){if(e){let n=this.getState(e),r=typeof t==`function`?t(n):t;this.state={...this.state,[e]:{...n,...r}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((e,[t,n])=>{let r=qp(n);return r&&(e[t]=Object.assign(Kp(),r)),e},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(lc.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:n}=this.getState(e),r=[...n];t.forEach((e,t)=>{r[t]=e});let i=new Set;return r.reduceRight((e,t)=>(t.args.forEach(e=>{e?.__callId__&&i.add(e.__callId__)}),t.path.forEach(e=>{e.__callId__&&i.add(e.__callId__)}),(t.interceptable||t.exception)&&!i.has(t.id)&&(e.unshift({callId:t.id,status:t.status,ancestors:t.ancestors}),i.add(t.id)),e),[])}instrument(e,t,n=0){if(!Wp(e))return e;let{mutate:r=!1,path:i=[]}=t,a=t.getKeys?t.getKeys(e,n):Object.keys(e);return n+=1,a.reduce((r,a)=>{let o=Np(e,a);if(typeof o?.get==`function`){if(o.configurable){let s=()=>o?.get?.bind(e)?.();Object.defineProperty(r,a,{get:()=>this.instrument(s(),{...t,path:i.concat(a)},n)})}return r}let s=e[a];return typeof s==`function`?`__originalFn__`in s&&typeof s.__originalFn__==`function`?(r[a]=s,r):(r[a]=(...n)=>this.track(a,s,e,n,t),r[a].__originalFn__=s,Object.defineProperty(r[a],"name",{value:a,writable:!1}),Object.keys(s).length>0&&Object.assign(r[a],this.instrument({...s},{...t,path:i.concat(a)},n)),r):(r[a]=this.instrument(s,{...t,path:i.concat(a)},n),r)},r?e:Gp(e))}track(e,t,n,r,i){let a=r?.[0]?.__storyId__||zp.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:o,ancestors:s}=this.getState(a);this.setState(a,{cursor:o+1});let c=`${s.slice(-1)[0]||a} [${o}] ${e}`,{path:l=[],intercept:u=!1,retain:d=!1}=i,f=typeof u==`function`?u(e,l):u,p={id:c,cursor:o,storyId:a,ancestors:s,path:l,method:e,args:r,interceptable:f,retain:d},m=(f&&!s.length?this.intercept:this.invoke).call(this,t,n,p,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,n,r){let{chainedCallIds:i,isDebugging:a,playUntil:o}=this.getState(n.storyId),s=i.has(n.id);return!a||s||o?(o===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(e,t,n,r)):new Promise(e=>{this.setState(n.storyId,({resolvers:t})=>({isLocked:!1,resolvers:{...t,[n.id]:e}}))}).then(()=>(this.setState(n.storyId,e=>{let{[n.id]:t,...r}=e.resolvers;return{isLocked:!0,resolvers:r}}),this.invoke(e,t,n,r)))}invoke(e,t,n,r){let{callRefsByResult:i,renderPhase:a}=this.getState(n.storyId),o=(e,t,n)=>{if(n.includes(e))return`[Circular]`;if(n=[...n,e],t>25)return`...`;if(i.has(e))return i.get(e);if(e instanceof Array)return e.map(e=>o(e,++t,n));if(e instanceof Date)return{__date__:{value:e.toISOString()}};if(e instanceof Error){let{name:t,message:n,stack:r}=e;return{__error__:{name:t,message:n,stack:r}}}if(e instanceof RegExp){let{flags:t,source:n}=e;return{__regexp__:{flags:t,source:n}}}if(e instanceof zp.window?.HTMLElement){let{prefix:t,localName:n,id:r,classList:i,innerText:a}=e;return{__element__:{prefix:t,localName:n,id:r,classNames:Array.from(i),innerText:a}}}return typeof e==`function`?{__function__:{name:`getMockName`in e?e.getMockName():e.name}}:typeof e==`symbol`?{__symbol__:{description:e.description}}:typeof e==`object`&&e?.constructor?.name&&e?.constructor?.name!==`Object`?{__class__:{name:e.constructor.name}}:Object.prototype.toString.call(e)===`[object Object]`?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,o(r,++t,n)])):e},s={...n,args:n.args.map(e=>o(e,0,[]))};n.path.forEach(e=>{e?.__callId__&&this.setState(n.storyId,({chainedCallIds:t})=>({chainedCallIds:new Set(Array.from(t).concat(e.__callId__))}))});let c=e=>{if(e instanceof Error){let{name:t,message:r,stack:i,callId:a=n.id}=e,{showDiff:o=void 0,diff:c=void 0,actual:l=void 0,expected:u=void 0}=e.name===`AssertionError`?sd(e):e,d={name:t,message:r,stack:i,callId:a,showDiff:o,diff:c,actual:l,expected:u};if(this.update({...s,status:`error`,exception:d}),this.setState(n.storyId,t=>({callRefsByResult:new Map([...Array.from(t.callRefsByResult.entries()),[e,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(e,`callId`)||Object.defineProperty(e,"callId",{value:n.id}),e}throw e};try{if(a===`played`&&!n.retain)throw Vp;let i=(r.getArgs?r.getArgs(n,this.getState(n.storyId)):n.args).map(e=>typeof e!=`function`||Pp(e)||Object.keys(e).length?e:(...t)=>{let{cursor:r,ancestors:i}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...i,n.id]});let a=()=>this.setState(n.storyId,{cursor:r,ancestors:i}),o=!1;try{let n=e(...t);return n instanceof Promise?(o=!0,n.finally(a)):n}finally{o||a()}}),o=e.apply(t,i);return o&&[`object`,`function`,`symbol`].includes(typeof o)&&this.setState(n.storyId,e=>({callRefsByResult:new Map([...Array.from(e.callRefsByResult.entries()),[o,{__callId__:n.id,retain:n.retain}]])})),this.update({...s,status:o instanceof Promise?`active`:`done`}),o instanceof Promise?o.then(e=>(this.update({...s,status:`done`}),e),c):o}catch(e){return c(e)}}update(e){this.channel?.emit(lc.CALL,e),this.setState(e.storyId,({calls:t})=>{let n=t.concat(e).reduce((e,t)=>Object.assign(e,{[t.id]:t}),{});return{calls:Object.values(n).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:t,isPlaying:n}=this.getState(e),r=this.getLog(e),i=r.filter(({ancestors:e})=>!e.length).find(e=>e.status===`waiting`)?.callId,a=r.some(e=>e.status===`active`);if(this.detached||t||a||r.length===0){let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:r};this.channel?.emit(lc.SYNC,e);return}let o=r.some(e=>e.status===`done`||e.status===`error`),s={controlStates:{detached:this.detached,start:o,back:o,goto:!0,next:n,end:n},logItems:r,pausedAt:i};this.channel?.emit(lc.SYNC,s)};this.setState(e,({syncTimeout:e})=>(clearTimeout(e),{syncTimeout:setTimeout(t,0)}))}}})))()}function Xp(e){return`${e}.json`}var Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,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,eh,th,nh,rh,ih,ah,oh,sh,ch,lh;function uh(){return(uh=t((()=>{qs(),Js(),Jo(),g(),oc(),cc(),S(),uh(),Yp(),Fs(),Zp=E({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:Object.keys;return function(r,i){return(function r(i,a,o){var s,c,l,u=e.call(i),d=e.call(a);if(i===a)return!0;if(i==null||a==null)return!1;if(o.indexOf(i)>-1&&o.indexOf(a)>-1)return!0;if(o.push(i,a),u!=d||(s=n(i),c=n(a),s.length!=c.length||s.some(function(e){return!r(i[e],a[e],o)})))return!1;switch(u.slice(8,-1)){case`Symbol`:return i.valueOf()==a.valueOf();case`Date`:case`Number`:return+i==+a||+i!=+i&&+a!=+a;case`RegExp`:case`Function`:case`String`:case`Boolean`:return``+i==``+a;case`Set`:case`Map`:s=i.entries(),c=a.entries();do if(!r((l=s.next()).value,c.next().value,o))return!1;while(!l.done);return!0;case`ArrayBuffer`:i=new Uint8Array(i),a=new Uint8Array(a);case`DataView`:i=new Uint8Array(i.buffer),a=new Uint8Array(a.buffer);case`Float32Array`:case`Float64Array`:case`Int8Array`:case`Int16Array`:case`Int32Array`:case`Uint8Array`:case`Uint16Array`:case`Uint32Array`:case`Uint8ClampedArray`:case`Arguments`:case`Array`:if(i.length!=a.length)return!1;for(l=0;l<i.length;l++)if((l in i||l in a)&&(l in i!=l in a||!r(i[l],a[l],o)))return!1;return!0;case`Object`:return r(t(i),t(a),o);default:return!1}})(r,i,[])}})()}}),Qp=C(Zp(),1),$p=e=>e.map(e=>typeof e<`u`).filter(Boolean).length,em=(e,t)=>{let{exists:n,eq:r,neq:i,truthy:a}=e;if($p([n,r,i,a])>1)throw Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:r,neq:i})}`);if(typeof r<`u`)return(0,Qp.isEqual)(t,r);if(typeof i<`u`)return!(0,Qp.isEqual)(t,i);if(typeof n<`u`){let e=typeof t<`u`;return n?e:!e}return typeof a>`u`||a?!!t:!t},tm=(e,t,n)=>{if(!e.if)return!0;let{arg:r,global:i}=e.if;if($p([r,i])!==1)throw Error(`Invalid conditional value ${JSON.stringify({arg:r,global:i})}`);let a=r?t[r]:n[i];return em(e.if,a)},nm={},w(nm,{argsEnhancers:()=>om}),rm=(e,t)=>typeof t[e]>`u`&&!(e in t),im=e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!n)return{};let a=new RegExp(i.argTypesRegex);return Object.entries(n).filter(([e])=>!!a.test(e)).reduce((e,[n,i])=>(rm(n,t)&&(e[n]=Qs(n,{implicit:!0,id:r})),e),{})},am=e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([e,t])=>!!t.action).reduce((e,[n,r])=>(rm(n,t)&&(e[n]=Qs(typeof r.action==`string`?r.action:n)),e),{})},om=[am,im],sm={},w(sm,{loaders:()=>dm}),{onMockCall:cm}=__STORYBOOK_MODULE_TEST__,lm=!1,um=e=>{let{parameters:t}=e;t?.actions?.disable||lm||(cm((e,t)=>{let n=e.getMockName();n!==`spy`&&n!==`vi.fn()`&&(!/^next\/.*::/.test(n)||[`next/router::useRouter()`,`next/navigation::useRouter()`,`next/navigation::redirect`,`next/link::Link`,`next/cache::`,`next/headers::cookies().set`,`next/headers::cookies().delete`,`next/headers::headers().set`,`next/headers::headers().delete`].some(e=>n.startsWith(e)))&&Qs(n)(t)}),lm=!0)},dm=[um],{useEffect:fm}=__STORYBOOK_MODULE_PREVIEW_API__,{document:pm}=globalThis,mm=()=>globalThis?.matchMedia?!!globalThis.matchMedia(`(prefers-reduced-motion: reduce)`)?.matches:!1,mm(),globalThis.FEATURES?.backgrounds,{step:hm}=Mp({step:async(e,t,n)=>t(n)},{intercept:!0}),{addons:gm}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:_m}=__STORYBOOK_MODULE_CORE_EVENTS__,vm={chevronLeft:[`M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z`],chevronRight:[`M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z`],info:[`M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z`,`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`],shareAlt:[`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`,`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`]},ym=`svg,path,rect,circle,line,polyline,polygon,ellipse,text`.split(`,`),bm=(e,t={},n)=>{let r=ym.includes(e)?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e);return Object.entries(t).forEach(([e,t])=>{/[A-Z]/.test(e)?(e===`onClick`&&(r.addEventListener(`click`,t),r.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())})),e===`onMouseEnter`&&r.addEventListener(`mouseenter`,t),e===`onMouseLeave`&&r.addEventListener(`mouseleave`,t)):r.setAttribute(e,t)}),n?.forEach(e=>{if(e!=null&&e!==!1)try{r.appendChild(e)}catch{r.appendChild(document.createTextNode(String(e)))}}),r},xm=e=>vm[e]&&bm(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,xmlns:`http://www.w3.org/2000/svg`},vm[e].map(e=>bm(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:e}))),Sm=e=>{if(`elements`in e){let{elements:t,color:n,style:r}=e;return{id:void 0,priority:0,selectors:t,styles:{outline:`2px ${r} ${n}`,outlineOffset:`2px`,boxShadow:`0 0 0 6px rgba(255,255,255,0.6)`},menu:void 0}}let{menu:t,...n}=e;return{id:void 0,priority:0,styles:{outline:`2px dashed #029cfd`},...n,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},Cm=e=>e instanceof Function,wm=new Map,Tm=new Map,Em=new Map,Dm=e=>{let t=Symbol();return Tm.set(t,[]),wm.set(t,e),{get:()=>wm.get(t),set:e=>{let n=wm.get(t),r=Cm(e)?e(n):e;r!==n&&(wm.set(t,r),Tm.get(t)?.forEach(e=>{Em.get(e)?.(),Em.set(e,e(r))}))},subscribe:e=>(Tm.get(t)?.push(e),()=>{let n=Tm.get(t);n&&Tm.set(t,n.filter(t=>t!==e))}),teardown:()=>{Tm.get(t)?.forEach(e=>{Em.get(e)?.(),Em.delete(e)}),Tm.delete(t),wm.delete(t)}}},Om=e=>{let t=document.getElementById(`storybook-root`),n=new Map;for(let r of e){let{priority:e=0}=r;for(let i of r.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let t of a){let a=n.get(t);(!a||a.priority<=e)&&n.set(t,{...r,priority:e,selectors:Array.from(new Set((a?.selectors||[]).concat(i)))})}}}return n},km=e=>Array.from(e.entries()).map(([e,{selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a}])=>{let{top:o,left:s,width:c,height:l}=e.getBoundingClientRect(),{position:u}=getComputedStyle(e);return{element:e,selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a,top:u===`fixed`?o:o+window.scrollY,left:u===`fixed`?s:s+window.scrollX,width:c,height:l}}).sort((e,t)=>t.width*t.height-e.width*e.height),Am=(e,t)=>{let n=e.getBoundingClientRect(),{x:r,y:i}=t;return n?.top&&n?.left&&r>=n.left&&r<=n.left+n.width&&i>=n.top&&i<=n.top+n.height},jm=(e,t,n)=>{if(!t||!n)return!1;let{left:r,top:i,width:a,height:o}=e;o<28&&(i-=Math.round((28-o)/2),o=28),a<28&&(r-=Math.round((28-a)/2),a=28),t.style.position===`fixed`&&(r+=window.scrollX,i+=window.scrollY);let{x:s,y:c}=n;return s>=r&&s<=r+a&&c>=i&&c<=i+o},Mm=(e,t,n={})=>{let{x:r,y:i}=t,{margin:a=5,topOffset:o=0,centered:s=!1}=n,{scrollX:c,scrollY:l,innerHeight:u,innerWidth:d}=window,f=Math.min(e.style.position===`fixed`?i-l:i,u-e.clientHeight-a-o+l),p=s?e.clientWidth/2:0,m=e.style.position===`fixed`?Math.max(Math.min(r-c,d-p-a),p+a):Math.max(Math.min(r,d-p-a+c),p+a+c);Object.assign(e.style,{...m!==r&&{left:`${m}px`},...f!==i&&{top:`${f}px`}})},Nm=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.showPopover()},Pm=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.hidePopover()},Fm=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(e=>[e.name,e.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),Im=`storybook-highlights-menu`,Lm=`storybook-highlights-root`,Rm=`storybook-root`,zm=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,n=Dm([]),r=Dm(new Map),i=Dm([]),a=Dm(),o=Dm(),c=Dm([]),l=Dm([]),u=Dm(),d=Dm(),p=t.getElementById(Lm);n.subscribe(()=>{p||(p=bm(`div`,{id:Lm}),t.body.appendChild(p))}),n.subscribe(e=>{let n=t.getElementById(Rm);if(!n)return;r.set(Om(e));let i=new MutationObserver(()=>r.set(Om(e)));return i.observe(n,{subtree:!0,childList:!0}),()=>{i.disconnect()}}),r.subscribe(e=>{let n=()=>requestAnimationFrame(()=>i.set(km(e))),r=new ResizeObserver(n);r.observe(t.body),Array.from(e.keys()).forEach(e=>r.observe(e));let a=Array.from(t.body.querySelectorAll(`*`)).filter(e=>{let{overflow:t,overflowX:n,overflowY:r}=window.getComputedStyle(e);return[`auto`,`scroll`].some(e=>[t,n,r].includes(e))});return a.forEach(e=>e.addEventListener(`scroll`,n)),()=>{r.disconnect(),a.forEach(e=>e.removeEventListener(`scroll`,n))}}),r.subscribe(e=>{let n=Array.from(e.keys()).filter(({style:e})=>e.position===`sticky`),r=()=>requestAnimationFrame(()=>{i.set(e=>e.map(e=>{if(n.includes(e.element)){let{top:t,left:n}=e.element.getBoundingClientRect();return{...e,top:t+window.scrollY,left:n+window.scrollX}}return e}))});return t.addEventListener(`scroll`,r),()=>t.removeEventListener(`scroll`,r)}),r.subscribe(e=>{c.set(t=>t.filter(({element:t})=>e.has(t)))}),c.subscribe(e=>{e.length?(d.set(t=>e.some(e=>e.element===t?.element)?t:void 0),u.set(t=>e.some(e=>e.element===t?.element)?t:void 0)):(d.set(void 0),u.set(void 0),a.set(void 0))});let m=new Map(new Map);n.subscribe(e=>{e.forEach(({keyframes:e})=>{if(e){let n=m.get(e);n||(n=t.createElement(`style`),n.setAttribute(`data-highlight`,`keyframes`),m.set(e,n),t.head.appendChild(n)),n.innerHTML=e}}),m.forEach((t,n)=>{e.some(e=>e.keyframes===n)||(t.remove(),m.delete(n))})});let g=new Map(new Map);i.subscribe(e=>{e.forEach(e=>{let t=g.get(e.element);if(p&&!t){let n={popover:`manual`,"data-highlight-dimensions":`w${e.width.toFixed(0)}h${e.height.toFixed(0)}`,"data-highlight-coordinates":`x${e.left.toFixed(0)}y${e.top.toFixed(0)}`};t=p.appendChild(bm(`div`,n,[bm(`div`)])),g.set(e.element,t)}}),g.forEach((t,n)=>{e.some(({element:e})=>e===n)||(t.remove(),g.delete(n))})}),i.subscribe(e=>{let n=e.filter(e=>e.menu);if(!n.length)return;let r=e=>{requestAnimationFrame(()=>{let r=t.getElementById(Im),i={x:e.pageX,y:e.pageY};if(r&&!Am(r,i)){let e=n.filter(e=>jm(e,g.get(e.element),i));a.set(e.length?i:void 0),c.set(e)}})};return t.addEventListener(`click`,r),()=>t.removeEventListener(`click`,r)});let _=()=>{let e=t.getElementById(Im),n=o.get();!n||e&&Am(e,n)||l.set(e=>{let t=i.get().filter(e=>jm(e,g.get(e.element),n)),r=e.filter(e=>t.includes(e)),a=t.filter(t=>!e.includes(t)),o=e.length-r.length;return a.length||o?[...r,...a]:e})};o.subscribe(_),i.subscribe(_);let y=()=>{let e=d.get(),t=e?[e]:c.get(),n=t.length===1?t[0]:u.get(),r=a.get()!==void 0;i.get().forEach(e=>{let i=g.get(e.element);if(i){let a=n===e,o=r?n?a:t.includes(e):l.get()?.includes(e);Object.assign(i.style,{animation:`none`,background:`transparent`,border:`none`,boxSizing:`border-box`,outline:`none`,outlineOffset:`0px`,...e.styles,...o?e.hoverStyles:{},...a?e.focusStyles:{},position:getComputedStyle(e.element).position===`fixed`?`fixed`:`absolute`,zIndex:h-10,top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`,margin:0,padding:0,cursor:e.menu&&o?`pointer`:`default`,pointerEvents:e.menu?`auto`:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`visible`}),Object.assign(i.children[0].style,{width:`100%`,height:`100%`,minHeight:`28px`,minWidth:`28px`,boxSizing:`content-box`,padding:i.style.outlineWidth||`0px`}),Nm(i)}})};i.subscribe(y),c.subscribe(y),l.subscribe(y),u.subscribe(y),d.subscribe(y);let x=()=>{if(!p)return;let n=t.getElementById(Im);if(n)n.innerHTML=``;else{let e={id:Im,popover:`manual`};n=p.appendChild(bm(`div`,e)),p.appendChild(bm(`style`,{},[`
|
|
68
|
+
#${Im} {
|
|
69
|
+
position: absolute;
|
|
70
|
+
z-index: ${h};
|
|
71
|
+
width: 300px;
|
|
72
|
+
padding: 0px;
|
|
73
|
+
margin: 15px 0 0 0;
|
|
74
|
+
transform: translateX(-50%);
|
|
75
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
background: white;
|
|
78
|
+
border: none;
|
|
79
|
+
border-radius: 6px;
|
|
80
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
81
|
+
color: #2E3438;
|
|
82
|
+
}
|
|
83
|
+
#${Im} ul {
|
|
84
|
+
list-style: none;
|
|
85
|
+
margin: 0;
|
|
86
|
+
padding: 0;
|
|
87
|
+
}
|
|
88
|
+
#${Im} > ul {
|
|
89
|
+
max-height: 300px;
|
|
90
|
+
overflow-y: auto;
|
|
91
|
+
padding: 4px 0;
|
|
92
|
+
}
|
|
93
|
+
#${Im} li {
|
|
94
|
+
padding: 0 4px;
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
#${Im} li > :not(ul) {
|
|
98
|
+
display: flex;
|
|
99
|
+
padding: 8px;
|
|
100
|
+
margin: 0;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: 8px;
|
|
103
|
+
border-radius: 4px;
|
|
104
|
+
}
|
|
105
|
+
#${Im} button {
|
|
106
|
+
width: 100%;
|
|
107
|
+
border: 0;
|
|
108
|
+
background: transparent;
|
|
109
|
+
color: inherit;
|
|
110
|
+
text-align: left;
|
|
111
|
+
font-family: inherit;
|
|
112
|
+
font-size: inherit;
|
|
113
|
+
}
|
|
114
|
+
#${Im} button:focus-visible {
|
|
115
|
+
outline-color: #029CFD;
|
|
116
|
+
}
|
|
117
|
+
#${Im} button:hover {
|
|
118
|
+
background: rgba(2, 156, 253, 0.07);
|
|
119
|
+
color: #029CFD;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
}
|
|
122
|
+
#${Im} li code {
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
text-overflow: ellipsis;
|
|
126
|
+
line-height: 16px;
|
|
127
|
+
font-size: 11px;
|
|
128
|
+
}
|
|
129
|
+
#${Im} li svg {
|
|
130
|
+
flex-shrink: 0;
|
|
131
|
+
margin: 1px;
|
|
132
|
+
color: #73828C;
|
|
133
|
+
}
|
|
134
|
+
#${Im} li > button:hover svg, #${Im} li > button:focus-visible svg {
|
|
135
|
+
color: #029CFD;
|
|
136
|
+
}
|
|
137
|
+
#${Im} .element-list li svg {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
#${Im} li.selectable svg, #${Im} li.selected svg {
|
|
141
|
+
display: block;
|
|
142
|
+
}
|
|
143
|
+
#${Im} .menu-list {
|
|
144
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
145
|
+
}
|
|
146
|
+
#${Im} .menu-list > li:not(:last-child) {
|
|
147
|
+
padding-bottom: 4px;
|
|
148
|
+
margin-bottom: 4px;
|
|
149
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
150
|
+
}
|
|
151
|
+
#${Im} .menu-items, #${Im} .menu-items li {
|
|
152
|
+
padding: 0;
|
|
153
|
+
}
|
|
154
|
+
#${Im} .menu-item {
|
|
155
|
+
display: flex;
|
|
156
|
+
}
|
|
157
|
+
#${Im} .menu-item-content {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
flex-grow: 1;
|
|
161
|
+
}
|
|
162
|
+
`]))}let r=d.get(),i=r?[r]:c.get();if(i.length&&(n.style.position=getComputedStyle(i[0].element).position===`fixed`?`fixed`:`absolute`,n.appendChild(bm(`ul`,{class:`element-list`},i.map(e=>{let t=i.length>1&&!!e.menu?.some(t=>t.some(t=>!t.selectors||t.selectors.some(t=>e.selectors.includes(t)))),n=t?{class:`selectable`,onClick:()=>d.set(e),onMouseEnter:()=>u.set(e),onMouseLeave:()=>u.set(void 0)}:r?{class:`selected`,onClick:()=>d.set(void 0)}:{},a=t||r;return bm(`li`,n,[bm(a?`button`:`div`,a?{type:`button`}:{},[r?xm(`chevronLeft`):null,bm(`code`,{},[e.element.outerHTML]),t?xm(`chevronRight`):null])])})))),d.get()||c.get().length===1){let t=d.get()||c.get()[0],r=t.menu?.filter(e=>e.some(e=>!e.selectors||e.selectors.some(e=>t.selectors.includes(e))));r?.length&&n.appendChild(bm(`ul`,{class:`menu-list`},r.map(n=>bm(`li`,{},[bm(`ul`,{class:`menu-items`},n.map(({id:n,title:r,description:i,iconLeft:a,iconRight:o,clickEvent:s})=>{let c=s&&(()=>e.emit(s,n,Fm(t)));return bm(`li`,{},[bm(c?`button`:`div`,c?{class:`menu-item`,type:`button`,onClick:c}:{class:`menu-item`},[a?xm(a):null,bm(`div`,{class:`menu-item-content`},[bm(i?`strong`:`span`,{},[r]),i&&bm(`span`,{},[i])]),o?xm(o):null])])}))]))))}let o=a.get();o?(Object.assign(n.style,{display:`block`,left:`${n.style.position===`fixed`?o.x-window.scrollX:o.x}px`,top:`${n.style.position===`fixed`?o.y-window.scrollY:o.y}px`}),Nm(n),requestAnimationFrame(()=>Mm(n,o,{topOffset:15,centered:!0}))):(Pm(n),Object.assign(n.style,{display:`none`}))};c.subscribe(x),d.subscribe(x);let S=e=>{let t=Sm(e);n.set(e=>{let n=t.id?e.filter(e=>e.id!==t.id):e;return t.selectors?.length?[...n,t]:n})},C=e=>{e&&n.set(t=>t.filter(t=>t.id!==e))},w=()=>{n.set([]),r.set(new Map),i.set([]),a.set(void 0),o.set(void 0),c.set([]),l.set([]),u.set(void 0),d.set(void 0)},T;t.body.addEventListener(`mousemove`,e=>{requestAnimationFrame(()=>o.set({x:e.pageX,y:e.pageY}))}),e.on(b,S),e.on(v,C),e.on(f,w),e.on(s,(e,r)=>{let i=`scrollIntoView-highlight`;clearTimeout(T),C(i);let a=t.querySelector(e);if(!a){console.warn(`Cannot scroll into view: ${e} not found`);return}a.scrollIntoView({behavior:`smooth`,block:`center`,...r});let o=`kf-${Math.random().toString(36).substring(2,15)}`;n.set(t=>[...t,{id:i,priority:1e3,selectors:[e],styles:{outline:`2px solid #1EA7FD`,outlineOffset:`-1px`,animation:`${o} 3s linear forwards`},keyframes:`@keyframes ${o} {
|
|
163
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
164
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
165
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
166
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
167
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
168
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
169
|
+
}`}]),T=setTimeout(()=>C(i),3500)}),e.on(_m,({newPhase:e})=>{e===`loading`&&w()})},globalThis?.FEATURES?.highlight&&gm?.ready&&gm.ready().then(zm),{useEffect:Bm}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Vm}=__STORYBOOK_MODULE_GLOBAL__,{global:Hm}=__STORYBOOK_MODULE_GLOBAL__,{global:Um}=__STORYBOOK_MODULE_GLOBAL__,globalThis.FEATURES?.measure,{useEffect:Wm,useMemo:Gm}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Km}=__STORYBOOK_MODULE_GLOBAL__,globalThis.FEATURES?.outline,qm=Qa({id:to()}),Jm=Qa({name:to(),message:to()}),Ym=Qa({id:to(),name:to(),snippet:$a(to()),description:$a(to()),summary:$a(to()),error:$a(Jm)}),Xm=Qa({id:to(),name:to(),path:to(),import:$a(to()),stories:eo(to(),Ym),error:$a(Jm)}),Zm=$a(Xm),Ps({id:`core/story-docs`,description:`Story documentation (snippets, descriptions, imports) keyed by component id.`,initialState:{components:{}},queries:{storyDocs:{description:`Returns the story-docs payload for one component id, or undefined when not loaded.`,input:qm,output:Zm,handler:(e,t)=>Object.hasOwn(t.self.state.components,e.id)?t.self.state.components[e.id]:void 0,load:async(e,t)=>{await t.self.commands.extractStoryDocs(e)},staticPath:e=>Xp(e.id)},storyDocsForAllComponents:{description:`Returns story-docs payloads for every component in the story index.`,input:io(),output:eo(to(),Xm),handler:(e,t)=>t.self.state.components,load:async(e,t)=>{await t.self.commands.extractAllStoryDocs(void 0)}}},commands:{extractStoryDocs:{description:`Resolves the story entry for a component id, runs the registered provider chain, writes the result into state, and returns it (or undefined when no provider produced story docs).`,input:qm,output:Zm},extractAllStoryDocs:{description:"Extracts story docs for every component id in the story index by invoking `extractStoryDocs` for each.",input:no(),output:io()}}}),{emitTransformCode:Qm,getService:$m}=__STORYBOOK_MODULE_PREVIEW_API__,{clearAllMocks:eh,fn:th,isMockFunction:nh,resetAllMocks:rh,restoreAllMocks:ih,uninstrumentedUserEvent:ah,within:oh}=__STORYBOOK_MODULE_TEST__,sh=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),ch=(e,t)=>{let n=sh(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},lh=(e,t)=>`${ch(e,`kind`)}${t?`--${ch(t,`name`)}`:``}`})))()}function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dh.apply(this,arguments)}function fh(e,t){if(e===!1||e===null||typeof e>`u`)throw Error(t)}function ph(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function mh(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hh(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function gh(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?mh(e):e;return{pathname:n?n.startsWith(`/`)?n:_h(n,t):t,search:Cg(r),hash:wg(i)}}function _h(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function vh(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`]. Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in <Link to="..."> and the router will parse it for you.`}function yh(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function bh(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=mh(e):(i=dh({},e),fh(!i.pathname||!i.pathname.includes(`?`),vh(`?`,`pathname`,`search`,i)),fh(!i.pathname||!i.pathname.includes(`#`),vh(`#`,`pathname`,`hash`,i)),fh(!i.search||!i.search.includes(`#`),vh(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(r||o==null)s=n;else{let e=t.length-1;if(o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=gh(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}function xh(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Sh(){return Sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sh.apply(this,arguments)}function Ch(e,t){let{relative:n}=t===void 0?{}:t;wh()||fh(!1);let{basename:r,navigator:i}=L.useContext(kg),{hash:a,pathname:o,search:s}=kh(e,{relative:n}),c=o;return r!==`/`&&(c=o===`/`?r:Sg([r,o])),i.createHref({pathname:c,search:s,hash:a})}function wh(){return L.useContext(Ag)!=null}function Th(){return wh()||fh(!1),L.useContext(Ag).location}function Eh(e){L.useContext(kg).static||L.useLayoutEffect(e)}function Dh(){let{isDataRoute:e}=L.useContext(jg);return e?Lh():Oh()}function Oh(){wh()||fh(!1);let e=L.useContext(Dg),{basename:t,navigator:n}=L.useContext(kg),{matches:r}=L.useContext(jg),{pathname:i}=Th(),a=JSON.stringify(yh(r).map(e=>e.pathnameBase)),o=L.useRef(!1);return Eh(()=>{o.current=!0}),L.useCallback(function(r,s){if(s===void 0&&(s={}),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=bh(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Sg([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}function kh(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=L.useContext(jg),{pathname:i}=Th(),a=JSON.stringify(yh(r).map(e=>e.pathnameBase));return L.useMemo(()=>bh(e,JSON.parse(a),i,n===`path`),[e,a,i,n])}function Ah(){let e=Ih(),t=xh(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return L.createElement(L.Fragment,null,L.createElement(`h2`,null,`Unexpected Application Error!`),L.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?L.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}function jh(e){let t=L.useContext(Dg);return t||fh(!1),t}function Mh(e){let t=L.useContext(Og);return t||fh(!1),t}function Nh(e){let t=L.useContext(jg);return t||fh(!1),t}function Ph(e){let t=Nh(e),n=t.matches[t.matches.length-1];return n.route.id||fh(!1),n.route.id}function Fh(){return Ph(Pg.UseRouteId)}function Ih(){let e=L.useContext(Mg),t=Mh(Pg.UseRouteError),n=Ph(Pg.UseRouteError);return e||t.errors?.[n]}function Lh(){let{router:e}=jh(Ng.UseNavigateStable),t=Ph(Pg.UseNavigateStable),n=L.useRef(!1);return Eh(()=>{n.current=!0}),L.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,Sh({fromRouteId:t},i)))},[e,t])}function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rh.apply(this,arguments)}function zh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Bh(e){return e!=null&&typeof e.tagName==`string`}function Vh(e){return Bh(e)&&e.tagName.toLowerCase()===`button`}function Hh(e){return Bh(e)&&e.tagName.toLowerCase()===`form`}function Uh(e){return Bh(e)&&e.tagName.toLowerCase()===`input`}function Wh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Gh(e,t){return e.button===0&&(!t||t===`_self`)&&!Wh(e)}function Kh(){if(Rg===null)try{new FormData(document.createElement(`form`),0),Rg=!1}catch{Rg=!0}return Rg}function qh(e){return e!=null&&!zg.has(e)?null:e}function Jh(e,t){let n,r,i,a,o;if(Hh(e)){let o=e.getAttribute(`action`);r=o?hh(o,t):null,n=e.getAttribute(`method`)||Ig,i=qh(e.getAttribute(`enctype`))||Lg,a=new FormData(e)}else if(Vh(e)||Uh(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?hh(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Ig,i=qh(e.getAttribute(`formenctype`))||qh(o.getAttribute(`enctype`))||Lg,a=new FormData(o,e),!Kh()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?t+`.`:``;a.append(e+`x`,`0`),a.append(e+`y`,`0`)}else t&&a.append(t,r)}}else{if(Bh(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);n=Ig,r=null,i=Lg,o=e}return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Yh(e){let t=tg.useContext(Dg);return t||fh(!1),t}function Xh(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=t===void 0?{}:t,s=Dh(),c=Th(),l=kh(e,{relative:o});return tg.useCallback(t=>{if(Gh(t,n)){t.preventDefault();let n=r===void 0?ph(c)===ph(l):r;s(e,{replace:n,state:i,preventScrollReset:a,relative:o})}},[c,s,l,r,i,n,e,a,o])}function Zh(){if(typeof document>`u`)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function Qh(){let{router:e}=Yh(qg.UseSubmit),{basename:t}=tg.useContext(kg),n=Fh();return tg.useCallback(function(r,i){i===void 0&&(i={}),Zh();let{action:a,method:o,encType:s,formData:c,body:l}=Jh(r,t);e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:l,formMethod:i.method||o,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n})},[e,t,n])}function $h(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=tg.useContext(kg),i=tg.useContext(jg);i||fh(!1);let[a]=i.matches.slice(-1),o=Rh({},kh(e||`.`,{relative:n})),s=Th();if(e==null&&(o.search=s.search,a.route.index)){let e=new URLSearchParams(o.search);e.delete(`index`),o.search=e.toString()?`?`+e.toString():``}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),r!==`/`&&(o.pathname=o.pathname===`/`?r:Sg([r,o.pathname])),ph(o)}var eg,tg,L,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg,Xg,Zg,Qg;function $g(){return($g=t((()=>{Ft(),As(),Ne(),m(),S(),eg=e(o(),1),tg=e(o(),1),L=e(o(),1),{once:ng}=__STORYBOOK_MODULE_CLIENT_LOGGER__,rg=C(Me(),1),ig=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/,ag=(0,rg.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,n,r,i]=e.toLowerCase().match(ig)||[];n?Object.assign(t,{viewMode:n,storyId:i,refId:r}):Mt(e)&&(t.viewMode=`review`)}return t}),og=Symbol(`Deeply equal`),sg=(e,t)=>{if(typeof e!=typeof t)return t;if(d(e,t))return og;if(Array.isArray(e)&&Array.isArray(t)){let n=t.reduce((t,n,r)=>{let i=sg(e[r],n);return i!==og&&(t[r]=i),t},Array(t.length));return t.length>=e.length?n:n.concat(Array(e.length-t.length).fill(void 0))}return u(e)&&u(t)?Object.keys({...e,...t}).reduce((n,r)=>{let i=sg(e?.[r],t?.[r]);return i===og?n:Object.assign(n,{[r]:i})},{}):t},cg=/^[a-zA-Z0-9 _-]*$/,lg=/^-?[0-9]+(\.[0-9]+)?$/,ug=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,dg=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,fg=(e=``,t)=>e===null||e===``||!cg.test(e)?!1:t==null||t instanceof Date||typeof t==`number`||typeof t==`boolean`?!0:typeof t==`string`?cg.test(t)||lg.test(t)||ug.test(t)||dg.test(t):Array.isArray(t)?t.every(t=>fg(e,t)):u(t)?Object.entries(t).every(([e,t])=>fg(e,t)):!1,pg=e=>e===void 0?`!undefined`:e===null?`!null`:typeof e==`string`?ug.test(e)?`!hex(${e.slice(1)})`:dg.test(e)?`!${e.replace(/[\s%]/g,``)}`:e:typeof e==`boolean`?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(pg):u(e)?Object.entries(e).reduce((e,[t,n])=>Object.assign(e,{[t]:pg(n)}),{}):e,mg=e=>{switch(e){case`%20`:return`+`;case`%5B`:return`[`;case`%5D`:return`]`;case`%2C`:return`,`;case`%3A`:return`:`}return e},hg=/%[0-9A-F]{2}/g,gg=(e,t)=>{let n=sg(e,t);if(!n||n===og)return``;let r=Object.entries(n).reduce((e,[t,n])=>fg(t,n)?Object.assign(e,{[t]:n}):(ng.warn(T`
|
|
170
|
+
Omitted potentially unsafe URL args.
|
|
171
|
+
|
|
172
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
173
|
+
`),e),{});return ms(pg(r),{delimiter:`;`,nesting:!0,nestingSyntax:`js`}).replace(hg,mg).split(`;`).map(e=>e.replace(`=`,`:`)).join(`;`)},_g=(0,rg.default)(1e3)(e=>e===void 0?{}:ps(e)),vg=e=>_g(e?.search?e.search.slice(1):``),(0,rg.default)(1e3)((e,t,n=!0)=>{if(n){if(typeof t!=`string`)throw Error(`startsWith only works with string targets`);return e&&e.startsWith(t)?{path:e}:null}let r=typeof t==`string`&&e===t,i=e&&t&&e.match(t);return r||i?{path:e}:null}),{global:yg}=__STORYBOOK_MODULE_GLOBAL__,(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(bg||={}),(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(xg||={}),Sg=e=>e.join(`/`).replace(/\/\/+/g,`/`),Cg=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,wg=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Tg=[`post`,`put`,`patch`,`delete`],new Set(Tg),Eg=[`get`,...Tg],new Set(Eg),Dg=L.createContext(null),Og=L.createContext(null),L.createContext(null),kg=L.createContext(null),Ag=L.createContext(null),jg=L.createContext({outlet:null,matches:[],isDataRoute:!1}),Mg=L.createContext(null),L.createContext(null),L.createElement(Ah,null),Ng=(function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e})(Ng||{}),Pg=(function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e})(Pg||{}),Fg=(function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e})(Fg||{}),new Promise(()=>{}),Ig=`get`,Lg=`application/x-www-form-urlencoded`,Rg=null,zg=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]),Bg=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`],Vg=[`aria-current`,`caseSensitive`,`className`,`end`,`style`,`to`,`children`],Hg=[`reloadDocument`,`replace`,`state`,`method`,`action`,`onSubmit`,`submit`,`relative`,`preventScrollReset`],Ug=typeof window<`u`&&typeof window.document<`u`&&typeof window.document.createElement<`u`,Wg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gg=tg.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l}=e,u=zh(e,Bg),{basename:d}=tg.useContext(kg),f,p=!1;if(typeof c==`string`&&Wg.test(c)&&(f=c,Ug))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=hh(t.pathname,d);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:p=!0}catch{}let m=Ch(c,{relative:r}),h=Xh(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r});function g(e){n&&n(e),e.defaultPrevented||h(e)}return tg.createElement(`a`,Rh({},u,{href:f||m,onClick:p||i?n:g,ref:t,target:s}))}),tg.forwardRef(function(e,t){let{"aria-current":n=`page`,caseSensitive:r=!1,className:i=``,end:a=!1,style:o,to:s,children:c}=e,l=zh(e,Vg),u=kh(s,{relative:l.relative}),d=Th(),f=tg.useContext(Og),{navigator:p}=tg.useContext(kg),m=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,h=d.pathname,g=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(h=h.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase());let _=h===m||!a&&h.startsWith(m)&&h.charAt(m.length)===`/`,v=g!=null&&(g===m||!a&&g.startsWith(m)&&g.charAt(m.length)===`/`),y=_?n:void 0,b;b=typeof i==`function`?i({isActive:_,isPending:v}):[i,_?`active`:null,v?`pending`:null].filter(Boolean).join(` `);let x=typeof o==`function`?o({isActive:_,isPending:v}):o;return tg.createElement(Gg,Rh({},l,{"aria-current":y,className:b,ref:t,style:x,to:s}),typeof c==`function`?c({isActive:_,isPending:v}):c)}),tg.forwardRef((e,t)=>{let n=Qh();return tg.createElement(Kg,Rh({},e,{submit:n,ref:t}))}),Kg=tg.forwardRef((e,t)=>{let{reloadDocument:n,replace:r,state:i,method:a=Ig,action:o,onSubmit:s,submit:c,relative:l,preventScrollReset:u}=e,d=zh(e,Hg),f=a.toLowerCase()===`get`?`get`:`post`,p=$h(o,{relative:l});return tg.createElement(`form`,Rh({ref:t,method:f,action:p,onSubmit:n?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=t?.getAttribute(`formmethod`)||a;c(t||e.currentTarget,{method:n,replace:r,state:i,relative:l,preventScrollReset:u})}},d))}),(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`})(qg||={}),(function(e){e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(Jg||={}),{document:Yg}=yg,Xg=()=>`${Yg.location.pathname}?`,Zg=({to:e,children:t,...n})=>eg.createElement(Gg,{to:`${Xg()}path=${e}`,...n},t),Zg.displayName=`QueryLink`,Qg=({children:e})=>{let t=Th(),{path:n=``,singleStory:r}=vg(t),{viewMode:i,storyId:a,refId:o}=ag(n);return eg.createElement(eg.Fragment,null,e({path:n||`/`,location:t,viewMode:i,storyId:a,refId:o,singleStory:r===`true`}))},Qg.displayName=`QueryLocation`})))()}var e_=r(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),t_=r(((e,t)=>{t.exports=typeof process==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),n_=r(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=e_(),a=t_();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),r_=r(((e,t)=>{var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),i_=r(((e,t)=>{var n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),a_=r(((e,t)=>{var n=t_(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=e_(),{safeRe:a,t:o}=n_(),s=r_(),{compareIdentifiers:c}=i_(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);this.prerelease=l[4]?l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),o_=r(((e,t)=>{var n=a_();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),s_=r(((e,t)=>{var n=o_();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),c_=r(((e,t)=>{var n=o_();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),l_=r(((e,t)=>{var n=a_();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),u_=r(((e,t)=>{var n=o_();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),d_=r(((e,t)=>{var n=a_();t.exports=(e,t)=>new n(e,t).major})),f_=r(((e,t)=>{var n=a_();t.exports=(e,t)=>new n(e,t).minor})),p_=r(((e,t)=>{var n=a_();t.exports=(e,t)=>new n(e,t).patch})),m_=r(((e,t)=>{var n=o_();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),h_=r(((e,t)=>{var n=a_();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),g_=r(((e,t)=>{var n=h_();t.exports=(e,t,r)=>n(t,e,r)})),__=r(((e,t)=>{var n=h_();t.exports=(e,t)=>n(e,t,!0)})),v_=r(((e,t)=>{var n=a_();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),y_=r(((e,t)=>{var n=v_();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),b_=r(((e,t)=>{var n=v_();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),x_=r(((e,t)=>{var n=h_();t.exports=(e,t,r)=>n(e,t,r)>0})),S_=r(((e,t)=>{var n=h_();t.exports=(e,t,r)=>n(e,t,r)<0})),C_=r(((e,t)=>{var n=h_();t.exports=(e,t,r)=>n(e,t,r)===0})),w_=r(((e,t)=>{var n=h_();t.exports=(e,t,r)=>n(e,t,r)!==0})),T_=r(((e,t)=>{var n=h_();t.exports=(e,t,r)=>n(e,t,r)>=0})),E_=r(((e,t)=>{var n=h_();t.exports=(e,t,r)=>n(e,t,r)<=0})),D_=r(((e,t)=>{var n=C_(),r=w_(),i=x_(),a=T_(),o=S_(),s=E_();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),O_=r(((e,t)=>{var n=a_(),r=o_(),{safeRe:i,t:a}=n_();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),k_=r(((e,t)=>{var n=o_(),r=e_(),i=a_(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),A_=r(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),j_=r(((e,t)=>{var n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,j(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>A(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(M(this.set[t],e,this.options))return!0;return!1}};var r=new(A_()),i=r_(),a=M_(),o=t_(),s=a_(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=n_(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=e_(),g=new RegExp(l[u.BUILD],`g`),_=e=>e.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=T(e,t),o(`caret`,e),e=C(e,t),o(`tildes`,e),e=D(e,t),o(`xrange`,e),e=k(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t,n)=>x(e)&&!x(t)||x(t)&&n&&!x(n),C=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(` `),w=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},D=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>O(e,t)).join(` `)),O=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),S(i,a,s))return e;let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},k=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),A=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),j=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),M=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),M_=r(((e,t)=>{var n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.value=this.semver===n?``:this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),this.semver=r[2]?new c(r[2],this.options.loose):n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``||new l(t.value,n).test(this.value):t.operator===``?t.value===``||new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=r_(),{safeRe:i,t:a}=n_(),o=D_(),s=t_(),c=a_(),l=j_()})),N_=r(((e,t)=>{var n=j_();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),P_=r(((e,t)=>{var n=j_();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),F_=r(((e,t)=>{var n=a_(),r=j_();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),I_=r(((e,t)=>{var n=a_(),r=j_();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),L_=r(((e,t)=>{var n=a_(),r=j_(),i=x_();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),R_=r(((e,t)=>{var n=j_();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),z_=r(((e,t)=>{var n=a_(),r=M_(),{ANY:i}=r,a=j_(),o=N_(),s=x_(),c=S_(),l=E_(),u=T_();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),B_=r(((e,t)=>{var n=z_();t.exports=(e,t,r)=>n(e,t,`>`,r)})),V_=r(((e,t)=>{var n=z_();t.exports=(e,t,r)=>n(e,t,`<`,r)})),H_=r(((e,t)=>{var n=j_();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),U_=r(((e,t)=>{var n=N_(),r=h_();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),W_=r(((e,t)=>{var n=j_(),r=M_(),{ANY:i}=r,a=N_(),o=h_(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),G_=r(((e,t)=>{var n=n_(),r=e_(),i=a_(),a=i_();t.exports={parse:o_(),valid:s_(),clean:c_(),inc:l_(),diff:u_(),major:d_(),minor:f_(),patch:p_(),prerelease:m_(),compare:h_(),rcompare:g_(),compareLoose:__(),compareBuild:v_(),sort:y_(),rsort:b_(),gt:x_(),lt:S_(),eq:C_(),neq:w_(),gte:T_(),lte:E_(),cmp:D_(),coerce:O_(),truncate:k_(),Comparator:M_(),Range:j_(),satisfies:N_(),toComparators:P_(),maxSatisfying:F_(),minSatisfying:I_(),minVersion:L_(),validRange:R_(),outside:z_(),gtr:B_(),ltr:V_(),intersects:H_(),simplifyRange:U_(),subset:W_(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}));function K_(){return globalThis[kv]||(globalThis[kv]=new Ov),globalThis[kv]}function q_(e,t,n){let r=Object.keys(e??{});return r.indexOf(t)>=0?t:r.length?r[0]:n}async function J_(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw Error(`Unexpected boolean response`);if(!t.ok){if(t.status===401)try{let e=await t.json();if(e.loginUrl)return{loginUrl:e.loginUrl}}catch{}throw Error(`Unexpected response not OK: ${t.statusText}`)}let n=await t.json();return n.entries||n.stories?{storyIndex:n}:n}catch(e){return{indexError:e}}}function Y_(e){return ob.activeElement&&e?.contains(ob.activeElement)}function X_(e){return Object.keys(e)}function Z_(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute(`contenteditable`)!==null||t.closest(`dialog[open]`))}function Q_(e){if(!e||typeof e==`string`)return e;let t={...e};return rx.forEach(e=>{e in t&&delete t[e]}),t}function $_(e){return e.get(Bx)||{}}function ev(e,t){return e.set(Bx,t)}function tv(e,t){return ev(e,{...$_(e),...t})}function nv({filter:e=qx,children:t}){let n=(0,iv.useContext)(Ux),r=(0,iv.useRef)(t),i=(0,iv.useRef)(e);if(typeof r.current!=`function`)return iv.createElement(iv.Fragment,null,r.current);let a=i.current(n),o=(0,iv.useMemo)(()=>[...Object.entries(a).reduce((e,t)=>e.concat(t),[])],[n.state]);return(0,iv.useMemo)(()=>{let e=r.current;return iv.createElement(e,{...a})},o)}function rv({universalTestProviderStore:e,useUniversalStore:t}){let n={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:`settings-changed`})})},onRunAll:t=>e.subscribe(`run-all`,t),onClearAll:t=>e.subscribe(`clear-all`,t)},r={...n,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:t=>e.subscribe(`settings-changed`,t),runAll:async()=>{await e.untilReady(),e.send({type:`run-all`})},clearAll:async()=>{await e.untilReady(),e.send({type:`clear-all`})}},i=t=>{let r=()=>e.getState()[t]??`test-provider-state:pending`,i=n=>{e.untilReady().then(()=>{e.setState(e=>({...e,[t]:n}))})};return{...n,testProviderId:t,getState:r,setState:i,runWithState:async e=>{i(`test-provider-state:running`);try{await e(),i(`test-provider-state:succeeded`)}catch{i(`test-provider-state:crashed`)}}}};return t?{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e,useTestProviderStore:n=>t(e,n)[0]}:{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e}}var iv,av,ov,sv,cv,lv,uv,dv,fv,pv,mv,hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy,$y,eb,tb,nb,rb,ib,ab,ob,sb,cb,lb,ub,db,fb,pb,mb,hb,gb,_b,vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,nS,rS;function iS(){return(iS=t((()=>{At(),Ft(),Ta(),es(),as(),As(),Ne(),y(),m(),Ra(),S(),iv=e(o(),1),av=o(),uh(),ve(),ov=e(o(),1),ct(),$g(),sv=e(o(),1),cv=e(G_(),1),lv=e(o(),1),i(),uv=E({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}}),dv=E({"../../node_modules/copy-to-clipboard/index.js"(e,t){var n=uv(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),typeof n.clipboardData>`u`){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o}}),fv=E({"../../node_modules/store2/dist/store2.js"(e,t){(function(e,n){var r={version:`2.14.4`,areas:{},apis:{},nsdelim:`.`,inherit:function(e,t){for(var n in e)t.hasOwnProperty(n)||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t},stringify:function(e,t){return e===void 0||typeof e==`function`?e+``:JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch{return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,n){e.setItem(t,n)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var i=r.inherit(r.storeAPI,function(e,t,n){return arguments.length===0?i.getAll():typeof t==`function`?i.transact(e,t,n):t===void 0?typeof e==`string`||typeof e==`number`?i.get(e):typeof e==`function`?i.each(e):e?i.setAll(e,t):i.clear():i.set(e,t,n)});i._id=e;try{var a=`__store2_test`;t.setItem(a,`ok`),i._area=t,t.removeItem(a)}catch{i._area=r.storage(`fake`)}return i._ns=n||``,r.areas[e]||(r.areas[e]=i._area),r.apis[i._ns+i._id]||(r.apis[i._ns+i._id]=i),i},storeAPI:{area:function(e,t){var n=this[e];return(!n||!n.area)&&(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):``;var i=e,a=this[i];if((!a||!a.namespace)&&(a=r.Store(this._id,this._area,this._ns+i+n),a._delim=n,this[i]||(this[i]=a),!t))for(var o in r.areas)a.area(o,r.areas[o]);return a},isFake:function(e){return e?(this._real=this._area,this._area=r.storage(`fake`)):e===!1&&(this._area=this._real||this._area),this._area.name===`fake`},toString:function(){return`store`+(this._ns?`.`+this.namespace():``)+`[`+this._id+`]`},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var n=0,i=r.length(this._area);n<i;n++){var a=this._out(r.key(this._area,n));if(a!==void 0&&e.call(this,a,this.get(a),t)===!1)break;i>r.length(this._area)&&(i--,n--)}return t||this},keys:function(e){return this.each(function(e,t,n){n.push(e)},e||[])},get:function(e,t){var n=r.get(this._area,this._in(e)),i;return typeof t==`function`&&(i=t,t=null),n===null?t??n:r.parse(n,i)},getAll:function(e){return this.each(function(e,t,n){n[e]=t},e||{})},transact:function(e,t,n){var r=this.get(e,n),i=t(r);return this.set(e,i===void 0?r:i),this},set:function(e,t,n){var i=this.get(e),a;return i!=null&&n===!1?t:(typeof n==`function`&&(a=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,a),n)||i)},setAll:function(e,t){var n,r;for(var i in e)r=e[i],this.set(i,r,t)!==r&&(n=!0);return n},add:function(e,t,n){var i=this.get(e);if(i instanceof Array)t=i.concat(t);else if(i!==null){var a=typeof i;if(a===typeof t&&a===`object`){for(var o in t)i[o]=t[o];t=i}else t=i+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each(function(e){r.remove(this._area,this._in(e))},1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return typeof e!=`string`&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&e.indexOf(this._ns)===0?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var n in this.items)if(this.has(n)&&e===t++)return n},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},i=r.Store(`local`,(function(){try{return localStorage}catch{}})());i.local=i,i._=r,i.area(`session`,(function(){try{return sessionStorage}catch{}})()),i.area(`page`,r.storage(`page`)),typeof n==`function`&&n.amd!==void 0?n(`store2`,[],function(){return i}):typeof t<`u`&&t.exports?t.exports=i:(e.store&&(r.conflict=e.store),e.store=i)})(e,e&&e.define)}}),{DOCS_PREPARED:pv,SET_STORIES:mv,SHARED_STATE_CHANGED:hv,SHARED_STATE_SET:gv,STORY_CHANGED:_v,STORY_PREPARED:vv}=__STORYBOOK_MODULE_CORE_EVENTS__,yv=({api:e,state:t})=>(0,av.createContext)({api:e,state:t}),{logger:bv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,xv=(e,...t)=>{let n={};n=p({},e,(e,t)=>{if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.find(e=>e===t||d(e,t))||e.push(t)}),e;if(Array.isArray(e))return bv.log([`the types mismatch, picking`,e]),e});for(let e of t)n=p(n,e,(e,t)=>{if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.find(e=>e===t||d(e,t))||e.push(t)}),e;if(Array.isArray(e))return bv.log([`the types mismatch, picking`,e]),e});return n},Sv=(e,...t)=>{let n={};n=p({},e,(e,t)=>{if(Array.isArray(t))return t});for(let e of t)n=p(n,e,(e,t)=>{if(Array.isArray(t))return t});return n},Cv=(...e)=>e.reduce((e,t)=>xv(e,t),{}),wv=Cv,{logger:Tv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:Ev}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:Dv}=__STORYBOOK_MODULE_TYPES__,Ov=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>{if(this.channel)return this.channel;let e=Aa();return e?(this.channel=e,this.resolve(),this.channel):ts()},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel||!!Aa(),this.setChannel=e=>{this.channel=e,ja(e),this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(Ev,this.config):this.ready().then(e=>{e.emit(Ev,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&Tv.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:n}=t,r=this.getElements(n);r[e]={...t,id:e}}experimental_getRegisteredAddons(e){return Object.keys(e?this.getElements(e):this.loaders)}},kv=`__STORYBOOK_ADDONS_MANAGER`,K_(),Av={},w(Av,{ensurePanel:()=>q_,init:()=>Nv}),{logger:jv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{Addon_TypesEnum:Mv}=__STORYBOOK_MODULE_TYPES__,Nv=({provider:e,store:t,fullAPI:n})=>{let r={getElements:t=>e.getElements(t),clearStatuses:()=>{let e=r.getElements(Mv.experimental_TEST_PROVIDER);Object.values(e).forEach(e=>{try{e.clear?.()}catch(t){try{jv.warn(`Failed to clear test provider "${e.id}":`,t)}catch{}}})},getSelectedPanel:()=>{let{selectedPanel:e}=t.getState();return q_(r.getElements(Mv.PANEL),e,e)},setSelectedPanel:e=>{t.setState({selectedPanel:e},{persistence:`session`})},setAddonState(e,n,i){let a=typeof n==`function`?n:()=>n;return t.setState(t=>({...t,addons:{...t.addons,[e]:a(t.addons[e])}}),i).then(()=>r.getAddonState(e))},getAddonState:e=>t.getState().addons[e]||globalThis?.STORYBOOK_ADDON_STATE[e]};return{api:r,state:{selectedPanel:q_(r.getElements(Mv.PANEL),t.getState().selectedPanel),addons:{}}}},Pv={},w(Pv,{init:()=>Fv}),Fv=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,n)=>(e.channel?.on(t,n),()=>e.channel?.off(t,n)),off:(t,n)=>e.channel?.off(t,n),once:(t,n)=>e.channel?.once(t,n),emit:(t,n,...r)=>{n?.options?.target&&n.options.target!==`storybook-preview-iframe`&&!n.options.target.startsWith(`storybook-ref-`)&&(n.options.target=n.options.target===`storybook_internal`?`storybook-preview-iframe`:`storybook-ref-${n.options.target}`),e.channel?.emit(t,n,...r)}},state:{}}),Iv={},w(Iv,{init:()=>fy}),{logger:Lv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:Rv,SET_GLOBALS:zv,UPDATE_GLOBALS:Bv}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:Vv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Hv={},w(Hv,{defaultStoryMapper:()=>ay,getSourceType:()=>iy,init:()=>uy}),{global:Uv}=__STORYBOOK_MODULE_GLOBAL__,Wv=C(Me(),1),Gv=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((e,n)=>(t.includes(n)&&e.push(n),e),[]),Kv=/\s*\/\s*/,qv=({globalParameters:e,kindParameters:t,stories:n})=>c(n,n=>({...n,parameters:Wx(e,t[n.kind],n.parameters)})),Jv=e=>({v:5,entries:Object.entries(e).reduce((e,[t,n])=>{if(!n)return e;let{docsOnly:r,fileName:i,...a}=n.parameters,o={title:n.kind,id:t,name:n.name,importPath:i};if(r)e[t]={type:`docs`,tags:[`stories-mdx`],storiesImports:[],...o};else{let{argTypes:r,args:i,initialArgs:s}=n;e[t]={type:`story`,subtype:`story`,...o,parameters:a,argTypes:r,args:i,initialArgs:s}}return e},{})}),Yv=e=>({v:3,stories:Object.values(e.stories).reduce((e,t)=>(e[t.id]={...t,title:t.kind,name:t.name||t.story,importPath:t.parameters.fileName||``},e),{})}),Xv=e=>{let t=Qo(Object.values(e.stories),e=>e.title);return{v:4,entries:Object.values(e.stories).reduce((e,n)=>{let r=`story`;return(n.parameters?.docsOnly||n.name===`Page`&&t[n.title]===1)&&(r=`docs`),e[n.id]={type:r,...r===`docs`&&{tags:[`stories-mdx`],storiesImports:[]},...n},delete e[n.id].story,delete e[n.id].kind,e},{})}},Zv=e=>({v:5,entries:Object.values(e.entries).reduce((e,t)=>(e[t.id]={...t,tags:t.tags?[ns.DEV,ns.TEST,...t.tags]:[ns.DEV]},e),{})}),Qv=(e,{provider:t,docsOptions:n,filters:r,allStatuses:i,statusFilterKey:a})=>{if(!e.v)throw Error(`Composition: Missing stories.json version`);let o=e;o=o.v===2?Yv(o):o,o=o.v===3?Xv(o):o,o=o.v===4?Zv(o):o,o=o;let s=Object.values(o.entries),c=Object.values(r),l=a?r[a]:void 0,u=s.filter(e=>{let t=i[e.id]??{};return l&&!l({...e,statuses:t})&&!s.filter(t=>`parent`in t&&t.parent===e.id).some(e=>l({...e,statuses:i[e.id]??{}}))?!1:Object.values(t).some(({value:e})=>e===`status-value:error`)||c.every(n=>n({...e,statuses:t}))?!0:s.filter(t=>`parent`in t&&t.parent===e.id).some(e=>c.every(n=>n({...e,statuses:t})))}),{sidebar:d={}}=t.getConfig(),{showRoots:f,collapsedRoots:p=[],renderLabel:m}=d,h=typeof f<`u`,g=u.reduce((e,t)=>{if(n.docsMode&&t.type!==`docs`)return e;let{title:r}=t,i=r.trim().split(Kv),a=(!h||f)&&i.length>1?[i.shift()]:[],o=[...a,...i],s=o.reduce((e,t,n)=>{let i=n>0&&e[n-1],a=sh(i?`${i}-${t}`:t);if(t.trim()===``)throw Error(T`Invalid title ${r} ending in slash.`);if(i===a)throw Error(T`
|
|
174
|
+
Invalid part '${t}', leading to id === parentId ('${a}'), inside title '${r}'
|
|
175
|
+
|
|
176
|
+
Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
|
|
177
|
+
`);return e.push(a),e},[]);return s.forEach((n,r)=>{let i=s[r+1]||t.id;e[n]=a.length&&r===0?xv(e[n]||{},{type:`root`,id:n,name:o[r],tags:[],depth:r,renderLabel:m,startCollapsed:p.includes(n),children:[i]}):(!e[n]||e[n].type===`component`)&&r===s.length-1?xv(e[n]||{},{type:`component`,id:n,name:o[r],tags:[],parent:s[r-1],depth:r,renderLabel:m,...i&&{children:[i]}}):xv(e[n]||{},{type:`group`,id:n,name:o[r],tags:[],parent:s[r-1],depth:r,renderLabel:m,...i&&{children:[i]}})}),e[t.id]={tags:[],...t,depth:s.length,parent:`parent`in t?t.parent:s[s.length-1],renderLabel:m,prepared:!!t.parameters},e},{});function _(e,t){if(e[t.id]||(e[t.id]=t,`children`in t&&t.children&&(t.children.forEach(t=>_(e,g[t])),t.tags=t.children.reduce((t,n)=>t===null?e[n].tags:Gv(t,e[n].tags),null)||[])),t.type===`component`){let n=e[t.children[0]];n&&`importPath`in n&&(t.importPath=n.importPath)}return e}let v=Object.values(g).filter(e=>e.type!==`root`&&!e.parent).reduce((e,t)=>_(e,t),{});return v=Object.values(g).filter(e=>e.type===`root`).reduce(_,v),v=Object.values(v).reduce((e,t)=>{if(t.type===`story`&&t.subtype===`test`){let n=e[t.parent],r=e[n.parent];e[r.id]={...r,children:r.children&&r.children.filter(e=>e!==t.id)},e[n.id]={...n,children:(n.children||[]).concat(t.id)},e[t.id]={...t,depth:t.depth+1}}else e[t.id]=t;return e},{}),v},$v=(e,t)=>t?Object.fromEntries(Object.entries(e).map(([e,n])=>{let r=t[e];return n.type===`story`&&r?.type===`story`&&r.prepared?(`children`in r&&delete r.children,[e,{...r,...n,prepared:!0}]):[e,n]})):e,ey=(0,Wv.default)(1)(e=>Object.entries(e).reduce((e,t)=>{let n=t[1];return n.type===`component`&&e.push([...n.children]),e},[])),ty=(0,Wv.default)(1)(e=>Object.keys(e).filter(t=>[`story`,`docs`].includes(e[t].type))),{location:ny,fetch:ry}=Uv,iy=(e,t)=>{let{origin:n,pathname:r}=ny,{origin:i,pathname:a}=new URL(e),o=`${n+r}`.replace(/\/[^\/]*$/,``),s=`${i+a}`.replace(/\/[^\/]*$/,``);return o===s?[`local`,s]:t||e?[`external`,s]:[null,null]},ay=(e,t)=>({...t,kind:t.kind.replace(`|`,`/`)}),oy=(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:{...r,refId:t.id}}),{}),sy=(e,t)=>(t&&Object.entries(t).forEach(([t,n])=>{let r=e[t];r&&(r.type===`story`||r.type===`docs`)&&(e[t]={...r,...n})}),e),cy=e=>{let t=/https?:\/\/(.+:.+)@/,n=e,r,[,i]=e.match(t)||[];return i&&(n=e.replace(`${i}@`,``),r=btoa(`${i}`)),{url:n,authorization:r}},ly=(e,t,n)=>{let{storyMapper:r}=n;return r?Object.entries(e).reduce((e,[n,i])=>({...e,[n]:r(t,i)}),{}):e},uy=({store:e,provider:t,singleStory:n,docsOptions:r={}},{runCheck:i=!0}={})=>{let a={findRef:e=>{let t=a.getRefs();return Object.values(t).find(({url:t})=>t.match(e))},changeRefVersion:async(e,t)=>{let{versions:n,title:r}=a.getRefs()[e],i={id:e,url:t,versions:n,title:r,index:{},filteredIndex:{},expanded:!0};await a.setRef(e,{...i,type:`unknown`},!1),await a.checkRef(i)},changeRefState:(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,previewInitialized:n},e.setState({refs:i})},checkRef:async e=>{let{id:t,url:n,version:r,type:i}=e,o=i===`server-checked`,s={},c=r?`?version=${r}`:``,l=o?`omit`:`include`,u=cy(n),d={Accept:`application/json`};u.authorization&&Object.assign(d,{Authorization:`Basic ${u.authorization}`});let[f,p]=await Promise.all([`index.json`,`stories.json`].map(async e=>J_(ry(`${u.url}/${e}${c}`,{headers:d,credentials:l}))));if(!f.indexError||!p.indexError){let e=await J_(ry(`${u.url}/metadata.json${c}`,{headers:d,credentials:l,cache:`no-cache`}).catch(()=>!1));Object.assign(s,{...f.indexError?p:f,...!e.indexError&&e})}else o||(s.indexError={message:T`
|
|
178
|
+
Error: Loading of ref failed
|
|
179
|
+
at fetch (lib/api/src/modules/refs.ts)
|
|
180
|
+
|
|
181
|
+
URL: ${u.url}
|
|
182
|
+
|
|
183
|
+
We weren't able to load the above URL,
|
|
184
|
+
it's possible a CORS error happened.
|
|
185
|
+
|
|
186
|
+
Please check your dev-tools network tab.
|
|
187
|
+
`});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=ay}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?Jv(ly(s,h,{storyMapper:m})):o,f=Qv(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=Qv(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=(d=oy(d,h),sy(d,h?.storyUpdates)),f&&=(f=oy(f,h),sy(f,h?.storyUpdates)),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&&Uv.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}}},dy=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=iy(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 Vv.warn(`Received a ${i} frame that was not configured as a ref`),null}},fy=({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(Bv,{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();Xo(t,i)||e.setState({globals:t}),Xo(r,a)||e.setState({userGlobals:r}),Xo(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(Rv,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=dy(this,t);i?Lv.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(zv,function({globals:n,globalTypes:i}){let{ref:a}=dy(this,t),o=e.getState()?.userGlobals;a?Object.keys(n).length>0&&Lv.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&&!Xo(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},py={},w(py,{ActiveTabs:()=>yy,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>Sy,DEFAULT_NAV_SIZE:()=>xy,DEFAULT_RIGHT_PANEL_WIDTH:()=>Cy,focusableUIElements:()=>Ty,getDefaultLayoutState:()=>wy,init:()=>My,isPagesViewMode:()=>by}),{SET_CONFIG:my}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:hy}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:gy}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{document:_y}=hy,vy=e=>typeof e==`function`,yy={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},by=e=>e!==void 0&&e!==`story`&&e!==`docs`&&e!==`review`,xy=300,Sy=300,Cy=400,wy=()=>({ui:{enableShortcuts:!0},layout:{initialActive:yy.CANVAS,navSize:xy,bottomPanelHeight:Sy,rightPanelWidth:Cy,recentVisibleSizes:{navSize:xy,bottomPanelHeight:Sy,rightPanelWidth:Cy},panelPosition:`bottom`,showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:xe()}),Ty={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`},Ey=e=>e.layout.navSize>0,Dy=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},Oy=e=>!Ey(e)&&!Dy(e),ky=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}),Ay=(e,t,n)=>{let r=Object.keys(e),i=l(t,r);for(let e of Object.keys(i))gy(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${e}: ... } })\` instead.`);let a=_(i,t.layout||{}),{showPanel:o,showNav:s}=a,c=_(e,l(a,r));return s===!1||n?(c.recentVisibleSizes=ky(c),c.navSize=0):s===!0&&(c.navSize=c.recentVisibleSizes.navSize),o===!1?(c.recentVisibleSizes=ky(c),c.bottomPanelHeight=0,c.rightPanelWidth=0):o===!0&&(c.bottomPanelHeight=c.recentVisibleSizes.bottomPanelHeight,c.rightPanelWidth=c.recentVisibleSizes.rightPanelWidth),c},jy=(e,t)=>{let n=Object.keys(e),r=l(t,n);for(let e of Object.keys(r))gy(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${e}: ... } })\` instead.`);let i=n;return _(e,l(_(r,t.ui||{}),i))},My=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=Oy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:ky(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=Dy(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:ky(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=Ey(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:ky(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:ky(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=_y.getElementById(e);return!t||(t.focus(),t!==_y.activeElement&&n&&t.getAttribute(`tabindex`)===null&&(t.setAttribute(`tabindex`,`-1`),t.focus()),t!==_y.activeElement&&t.id!==_y.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 e=t.getConfig(),r=wy(),{theme:i,selectedPanel:a,layoutCustomisations:o}=e;return{...r,layout:Ay(r.layout,e,!!n),layoutCustomisations:{...r.layoutCustomisations,...o??{}},ui:jy(r.ui,e),selectedPanel:a||r.selectedPanel,theme:i||r.theme}},getIsFullscreen(){return Oy(e.getState())},getIsPanelShown(){return Dy(e.getState())},getIsNavShown(){return Ey(e.getState())},getNavAvailability(){let t=e.getState();return Pt(t.path,t.customQueryParams)?`unavailable`:Ey(t)?`shown`:`hidden`},getShowToolbarWithCustomisations(t){let n=e.getState();return vy(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return vy(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(vy(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=Ay(r,t,!!n),c=jy(i,t),l={...o,...t.theme},u={};d(i,c)||(u.ui=c),d(r,s)||(u.layout=s),t.selectedPanel&&!d(a,t.selectedPanel)&&(u.selectedPanel=t.selectedPanel),Object.keys(u).length&&e.setState(u,{persistence:`permanent`}),d(o,l)||e.setState({theme:l})}},i=l(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(my,()=>{r.setOptions(xv(r.getInitialOptions(),i))}),{api:r,state:xv(r.getInitialOptions(),i)}},Ny={},w(Ny,{init:()=>Py}),Py=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Zo(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]=Zo(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),Fy={},w(Fy,{init:()=>Ry}),{OPEN_IN_EDITOR_REQUEST:Iy,OPEN_IN_EDITOR_RESPONSE:Ly}=__STORYBOOK_MODULE_CORE_EVENTS__,Ry=({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(Ly,o),n(t))};e.channel?.on(Ly,o),e.channel?.emit(Iy,t)})}},state:{notifications:[]},init:async()=>{let{color:n}=await a(async()=>{let{color:e}=await import(`./theming-BgT2grXK.js`).then(e=>(e.a(),e.d));return{color:e}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);e.channel?.on(Ly,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:ov.createElement(Xe,{color:n.negative}),duration:8e3})})}}),zy={},w(zy,{init:()=>By}),By=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),Vy={},w(Vy,{init:()=>Hy}),Hy=({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}})}}}),Uy={},w(Uy,{controlOrMetaKey:()=>cb,defaultShortcuts:()=>lb,init:()=>db,isMacLike:()=>sb,keys:()=>X_}),Wy=C(dv(),1),{FORCE_REMOUNT:Gy,PREVIEW_KEYDOWN:Ky,STORIES_COLLAPSE_ALL:qy,STORIES_EXPAND_ALL:Jy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Yy}=__STORYBOOK_MODULE_GLOBAL__,{global:Xy}=__STORYBOOK_MODULE_GLOBAL__,{navigator:Zy}=Xy,Qy=()=>Zy&&Zy.platform?!!Zy.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,$y=()=>Qy()?`⌥`:`alt`,eb=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},tb=(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]),nb=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(),rb=e=>e.map(nb).join(` `),ib=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:ab,document:ob}=Yy,sb=()=>ab&&ab.platform?!!ab.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,cb=()=>sb()?`meta`:`control`,lb=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[cb(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[cb(),`shift`,`,`],aboutPage:[cb(),`,`],escape:[`escape`],collapseAll:[cb(),`shift`,`ArrowUp`],expandAll:[cb(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),ub={},db=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...lb,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return ub},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})),ub[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=eb(e),n=r.getShortcutKeys(),i=X_(n).find(e=>tb(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)return;let c=t.getNavAvailability()===`unavailable`,l=[`focusNav`,`search`,`toggleNav`].includes(n);if(!(c&&l))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(Ty.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Ty.storySearchField,!0)},0);break;case`focusIframe`:{let e=ob.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(Ty.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=ob.getElementById(Ty.addonPanel);t.togglePanel(),e&&Y_(n)&&t.focusOnUIElement(Ty.showAddonPanel,{poll:!0}).then(e=>{e===!1&&ob.body.focus()}),e||t.focusOnUIElement(Ty.addonPanel,{forceFocus:!0,poll:!0});break}case`toggleNav`:{let e=t.getIsNavShown(),n=ob.getElementById(Ty.sidebarRegion);t.toggleNav(),e&&Y_(n)&&t.focusOnUIElement(Ty.showSidebar,{poll:!0}).then(e=>{e===!1&&ob.body.focus()}),e||t.focusOnUIElement(Ty.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(qy);break;case`expandAll`:t.emit(Jy);break;case`remount`:t.emit(Gy,{storyId:a});break;case`openInEditor`:Yy.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,Wy.default)(e)}break;default:ub[n].action()}}},{shortcuts:i=lb}=e.getState();return{api:r,state:{shortcuts:X_(lb).reduce((e,t)=>({...e,[t]:i[t]||lb[t]}),lb)},init:()=>{ob.addEventListener(`keydown`,e=>{Z_(e)||r.handleKeydownEvent(e)}),n.channel?.on(Ky,e=>{r.handleKeydownEvent(e.event)})}}},fb={},w(fb,{init:()=>ax}),{logger:pb}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:mb,CURRENT_STORY_WAS_SET:hb,DOCS_PREPARED:gb,PRELOAD_ENTRIES:_b,RESET_STORY_ARGS:vb,SELECT_STORY:yb,SET_CONFIG:bb,SET_CURRENT_STORY:xb,SET_FILTER:Sb,SET_INDEX:Cb,SET_STORIES:wb,SIDEBAR_FILTER_CHANGED:Tb,STORY_ARGS_UPDATED:Eb,STORY_CHANGED:Db,STORY_INDEX_INVALIDATED:Ob,STORY_MISSING:kb,STORY_PREPARED:Ab,STORY_SPECIFIED:jb,UPDATE_STORY_ARGS:Mb}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Nb}=__STORYBOOK_MODULE_GLOBAL__,Pb=(e,t={})=>[e,...Object.entries(t).filter(([e,t])=>e!==`path`&&t!=null).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),Fb=(e,t)=>{let n=sv.useRef(t?t(e.getState()):e.getState()),r=sv.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e),o=t(i);!d(a,o)&&(n.current=a,r())}),[e,t]),i=sv.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return d(i,n.current)||(n.current=i),n.current},[e,t]);return[sv.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:Ib,getStatusStoreByTypeId:Lb,useStatusStore:Rb,universalStatusStore:zb}=Ct({universalStatusStore:Pn.create({...Ot,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:Fb,environment:`manager`}),Bb=(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}},Vb=e=>Bb(e,Et),Hb=(e,t)=>{if(!e.length&&!t.length)return;let n=e.map(e=>Dt(e)).sort(),r=t.map(e=>`!${Dt(e)}`).sort();return[...n,...r].join(`;`)},Ub=(e,t)=>n=>{if(!e.length&&!t.length)return!0;let r=(Ib.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},Wb=C(Me(),1),Gb={$docs:`_docs`,$play:`_play`,$test:`_test`},Kb=e=>Bb(e,e=>Gb[e]??e),qb=(e,t)=>{if(!e.length&&!t.length)return``;let n=Object.fromEntries(Object.entries(Gb).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(`;`)},Jb=(0,Wb.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)}}),Yb=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(ns.ATTACHED_MDX)&&!n.includes(ns.UNATTACHED_MDX);return(n.includes(ns.DEV)||r)&&n.filter(e=>t[e]).length===0}},Xb=(e,t)=>{let n=e=>Object.values(e.reduce((e,t)=>(Object.hasOwn(rs,t)?e[`built-in`].push(rs[t]):e.user.push(is(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:Zb}=Nb,Qb=`./index.json`,$b=`tags-filter`,ex=`static-filter`,tx=`status-filter`,nx=new Set(Object.keys(rs)),rx=[`enableShortcuts`,`theme`,`showRoots`],ix={tag:{included:`includedTagFilters`,excluded:`excludedTagFilters`},status:{included:`includedStatusFilters`,excluded:`excludedStatusFilters`}},ax=({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(Pb(e,i??{}),r)},l=e=>t.setState(e,{persistence:`url`,serialize:e=>{let t=qb(e.includedTagFilters,e.excludedTagFilters),n=Hb(e.includedStatusFilters,e.excludedStatusFilters);return{tags:t??null,statuses:n??null}}}),u=!1,d=async(e,n,r)=>{let{included:i,excluded:a}=ix[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}=ix[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=>nx.has(e)),o=(i.excludedTagFilters??[]).filter(e=>nx.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=rs[e];u[e]=d.filter(e=>t(e)).length}if(c.length>0||l.length>0){let e=St(Ib.getAll());for(let t of new Set([...c,...l]))e[t]!==void 0&&(u[t]=e[t])}r.channel?.emit(Tb,{trigger:e,changed:n,activeTagFilters:{included:a,excluded:o},activeStatusFilters:{included:c,excluded:l},storyCounts:u})},m={storyId:lh,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:!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(),{filteredIndex:n}=e;if(n){let e=Object.keys(n).find(e=>n[e].type===`story`);e&&m.selectStory(e);return}let{index:r}=e;if(!r)return;let i=Object.keys(r).find(e=>r[e].type===`story`);if(i){m.selectStory(i);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[lh(f,n)]);else{let t=i?`${i}_${lh(e,n)}`:lh(e,n);if(p[t])d(p[t]);else{let t=p[sh(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[sh(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=ey(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=ty(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(Mb,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(vb,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await Zb(Qb);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){pb.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=Ib.getAll(),c=Qv(e,{provider:r,docsOptions:s,filters:a,allStatuses:o,statusFilterKey:tx}),l=Qv(e,{provider:r,docsOptions:s,filters:{},allStatuses:o});await t.setState({internal_index:e,filteredIndex:$v(c,n),index:$v(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}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,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}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(e=>({filters:{...e.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(Sb,{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&&nx.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&&nx.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($b,Xb(e,n))},g=()=>{let{includedStatusFilters:e,excludedStatusFilters:n}=t.getState();return m.experimental_setFilter(tx,Ub(e??[],n??[]))};r.channel?.on(jb,function({storyId:n,viewMode:i}){let{sourceType:a}=dy(this,e);if(a===`local`){let e=t.getState(),a=!Pt(e.path,e.customQueryParams)&&(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){let{filteredIndex:t}=e;if(t&&!o&&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(xb,{storyId:e.storyId,viewMode:e.viewMode}):s&&c(`/${i}/${n}`)}}}),r.channel?.on(hb,function(){let{ref:t}=dy(this,e);m.setPreviewInitialized(t)}),r.channel?.on(Db,function(){let{sourceType:t}=dy(this,e);if(t===`local`){let t=m.getCurrentParameter(`options`);t&&e.setOptions(Q_(t))}}),r.channel?.on(Ab,function({id:n,...i}){let{ref:a,sourceType:o}=dy(this,e);if(m.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(Q_(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(_b,{ids:a,options:{target:i}})}}),r.channel?.on(gb,function({id:t,...n}){let{ref:r}=dy(this,e);m.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(Cb,function(t){let{ref:n}=dy(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{m.setIndex(t);let n=m.getCurrentParameter(`options`);e.setOptions(Q_(n))}}),r.channel?.on(wb,function(t){let{ref:n}=dy(this,e),r=t.v?qv(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(yb,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=dy(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(Eb,function({storyId:t,args:n}){let{ref:r}=dy(this,e);m.updateStory(t,{args:n},r)}),r.channel?.on(mb,function(t){let{ref:n}=dy(this,e);m.setPreviewInitialized(n)}),r.channel?.on(kb,function(t){let{ref:n}=dy(this,e);m.setPreviewInitialized(n)}),r.channel?.on(bb,()=>{let e=r.getConfig()?.sidebar?.filters||{},{includedTagFilters:n,excludedTagFilters:i,includedStatusFilters:a,excludedStatusFilters:o,tagPresets:s}=t.getState();t.setState(({filters:t})=>({filters:{...t,...e,[ex]:Yb(s),[$b]:Xb(n,i),[tx]:Ub(a,o)}}))}),Ib.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=Nb.TAGS_OPTIONS||{},y=Jb(v),{tags:b,statuses:x}=vg(i??{search:``}),S=Kb(b),C=b!==void 0,w=C?S.included:y.included,T=C?S.excluded:y.excluded,E=Vb(x),D=E.included,O=E.excluded;return{api:m,state:{storyId:a,viewMode:o,hasCalledSetOptions:!1,previewInitialized:!1,filters:{..._,[ex]:Yb(v),[$b]:Xb(w,T),[tx]:Ub(D,O)},tagPresets:v,defaultIncludedTagFilters:y.included,defaultExcludedTagFilters:y.excluded,includedTagFilters:w,excludedTagFilters:T,includedStatusFilters:D,excludedStatusFilters:O},init:async()=>{if(r.channel?.on(Ob,()=>m.fetchIndex()),await m.fetchIndex(),u)return;u=!0;let e=w.some(e=>nx.has(e))||T.some(e=>nx.has(e)),t=!!globalThis?.FEATURES?.changeDetection&&(D.length>0||O.length>0);(e||t)&&p(`url`)}}},ox={},w(ox,{getCustomQueryParams:()=>_x,init:()=>bx}),{GLOBALS_UPDATED:sx,NAVIGATE_URL:cx,SET_CURRENT_STORY:lx,STORY_ARGS_UPDATED:ux,UPDATE_QUERY_PARAMS:dx}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:fx}=__STORYBOOK_MODULE_GLOBAL__,px=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},mx=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),hx=(e,t)=>{let n=mx(e),r=mx(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},gx=[`full`,`panel`,`nav`,`shortcuts`,`addonPanel`,`tabs`,`path`],_x=e=>x(vg(e),gx),yx=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u}=vg(e),d,f,p;px(a)===!0?(d=0,f=0,p=0):px(a)===!1&&(d=xy,f=Sy,p=Cy),i||(px(s)===!0&&(d=xy),px(s)===!1&&(d=0)),px(o)===!1&&(f=0,p=0);let m={navSize:d,bottomPanelHeight:f,rightPanelWidth:p,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:px(u)},h={enableShortcuts:px(c)},g=l||void 0,_=r,v=_x(e),y=Xo(vx,v)?vx:v;return vx=y,{viewMode:n,layout:m,ui:h,selectedPanel:g,location:e,path:t,customQueryParams:y,storyId:_}},bx=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n(Pb(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`,embed:g=!1,freeze:_=!1}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let v=c.pathname||`/`,y=fx.window.location.origin+v,b=fx.STORYBOOK_NETWORK_ADDRESS??y,S=u===`origin`?y:u===`network`?b:v,C=m?l[m].url+`/iframe.html`:fx.PREVIEW_URL||`${S.replace(/\/[^/]*\.html$/,``).replace(/\/?$/,`/`)}iframe.html`,w=m?`&refId=${encodeURIComponent(m)}`:``,{args:T=``,globals:E=``,...D}=p,O=d?hx(s?.args??``,T):T,k=f?hx(s?.globals??``,E):E,A=x(D,[`embed`,`freeze`]),j=x(D,[`id`,`viewMode`,`embed`,`freeze`]),M=ms(A,{nesting:!0,nestingSyntax:`js`}),ee=ms(j,{nesting:!0,nestingSyntax:`js`});O&&=`&args=${O}`,k&&=`&globals=${k}`,M&&=`&${M}`,ee&&=`&${ee}`;let te=g?`&embed=true`:``,ne=_?`&freeze=finished`:``;return{managerHref:`${S}?path=/${h}/${m?`${m}_`:``}${e}${O}${k}${M}`,previewHref:`${C}?id=${e}&viewMode=${h}${w}${O}${m?``:k}${ee}${te}${ne}`}},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;Xo(n,i)||(t.setState({customQueryParams:i}),r.channel?.emit(dx,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=gg(l,c);a(`${e}${t}`,{...n,args:u||null},{replace:!0}),o.setQueryParams({args:u||null})};r.channel?.on(lx,()=>s());let c;return r.channel?.on(ux,()=>{`requestIdleCallback`in fx.window?(c&&fx.window.cancelIdleCallback(c),c=fx.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(sx,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=gg(t,xv(t,e));a(`${n}${r}`,{...i,globals:s||null},{replace:!0}),o.setQueryParams({globals:s||null})}),r.channel?.on(cx,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:yx(e),init:()=>{t.registerPersistenceHandler(`url`,(e,n)=>{if(n){let e=n(t.getState());o.applyQueryParams(e,{replace:!0})}})}}},xx={},w(xx,{init:()=>Ox}),Sx=C(Me(),1),{global:Cx}=__STORYBOOK_MODULE_GLOBAL__,wx=`10.5.10`,{VERSIONCHECK:Tx}=Cx,Ex=(0,Sx.default)(1)(()=>{try{return{...JSON.parse(Tx).data||{}}}catch{return{}}}),Dx=e=>e.includes(`vue`)?`vue`:e,Ox=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:wx},...Ex()},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&&cv.default.prerelease(r.version)&&n?t&&cv.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+=`${cv.default.major(l)}.${cv.default.minor(l)}/`;else if(r&&l&&s){let e=cv.default.diff(s,l);e===`patch`||e===null||(u+=`${cv.default.major(l)}.${cv.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof Cx.STORYBOOK_RENDERER<`u`){let e=Cx.STORYBOOK_RENDERER;e&&(u+=`?renderer=${Dx(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=cv.default.prerelease(t.version)?`${cv.default.major(t.version)}.${cv.default.minor(t.version)}.${cv.default.patch(t.version)}`:t.version,r=cv.default.diff(n,e.version);return cv.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=Ex();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},kx={},w(kx,{init:()=>Lx}),{REQUEST_WHATS_NEW_DATA:Ax,RESULT_WHATS_NEW_DATA:jx,SET_WHATS_NEW_CACHE:Mx,TOGGLE_WHATS_NEW_NOTIFICATIONS:Nx}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Px}=__STORYBOOK_MODULE_GLOBAL__,Fx=`whats-new`,Ix=({color:e=`currentColor`,size:t=14})=>lv.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},lv.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})),Lx=({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(Fx))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(Nx,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(Ax),new Promise(e=>n.channel?.once(jx,({data:t})=>e(t)))}function s(e){n.channel?.emit(Mx,e)}return{init:async()=>{if(Px.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState(),r=n?.path===`/onboarding`||n.queryParams?.onboarding===`true`,a=n?.path===`/review/`||n?.path===`/review`||n?.path?.startsWith(`/review/`);!r&&!a&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:Fx,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:lv.createElement(Ix,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},Rx=C(fv(),1),zx=e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),Sa(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:wa(r)})},zx(Rx.default._),Bx=`@storybook/manager/store`,Vx=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[Rx.default.local,Rx.default.session]){let t=$_(e);if(`includedTagFilters`in t||`excludedTagFilters`in t){let{includedTagFilters:n,excludedTagFilters:r,...i}=t;ev(e,i)}}let t=$_(Rx.default.local),n=$_(Rx.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 tv(a===`session`?Rx.default.session:Rx.default.local,s)}return r&&r(c),c}},{ActiveTabs:Hx}=py,Ux=yv({api:void 0,state:wv({})}),Wx=(...e)=>Sv({},...e),Gx=class extends iv.Component{constructor(e){super(e),this.api={},this.mounted=!1,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 Vx({getState:()=>this.state,setState:(e,t)=>{if(!this.mounted){let n=typeof e==`function`?e(this.state):e;return this.state={...this.state,...n},t?.(this.state),this.state}return 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(wv({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[zy,Pv,Av,py,Ny,Vy,Uy,fb,Hv,Iv,ox,xx,kx,Fy].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=wv(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,e.provider.handleAPI(this.api)}componentDidMount(){this.mounted=!0}static getDerivedStateFromProps(e,t){let n=t.location?.search!==e.location?.search;return t.path!==e.path||n?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId,customQueryParams:_x(e.location)}:null}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!d(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return iv.createElement(Kx,{effect:this.initModules},iv.createElement(Ux.Provider,{value:t},iv.createElement(nv,null,e)))}},Gx.displayName=`Manager`,Kx=({children:e,effect:t})=>(iv.useEffect(t,[]),e),qx=e=>e,globalThis.STORYBOOK_ADDON_STATE={},{STORYBOOK_ADDON_STATE:Jx}=globalThis,{Channel:Yx}=__STORYBOOK_MODULE_CHANNELS__,Xx={id:`storybook/test-provider`,leader:!0,initialState:{}},{fullTestProviderStore:Zx,getTestProviderStoreById:Qx,useTestProviderStore:$x,universalTestProviderStore:eS}=rv({universalTestProviderStore:Pn.create({...Xx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:Fb}),tS={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:{}}},nS=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)}))}}),rS=Pn.create({...tS,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),nS(rS)})))()}var aS=n({createCopyToClipboardFunction:()=>cS});async function oS(e){try{await IM.top?.navigator.clipboard.writeText(e)}catch{await IM.navigator.clipboard.writeText(e)}}async function sS(e){let t=FM.createElement(`TEXTAREA`),n=FM.activeElement;t.value=e,FM.body.appendChild(t),t.select(),FM.execCommand(`copy`),FM.body.removeChild(t),n.focus()}function cS(){return IM.navigator?.clipboard?oS:sS}function lS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function uS(...e){return t=>{let n=!1,r=e.map(e=>{let r=lS(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():lS(e[t],null)}}}}function dS(e){return typeof e==`object`&&!!e&&`then`in e}function fS(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===RM&&`_payload`in e&&dS(e._payload)}function pS(e){let t=mS(e),n=lk.forwardRef((e,n)=>{let{children:r,...i}=e;fS(r)&&typeof zM==`function`&&(r=zM(r._payload));let a=lk.Children.toArray(r),o=a.find(gS);if(o){let e=o.props.children,r=a.map(t=>t===o?lk.Children.count(e)>1?lk.Children.only(null):lk.isValidElement(e)?e.props.children:null:t);return(0,uk.jsx)(t,{...i,ref:n,children:lk.isValidElement(e)?lk.cloneElement(e,void 0,r):null})}return(0,uk.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function mS(e){let t=lk.forwardRef((e,t)=>{let{children:n,...r}=e;if(fS(n)&&typeof zM==`function`&&(n=zM(n._payload)),lk.isValidElement(n)){let e=vS(n),i=_S(r,n.props);return n.type!==lk.Fragment&&(i.ref=t?uS(t,e):e),lk.cloneElement(n,i)}return lk.Children.count(n)>1?lk.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function hS(e){let t=({children:e})=>(0,uk.jsx)(uk.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=VM,t}function gS(e){return lk.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===VM}function _S(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 vS(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 yS(e){let[t,n]=(0,hk.useState)(e),r=(0,hk.useRef)(t),i=(0,hk.useRef)(null),a=(0,hk.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 U(()=>{r.current=t,i.current&&a.current()}),[t,(0,hk.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}function bS(e=!1){let t=(0,_k.useContext)(KM),n=(0,_k.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=_k.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=JM.get(e);n==null?JM.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,JM.delete(e))}n.current=++t.current}return n.current}function xS(e){let t=(0,_k.useContext)(KM),n=bS(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function SS(e){let t=_k.useId(),[n]=(0,_k.useState)(ES()),r=n?`react-aria`:`react-aria${GM.prefix}`;return e||`${r}-${t}`}function CS(){return!1}function wS(){return!0}function TS(e){return()=>{}}function ES(){return typeof _k.useSyncExternalStore==`function`?_k.useSyncExternalStore(TS,CS,wS):(0,_k.useContext)(qM)}function DS(e){let[t,n]=(0,gk.useState)(e),r=(0,gk.useRef)(null),i=YM(t),a=(0,gk.useRef)(null);if(QM&&QM.register(a,i),XM){let e=ZM.get(i);e&&!e.includes(r)?e.push(r):ZM.set(i,[r])}return U(()=>{let e=i;return()=>{QM&&QM.unregister(a),ZM.delete(e)}},[i]),(0,gk.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function OS(e,t){if(e===t)return e;let n=ZM.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=ZM.get(t);return r?(r.forEach(t=>t.current=e),e):t}function kS(e=[]){let t=DS(),[n,r]=yS(t),i=(0,gk.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return U(i,[t,i,...e]),n}function AS(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function jS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function MS(e){return jS(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}function NS(){return eN}function PS(e,t){if(!NS())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:MS(n)?n.host:n.parentNode}return!1}function FS(e){return NS()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function IS(e,t,n,r){return NS()?new nN(e,t,n,r):e.createTreeWalker(t,n,r)}function LS(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=LS(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function RS(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=LS(e))&&(r&&(r+=` `),r+=t);return r}function R(...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]=AS(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=rN(n,i):e===`id`&&n&&i?t.id=OS(n,i):t[e]=i===void 0?n:i}}return t}function zS(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=BS(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():BS(e[n],null)})}}}function BS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function VS(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)&&(iN.has(t)||n&&aN.has(t)||r&&oN.has(t)||i&&sN.has(t)||a&&(cN.has(t)||t.endsWith(`Capture`)&&cN.has(t.slice(0,-7)))||o?.has(t)||lN.test(t))&&(s[t]=e[t]);return s}function HS(e){if(US())e.focus({preventScroll:!0});else{let t=WS(e);e.focus(),GS(t)}}function US(){if(uN==null){uN=!1;try{document.createElement(`div`).focus({get preventScroll(){return uN=!0,!0}})}catch{}}return uN}function WS(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 GS(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function KS(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 qS(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function JS(e){let t=null;return()=>(t??=e(),t)}function YS(){return(0,vk.useContext)(bN)}function XS(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 ZS(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;yN()&&(i=window.event)!=null&&(r=i.type)!=null&&r.startsWith(`key`)&&e.target===`_blank`&&(dN()?a=!0:o=!0);let l=gN()&&dN()&&!pN()?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});ZS.isOpening=n,HS(e),e.dispatchEvent(l),ZS.isOpening=!1}function QS(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 $S(e,t){QS(e,e=>ZS(e,t))}function eC(e){let t=YS().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 tC(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&XS(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}function nC(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=xN.get(t.target);r||(r=new Set,xN.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=xN.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),xN.delete(t.target)),xN.size===0)){for(let e of SN)e();SN.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function rC(){for(let[e]of xN)`isConnected`in e&&!e.isConnected&&xN.delete(e)}function iC(e){requestAnimationFrame(()=>{rC(),xN.size===0?e():SN.add(e)})}function aC(){let e=(0,yk.useRef)(new Map),t=(0,yk.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,yk.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,yk.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,yk.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function oC(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=DS(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 sC(e){let t=(0,bk.useRef)(null),n=(0,bk.useRef)(void 0),r=(0,bk.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,bk.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 cC(e){let t=(0,xk.useRef)(null);return CN(()=>{t.current=e},[e]),(0,xk.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function lC(e,t){let n=(0,Sk.useRef)(!0),r=(0,Sk.useRef)(null);U(()=>(n.current=!0,()=>{n.current=!1}),[]),U(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function uC(){return typeof window.ResizeObserver<`u`}function dC(e){let{ref:t,box:n,onResize:r}=e,i=cC(r);(0,Ck.useEffect)(()=>{let e=t?.current;if(e){if(uC()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}}},[t,n])}function fC(e,t){U(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function pC(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 mC(e,t){let n=e;for(pC(n,t)&&(n=n.parentElement);n&&!pC(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function hC(e,t){let n=[];for(;e&&e!==document.documentElement;)pC(e,t)&&n.push(e),e=e.parentElement;return n}function gC(e){return dN()?e.metaKey:e.ctrlKey}function _C(e){return e instanceof HTMLInputElement&&!wN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function vC(e){let[t,n]=(0,wk.useState)();return U(()=>{if(!e)return;let t=EN.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${TN++}`;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},EN.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),EN.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function yC(e,t,n,r){let i=cC(n),a=n==null;(0,Tk.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 bC(e,t){let n=xC(e,t,`left`),r=xC(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 xC(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 SC(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=hC(e);s||t.push(o);for(let n of t)bC(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 CC(e){return e.pointerType===``&&e.isTrusted?!0:vN()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function wC(e){return!vN()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function TC(e){let t=Ek.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}function EC(e,t=!0){let[n,r]=(0,Ok.useState)(!0),i=n&&t;return U(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),OC(e,i,(0,Ok.useCallback)(()=>r(!1),[])),i}function DC(e,t){let[n,r]=(0,Ok.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`)}let i=n===`exiting`;return OC(e,i,(0,Ok.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function OC(e,t,n){U(()=>{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,Dk.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function kC(e){let t=$M(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 AC(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 jC(e,t){return kN?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&kC(e)&&AC(e,t)&&(!e.parentElement||jC(e.parentElement,e))}function MC(e){return e.matches(jN)&&jC(e)&&!PC(e)}function NC(e){return e.matches(MN)&&jC(e)&&!PC(e)}function PC(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function FC(e,t,n){let[r,i]=(0,kk.useState)(e||t),a=(0,kk.useRef)(r),o=(0,kk.useRef)(e!==void 0),s=e!==void 0;(0,kk.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;NN(()=>{a.current=c});let[,l]=(0,kk.useReducer)(()=>({}),{});return[c,(0,kk.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 IC(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function LC(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function RC(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function zC(e){let t=(0,Ak.useRef)({isFocused:!1,observer:null});U(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=cC(t=>{e?.(t)});return(0,Ak.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=LC(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 BC(e){for(;e&&!MC(e);)e=e.parentElement;let t=$M(e),n=t.document.activeElement;if(!n||n===e)return;PN=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,HS(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,HS(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),PN=!1,r=!1},l=requestAnimationFrame(c);return c}function VC(e){if(mN()){if(FN==="default"){let t=W(e);IN=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}FN=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;LN.set(e,e.style[t]),e.style[t]=`none`}}function HC(e){if(mN()){if(FN!==`disabled`)return;FN=`restoring`,setTimeout(()=>{iC(()=>{if(FN===`restoring`){let t=W(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=IN||``),IN=``,FN=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&LN.has(e)){let t=LN.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),LN.delete(e)}}function UC(e,t){return t.get?t.get.call(e):t.value}function WC(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function GC(e,t){return UC(e,WC(e,t,`get`))}function KC(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function qC(e,t,n){KC(e,t),t.set(e,n)}function JC(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 YC(e,t,n){return JC(e,WC(e,t,`set`),n),n}function XC(e){let t=(0,Mk.useContext)(RN);if(t){let{register:n,...r}=t;e=R(r,e),n()}return fC(t,e.ref),e}function ZC(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}=XC(e),[m,h]=(0,Mk.useState)(!1),g=(0,Mk.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=aC(),y=cC((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new BN(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=cC((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 BN(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new BN(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=cC((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new BN(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=cC(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(ew(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||HC(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=cC(e=>{u&&S(e)}),w=cC(e=>{s||o?.(e)}),T=cC((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);RC(n,t),o(LC(n))}}),E=(0,Mk.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if($C(t.nativeEvent,t.currentTarget)&&PS(t.currentTarget,FS(t.nativeEvent))){var r;nw(FS(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;_(W(t.currentTarget),`keyup`,AS(t=>{$C(t,r)&&!t.repeat&&PS(r,FS(t))&&e.target&&x(ew(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&dN()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!PS(t.currentTarget,FS(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!ZS.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||CC(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(ew(t.currentTarget,t),r),a=b(ew(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&&$C(t,e.target)){var r;nw(FS(t),t.key)&&t.preventDefault();let n=FS(t),i=PS(e.target,FS(t));b(ew(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&QC(e.target)&&PS(e.target,n)&&!t[VN]&&(t[VN]=!0,ZS(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||!PS(t.currentTarget,FS(t.nativeEvent)))return;if(wC(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||VC(e.target),i=y(t,e.pointerType);let a=FS(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(W(t.currentTarget),`pointerup`,n,!1),_(W(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(PS(t.currentTarget,FS(t.nativeEvent))&&t.button===0){if(l){let n=BC(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!PS(t.currentTarget,FS(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(ew(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b(ew(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(PS(e.target,FS(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(HS(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=>{PS(e.currentTarget,FS(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,Mk.useEffect)(()=>{if(!f)return;let e=W(f.current);if(!e||!e.head||e.getElementById(HN))return;let t=e.createElement(`style`);t.id=HN,t.textContent=`
|
|
188
|
+
@layer {
|
|
189
|
+
[${UN}] {
|
|
190
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
`.trim(),e.head.prepend(t)},[f]),(0,Mk.useEffect)(()=>{let e=g.current;return()=>{d||HC(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[d]),{isPressed:c||m,pressProps:R(p,E,{[UN]:!0})}}function QC(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function $C(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof $M(i).HTMLInputElement&&!rw(i,n)||i instanceof $M(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&QC(i))&&n!==`Enter`)}function ew(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function tw(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!QC(e)}function nw(e,t){return e instanceof HTMLInputElement?!rw(e,t):tw(e)}function rw(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:WN.has(e.type)}function iw(e,t){for(let n of KN)n(e,t)}function aw(e){return!(e.metaKey||!dN()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function ow(e){JN=!0,aw(e)&&(GN=`keyboard`,iw(`keyboard`,e))}function sw(e){GN=`pointer`,(e.type===`mousedown`||e.type===`pointerdown`)&&(JN=!0,iw(`pointer`,e))}function cw(e){CC(e)&&(JN=!0,GN=`virtual`)}function lw(e){e.target===window||e.target===document||PN||!e.isTrusted||(!JN&&!YN&&(GN=`virtual`,iw(`virtual`,e)),JN=!1,YN=!1)}function uw(){PN||(JN=!1,YN=!0)}function dw(e){if(typeof window>`u`||typeof document>`u`||qN.get($M(e)))return;let t=$M(e),n=W(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){JN=!0,r.apply(this,arguments)},n.addEventListener(`keydown`,ow,!0),n.addEventListener(`keyup`,ow,!0),n.addEventListener(`click`,cw,!0),t.addEventListener(`focus`,lw,!0),t.addEventListener(`blur`,uw,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,sw,!0),n.addEventListener(`pointermove`,sw,!0),n.addEventListener(`pointerup`,sw,!0)),t.addEventListener(`beforeunload`,()=>{ZN(e)},{once:!0}),qN.set(t,{focus:r})}function fw(e){let t=W(e),n;return t.readyState===`loading`?(n=()=>{dw(e)},t.addEventListener(`DOMContentLoaded`,n)):dw(e),()=>ZN(e,n)}function pw(){return GN!==`pointer`}function mw(){return GN}function hw(){dw();let[e,t]=(0,Nk.useState)(GN);return(0,Nk.useEffect)(()=>{let e=()=>{t(GN)};return KN.add(e),()=>{KN.delete(e)}},[]),ES()?null:e}function gw(e,t,n){let r=W(n?.target),i=typeof window<`u`?$M(n?.target).HTMLInputElement:HTMLInputElement,a=typeof window<`u`?$M(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<`u`?$M(n?.target).HTMLElement:HTMLElement,s=typeof window<`u`?$M(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!QN.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof o&&r.activeElement.isContentEditable,!(e&&t===`keyboard`&&n instanceof s&&!XN[n.key])}function _w(e,t,n){dw(),(0,Nk.useEffect)(()=>{let t=(t,r)=>{gw(!!n?.isTextInput,t,r)&&e(pw())};return KN.add(t),()=>{KN.delete(t)}},t)}function vw(e){let t=W(e),n=tN(t);if(mw()===`virtual`){let r=n;iC(()=>{tN(t)===r&&e.isConnected&&HS(e)})}else HS(e)}function yw(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,Pk.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=zC(a),s=(0,Pk.useCallback)(e=>{let t=W(e.target),r=t?tN(t):tN();e.target===e.currentTarget&&r===FS(e.nativeEvent)&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function bw(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}}),t&&n.stopPropagation()}}function xw(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:bw(e.onKeyDown),onKeyUp:bw(e.onKeyUp)}}}function Sw(e){let t=(0,Fk.useContext)($N)||{};fC(t,e);let{ref:n,...r}=t;return r}function Cw(e,t){let{focusProps:n}=yw(e),{keyboardProps:r}=xw(e),i=R(n,r),a=Sw(t),o=e.isDisabled?{}:a,s=(0,Fk.useRef)(e.autoFocus);(0,Fk.useEffect)(()=>{s.current&&t.current&&vw(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:R({...i,tabIndex:c},o)}}function ww({children:e}){let t=(0,Lk.useMemo)(()=>({register:()=>{}}),[]);return Lk.createElement(RN.Provider,{value:t},e)}function Tw(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,Rk.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=aC(),c=(0,Rk.useCallback)(e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=zC(c),u=(0,Rk.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=W(e.target),n=tN(t);if(!a.current.isFocusWithin&&n===FS(e.nativeEvent)){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let n=e.currentTarget;o(t,`focus`,e=>{if(a.current.isFocusWithin&&!PS(n,e.target)){let r=new t.defaultView.FocusEvent(`blur`,{relatedTarget:e.target});RC(r,n);let i=LC(r);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function Ew(){iP=!0,setTimeout(()=>{iP=!1},50)}function Dw(e){e.pointerType===`touch`&&Ew()}function Ow(){if(!(typeof document>`u`))return aP===0&&typeof PointerEvent<`u`&&document.addEventListener(`pointerup`,Dw),aP++,()=>{aP--,!(aP>0)&&typeof PointerEvent<`u`&&document.removeEventListener(`pointerup`,Dw)}}function kw(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,zk.useState)(!1),s=(0,zk.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,zk.useEffect)(Ow,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=aC(),{hoverProps:u,triggerHoverEnd:d}=(0,zk.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(W(e.target),`pointerover`,e=>{s.isHovered&&s.target&&!PS(s.target,e.target)&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,!(t===`touch`||!s.isHovered||!i)&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{iP&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,zk.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}function Aw(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,Bk.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=cC(e=>{n&&jw(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=cC(e=>{n&&n(e)});(0,Bk.useEffect)(()=>{let e=a.current;if(r)return;let n=t.current,i=W(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&jw(n,t)&&s(n),e.isPointerDown=!1};return i.addEventListener(`pointerdown`,o,!0),i.addEventListener(`click`,n,!0),()=>{i.removeEventListener(`pointerdown`,o,!0),i.removeEventListener(`click`,n,!0)}}},[t,r,o,s])}function jw(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}function Mw(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=oP,accessibilityDescription:o}=e,s=(0,Vk.useRef)(void 0),{addGlobalListener:c,removeGlobalListener:l}=aC(),{pressProps:u}=ZC({isDisabled:t,onPressStart(e){if(e.continuePropagation(),(e.pointerType===`mouse`||e.pointerType===`touch`)&&(n&&n({...e,type:`longpressstart`}),s.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),W(e.target).activeElement!==e.target&&HS(e.target),i&&i({...e,type:`longpress`}),s.current=void 0},a),e.pointerType===`touch`)){let t=e=>{e.preventDefault()};c(e.target,`contextmenu`,t,{once:!0}),c(window,`pointerup`,()=>{setTimeout(()=>{l(e.target,`contextmenu`,t)},30)},{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),r&&(e.pointerType===`mouse`||e.pointerType===`touch`)&&r({...e,type:`longpressend`})}});return{longPressProps:R(u,vC(i&&!t?o:void 0))}}function Nw({values:e,children:t}){for(let[n,r]of e)t=Hk.createElement(n.Provider,{value:r},t);return t}function Pw(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s}=e;return(0,Hk.useMemo)(()=>{let e,c,l;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,l=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:l??a,"data-rac":``}},[t,n,r,i,a,o,s])}function Fw(e,t){let n=(0,Hk.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||sP;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function Iw(e,t,n){let{ref:r,...i}=Fw(n,e.slot)||{},a=sC((0,Hk.useMemo)(()=>zS(t,r),[t,r])),o=R(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function Lw(e=!0){let[t,n]=(0,Hk.useState)(e),r=(0,Hk.useRef)(!1),i=(0,Hk.useCallback)(e=>{r.current=!0,n(!!e)},[]);return U(()=>{r.current||n(!1)},[]),[i,t]}function Rw(e,t){let n=VS(e,{labelable:!0}),{hoverProps:r}=kw({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:R(n,r,{role:`tooltip`})}}function zw(e,t,n){let{isDisabled:r,trigger:i}=e,a=DS(),o=(0,Wk.useRef)(!1),s=(0,Wk.useRef)(!1),c=()=>{(o.current||s.current)&&t.open(s.current)},l=e=>{!o.current&&!s.current&&t.close(e)};(0,Wk.useEffect)(()=>{let e=e=>{n&&n.current&&e.key===`Escape`&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener(`keydown`,e,!0),()=>{document.removeEventListener(`keydown`,e,!0)}},[n,t]);let u=()=>{i!==`focus`&&(mw()===`pointer`?o.current=!0:o.current=!1,c())},d=()=>{i!==`focus`&&(s.current=!1,o.current=!1,l())},f=()=>{s.current=!1,o.current=!1,l(!0)},p=()=>{pw()&&(s.current=!0,c())},m=()=>{s.current=!1,o.current=!1,l(!0)},{hoverProps:h}=kw({isDisabled:r,onHoverStart:u,onHoverEnd:d}),{focusableProps:g}=Cw({isDisabled:r,onFocus:p,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...R(g,h,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:a}}}function Bw(e){let t=0,n=0,r=0,i=0,a=0,o=0,s={},c=(hP?.scale??1)>1;if(e.tagName===`BODY`){let c=document.documentElement;r=c.clientWidth,i=c.clientHeight,t=hP?.width??r,n=hP?.height??i,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft,hP&&(a=hP.offsetTop,o=hP.offsetLeft)}else({width:t,height:n,top:a,left:o}=Zw(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,i=n;return gN()&&(e.tagName===`BODY`||e.tagName===`HTML`)&&c&&(s.top=0,s.left=0,a=hP?.pageTop??0,o=hP?.pageLeft??0),{width:t,height:n,totalWidth:r,totalHeight:i,scroll:s,top:a,left:o}}function Vw(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Hw(e,t,n,r,i,a,o){let s=i.scroll[e]??0,c=r[fP[e]],l=r.scroll[lP[e]]+a,u=c+r.scroll[lP[e]]-a,d=t-s+o[e]-r[lP[e]],f=t-s+n+o[e]-r[lP[e]];return d<l?l-d:f>u?Math.max(u-f,l-d):0}function Uw(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ww(e){if(mP[e])return mP[e];let[t,n]=e.split(` `),r=lP[t]||`right`,i=dP[r];lP[n]||(n=`center`);let a=fP[r],o=fP[i];return mP[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},mP[e]}function Gw(e,t,n,r,i,a,o,s,c,l){let{placement:u,crossPlacement:d,axis:f,crossAxis:p,size:m,crossSize:h}=r,g={};g[p]=e[p]??0,d===`center`?g[p]+=((e[h]??0)-(n[h]??0))/2:d!==p&&(g[p]+=(e[h]??0)-(n[h]??0)),g[p]+=a;let _=e[p]-n[h]+c+l,v=e[p]+e[h]-c-l;if(g[p]=IC(g[p],_,v),u===f){let n=s?o[m]:t[pP[m]];g[uP[f]]=Math.floor(n-e[f]+i)}else g[f]=Math.floor(e[f]+e[m]+i);return g}function Kw(e,t,n,r,i,a,o,s){let c=r?n.height:t[pP.height],l=e.top==null?n.top+(c-(e.bottom??0)-o):n.top+e.top,u=s===`top`?Math.max(0,l+o-(t.top+(t.scroll.top??0))-((i.top??0)+(i.bottom??0)+a)):Math.max(0,t.height+t.top+(t.scroll.top??0)-l-((i.top??0)+(i.bottom??0)+a));return Math.min(t.height-a*2,u)}function qw(e,t,n,r,i,a){let{placement:o,axis:s,size:c}=a;return o===s?Math.max(0,n[s]-e[s]-(e.scroll[s]??0)+t[s]-(r[s]??0)-r[uP[s]]-i):Math.max(0,e[c]+e[s]+e.scroll[s]-t[s]-n[s]-n[c]-(r[s]??0)-r[uP[s]]-i)}function Jw(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=Ww(e),{size:_,crossAxis:v,crossSize:y,placement:b,crossPlacement:x}=g,S=Gw(t,s,n,g,u,d,l,f,m,h),C=u,w=qw(s,l,t,i,a+u,g);if(o&&r[_]>w){let e=Ww(`${uP[b]} ${x}`),r=Gw(t,s,n,e,u,d,l,f,m,h);qw(s,l,t,i,a+u,e)>w&&(g=e,S=r,C=u)}let T=`bottom`;g.axis===`top`?g.placement===`top`?T=`top`:g.placement===`bottom`&&(T=`bottom`):g.crossAxis===`top`&&(g.crossPlacement===`top`?T=`bottom`:g.crossPlacement===`bottom`&&(T=`top`));let E=Hw(v,S[v],n[y],s,c,a,l);S[v]+=E;let D=Kw(S,s,l,f,i,a,n.height,T);p&&p<D&&(D=p),n.height=Math.min(n.height,D),S=Gw(t,s,n,g,C,d,l,f,m,h),E=Hw(v,S[v],n[y],s,c,a,l),S[v]+=E;let O={},k=t[v]-S[v]-i[lP[v]],A=k+.5*t[y],j=m/2+h,M=lP[v]===`left`?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),ee=n[y]-M-m/2-h;O[v]=IC(IC(A,t[v]+m/2-(S[v]+i[lP[v]]),t[v]+t[y]-m/2-(S[v]+i[lP[v]])),j,ee),{placement:b,crossPlacement:x}=g,m?k=O[v]:x===`right`?k+=t[y]:x===`center`&&(k+=t[y]/2);let te=b===`left`||b===`top`?n[_]:0,ne={x:b===`top`||b===`bottom`?k:te,y:b===`left`||b===`right`?k:te};return{position:S,maxHeight:D,arrowOffsetLeft:O.left,arrowOffsetTop:O.top,placement:b,triggerAnchorPoint:ne}}function Yw(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:c,crossOffset:l,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,p=r instanceof HTMLElement?$w(r):document.documentElement,m=p===document.documentElement,h=window.getComputedStyle(p).position,g=!!h&&h!==`static`,_=m?Zw(n,!1):Qw(n,p,!1);if(!m){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);_.top+=parseInt(e,10)||0,_.left+=parseInt(t,10)||0}let v=Zw(r,!0),y=Uw(r);v.width+=(y.left??0)+(y.right??0),v.height+=(y.top??0)+(y.bottom??0);let b=Vw(i),x=Bw(s),S=Bw(p),C=s.tagName===`BODY`?Zw(p,!1):Qw(p,s,!1);return p.tagName===`HTML`&&s.tagName===`BODY`&&(S.scroll.top=0,S.scroll.left=0),Jw(t,_,v,b,y,a,o,x,S,C,c,l,g,u,d,f)}function Xw(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function Zw(e,t){let{top:n,left:r,width:i,height:a}=Xw(e,t),{scrollTop:o,scrollLeft:s,clientTop:c,clientLeft:l}=document.documentElement;return{top:n+o-c,left:r+s-l,width:i,height:a}}function Qw(e,t,n){let r=window.getComputedStyle(e),i;if(r.position===`fixed`)i=Xw(e,n);else{i=Zw(e,n);let r=Zw(t,n),a=window.getComputedStyle(t);r.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,i.top-=r.top,i.left-=r.left}return i.top-=parseInt(r.marginTop,10)||0,i.left-=parseInt(r.marginLeft,10)||0,i}function $w(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position===`static`&&!eT(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!eT(t);)t=t.parentElement;return t||document.documentElement}function eT(e){let t=window.getComputedStyle(e);return t.transform!==`none`||/transform|perspective/.test(t.willChange)||t.filter!==`none`||t.contain===`paint`||`backdropFilter`in t&&t.backdropFilter!==`none`||`WebkitBackdropFilter`in t&&t.WebkitBackdropFilter!==`none`}function tT(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,Gk.useEffect)(()=>{if(!n||r===null)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let i=r||gP.get(t.current);i&&i()};return window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`scroll`,e,!0)}},[n,r,t])}function nT(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return _P.has(t.script)}let t=e.split(`-`)[0];return vP.has(t)}function rT(){let e=typeof window<`u`&&window[yP]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:nT(e)?`rtl`:`ltr`}}function iT(){bP=rT();for(let e of xP)e(bP)}function aT(){let e=ES(),[t,n]=(0,qk.useState)(bP);return(0,qk.useEffect)(()=>(xP.size===0&&window.addEventListener(`languagechange`,iT),xP.add(n),()=>{xP.delete(n),xP.size===0&&window.removeEventListener(`languagechange`,iT)}),[]),e?{locale:`en-US`,direction:`ltr`}:t}function oT(){let e=aT();return(0,Jk.useContext)(SP)||e}function sT(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);CP(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function cT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function lT(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function uT(e,t){var n=t&&t.cache?t.cache:EP,r=t&&t.serializer?t.serializer:wP;return(t&&t.strategy?t.strategy:hT)(e,{cache:n,serializer:r})}function dT(e){return e==null||typeof e==`number`||typeof e==`boolean`}function fT(e,t,n,r){var i=dT(r)?r:n(r),a=t.get(i);return typeof a>`u`&&(a=e.call(this,r),t.set(i,a)),a}function pT(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>`u`&&(a=e.apply(this,r),t.set(i,a)),a}function mT(e,t,n,r,i){return n.bind(t,e,r,i)}function hT(e,t){var n=e.length===1?fT:pT;return mT(e,this,n,t.cache.create(),t.serializer)}function gT(e,t){return mT(e,this,pT,t.cache.create(),t.serializer)}function _T(e,t){return mT(e,this,fT,t.cache.create(),t.serializer)}function vT(e){return e.type===OP.literal}function yT(e){return e.type===OP.argument}function bT(e){return e.type===OP.number}function xT(e){return e.type===OP.date}function ST(e){return e.type===OP.time}function CT(e){return e.type===OP.select}function wT(e){return e.type===OP.plural}function TT(e){return e.type===OP.pound}function ET(e){return e.type===OP.tag}function DT(e){return!!(e&&typeof e==`object`&&e.type===kP.number)}function OT(e){return!!(e&&typeof e==`object`&&e.type===kP.dateTime)}function kT(e){var t={};return e.replace(jP,function(e){var n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}function AT(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);for(var t=e.split(MP).filter(function(e){return e.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split(`/`);if(a.length===0)throw Error(`Invalid number skeleton`);for(var o=a[0],s=a.slice(1),c=0,l=s;c<l.length;c++)if(l[c].length===0)throw Error(`Invalid number skeleton`);n.push({stem:o,options:s})}return n}function jT(e){return e.replace(/^(.*?)-/,``)}function MT(e){var t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(PP,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function NT(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function PT(e){var t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){var n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!IP.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function FT(e){return NT(e)||{}}function IT(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=i.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=jT(i.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t=G(G(G({},t),{notation:`scientific`}),i.options.reduce(function(e,t){return G(G({},e),FT(t))},{}));continue;case`engineering`:t=G(G(G({},t),{notation:`engineering`}),i.options.reduce(function(e,t){return G(G({},e),FT(t))},{}));continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(i.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(i.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);i.options[0].replace(FP,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw Error(`We currently do not support maximum integer digits`);if(o)throw Error(`We currently do not support exact integer digits`)}return``});continue}if(IP.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(NP.test(i.stem)){if(i.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);i.stem.replace(NP,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});var a=i.options[0];a===`w`?t=G(G({},t),{trailingZeroDisplay:`stripIfInteger`}):a&&(t=G(G({},t),MT(a)));continue}if(PP.test(i.stem)){t=G(G({},t),MT(i.stem));continue}var o=NT(i.stem);o&&(t=G(G({},t),o));var s=PT(i.stem);s&&(t=G(G({},t),s))}return t}function LT(e,t){for(var n=``,r=0;r<e.length;r++){var i=e.charAt(r);if(i===`j`){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),c=`a`,l=RT(t);for((l==`H`||l==`k`)&&(s=0);s-->0;)n+=c;for(;o-->0;)n=l+n}else n+=i===`J`?`H`:i}return n}function RT(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}var n=e.language,r;return n!==`root`&&(r=e.maximize().region),(LP[r||``]||LP[n||``]||LP[`${n}-001`]||LP[`001`])[0]}function z(e,t){return{start:e,end:t}}function zT(e,t){return new RegExp(e,t)}function BT(e){return e>=97&&e<=122||e>=65&&e<=90}function VT(e){return BT(e)||e===47}function HT(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function UT(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function WT(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function GT(e){e.forEach(function(e){if(delete e.location,CT(e)||wT(e))for(var t in e.options)delete e.options[t].location,GT(e.options[t].value);else bT(e)&&DT(e.style)||(xT(e)||ST(e))&&OT(e.style)?delete e.style.location:ET(e)&>(e.children)})}function KT(e,t){t===void 0&&(t={}),t=G({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new rF(e,t).parse();if(n.err){var r=SyntaxError(K[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||GT(n.val),n.val}function qT(e){return e.length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return!n||n.type!==lF.literal||t.type!==lF.literal?e.push(t):n.value+=t.value,e},[])}function JT(e){return typeof e==`function`}function YT(e,t,n,r,i,a,o){if(e.length===1&&vT(e[0]))return[{type:lF.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(vT(u)){s.push({type:lF.literal,value:u.value});continue}if(TT(u)){typeof a==`number`&&s.push({type:lF.literal,value:n.getNumberFormat(t).format(a)});continue}var d=u.value;if(!(i&&d in i))throw new cF(d,o);var f=i[d];if(yT(u)){(!f||typeof f==`string`||typeof f==`number`)&&(f=typeof f==`string`||typeof f==`number`?String(f):``),s.push({type:typeof f==`string`?lF.literal:lF.object,value:f});continue}if(xT(u)){var p=typeof u.style==`string`?r.date[u.style]:OT(u.style)?u.style.parsedOptions:void 0;s.push({type:lF.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(ST(u)){var p=typeof u.style==`string`?r.time[u.style]:OT(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:lF.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(bT(u)){var p=typeof u.style==`string`?r.number[u.style]:DT(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(f*=p.scale||1),s.push({type:lF.literal,value:n.getNumberFormat(t,p).format(f)});continue}if(ET(u)){var m=u.children,h=u.value,g=i[h];if(!JT(g))throw new sF(h,`function`,o);var _=g(YT(m,t,n,r,i,a).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),s.push.apply(s,_.map(function(e){return{type:typeof e==`string`?lF.literal:lF.object,value:e}}))}if(CT(u)){var v=u.options[f]||u.options.other;if(!v)throw new oF(u.value,f,Object.keys(u.options),o);s.push.apply(s,YT(v.value,t,n,r,i));continue}if(wT(u)){var v=u.options[`=${f}`];if(!v){if(!Intl.PluralRules)throw new aF(`Intl.PluralRules is not available in this environment.
|
|
194
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
195
|
+
`,iF.MISSING_INTL_API,o);var y=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));v=u.options[y]||u.options.other}if(!v)throw new oF(u.value,f,Object.keys(u.options),o);s.push.apply(s,YT(v.value,t,n,r,i,f-(u.offset||0)));continue}}return qT(s)}function XT(e,t){return t?G(G(G({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=G(G({},e[r]),t[r]||{}),n},{})):e}function ZT(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=XT(e[r],t[r]),n},G({},e)):e}function QT(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function $T(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:uT(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,lT([void 0],t,!1)))},{cache:QT(e.number),strategy:DP.variadic}),getDateTimeFormat:uT(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,lT([void 0],t,!1)))},{cache:QT(e.dateTime),strategy:DP.variadic}),getPluralRules:uT(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,lT([void 0],t,!1)))},{cache:QT(e.pluralRules),strategy:DP.variadic})}}function eE(e,t,n=`en-US`){if(t[e])return t[e];let r=tE(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function tE(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function nE(e){let t=_F.get(e);return t||(t=new pF(e),_F.set(e,t)),t}function rE(e,t){return t&&pF.getGlobalDictionaryForPackage(t)||nE(e)}function iE(e,t){let{locale:n}=oT(),r=rE(e,t);return(0,Yk.useMemo)(()=>new gF(n,r),[n,r])}function aE(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`),t.style===`unit`&&!wF){var r;let{unit:e,unitDisplay:n=`short`}=t;if(!e)throw Error(`unit option must be provided with style: "unit"`);if(!((r=TF[e])!=null&&r[n]))throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:`decimal`}}let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(SF.has(i))return SF.get(i);let a=new Intl.NumberFormat(e,t);return SF.set(i,a),a}function oE(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}return e.format(n)}}function sE(e={}){let{locale:t}=oT();return(0,Xk.useMemo)(()=>new EF(t,e),[t,e])}function cE(e){let{locale:t}=oT(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(DF.has(n))return DF.get(n);let r=new Intl.Collator(t,e);return DF.set(n,r),r}function lE(e){let{direction:t}=oT(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s=`bottom`,containerPadding:c=12,shouldFlip:l=!0,boundaryElement:u=typeof document<`u`?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:_=0}=e,[v,y]=(0,Kk.useState)(null),b=[p,s,i.current,r.current,a?.current,o.current,c,l,u,d,f,m,t,g,_,n],x=(0,Kk.useRef)(OF?.scale);(0,Kk.useEffect)(()=>{m&&(x.current=OF?.scale)},[m]);let S=(0,Kk.useCallback)(()=>{if(p===!1||!m||!i.current||!r.current||!u||OF?.scale!==x.current)return;let e=null;if(o.current&&o.current.contains(document.activeElement)){let t=document.activeElement?.getBoundingClientRect(),n=o.current.getBoundingClientRect();e={type:`top`,offset:(t?.top??0)-n.top},e.offset>n.height/2&&(e.type=`bottom`,e.offset=(t?.bottom??0)-n.bottom)}let h=i.current;!g&&i.current&&(h.style.top=`0px`,h.style.bottom=``,h.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+`px`);let v=Yw({placement:dE(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:c,shouldFlip:l,boundaryElement:u,offset:d,crossOffset:f,maxHeight:g,arrowSize:n??(a?.current?Xw(a.current,!0).width:0),arrowBoundaryOffset:_});if(v.position){if(h.style.top=``,h.style.bottom=``,h.style.left=``,h.style.right=``,Object.keys(v.position).forEach(e=>h.style[e]=v.position[e]+`px`),h.style.maxHeight=v.maxHeight==null?``:v.maxHeight+`px`,e&&document.activeElement&&o.current){let t=document.activeElement.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}y(v)}},b);U(S,b),uE(S),dC({ref:i,onResize:S}),dC({ref:r,onResize:S});let C=(0,Kk.useRef)(!1);U(()=>{let e,t=()=>{C.current=!0,clearTimeout(e),e=setTimeout(()=>{C.current=!1},500),S()},n=()=>{C.current&&t()};return OF?.addEventListener(`resize`,t),OF?.addEventListener(`scroll`,n),()=>{OF?.removeEventListener(`resize`,t),OF?.removeEventListener(`scroll`,n)}},[S]);let w=(0,Kk.useCallback)(()=>{C.current||h?.()},[h,C]);return tT({triggerRef:r,isOpen:m,onClose:h&&w}),{overlayProps:{style:{position:v?`absolute`:`fixed`,top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:v?.maxHeight??`100vh`}},placement:v?.placement??null,triggerAnchorPoint:v?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":`true`,role:`presentation`,style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:S}}function uE(e){U(()=>(window.addEventListener(`resize`,e,!1),()=>{window.removeEventListener(`resize`,e,!1)}),[e])}function dE(e,t){return t===`rtl`?e.replace(`start`,`right`).replace(`end`,`left`):e.replace(`start`,`left`).replace(`end`,`right`)}function fE(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,Zk.useRef)(null),o=(0,Zk.useRef)(null),s=(0,Zk.useRef)([]),{parentNode:c}=(0,Zk.useContext)(kF)||{},l=(0,Zk.useMemo)(()=>new NF({scopeRef:s}),[s]);U(()=>{let e=c||PF.root;if(PF.getTreeNode(e.scopeRef)&&jF&&!SE(jF,e.scopeRef)){let t=PF.getTreeNode(jF);t&&(e=t)}e.addChild(l),PF.addNode(l)},[l,c]),U(()=>{let e=PF.getTreeNode(s);e&&(e.contain=!!n)},[n]),U(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(AF,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(AF,n)}},[t]),DE(s,r,n),_E(s,n),kE(s,r,n),EE(s,i),(0,Zk.useEffect)(()=>{let e=tN(W(s.current?s.current[0]:void 0)),t=null;if(yE(e,s.current)){for(let n of PF.traverse())n.scopeRef&&yE(e,n.scopeRef.current)&&(t=n);t===PF.getTreeNode(s)&&(jF=t.scopeRef)}},[s]),U(()=>()=>{var e,t;let n=((t=PF.getTreeNode(s))==null||(e=t.parent)==null?void 0:e.scopeRef)??null;(s===jF||SE(s,jF))&&(!n||PF.getTreeNode(n))&&(jF=n),PF.removeTreeNode(s)},[s]);let u=(0,Zk.useMemo)(()=>pE(s),[]),d=(0,Zk.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return Zk.createElement(kF.Provider,{value:d},Zk.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,Zk.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function pE(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||tN(W(n[0]??void 0)),c=n[0].previousElementSibling,l=jE(mE(n),{tabbable:i,accept:o},n);l.currentNode=yE(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&CE(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||tN(W(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=jE(mE(n),{tabbable:i,accept:o},n);l.currentNode=yE(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&CE(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=jE(mE(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&CE(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=jE(mE(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&CE(o,!0),o}}}function mE(e){return e[0].parentElement}function hE(e){let t=PF.getTreeNode(jF);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function gE(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...W(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);else{var n,r;t=[...((r=e.form)==null||(n=r.elements)==null?void 0:n.namedItem(e.name))??[]]}return t?!t.some(e=>e.checked):!1}function _E(e,t){let n=(0,Zk.useRef)(void 0),r=(0,Zk.useRef)(void 0);U(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=W(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!hE(e)||t.isComposing)return;let n=tN(a),r=e.current;if(!r||!yE(n,r))return;let i=jE(mE(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&CE(o,!0)},s=t=>{(!jF||SE(jF,e))&&yE(FS(t),e.current)?(jF=e,n.current=FS(t)):hE(e)&&!bE(FS(t),e)?n.current?n.current.focus():jF&&jF.current&&TE(jF.current):hE(e)&&(n.current=FS(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=mw(),i=(r===`virtual`||r===null)&&vN()&&_N(),o=tN(a);if(!i&&o&&hE(e)&&!bE(o,e)){jF=e;let r=FS(t);if(r&&r.isConnected){var s;n.current=r,(s=n.current)==null||s.focus()}else jF.current&&TE(jF.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),U(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function vE(e){return bE(e)}function yE(e,t){return!e||!t?!1:t.some(t=>t.contains(e))}function bE(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of PF.traverse(PF.getTreeNode(t)))if(n&&yE(e,n.current))return!0;return!1}function xE(e){return bE(e,jF)}function SE(e,t){let n=PF.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function CE(e,t=!1){if(e!=null&&!t)try{vw(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function wE(e,t=!0){let n=e[0].previousElementSibling,r=mE(e),i=jE(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=mE(e),i=jE(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function TE(e,t=!0){CE(wE(e,t))}function EE(e,t){let n=Zk.useRef(t);(0,Zk.useEffect)(()=>{n.current&&(jF=e,!yE(tN(W(e.current?e.current[0]:void 0)),jF.current)&&e.current&&TE(e.current)),n.current=!1},[e])}function DE(e,t,n){U(()=>{if(t||n)return;let r=e.current,i=W(r?r[0]:void 0),a=t=>{let n=FS(t);yE(n,e.current)?jF=e:vE(n)||(jF=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function OE(e){let t=PF.getTreeNode(jF);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function kE(e,t,n){let r=(0,Zk.useRef)(typeof document<`u`?tN(W(e.current?e.current[0]:void 0)):null);U(()=>{let r=e.current,i=W(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!jF||SE(jF,e))&&yE(tN(i),e.current)&&(jF=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),U(()=>{let r=W(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!hE(e)||t.isComposing)return;let n=r.activeElement;if(!bE(n,e)||!OE(e))return;let i=PF.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=jE(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if((!a||!a.isConnected||a===r.body)&&(a=void 0,i.nodeToRestore=void 0),(!s||!bE(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(bE(s,e));t.preventDefault(),t.stopPropagation(),s?CE(s,!0):vE(a)?CE(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),U(()=>{let n=W(e.current?e.current[0]:void 0);if(!t)return;let i=PF.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=PF.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=tN(n);if(t&&i&&(a&&bE(a,e)||a===n.body&&OE(e))){let t=PF.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){AE(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&PF.getTreeNode(n.scopeRef)){AE(wE(n.scopeRef.current,!0));return}n=n.parent}}})}}},[e,t])}function AE(e){e.dispatchEvent(new CustomEvent(AF,{bubbles:!0,cancelable:!0}))&&CE(e)}function jE(e,t,n){let r=t?.tabbable?NC:MC,i=W(e?.nodeType===Node.ELEMENT_NODE?e:null),a=IS(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return t!=null&&(i=t.from)!=null&&i.contains(e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!gE(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||yE(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function ME(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||tN(W(r)),l=jE(r,{tabbable:a,accept:s});r.contains(c)&&(l.currentNode=c);let u=l.nextNode();return!u&&o&&(l.currentNode=r,u=l.nextNode()),u&&CE(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||tN(W(r)),l=jE(r,{tabbable:a,accept:s});if(r.contains(c))l.currentNode=c;else{let e=NE(l);return e&&CE(e,!0),e??null}let u=l.previousNode();if(!u&&o){l.currentNode=r;let e=NE(l);if(!e)return null;u=e}return u&&CE(u,!0),u??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=jE(r,{tabbable:i,accept:a}).nextNode();return o&&CE(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=NE(jE(r,{tabbable:i,accept:a}));return o&&CE(o,!0),o??null}}}function NE(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}function PE(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,Qk.useRef)({isFocused:!1,isFocusVisible:t||pw()}),[a,o]=(0,Qk.useState)(!1),[s,c]=(0,Qk.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,Qk.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,Qk.useCallback)(e=>{i.current.isFocused=e,o(e),l()},[l]);_w(e=>{i.current.isFocusVisible=e,l()},[],{isTextInput:n});let{focusProps:d}=yw({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=Tw({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}function FE(e,t){let n=t?.isDisabled,[r,i]=(0,$k.useState)(!1);return U(()=>{if(e?.current&&!n){let t=()=>{if(e.current){let t=jE(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),!n&&r}function IE(e){let t=zE(W(e));t!==e&&(t&&LE(t,e),e&&RE(e,t))}function LE(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function RE(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function zE(e){let t=tN(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}function BE(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e;(0,eA.useEffect)(()=>{if(i&&!FF.includes(t))return FF.push(t),()=>{let e=FF.indexOf(t);e>=0&&FF.splice(e,1)}},[i,t]);let c=()=>{FF[FF.length-1]===t&&n&&n()},l=e=>{(!s||s(e.target))&&FF[FF.length-1]===t&&(e.stopPropagation(),e.preventDefault())},u=e=>{(!s||s(e.target))&&(FF[FF.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())},d=e=>{e.key===`Escape`&&!o&&!e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault(),c())};Aw({ref:t,onInteractOutside:a&&i?u:void 0,onInteractOutsideStart:l});let{focusWithinProps:f}=Tw({isDisabled:!r,onBlurWithin:e=>{!e.relatedTarget||xE(e.relatedTarget)||(!s||s(e.relatedTarget))&&n?.()}}),p=e=>{e.target===e.currentTarget&&e.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}function VE(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,tA.useEffect)(()=>{n&&n.current&&gP.set(n.current,t.close)});let a;r===`menu`?a=!0:r===`listbox`&&(a=`listbox`);let o=DS();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}function HE(e={}){let{isDisabled:t}=e;U(()=>{if(!t)return LF++,LF===1&&(RF=mN()?WE():UE()),()=>{LF--,LF===0&&RF()}},[t])}function UE(){let e=window.innerWidth-document.documentElement.clientWidth;return AS(e>0&&(`scrollbarGutter`in document.documentElement.style?GE(document.documentElement,`scrollbarGutter`,`stable`):GE(document.documentElement,`paddingRight`,`${e}px`)),GE(document.documentElement,`overflow`,`hidden`))}function WE(){let e,t=!1,n=n=>{let r=n.target;e=pC(r)?r:mC(r,!0),t=!1;let i=r.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(r,!0)&&(t=!0),`selectionStart`in r&&`selectionEnd`in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(t=!0)},r=document.createElement(`style`);r.textContent=`@layer {
|
|
196
|
+
* {
|
|
197
|
+
overscroll-behavior: contain;
|
|
198
|
+
}
|
|
199
|
+
}`,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&&_C(n)?(n.focus({preventScroll:!0}),qE(n,_C(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=document.activeElement!=null&&_C(document.activeElement);o.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&qE(this,t)};let s=AS(KE(document,`touchstart`,n,{passive:!1,capture:!0}),KE(document,`touchmove`,i,{passive:!1,capture:!0}),KE(document,`blur`,a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function GE(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function KE(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qE(e,t){t||!IF?JE(e):IF.addEventListener(`resize`,()=>JE(e),{once:!0})}function JE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=mC(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;IF&&(n=Math.min(n,IF.offsetTop+IF.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 YE(){return(0,nA.useContext)(zF)??{}}function XE(e){let{children:t}=e,n=(0,rA.useContext)(BF),[r,i]=(0,rA.useState)(0),a=(0,rA.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return rA.createElement(BF.Provider,{value:a},t)}function ZE(){let e=(0,rA.useContext)(BF);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function QE(e){let{modalProviderProps:t}=ZE();return rA.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function $E(e){return rA.createElement(XE,null,rA.createElement(QE,e))}function eD(e){let t=ES(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=YE();if(!e.portalContainer&&i&&(n=i()),rA.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=rA.createElement($E,r);return iA.createPortal(a,n)}function tD(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,oA.useState)(!1),{focusWithinProps:a}=Tw({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,oA.useMemo)(()=>r?t:t?{...SI,...t}:SI,[r]);return{visuallyHiddenProps:{...a,style:o}}}function nD(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=tD(e);return oA.createElement(n,R(a,o),t)}function rD(e){return e&&e.__esModule?e.default:e}function iD(e){let{onDismiss:t,...n}=e,r=oC(n,iE(rD(xI),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return aA.createElement(nD,null,aA.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}function aD(e,t){let n=$M(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&CI,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=wI.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),wI.set(e,t+1))};TI.length&&TI[TI.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 TI.push(p),()=>{f.disconnect();for(let e of s){let t=wI.get(e);t!=null&&(t===1?(l(e,!1),wI.delete(e)):wI.set(e,t-1))}p===TI[TI.length-1]?(TI.pop(),TI.length&&TI[TI.length-1].observe()):TI.splice(TI.indexOf(p),1)}}function oD(e){let t=TI[TI.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function sD(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}=BE({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}=lE({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return HE({isDisabled:a||!t.isOpen}),(0,sA.useEffect)(()=>{if(t.isOpen&&r.current)return a?oD(i?.current??r.current):aD([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:R(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}function cD(e){let t=ES(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,cA.useState)(!1),o=(0,cA.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=YE();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=cA.createElement(fE,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=cA.createElement(EI.Provider,{value:o},cA.createElement(ww,null,c)),lA.createPortal(c,n)}function lD(){let e=(0,cA.useContext)(EI)?.setContain;U(()=>{e?.(!0)},[e])}function uD(e,t,n){let{overlayProps:r,underlayProps:i}=BE({...e,isOpen:t.isOpen,onClose:t.close},n);return HE({isDisabled:!t.isOpen}),lD(),(0,uA.useEffect)(()=>{if(t.isOpen&&n.current)return aD([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:R(r),underlayProps:i}}function dD(e){let[t,n]=FC(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:n,open:(0,fA.useCallback)(()=>{n(!0)},[n]),close:(0,fA.useCallback)(()=>{n(!1)},[n]),toggle:(0,fA.useCallback)(()=>{n(!t)},[n,t])}}function fD(e={}){let{delay:t=DI,closeDelay:n=OI}=e,{isOpen:r,open:i,close:a}=dD(e),o=(0,dA.useMemo)(()=>`${++AI}`,[]),s=(0,dA.useRef)(null),c=(0,dA.useRef)(a),l=()=>{kI[o]=f},u=()=>{for(let e in kI)e!==o&&(kI[e](!0),delete kI[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),jI=!0,i(),MI&&=(clearTimeout(MI),null),NI&&=(clearTimeout(NI),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),MI&&=(clearTimeout(MI),null),jI&&(NI&&clearTimeout(NI),NI=setTimeout(()=>{delete kI[o],NI=null,jI=!1},Math.max(OI,n)))},p=()=>{u(),l(),!r&&!MI&&!jI?MI=setTimeout(()=>{MI=null,jI=!0,d()},t):r||d()};return(0,dA.useEffect)(()=>{c.current=a},[a]),(0,dA.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),kI[o]&&delete kI[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function pD(e){let t=fD(e),n=(0,pA.useRef)(null),{triggerProps:r,tooltipProps:i}=zw(e,t,n);return pA.createElement(Nw,{values:[[PI,t],[FI,{...i,triggerRef:n}]]},pA.createElement(eP,{...r,ref:n},e.children))}function mD(e){let t=(0,pA.useContext)(PI),n=(0,pA.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=lE({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=EC(e.tooltipRef,!!a)||e.isEntering||!1,c=Pw({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=R(e,r);let{tooltipProps:l}=Rw(e,t),u=VS(e,{global:!0});return pA.createElement(`div`,{...R(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},pA.createElement(cP.Provider,{value:{...i,placement:a,ref:n}},c.children))}function hD(e=``){let t=e.toLowerCase().trim().replace(/\s+/g,`-`);return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?hA.createElement(`span`,{id:t,hidden:!0},e):null}}function gD(e){let t=e=>typeof window<`u`&&window.matchMedia(e).matches,[n,r]=(0,xA.useState)(t(e));function i(){r(t(e))}return(0,xA.useEffect)(()=>{let t=window.matchMedia(e);return i(),t.addEventListener(`change`,i),()=>{t.removeEventListener(`change`,i)}},[e]),n}function _D({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`,_L("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),u!==void 0&&(_=`onEscapeKeyDown`,_L("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(_=`onInteractOutside`,_L("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=(0,yA.useRef)(null),[{status:y,isMounted:b},x]=TL({timeout:gD(`(prefers-reduced-motion: reduce)`)?0:m,mountOnEnter:!0,unmountOnExit:!0}),S=dD({isOpen:l||b,defaultOpen:p,onOpenChange:e=>{x(e),f?.(e)}}),C=()=>{S.close()},{modalProps:w,underlayProps:T}=uD({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,yA.useEffect)(()=>{let e=l??p??!1;e&&!b?x(!0):!e&&b&&x(!1)},[l,p,b,x]),(0,yA.useEffect)(()=>{b&&(l||p)&&f?.(!0)},[b]),(0,yA.useEffect)(()=>{if(b&&(l||p)&&v.current)return aD([v.current],{shouldUseInert:!0})},[b,l,p,v]),!b||y===`exited`||y===`unmounted`)return null;let E=R(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 yA.createElement(cD,{disableFocusManagement:!0,portalContainer:D||void 0},yA.createElement(fE,{restoreFocus:!0,contain:!0,autoFocus:!0},yA.createElement(zL,{$status:y,$transitionDuration:m,...T}),yA.createElement(`div`,{role:`dialog`,"aria-label":a,ref:v,...E},yA.createElement($L.Provider,{value:{close:C}},yA.createElement(`div`,{tabIndex:-1},yA.createElement(BL,{"data-deprecated":_,$variant:h,$status:y,$transitionDuration:m,className:c,width:r,height:i,...g},n))))))}function vD(e,t){var n=(0,DA.useRef)(null),r=(0,DA.useRef)(null);r.current=t;var i=(0,DA.useRef)(null);(0,DA.useEffect)(function(){a()});var a=(0,DA.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,DA.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,DA.useCallback)(function(e){i.current=e,a()},[a])}function yD(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 bD(e){e===void 0&&(e={});var t=e.onResize,n=(0,DA.useRef)(void 0);n.current=t;var r=e.round||Math.round,i=(0,DA.useRef)(),a=(0,DA.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],c=(0,DA.useRef)(!1);(0,DA.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]);var l=(0,DA.useRef)({width:void 0,height:void 0}),u=vD((0,DA.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=yD(i,a,`inlineSize`),u=yD(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,DA.useMemo)(function(){return{ref:u,width:o.width,height:o.height}},[u,o.width,o.height])}function xD({centered:e,scale:t,children:n}){let r=(0,EA.useRef)(null),[i,a]=(0,EA.useState)(0),o=(0,EA.useCallback)(({height:e})=>{e&&a(e/t)},[t]);return(0,EA.useEffect)(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[t]),bD({ref:r,onResize:o}),EA.createElement(eR,{centered:e,scale:t,elementHeight:i},EA.createElement(`div`,{ref:r,className:`innerZoomElementWrapper`},n))}function SD(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),LR||(LR=document.createElement(`textarea`),LR.setAttribute(`tabindex`,`-1`),LR.setAttribute(`aria-hidden`,`true`),IR(LR)),LR.parentNode===null&&document.body.appendChild(LR);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;LR.style[t]=o[t]}),IR(LR),LR.value=t;var c=RR(LR,e);LR.value=t,c=RR(LR,e),LR.value=`x`;var l=LR.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 CD(e,t,n){var r=jR(n);LA.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}function wD(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function TD(e){return{...e,type:`option`,value:OD(e.value)}}function ED(e){return`type`in e&&e.type===`reset`?e:TD(e)}function DD(e){if(e!==iz)return e}function OD(e){return e===void 0?iz:e}function kD(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}function AD(e,t){return t===void 0?[]:wD(t)?e.filter(e=>e.value===t).map(TD):e.filter(e=>t.some(t=>e.value===t)).map(TD)}function jD(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 MD(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,WA.useMemo)(()=>new WeakMap,a);return(0,WA.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,WA.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}if(typeof t!=`function`)return t},[t,n,o,r,i])}function ND(e){if((0,GA.useContext)(Sz))return GA.createElement(GA.Fragment,null,e.children);let t=GA.createElement(Sz.Provider,{value:!0},e.children);return GA.createElement(`template`,{"data-react-aria-hidden":!0},t)}function PD(e){let t=(t,n)=>(0,GA.useContext)(Sz)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,GA.forwardRef)(t)}function FD(){return(0,GA.useContext)(Sz)}function ID(e){if((0,V.useContext)(wz))return e.content;let{collection:t,document:n}=zD(e.createCollection);return V.createElement(V.Fragment,null,V.createElement(ND,null,V.createElement(wz.Provider,{value:n},e.content)),V.createElement(LD,{render:e.children,collection:t}))}function LD({collection:e,render:t}){return t(e)}function RD(e,t,n){let r=ES(),i=(0,V.useRef)(r);i.current=r;let a=(0,V.useCallback)(()=>i.current?n():t(),[t,n]);return(0,qA.useSyncExternalStore)(e,a)}function zD(e){let[t]=(0,V.useState)(()=>new xz(e?.()||new vz)),n=Tz((0,V.useCallback)(e=>t.subscribe(e),[t]),(0,V.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,V.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return U(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}function BD(e){var t;return t=class extends fz{},t.type=e,t}function VD(e,t,n,r,i,a){typeof e==`string`&&(e=BD(e));let o=(0,V.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,V.useContext)(Ez);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?V.createElement(Ez.Provider,{value:o},i):null}return V.createElement(e.type,{ref:o},i)}function HD(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,V.forwardRef)((r,i)=>{let a=(0,V.useContext)($N);if(!(0,V.useContext)(Cz)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return VD(e,r,i,`children`in r?r.children:null,null,e=>V.createElement($N.Provider,{value:a},V.createElement(n,{node:e})))});return r.displayName=t.name,r}function UD(e,t,n=WD){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,V.forwardRef)((t,i)=>VD(e,t,i,null,n(t),e=>V.createElement(r,{node:e}))??V.createElement(V.Fragment,null));return i.displayName=t.name,i}function WD(e){return MD({...e,addIdAndValue:!0})}function GD(e){let t=(0,V.useContext)(Dz),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=WD({...e,idScope:r,dependencies:n});return(0,V.useContext)(wz)&&(i=V.createElement(KD,null,i)),t=(0,V.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),V.createElement(Dz.Provider,{value:t},i)}function KD({children:e}){let t=(0,V.useContext)(wz),n=(0,V.useMemo)(()=>V.createElement(wz.Provider,{value:null},V.createElement(Cz.Provider,{value:!0},e)),[e]);return ES()?V.createElement(Ez.Provider,{value:t},n):(0,KA.createPortal)(n,t)}function qD(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=DS(t);let o=DS(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=oC({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function JD(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=VS(e,{labelable:!0}),{labelProps:c,fieldProps:l}=qD({...e,labelElementType:`span`});t=IC(t,n,r);let u=(t-n)/(r-n),d=sE(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:R(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 YD(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}=ZC({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=Cw(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=R(y,_,VS(e,{labelable:!0}));return{isPressed:v,buttonProps:R(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 XD(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 ZD({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,ZA.useRef)(null),o=(0,ZA.useRef)(null),s=(0,ZA.useContext)(Mz),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=sD({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=EC(m,!!f)||i.isEntering||!1,g=Pw({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,ZA.useState)(!1);U(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,ZA.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&vw(m.current)},[v,m,i.trigger]);let b=(0,ZA.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=ZA.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=ZA.createElement(`div`,{...R(VS(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&&ZA.createElement(iD,{onDismiss:e.close}),ZA.createElement(cP.Provider,{value:{...d,placement:f,ref:a}},b),ZA.createElement(iD,{onDismiss:e.close}));return c?ZA.createElement(cD,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):ZA.createElement(cD,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&ZA.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),ZA.createElement(`div`,{ref:o,style:{display:`contents`}},ZA.createElement(Mz.Provider,{value:o},S)))}function QD(e,t,n){return MD({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:QA.createElement(QA.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,$D(e,t,n))}})}function $D(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,QA.isValidElement)(t)&&s.push((0,QA.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}function eO(e){return(0,QA.useMemo)(()=>e==null?null:new Set([e]),[e])}function tO(e){let t=VS(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}function nO(e){return hN()?e.altKey:e.ctrlKey}function rO(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 iO(e){let t=DS();return Wz.set(e,t),t}function aO(e){return Wz.get(e)}function oO(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,rj.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=sO(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=``},Gz)}}:void 0}}}function sO(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function cO(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}=oT(),_=YS(),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&&!nO(e)){(0,ij.flushSync)(()=>{t.setFocusedKey(n,i)});let a=rO(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&&!nO(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,gC(e));t.setFocusedKey(r),r!=null&&(gC(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,gC(e));t.setFocusedKey(r),r!=null&&(gC(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`:gC(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=jE(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&HS(t)}break}}},y=(0,aj.useRef)({top:0,left:0});yC(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=rO(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&HS(e),mw()===`keyboard`&&SC(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,aj.useRef)(!1);yC(r,ON,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=cC(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=tN();IE(r.current),RE(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});lC(()=>{S.current&&C()},[t.collection,C]);let w=cC(()=>{t.collection.size>0&&(S.current=!1)});lC(()=>{w()},[t.focusedKey,w]),yC(r,DN,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,aj.useRef)(i),E=(0,aj.useRef)(!1);(0,aj.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&&vw(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,aj.useRef)(t.focusedKey),O=(0,aj.useRef)(null);(0,aj.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=mw(),n=rO(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(bC(m.current,n),e!==`virtual`&&SC(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&vw(r.current),D.current=t.focusedKey,E.current=!1}),(0,aj.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),yC(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}=oO({keyboardDelegate:n,selectionManager:t});u||(k=R(A,k));let j;d||(j=t.focusedKey==null?0:-1);let M=iO(t.collection);return{collectionProps:R(k,{tabIndex:j,"data-collection":M})}}function lO(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=YS();t=DS(t);let p=e=>{if(e.pointerType===`keyboard`&&nO(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}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&&(gC(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,oj.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?IE(i.current):s?s():document.activeElement!==i.current&&i.current&&vw(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,oj.useRef)(null),w=S&&v,T=(0,oj.useRef)(!1),E=(0,oj.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||dO())&&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`&&!uO())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||dO()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&uO()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=aO(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=R(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]=AS(k[e],D[e]));let{pressProps:A,isPressed:j}=ZC(k),M=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:ee}=Mw({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),te=e=>{C.current===`touch`&&T.current&&e.preventDefault()},ne=d!==`none`&&n.isLink(r)?e=>{ZS.isOpening||e.preventDefault()}:void 0;return{itemProps:R(m,v||b||o&&!c?A:{},w?ee:{},{onDoubleClick:M,onDragStartCapture:te,onClick:ne,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 uO(){return window.event?.key===`Enter`}function dO(){let e=window.event;return e?.key===` `||e?.code===`Space`}function fO(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=cE({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,sj.useMemo)(()=>a||new qz({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=cO({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function pO(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=VS(e,{labelable:!0}),{listProps:c}=fO({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return Uz.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:R(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 mO(e){return null}function hO(e){return e.hasChildItems==null?!!(e.childItems||e.title&&cj.Children.count(e.children)>0):e.hasChildItems}function gO(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 _O(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function vO(e){return e[0].toUpperCase()+e.slice(1)}function yO(e,t,n){let r=(0,uj.useMemo)(()=>new Yz,[]),{children:i,items:a,collection:o}=e;return(0,uj.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function bO(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function xO(e){return SO(e,0)}function SO(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function CO(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...wO(e,t),t],i=[...wO(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 wO(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function TO(e){let t=Xz.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(bO(i,e)):i.type===`item`&&n++};return r(e),Xz.set(e,n),n}function EO(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=Uz.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,A=YS(),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=kS(),te=kS(),ne=kS(),re={id:r,"aria-disabled":T||void 0,role:M,"aria-label":e[`aria-label`],"aria-labelledby":ee,"aria-describedby":[te,ne].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(re[`aria-checked`]=E),o&&(re[`aria-posinset`]=O?.index,re[`aria-setsize`]=TO(t.collection));let ie=(0,dj.useRef)(!1),ae=e=>{d?.(e),ie.current=e},oe=(0,dj.useRef)(null),se=e=>{e.pointerType!==`keyboard`&&(oe.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(ie.current||e.target.click()),l?.(e)},ce=e=>{p?.(e),j(),tC(e,A,O.props.href,O?.props.routerOptions);let t=oe.current?.pointerType===`keyboard`?oe.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),oe.current=null},{itemProps:le,isFocused:ue}=lO({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:de,isPressed:fe}=ZC({onPressStart:c,onPress:u,onPressUp:se,onPressChange:ae,onPressEnd:f,isDisabled:T}),{hoverProps:pe}=kw({isDisabled:T,onHoverStart(e){!pw()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:me}=xw({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:oe.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:oe.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e)}},onKeyUp:v}),{focusProps:he}=yw({onBlur:x,onFocus:y,onFocusChange:b}),ge=VS(O?.props);delete ge.id;let _e=eC(O?.props);return{menuItemProps:{...re,...R(ge,_e,C?{onFocus:le.onFocus,"data-collection":le[`data-collection`],"data-key":le[`data-key`]}:le,de,pe,me,he,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:ce}),tabIndex:le.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:le.tabIndex},labelProps:{id:ee},descriptionProps:{id:te},keyboardShortcutProps:{id:ne},isFocused:ue,isFocusVisible:ue&&S.isFocused&&pw()&&!w,isSelected:E,isPressed:fe,isDisabled:T}}function DO(e){let{heading:t,"aria-label":n}=e,r=DS();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function OO(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,fj.useRef)(void 0),o=(0,fj.useRef)(void 0),s=(0,fj.useRef)(0),c=(0,fj.useRef)(void 0),l=(0,fj.useRef)(void 0),u=(0,fj.useRef)(void 0),d=(0,fj.useRef)(2),[f,p]=(0,fj.useState)(!1);dC({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=Zz,a.current=void 0},h=hw(),g=cC(e=>{f&&e.preventDefault()});(0,fj.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,fj.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<Qz)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)+eB,v=Math.atan2(h-o.current.bottom,g)-eB,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,Zz):Math.max(d.current-1,0),d.current>=Zz?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)},$z))};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=Zz}},[i,r,t,h,p,g,n])}function kO(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=DS(),u=DS(),{direction:d}=oT(),f=(0,pj.useRef)(void 0),p=(0,pj.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=cC(e=>{p(),t.open(e)}),h=cC(()=>{p(),t.close()});U(()=>()=>{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&&HS(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&HS(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&HS(n.current))}}}};return yC(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()}),OO({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&&HS(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&&HS(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation()}},isOpen:t.isOpen},submenuProps:g,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}function AO(e){let t=dD(e),[n,r]=(0,mj.useState)(null),[i,a]=(0,mj.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 jO(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,hj.useState)(r?.length),c=(0,hj.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,hj.useState)(null),d=(0,hj.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,hj.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,hj.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,hj.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}function MO(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function NO(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,gj.useRef)(!1),[,s]=(0,gj.useState)(!1),c=(0,gj.useRef)(null),l=(0,gj.useRef)(null),[,u]=(0,gj.useState)(null),[d,f]=FC((0,gj.useMemo)(()=>PO(e.selectedKeys),[e.selectedKeys]),(0,gj.useMemo)(()=>PO(e.defaultSelectedKeys,new nB),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,gj.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,gj.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,gj.useRef)(i);return(0,gj.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||!MO(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function PO(e,t){return e?e===`all`?`all`:new nB(e):t}function FO(e){let{onExpandedChange:t}=e,[n,r]=FC(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=NO(e),a=(0,_j.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=yO(e,(0,_j.useCallback)(e=>new tB(e,{expandedKeys:n}),[n]),null);return(0,_j.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(IO(n,e))},setExpandedKeys:r,selectionManager:new rB(o,i)}}function IO(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function LO({props:e,collection:t,menuRef:n}){[e,n]=Iw(e,n,Lz);let{filter:r,...i}=e,a=(0,H.useMemo)(()=>r?t.filter(r):t,[t,r]),o=FO({...e,collection:a,children:void 0}),s=(0,H.useContext)(oB),{isVirtualized:c,CollectionRoot:l}=(0,H.useContext)(Iz),{menuProps:u}=pO({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=Pw({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=H.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=VS(e,{global:!0});return H.createElement(fE,null,H.createElement(`div`,{...R(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},H.createElement(Nw,{values:[[aB,o],[Vz,{elementType:`div`}],[Pz,{name:`MenuSection`,render:RO}],[cB,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[dB,null],[Lz,null],[Rz,null],[sB,o.selectionManager],[oB,s??AO({})]]},H.createElement(l,{collection:o.collection,persistedKeys:eO(o.selectionManager.focusedKey),scrollRef:n})),f))}function RO(e,t,n,r=`react-aria-MenuSection`){let i=(0,H.useContext)(aB),{CollectionBranch:a}=(0,H.useContext)(Iz),[o,s]=Lw(),{headingProps:c,groupProps:l}=DO({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=Pw({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,H.useContext)(sB),f=NO(e),p=e.selectionMode==null?d:new uB(d,f),m=VS(e,{global:!0});return delete m.id,H.createElement(`section`,{...R(m,u,l),ref:t},H.createElement(Nw,{values:[[zz,{...c,ref:o}],[sB,p]]},H.createElement(a,{collection:i.collection,parent:n})))}function zO(e,t){let{role:n=`dialog`}=e,r=kS();r=e[`aria-label`]?void 0:r;let i=(0,vj.useRef)(!1);return(0,vj.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){vw(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),vw(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),lD(),{dialogProps:{...VS(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}function BO(e){let t=AO(e),n=(0,yj.useRef)(null),{triggerProps:r,overlayProps:i}=VE({type:`dialog`},t,n),[a,o]=(0,yj.useState)(null);return dC({ref:n,onResize:(0,yj.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=DS(),i[`aria-labelledby`]=r.id,yj.createElement(Nw,{values:[[pB,t],[oB,t],[fB,i],[jz,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},yj.createElement(rP,{...r,ref:n,isPressed:t.isOpen},e.children))}function VO({children:e,...t},n){let r={props:t,ref:n};if(UB(r))return Ej.createElement(`a`,{ref:r.ref,...r.props},e);if(WB(r))return Ej.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}function HO(e){rV("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=(0,kj.useRef)(),n=(0,kj.useRef)(),r=(0,kj.useRef)(new Map),{width:i=1}=bD({ref:t}),[a,o]=(0,kj.useState)(e),[s,c]=(0,kj.useState)([]),l=(0,kj.useRef)(e),u=(0,kj.useCallback)(({menuName:e,actions:t})=>{let i=s.some(({active:e})=>e),[a,o]=(0,kj.useState)(!1);return kj.createElement(kj.Fragment,null,kj.createElement(mB,{ariaLabel:`Additional tabs`,visible:a,onVisibleChange:o,placement:`bottom`,popover:kj.createElement(MB,{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)}}))})},kj.createElement(aV,{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,kj.createElement(iV,{className:`addon-collapsible-icon`,isActive:i||a}))),s.map(({title:e,id:t,color:n},i)=>{let a=`index-${i}`;return kj.createElement(qB,{id:`tabbutton-${sh(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,kj.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,kj.useLayoutEffect)(d,[d,i]),{tabRefs:r,addonsRef:n,tabBarRef:t,visibleList:a,invisibleList:s,AddonTab:u}}function UO(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,jj.useState)(!1);U(()=>{var e;o(!!(t.current&&(e=t.current.parentElement)!=null&&e.closest(`[role="toolbar"]`)))});let{direction:s}=oT(),c=s===`rtl`&&i===`horizontal`,l=ME(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,jj.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:{...VS(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 WO(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${_V.get(e)}-${n}-${t}`):``}function GO(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}=lO({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a,linkBehavior:`selection`}),f=WO(t,r,`tab`),p=WO(t,r,`tabpanel`),{tabIndex:m}=u,h=t.collection.getItem(r),g=VS(h?.props,{labelable:!0});delete g.id;let _=eC(h?.props),{focusableProps:v}=Cw({isDisabled:l},n);return{tabProps:R(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 KO(e,t,n){let r=FE(n)?void 0:0,i=WO(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:R(oC({...e,id:i,"aria-labelledby":WO(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}function qO(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=oT(),{collectionProps:l}=cO({ref:n,selectionManager:o,keyboardDelegate:(0,Nj.useMemo)(()=>new vV(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=DS();return _V.set(t,u),{tabListProps:{...R(l,oC({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function JO(e){let{filter:t,layoutDelegate:n}=e,r=NO(e),i=(0,Ij.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=yO(e,(0,Ij.useCallback)(e=>t?new AV(t(e)):new AV(e),[t]),(0,Ij.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,Ij.useMemo)(()=>new rB(a,r,{layoutDelegate:n}),[a,r,n]);return YO(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function YO(e,t){let n=(0,Ij.useRef)(null);(0,Ij.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 XO(e){let[t,n]=FC(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,Lj.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=JO({...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 ZO(e){let t=XO({...e,onSelectionChange:e.onSelectionChange?t=>{var n;t!=null&&((n=e.onSelectionChange)==null||n.call(e,t))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??QO(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,Rj.useRef)(i);return(0,Rj.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=QO(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 QO(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 $O({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=ZO({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=PE({within:!0}),c=(0,zj.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=Pw({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=VS(e,{global:!0});return zj.createElement(`div`,{...R(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},zj.createElement(Nw,{values:[[IV,e],[LV,i]]},l.children))}function ek({props:e,forwardedRef:t}){let n=(0,zj.useContext)(LV),{CollectionRoot:r}=(0,zj.useContext)(Iz),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=Fw(IV),o=sC(t),{tabListProps:s}=qO({...e,orientation:i,keyboardActivation:a},n,o),c=Pw({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=VS(e,{global:!0});return delete l.id,zj.createElement(`div`,{...R(l,c,s),ref:o,"data-orientation":i||void 0},zj.createElement(r,{collection:n.collection,persistedKeys:eO(n.selectionManager.focusedKey)}))}var tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_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,B,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,V,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,H,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,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,U,GM,KM,qM,JM,YM,XM,ZM,QM,W,$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,G,wP,TP,EP,DP,K,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,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH,tH,nH;function rH(){return(rH=t((()=>{le(),ce(),de(),Ne(),S(),tk=o(),nk=e(o(),1),pe(),rk=e(o(),1),ik=e(o(),1),ak=e(o(),1),o(),ok=e(o(),1),ct(),sk=e(o(),1),ck=e(o(),1),lk=e(o(),1),o(),uk=j(),iS(),dk=e(o(),1),fk=e(o(),1),pk=e(o(),1),mk=e(o(),1),hk=o(),gk=o(),_k=e(o(),1),vk=e(o(),1),o(),yk=o(),bk=o(),xk=e(o(),1),o(),Sk=o(),Ck=o(),o(),wk=o(),Tk=o(),o(),o(),o(),o(),Ek=o(),Dk=Pe(),Ok=o(),kk=e(o(),1),Ak=o(),jk=e(o(),1),Pe(),Mk=o(),Nk=o(),Pk=o(),Fk=e(o(),1),Ik=e(o(),1),Lk=e(o(),1),Rk=o(),zk=o(),Bk=o(),o(),o(),Vk=o(),Hk=e(o(),1),Uk=e(o(),1),Wk=o(),Gk=o(),Kk=o(),qk=o(),Jk=e(o(),1),o(),Yk=o(),o(),o(),Xk=o(),o(),Zk=e(o(),1),Qk=o(),o(),$k=o(),eA=o(),tA=o(),nA=e(o(),1),rA=e(o(),1),iA=e(Pe(),1),aA=e(o(),1),oA=e(o(),1),sA=o(),cA=e(o(),1),lA=e(Pe(),1),uA=o(),dA=o(),fA=o(),pA=e(o(),1),mA=e(o(),1),hA=e(o(),1),gA=e(o(),1),_A=e(o(),1),vA=e(o(),1),yA=e(o(),1),bA=o(),o(),xA=o(),SA=e(o(),1),CA=o(),wA=e(o(),1),TA=e(o(),1),o(),o(),EA=e(o(),1),DA=o(),OA=e(o(),1),kA=e(o(),1),B=e(o(),1),AA=e(o(),1),jA=e(o(),1),MA=e(o(),1),NA=o(),PA=e(o(),1),FA=e(o(),1),IA=e(o(),1),LA=e(o(),1),RA=e(o(),1),zA=o(),BA=e(o(),1),VA=e(o(),1),HA=e(o(),1),UA=e(o(),1),WA=o(),GA=e(o(),1),KA=Pe(),V=e(o(),1),qA=Ie(),JA=e(o(),1),YA=e(o(),1),o(),XA=e(o(),1),ZA=e(o(),1),QA=e(o(),1),$A=o(),ej=e(o(),1),tj=e(o(),1),nj=e(o(),1),rj=o(),ij=Pe(),aj=o(),oj=o(),sj=o(),cj=e(o(),1),o(),lj=e(o(),1),uj=o(),dj=o(),fj=o(),pj=o(),mj=o(),hj=o(),gj=o(),_j=o(),H=e(o(),1),vj=o(),yj=e(o(),1),bj=e(o(),1),xj=e(o(),1),o(),Sj=e(o(),1),Cj=e(o(),1),wj=e(o(),1),uh(),Tj=e(o(),1),Ej=e(o(),1),Dj=e(o(),1),Oj=e(o(),1),kj=e(o(),1),o(),o(),Aj=e(o(),1),jj=o(),Mj=e(o(),1),Nj=o(),Pj=e(o(),1),Fj=e(o(),1),Ij=o(),Lj=o(),Rj=o(),o(),zj=e(o(),1),o(),o(),o(),o(),o(),Bj=e(o(),1),o(),o(),i(),Vj=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},Hj=({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`}}),Uj=({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)`}),Wj=({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`}),Gj={margin:`16px 0`},Kj=N.div(Wj),qj=({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return rk.createElement(`a`,{href:n,target:r,...t})},Jj=N(qj)(({theme:e})=>({...Wj({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`}}})),Yj=N.blockquote(({theme:e})=>({...Wj({theme:e}),...Gj,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Xj=[],Zj=null,Qj=(0,ak.lazy)(async()=>{let{SyntaxHighlighter:e}=await a(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-QEQV7K2Y-JUCJEf5U.js`);return{SyntaxHighlighter:e}},__vite__mapDeps([5,1,2,3,6,7,8,9,10,0,4,11,12]),import.meta.url);return Xj.length>0&&(Xj.forEach(t=>{e.registerLanguage(...t)}),Xj=[]),Zj===null&&(Zj=e),{default:t=>ak.createElement(e,{...t})}}),$j=(0,ak.lazy)(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([a(()=>import(`./syntaxhighlighter-QEQV7K2Y-JUCJEf5U.js`),__vite__mapDeps([5,1,2,3,6,7,8,9,10,0,4,11,12]),import.meta.url),a(()=>import(`./formatter-L2YTDE3Q-CRGuSxAF.js`),__vite__mapDeps([13,1,3,4]),import.meta.url)]);return Xj.length>0&&(Xj.forEach(t=>{e.registerLanguage(...t)}),Xj=[]),Zj===null&&(Zj=e),{default:n=>ak.createElement(e,{...n,formatter:t})}}),eM=e=>ak.createElement(ak.Suspense,{fallback:ak.createElement(`div`,null)},e.format===!1?ak.createElement(Qj,{...e}):ak.createElement($j,{...e})),eM.registerLanguage=(...e)=>{if(Zj!==null){Zj.registerLanguage(...e);return}Xj.push(e)},tM=e=>typeof e==`string`,nM=/[\n\r]/g,rM=N.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`,...Uj({theme:e})})),iM=N(eM)(({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`}})),aM=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=ik.Children.toArray(t);return i.filter(tM).some(e=>e.match(nM))?ik.createElement(iM,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):ik.createElement(rM,{...n,className:e},i)},oM=N.dl(({theme:e})=>({...Wj({theme:e}),...Gj,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}})),sM=N.div(Wj),cM=N.h1(({theme:e})=>({...Wj({theme:e}),...Hj({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),lM=N.h2(({theme:e})=>({...Wj({theme:e}),...Hj({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),uM=N.h3(({theme:e})=>({...Wj({theme:e}),...Hj({theme:e}),fontSize:`${e.typography.size.m1}px`})),dM=N.h4(({theme:e})=>({...Wj({theme:e}),...Hj({theme:e}),fontSize:`${e.typography.size.s3}px`})),fM=N.h5(({theme:e})=>({...Wj({theme:e}),...Hj({theme:e}),fontSize:`${e.typography.size.s2}px`})),pM=N.h6(({theme:e})=>({...Wj({theme:e}),...Hj({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),mM=N.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),hM=N.img({maxWidth:`100%`}),gM=N.li(({theme:e})=>({...Wj({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":Uj({theme:e})})),_M={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},vM=N.ol(({theme:e})=>({...Wj({theme:e}),...Gj,..._M,listStyle:`decimal`})),yM=N.p(({theme:e})=>({...Wj({theme:e}),...Gj,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":Uj({theme:e})})),bM=N.pre(({theme:e})=>({...Wj({theme:e}),...Gj,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`}})),xM=N.span(({theme:e})=>({...Wj({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`}}})),SM=N.title(Uj),CM=N.table(({theme:e})=>({...Wj({theme:e}),...Gj,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}})),wM={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},TM=N.ul(({theme:e})=>({...Wj({theme:e}),...Gj,...wM,listStyle:`disc`})),EM={h1:e=>nk.createElement(cM,{...Vj(e,`h1`)}),h2:e=>nk.createElement(lM,{...Vj(e,`h2`)}),h3:e=>nk.createElement(uM,{...Vj(e,`h3`)}),h4:e=>nk.createElement(dM,{...Vj(e,`h4`)}),h5:e=>nk.createElement(fM,{...Vj(e,`h5`)}),h6:e=>nk.createElement(pM,{...Vj(e,`h6`)}),pre:e=>nk.createElement(bM,{...Vj(e,`pre`)}),a:e=>nk.createElement(Jj,{...Vj(e,`a`)}),hr:e=>nk.createElement(mM,{...Vj(e,`hr`)}),dl:e=>nk.createElement(oM,{...Vj(e,`dl`)}),blockquote:e=>nk.createElement(Yj,{...Vj(e,`blockquote`)}),table:e=>nk.createElement(CM,{...Vj(e,`table`)}),img:e=>nk.createElement(hM,{...Vj(e,`img`)}),div:e=>nk.createElement(sM,{...Vj(e,`div`)}),span:e=>nk.createElement(xM,{...Vj(e,`span`)}),li:e=>nk.createElement(gM,{...Vj(e,`li`)}),ul:e=>nk.createElement(TM,{...Vj(e,`ul`)}),ol:e=>nk.createElement(vM,{...Vj(e,`ol`)}),p:e=>nk.createElement(yM,{...Vj(e,`p`)}),code:e=>nk.createElement(aM,{...Vj(e,`code`)}),tt:e=>nk.createElement(SM,{...Vj(e,`tt`)}),resetwrapper:e=>nk.createElement(Kj,{...Vj(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 ${Ae(.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`?je(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${Ae(.9,e.color.secondary)}`};default:return{}}}),{deprecate:DM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,OM=0,kM=e=>e.button===OM&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,AM=(e,t)=>{kM(e)&&(e.preventDefault(),t(e))},jM=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}}:{}),MM=N.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:je(.07,e.color.secondary),"svg path:not([fill])":{fill:je(.07,e.color.secondary)}},"&:active":{color:je(.1,e.color.secondary),"svg path:not([fill])":{fill:je(.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`}}:{}),NM=(0,ok.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&&DM("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),ok.createElement(MM,{as:s?`a`:`button`,href:s,...c,ref:l,isButton:!s||o===!0,onClick:n&&e?e=>AM(e,n):n,className:a},ok.createElement(jM,{withArrow:r,containsIcon:i},t,r&&ok.createElement(et,null))))),NM.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:PM}=__STORYBOOK_MODULE_GLOBAL__,{document:FM,window:IM}=PM,{deprecate:LM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,RM=Symbol.for(`react.lazy`),zM=lk.use,BM=pS(`Slot`),VM=Symbol(`radix.slottable`),hS(`Slottable`),HM=N.div(({theme:e})=>({fontFamily:e.typography.fonts.base,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)`})),UM=({note:e,...t})=>fk.createElement(HM,{...t},e),{deprecate:WM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,U=typeof document<`u`?mk.useLayoutEffect:()=>{},GM={prefix:String(Math.round(Math.random()*1e10)),current:0},KM=_k.createContext(GM),qM=_k.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,JM=new WeakMap,YM=typeof _k.useId==`function`?SS:xS,XM=!!(typeof window<`u`&&window.document&&window.document.createElement),ZM=new Map,typeof FinalizationRegistry<`u`&&(QM=new FinalizationRegistry(e=>{ZM.delete(e)})),W=e=>e?.ownerDocument??document,$M=e=>e&&`window`in e&&e.window===e?e:W(e).defaultView||window,eN=!1,tN=(e=document)=>{var t;if(!NS())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n},nN=class{get currentNode(){return this._currentNode}set currentNode(e){if(!PS(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 PS(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}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}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}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}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}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}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)}}},rN=RS,iN=new Set([`id`]),aN=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),oN=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),sN=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),cN=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(`.`)),lN=/^(data-.*)$/,uN=null,dN=JS(function(){return qS(/^Mac/i)}),fN=JS(function(){return qS(/^iPhone/i)}),pN=JS(function(){return qS(/^iPad/i)||dN()&&navigator.maxTouchPoints>1}),mN=JS(function(){return fN()||pN()}),hN=JS(function(){return dN()||mN()}),gN=JS(function(){return KS(/AppleWebKit/i)&&!_N()}),_N=JS(function(){return KS(/Chrome/i)}),vN=JS(function(){return KS(/Android/i)}),yN=JS(function(){return KS(/Firefox/i)}),bN=(0,vk.createContext)({isNative:!0,open:$S,useHref:e=>e}),ZS.isOpening=!1,xN=new Map,SN=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,nC):nC()),CN=xk.useInsertionEffect??U,wN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),typeof document<`u`&&window.visualViewport,TN=0,EN=new Map,DN=`react-aria-clear-focus`,ON=`react-aria-focus`,kN=typeof Element<`u`&&`checkVisibility`in Element.prototype,AN=[`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`],jN=AN.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,AN.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),MN=AN.join(`:not([hidden]):not([tabindex="-1"]),`),NN=typeof document<`u`?kk.useInsertionEffect??kk.useLayoutEffect:()=>{},PN=!1,FN=`default`,IN=``,LN=new WeakMap,RN=jk.createContext({register:()=>{}}),RN.displayName=`PressResponderContext`,zN=new WeakMap,BN=class{continuePropagation(){YC(this,zN,!1)}get shouldStopPropagation(){return GC(this,zN)}constructor(e,t,n,r){qC(this,zN,{writable:!0,value:void 0}),YC(this,zN,!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}},VN=Symbol(`linkClicked`),HN=`react-aria-pressable-style`,UN=`data-react-aria-pressable`,WN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),GN=null,KN=new Set,qN=new Map,JN=!1,YN=!1,XN={Tab:!0,Escape:!0},ZN=(e,t)=>{let n=$M(e),r=W(e);t&&r.removeEventListener(`DOMContentLoaded`,t),qN.has(n)&&(n.HTMLElement.prototype.focus=qN.get(n).focus,r.removeEventListener(`keydown`,ow,!0),r.removeEventListener(`keyup`,ow,!0),r.removeEventListener(`click`,cw,!0),n.removeEventListener(`focus`,lw,!0),n.removeEventListener(`blur`,uw,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,sw,!0),r.removeEventListener(`pointermove`,sw,!0),r.removeEventListener(`pointerup`,sw,!0)),qN.delete(n))},typeof document<`u`&&fw(),QN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),$N=Fk.createContext(null),eP=Fk.forwardRef(function(e,t){let{children:n,...r}=e,i=sC(t),a={...r,ref:i};return Fk.createElement($N.Provider,{value:a},n)}),tP=(0,Fk.forwardRef)(({children:e,...t},n)=>{n=sC(n);let{focusableProps:r}=Cw(t,n),i=Fk.Children.only(e);(0,Fk.useEffect)(()=>{},[n,t.isDisabled]);let a=i.props.ref;return Fk.cloneElement(i,{...R(r,i.props),ref:zS(a,n)})}),nP=Ik.forwardRef(({children:e,...t},n)=>{n=sC(n);let{pressProps:r}=ZC({...t,ref:n}),{focusableProps:i}=Cw(t,n),a=Ik.Children.only(e);(0,Ik.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return Ik.cloneElement(a,{...R(r,i,a.props),ref:zS(o,n)})}),rP=Lk.forwardRef(({children:e,...t},n)=>{let r=(0,Lk.useRef)(!1),i=(0,Lk.useContext)(RN);n=sC(n||i?.ref);let a=R(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return fC(i,n),(0,Lk.useEffect)(()=>{r.current||=!0},[]),Lk.createElement(RN.Provider,{value:a},e)}),iP=!1,aP=0,oP=500,sP=Symbol(`default`),cP=(0,Uk.createContext)({placement:`bottom`}),(0,Uk.forwardRef)(function(e,t){[e,t]=Iw(e,t,cP);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=Pw({...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=VS(e);return Uk.createElement(`div`,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),lP={top:`top`,bottom:`top`,left:`left`,right:`left`},uP={top:`bottom`,bottom:`top`,left:`right`,right:`left`},dP={top:`left`,left:`top`},fP={top:`height`,left:`width`},pP={width:`totalWidth`,height:`totalHeight`},mP={},hP=typeof document<`u`?window.visualViewport:null,gP=new WeakMap,_P=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),vP=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),yP=Symbol.for(`react-aria.i18n.locale`),bP=rT(),xP=new Set,SP=Jk.createContext(null),CP=function(e,t){return CP=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])},CP(e,t)},G=function(){return G=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},G.apply(this,arguments)},wP=function(){return JSON.stringify(arguments)},TP=(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})(),EP={create:function(){return new TP}},DP={variadic:gT,monadic:_T},(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`})(K||={}),(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`})(OP||={}),(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(kP||={}),AP=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,jP=/(?:[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,MP=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,NP=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,PP=/^(@+)?(\+|#+)?[rs]?$/g,FP=/(\*)(0+)|(#+)(0+)|(0+)/g,IP=/^(0+)$/,LP={"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`]},RP=RegExp(`^${AP.source}*`),zP=RegExp(`${AP.source}*\$`),BP=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),VP=!!String.fromCodePoint,HP=!!Object.fromEntries,UP=!!String.prototype.codePointAt,WP=!!String.prototype.trimStart,GP=!!String.prototype.trimEnd,KP=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},qP=!0;try{JP=zT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),qP=JP.exec(`a`)?.[0]===`a`}catch{qP=!1}YP=BP?(function(e,t,n){return e.startsWith(t,n)}):(function(e,t,n){return e.slice(n,n+t.length)===t}),XP=VP?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}),ZP=HP?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}),QP=UP?(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}}),$P=WP?(function(e){return e.trimStart()}):(function(e){return e.replace(RP,``)}),eF=GP?(function(e){return e.trimEnd()}):(function(e){return e.replace(zP,``)}),qP?(nF=zT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),tF=function(e,t){return nF.lastIndex=t,nF.exec(e)[1]??``}):tF=function(e,t){for(var n=[];;){var r=QP(e,t);if(r===void 0||UT(r)||WT(r))break;n.push(r),t+=r>=65536?2:1}return XP.apply(void 0,n)},rF=(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:OP.pound,location:z(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(K.UNMATCHED_CLOSING_TAG,z(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&BT(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:OP.literal,value:`<${r}/>`,location:z(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()||!BT(this.char()))return this.error(K.INVALID_TAG,z(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:OP.tag,value:r,children:a,location:z(n,this.clonePosition())},err:null}:this.error(K.INVALID_TAG,z(o,this.clonePosition()))):this.error(K.UNMATCHED_CLOSING_TAG,z(s,this.clonePosition()))}return this.error(K.UNCLOSED_TAG,z(n,this.clonePosition()))}return this.error(K.INVALID_TAG,z(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&HT(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=z(n,this.clonePosition());return{val:{type:OP.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!VT(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 XP.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(),XP(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(K.EMPTY_ARGUMENT,z(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(K.MALFORMED_ARGUMENT,z(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:OP.argument,value:r,location:z(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(K.MALFORMED_ARGUMENT,z(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=tF(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:z(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(K.EXPECT_ARGUMENT_TYPE,z(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=eF(l.val);if(u.length===0)return this.error(K.EXPECT_ARGUMENT_STYLE,z(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:z(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=z(r,this.clonePosition());if(s&&YP(s?.style,`::`,0)){var p=$P(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:OP.number,value:n,location:f,style:l.val},err:null}}if(p.length===0)return this.error(K.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=LT(p,this.locale));var u={type:kP.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?kT(m):{}};return{val:{type:a===`date`?OP.date:OP.time,value:n,location:f,style:u},err:null}}return{val:{type:a===`number`?OP.number:a===`date`?OP.date:OP.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(K.EXPECT_SELECT_ARGUMENT_OPTIONS,z(h,G({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K.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=z(r,this.clonePosition());return a===`select`?{val:{type:OP.select,value:n,options:ZP(v.val),location:y},err:null}:{val:{type:OP.plural,value:n,options:ZP(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(K.INVALID_ARGUMENT_TYPE,z(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,z(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(K.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,z(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()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=AT(e)}catch{return this.error(K.INVALID_NUMBER_SKELETON,t)}return{val:{type:kP.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?IT(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(K.EXPECT_PLURAL_ARGUMENT_SELECTOR,K.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=z(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?K.DUPLICATE_SELECT_ARGUMENT_SELECTOR:K.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?K.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:K.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,z(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:z(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`?K.EXPECT_SELECT_ARGUMENT_SELECTOR:K.EXPECT_PLURAL_ARGUMENT_SELECTOR,z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(K.MISSING_OTHER_CLAUSE,z(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=z(r,this.clonePosition());return i?(a*=n,KP(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=QP(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(YP(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()&&UT(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`})(iF||={}),aF=(function(e){sT(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),oF=(function(e){sT(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,iF.INVALID_VALUE,i)||this}return t})(aF),sF=(function(e){sT(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,iF.INVALID_VALUE,r)||this}return t})(aF),cF=(function(e){sT(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,iF.MISSING_VALUE,n)||this}return t})(aF),(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(lF||={}),(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!==lF.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 YT(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=cT(o,[`formatters`]);this.ast=e.__parse(t,G(G({},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=ZT(e.formats,r),this.formatters=i&&i.formatters||$T(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=KT,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})(),uF=Symbol.for(`react-aria.i18n.locale`),dF=Symbol.for(`react-aria.i18n.strings`),pF=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=eE(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[uF];if(fF===void 0){let t=window[dF];if(!t)return null;fF={};for(let r in t)fF[r]=new e({[n]:t[r]},n)}let r=fF?.[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}},mF=new Map,hF=new Map,gF=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=mF.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),mF.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=hF.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),hF.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}},_F=new WeakMap,vF=1080,yF=24*vF,bF=29,xF=12*vF+793,bF*yF+xF,SF=new Map,CF=!1;try{CF=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}wF=!1;try{wF=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}if(TF={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},EF=class{format(e){let t=``;if(t=!CF&&this.options.signDisplay!=null?oE(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!wF){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=TF[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!CF&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!wF&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=aE(e,t),this.options=t}},DF=new Map,OF=typeof document<`u`?window.visualViewport:null,kF=Zk.createContext(null),AF=`react-aria-focus-scope-restore`,jF=null,MF=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 NF({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&&yE(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 NF({scopeRef:null}),this.fastMap.set(null,this.root)}},NF=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}},PF=new MF,FF=[],IF=typeof document<`u`&&window.visualViewport,LF=0,zF=(0,nA.createContext)({}),BF=rA.createContext(null),VF={},VF={dismiss:`تجاهل`},HF={},HF={dismiss:`Отхвърляне`},UF={},UF={dismiss:`Odstranit`},WF={},WF={dismiss:`Luk`},GF={},GF={dismiss:`Schließen`},KF={},KF={dismiss:`Απόρριψη`},qF={},qF={dismiss:`Dismiss`},JF={},JF={dismiss:`Descartar`},YF={},YF={dismiss:`Lõpeta`},XF={},XF={dismiss:`Hylkää`},ZF={},ZF={dismiss:`Rejeter`},QF={},QF={dismiss:`התעלם`},$F={},$F={dismiss:`Odbaci`},eI={},eI={dismiss:`Elutasítás`},tI={},tI={dismiss:`Ignora`},nI={},nI={dismiss:`閉じる`},rI={},rI={dismiss:`무시`},iI={},iI={dismiss:`Atmesti`},aI={},aI={dismiss:`Nerādīt`},oI={},oI={dismiss:`Lukk`},sI={},sI={dismiss:`Negeren`},cI={},cI={dismiss:`Zignoruj`},lI={},lI={dismiss:`Descartar`},uI={},uI={dismiss:`Dispensar`},dI={},dI={dismiss:`Revocare`},fI={},fI={dismiss:`Пропустить`},pI={},pI={dismiss:`Zrušiť`},mI={},mI={dismiss:`Opusti`},hI={},hI={dismiss:`Odbaci`},gI={},gI={dismiss:`Avvisa`},_I={},_I={dismiss:`Kapat`},vI={},vI={dismiss:`Скасувати`},yI={},yI={dismiss:`取消`},bI={},bI={dismiss:`關閉`},xI={},xI={"ar-AE":VF,"bg-BG":HF,"cs-CZ":UF,"da-DK":WF,"de-DE":GF,"el-GR":KF,"en-US":qF,"es-ES":JF,"et-EE":YF,"fi-FI":XF,"fr-FR":ZF,"he-IL":QF,"hr-HR":$F,"hu-HU":eI,"it-IT":tI,"ja-JP":nI,"ko-KR":rI,"lt-LT":iI,"lv-LV":aI,"nb-NO":oI,"nl-NL":sI,"pl-PL":cI,"pt-BR":lI,"pt-PT":uI,"ro-RO":dI,"ru-RU":fI,"sk-SK":pI,"sl-SI":mI,"sr-SP":hI,"sv-SE":gI,"tr-TR":_I,"uk-UA":vI,"zh-CN":yI,"zh-TW":bI},SI={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`},CI=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype,wI=new WeakMap,TI=[],EI=cA.createContext(null),DI=1500,OI=500,kI={},AI=0,jI=!1,MI=null,NI=null,PI=(0,pA.createContext)(null),FI=(0,pA.createContext)(null),II=(0,pA.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Iw(t,n,FI);let r=(0,pA.useContext)(PI),i=fD(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=DC(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:pA.createElement(eD,{portalContainer:e},pA.createElement(mD,{...t,tooltipRef:n,isExiting:o}))}),LI=C(Me(),1),RI=(0,LI.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`}),zI=(0,mA.forwardRef)((e,t)=>mA.createElement(`button`,{...e,ref:t,style:{width:120,height:50,margin:10}})),zI.displayName=`Trigger`,BI=({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=RI(t),p=pk.Children.only(i);o!==void 0&&WM("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,h]=(0,pk.useState)(a??o??!1),g=(0,pk.useCallback)(e=>{h(e),u?.(e)},[u]);return pk.createElement(pD,{delay:s,closeDelay:c,isOpen:l??m,onOpenChange:g,trigger:e?`focus`:void 0,...d},pk.createElement(tP,null,pk.cloneElement(p,{"aria-describedby":null})),pk.createElement(II,{"data-testid":`tooltip`,placement:f,offset:n,onOpenChange:g,style:{outline:`none`},...d},r))},VI=({children:e,disableAllTooltips:t,shortcut:n,tooltip:r})=>{let i=(0,dk.useMemo)(()=>{let e=document?.body?.getAttribute(`data-shortcuts-enabled`)!==`false`;if(!(!r&&(!n||!e)))return[r,n&&e&&`[${rb(n)}]`].filter(Boolean).join(` `)},[n,r]);return i?dk.createElement(BI,{placement:`top`,tooltip:dk.createElement(UM,{note:i}),visible:!t&&void 0},e):dk.createElement(dk.Fragment,null,e)},VI.displayName=`InteractiveTooltipWrapper`,HI=(0,ck.forwardRef)(({as:e=`button`,asChild:t=!1,animation:n=`none`,size:r=`small`,appearance:i=`default`,variant:a=`outline`,padding:o=`medium`,disabled:s=!1,readOnly:c=!1,active:l,onClick:u,ariaLabel:d,ariaDescription:f=void 0,tooltip:p=void 0,shortcut:m=void 0,disableAllTooltips:h=!1,...g},_)=>{let v=t?BM:e,y;!c&&(d===void 0||d===``)&&(y=`ariaLabel`,LM(`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: ${g.children}.`)),l!==void 0&&(y=`active`,LM("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:b,AriaDescription:x}=hD(f),S=(0,ck.useMemo)(()=>m?ib(m):void 0,[m]),[C,w]=(0,ck.useState)(!1);return(0,ck.useEffect)(()=>{let e=setTimeout(()=>{C&&w(!1)},1e3);return()=>clearTimeout(e)},[C]),ck.createElement(ck.Fragment,null,ck.createElement(VI,{disableAllTooltips:h,shortcut:m,tooltip:p||(d===!1?void 0:d)},ck.createElement(UI,{"data-deprecated":y,as:v,ref:_,appearance:i,variant:a,size:r,padding:o,$disabled:s||c,"aria-disabled":s||c?`true`:void 0,readOnly:c,active:l,animating:C,animation:n,onClick:s||c?void 0:e=>{u&&u(e),n!==`none`&&w(!0)},"aria-label":!c&&d!==!1?d:void 0,"aria-keyshortcuts":c?void 0:S,...c?{}:b,...g})),ck.createElement(x,null))}),HI.displayName=`Button`,UI=N(`button`,{shouldForwardProp:e=>Ce(e)})(({theme:e,appearance:t,variant:n,size:r,$disabled:i,readOnly:a,active:o,animating:s,animation:c=`none`,padding:l})=>{let u=t===`agentic`?{foreground:e.fgColor.agentic,background:e.bgColor.agentic,outline:e.borderColor.agentic}:{foreground:e.color.secondary,background:e.button.background,outline:e.button.border};return{border:0,cursor:a?`inherit`:i?`not-allowed`:`pointer`,display:`inline-flex`,gap:`6px`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,padding:l===`none`?0:l===`small`&&r===`small`?`0 7px`:l===`small`&&r===`medium`?`0 9px`:r===`small`?`0 10px`:r===`medium`?`0 12px`:0,height:r===`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:i&&!a?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:`1`,background:n===`solid`?e.base===`light`?u.foreground:je(.18,u.foreground):n===`outline`?u.background:n===`ghost`&&o?Ae(.93,t===`agentic`?e.bgColor.agentic:e.barSelectedColor):`transparent`,color:n===`solid`?e.color.lightest:n===`outline`?t===`agentic`?e.fgColor.agentic:e.input.color:n===`ghost`&&o?e.base===`light`?je(.1,u.foreground):u.foreground:n===`ghost`?e.textMutedColor:e.input.color,boxShadow:n===`outline`?`${u.outline} 0 0 0 1px inset`:`none`,borderRadius:e.input.borderRadius,flexShrink:0,...!a&&{"&:hover":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let t=u.foreground;return n===`solid`&&(t=e.base===`light`?me(.1,u.foreground):je(.3,u.foreground)),n===`outline`&&(t=u.background),n===`ghost`?Ae(.86,u.foreground):e.base===`light`?je(.02,t):me(.03,t)})()},"&:active":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let r=u.foreground;return n===`solid`&&(r=u.foreground),n===`outline`&&(r=u.background),n===`ghost`?t===`agentic`?e.bgColor.agentic:e.background.hoverable:e.base===`light`?je(.02,r):me(.03,r)})()},"&:focus-visible":{outline:`2px solid ${ue(u.foreground,1)}`,outlineOffset:2,zIndex:`1`},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:`0 0 auto`,animation:s&&c!==`none`?`${e.animation[c]} 1000ms ease-out`:``}}}),WI=(0,ck.forwardRef)((e,t)=>(LM("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),ck.createElement(HI,{ref:t,...e,"data-deprecated":`IconButton`}))),WI.displayName=`IconButton`,GI=(0,gA.forwardRef)(({pressed:e,...t},n)=>gA.createElement(KI,{role:`switch`,"aria-checked":e,ref:n,pressed:e,...t})),GI.displayName=`ToggleButton`,KI=N(HI)(({theme:e,variant:t=`outline`,pressed:n})=>({...n?{...t===`solid`?{background:e.base===`lighten`?je(.1,e.color.secondary):je(.2,e.color.secondary)}:{},...t===`outline`?{background:Ae(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t===`ghost`?{background:Ae(.93,e.barSelectedColor),color:e.base===`light`?je(.1,e.color.secondary):e.color.secondary}:{}}:{}})),qI=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`?je(.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:Ae(.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`}}}),JI=N(qI)(({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}})),YI=N(HI)(({size:e})=>({gap:e===`small`?6:8,"&:focus-visible":{outlineOffset:-2}})),XI=N(GI)({"&:focus-visible":{outlineOffset:-2}}),ZI=(0,sk.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return sk.createElement(YI,{...r,variant:n,padding:e,size:t,ref:i})}),QI=(0,sk.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return sk.createElement(XI,{...r,variant:n,padding:e,size:t,ref:i})}),$I=N(ZI)(({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}})),eL=e=>sk.createElement($I,{as:`a`,...e}),tL=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}})),nL=N.div({display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`0 0 14px`,width:14,height:14,color:`var(--listbox-item-muted-color)`}),rL=Object.assign(N.ul(({theme:e,onClick:t})=>({listStyle:`none`,margin:0,padding:4,cursor:t?`pointer`:`default`,"& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:qI,HoverItem:JI,Button:ZI,Toggle:QI,Action:$I,Link:eL,Text:tL,Icon:nL}),iL=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=oL({collapsed:n,disabled:r,initialCollapsed:i,storageKey:a}),l=o||c;return _A.createElement(_A.Fragment,null,typeof t==`function`?t(l):t,_A.createElement(iL,{...s,id:l.contentId,collapsed:l.isCollapsed,"aria-hidden":l.isCollapsed},typeof e==`function`?e(l):e))},{Content:iL}),aL=(e,t)=>{let[n,r]=(0,_A.useState)(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return(0,_A.useEffect)(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]},oL=({collapsed:e,disabled:t,initialCollapsed:n=e,storageKey:r})=>{let[i,a]=aL(r&&`useCollapsible:${r}`,!!n);(0,_A.useEffect)(()=>{e!==void 0&&a(e)},[e,a]);let o=(0,_A.useCallback)(e=>{e?.stopPropagation(),t||a(e=>!e)},[t,a]),s=DS();return{contentId:s,isCollapsed:i,isDisabled:!!t,setCollapsed:a,toggleCollapsed:o,toggleProps:{disabled:t,onClick:o,"aria-controls":s,"aria-expanded":!i}}},sL=(e,t)=>t&&t in e?e[t]:void 0,cL=(e,t)=>sL(e.fgColor,t)??sL(e.color,t),lL=(e,t,n)=>sL(e.borderColor,t)??sL(e.color,n),uL=(e,t)=>sL(e.bgColor,t)??e.background.content,dL=(e,t)=>{let n=uL(e,t);return`linear-gradient(${n}, ${n}), ${e.background.content}`},fL=Ee({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),pL=Ee({"0%":{transform:`rotate(0deg)`},"10%":{transform:`rotate(20deg)`},"40%":{transform:`rotate(170deg)`},"50%":{transform:`rotate(180deg)`},"60%":{transform:`rotate(190deg)`},"90%":{transform:`rotate(340deg)`},"100%":{transform:`rotate(360deg)`}}),mL=Ee({to:{backgroundPositionX:`36%`}}),hL=N.div(({color:e,theme:t})=>({color:cL(t,e),borderRadius:t.appBorderRadius,background:dL(t,e),position:`relative`})),gL=N.div(({animation:e=`none`,color:t,outlineColor:n=t,theme:r})=>({position:`relative`,width:`100%`,padding:1,overflow:`hidden`,backgroundColor:uL(r,t),borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e===`none`&&lL(r,t,n)||r.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:`${mL} 10s infinite linear, ${fL} 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:`${pL} 5s linear infinite`,backgroundImage:n===`negative`?`conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)`:n===`agentic`?r.base===`dark`?`conic-gradient(transparent 90deg, rgba(114,58,166,0.65) 150deg, rgba(157,98,214,0.6) 210deg, transparent 270deg)`:`conic-gradient(transparent 90deg, #b6a7ff 150deg, #d8aeff 210deg, transparent 270deg)`:`conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)`}}})),Object.assign((0,vA.forwardRef)(function({outlineAnimation:e=`none`,color:t,outlineColor:n,outlineAttrs:r={},...i},a){return vA.createElement(gL,{animation:e,color:t,outlineColor:n,ref:a,...r},vA.createElement(hL,{color:t,...i}))}),{Content:hL,Outline:gL}),{deprecate:_L}=__STORYBOOK_MODULE_CLIENT_LOGGER__,vL=[`preEnter`,`entering`,`entered`,`preExit`,`exiting`,`exited`,`unmounted`],yL=e=>({_s:e,status:vL[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),bL=e=>e?6:5,xL=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return bL(t)}},SL=e=>typeof e==`object`?[e.enter,e.exit]:[e,e],CL=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),wL=(e,t,n,r,i)=>{clearTimeout(r.current);let a=yL(e);t(a),n.current=a,i&&i({current:a})},TL=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:i,initialEntered:a,mountOnEnter:o,unmountOnExit:s,onStateChange:c}={})=>{let[l,u]=(0,bA.useState)(()=>yL(a?2:bL(o))),d=(0,bA.useRef)(l),f=(0,bA.useRef)(),[p,m]=SL(i),h=(0,bA.useCallback)(()=>{let e=xL(d.current._s,s);e&&wL(e,u,d,f,c)},[c,s]);return[l,(0,bA.useCallback)(i=>{let a=e=>{switch(wL(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=CL(a,e)}},o=d.current.isEnter;typeof i!=`boolean`&&(i=!o),i?!o&&a(e?+!n:2):o&&a(t?r?3:4:bL(s))},[h,c,e,t,n,r,p,m,s]),h]},EL={},w(EL,{Actions:()=>XL,Close:()=>VL,CloseButton:()=>UL,Col:()=>KL,Container:()=>BL,Content:()=>WL,Description:()=>YL,Dialog:()=>HL,Error:()=>QL,ErrorWrapper:()=>ZL,Header:()=>qL,Overlay:()=>zL,Row:()=>GL,Title:()=>JL}),{deprecate:DL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),OL=(0,CA.createContext)({}),kL=(0,wA.forwardRef)(function(e,t){[e,t]=Iw(e,t,OL);let{children:n,level:r=3,className:i,...a}=e,o=`h${r}`;return wA.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),AL=(0,TA.createContext)({}),jL=(0,TA.forwardRef)(function(e,t){[e,t]=Iw(e,t,AL);let{elementType:n=`span`,...r}=e;return TA.createElement(n,{className:`react-aria-Text`,...r,ref:t})}),ML=Ee({from:{opacity:0},to:{opacity:1}}),NL=Ee({from:{opacity:1},to:{opacity:0}}),PL=Ee({from:{maxHeight:0},to:{}}),FL=Ee({from:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`},to:{opacity:1,transform:`translate(-50%, -50%) scale(1)`}}),IL=Ee({from:{opacity:1,transform:`translate(-50%, -50%) scale(1)`},to:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`}}),LL=Ee({from:{opacity:0,maxHeight:`0px`},to:{opacity:1,maxHeight:`80vh`}}),RL=Ee({from:{opacity:1,maxHeight:`80vh`},to:{opacity:0,maxHeight:`0px`}}),zL=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`?`${NL} ${t}ms`:`${ML} ${t}ms`,animationFillMode:`forwards`}})),BL=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`?`${IL} ${a}ms`:`${FL} ${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`?`${RL} ${a}ms`:`${LL} ${a}ms`,animationFillMode:`forwards !important`}}),VL=({asChild:e,children:t,onClick:n,...r})=>{let{close:i}=(0,SA.useContext)($L);if(e&&SA.isValidElement(t)){let e=e=>{n?.(e),t.props.onClick?.(e),i?.()};return SA.cloneElement(t,{...r,onClick:e})}return SA.createElement(HI,{type:`button`,padding:`small`,ariaLabel:`Close modal`,variant:`ghost`,shortcut:[`Escape`],onClick:i},SA.createElement(Ke,null))},HL={Close:()=>(DL(`Modal.Dialog.Close is deprecated, please use Modal.Close instead.`),SA.createElement(VL,{"data-deprecated":`Modal.Dialog.Close`}))},UL=({ariaLabel:e,...t})=>(DL(`Modal.CloseButton is deprecated, please use Modal.Close instead.`),SA.createElement(VL,{asChild:!0},SA.createElement(HI,{ariaLabel:e||`Close`,"data-deprecated":`Modal.CloseButton`,...t},SA.createElement(Ke,null)))),WL=N.div({display:`flex`,flexDirection:`column`,margin:16,gap:16}),GL=N.div({display:`flex`,justifyContent:`space-between`,gap:16}),KL=N.div({display:`flex`,flexDirection:`column`,gap:4}),qL=({hasClose:e=!0,onClose:t,...n})=>SA.createElement(GL,null,SA.createElement(KL,{...n}),e&&SA.createElement(VL,{onClick:t})),JL=N(e=>SA.createElement(kL,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),YL=N(jL)(({theme:e})=>({position:`relative`,zIndex:1,margin:0,fontSize:e.typography.size.s2})),XL=N.div({display:`flex`,flexDirection:`row-reverse`,gap:8}),ZL=N.div(({theme:e})=>({maxHeight:100,overflow:`auto`,"@media (prefers-reduced-motion: no-preference)":{animation:`${PL} 300ms, ${ML} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:`relative`,padding:`8px 16px`}})),QL=({children:e,...t})=>SA.createElement(ZL,{...t},SA.createElement(`div`,null,e)),$L=(0,yA.createContext)({}),Object.assign(_D,EL),N.div(({theme:e,col:t,row:n=1})=>t?{display:`inline-block`,verticalAlign:`inherit`,"& > *":{marginLeft:t*e.layoutMargin,verticalAlign:`inherit`},[`& > *:first-child${ye}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${ye}`]:{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})),eR=N.div(({centered:e=!1,scale:t=1,elementHeight:n})=>({height:n||`auto`,transformOrigin:e?`center top`:`left top`,transform:`scale(${1/t})`})),tR=class extends OA.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 OA.createElement(OA.Fragment,null,e)}},nR={Element:xD,IFrame:tR},{global:rR}=__STORYBOOK_MODULE_GLOBAL__,{document:iR}=rR,aR=N.strong(({theme:e})=>({color:e.color.orange})),oR=N.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:`underline`})),sR=N.em(({theme:e})=>({color:e.textMutedColor})),cR=/(Error): (.*)\n/,lR=/at (?:(.*) )?\(?(.+)\)?/,uR=/([^@]+)?(?:\/<)?@(.+)?/,dR=/([^@]+)?@(.+)?/,fR=({error:e})=>{if(!e)return kA.createElement(kA.Fragment,null,`This error has no stack or message`);if(!e.stack)return kA.createElement(kA.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}
|
|
200
|
+
|
|
201
|
+
${t}`);let n=t.match(cR);if(!n)return kA.createElement(kA.Fragment,null,t);let[,r,i]=n,[,...a]=t.split(/\n/).slice(1).map(e=>{let t=e.match(lR)||e.match(uR)||e.match(dR);return t?{name:(t[1]||``).replace(`/<`,``),location:t[2].replace(iR.location.origin,``)}:null}).filter(Boolean);return kA.createElement(kA.Fragment,null,kA.createElement(`span`,null,r),`: `,kA.createElement(aR,null,i),kA.createElement(`br`,null),a.map((e,t)=>e?.name?kA.createElement(kA.Fragment,{key:t},` `,`at `,kA.createElement(oR,null,e.name),` (`,kA.createElement(sR,null,e.location),`)`,kA.createElement(`br`,null)):kA.createElement(kA.Fragment,{key:t},` `,`at `,kA.createElement(sR,null,e?.location),kA.createElement(`br`,null))))},pR=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`?we.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:`none`,backgroundColor:we.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}})),mR=e=>AA.createElement(pR,{...e,type:`checkbox`}),hR=N.label(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,margin:`0 15px`,padding:`8px 0`,"&:last-child":{marginBottom:`3rem`}})),gR=N.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,lineHeight:`16px`})),_R=({label:e,children:t,...n})=>jA.createElement(hR,{...n},e?jA.createElement(gR,null,jA.createElement(`span`,null,e)):null,t),vR=(({size:e})=>{switch(e){case`100%`:return{width:`100%`};case`flex`:return{flex:1};default:return{display:`inline`}}}),yR=(({align:e})=>{switch(e){case`end`:return{textAlign:`right`};case`center`:return{textAlign:`center`};default:return{textAlign:`left`}}}),bR=(({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{}}}),xR={appearance:`none`,border:`0 none`,boxSizing:`inherit`,display:`block`,margin:` 0`,background:`transparent`,padding:0,fontSize:`inherit`,position:`relative`},SR=(({theme:e})=>({...xR,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}})),CR=N.div({position:`relative`,width:`100%`}),wR=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}=SR(e);return{fontSize:t,lineHeight:n,padding:r}}),TR=Object.assign(N((0,NA.forwardRef)(function({size:e,valid:t,align:n,value:r,suffix:i,...a},o){let s=DS();return MA.createElement(CR,null,MA.createElement(`input`,{...a,value:r,ref:o,"aria-describedby":i?s:void 0}),i&&MA.createElement(wR,{"aria-hidden":!0},MA.createElement(`span`,null,r),MA.createElement(`span`,{id:s},i)))}))(SR,vR,yR,bR,{minHeight:32,width:`100%`}),{displayName:`Input`}),ER=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`?we.dark:e.color.mediumdark,borderColor:e.base===`dark`?we.dark:e.color.mediumdark},"&:checked":{backgroundColor:we.secondary,borderColor:we.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),DR=e=>PA.createElement(ER,{...e,type:`radio`}),OR=N.select(vR,({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`?_e(e.background.app):e.background.app,filter:`
|
|
202
|
+
drop-shadow(0 5px 5px rgba(0,0,0,0.05))
|
|
203
|
+
drop-shadow(0 0 3px rgba(0,0,0,0.1))
|
|
204
|
+
`,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}}})),kR=({children:e,...t})=>FA.createElement(OR,{...t},!Le()&&FA.createElement(`button`,null,FA.createElement(`selectedcontent`,null),FA.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`},FA.createElement(`path`,{d:`m6 9 6 6 6-6`}))),FA.createElement(`optgroup`,null,e)),AR=zA.useLayoutEffect,jR=function(e){var t=RA.useRef(e);return AR(function(){t.current=e}),t},MR=function(e,t){if(typeof e==`function`){e(t);return}e.current=t},NR=function(e,t){var n=BA.useRef();return BA.useCallback(function(r){e.current=r,n.current&&MR(n.current,null),n.current=t,t&&MR(t,r)},[t])},PR={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`},FR=function(e){Object.keys(PR).forEach(function(t){e.style.setProperty(t,PR[t],`important`)})},IR=FR,LR=null,RR=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize},zR=function(){},BR=function(e,t){return e.reduce(function(e,n){return e[n]=t[n],e},{})},VR=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],HR=!!document.documentElement.currentStyle,UR=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=BR(VR,t),r=n.boxSizing;return r===``?null:(HR&&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)})},WR=UR,GR=function(e,t){CD(document.body,`reset`,function(n){e.current.form===n.target&&t(n)})},KR=function(e){CD(window,`resize`,e)},qR=function(e){CD(document.fonts,`loadingdone`,e)},JR=[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`],YR=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=a===void 0?zR:a,s=e.onHeightChange,c=s===void 0?zR:s,l=Fe(e,JR),u=l.value!==void 0,d=LA.useRef(null),f=NR(d,t),p=LA.useRef(0),m=LA.useRef(),h=function(){var e=d.current,t=n&&m.current?m.current:WR(e);if(t){m.current=t;var a=SD(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 LA.useLayoutEffect(h),GR(d,function(){if(!u){var e=d.current.value;requestAnimationFrame(function(){var t=d.current;t&&e!==t.value&&h()})}}),KR(h),qR(h),LA.createElement(`textarea`,ke({},l,{onChange:function(e){u||h(),o(e)},ref:f}))},XR=LA.forwardRef(YR),ZR=Object.assign(N((0,IA.forwardRef)(function({size:e,valid:t,align:n,...r},i){return IA.createElement(XR,{...r,ref:i})}))(SR,vR,yR,bR,({height:e=400})=>({overflow:`visible`,maxHeight:e})),{displayName:`Textarea`}),QR=Object.assign(N.form({boxSizing:`border-box`,width:`100%`}),{Field:_R,Input:TR,Select:kR,Textarea:ZR,Button:HI,Checkbox:mR,Radio:DR}),$R=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:`
|
|
205
|
+
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
206
|
+
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
207
|
+
`,borderRadius:e.appBorderRadius+2,fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base===`light`?_e(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`]}),ez=N(HI)({position:`absolute`,top:4,right:4}),tz=(0,VA.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>VA.createElement($R,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&VA.createElement(ez,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},VA.createElement(Ye,null)))),tz.displayName=`Popover`,nz=({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})=>HA.createElement(rL.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??HA.createElement(HA.Fragment,null,r&&HA.createElement(rL.Icon,null,r),HA.createElement(rL.Text,null,HA.createElement(`p`,null,t),n&&HA.createElement(`small`,null,n)),i)),nz.displayName=`SelectOption`,rz=5,iz=Symbol.for(`undefined`),az=N(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4}),oz=N.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12})),sz=N(HI)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:Ae(.93,n.barSelectedColor),color:n.base===`light`?je(.1,n.color.secondary):n.color.secondary}:{}),cz=N.div({position:`fixed`,inset:0,zIndex:1e3}),lz=({children:e,handleClose:t,triggerRef:n})=>{let r=B.useRef(null);Aw({ref:r,onInteractOutside:t}),(0,B.useEffect)(()=>{if(r.current)return aD([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=lE({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=BE({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=ge();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},B.createElement(cD,{disableFocusManagement:!0,...a},B.createElement(cz,{...o}),B.createElement(tz,{hasChrome:!0,ref:r,padding:0,...i},e))},uz=(0,B.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,B.useState)(h.defaultOpen||!1),[y,b]=(0,B.useState)(!1),x=sC(g),S=(0,B.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,B.useRef)(null),T=dD({isOpen:_&&!n,onOpenChange:v}),E=(0,B.useCallback)(()=>{v(!1),b(!0)},[]);(0,B.useEffect)(()=>{!T.isOpen&&y&&(x.current?.ownerDocument?.defaultView&&x.current.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,B.useState)(AD(r,i)),k=(0,B.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(DD(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(DD(e.value)),n=[...t??[],e]),d?.(n.map(e=>DD(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(DD(e.value)),d?.([DD(e.value)]),[e]):t)},[a,d,l,u,o]),A=(0,B.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:B.createElement(st,null),description:void 0,children:void 0}:void 0,[o,c]),j=(0,B.useMemo)(()=>A?[A,...r]:r,[r,A]);(0,B.useEffect)(()=>{i&&O(AD(r,i))},[i,r]);let[M,ee]=(0,B.useState)(void 0),te=(0,B.useCallback)((e,t=!0)=>{ee(ED(e)),!a&&t&&k(ED(e))},[a,k]),ne=(0,B.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`:OD(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]),re=(0,B.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`:OD(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]),ie=(0,B.useCallback)(e=>{let t=t=>{e.preventDefault(),te(j[t]),v(!0)},n=j.findIndex(e=>D.some(t=>t.value===OD(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)+rz,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-rz))},[j,A,te,D]),ae=(0,B.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?ne():e.key===`ArrowUp`?re():e.key===`Home`?te(j[0]):e.key===`End`?te(j[j.length-1]):e.key===`PageDown`?ne(rz):e.key===`PageUp`&&re(rz)},[E,ne,re,j,te]);(0,B.useEffect)(()=>{if(_&&M){let e=document.getElementById(kD(S,M));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,M,S]);let oe=(0,B.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return B.createElement(B.Fragment,null,B.createElement(sz,{...h,variant:`ghost`,ariaLabel:oe,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:ie,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&B.createElement(B.Fragment,null,t,m&&D[0]?.title||e),a&&B.createElement(B.Fragment,null,t,e,!!D.length&&B.createElement(oz,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&B.createElement(lz,{handleClose:E,triggerRef:x},B.createElement(az,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:ae,tabIndex:_?0:-1},j.map(e=>({option:ED(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==A,r=t===A;return B.createElement(nz,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?B.createElement(QR.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:kD(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)}))))}),uz.displayName=`Select`,{deprecate:dz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,fz=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}},pz=class extends fz{filter(e,t,n){let[r,i]=jD(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},mz=class extends fz{},mz.type=`header`,hz=class extends fz{},hz.type=`loader`,gz=class extends pz{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},gz.type=`item`,_z=class extends pz{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}},_z.type=`section`,vz=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]=jD(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}},yz=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}},bz=class e extends yz{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}},xz=class extends yz{get isConnected(){return this.isMounted}createElement(e){return new bz(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 bz&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof bz&&(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)}})}Sz=(0,GA.createContext)(!1),Cz=(0,V.createContext)(!1),wz=(0,V.createContext)(null),Tz=typeof V.useSyncExternalStore==`function`?V.useSyncExternalStore:RD,Ez=(0,V.createContext)(null),Dz=(0,V.createContext)(null),Oz=(0,JA.createContext)({}),PD(function(e,t){[e,t]=Iw(e,t,Oz);let{elementType:n=`label`,...r}=e;return JA.createElement(n,{className:`react-aria-Label`,...r,ref:t})}),kz=(0,YA.createContext)(null),(0,YA.forwardRef)(function(e,t){[e,t]=Iw(e,t,kz);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=IC(n,r,i);let[o,s]=Lw(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=JD({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=Pw({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=VS(e,{global:!0});return YA.createElement(`div`,{...R(f,d,c),ref:t,slot:e.slot||void 0},YA.createElement(Oz.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))}),Az=(0,XA.createContext)({}),PD(function(e,t){[e,t]=Iw(e,t,Az),e=XD(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=YD(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=PE(e),{hoverProps:l,isHovered:u}=kw({...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=Pw({...e,values:d,defaultClassName:`react-aria-Button`}),p=DS(i.id),m=DS(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,XA.useRef)(r);(0,XA.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&oe(e,`assertive`),g.current=r},[r,s,h,p]);let _=VS(e,{global:!0});return delete _.onClick,XA.createElement(`button`,{...R(_,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},XA.createElement(kz.Provider,{value:{id:m}},f.children))}),jz=(0,ZA.createContext)(null),Mz=(0,ZA.createContext)(null),Nz=(0,ZA.forwardRef)(function(e,t){[e,t]=Iw(e,t,jz);let n=(0,ZA.useContext)(pB),r=dD(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=DC(t,i.isOpen)||e.isExiting||!1,o=FD(),{direction:s}=oT();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),ZA.createElement(ZA.Fragment,null,t)}return i&&!i.isOpen&&!a?null:ZA.createElement(ZD,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})}),Pz=(0,QA.createContext)(null),UD(`section`,(e,t,n)=>{let{name:r,render:i}=(0,QA.useContext)(Pz);return i(e,t,n,`react-aria-Section`)}),Fz={CollectionRoot({collection:e,renderDropIndicator:t}){return QD(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return QD(e,t,n)}},Iz=(0,QA.createContext)(Fz),Lz=(0,$A.createContext)(null),Rz=(0,$A.createContext)(null),zz=(0,ej.createContext)({}),HD(mz,function(e,t){return[e,t]=Iw(e,t,zz),ej.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)}),Bz=(0,tj.createContext)({}),(0,tj.forwardRef)(function(e,t){return[e,t]=Iw(e,t,Bz),tj.createElement(`kbd`,{dir:`ltr`,...e,ref:t})}),Vz=(0,nj.createContext)({}),Hz=class extends fz{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}},Hz.type=`separator`,HD(Hz,function(e,t){[e,t]=Iw(e,t,Vz);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}=tO({...s,elementType:n,orientation:r}),u=VS(e,{global:!0});return nj.createElement(c,{...R(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),Uz=new WeakMap,Wz=new WeakMap,Gz=1e3,Kz=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:rO(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}},qz=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&&!pC(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&&!pC(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 Kz(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 Kz(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}},mO.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:hO(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];cj.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}},Jz=mO,Yz=class{build(e,t){return this.context=t,gO(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(lj.isValidElement(t)&&t.type===lj.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=[];lj.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(lj.isValidElement(e.element)&&e.element.type===lj.Fragment){let i=[];lj.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(lj.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:_O(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 <${vO(t.type)}> in <${vO(r?.type??`unknown parent type`)}>. Only <${vO(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:gO(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}},Xz=new WeakMap,Zz=2,Qz=50,$z=1e3,eB=Math.PI/12,tB=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}},nB=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)}},rB=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&&CO(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&&CO(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 nB([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new nB(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?CO(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 nB(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 nB([t],t,t):new nB;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new nB;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(xO(bO(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 nB)}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}},iB=(0,H.createContext)(null),aB=(0,H.createContext)(null),oB=(0,H.createContext)(null),sB=(0,H.createContext)(null),cB=(0,H.createContext)(null),lB=class extends fz{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}},lB.type=`submenutrigger`,UD(lB,(e,t,n)=>{let{CollectionBranch:r}=(0,H.useContext)(Iz),i=(0,H.useContext)(aB),a=(0,H.useContext)(oB),o=jO({triggerKey:n.key},a),s=(0,H.useRef)(null),c=sC(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,H.useContext)(cB),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=kO({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return H.createElement(Nw,{values:[[dB,{...d,onAction:void 0,ref:c}],[iB,{ref:s,...f}],[pB,o],[jz,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},H.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,H.forwardRef)(function(e,t){return[e,t]=Iw(e,t,iB),H.createElement(ID,{content:H.createElement(GD,e)},n=>H.createElement(LO,{props:e,collection:n,menuRef:t}))}),uB=class extends rB{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}},UD(_z,RO),dB=(0,H.createContext)(null),HD(gz,function(e,t,n){[e,t]=Iw(e,t,dB);let r=Fw(dB)?.id,i=(0,H.useContext)(aB),a=sC(t),o=(0,H.useContext)(sB),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=EO({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=kw({isDisabled:d.isDisabled}),m=Pw({...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=VS(e,{global:!0});return delete g.id,delete g.onClick,H.createElement(h,{...R(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},H.createElement(Nw,{values:[[AL,{slots:{[sP]:c,label:c,description:l}}],[Bz,u]]},m.children))}),fB=(0,yj.createContext)(null),pB=(0,yj.createContext)(null),(0,yj.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=Iw(e,t,fB);let{dialogProps:r,titleProps:i}=zO({...e,"aria-labelledby":n},t),a=(0,yj.useContext)(pB);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=Pw({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=VS(e,{global:!0});return yj.createElement(`section`,{...R(s,o,r),ref:t,slot:e.slot||void 0},yj.createElement(Nw,{values:[[OL,{slots:{[sP]:{},title:{...i,level:2}}}],[Az,{slots:{[sP]:{},close:{onPress:()=>a?.close()}}}]]},o.children))}),mB=({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||dz(`The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.`);let p=RI(t),[m,h]=(0,UA.useState)(l??!1),g=(0,UA.useCallback)(e=>{h(e),d?.(e)},[d]),_=(0,UA.useCallback)(()=>g(!1),[g]);return UA.createElement(BO,{defaultOpen:l,isOpen:u??m,onOpenChange:g,...f},UA.createElement(nP,null,(0,UA.cloneElement)(c,{"aria-haspopup":`dialog`})),UA.createElement(Nz,{"aria-label":e,placement:p,offset:a,style:{outline:`none`}},UA.createElement(tz,{hasChrome:n,hideLabel:i,onHide:r?_:void 0,padding:o},typeof s==`function`?s({onHide:_}):s)))},hB=(0,bj.forwardRef)((e,t)=>bj.createElement(tz,{ref:t,...e})),hB.displayName=`Tooltip`,(0,xj.lazy)(()=>a(()=>import(`./WithTooltip-CDUNV5IS-mFMh6Qcu.js`).then(e=>({default:e.WithTooltip})),__vite__mapDeps([14,1,2,3,0,4,11,12]),import.meta.url)),(0,xj.lazy)(()=>a(()=>import(`./WithTooltip-CDUNV5IS-mFMh6Qcu.js`).then(e=>({default:e.WithTooltipPure})),__vite__mapDeps([14,1,2,3,0,4,11,12]),import.meta.url)),{deprecate:gB}=__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:_B}=__STORYBOOK_MODULE_CLIENT_LOGGER__,vB=C(Me(),1),{deprecate:yB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,bB=N(({active:e,loading:t,disabled:n,...r})=>Cj.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}:{}),xB=N.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),SB=N.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),CB=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}:{}),wB=N.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),TB=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`}),EB=(0,vB.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}}})),DB=(0,Cj.forwardRef)((e,t)=>{let{loading:n=!1,title:r=Cj.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=EB(e),_=d||f;return yB("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),Cj.createElement(TB,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},Cj.createElement(Cj.Fragment,null,_&&Cj.createElement(wB,{...h},_),r||i?Cj.createElement(SB,{isIndented:c&&!_},r&&Cj.createElement(bB,{...h,loading:n},r),i&&Cj.createElement(CB,{...h},i)):null,a&&Cj.createElement(xB,{...h},a)))}),DB.displayName=`ListItem`,OB=DB,kB=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}:{}),AB=N.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),jB=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,Sj.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return Sj.createElement(OB,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},MB=({links:e,LinkWrapper:t,...n})=>{_B("`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 Sj.createElement(kB,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>Sj.createElement(AB,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?Sj.createElement(Sj.Fragment,{key:e.id},e.content):Sj.createElement(jB,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:NB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:PB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,FB=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})),IB=N.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),LB=(0,Tj.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>Tj.createElement(FB,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?Tj.createElement(IB,{innerStyle:n},t):t)),LB.displayName=`Bar`,RB=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}:{}),RB.displayName=`Side`,zB=N.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),BB=N(LB)({paddingInline:0}),VB=({children:e,backgroundColor:t,className:n=``,...r})=>{PB(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=Tj.Children.toArray(e);return Tj.createElement(BB,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},Tj.createElement(zB,{bgColor:t},Tj.createElement(RB,{scrollable:r.scrollable,left:!0},i),a?Tj.createElement(RB,{right:!0},a):null))},VB.displayName=`FlexBar`,{deprecate:HB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,UB=e=>typeof e.props.href==`string`,WB=e=>typeof e.props.href!=`string`,GB=(0,Ej.forwardRef)(VO),GB.displayName=`ButtonOrLink`,KB=N(GB,{shouldForwardProp:Ce})({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}}),qB=(0,Ej.forwardRef)((e,t)=>(HB("The `TabButton` component is deprecated. Use `TabList` instead."),Ej.createElement(KB,{"data-deprecated":`TabButton`,ref:t,...e}))),qB.displayName=`TabButton`,JB=N.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),YB=N.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),XB=N.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),ZB=N.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),QB=N.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),$B=({title:e,description:t,footer:n})=>Dj.createElement(JB,null,Dj.createElement(YB,null,Dj.createElement(XB,null,e),t&&Dj.createElement(QB,null,t)),n&&Dj.createElement(ZB,null,n)),{deprecate:eV}=__STORYBOOK_MODULE_CLIENT_LOGGER__,tV=N.div(({active:e})=>e?{display:`block`}:{display:`none`}),nV=e=>(eV("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),Oj.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})=>Oj.createElement(tV,{active:e,role:`tabpanel`},i)}})),{deprecate:rV}=__STORYBOOK_MODULE_CLIENT_LOGGER__,iV=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`})),aV=N(qB)(({active:e,theme:t,preActive:n})=>`
|
|
208
|
+
color: ${n||e?t.barSelectedColor:t.barTextColor};
|
|
209
|
+
.addon-collapsible-icon {
|
|
210
|
+
color: ${n||e?t.barSelectedColor:t.barTextColor};
|
|
211
|
+
}
|
|
212
|
+
&:hover {
|
|
213
|
+
color: ${t.barHoverColor};
|
|
214
|
+
.addon-collapsible-icon {
|
|
215
|
+
color: ${t.barHoverColor};
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
`),oV=`/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */`,sV=N.div(({theme:e,bordered:t})=>t?{backgroundClip:`padding-box`,border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:`hidden`,boxSizing:`border-box`}:{},({absolute:e})=>e?{width:`100%`,height:`100%`,boxSizing:`border-box`,display:`flex`,flexDirection:`column`}:{display:`block`}),cV=N.div({overflow:`hidden`,"&:first-of-type":{marginLeft:-3},whiteSpace:`nowrap`,flexGrow:1}),lV=(0,wj.forwardRef)((e,t)=>(NB("The `TabBar` component is deprecated. Use `TabsView` instead."),wj.createElement(cV,{"data-deprecated":`TabBar`,...e,ref:t}))),lV.displayName=`TabBar`,uV=N.div({display:`block`,position:`relative`,container:`tab-content / inline-size`},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:`absolute`,left:0+ +!!t,right:0+ +!!t,bottom:0+ +!!t,top:40+ +!!t,overflow:`auto`,[`& > *:first-child${oV}`]:{position:`absolute`,left:0+ +!!t,right:0+ +!!t,bottom:0+ +!!t,top:0+ +!!t,height:`calc(100% - ${t?2:0}px)`,overflow:`auto`}}:{}),dV=(0,wj.forwardRef)(({active:e,render:t,children:n},r)=>(NB("The `TabWrapper` component is deprecated. Use `TabsView` instead."),wj.createElement(tV,{"data-deprecated":`TabWrapper`,ref:r,active:e},t?t():n))),dV.displayName=`TabWrapper`,fV=class extends wj.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(`Error rendering addon panel`),console.error(e),console.error(t.componentStack)}render(){return this.state.hasError&&this.props.active?wj.createElement($B,{title:`This addon has errors`,description:`Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook.`}):this.props.children}},pV=(0,wj.memo)(({children:e,selected:t=null,actions:n,absolute:r=!1,bordered:i=!1,tools:a=null,backgroundColor:o,id:s=null,menuName:c=`Tabs`,emptyState:l,showToolsWhenEmpty:u})=>{NB("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=(0,wj.useMemo)(()=>nV(e).map((e,n)=>({...e,active:t?e.id===t:n===0})),[e,t]),{visibleList:f,tabBarRef:p,tabRefs:m,AddonTab:h}=HO(d),g=l??wj.createElement($B,{title:`Nothing found`});return!u&&d.length===0?g:wj.createElement(sV,{"data-deprecated":`Tabs`,absolute:r,bordered:i,id:s},wj.createElement(VB,{scrollable:!1,border:!0,backgroundColor:o},wj.createElement(lV,{style:{whiteSpace:`normal`},ref:p,role:`tablist`},f.map(({title:e,id:t,active:r,color:i},a)=>{let o=`index-${a}`;return wj.createElement(qB,{id:`tabbutton-${sh(t)??o}`,ref:e=>{m.current.set(t,e)},className:`tabbutton ${r?`tabbutton-active`:``}`,type:`button`,key:t,active:r,textColor:i,onClick:e=>{e.preventDefault(),n.onSelect(t)},role:`tab`,"aria-selected":r},typeof e==`function`?wj.createElement(`title`,null):e)}),wj.createElement(h,{menuName:c,actions:n})),a),wj.createElement(uV,{id:`panel-tab-content`,bordered:i,absolute:r},d.length?d.map(({id:e,active:t,render:n})=>wj.createElement(fV,{key:e,active:t},wj.createElement(n,{active:t},null))):g))}),pV.displayName=`Tabs`,mV=class extends wj.Component{constructor(e){super(e),this.handlers={onSelect:e=>this.setState({selected:e})},NB("The `TabsState` class is deprecated. Use `TabsView` instead."),this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:n,backgroundColor:r,menuName:i}=this.props,{selected:a}=this.state;return wj.createElement(pV,{bordered:e,absolute:t,selected:a,backgroundColor:r,menuName:i,actions:this.handlers},n)}},mV.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:``,menuName:void 0},hV=N.span(({theme:e})=>({display:`inline-block`,width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:`none`}}),hV.displayName=`Separator`,N.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:`100%`})),gV=({"aria-label":e,"aria-labelledby":t,...n})=>{let r=(0,Aj.useRef)(null),{toolbarProps:i}=UO({"aria-label":e,"aria-labelledby":t,orientation:`horizontal`},r);return Aj.createElement(LB,{ref:r,...i,...n})},_V=new WeakMap,vV=class{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!((n=this.collection.getItem(e))!=null&&(t=n.props)!=null&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t??=this.collection.getFirstKey();while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t));return t}constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`&&n===`horizontal`,this.disabledKeys=r,this.tabDirection=n===`horizontal`}},yV=N.button({whiteSpace:`normal`,display:`inline-flex`,overflow:`hidden`,verticalAlign:`top`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,textDecoration:`none`,scrollSnapAlign:`start`,"&: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-visible":{outline:`0 none`,boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`}}),({isSelected:e,theme:t})=>e?{color:t.barSelectedColor,borderBottomColor:t.barSelectedColor}:{color:t.barTextColor,borderBottomColor:`transparent`,"&:hover":{color:t.barHoverColor}}),bV=N.div({display:`flex`,alignItems:`center`,flexShrink:0,position:`relative`,overflow:`hidden`}),xV=N.div({display:`flex`,overflowX:`auto`,scrollbarWidth:`none`,msOverflowStyle:`none`,WebkitScrollbar:`none`,scrollSnapType:`x mandatory`,flex:1,"&::-webkit-scrollbar":{display:`none`}}),SV=N.div({display:`flex`,flexShrink:0}),CV=28,wV=N.div(({$showStartBorder:e,$showEndBorder:t,theme:n})=>({flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:6,boxShadow:e?`inset 1px 0 0 ${n.appBorderColor}`:t?`inset -1px 0 0 ${n.appBorderColor}`:`none`})),TV=N(HI)({flexShrink:0,paddingInline:0,width:16}),EV=({item:e,state:t})=>{let{rendered:n}=e,r=Mj.useRef(null),{tabProps:i,isDisabled:a,isPressed:o,isSelected:s}=GO(e,t,r);return Mj.createElement(yV,{...i,isDisabled:a,isPressed:o,isSelected:s,className:`tabbutton ${s?`tabbutton-active`:``}`,ref:r},n)},DV=({state:e,...t})=>{let n=(0,Mj.useRef)(null),r=(0,Mj.useRef)(null),i=(0,Mj.useRef)(null),{tabListProps:a}=qO({orientation:`horizontal`},e,i),[o,s]=(0,Mj.useState)(!1),[c,l]=(0,Mj.useState)(!1),[u,d]=(0,Mj.useState)(!1),f=(0,Mj.useCallback)(()=>{let e=r.current,t=n.current;if(!e||!t)return;let{scrollLeft:i,scrollWidth:a,clientWidth:c}=e,u=a>t.clientWidth-(o?CV*2:0);s(u),u?(l(i>0),d(i<a-c)):(l(!1),d(!1))},[o]),p=(0,Mj.useCallback)(()=>{f()},[f]);(0,Mj.useEffect)(()=>{let e=r.current;if(!e||typeof window>`u`)return;e.addEventListener(`scroll`,p,{passive:!0});let t=null;typeof ResizeObserver<`u`&&(t=new ResizeObserver(p),t.observe(e));let n=setTimeout(p,0);return()=>{clearTimeout(n),e.removeEventListener(`scroll`,p),t&&t.disconnect()}},[p]);let m=(0,Mj.useCallback)(e=>{let t=r.current,i=n.current;if(!t||!i||typeof window>`u`)return;let a=i.clientWidth-CV*2,o=e===`backward`?-a:a;typeof t.scrollBy==`function`?t.scrollBy({left:o,behavior:`smooth`}):t.scrollLeft+=o},[]),h=(0,Mj.useCallback)(()=>m(`backward`),[m]),g=(0,Mj.useCallback)(()=>m(`forward`),[m]);return Mj.createElement(bV,{...t,ref:n,"data-show-scroll-buttons":o},o&&Mj.createElement(wV,{$showEndBorder:c},Mj.createElement(TV,{variant:`ghost`,padding:`small`,size:`small`,ariaLabel:`Scroll backward`,disabled:!c,onClick:h,tabIndex:-1},Mj.createElement(rt,null))),Mj.createElement(xV,{ref:r},Mj.createElement(SV,{ref:i,...a},[...e.collection].map(t=>Mj.createElement(EV,{key:t.key,item:t,state:e})))),o&&Mj.createElement(wV,{$showStartBorder:u},Mj.createElement(TV,{variant:`ghost`,padding:`small`,size:`small`,ariaLabel:`Scroll forward`,disabled:!u,onClick:g,tabIndex:-1},Mj.createElement(it,null))))},OV=N.div({overflowY:`hidden`,height:`100%`}),kV=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:n})=>{let r=(0,Pj.useRef)(null),i=n,{tabPanelProps:a}=KO(i.selectedItem??{},i,r);return(t?[...i.collection]:[i.selectedItem]).filter(e=>!!e).map(t=>{let n=i.selectedKey===t.key;return Pj.createElement(OV,{key:t.key,ref:n?r:void 0,...n?a:{},id:n?`${a.id}`.replace(/null$/,`${t.key}`):void 0,hidden:!n||void 0},e?Pj.createElement(se,{vertical:!0},t.props.children):t.props.children)})},AV=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this._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])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&e.type===`section`)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=r++),(t.type===`section`||t.type===`item`)&&i++,n=t,n.nextKey=void 0;this._size=i,this.lastKey=n?.key??null}},jV=({defaultSelected:e,onSelectionChange:t,selected:n,tabs:r})=>ZO({children:r.map(({children:e,id:t,"aria-label":n,title:r})=>Fj.createElement(Jz,{key:t,"aria-label":n,title:typeof r==`function`?Fj.createElement(r,null):r},typeof e==`function`?Fj.createElement(e,null):e)),disabledKeys:r.filter(({isDisabled:e})=>e).map(({id:e})=>e),defaultSelectedKey:e,onSelectionChange:e=>t?.(`${e}`),selectedKey:n}),MV=N.div({display:`flex`,flexDirection:`column`,height:`100%`}),NV=N(kV)(()=>({flex:1})),PV=N(DV)(({$simulatedGap:e})=>({flex:`1 1 0%`,'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),FV=({backgroundColor:e,barInnerStyle:t,defaultSelected:n,emptyState:r,onSelectionChange:i,panelProps:a={},selected:o,showToolsWhenEmpty:s,tabs:c,tools:l,...u})=>{let d=jV({defaultSelected:n,onSelectionChange:i,selected:o,tabs:c}),f=r??Fj.createElement($B,{title:`Nothing found`}),p=c.length>0;return!s&&!p?f:Fj.createElement(MV,{...u},Fj.createElement(LB,{scrollable:!1,border:!0,backgroundColor:e,innerStyle:{display:`flex`,justifyContent:`space-between`,paddingInlineStart:0,paddingInlineEnd:10,"> *:not(:last-child)":{order:2},"> *":{flexShrink:0},...t,gap:0}},l,p?Fj.createElement(PV,{state:d,$simulatedGap:t?.gap??6}):Fj.createElement(`div`,null)),p?Fj.createElement(NV,{state:d,...a}):f)},IV=(0,zj.createContext)(null),LV=(0,zj.createContext)(null),RV=(0,zj.forwardRef)(function(e,t){[e,t]=Iw(e,t,IV);let{children:n,orientation:r=`horizontal`}=e;return n=(0,zj.useMemo)(()=>typeof n==`function`?n({orientation:r,defaultChildren:null}):n,[n,r]),zj.createElement(ID,{content:n},n=>zj.createElement($O,{props:e,collection:n,tabsRef:t}))}),zV=(0,zj.forwardRef)(function(e,t){return(0,zj.useContext)(LV)?zj.createElement(ek,{props:e,forwardedRef:t}):zj.createElement(GD,e)}),BV=class extends fz{},BV.type=`item`,VV=HD(BV,(e,t,n)=>{let r=(0,zj.useContext)(LV),i=sC(t),{tabProps:a,isSelected:o,isDisabled:s,isPressed:c}=GO({key:n.key,...e},r,i),{focusProps:l,isFocused:u,isFocusVisible:d}=PE(),{hoverProps:f,isHovered:p}=kw({isDisabled:s,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=Pw({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Tab`,values:{isSelected:o,isDisabled:s,isFocused:u,isFocusVisible:d,isPressed:c,isHovered:p}}),h=n.props.href?`a`:`div`,g=VS(e,{global:!0});return delete g.id,delete g.onClick,zj.createElement(h,{...R(g,m,a,l,f),ref:i,"data-selected":o||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-pressed":c||void 0,"data-hovered":p||void 0},m.children)}),HV=PD(function(e,t){let n=(0,zj.useContext)(LV),r=sC(t),{id:i,...a}=e,{tabPanelProps:o}=KO(e,n,r),{focusProps:s,isFocused:c,isFocusVisible:l}=PE(),u=n.selectedKey===e.id,d=Pw({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:c,isFocusVisible:l,isInert:TC(!u),state:n}});if(!u&&!e.shouldForceMount)return null;let f=VS(a,{global:!0});delete f.id;let p=u?R(f,o,s,d):d;return zj.createElement(`div`,{...p,ref:r,"data-focused":c||void 0,"data-focus-visible":l||void 0,inert:TC(!u||e.inert),"data-inert":u?void 0:`true`},zj.createElement(Nw,{values:[[IV,null],[LV,null]]},zj.createElement(Iz.Provider,{value:Fz},d.children)))}),N.div({display:`flex`,alignItems:`center`,flexShrink:0,position:`relative`,overflow:`hidden`}),N.div({display:`flex`,overflowX:`auto`,scrollbarWidth:`none`,msOverflowStyle:`none`,WebkitScrollbar:`none`,scrollSnapType:`x mandatory`,flex:1,"&::-webkit-scrollbar":{display:`none`}}),N(zV)({display:`flex`,flexShrink:0}),N.div(({$showStartBorder:e,$showEndBorder:t,theme:n})=>({flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:6,boxShadow:e?`inset 1px 0 0 ${n.appBorderColor}`:t?`inset -1px 0 0 ${n.appBorderColor}`:`none`})),N(HI)({flexShrink:0,paddingInline:0,width:16}),N(HV)({overflowY:`hidden`,height:`100%`,display:`block`,'&[inert="true"]':{display:`none`}}),N(RV)(({$simulatedGap:e})=>({display:`flex`,flexDirection:`column`,height:`100%`,".tablist":{flex:`1 1 100%`},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}})),N(VV)(({theme:e})=>({whiteSpace:`normal`,display:`inline-flex`,overflow:`hidden`,verticalAlign:`top`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,textDecoration:`none`,scrollSnapAlign:`start`,"&:empty":{display:`none`},"&[hidden]":{display:`none`},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-visible":{outline:`0 none`,boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`},color:e.barTextColor,borderBottomColor:`transparent`,"&:hover":{color:e.barHoverColor},"&[data-selected]":{color:e.barSelectedColor,borderBottomColor:e.barSelectedColor}})),UV=Ee`
|
|
219
|
+
from {
|
|
220
|
+
transform: rotate(0deg);
|
|
221
|
+
}
|
|
222
|
+
to {
|
|
223
|
+
transform: rotate(360deg);
|
|
224
|
+
}
|
|
225
|
+
`,WV=N.div(({size:e=32})=>({borderRadius:`50%`,cursor:`progress`,display:`inline-block`,overflow:`hidden`,position:`absolute`,transition:`all 200ms ease-out`,verticalAlign:`top`,top:`50%`,left:`50%`,marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:`solid`,borderColor:`rgba(97, 97, 97, 0.29)`,borderTopColor:`rgb(100,100,100)`,animation:`${UV} 0.7s linear infinite`,mixBlendMode:`difference`})),GV=N.div({position:`absolute`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,width:`100%`,height:`100%`}),KV=N.div(({theme:e})=>({position:`relative`,width:`80%`,marginBottom:`0.75rem`,maxWidth:300,height:5,borderRadius:5,background:Ae(.8,e.color.secondary),overflow:`hidden`,cursor:`progress`})),qV=N.div(({theme:e})=>({position:`absolute`,top:0,left:0,height:`100%`,background:e.color.secondary})),JV=N.div(({theme:e})=>({minHeight:`2em`,fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),YV=N(Ve)(({theme:e})=>({width:20,height:20,marginBottom:`0.5rem`,color:e.textMutedColor})),XV=Ee`
|
|
226
|
+
from { content: "..." }
|
|
227
|
+
33% { content: "." }
|
|
228
|
+
66% { content: ".." }
|
|
229
|
+
to { content: "..." }
|
|
230
|
+
`,ZV=N.span({"&::after":{content:`'...'`,animation:`${XV} 1s linear infinite`,animationDelay:`1s`,display:`inline-block`,width:`1em`,height:`auto`}}),QV=({progress:e,error:t,size:n,...r})=>{if(t)return Bj.createElement(GV,{"aria-label":t.toString(),"aria-live":`polite`,role:`status`,...r},Bj.createElement(YV,null),Bj.createElement(JV,null,t.message));if(e){let{value:t,modules:n}=e,{message:i}=e;return n&&(i+=` ${n.complete} / ${n.total} modules`),Bj.createElement(GV,{"aria-label":`Content is loading...`,"aria-live":`polite`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t*100,"aria-valuetext":i,role:`progressbar`,...r},Bj.createElement(KV,null,Bj.createElement(qV,{style:{width:`${t*100}%`}})),Bj.createElement(JV,null,i,t<1&&Bj.createElement(ZV,{key:i})))}return Bj.createElement(WV,{"aria-label":`Content is loading...`,"aria-live":`polite`,role:`status`,size:n,...r})},$V=Ee({"0%":{transform:`rotate(0deg)`},"100%":{transform:`rotate(360deg)`}}),N.div(({size:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,minWidth:e,minHeight:e})),N.svg(({size:e,width:t})=>({position:`absolute`,width:`${e}px!important`,height:`${e}px!important`,transform:`rotate(-90deg)`,circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:`transparent`,stroke:`currentColor`,strokeWidth:t,strokeLinecap:`round`,strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${$V} 1s linear infinite`,circle:{opacity:.25}}),{deprecate:eH}=__STORYBOOK_MODULE_CLIENT_LOGGER__,N.pre`
|
|
231
|
+
line-height: 18px;
|
|
232
|
+
padding: 11px 1rem;
|
|
233
|
+
white-space: pre-wrap;
|
|
234
|
+
background: rgba(0, 0, 0, 0.05);
|
|
235
|
+
color: ${we.darkest};
|
|
236
|
+
border-radius: 3px;
|
|
237
|
+
margin: 1rem 0;
|
|
238
|
+
width: 100%;
|
|
239
|
+
display: block;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
font-family: ${Oe.fonts.mono};
|
|
242
|
+
font-size: ${Oe.size.s2-1}px;
|
|
243
|
+
`,tH=EM,nH={},Object.keys(EM).forEach(e=>{nH[e]=(0,tk.forwardRef)((t,n)=>(0,tk.createElement)(e,{...t,ref:n}))})})))()}function iH(){return iH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iH.apply(null,arguments)}function aH(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function oH(e,t){return oH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oH(e,t)}function sH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oH(e,t)}function cH(e){return cH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cH(e)}function lH(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function uH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uH=function(){return!!e})()}function dH(e,t,n){if(uH())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&oH(i,n.prototype),i}function fH(e){var t=typeof Map==`function`?new Map:void 0;return fH=function(e){if(e===null||!lH(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return dH(e,arguments,cH(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),oH(n,e)},fH(e)}function pH(e,t){return e.substr(-t.length)===t}function mH(e){return typeof e==`string`&&e.match(XH)?parseFloat(e):e}function hH(e){return Math.round(e*255)}function gH(e,t,n){return hH(e)+`,`+hH(t)+`,`+hH(n)}function _H(e,t,n,r){if(r===void 0&&(r=gH),t===0)return r(n,n,n);var i=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,o=a*(1-Math.abs(i%2-1)),s=0,c=0,l=0;i>=0&&i<1?(s=a,c=o):i>=1&&i<2?(s=o,c=a):i>=2&&i<3?(c=a,l=o):i>=3&&i<4?(c=o,l=a):i>=4&&i<5?(s=o,l=a):i>=5&&i<6&&(s=a,l=o);var u=n-a/2,d=s+u,f=c+u,p=l+u;return r(d,f,p)}function vH(e){if(typeof e!=`string`)return e;var t=e.toLowerCase();return $H[t]?`#`+$H[t]:e}function yH(e){if(typeof e!=`string`)throw new YH(3);var t=vH(e);if(t.match(eU))return{red:parseInt(``+t[1]+t[2],16),green:parseInt(``+t[3]+t[4],16),blue:parseInt(``+t[5]+t[6],16)};if(t.match(tU)){var n=parseFloat((parseInt(``+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(``+t[1]+t[2],16),green:parseInt(``+t[3]+t[4],16),blue:parseInt(``+t[5]+t[6],16),alpha:n}}if(t.match(nU))return{red:parseInt(``+t[1]+t[1],16),green:parseInt(``+t[2]+t[2],16),blue:parseInt(``+t[3]+t[3],16)};if(t.match(rU)){var r=parseFloat((parseInt(``+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(``+t[1]+t[1],16),green:parseInt(``+t[2]+t[2],16),blue:parseInt(``+t[3]+t[3],16),alpha:r}}var i=iU.exec(t);if(i)return{red:parseInt(``+i[1],10),green:parseInt(``+i[2],10),blue:parseInt(``+i[3],10)};var a=aU.exec(t.substring(0,50));if(a)return{red:parseInt(``+a[1],10),green:parseInt(``+a[2],10),blue:parseInt(``+a[3],10),alpha:parseFloat(``+a[4])>1?parseFloat(``+a[4])/100:parseFloat(``+a[4])};var o=oU.exec(t);if(o){var s=`rgb(`+_H(parseInt(``+o[1],10),parseInt(``+o[2],10)/100,parseInt(``+o[3],10)/100)+`)`,c=iU.exec(s);if(!c)throw new YH(4,t,s);return{red:parseInt(``+c[1],10),green:parseInt(``+c[2],10),blue:parseInt(``+c[3],10)}}var l=sU.exec(t.substring(0,50));if(l){var u=`rgb(`+_H(parseInt(``+l[1],10),parseInt(``+l[2],10)/100,parseInt(``+l[3],10)/100)+`)`,d=iU.exec(u);if(!d)throw new YH(4,t,u);return{red:parseInt(``+d[1],10),green:parseInt(``+d[2],10),blue:parseInt(``+d[3],10),alpha:parseFloat(``+l[4])>1?parseFloat(``+l[4])/100:parseFloat(``+l[4])}}throw new YH(5)}function bH(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return e.alpha===void 0?{hue:0,saturation:0,lightness:o}:{hue:0,saturation:0,lightness:o,alpha:e.alpha};var s,c=i-a,l=o>.5?c/(2-i-a):c/(i+a);switch(i){case t:s=(n-r)/c+(n<r?6:0);break;case n:s=(r-t)/c+2;break;default:s=(t-n)/c+4}return s*=60,e.alpha===void 0?{hue:s,saturation:l,lightness:o}:{hue:s,saturation:l,lightness:o,alpha:e.alpha}}function xH(e){return bH(yH(e))}function SH(e){var t=e.toString(16);return t.length===1?`0`+t:t}function CH(e){return SH(Math.round(e*255))}function wH(e,t,n){return lU(`#`+CH(e)+CH(t)+CH(n))}function TH(e,t,n){return _H(e,t,n,wH)}function EH(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return TH(e,t,n);if(typeof e==`object`&&t===void 0&&n===void 0)return TH(e.hue,e.saturation,e.lightness);throw new YH(1)}function DH(e,t,n,r){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`&&typeof r==`number`)return r>=1?TH(e,t,n):`rgba(`+_H(e,t,n)+`,`+r+`)`;if(typeof e==`object`&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?TH(e.hue,e.saturation,e.lightness):`rgba(`+_H(e.hue,e.saturation,e.lightness)+`,`+e.alpha+`)`;throw new YH(2)}function OH(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return lU(`#`+SH(e)+SH(t)+SH(n));if(typeof e==`object`&&t===void 0&&n===void 0)return lU(`#`+SH(e.red)+SH(e.green)+SH(e.blue));throw new YH(6)}function kH(e,t,n,r){if(typeof e==`string`&&typeof t==`number`){var i=yH(e);return`rgba(`+i.red+`,`+i.green+`,`+i.blue+`,`+t+`)`}if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`&&typeof r==`number`)return r>=1?OH(e,t,n):`rgba(`+e+`,`+t+`,`+n+`,`+r+`)`;if(typeof e==`object`&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?OH(e.red,e.green,e.blue):`rgba(`+e.red+`,`+e.green+`,`+e.blue+`,`+e.alpha+`)`;throw new YH(7)}function AH(e){if(typeof e!=`object`)throw new YH(8);if(dU(e))return kH(e);if(uU(e))return OH(e);if(pU(e))return DH(e);if(fU(e))return EH(e);throw new YH(8)}function jH(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):jH(e,t,r)}}function MH(e){return jH(e,e.length,[])}function NH(e,t){if(t===`transparent`)return t;var n=xH(t);return AH(iH({},n,{hue:n.hue+parseFloat(e)}))}function PH(e,t,n){return Math.max(e,Math.min(t,n))}function FH(e,t){if(t===`transparent`)return t;var n=xH(t);return AH(iH({},n,{lightness:PH(0,1,n.lightness-parseFloat(e))}))}function IH(e,t){if(t===`transparent`)return t;var n=xH(t);return AH(iH({},n,{saturation:PH(0,1,n.saturation-parseFloat(e))}))}function LH(e,t){if(t===`transparent`)return t;var n=xH(t);return AH(iH({},n,{lightness:PH(0,1,n.lightness+parseFloat(e))}))}function RH(e,t,n){if(t===`transparent`)return n;if(n===`transparent`)return t;if(e===0)return n;var r=yH(t),i=iH({},r,{alpha:typeof r.alpha==`number`?r.alpha:1}),a=yH(n),o=iH({},a,{alpha:typeof a.alpha==`number`?a.alpha:1}),s=i.alpha-o.alpha,c=parseFloat(e)*2-1,l=((c*s===-1?c:c+s)/(1+c*s)+1)/2,u=1-l;return kH({red:Math.floor(i.red*l+o.red*u),green:Math.floor(i.green*l+o.green*u),blue:Math.floor(i.blue*l+o.blue*u),alpha:i.alpha*parseFloat(e)+o.alpha*(1-parseFloat(e))})}function zH(e,t){if(t===`transparent`)return t;var n=yH(t),r=typeof n.alpha==`number`?n.alpha:1;return kH(iH({},n,{alpha:PH(0,1,(r*100+parseFloat(e)*100)/100)}))}function BH(e,t){if(t===`transparent`)return t;var n=xH(t);return AH(iH({},n,{saturation:PH(0,1,n.saturation+parseFloat(e))}))}function VH(e,t){return t===`transparent`?t:AH(iH({},xH(t),{hue:parseFloat(e)}))}function HH(e,t){return t===`transparent`?t:AH(iH({},xH(t),{lightness:parseFloat(e)}))}function UH(e,t){return t===`transparent`?t:AH(iH({},xH(t),{saturation:parseFloat(e)}))}function WH(e,t){return t===`transparent`?t:gU(parseFloat(e),`rgb(0, 0, 0)`,t)}function GH(e,t){return t===`transparent`?t:gU(parseFloat(e),`rgb(255, 255, 255)`,t)}function KH(e,t){if(t===`transparent`)return t;var n=yH(t),r=typeof n.alpha==`number`?n.alpha:1;return kH(iH({},n,{alpha:PH(0,1,(r*100-parseFloat(e)*100).toFixed(2)/100)}))}var qH,JH,YH,XH,ZH,QH,$H,eU,tU,nU,rU,iU,aU,oU,sU,cU,lU,uU,dU,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU,SU,CU,wU,TU;function EU(){return(EU=t((()=>{qH=e(o(),1),rH(),pe(),JH=e(o(),1),YH=(function(e){sH(t,e);function t(t){return aH(e.call(this,`An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#`+t+` for more information.`)||this)}return t})(fH(Error)),XH=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/,ZH=function(e){return function(t,n){n===void 0&&(n=`16px`);var r=t,i=n;if(typeof t==`string`){if(!pH(t,`px`))throw new YH(69,e,t);r=mH(t)}if(typeof n==`string`){if(!pH(n,`px`))throw new YH(70,e,n);i=mH(n)}if(typeof r==`string`)throw new YH(71,t,e);if(typeof i==`string`)throw new YH(72,n,e);return``+r/i+e}},QH=ZH,QH(`em`),QH(`rem`),$H={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`639`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},eU=/^#[a-fA-F0-9]{6}$/,tU=/^#[a-fA-F0-9]{8}$/,nU=/^#[a-fA-F0-9]{3}$/,rU=/^#[a-fA-F0-9]{4}$/,iU=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,aU=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,oU=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,sU=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,cU=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?`#`+e[1]+e[3]+e[5]:e},lU=cU,uU=function(e){return typeof e.red==`number`&&typeof e.green==`number`&&typeof e.blue==`number`&&(typeof e.alpha!=`number`||typeof e.alpha>`u`)},dU=function(e){return typeof e.red==`number`&&typeof e.green==`number`&&typeof e.blue==`number`&&typeof e.alpha==`number`},fU=function(e){return typeof e.hue==`number`&&typeof e.saturation==`number`&&typeof e.lightness==`number`&&(typeof e.alpha!=`number`||typeof e.alpha>`u`)},pU=function(e){return typeof e.hue==`number`&&typeof e.saturation==`number`&&typeof e.lightness==`number`&&typeof e.alpha==`number`},MH(NH),mU=MH(FH),MH(IH),hU=MH(LH),gU=MH(RH),_U=MH(zH),MH(BH),MH(VH),MH(HH),MH(UH),MH(WH),MH(GH),vU=MH(KH),yU=N.div(Wj,({theme:e})=>({backgroundColor:e.base===`light`?`rgba(0,0,0,.01)`:`rgba(255,255,255,.01)`,borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:20,margin:`25px 0 40px`,color:vU(.3,e.color.defaultText),fontSize:e.typography.size.s2})),bU=e=>JH.createElement(yU,{...e,className:`docblock-emptyblock sb-unstyled`}),xU=N(eM)(({theme:e})=>({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`}})),SU=N.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,margin:`25px 0 40px`,padding:`20px 20px 20px 22px`})),CU=N.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:`60%`,[`&:first-child${ye}`]:{margin:0}})),wU=()=>qH.createElement(SU,null,qH.createElement(CU,null),qH.createElement(CU,{style:{width:`80%`}}),qH.createElement(CU,{style:{width:`30%`}}),qH.createElement(CU,{style:{width:`80%`}})),TU=({isLoading:e,error:t,language:n,code:r,dark:i,format:a=!0,copyable:o=!0,...s})=>{let{typography:c}=ge();if(e)return qH.createElement(wU,null);if(t)return qH.createElement(bU,null,t);let l=qH.createElement(xU,{bordered:!0,copyable:o,format:a,language:n??`jsx`,className:`docblock-source sb-unstyled`,...s},r);if(typeof i>`u`)return l;let u=i?fe.dark:fe.light;return qH.createElement(De,{theme:Se({...u,fontCode:c.fonts.mono,fontBase:c.fonts.base})},l)}})))()}function DU(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
|
244
|
+
[ ]{${Math.min.apply(Math,r)}}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
245
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
|
246
|
+
`)&&(o=String(e).split(`
|
|
247
|
+
`).map(function(e,t){return t===0?e:`${i}${e}`}).join(`
|
|
248
|
+
`)),a+=o+n[t+1]}),a}function OU(){return(OU=t((()=>{})))()}function kU(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function AU(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jU(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function MU(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function NU(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(kU(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=NU(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,NU(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(NU(a,void 0,n,r,i));return t}if(typeof Buffer<`u`&&Buffer.isBuffer(e))return e.subarray();if(AU(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=NU(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),PU(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),PU(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),PU(t,e,n,r,i),t}if(e instanceof Error){let t=new e.constructor;return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,PU(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),PU(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),PU(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),PU(t,e,n,r,i),t}if(typeof e==`object`&&FU(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),PU(t,e,n,r,i),t}return e}function PU(e,t,n=e,r,i){let a=[...Object.keys(t),...jU(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=NU(t[s],s,n,r,i))}}function FU(e){switch(MU(e)){case Tq:case Aq:case jq:case Nq:case wq:case Dq:case Vq:case Hq:case Rq:case zq:case Bq:case Oq:case Cq:case Mq:case xq:case kq:case Sq:case Eq:case Pq:case Fq:case Iq:case Lq:return!0;default:return!1}}function IU(e){return NU(e,void 0,e,new Map,void 0)}function LU(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];t(o,a)&&(n[a]=o)}return n}function RU(){return RU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RU.apply(this,arguments)}function zU(e){return`( *)(`+(e===1?qJ:JJ)+`) +`}function BU(e){return RegExp(`^`+(e===1?YJ:XJ))}function VU(e){return RegExp(`^`+(e===1?YJ:XJ)+`[^\\n]*(?:\\n(?!\\1`+(e===1?qJ:JJ)+` )[^\\n]*)*(\\n|$)`,`gm`)}function HU(e){let t=e===1?qJ:JJ;return RegExp(`^( *)(`+t+`) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1`+t+` (?!`+t+` ))\\n*|\\s*\\n*$)`)}function UU(e,t){let n=t===1,r=n?tY:nY,i=n?$J:eY,a=n?ZJ:QJ;return{t:e=>a.test(e),o:$U(function(e,t){let n=KJ.exec(t.prevCapture);return n&&(t.list||!t.inline&&!t.simple)?r.exec(e=n[1]+e):null}),i:1,u(e,t,r){let o=n?+e[2]:void 0,s=e[0].replace(Yq,`
|
|
249
|
+
`).match(i),c=!1;return{items:s.map(function(e,n){let i=a.exec(e)[0].length,o=RegExp(`^ {1,`+i+`}`,`gm`),l=e.replace(o,``).replace(a,``),u=n===s.length-1,d=l.indexOf(`
|
|
250
|
+
|
|
251
|
+
`)!==-1||u&&c;c=d;let f=r.inline,p=r.list,m;r.list=!0,d?(r.inline=!1,m=GU(l)+`
|
|
252
|
+
|
|
253
|
+
`):(r.inline=!0,m=GU(l));let h=t(m,r);return r.inline=f,r.list=p,h}),ordered:n,start:o}},l:(t,n,r)=>e(t.ordered?`ol`:`ul`,{key:r.key,start:t.type===`20`?t.start:void 0},t.items.map(function(t,i){return e(`li`,{key:i},n(t,r))}))}}function WU(e){return typeof e==`string`}function GU(e){let t=e.length;for(;t>0&&e[t-1]<=` `;)t--;return e.slice(0,t)}function KU(e,t){return e.startsWith(t)}function qU(e,t,n){if(Array.isArray(n)){for(let t=0;t<n.length;t++)if(KU(e,n[t]))return!0;return!1}return n(e,t)}function JU(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,`a`).replace(/[çÇ]/g,`c`).replace(/[ðÐ]/g,`d`).replace(/[ÈÉÊËéèêë]/g,`e`).replace(/[ÏïÎîÍíÌì]/g,`i`).replace(/[Ññ]/g,`n`).replace(/[øØœŒÕõÔôÓóÒò]/g,`o`).replace(/[ÜüÛûÚúÙù]/g,`u`).replace(/[ŸÿÝý]/g,`y`).replace(/[^a-z0-9- ]/gi,``).replace(/ /gi,`-`).toLowerCase()}function YU(e){return NJ.test(e)?`right`:jJ.test(e)?`center`:MJ.test(e)?`left`:null}function XU(e,t,n,r){let i=n.inTable;n.inTable=!0;let a=[[]],o=``;function s(){if(!o)return;let e=a[a.length-1];e.push.apply(e,t(o,n)),o=``}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((e,t,n)=>{e.trim()===`|`&&(s(),r)?t!==0&&t!==n.length-1&&a.push([]):o+=e}),s(),n.inTable=i,a}function ZU(e,t,n){n.inline=!0;let r=e[2]?e[2].replace(AJ,``).split(`|`).map(YU):[],i=e[3]?(function(e,t,n){return e.trim().split(`
|
|
254
|
+
`).map(function(e){return XU(e,t,n,!0)})})(e[3],t,n):[],a=XU(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:a,type:`25`}:{children:a,type:`21`}}function QU(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function $U(e){return e.inline=1,e}function eW(e){return $U(function(t,n){return n.inline?e.exec(t):null})}function tW(e){return $U(function(t,n){return n.inline||n.simple?e.exec(t):null})}function nW(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function rW(e){return $U(function(t){return e.exec(t)})}function iW(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,``);if(aY.test(t))return null}catch{return null}return e}function aW(e){return e&&e.replace(HJ,`$1`)}function oW(e,t,n){let r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;let a=e(t,n);return n.inline=r,n.simple=i,a}function sW(e,t,n){let r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;let a=e(t,n);return n.inline=r,n.simple=i,a}function cW(e,t,n){let r=n.inline||!1;n.inline=!1;let i=e(t,n);return n.inline=r,i}function lW(){return{}}function uW(){return null}function dW(...e){return e.filter(Boolean).join(` `)}function fW(e,t,n){let r=e,i=t.split(`.`);for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r||n}function pW(e=``,t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?RU({},Gq,t.namedCodesToUnicode):Gq;let n=t.slugify||JU,r=t.sanitizer||iW,i=t.createElement||sK.createElement,a=[Xq,tJ,nJ,t.enforceAtxHeadings?fJ:dJ,pJ,CJ,tY,nY],o=[...a,wJ,mJ,gJ,vJ];function s(e,t){for(let n=0;n<e.length;n++)if(e[n].test(t))return!0;return!1}function c(e,n,...r){let a=fW(t.overrides,e+`.props`,{});return i((function(e,t){let n=fW(t,e);return n?typeof n==`function`||typeof n==`object`&&`render`in n?n:fW(t,e+`.component`,e):e})(e,t.overrides),RU({},n,a,{className:dW(n?.className,a.className)||void 0}),...r)}function l(e){e=e.replace(lJ,``);let n=!1;t.forceInline?n=!0:t.forceBlock||(n=OJ.test(e)===!1);let r=h(m(n?e:GU(e).replace(WJ,``)+`
|
|
255
|
+
|
|
256
|
+
`,{inline:n}));for(;WU(r[r.length-1])&&!r[r.length-1].trim();)r.pop();if(t.wrapper===null)return r;let a=t.wrapper||(n?`span`:`div`),o;if(r.length>1||t.forceWrapper)o=r;else{if(r.length===1)return o=r[0],typeof o==`string`?c(`span`,{key:`outer`},o):o;o=null}return i(a,{key:`outer`},o)}function u(e,t){if(!t||!t.trim())return null;let n=t.match(Jq);return n?n.reduce(function(t,n){let i=n.indexOf(`=`);if(i!==-1){let a=(function(e){return e.indexOf(`-`)!==-1&&e.match(_J)===null&&(e=e.replace(SJ,function(e,t){return t.toUpperCase()})),e})(n.slice(0,i)).trim(),o=(function(e){let t=e[0];return(t===`"`||t===`'`)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e})(n.slice(i+1).trim()),s=Wq[a]||a;if(s===`ref`)return t;let c=t[s]=(function(e,t,n,r){return t===`style`?(function(e){let t=[],n=``,r=!1,i=!1,a=``;if(!e)return t;for(let o=0;o<e.length;o++){let s=e[o];if(s!==`"`&&s!==`'`||r||(i?s===a&&(i=!1,a=``):(i=!0,a=s)),s===`(`&&n.endsWith(`url`)?r=!0:s===`)`&&r&&(r=!1),s!==`;`||i||r)n+=s;else{let e=n.trim();if(e){let n=e.indexOf(`:`);if(n>0){let r=e.slice(0,n).trim(),i=e.slice(n+1).trim();t.push([r,i])}}n=``}}let o=n.trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();t.push([n,r])}}return t})(n).reduce(function(t,[n,i]){return t[n.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=r(i,e,n),t},{}):qq.indexOf(t)===-1?(n.match(yJ)&&(n=aW(n.slice(1,n.length-1))),n===`true`||n!==`false`&&n):r(aW(n),e,t)})(e,a,o,r);typeof c==`string`&&(mJ.test(c)||vJ.test(c))&&(t[s]=l(c.trim()))}else n!==`style`&&(t[Wq[n]||n]=!0);return t},{}):null}let d=[],f={},p={0:{t:[`>`],o:nW(Xq),i:1,u(e,t,n){let[,r,i]=e[0].replace(Zq,``).match(Qq);return{alert:r,children:t(i,n)}},l(e,t,r){let i={key:r.key};return e.alert&&(i.className=`markdown-alert-`+n(e.alert.toLowerCase(),JU),e.children.unshift({attrs:{},children:[{type:`27`,text:e.alert}],noInnerParse:!0,type:`11`,tag:`header`})),c(`blockquote`,i,t(e.children,r))}},1:{t:[` `],o:rW($q),i:1,u:lW,l:(e,t,n)=>c(`br`,{key:n.key})},2:{t:[`--`,`__`,`**`,`- `,`* `,`_ `],o:nW(eJ),i:1,u:lW,l:(e,t,n)=>c(`hr`,{key:n.key})},3:{t:[` `],o:nW(nJ),i:0,u:e=>({lang:void 0,text:aW(GU(e[0].replace(/^ {4}/gm,``)))}),l:(e,t,n)=>c(`pre`,{key:n.key},c(`code`,RU({},e.attrs,{className:e.lang?`lang-`+e.lang:``}),e.text))},4:{t:["```",`~~~`],o:nW(tJ),i:0,u:e=>({attrs:u(`code`,e[3]||``),lang:e[2]||void 0,text:e[4],type:`3`})},5:{t:["`"],o:tW(rJ),i:3,u:e=>({text:aW(e[2])}),l:(e,t,n)=>c(`code`,{key:n.key},e.text)},6:{t:[`[^`],o:nW(oJ),i:0,u:e=>(d.push({footnote:e[2],identifier:e[1]}),{}),l:uW},7:{t:[`[^`],o:eW(sJ),i:1,u:e=>({target:`#`+n(e[1],JU),text:e[1]}),l:(e,t,n)=>c(`a`,{key:n.key,href:r(e.target,`a`,`href`)},c(`sup`,{key:n.key},e.text))},8:{t:[`[ ]`,`[x]`],o:eW(uJ),i:1,u:e=>({completed:e[1].toLowerCase()===`x`}),l:(e,t,n)=>c(`input`,{checked:e.completed,key:n.key,readOnly:!0,type:`checkbox`})},9:{t:[`#`],o:nW(t.enforceAtxHeadings?fJ:dJ),i:1,u:(e,t,r)=>({children:oW(t,e[2],r),id:n(e[2],JU),level:e[1].length}),l:(e,t,n)=>c(`h`+e.level,{id:e.id,key:n.key},t(e.children,n))},10:{t:e=>{let t=e.indexOf(`
|
|
257
|
+
`);return t>0&&t<e.length-1&&(e[t+1]===`=`||e[t+1]===`-`)},o:nW(pJ),i:1,u:(e,t,n)=>({children:oW(t,e[1],n),level:e[2]===`=`?1:2,type:`9`})},11:{t:[`<`],o:rW(mJ),i:1,u(e,t,n){let[,r]=e[3].match(GJ),i=RegExp(`^`+r,`gm`),a=e[3].replace(i,``),c=s(o,a)?cW:oW,l=e[1].toLowerCase(),d=Kq.indexOf(l)!==-1,f=(d?l:e[1]).trim(),p={attrs:u(f,e[2]),noInnerParse:d,tag:f};if(n.inAnchor=n.inAnchor||l===`a`,d)p.text=e[3];else{let e=n.inHTML;n.inHTML=!0,p.children=c(t,a,n),n.inHTML=e}return n.inAnchor=!1,p},l:(e,t,n)=>c(e.tag,RU({key:n.key},e.attrs),e.text||(e.children?t(e.children,n):``))},13:{t:[`<`],o:rW(vJ),i:1,u(e){let t=e[1].trim();return{attrs:u(t,e[2]||``),tag:t}},l:(e,t,n)=>c(e.tag,RU({},e.attrs,{key:n.key}))},12:{t:[`<!--`],o:rW(gJ),i:1,u:()=>({}),l:uW},14:{t:[`![`],o:tW(iY),i:1,u:e=>({alt:aW(e[1]),target:aW(e[2]),title:aW(e[3])}),l:(e,t,n)=>c(`img`,{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:r(e.target,`img`,`src`)})},15:{t:[`[`],o:eW(rY),i:3,u:(e,t,n)=>({children:sW(t,e[1],n),target:aW(e[2]),title:aW(e[3])}),l:(e,t,n)=>c(`a`,{key:n.key,href:r(e.target,`a`,`href`),title:e.title},t(e.children,n))},16:{t:[`<`],o:eW(xJ),i:0,u(e){let t=e[1],n=!1;return t.indexOf(`@`)!==-1&&t.indexOf(`//`)===-1&&(n=!0,t=t.replace(`mailto:`,``)),{children:[{text:t,type:`27`}],target:n?`mailto:`+t:t,type:`15`}}},17:{t:(e,n)=>!n.inAnchor&&!t.disableAutoLink&&(KU(e,`http://`)||KU(e,`https://`)),o:eW(bJ),i:0,u:e=>({children:[{text:e[1],type:`27`}],target:e[1],title:void 0,type:`15`})},20:UU(c,1),33:UU(c,2),19:{t:[`
|
|
258
|
+
`],o:nW(iJ),i:3,u:lW,l:()=>`
|
|
259
|
+
`},21:{o:$U(function(e,t){if(t.inline||t.simple||t.inHTML&&e.indexOf(`
|
|
260
|
+
|
|
261
|
+
`)===-1&&t.prevCapture.indexOf(`
|
|
262
|
+
|
|
263
|
+
`)===-1)return null;let n=``,r=0;for(;;){let t=e.indexOf(`
|
|
264
|
+
`,r),i=e.slice(r,t===-1?void 0:t+1);if(s(a,i)||(n+=i,t===-1||!i.trim()))break;r=t+1}let i=GU(n);return i===``?null:[n,,i]}),i:3,u:oY,l:(e,t,n)=>c(`p`,{key:n.key},t(e.children,n))},22:{t:[`[`],o:eW(TJ),i:0,u:e=>(f[e[1]]={target:e[2],title:e[4]},{}),l:uW},23:{t:[`![`],o:tW(EJ),i:0,u:e=>({alt:e[1]?aW(e[1]):void 0,ref:e[2]}),l:(e,t,n)=>f[e.ref]?c(`img`,{key:n.key,alt:e.alt,src:r(f[e.ref].target,`img`,`src`),title:f[e.ref].title}):null},24:{t:e=>e[0]===`[`&&e.indexOf(`](`)===-1,o:eW(DJ),i:0,u:(e,t,n)=>({children:t(e[1],n),fallbackChildren:e[0],ref:e[2]}),l:(e,t,n)=>f[e.ref]?c(`a`,{key:n.key,href:r(f[e.ref].target,`a`,`href`),title:f[e.ref].title},t(e.children,n)):c(`span`,{key:n.key},e.fallbackChildren)},25:{t:[`|`],o:nW(CJ),i:1,u:ZU,l(e,t,n){let r=e;return c(`table`,{key:n.key},c(`thead`,null,c(`tr`,null,r.header.map(function(e,i){return c(`th`,{key:i,style:QU(r,i)},t(e,n))}))),c(`tbody`,null,r.cells.map(function(e,i){return c(`tr`,{key:i},e.map(function(e,i){return c(`td`,{key:i,style:QU(r,i)},t(e,n))}))})))}},27:{o:$U(function(e,t){let n;return KU(e,`:`)&&(n=BJ.exec(e)),n||UJ.exec(e)}),i:4,u(e){let n=e[0];return{text:n.indexOf(`&`)===-1?n:n.replace(hJ,(e,n)=>t.namedCodesToUnicode[n]||e)}},l:e=>e.text},28:{t:[`**`,`__`],o:tW(IJ),i:2,u:(e,t,n)=>({children:t(e[2],n)}),l:(e,t,n)=>c(`strong`,{key:n.key},t(e.children,n))},29:{t:e=>{let t=e[0];return(t===`*`||t===`_`)&&e[1]!==t},o:tW(LJ),i:3,u:(e,t,n)=>({children:t(e[2],n)}),l:(e,t,n)=>c(`em`,{key:n.key},t(e.children,n))},30:{t:[`\\`],o:tW(VJ),i:1,u:e=>({text:e[1],type:`27`})},31:{t:[`==`],o:tW(RJ),i:3,u:oY,l:(e,t,n)=>c(`mark`,{key:n.key},t(e.children,n))},32:{t:[`~~`],o:tW(zJ),i:3,u:oY,l:(e,t,n)=>c(`del`,{key:n.key},t(e.children,n))}};t.disableParsingRawHTML===!0&&(delete p[11],delete p[13]);let m=(function(e){var t=Object.keys(e);function n(r,i){var a=[];if(i.prevCapture=i.prevCapture||``,r.trim())for(;r;)for(var o=0;o<t.length;){var s=t[o],c=e[s];if(!c.t||qU(r,i,c.t)){var l=c.o(r,i);if(l&&l[0]){r=r.substring(l[0].length);var u=c.u(l,n,i);i.prevCapture+=l[0],u.type||=s,a.push(u);break}o++}else o++}return i.prevCapture=``,a}return t.sort(function(t,n){return e[t].i-e[n].i||(t<n?-1:1)}),function(e,t){return n((function(e){return e.replace(aJ,`
|
|
265
|
+
`).replace(cJ,``).replace(kJ,` `)})(e),t)}})(p),h=(function(e,t){return function n(r,i={}){if(Array.isArray(r)){let e=i.key,t=[],a=!1;for(let e=0;e<r.length;e++){i.key=e;let o=n(r[e],i),s=WU(o);s&&a?t[t.length-1]+=o:o!==null&&t.push(o),a=s}return i.key=e,t}return(function(n,r,i){let a=e[n.type].l;return t?t(()=>a(n,r,i),n,r,i):a(n,r,i)})(r,n,i)}})(p,t.renderRule),g=l(e);return d.length?c(`div`,null,g,c(`footer`,{key:`footer`},d.map(function(e){return c(`div`,{id:n(e.identifier,JU),key:e.identifier},e.identifier,h(m(e.footnote,{inline:!0})))}))):g}function mW({children:e,name:t,collapsed:n,keyPath:r,deep:i,...a}){let o=`${r.at(-1)??`root`}-${t}-${i}`,s={trigger:`${o}-trigger`,region:`${o}-region`},c=r.length>0?`li`:`div`;return vK.createElement(KY,{as:c},vK.createElement(qY,{type:`button`,"aria-expanded":!n,id:s.trigger,"aria-controls":s.region,className:`rejt-accordion-button`,...a},t,` :`),vK.createElement(JY,{role:`group`,id:s.region,"aria-labelledby":s.trigger,className:`rejt-accordion-region`},e))}function hW(e){return typeof e==`object`&&e&&!Array.isArray(e)&&typeof e[Symbol.iterator]==`function`?`Iterable`:Object.prototype.toString.call(e).slice(8,-1)}function gW(e,t){let n=hW(e),r=hW(t);return(n===`Function`||r===`Function`)&&r!==n}function _W(e){let t=e;if(t.indexOf(`function`)===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}function vW(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function yW(e){e.forEach(e=>{e.startsWith(`blob:`)&&URL.revokeObjectURL(e)})}function bW(e){return[...new Set(e)]}function xW(e=!1){let t=(0,kK.useContext)(QZ),n=(0,kK.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=kK.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=eQ.get(e);n==null?eQ.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,eQ.delete(e))}n.current=++t.current}return n.current}function SW(e){let t=(0,kK.useContext)(QZ),n=xW(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function CW(e){let t=kK.useId(),[n]=(0,kK.useState)(DW()),r=n?`react-aria`:`react-aria${ZZ.prefix}`;return e||`${r}-${t}`}function wW(){return!1}function TW(){return!0}function EW(e){return()=>{}}function DW(){return typeof kK.useSyncExternalStore==`function`?kK.useSyncExternalStore(EW,wW,TW):(0,kK.useContext)($Z)}function OW(e){let[t,n]=(0,OK.useState)(e),r=(0,OK.useRef)(null),i=tQ(t),a=(0,OK.useRef)(null);if(iQ&&iQ.register(a,i),nQ){let e=rQ.get(i);e&&!e.includes(r)?e.push(r):rQ.set(i,[r])}return XZ(()=>{let e=i;return()=>{iQ&&iQ.unregister(a),rQ.delete(e)}},[i]),(0,OK.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function kW(e){if(AW())e.focus({preventScroll:!0});else{let t=jW(e);e.focus(),MW(t)}}function AW(){if(aQ==null){aQ=!1;try{document.createElement(`div`).focus({get preventScroll(){return aQ=!0,!0}})}catch{}}return aQ}function jW(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 MW(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function NW(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 PW(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function FW(e){let t=null;return()=>(t??=e(),t)}function IW(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;uQ()&&(i=window.event)!=null&&(r=i.type)!=null&&r.startsWith(`key`)&&e.target===`_blank`&&(oQ()?a=!0:o=!0);let l=cQ()&&oQ()&&!sQ()?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});IW.isOpening=n,kW(e),e.dispatchEvent(l),IW.isOpening=!1}function LW(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 RW(e,t){LW(e,e=>IW(e,t))}function zW(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=dQ.get(t.target);r||(r=new Set,dQ.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=dQ.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),dQ.delete(t.target)),dQ.size===0)){for(let e of fQ)e();fQ.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function BW(e,t){let n=VW([e],t);return n&&n[0]}function VW(e,t){let[n,r]=(0,FK.useState)({});return(0,FK.useEffect)(()=>{Promise.all(e.map(async e=>{let n=await t.loadStory(e);r(t=>t[e]===n?t:{...t,[e]:n})}))}),e.map(e=>{if(n[e])return n[e];try{return t.storyById(e)}catch{return}})}function HW(e){if(Z.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}function UW(e){let t=[].forEach,n=[].some,r=typeof window<`u`&&document.body,i,a=!0,o=0;function s(e,t){let n=t.appendChild(l(e));if(e.children.length){let t=u(e.isCollapsed);e.children.forEach(e=>{s(e,t)}),n.appendChild(t)}}function c(e,t){let n=u(!1);if(t.forEach(e=>{s(e,n)}),i=e||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),t.length===0?i:i.appendChild(n)}function l(n){let r=document.createElement(`li`),i=document.createElement(`a`);return e.listItemClass&&r.setAttribute(`class`,e.listItemClass),e.onClick&&(i.onclick=e.onClick),e.includeTitleTags&&i.setAttribute(`title`,n.textContent),e.includeHtml&&n.childNodes.length?t.call(n.childNodes,e=>{i.appendChild(e.cloneNode(!0))}):i.textContent=n.textContent,i.setAttribute(`href`,`${e.basePath}#${n.id}`),i.setAttribute(`class`,`${e.linkClass+` `}node-name--${n.nodeName} ${e.extraLinkClasses}`),r.appendChild(i),r}function u(t){let n=e.orderedList?`ol`:`ul`,r=document.createElement(n),i=e.listClass+` `+e.extraListClasses;return t&&(i=i+` `+e.collapsibleClass,i=i+` `+e.isCollapsedClass),r.setAttribute(`class`,i),r}function d(){let t=S(),n=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset===`auto`&&(e.fixedSidebarOffset=i.offsetTop),t>e.fixedSidebarOffset?n.className.indexOf(e.positionFixedClass)===-1&&(n.className+=` `+e.positionFixedClass):n.className=n.className.replace(` `+e.positionFixedClass,``)}function f(t){let n=0;return t!==null&&(n=t.offsetTop,e.hasInnerContainers&&(n+=f(t.offsetParent))),n}function p(e,t){return e&&e.className!==t&&(e.className=t),e}function m(n,r){e.positionFixedSelector&&d();let s=n,c=r?.target?.getAttribute?r?.target?.getAttribute(`href`):null,l=c&&c.charAt(0)===`#`?y(c.replace(`#`,``)):!1,u=a||l;if(r&&o<5&&o++,u&&i&&s.length>0){let n=C(s),r=i.querySelector(`.${e.activeLinkClass}`),a=n.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,`\\$1`),u=window.location.hash.replace(`#`,``),d=a,f=b();c&&l?d=c.replace(`#`,``):u&&u!==a&&f&&(y(a)||o<=2)&&(d=u);let m=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${d}"]`);if(r===m)return;let g=i.querySelectorAll(`.${e.linkClass}`);t.call(g,t=>{p(t,t.className.replace(` `+e.activeLinkClass,``))});let _=i.querySelectorAll(`.${e.listItemClass}`);t.call(_,t=>{p(t,t.className.replace(` `+e.activeListItemClass,``))}),m&&m.className.indexOf(e.activeLinkClass)===-1&&(m.className+=` `+e.activeLinkClass);let v=m?.parentNode;v&&v.className.indexOf(e.activeListItemClass)===-1&&(v.className+=` `+e.activeListItemClass);let x=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(x,t=>{t.className.indexOf(e.isCollapsedClass)===-1&&(t.className+=` `+e.isCollapsedClass)}),m?.nextSibling&&m.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&p(m.nextSibling,m.nextSibling.className.replace(` `+e.isCollapsedClass,``)),h(m?.parentNode.parentNode)}}function h(t){return t&&t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1?(p(t,t.className.replace(` `+e.isCollapsedClass,``)),h(t.parentNode.parentNode)):t}function g(t){let n=t.target||t.srcElement;typeof n.className!=`string`||n.className.indexOf(e.linkClass)===-1||(a=!1)}function _(){a=!0}function v(){return a}function y(t){let n=x();return(document?.getElementById(t)).offsetTop>n.offsetHeight-n.clientHeight*1.4-e.bottomModeThreshold}function b(){let t=x(),n=t.scrollHeight>t.clientHeight,r=S()+t.clientHeight>t.offsetHeight-e.bottomModeThreshold;return n&&r}function x(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer):document.documentElement||r,t}function S(){return x()?.scrollTop||0}function C(t,r=S()){let i;return n.call(t,(n,a)=>{if(f(n)>r+e.headingsOffset+10)return i=t[a===0?a:a-1],!0;if(a===t.length-1)return i=t[t.length-1],!0}),i}function w(e){let t=S(),n=C(e,t),r=b();if((!n||t<5)&&!r)window.location.hash===`#`||window.location.hash===``||window.history.pushState(null,null,`#`);else if(n&&!r){let e=`#${n.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}return{enableTocAnimation:_,disableTocAnimation:g,render:c,updateToc:m,getCurrentlyHighlighting:v,getTopHeader:C,getScrollTop:S,updateUrlHashForHeader:w}}function WW(e){let t=[].reduce;function n(e){return e[e.length-1]}function r(e){return+e.nodeName.toUpperCase().replace(`H`,``)}function i(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch{return e instanceof window.HTMLElement}}function a(t){if(!i(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;let n=t.getAttribute(`data-heading-label`)||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),a={id:t.id,children:[],nodeName:t.nodeName,headingLevel:r(t),textContent:n};return e.includeHtml&&(a.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(a,t):a}function o(t,r){let i=a(t),o=i.headingLevel,s=r,c=n(s),l=o-(c?c.headingLevel:0);for(;l>0&&(c=n(s),!(c&&o===c.headingLevel));)c&&c.children!==void 0&&(s=c.children),l--;return o>=e.collapseDepth&&(i.isCollapsed=!0),s.push(i),s}function s(t,n){let r=n;e.ignoreSelector&&(r=n.split(`,`).map(function(t){return`${t.trim()}:not(${e.ignoreSelector})`}));try{return t.querySelectorAll(r)}catch{return console.warn(`Headers not found with selector: ${r}`),null}}function c(e){return t.call(e,function(e,t){let n=a(t);return n&&o(n,e.nest),e},{nest:[]})}return{nestHeadingsArray:c,selectHeadings:s}}function GW(e){var t=e.duration,n=e.offset;if(typeof window>`u`||typeof location>`u`)return;var r=location.hash?o(location.href):location.href;i();function i(){document.body.addEventListener(`click`,r,!1);function r(r){!a(r.target)||r.target.className.indexOf(`no-smooth-scroll`)>-1||r.target.href.charAt(r.target.href.length-2)===`#`&&r.target.href.charAt(r.target.href.length-1)===`!`||r.target.className.indexOf(e.linkClass)===-1||KW(r.target.hash,{duration:t,offset:n,callback:function(){s(r.target.hash)}})}}function a(e){return e.tagName.toLowerCase()===`a`&&(e.hash.length>0||e.href.charAt(e.href.length-1)===`#`)&&(o(e.href)===r||o(e.href)+`#`===r)}function o(e){return e.slice(0,e.lastIndexOf(`#`))}function s(e){var t=document.getElementById(e.substring(1));t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}}function KW(e,t){var n=window.pageYOffset,r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},i=document.querySelector(`[id="`+decodeURI(e).split(`#`).join(``)+`"]`)||document.querySelector(`[id="`+e.split(`#`).join(``)+`"]`),a=typeof e==`string`?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,o=typeof r.duration==`function`?r.duration(a):r.duration,s,c;requestAnimationFrame(function(e){s=e,l(e)});function l(e){c=e-s,window.scrollTo(0,r.easing(c,n,a,o)),c<o?requestAnimationFrame(l):u()}function u(){window.scrollTo(0,n+a),typeof r.callback==`function`&&r.callback()}function d(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)}}function qW(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let n=t.querySelector(`.${e.activeListItemClass}`);if(n){let r=n.offsetTop-e.tocScrollOffset;t.scrollTop=r>0?r:0}}}function JW(e){let t=!1;Q=ZW(JQ,e||{}),Q.scrollSmooth&&(Q.duration=Q.scrollSmoothDuration,Q.offset=Q.scrollSmoothOffset,GW(Q)),YQ=UW(Q),XQ=WW(Q),YW();let n=tG(Q);if(n===null)return;let r=nG(Q);if(r===null||(ZQ=XQ.selectHeadings(n,Q.headingSelector),ZQ===null))return;let i=XQ.nestHeadingsArray(ZQ).nest;if(!Q.skipRendering)YQ.render(r,i);else return this;let a=!1;QQ=((e,t)=>eG(e,t,Q.scrollHandlerType))(e=>{YQ.updateToc(ZQ,e),!Q.disableTocScrollSync&&!a&&qW(Q),Q.enableUrlHashUpdateOnScroll&&t&&YQ.getCurrentlyHighlighting()&&YQ.updateUrlHashForHeader(ZQ);let n=e?.target?.scrollingElement?.scrollTop===0;(e&&(e.eventPhase===0||e.currentTarget===null)||n)&&(YQ.updateToc(ZQ),Q.scrollEndCallback?.(e))},Q.scrollHandlerTimeout||Q.throttleTimeout),t||=(QQ(),!0),window.onhashchange=window.onscrollend=e=>{QQ(e)},Q.scrollContainer&&document.querySelector(Q.scrollContainer)?(document.querySelector(Q.scrollContainer).addEventListener(`scroll`,QQ,!1),document.querySelector(Q.scrollContainer).addEventListener(`resize`,QQ,!1)):(document.addEventListener(`scroll`,QQ,!1),document.addEventListener(`resize`,QQ,!1));let o=null;$Q=QW(e=>{a=!0,Q.scrollSmooth&&YQ.disableTocAnimation(e),YQ.updateToc(ZQ,e),o&&clearTimeout(o),o=setTimeout(()=>{YQ.enableTocAnimation()},Q.scrollSmoothDuration),setTimeout(()=>{a=!1},Q.scrollSmoothDuration+100)},Q.throttleTimeout),Q.scrollContainer&&document.querySelector(Q.scrollContainer)?document.querySelector(Q.scrollContainer).addEventListener(`click`,$Q,!1):document.addEventListener(`click`,$Q,!1)}function YW(){let e=nG(Q);e!==null&&(Q.skipRendering||e&&(e.innerHTML=``),Q.scrollContainer&&document.querySelector(Q.scrollContainer)?(document.querySelector(Q.scrollContainer).removeEventListener(`scroll`,QQ,!1),document.querySelector(Q.scrollContainer).removeEventListener(`resize`,QQ,!1),YQ&&document.querySelector(Q.scrollContainer).removeEventListener(`click`,$Q,!1)):(document.removeEventListener(`scroll`,QQ,!1),document.removeEventListener(`resize`,QQ,!1),YQ&&document.removeEventListener(`click`,$Q,!1)))}function XW(e){YW(),JW(e||Q)}function ZW(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)e$.call(r,e)&&(t[e]=r[e])}return t}function QW(e,t,n){t||=250;let r,i;return function(...a){let o=n||this,s=+new Date;r&&s<r+t?(clearTimeout(i),i=setTimeout(()=>{r=s,e.apply(o,a)},t)):(r=s,e.apply(o,a))}}function $W(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function eG(e,t,n=`auto`){switch(n){case`debounce`:return $W(e,t);case`throttle`:return QW(e,t);default:return t<334?$W(e,t):QW(e,t)}}function tG(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function nG(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}function rG(e,t){let n=t(),[{inst:r},i]=(0,KK.useState)({inst:{value:n,getSnapshot:t}});return(0,KK.useLayoutEffect)(()=>{r.value=n,r.getSnapshot=t,iG(r)&&i({inst:r})},[e,n,t]),(0,KK.useEffect)(()=>(iG(r)&&i({inst:r}),e(()=>{iG(r)&&i({inst:r})})),[e]),n}function iG(e){let t=e.getSnapshot,n=e.value;try{let e=t();return!Object.is(n,e)}catch{return!0}}function aG(e,t,n,r){let i=(0,GK.useRef)(void 0);(i.current?.key!==e||i.current.selector!==r)&&(i.current={key:e,selector:r,state:r?Oa(t,n,r):Oa(t,n)});let a=(0,GK.useRef)(n);return a.current=n,rG((0,GK.useCallback)(n=>{let o=t=>{i.current={key:e,selector:r,state:t},n()};return r?t.subscribe(a.current,r,o):t.subscribe(a.current,o)},[t,e,r]),(0,GK.useCallback)(()=>i.current.state,[]))}function oG(e){return aG(e,d$(`core/docgen`).queries.docgen,{id:e})}function sG(e,t){let{extractArgTypes:n}=t.docs||{};if(!n)throw Error(`Args unsupported. See Args documentation for your framework.`);return n(e)}function cG(e,t){return Object.fromEntries(Object.entries(e||{}).map(([e,n])=>[e,sG(n,t)]))}function lG({componentId:e,storyId:t,parameters:n,initialArgs:r,customArgTypes:i}){let{data:a,isInitialLoading:o}=oG(e);return a?{rows:{serviceComponentName:a.name,mainRows:M({payload:a,storyId:t??e,parameters:n,initialArgs:r,customArgTypes:i}),subcomponentRows:O(a)},isInitialLoading:o}:{rows:null,isInitialLoading:o}}function uG(e,t=`start`){e.scrollIntoView({behavior:`smooth`,block:t,inline:`nearest`})}function dG(e){let{of:t}=e;if(`of`in e&&t===void 0)throw new l$;let n=(0,WK.useContext)(mQ),r=f$(t||`meta`),i;if(r.type===`component`){let{component:e,projectAnnotations:{parameters:t}}=r;i={parameters:t,componentId:n.getComponentId(e),argTypes:sG(e,t),component:e}}else if(r.type===`meta`){let{id:e,argTypes:t,parameters:n,initialArgs:a,component:o,subcomponents:s}=r.preparedMeta;i={parameters:n,componentId:e.split(`--`)[0],initialArgs:a,argTypes:t,component:o,subcomponents:s}}else{let{id:e,argTypes:t,parameters:n,initialArgs:a,component:o,subcomponents:s}=r.story;i={parameters:n,componentId:e.split(`--`)[0],storyId:e,initialArgs:a,argTypes:t,component:o,subcomponents:s}}let a=i.parameters?.docs?.argTypes||{};return{...i,filterProps:{include:e.include??a.include,exclude:e.exclude??a.exclude,sort:e.sort??a.sort}}}function fG({mainName:e=`Main`,mainRows:t,subcomponentRows:n,include:r,exclude:i,sort:a,docsLang:o}){let s=u$(t,r,i);if(Object.keys(n).length===0)return WK.createElement(VZ,{rows:s,sort:a,docsLang:o});let c={[e]:{rows:s,sort:a},...Object.fromEntries(Object.entries(n).map(([e,t])=>[e,{rows:u$(t,r,i),sort:a}]))};return WK.createElement(KQ,{tabs:c,sort:a,docsLang:o})}function pG(e){let t=A$.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of j$.filter(t=>e[t]!==void 0))t[n]=e[n];return t}function mG(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}function hG(e){var t=E1.call(e,O1),n=e[O1];try{e[O1]=void 0;var r=!0}catch{}var i=D1.call(e);return r&&(t?e[O1]=n:delete e[O1]),i}function gG(e){return A1.call(e)}function _G(e){return e==null?e===void 0?N1:M1:P1&&P1 in Object(e)?k1(e):j1(e)}function vG(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function yG(e){if(!L1(e))return!1;var t=F1(e);return t==z1||t==B1||t==R1||t==V1}function bG(e){return!!W1&&W1 in e}function xG(e){if(e!=null){try{return K1.call(e)}catch{}try{return e+``}catch{}}return``}function SG(e){return!L1(e)||G1(e)?!1:(H1(e)?e0:Y1).test(q1(e))}function CG(e,t){return e?.[t]}function wG(e,t){var n=n0(e,t);return t0(n)?n:void 0}function TG(e,t){return e===t||e!==e&&t!==t}function EG(){this.__data__=a0?a0(null):{},this.size=0}function DG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function OG(e){var t=this.__data__;if(a0){var n=t[e];return n===c0?void 0:n}return l0.call(t,e)?t[e]:void 0}function kG(e){var t=this.__data__;return a0?t[e]!==void 0:d0.call(t,e)}function AG(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=a0&&t===void 0?p0:t,this}function jG(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 MG(){this.__data__=[],this.size=0}function NG(e,t){for(var n=e.length;n--;)if(i0(e[n][0],t))return n;return-1}function PG(e){var t=this.__data__,n=_0(t,e);return n<0?!1:(n==t.length-1?t.pop():v0.call(t,n,1),--this.size,!0)}function FG(e){var t=this.__data__,n=_0(t,e);return n<0?void 0:t[n][1]}function IG(e){return _0(this.__data__,e)>-1}function LG(e,t){var n=this.__data__,r=_0(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function RG(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 zG(){this.size=0,this.__data__={hash:new h0,map:new(w0||C0),string:new h0}}function BG(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function VG(e,t){var n=e.__data__;return E0(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function HG(e){var t=D0(this,e).delete(e);return this.size-=+!!t,t}function UG(e){return D0(this,e).get(e)}function WG(e){return D0(this,e).has(e)}function GG(e,t){var n=D0(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function KG(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 qG(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(N0);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(qG.Cache||M0),n}function JG(e){var t=P0(e,function(e){return n.size===F0&&n.clear(),e}),n=t.cache;return t}function YG(e){if(!z0(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=pG(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}function XG(e){return U0(e,{maxDepth:50})}function ZG(e,t){let n=e.split(`--`)[0],r=q0(`core/story-docs`),i=(0,ZK.useCallback)(n=>t(n,e),[t,e]);return aG(e,r.queries.storyDocs,{id:n},i)}function QG(e){return ZG(e,Ms)}function $G(e){return ZG(e,Ns)}function eK(e,t,n){let[r,i]=(0,QK.useState)(`Transforming...`),a=t?t?.(e,n):e;return(0,QK.useEffect)(()=>{async function e(){let e=await a;e!==r&&i(e)}e()}),typeof a==`object`&&typeof a.then==`function`?r:a}function tK(e,t){let n=e.parameters.docs?.controls||{};return{include:t.include??n.include,exclude:t.exclude??n.exclude,sort:t.sort??n.sort}}function nK(e,t){let n=OW(),[r,i,a]=c2(e,t),[o]=d2(e,t);return{controlsId:n,args:r,globals:o,updateArgs:i,resetArgs:a}}function rK(e,t){e.channel.emit(b2,t)}function iK(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(V2,``).replace(/ /g,`-`)):``}function aK({context:e,docsParameter:t}){let n=t.container||J2,r=t.page||v4;return oq.createElement(n,{context:e,theme:t.theme},oq.createElement(r,null))}var q,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,J,_K,Y,vK,yK,bK,xK,SK,CK,wK,TK,X,EK,Z,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,eq,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,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,eY,tY,nY,rY,iY,aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY,EY,DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY,ZY,QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX,uX,dX,fX,pX,mX,hX,gX,_X,vX,yX,bX,xX,SX,CX,wX,TX,EX,DX,OX,kX,AX,jX,MX,NX,PX,FX,IX,LX,RX,zX,BX,VX,HX,UX,WX,GX,KX,qX,JX,YX,XX,ZX,QX,$X,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,QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ,lQ,uQ,dQ,fQ,pQ,mQ,hQ,gQ,_Q,vQ,yQ,bQ,xQ,SQ,CQ,wQ,TQ,EQ,DQ,OQ,kQ,AQ,jQ,MQ,NQ,PQ,FQ,IQ,LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,JQ,Q,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$,$,O$,k$,A$,j$,M$,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1,P1,F1,I1,L1,R1,z1,B1,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,x0,S0,C0,w0,T0,E0,D0,O0,k0,A0,j0,M0,N0,P0,F0,I0,L0,R0,z0,B0,V0,H0,U0,W0,G0,K0,q0,J0,Y0,X0,Z0,Q0,$0,e2,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,R2,z2,B2,V2,H2,U2,W2,G2,K2,q2,J2,Y2,X2,Z2,Q2,$2,e4,t4,n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4;function k4(){return(k4=t((()=>{ie(),EU(),q=e(o(),1),rH(),uh(),ct(),pe(),oK=e(o(),1),sK=e(o(),1),cK=e(o(),1),lK=e(o(),1),uK=e(o(),1),dK=e(o(),1),fK=e(o(),1),pK=e(o(),1),mK=e(o(),1),hK=e(o(),1),gK=e(o(),1),J=e(o(),1),_K=e(o(),1),Y=e(o(),1),vK=e(o(),1),yK=e(o(),1),bK=e(o(),1),xK=e(o(),1),SK=e(o(),1),CK=e(o(),1),wK=e(o(),1),TK=e(o(),1),X=e(o(),1),EK=e(o(),1),Z=e(o(),1),DK=e(o(),1),o(),OK=o(),kK=e(o(),1),AK=e(o(),1),o(),o(),o(),jK=e(o(),1),o(),o(),o(),o(),o(),o(),o(),o(),o(),o(),o(),Pe(),o(),MK=e(o(),1),NK=o(),PK=e(o(),1),FK=o(),IK=e(o(),1),ne(),LK=e(o(),1),RK=e(o(),1),zK=o(),BK=e(o(),1),VK=e(o(),1),o(),o(),o(),HK=e(o(),1),UK=e(o(),1),WK=e(o(),1),k(),GK=o(),Fs(),KK=o(),qK=o(),JK=e(o(),1),YK=e(o(),1),ee(),XK=e(o(),1),ZK=o(),QK=o(),$K=e(o(),1),eq=o(),tq=o(),nq=o(),rq=e(o(),1),iq=e(o(),1),OU(),aq=e(o(),1),oq=e(o(),1),sq=e(o(),1),cq=o(),lq=e(o(),1),uq=e(o(),1),dq=e(o(),1),fq=e(o(),1),pq=e(o(),1),mq=e(o(),1),hq=e(o(),1),gq=e(o(),1),o(),o(),_q=e(o(),1),vq=e(o(),1),yq=e(o(),1),i(),{once:bq}=__STORYBOOK_MODULE_CLIENT_LOGGER__,xq=`[object RegExp]`,Sq=`[object String]`,Cq=`[object Number]`,wq=`[object Boolean]`,Tq=`[object Arguments]`,Eq=`[object Symbol]`,Dq=`[object Date]`,Oq=`[object Map]`,kq=`[object Set]`,Aq=`[object Array]`,jq=`[object ArrayBuffer]`,Mq=`[object Object]`,Nq=`[object DataView]`,Pq=`[object Uint8Array]`,Fq=`[object Uint8ClampedArray]`,Iq=`[object Uint16Array]`,Lq=`[object Uint32Array]`,Rq=`[object Int8Array]`,zq=`[object Int16Array]`,Bq=`[object Int32Array]`,Vq=`[object Float32Array]`,Hq=`[object Float64Array]`,Uq=[`children`,`options`],Wq=`allowFullScreen.allowTransparency.autoComplete.autoFocus.autoPlay.cellPadding.cellSpacing.charSet.classId.colSpan.contentEditable.contextMenu.crossOrigin.encType.formAction.formEncType.formMethod.formNoValidate.formTarget.frameBorder.hrefLang.inputMode.keyParams.keyType.marginHeight.marginWidth.maxLength.mediaGroup.minLength.noValidate.radioGroup.readOnly.rowSpan.spellCheck.srcDoc.srcLang.srcSet.tabIndex.useMap`.split(`.`).reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:`className`,for:`htmlFor`}),Gq={amp:`&`,apos:`'`,gt:`>`,lt:`<`,nbsp:`\xA0`,quot:`“`},Kq=[`style`,`script`,`pre`],qq=[`src`,`href`,`data`,`formAction`,`srcDoc`,`action`],Jq=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Yq=/\n{2,}$/,Xq=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Zq=/^ *> ?/gm,Qq=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,$q=/^ {2,}\n/,eJ=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,tJ=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,nJ=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,rJ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,iJ=/^(?:\n *)*\n/,aJ=/\r\n?/g,oJ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,sJ=/^\[\^([^\]]+)]/,cJ=/\f/g,lJ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,uJ=/^\s*?\[(x|\s)\]/,dJ=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,fJ=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,pJ=/^([^\n]+)\n *(=|-)\2{2,} *\n/,mJ=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,hJ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,gJ=/^<!--[\s\S]*?(?:-->)/,_J=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,vJ=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,yJ=/^\{.*\}$/,bJ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,xJ=/^<([^ >]+[:@\/][^ >]+)>/,SJ=/-([a-z])?/gi,CJ=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,wJ=/^[^\n]+(?: \n|\n{2,})/,TJ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,EJ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,DJ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,OJ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,kJ=/\t/g,AJ=/(^ *\||\| *$)/g,jJ=/^ *:-+: *$/,MJ=/^ *:-+ *$/,NJ=/^ *-+: *$/,PJ=e=>`(?=[\\s\\S]+?\\1${e?`\\1`:``})`,FJ="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",IJ=RegExp(`^([*_])\\1${PJ(1)}${FJ}\\1\\1(?!\\1)`),LJ=RegExp(`^([*_])${PJ(0)}${FJ}\\1(?!\\1)`),RJ=RegExp(`^(==)${PJ(0)}${FJ}\\1`),zJ=RegExp(`^(~~)${PJ(0)}${FJ}\\1`),BJ=/^(:[a-zA-Z0-9-_]+:)/,VJ=/^\\([^0-9A-Za-z\s])/,HJ=/\\([^0-9A-Za-z\s])/g,UJ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,WJ=/^\n+/,GJ=/^([ \t]*)/,KJ=/(?:^|\n)( *)$/,qJ=`(?:\\d+\\.)`,JJ=`(?:[*+-])`,YJ=zU(1),XJ=zU(2),ZJ=BU(1),QJ=BU(2),$J=VU(1),eY=VU(2),tY=HU(1),nY=HU(2),rY=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),iY=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,aY=/(javascript|vbscript|data(?!:image)):/i,oY=(e,t,n)=>({children:oW(t,e[2],n)}),sY=e=>{let{children:t,options:n}=e,r=(function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i})(e,Uq);return sK.cloneElement(pW(t??``,n),r)},cY=e=>({lineHeight:`18px`,alignItems:`center`,marginBottom:8,display:`inline-block`,position:`relative`,whiteSpace:`nowrap`,background:e.boolean.background,borderRadius:`3em`,padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:`not-allowed`}},"@media (forced-colors: active)":{background:`ButtonFace`,outline:`1px solid ButtonText`},"&:focus-within":{outline:`1px solid ${e.color.secondary}`,outlineOffset:1,"@media (forced-colors: active)":{outline:`1px solid Highlight`,outlineOffset:1}},input:{...he,appearance:`none`,left:0,top:0,background:`transparent`,cursor:`pointer`,borderRadius:`3em`},span:{textAlign:`center`,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:`1`,cursor:`pointer`,display:`inline-block`,padding:`7px 15px`,transition:`all 100ms ease-out`,userSelect:`none`,borderRadius:`3em`,color:vU(.5,e.color.defaultText),background:`transparent`,"&:active":{boxShadow:`${_U(.05,e.appBorderColor)} 0 0 0 2px inset`,color:_U(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8},"@media (forced-colors: active)":{color:`ButtonText`,boxShadow:`none`}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base===`light`?`${_U(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:`7px 15px`,"@media (forced-colors: active)":{forcedColorAdjust:`none`,background:`Highlight`,color:`HighlightText`,boxShadow:`none`,outline:`1px solid ButtonText`}}}),lY=N.label(({theme:e})=>cY(e)),uY=e=>e===`true`,dY=({name:e,storyId:t,controlsId:n,value:r,onChange:i,onBlur:a,onFocus:o,argType:s,required:c})=>{let l=(0,uK.useCallback)(()=>i(!1),[i]),u=!!s?.table?.readonly;if(r===void 0)return uK.createElement(HI,{ariaLabel:!1,variant:`outline`,size:`medium`,id:re(e,t,n),onClick:l,disabled:u},`Set boolean`);let d=ae(e,t,n),f=typeof r==`string`?uY(r):r;return uK.createElement(lY,{"aria-disabled":u,htmlFor:d,"aria-label":e},uK.createElement(`input`,{id:d,type:`checkbox`,onChange:e=>i(e.target.checked),checked:f,role:`switch`,disabled:u,"aria-required":c||void 0,name:e,onBlur:a,onFocus:o}),uK.createElement(`span`,{"aria-hidden":`true`},`False`),uK.createElement(`span`,{"aria-hidden":`true`},`True`))},fY=e=>{let[t,n,r]=e.split(`-`),i=new Date;return i.setFullYear(parseInt(t,10),parseInt(n,10)-1,parseInt(r,10)),i},pY=e=>{let[t,n]=e.split(`:`),r=new Date;return r.setHours(parseInt(t,10)),r.setMinutes(parseInt(n,10)),r},mY=e=>{let t=new Date(e);return`${`000${t.getFullYear()}`.slice(-4)}-${`0${t.getMonth()+1}`.slice(-2)}-${`0${t.getDate()}`.slice(-2)}`},hY=e=>{let t=new Date(e);return`${`0${t.getHours()}`.slice(-2)}:${`0${t.getMinutes()}`.slice(-2)}`},gY=N(QR.Input)(({theme:e})=>({"&[readonly]":{background:e.base===`light`?e.color.lighter:`transparent`},"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base===`light`?void 0:`invert(1)`}})),_Y=N.fieldset({flex:1,display:`flex`,border:0,marginInline:0,padding:0,gap:10,"div:first-of-type":{flex:4},"div:last-of-type":{flex:3}}),vY=({name:e,storyId:t,controlsId:n,value:r,onChange:i,onFocus:a,onBlur:o,argType:s,required:c})=>{let[l,u]=(0,dK.useState)(!0),d=(0,dK.useRef)(),f=(0,dK.useRef)(),p=!!s?.table?.readonly;(0,dK.useEffect)(()=>{l!==!1&&(d&&d.current&&(d.current.value=r?mY(r):``),f&&f.current&&(f.current.value=r?hY(r):``))},[r]);let m=e=>{if(!e.target.value)return i();let t=fY(e.target.value),n=new Date(r??``);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());let a=n.getTime();a&&i(a),u(!!a)},h=e=>{if(!e.target.value)return i();let t=pY(e.target.value),n=new Date(r??``);n.setHours(t.getHours()),n.setMinutes(t.getMinutes());let a=n.getTime();a&&i(a),u(!!a)},g=ae(e,t,n);return dK.createElement(_Y,null,dK.createElement(`legend`,{className:`sb-sr-only`},e),dK.createElement(`label`,{htmlFor:`${g}-date`,className:`sb-sr-only`},`Date`),dK.createElement(gY,{type:`date`,max:`9999-12-31`,ref:d,id:`${g}-date`,name:`${g}-date`,readOnly:p,"aria-required":c||void 0,onChange:m,onFocus:a,onBlur:o}),dK.createElement(`label`,{htmlFor:`${g}-time`,className:`sb-sr-only`},`Time`),dK.createElement(gY,{type:`time`,id:`${g}-time`,name:`${g}-time`,ref:f,onChange:h,readOnly:p,"aria-required":c||void 0,onFocus:a,onBlur:o}),l?null:dK.createElement(`div`,null,`invalid`))},yY=N.label({display:`flex`}),bY=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},xY=N(QR.Input)(({theme:e})=>({background:e.base===`light`?e.color.lighter:`transparent`})),SY=({name:e,storyId:t,controlsId:n,value:r,onChange:i,min:a,max:o,step:s,onBlur:c,onFocus:l,argType:u,required:d})=>{let[f,p]=(0,fK.useState)(typeof r==`number`?r:``),[m,h]=(0,fK.useState)(!1),[g,_]=(0,fK.useState)(null),v=!!u?.table?.readonly,y=(0,fK.useCallback)(e=>{p(e.target.value);let t=parseFloat(e.target.value);if(Number.isNaN(t))_(Error(`'${e.target.value}' is not a number`));else{let e=t;typeof a==`number`&&e<a&&(e=a),typeof o==`number`&&e>o&&(e=o),i(e),_(null),e!==t&&p(String(e))}},[i,_,a,o]),b=(0,fK.useCallback)(()=>{p(`0`),i(0),h(!0)},[h]),x=(0,fK.useRef)(null);return(0,fK.useEffect)(()=>{m&&x.current&&x.current.select()},[m]),(0,fK.useEffect)(()=>{let e=typeof r==`number`?r:``;f!==e&&p(e)},[r]),r===void 0?fK.createElement(HI,{ariaLabel:!1,variant:`outline`,size:`medium`,id:re(e,t,n),onClick:b,disabled:v},`Set number`):fK.createElement(yY,null,fK.createElement(xY,{ref:x,id:ae(e,t,n),type:`number`,onChange:y,size:`flex`,placeholder:`Edit number...`,value:f,valid:g?`error`:void 0,autoFocus:m,"aria-required":d||void 0,readOnly:v,name:e,min:a,max:o,step:s,onFocus:l,onBlur:c}))},{logger:CY}=__STORYBOOK_MODULE_CLIENT_LOGGER__,wY=(e,t)=>{let n=t&&Object.entries(t).find(([t,n])=>n===e);return n?n[0]:void 0},TY=(e,t)=>e&&t?Object.entries(t).filter(t=>e.includes(t[1])).map(e=>e[0]):[],EY=(e,t)=>e&&t&&e.map(e=>t[e]),DY=N.fieldset({border:`none`,marginInline:0,padding:0,display:`flex`,alignItems:`flex-start`},({$isInline:e})=>e?{flexWrap:`wrap`,gap:15,label:{display:`inline-flex`}}:{flexDirection:`column`,gap:8,label:{display:`flex`}}),OY=N.span(({$readOnly:e})=>({opacity:e?.5:1})),kY=N.label(({$readOnly:e})=>({lineHeight:`20px`,alignItems:`center`,cursor:e?`not-allowed`:`pointer`,input:{cursor:e?`not-allowed`:`pointer`,margin:0,marginRight:6}})),AY=({name:e,storyId:t,controlsId:n,options:r,value:i,onChange:a,isInline:o,argType:s,required:c})=>{if(!r)return CY.warn(`Checkbox with no options: ${e}`),mK.createElement(mK.Fragment,null,`-`);let l=TY(i||[],r),[u,d]=(0,mK.useState)(l),f=!!s?.table?.readonly,p=e=>{let t=e.target.value,n=[...u];n.includes(t)?n.splice(n.indexOf(t),1):n.push(t),a(EY(n,r)),d(n)};(0,mK.useEffect)(()=>{d(TY(i||[],r))},[i]);let m=ae(e,t,n);return mK.createElement(DY,{$isInline:o},mK.createElement(`legend`,{className:`sb-sr-only`},e,c?` (required)`:``),Object.keys(r).map((e,t)=>{let n=`${m}-${t}`;return mK.createElement(kY,{key:n,htmlFor:n,$readOnly:f},mK.createElement(`input`,{type:`checkbox`,disabled:f,id:n,name:n,value:e,onChange:p,checked:u?.includes(e)}),mK.createElement(OY,{$readOnly:f},e))}))},{logger:jY}=__STORYBOOK_MODULE_CLIENT_LOGGER__,MY=N.fieldset({border:`none`,marginInline:0,padding:0,display:`flex`,alignItems:`flex-start`},({isInline:e})=>e?{flexWrap:`wrap`,gap:15,label:{display:`inline-flex`}}:{flexDirection:`column`,gap:8,label:{display:`flex`}}),NY=N.span(({$readOnly:e})=>({opacity:e?.5:1})),PY=N.label(({$readOnly:e})=>({lineHeight:`20px`,alignItems:`center`,cursor:e?`not-allowed`:`pointer`,input:{cursor:e?`not-allowed`:`pointer`,margin:0,marginRight:6}})),FY=({name:e,storyId:t,controlsId:n,options:r,value:i,onChange:a,isInline:o,argType:s,required:c})=>{if(!r)return jY.warn(`Radio with no options: ${e}`),hK.createElement(hK.Fragment,null,`-`);let l=wY(i,r),u=ae(e,t,n),d=!!s?.table?.readonly;return hK.createElement(MY,{isInline:o},hK.createElement(`legend`,{className:`sb-sr-only`},e,c?` (required)`:``),Object.keys(r).map((e,t)=>{let n=`${u}-${t}`;return hK.createElement(PY,{key:n,htmlFor:n,$readOnly:d},hK.createElement(`input`,{type:`radio`,id:n,name:u,disabled:d,value:e,onChange:e=>a(r[e.currentTarget.value]),checked:e===l}),hK.createElement(NY,{$readOnly:d},e))}))},{logger:IY}=__STORYBOOK_MODULE_CLIENT_LOGGER__,LY=N.select({appearance:`none`,border:`0 none`,boxSizing:`inherit`,display:` block`,margin:` 0`,background:`transparent`,padding:0,fontSize:`inherit`,position:`relative`},({theme:e})=>({boxSizing:`border-box`,position:`relative`,padding:`6px 10px`,width:`100%`,color:e.input.color||`inherit`,background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:`20px`,"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:`none`},"&[disabled]":{cursor:`not-allowed`,opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:`auto`,padding:0,option:{display:`block`,padding:`6px 10px`,marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:`transparent`,color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),RY=N.span(({theme:e})=>({display:`inline-block`,lineHeight:`normal`,overflow:`hidden`,position:`relative`,verticalAlign:`top`,width:`100%`,svg:{position:`absolute`,zIndex:1,pointerEvents:`none`,height:`12px`,marginTop:`-6px`,right:`12px`,top:`50%`,fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),zY=`Choose option...`,BY=({name:e,storyId:t,controlsId:n,value:r,options:i,onChange:a,argType:o,required:s})=>{let c=e=>{a(i[e.currentTarget.value])},l=wY(r,i)||zY,u=ae(e,t,n),d=!!o?.table?.readonly;return gK.createElement(RY,null,gK.createElement(nt,null),gK.createElement(`label`,{htmlFor:u,className:`sb-sr-only`},e),gK.createElement(LY,{disabled:d,id:u,value:l,onChange:c,"aria-required":s||void 0},gK.createElement(`option`,{disabled:l===zY,key:`no-selection`},zY),Object.keys(i).map(e=>gK.createElement(`option`,{key:e,value:e},e))))},VY=({name:e,storyId:t,controlsId:n,value:r,options:i,onChange:a,argType:o,required:s})=>{let c=e=>{a(EY(Array.from(e.currentTarget.options).filter(e=>e.selected).map(e=>e.value),i))},l=TY(r,i),u=ae(e,t,n),d=!!o?.table?.readonly;return gK.createElement(RY,null,gK.createElement(`label`,{htmlFor:u,className:`sb-sr-only`},e),gK.createElement(LY,{disabled:d,id:u,multiple:!0,value:l,onChange:c,"aria-required":s||void 0},Object.keys(i).map(e=>gK.createElement(`option`,{key:e,value:e},e))))},HY=e=>{let{name:t,options:n}=e;return n?e.isMulti?gK.createElement(VY,{...e}):gK.createElement(BY,{...e}):(IY.warn(`Select with no options: ${t}`),gK.createElement(gK.Fragment,null,`-`))},UY=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>{let r=t!=null&&!Array.isArray(t)&&typeof t[n]==`string`?t[n]:String(n);return e[r]=n,e},{}):e,WY={check:AY,"inline-check":AY,radio:FY,"inline-radio":FY,select:HY,"multi-select":HY},GY=e=>{let{type:t=`select`,labels:n,argType:r}=e,i={...e,argType:r,options:r?UY(r.options,n):{},isInline:t.includes(`inline`),isMulti:t.includes(`multi`)},a=WY[t];if(a)return pK.createElement(a,{...i});throw Error(`Unknown options type: ${t}`)},KY=N.div(({theme:e})=>({position:`relative`,":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),qY=N.button(({theme:e})=>({padding:0,background:`transparent`,border:`none`,marginRight:`3px`,lineHeight:`22px`,color:e.color.secondary,"::after":{content:`""`,position:`absolute`,top:0,display:`block`,width:`100%`,marginLeft:`-1rem`,height:`22px`,background:`transparent`,borderRadius:4,transition:`background 0.2s`,opacity:.1,paddingRight:`20px`},"::before":{content:`""`,position:`absolute`},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:`3px solid rgba(153,153,153,0.6)`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:`3px solid transparent`,borderBottom:`3px solid transparent`,borderLeft:`3px solid rgba(153,153,153,0.6)`}})),JY=N.div({display:`inline`}),YY=`Error`,XY=`Object`,ZY=`Array`,QY=`String`,$Y=`Number`,eX=`Boolean`,tX=`Date`,nX=`Null`,rX=`Undefined`,iX=`Function`,aX=`Symbol`,oX=`ADD_DELTA_TYPE`,sX=`REMOVE_DELTA_TYPE`,cX=`UPDATE_DELTA_TYPE`,lX=`value`,uX=class extends Y.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:n}=this.props;e&&typeof e.focus==`function`&&e.focus(),n&&t&&typeof t.focus==`function`&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:n}=this.state,{addButtonElement:r,handleCancel:i}=this.props;[t,n,r].some(t=>t===e.target)&&((e.code===`Enter`||e.key===`Enter`)&&(e.preventDefault(),this.onSubmit()),(e.code===`Escape`||e.key===`Escape`)&&(e.preventDefault(),i()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:n,keyPath:r,deep:i}=this.props,{inputRefKey:a,inputRefValue:o}=this.state,s={};if(!t){if(!a.value)return;s.key=a.value}s.newValue=n(!1,r,i,s.key,o.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:n,cancelButtonElement:r,inputElementGenerator:i,keyPath:a,deep:o}=this.props,s=n&&(0,Y.cloneElement)(n,{onClick:this.onSubmit}),c=r&&(0,Y.cloneElement)(r,{onClick:e}),l=i(lX,a,o),u=(0,Y.cloneElement)(l,{placeholder:`Value`,ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let e=i(`key`,a,o);d=(0,Y.cloneElement)(e,{placeholder:`Key`,ref:this.refInputKey,onKeyDown:this.onKeydown})}return Y.createElement(`span`,{className:`rejt-add-value-node`},d,u,s,c)}},uX.defaultProps={onlyValue:!1,addButtonElement:Y.createElement(`button`,null,`+`),cancelButtonElement:Y.createElement(`button`,null,`c`)},dX=class extends Y.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data===t.data?null:{data:e.data}}onChildUpdate(e,t){let{data:n,keyPath:r=[]}=this.state;n[e]=t,this.setState({data:n});let{onUpdate:i}=this.props,a=r.length;i(r[a-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:n}=this.props,{data:r,keyPath:i,nextDeep:a}=this.state,o=r[e];(t||Promise.resolve.bind(Promise))(e,i,a,o).then(()=>{let t={keyPath:i,deep:a,key:e,oldValue:o,type:sX};r.splice(e,1),this.setState({data:r});let{onUpdate:n,onDeltaUpdate:s}=this.props;n(i[i.length-1],r),s(t)}).catch(n.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:n=[],nextDeep:r}=this.state,{beforeAddAction:i,logger:a}=this.props,o=t.length;(i||Promise.resolve.bind(Promise))(o,n,r,e).then(()=>{t[o]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:i,onDeltaUpdate:a}=this.props;i(n[n.length-1],t),a({type:oX,keyPath:n,deep:r,key:o,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((n,r)=>{let{beforeUpdateAction:i}=this.props,{data:a,keyPath:o,nextDeep:s}=this.state,c=a[e];(i||Promise.resolve.bind(Promise))(e,o,s,c,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(o[o.length-1],a),i({type:cX,keyPath:o,deep:s,key:e,newValue:t,oldValue:c}),n(void 0)}).catch(r)})}renderCollapsed(){let{name:e,data:t,keyPath:n,deep:r}=this.state,{handleRemove:i,readOnly:a,dataType:o,minusMenuElement:s}=this.props,c=a(e,t,n,r,o),l=s&&(0,Y.cloneElement)(s,{onClick:i,className:`rejt-minus-menu`,"aria-label":`remove the array '${String(e)}'`});return Y.createElement(Y.Fragment,null,Y.createElement(`span`,{className:`rejt-collapsed-value`},`[...] `,t.length,` `,t.length===1?`item`:`items`),!c&&l)}renderNotCollapsed(){let{name:e,data:t,keyPath:n,deep:r,addFormVisible:i,nextDeep:a}=this.state,{isCollapsed:o,handleRemove:s,onDeltaUpdate:c,readOnly:l,dataType:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:_,beforeAddAction:v,beforeUpdateAction:y,logger:b,onSubmitValueParser:x}=this.props,S=l(e,t,n,r,u),C=g&&(0,Y.cloneElement)(g,{onClick:this.handleAddMode,className:`rejt-plus-menu`,"aria-label":`add a new item to the '${String(e)}' array`}),w=h&&(0,Y.cloneElement)(h,{onClick:s,className:`rejt-minus-menu`,"aria-label":`remove the array '${String(e)}'`});return Y.createElement(Y.Fragment,null,Y.createElement(`span`,{className:`rejt-not-collapsed-delimiter`},`[`),!i&&C,Y.createElement(`ul`,{className:`rejt-not-collapsed-list`},t.map((e,t)=>Y.createElement(pX,{key:t,name:t.toString(),data:e,keyPath:n,deep:a,isCollapsed:o,handleRemove:this.handleRemoveItem(t),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:l,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:_,beforeAddAction:v,beforeUpdateAction:y,logger:b,onSubmitValueParser:x}))),!S&&i&&Y.createElement(`div`,{className:`rejt-add-form`},Y.createElement(uX,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,keyPath:n,deep:r,onSubmitValueParser:x})),Y.createElement(`span`,{className:`rejt-not-collapsed-delimiter`},`]`),!S&&w)}render(){let{name:e,collapsed:t,keyPath:n,deep:r}=this.state,i=t?this.renderCollapsed():this.renderNotCollapsed();return Y.createElement(mW,{name:e,collapsed:t,deep:r,keyPath:n,onClick:this.handleCollapseMode},i)}},dX.defaultProps={keyPath:[],deep:0,minusMenuElement:Y.createElement(`span`,null,` - `),plusMenuElement:Y.createElement(`span`,null,` + `)},fX=class extends Y.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value===t.value?null:{value:e.value}}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:n,value:r,keyPath:i,deep:a}=this.state,{readOnly:o,dataType:s}=this.props,c=o(n,r,i,a,s);e&&!c&&typeof t.focus==`function`&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code===`Enter`||e.key===`Enter`)&&(e.preventDefault(),this.handleEdit()),(e.code===`Escape`||e.key===`Escape`)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:n,onSubmitValueParser:r,keyPath:i}=this.props,{inputRef:a,name:o,deep:s}=this.state;if(!a)return;let c=r(!0,i,s,o,a.value),l={value:c,key:o};(e||Promise.resolve.bind(Promise))(l).then(()=>{gW(t,c)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:n,keyPath:r,deep:i}=this.state,{handleRemove:a,originalValue:o,readOnly:s,dataType:c,textareaElementGenerator:l,minusMenuElement:u,keyPath:d=[]}=this.props,f=null,p=null,m=s(e,o,r,i,c);if(n&&!m){let n=l(lX,d,i,e,o,c),r=(0,Y.cloneElement)(n,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});f=Y.createElement(`span`,{className:`rejt-edit-form`},r),p=null}else{f=Y.createElement(`span`,{className:`rejt-value`,onClick:m?void 0:this.handleEditMode},t);let n=d.at(-1),r=u&&(0,Y.cloneElement)(u,{onClick:a,className:`rejt-minus-menu`,"aria-label":`remove the function '${String(e)}'${String(n)?` from '${String(n)}'`:``}`});p=m?null:r}return Y.createElement(`li`,{className:`rejt-value-node`},Y.createElement(`span`,{className:`rejt-name`},e,` : `),f,p)}},fX.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:Y.createElement(`button`,null,`c`),minusMenuElement:Y.createElement(`span`,null,` - `)},pX=class extends Y.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data===t.data?null:{data:e.data}}render(){let{data:e,name:t,keyPath:n,deep:r}=this.state,{isCollapsed:i,handleRemove:a,handleUpdateValue:o,onUpdate:s,onDeltaUpdate:c,readOnly:l,addButtonElement:u,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:m,plusMenuElement:h,beforeRemoveAction:g,beforeAddAction:_,beforeUpdateAction:v,logger:y,onSubmitValueParser:b}=this.props,x=()=>!0,S=hW(e);switch(S){case YY:return Y.createElement(mX,{data:e,name:t,isCollapsed:i,keyPath:n,deep:r,handleRemove:a,onUpdate:s,onDeltaUpdate:c,readOnly:x,dataType:S,addButtonElement:u,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:m,plusMenuElement:h,beforeRemoveAction:g,beforeAddAction:_,beforeUpdateAction:v,logger:y,onSubmitValueParser:b});case XY:return Y.createElement(mX,{data:e,name:t,isCollapsed:i,keyPath:n,deep:r,handleRemove:a,onUpdate:s,onDeltaUpdate:c,readOnly:l,dataType:S,addButtonElement:u,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:m,plusMenuElement:h,beforeRemoveAction:g,beforeAddAction:_,beforeUpdateAction:v,logger:y,onSubmitValueParser:b});case ZY:return Y.createElement(dX,{data:e,name:t,isCollapsed:i,keyPath:n,deep:r,handleRemove:a,onUpdate:s,onDeltaUpdate:c,readOnly:l,dataType:S,addButtonElement:u,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:m,plusMenuElement:h,beforeRemoveAction:g,beforeAddAction:_,beforeUpdateAction:v,logger:y,onSubmitValueParser:b});case QY:return Y.createElement(hX,{name:t,value:`"${e}"`,originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:S,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:y,onSubmitValueParser:b});case $Y:return Y.createElement(hX,{name:t,value:e,originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:S,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:y,onSubmitValueParser:b});case eX:return Y.createElement(hX,{name:t,value:e?`true`:`false`,originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:S,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:y,onSubmitValueParser:b});case tX:return Y.createElement(hX,{name:t,value:e.toISOString(),originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:x,dataType:S,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:y,onSubmitValueParser:b});case nX:return Y.createElement(hX,{name:t,value:`null`,originalValue:`null`,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:S,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:y,onSubmitValueParser:b});case rX:return Y.createElement(hX,{name:t,value:`undefined`,originalValue:`undefined`,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:S,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:y,onSubmitValueParser:b});case iX:return Y.createElement(fX,{name:t,value:e.toString(),originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:S,cancelButtonElement:d,textareaElementGenerator:p,minusMenuElement:m,logger:y,onSubmitValueParser:b});case aX:return Y.createElement(hX,{name:t,value:e.toString(),originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:x,dataType:S,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:y,onSubmitValueParser:b});default:return null}}},pX.defaultProps={keyPath:[],deep:0},mX=class extends Y.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data===t.data?null:{data:e.data}}onChildUpdate(e,t){let{data:n,keyPath:r=[]}=this.state;n[e]=t,this.setState({data:n});let{onUpdate:i}=this.props,a=r.length;i(r[a-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:n,keyPath:r=[],nextDeep:i}=this.state,{beforeAddAction:a,logger:o}=this.props;(a||Promise.resolve.bind(Promise))(e,r,i,t).then(()=>{n[e]=t,this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:a,onDeltaUpdate:o}=this.props;a(r[r.length-1],n),o({type:oX,keyPath:r,deep:i,key:e,newValue:t})}).catch(o.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:n}=this.props,{data:r,keyPath:i=[],nextDeep:a}=this.state,o=r[e];(t||Promise.resolve.bind(Promise))(e,i,a,o).then(()=>{let t={keyPath:i,deep:a,key:e,oldValue:o,type:sX};delete r[e],this.setState({data:r});let{onUpdate:n,onDeltaUpdate:s}=this.props;n(i[i.length-1],r),s(t)}).catch(n.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((n,r)=>{let{beforeUpdateAction:i}=this.props,{data:a,keyPath:o=[],nextDeep:s}=this.state,c=a[e];(i||Promise.resolve.bind(Promise))(e,o,s,c,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(o[o.length-1],a),i({type:cX,keyPath:o,deep:s,key:e,newValue:t,oldValue:c}),n()}).catch(r)})}renderCollapsed(){let{name:e,keyPath:t,deep:n,data:r}=this.state,{handleRemove:i,readOnly:a,dataType:o,minusMenuElement:s}=this.props,c=Object.getOwnPropertyNames(r),l=a(e,r,t,n,o),u=s&&(0,Y.cloneElement)(s,{onClick:i,className:`rejt-minus-menu`,"aria-label":`remove the object '${String(e)}'`});return Y.createElement(Y.Fragment,null,Y.createElement(`span`,{className:`rejt-collapsed-value`},`{...}`,` `,c.length,` `,c.length===1?`key`:`keys`),!l&&u)}renderNotCollapsed(){let{name:e,data:t,keyPath:n,deep:r,nextDeep:i,addFormVisible:a}=this.state,{isCollapsed:o,handleRemove:s,onDeltaUpdate:c,readOnly:l,dataType:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:_,beforeAddAction:v,beforeUpdateAction:y,logger:b,onSubmitValueParser:x}=this.props,S=Object.getOwnPropertyNames(t),C=l(e,t,n,r,u),w=g&&(0,Y.cloneElement)(g,{onClick:this.handleAddMode,className:`rejt-plus-menu`,"aria-label":`add a new property to the object '${String(e)}'`}),T=h&&(0,Y.cloneElement)(h,{onClick:s,className:`rejt-minus-menu`,"aria-label":`remove the object '${String(e)}'`}),E=S.map(e=>Y.createElement(pX,{key:e,name:e,data:t[e],keyPath:n,deep:i,isCollapsed:o,handleRemove:this.handleRemoveValue(e),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:l,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:_,beforeAddAction:v,beforeUpdateAction:y,logger:b,onSubmitValueParser:x}));return Y.createElement(Y.Fragment,null,Y.createElement(`span`,{className:`rejt-not-collapsed-delimiter`},`{`),!C&&w,Y.createElement(`ul`,{className:`rejt-not-collapsed-list`},E),!C&&a&&Y.createElement(`div`,{className:`rejt-add-form`},Y.createElement(uX,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,keyPath:n,deep:r,onSubmitValueParser:x})),Y.createElement(`span`,{className:`rejt-not-collapsed-delimiter`},`}`),!C&&T)}render(){let{name:e,collapsed:t,keyPath:n,deep:r=0}=this.state,i=t?this.renderCollapsed():this.renderNotCollapsed();return Y.createElement(mW,{name:e,collapsed:t,deep:r,keyPath:n,onClick:this.handleCollapseMode},i)}},mX.defaultProps={keyPath:[],deep:0,minusMenuElement:Y.createElement(`span`,null,` - `),plusMenuElement:Y.createElement(`span`,null,` + `)},hX=class extends Y.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value===t.value?null:{value:e.value}}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:n,value:r,keyPath:i,deep:a}=this.state,{readOnly:o,dataType:s}=this.props,c=o(n,r,i,a,s);e&&!c&&typeof t.focus==`function`&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code===`Enter`||e.key===`Enter`)&&(e.preventDefault(),this.handleEdit()),(e.code===`Escape`||e.key===`Escape`)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:n,onSubmitValueParser:r,keyPath:i}=this.props,{inputRef:a,name:o,deep:s}=this.state;if(!a)return;let c=r(!0,i,s,o,a.value),l={value:c,key:o};(e||Promise.resolve.bind(Promise))(l).then(()=>{gW(t,c)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:n,keyPath:r,deep:i}=this.state,{handleRemove:a,originalValue:o,readOnly:s,dataType:c,inputElementGenerator:l,minusMenuElement:u,keyPath:d}=this.props,f=s(e,o,r,i,c),p=n&&!f,m=l(lX,d,i,e,o,c),h=(0,Y.cloneElement)(m,{ref:this.refInput,defaultValue:JSON.stringify(o),onKeyDown:this.onKeydown}),g=r.at(-2),_=u&&(0,Y.cloneElement)(u,{onClick:a,className:`rejt-minus-menu`,"aria-label":`remove the property '${String(e)}' with value '${String(o)}'${String(g)?` from '${String(g)}'`:``}`});return Y.createElement(`li`,{className:`rejt-value-node`},Y.createElement(`span`,{className:`rejt-name`},e,` : `),p?Y.createElement(`span`,{className:`rejt-edit-form`},h):Y.createElement(`span`,{className:`rejt-value`,onClick:f?void 0:this.handleEditMode},String(t)),!f&&!p&&_)}},hX.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:Y.createElement(`button`,null,`c`),minusMenuElement:Y.createElement(`span`,null,` - `)},gX=class extends _K.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate?.(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:n,onDeltaUpdate:r,readOnly:i,addButtonElement:a,cancelButtonElement:o,inputElement:s,textareaElement:c,minusMenuElement:l,plusMenuElement:u,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:p,logger:m,onSubmitValueParser:h,fallback:g=null}=this.props,_=hW(e),v=i;hW(i)===`Boolean`&&(v=()=>i);let y=s;s&&hW(s)!==`Function`&&(y=()=>s);let b=c;return c&&hW(c)!==`Function`&&(b=()=>c),_===`Object`||_===`Array`?_K.createElement(`div`,{className:`rejt-tree`},_K.createElement(pX,{data:e,name:t||`root`,deep:-1,isCollapsed:n??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:r??(()=>{}),readOnly:v,addButtonElement:a,cancelButtonElement:o,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:l,plusMenuElement:u,handleRemove:this.removeRoot,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:p,logger:m??{},onSubmitValueParser:h??(e=>e)})):g}},gX.defaultProps={rootName:`root`,isCollapsed:(e,t)=>t!==-1,readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,n,r,i)=>_W(i),inputElement:()=>_K.createElement(`input`,null),textareaElement:()=>_K.createElement(`textarea`,null),fallback:null},{window:_X}=globalThis,vX=N.div(({theme:e})=>({position:`relative`,display:`flex`,isolation:`isolate`,gap:8,".rejt-tree":{flex:1,marginLeft:`1rem`,fontSize:`13px`,listStyleType:`none`},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:`inline-flex`,alignItems:`center`},".rejt-name":{color:e.color.secondary,lineHeight:`22px`},".rejt-not-collapsed-list":{listStyle:`none`,margin:`0 0 0 1rem`,padding:0},".rejt-not-collapsed-delimiter":{lineHeight:`22px`},".rejt-value":{display:`inline-block`,border:`1px solid transparent`,borderRadius:4,margin:`1px 0`,padding:`0 4px`,cursor:`text`,color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base===`light`?e.color.lighter:`hsl(0 0 100 / 0.02)`,borderColor:e.appBorderColor},".rejt-collapsed-value":{color:e.color.defaultText}})),yX=N.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:`transparent`,color:t?e.color.lightest:e.color.dark,fontWeight:t?`bold`:`normal`,cursor:`pointer`})),bX=N.button(({theme:e})=>({background:`none`,border:0,display:`inline-flex`,verticalAlign:`middle`,padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:`opacity 0.2s`,cursor:`pointer`,position:`relative`,svg:{width:9,height:9},":disabled":{cursor:`not-allowed`},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),xX=N.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:`1px 0`,padding:`3px 4px`,color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:`14px`,width:t===`Key`?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),SX=N(GI)({alignSelf:`flex-start`,order:2,marginRight:-10}),CX=N(QR.Textarea)(({theme:e})=>({flex:1,padding:`7px 6px`,fontFamily:e.typography.fonts.mono,fontSize:`12px`,lineHeight:`18px`,"&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:`13px`},"&:placeholder-shown":{padding:`7px 10px`}})),wX={bubbles:!0,cancelable:!0,key:`Enter`,code:`Enter`,keyCode:13},TX=e=>{e.currentTarget.dispatchEvent(new _X.KeyboardEvent(`keydown`,wX))},EX=e=>{e.currentTarget.select()},DX=({name:e,storyId:t,controlsId:n,value:r,onChange:i,argType:a,required:o})=>{let s=(0,J.useMemo)(()=>r&&IU(r),[r]),c=s!=null,[l,u]=(0,J.useState)(!c),d=(0,J.useRef)(c),[f,p]=(0,J.useState)(null),m=!!a?.table?.readonly,h=(0,J.useCallback)(e=>{try{e&&i(JSON.parse(e)),p(null)}catch(e){p(e)}},[i]),[g,_]=(0,J.useState)(!1),v=(0,J.useCallback)(()=>{i({}),_(!0)},[i,_]);(0,J.useEffect)(()=>{!d.current&&c&&l&&!g&&u(!1),d.current=c},[g,c,l]);let y=(0,J.useRef)(null);(0,J.useEffect)(()=>{g&&y.current&&y.current.select()},[g]);let b=(0,J.useMemo)(()=>JSON.stringify(s??``,null,2),[s]);if(!c)return J.createElement(HI,{ariaLabel:!1,disabled:m,id:re(e,t,n),onClick:v},`Set object`);let x=ae(e,t,n),S=J.createElement(J.Fragment,null,J.createElement(`label`,{htmlFor:x,className:`sb-sr-only`},`Edit `,e,` as JSON`),J.createElement(CX,{ref:y,id:x,minRows:3,name:e,key:b,defaultValue:b,onBlur:e=>h(e.target.value),placeholder:`Edit JSON string...`,autoFocus:g,valid:f?`error`:void 0,readOnly:m,"aria-required":o||void 0})),C=Array.isArray(r)||typeof r==`object`&&r?.constructor===Object;return J.createElement(vX,null,C&&J.createElement(SX,{disabled:m,pressed:l,ariaLabel:`Edit ${e} as JSON`,onClick:e=>{e.preventDefault(),u(e=>!e)},variant:`ghost`,padding:`small`,size:`small`},J.createElement(Ge,null)),l?S:J.createElement(gX,{readOnly:m||!C,isCollapsed:C?void 0:()=>!0,data:s,rootName:e,onFullyUpdate:i,cancelButtonElement:J.createElement(yX,{type:`button`},`Cancel`),addButtonElement:J.createElement(yX,{type:`submit`,primary:!0},`Save`),plusMenuElement:J.createElement(bX,{type:`button`},J.createElement(qe,null)),minusMenuElement:J.createElement(bX,{type:`button`},J.createElement(Je,null)),inputElement:(e,t,n,r)=>r?J.createElement(xX,{onFocus:EX,onBlur:TX}):J.createElement(xX,null),fallback:S}))},OX=N.input(({theme:e,min:t,max:n,value:r,disabled:i})=>{let a={background:e.base===`light`?`linear-gradient(to right,
|
|
266
|
+
${e.color.green} 0%, ${e.color.green} ${(r-t)/(n-t)*100}%,
|
|
267
|
+
${mU(.02,e.input.background)} ${(r-t)/(n-t)*100}%,
|
|
268
|
+
${mU(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
269
|
+
${e.color.green} 0%, ${e.color.green} ${(r-t)/(n-t)*100}%,
|
|
270
|
+
${hU(.02,e.input.background)} ${(r-t)/(n-t)*100}%,
|
|
271
|
+
${hU(.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:kH(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 ${kH(e.appBorderColor,.2)}`:`unset`,transition:`all 150ms ease-out`},c={background:`${mU(.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`}}}}),kX=N.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:`nowrap`,fontFeatureSettings:`tnum`,fontVariantNumeric:`tabular-nums`}),AX=N(kX)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:`right`,flexShrink:0})),jX=N.div(({readOnly:e})=>({display:`flex`,alignItems:`center`,width:`100%`,opacity:e?.5:1})),MX=({name:e,storyId:t,controlsId:n,value:r,onChange:i,min:a=0,max:o=100,step:s=1,onBlur:c,onFocus:l,argType:u,required:d})=>{let f=e=>{i(bY(e.target.value))},p=r!==void 0,m=(0,yK.useMemo)(()=>vW(s),[s]),h=!!u?.table?.readonly,g=ae(e,t,n);return yK.createElement(jX,{readOnly:h},yK.createElement(`label`,{htmlFor:g,className:`sb-sr-only`},e),yK.createElement(kX,null,a),yK.createElement(OX,{id:g,type:`range`,disabled:h,onChange:f,"aria-required":d||void 0,name:e,min:a,max:o,step:s,onFocus:l,onBlur:c,value:r??a}),yK.createElement(AX,{numberOFDecimalsPlaces:m,max:o},p?r.toFixed(m):`--`,` / `,o))},NX=N.label({display:`flex`}),PX=N.div(({isMaxed:e})=>({marginLeft:`0.75rem`,paddingTop:`0.35rem`,color:e?`red`:void 0})),FX=({name:e,storyId:t,controlsId:n,value:r,onChange:i,onFocus:a,onBlur:o,maxLength:s,argType:c,required:l})=>{let u=e=>{i(e.target.value)},d=!!c?.table?.readonly,[f,p]=(0,bK.useState)(!1),m=(0,bK.useCallback)(()=>{i(``),p(!0)},[p]);if(r===void 0)return bK.createElement(HI,{ariaLabel:!1,variant:`outline`,size:`medium`,disabled:d,id:re(e,t,n),onClick:m},`Set string`);let h=typeof r==`string`;return bK.createElement(NX,null,bK.createElement(QR.Textarea,{id:ae(e,t,n),maxLength:s,onChange:u,disabled:d,size:`flex`,placeholder:`Edit string...`,autoFocus:f,"aria-required":l||void 0,valid:h?void 0:`error`,name:e,value:h?r:``,onFocus:a,onBlur:o}),s&&bK.createElement(PX,{isMaxed:r?.length===s},r?.length??0,` / `,s))},IX=N(QR.Input)({padding:10}),LX=({onChange:e,name:t,storyId:n,controlsId:r,accept:i=`image/*`,value:a,argType:o,required:s})=>{let c=(0,xK.useRef)(null),l=o?.control?.readOnly;function u(t){t.target.files&&(e(Array.from(t.target.files).map(e=>URL.createObjectURL(e))),yW(a||[]))}(0,xK.useEffect)(()=>{a==null&&c.current&&(c.current.value=``)},[a,t]);let d=ae(t,n,r);return xK.createElement(xK.Fragment,null,xK.createElement(`label`,{htmlFor:d,className:`sb-sr-only`},t),xK.createElement(IX,{ref:c,id:d,type:`file`,name:t,multiple:!0,disabled:l,onChange:u,accept:i,"aria-required":s||void 0,size:`flex`}))},RX=(0,lK.lazy)(()=>a(()=>import(`./Color-6AOWCN3U-Dzuzn5Yr.js`),__vite__mapDeps([15,1,2,7,8,9,3,10,16,0,4]),import.meta.url)),zX=e=>lK.createElement(lK.Suspense,{fallback:lK.createElement(`div`,null)},lK.createElement(RX,{...e})),BX={array:DX,object:DX,boolean:dY,color:zX,date:vY,number:SY,check:GY,"inline-check":GY,radio:GY,"inline-radio":GY,select:GY,"multi-select":GY,range:MX,text:FX,file:LX},VX=()=>cK.createElement(cK.Fragment,null,`-`),HX=({row:e,arg:t,updateArgs:n,isRequired:r,storyId:i,controlsId:a})=>{let{key:o,control:s}=e,[c,l]=(0,cK.useState)(!1),[u,d]=(0,cK.useState)({value:t});(0,cK.useEffect)(()=>{c||d({value:t})},[c,t]);let f=(0,cK.useCallback)(e=>(d({value:e}),n({[o]:e}),e),[n,o]),p=(0,cK.useCallback)(()=>l(!1),[]),m=(0,cK.useCallback)(()=>l(!0),[]);if(!s||s.disable)return s?.disable!==!0&&e?.type?.name!==`function`?cK.createElement(cK.Fragment,null,cK.createElement(`span`,{className:`sbdocs sbdocs-argcontrol-setup`},cK.createElement(NM,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},`Setup controls`)),cK.createElement(`span`,{className:`sbdocs sbdocs-argcontrol-placeholder`},cK.createElement(VX,null))):cK.createElement(VX,null);let h={name:o,storyId:i,controlsId:a,argType:e,value:u.value,required:r,onChange:f,onBlur:p,onFocus:m},g=BX[s.type]||VX;return cK.createElement(g,{...h,...s,controlType:s.type})},UX=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:Uj({theme:e}),div:{span:{fontWeight:`bold`}},"& code":{margin:0,display:`inline-block`,fontSize:e.typography.size.s1}}})),WX=({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:SK.createElement(SK.Fragment,null,SK.createElement(UX,null,SK.createElement(`tbody`,null,r&&SK.createElement(`tr`,{key:`deprecated`},SK.createElement(`td`,{colSpan:2},SK.createElement(`strong`,null,`Deprecated`),`: `,e.deprecated?.toString())),n&&t.map(e=>SK.createElement(`tr`,{key:e.name},SK.createElement(`td`,null,SK.createElement(`code`,null,e.name)),SK.createElement(`td`,null,e.description))),i&&SK.createElement(`tr`,{key:`returns`},SK.createElement(`td`,null,SK.createElement(`code`,null,`Returns`)),SK.createElement(`td`,null,e.returns?.description)))))},GX=8,KX=N.div(({isExpanded:e})=>({display:`flex`,flexDirection:e?`column`:`row`,flexWrap:`wrap`,alignItems:`flex-start`,marginBottom:`-4px`,minWidth:100})),qX=N.details({display:`flex`,flexDirection:`column`,summary:{order:2},"summary::-webkit-details-marker":{display:`none`},"summary::marker":{content:`none`}}),JX=N.div({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,alignItems:`flex-start`}),YX=N.span(Uj,({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}})),XX=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`})),ZX=N.button(Uj,({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`}})),QX=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`}})),$X=N(tt)({marginLeft:4}),eZ=N(nt)({marginLeft:4}),tZ=()=>CK.createElement(`span`,null,`-`),nZ=({text:e,simple:t})=>CK.createElement(YX,{simple:t},e),rZ=e=>e?bW(e.split(`|`).map(e=>e.trim())):[e],iZ=e=>e.slice(0,GX).map(e=>CK.createElement(nZ,{key:e,text:e===``?`""`:e})),aZ=e=>e.slice(GX).map(e=>CK.createElement(nZ,{key:e,text:e===``?`""`:e})),oZ=({value:e,initialExpandedArgs:t})=>{let{summary:n,detail:r}=e,[i,a]=(0,CK.useState)(!1),[o,s]=(0,CK.useState)(t||!1);if(n==null)return null;let c=typeof n.toString==`function`?n.toString():n;if(r==null){if(/[(){}[\]<>]/.test(c))return CK.createElement(nZ,{text:c});let e=rZ(c),t=e.length;return t>GX?CK.createElement(KX,{isExpanded:o},iZ(e),CK.createElement(qX,{open:o,onToggle:e=>s(e.currentTarget.open)},CK.createElement(JX,null,aZ(e)),CK.createElement(XX,{role:`button`},o?`Show less...`:`Show ${t-GX} more...`))):CK.createElement(KX,null,iZ(e))}return CK.createElement(mB,{ariaLabel:`Arg value details`,placement:`bottom`,visible:i,onVisibleChange:e=>{a(e)},hasCloseButton:!0,popover:CK.createElement(QX,null,CK.createElement(eM,{language:`jsx`,format:!1},r))},CK.createElement(ZX,{className:`sbdocs-expandable`},CK.createElement(`span`,null,c),i?CK.createElement($X,null):CK.createElement(eZ,null)))},sZ=({value:e,initialExpandedArgs:t})=>e==null?CK.createElement(tZ,null):CK.createElement(oZ,{value:e,initialExpandedArgs:t}),cZ=N.span({fontWeight:`bold`}),lZ=N.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:`help`})),uZ=N.div(({theme:e})=>({"&&":{p:{margin:`0 0 10px 0`},a:{color:e.color.secondary}},code:{...Uj({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:`inline-block`},"& pre > code":{whiteSpace:`pre-wrap`}})),dZ=N.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?vU(.1,e.color.defaultText):vU(.2,e.color.defaultText),marginTop:t?4:0})),fZ=N.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?vU(.1,e.color.defaultText):vU(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),pZ=N.td(({expandable:e})=>({paddingLeft:e?`40px !important`:`20px !important`})),mZ=N.tr({"span.sbdocs-argcontrol-setup":{...he},"&:hover, &:focus-within":{"span.sbdocs-argcontrol-setup":{...be},"span.sbdocs-argcontrol-placeholder":{...he}}}),hZ=e=>e&&{summary:typeof e==`string`?e:e.name},gZ=e=>{let{row:t,updateArgs:n,compact:r,expandable:i,initialExpandedArgs:a,docsLang:o}=e,{name:s,description:c}=t,l=t.table||{},u=l.type||hZ(t.type),d=l.defaultValue||t.defaultValue,f=t.type?.required,p=c!=null&&c!==``;return oK.createElement(mZ,null,oK.createElement(pZ,{expandable:i??!1},oK.createElement(cZ,null,s),f?oK.createElement(lZ,{"aria-hidden":!0,title:`Required`},`*`):null),r?null:oK.createElement(`td`,null,p&&oK.createElement(uZ,{lang:o},oK.createElement(sY,null,c)),l.jsDocTags==null?oK.createElement(dZ,{hasDescription:p},oK.createElement(sZ,{value:u,initialExpandedArgs:a})):oK.createElement(oK.Fragment,null,oK.createElement(fZ,{hasDescription:p},oK.createElement(sZ,{value:u,initialExpandedArgs:a})),oK.createElement(WX,{tags:l.jsDocTags}))),r?null:oK.createElement(`td`,null,oK.createElement(sZ,{value:d,initialExpandedArgs:a})),n?oK.createElement(`td`,null,oK.createElement(HX,{...e,isRequired:!!f})):null)},_Z=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})),vZ=N.div(({theme:e})=>({display:`flex`,fontSize:e.typography.size.s2-1,gap:25})),yZ=({inAddonPanel:e})=>{let[t,n]=(0,wK.useState)(!0);return(0,wK.useEffect)(()=>{let e=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(e)},[]),t?null:wK.createElement(_Z,{inAddonPanel:e},wK.createElement($B,{title:`This story has no controls`,description:wK.createElement(wK.Fragment,null,`Storybook couldn't find or generate any controls for this story. Define`,` `,wK.createElement(`code`,null,`args`),` or `,wK.createElement(`code`,null,`argTypes`),`, or configure docgen to let Storybook generate controls automatically.`),footer:wK.createElement(vZ,null,wK.createElement(NM,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},wK.createElement(He,null),` Read docs`))}))},bZ=N($e)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?vU(.25,e.color.defaultText):vU(.3,e.color.defaultText),border:`none`,display:`inline-block`})),xZ=N(et)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?vU(.25,e.color.defaultText):vU(.3,e.color.defaultText),border:`none`,display:`inline-block`})),SZ=N.span(({theme:e})=>({display:`flex`,lineHeight:`20px`,alignItems:`center`})),CZ=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`?vU(.4,e.color.defaultText):vU(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),wZ=N.td(({theme:e})=>({position:`relative`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),TZ=N.td({position:`relative`}),EZ=N.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${hU(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:`row-resize`}})),DZ=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`}),OZ=({level:e=`section`,label:t,children:n,initialExpanded:r=!0,colSpan:i=3})=>{let[a,o]=(0,TK.useState)(r),s=e===`subsection`?wZ:CZ,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 TK.createElement(TK.Fragment,null,TK.createElement(EZ,{title:u},TK.createElement(s,{colSpan:1},TK.createElement(DZ,{onClick:e=>o(!a),tabIndex:0},u),TK.createElement(SZ,null,a?TK.createElement(bZ,null):TK.createElement(xZ,null),t)),TK.createElement(TZ,{colSpan:i-1},TK.createElement(DZ,{onClick:e=>o(!a),tabIndex:-1,style:{outline:`none`}},u),a?null:l)),a?n:null)},kZ=N.div(({theme:e})=>({width:`100%`,borderSpacing:0,color:e.color.defaultText})),AZ=N.div(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),jZ=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}}}),MZ=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})),NZ=()=>X.createElement(kZ,null,X.createElement(AZ,null,X.createElement(jZ,{position:`first`},X.createElement(MZ,{width:`60%`})),X.createElement(jZ,{position:`second`},X.createElement(MZ,{width:`30%`})),X.createElement(jZ,{position:`third`},X.createElement(MZ,{width:`60%`})),X.createElement(jZ,{position:`last`},X.createElement(MZ,{width:`60%`}))),X.createElement(AZ,null,X.createElement(jZ,{position:`first`},X.createElement(MZ,{width:`60%`})),X.createElement(jZ,{position:`second`},X.createElement(MZ,{width:`80%`}),X.createElement(MZ,{width:`30%`})),X.createElement(jZ,{position:`third`},X.createElement(MZ,{width:`60%`})),X.createElement(jZ,{position:`last`},X.createElement(MZ,{width:`60%`}))),X.createElement(AZ,null,X.createElement(jZ,{position:`first`},X.createElement(MZ,{width:`60%`})),X.createElement(jZ,{position:`second`},X.createElement(MZ,{width:`80%`}),X.createElement(MZ,{width:`30%`})),X.createElement(jZ,{position:`third`},X.createElement(MZ,{width:`60%`})),X.createElement(jZ,{position:`last`},X.createElement(MZ,{width:`60%`}))),X.createElement(AZ,null,X.createElement(jZ,{position:`first`},X.createElement(MZ,{width:`60%`})),X.createElement(jZ,{position:`second`},X.createElement(MZ,{width:`80%`}),X.createElement(MZ,{width:`30%`})),X.createElement(jZ,{position:`third`},X.createElement(MZ,{width:`60%`})),X.createElement(jZ,{position:`last`},X.createElement(MZ,{width:`60%`})))),PZ=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`}}}}})),FZ=N.div({position:`relative`}),IZ=N.div({position:`absolute`,right:22,top:10}),LZ=N(HI)({margin:`-4px -12px -4px 0`}),RZ={alpha:(e,t)=>(e.name??``).localeCompare(t.name??``),requiredFirst:(e,t)=>+!!t.type?.required-!!e.type?.required||(e.name??``).localeCompare(t.name??``),none:null},zZ=(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=RZ[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)}}),{})}},BZ=(e,t,n)=>{try{return tm(e,t,n)}catch(e){return bq.warn(e.message),!1}},VZ=e=>{let{updateArgs:t,resetArgs:n,compact:r,inAddonPanel:i,inTabPanel:a,initialExpandedArgs:o,sort:s=`none`,isLoading:c,storyId:l,controlsId:u,docsLang:d}=e,{rows:f,args:p,globals:m}=`rows`in e?e:{rows:void 0,args:void 0,globals:void 0},h=(0,q.useRef)(!1),[g,_]=(0,q.useState)(!1);(0,q.useEffect)(()=>{h.current=!1,_(!1)},[p]);let v=(0,q.useCallback)(()=>{!h.current&&n&&(h.current=!0,_(!0),n())},[n]);if(`error`in e){let{error:t}=e;return q.createElement(bU,null,t,`\xA0`,q.createElement(NM,{href:`http://storybook.js.org/docs/?ref=ui`,target:`_blank`,withArrow:!0},q.createElement(He,null),` Read the docs`))}if(c)return q.createElement(NZ,null);let y=zZ(LU(f||{},e=>!e?.table?.disable&&BZ(e,p||{},m||{})),s),b=y.ungrouped.length===0,x=Object.entries(y.sections).length===0,S=Object.entries(y.ungroupedSubsections).length===0;if(b&&x&&S)return q.createElement(yZ,{inAddonPanel:i});let C=1;t&&(C+=1),r||(C+=2);let w=Object.keys(y.sections).length>0,T={updateArgs:t,compact:r,inAddonPanel:i,initialExpandedArgs:o,storyId:l,controlsId:u};return q.createElement(Kj,null,q.createElement(FZ,null,t&&!c&&n&&q.createElement(IZ,null,q.createElement(LZ,{variant:`ghost`,padding:`small`,onClick:v,disabled:g,ariaLabel:g?`Resetting controls...`:`Reset controls`,lang:`en`},q.createElement(at,null))),q.createElement(PZ,{compact:r,inAddonPanel:i,inTabPanel:a,className:`docblock-argstable sb-unstyled`,lang:`en`},q.createElement(`thead`,{className:`docblock-argstable-head`},q.createElement(`tr`,null,q.createElement(`th`,null,q.createElement(`span`,null,`Name`)),r?null:q.createElement(`th`,null,q.createElement(`span`,null,`Description`)),r?null:q.createElement(`th`,null,q.createElement(`span`,null,`Default`)),t?q.createElement(`th`,null,q.createElement(`span`,null,`Control`)):null)),q.createElement(`tbody`,{className:`docblock-argstable-body`},y.ungrouped.map(e=>q.createElement(gZ,{key:e.key,row:e,arg:p&&p[e.key],docsLang:d,...T})),Object.entries(y.ungroupedSubsections).map(([e,t])=>q.createElement(OZ,{key:e,label:e,level:`subsection`,colSpan:C},t.map(e=>q.createElement(gZ,{key:e.key,row:e,arg:p&&p[e.key],expandable:w,...T})))),Object.entries(y.sections).map(([e,t])=>q.createElement(OZ,{key:e,label:e,level:`section`,colSpan:C},t.ungrouped.map(e=>q.createElement(gZ,{key:e.key,row:e,arg:p&&p[e.key],...T})),Object.entries(t.subsections).map(([e,t])=>q.createElement(OZ,{key:e,label:e,level:`subsection`,colSpan:C},t.map(e=>q.createElement(gZ,{key:e.key,row:e,arg:p&&p[e.key],expandable:w,...T}))))))))))},HZ=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,UZ=600,WZ=N.h1(({theme:e})=>({...Wj({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:`32px`,[`@media (min-width: ${UZ}px)`]:{fontSize:e.typography.size.l1,lineHeight:`36px`,marginBottom:`16px`}})),GZ=N.h2(({theme:e})=>({...Wj({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:`20px`,borderBottom:`none`,marginBottom:15,[`@media (min-width: ${UZ}px)`]:{fontSize:e.typography.size.m1,lineHeight:`28px`,marginBottom:24},color:vU(.25,e.color.defaultText)})),KZ=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`?vU(.1,e.color.defaultText):vU(.3,e.color.defaultText),backgroundColor:e.base===`light`?e.color.lighter:e.color.border};return{maxWidth:1e3,width:`100%`,minWidth:0,flex:1,[HZ(`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`}},[HZ(`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}},[HZ(`div`)]:t,[HZ(`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}},[HZ(`h1`)]:{...t,...n,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[HZ(`h2`)]:{...t,...n,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[HZ(`h3`)]:{...t,...n,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[HZ(`h4`)]:{...t,...n,fontSize:`${e.typography.size.s3}px`},[HZ(`h5`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`},[HZ(`h6`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[HZ(`hr`)]:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[HZ(`img`)]:{maxWidth:`100%`},[HZ(`li`)]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":r},[HZ(`ol`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[HZ(`p`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":r},[HZ(`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`}},[HZ(`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`}}},[HZ(`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}},[HZ(`ul`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:`disc`}}}),qZ=N.div(({theme:e})=>({background:e.background.content,display:`flex`,flexDirection:`row-reverse`,justifyContent:`center`,padding:`4rem 40px`,minHeight:`100vh`,boxSizing:`border-box`,gap:`3rem`,[`@media (min-width: ${UZ}px)`]:{}})),JZ=({children:e,toc:t,lang:n=`en`})=>EK.createElement(qZ,{className:`sbdocs sbdocs-wrapper`},t,EK.createElement(KZ,{className:`sbdocs sbdocs-content`,lang:n},e)),{logger:YZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__,XZ=typeof document<`u`?DK.useLayoutEffect:()=>{},ZZ={prefix:String(Math.round(Math.random()*1e10)),current:0},QZ=kK.createContext(ZZ),$Z=kK.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,eQ=new WeakMap,tQ=typeof kK.useId==`function`?CW:SW,nQ=!!(typeof window<`u`&&window.document&&window.document.createElement),rQ=new Map,typeof FinalizationRegistry<`u`&&(iQ=new FinalizationRegistry(e=>{rQ.delete(e)})),aQ=null,oQ=FW(function(){return PW(/^Mac/i)}),sQ=FW(function(){return PW(/^iPad/i)||oQ()&&navigator.maxTouchPoints>1}),cQ=FW(function(){return NW(/AppleWebKit/i)&&!lQ()}),lQ=FW(function(){return NW(/Chrome/i)}),uQ=FW(function(){return NW(/Firefox/i)}),(0,AK.createContext)({isNative:!0,open:RW,useHref:e=>e}),IW.isOpening=!1,dQ=new Map,fQ=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,zW):zW()),jK.useInsertionEffect,typeof document<`u`&&window.visualViewport,typeof Element<`u`&&`checkVisibility`in Element.prototype,pQ=[`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`],pQ.join(`:not([hidden]),`)+``,pQ.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),pQ.join(`:not([hidden]):not([tabindex="-1"]),`),typeof document<`u`&&(MK.useInsertionEffect??MK.useLayoutEffect),globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=(0,NK.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName=`DocsContext`),mQ=globalThis?globalThis.__DOCS_CONTEXT__:(0,NK.createContext)(null),{InvalidBlockOfPropError:hQ}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,gQ=Symbol(`mdxWrappedBlock`),_Q=IK.createContext(null),vQ=(e,t)=>{let n=r=>{let i=IK.useContext(_Q),a=te()[e];if(i?.has(e)||a===n)return IK.createElement(t,{...r});if(a){let t=new Set(i??[]);return t.add(e),IK.createElement(_Q.Provider,{value:t},IK.createElement(a,{...r}))}return IK.createElement(t,{...r})};return n.displayName=e,n[gQ]=!0,n},yQ=(e,t)=>{let{of:n,meta:r}=e;if(`of`in e&&n===void 0)throw new hQ;return r&&t.referenceMeta(r,!1),t.resolveOf(n||`story`,[`story`]).story.id},bQ=(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}},xQ=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=(0,PK.useContext)(mQ),n=BW(yQ(e,t),t);if(!n)return PK.createElement(NQ,null);let r=bQ(e,n,t);return r?PK.createElement(MQ,{...r}):null},SQ=vQ(`Story`,xQ),CQ=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}`}),wQ=(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:TQ}=globalThis,EQ=class extends RK.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=TQ.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 RK.createElement(`iframe`,{id:e,title:t,src:n,...r?{allow:`fullscreen`}:{},loading:`lazy`,...a})}},DQ=(0,zK.createContext)({scale:1}),OQ=({story:e,primary:t})=>`story--${e.id}${t?`--primary`:``}`,kQ=e=>{let t=(0,LK.useRef)(),[n,r]=(0,LK.useState)(!0),[i,a]=(0,LK.useState)(),{story:o,height:s,autoplay:c,forceInitialArgs:l,renderStoryToElement:u}=e;return(0,LK.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?LK.createElement(`pre`,null,LK.createElement(fR,{error:i})):LK.createElement(LK.Fragment,null,s?LK.createElement(`style`,null,`#${OQ(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,n&&LK.createElement(NQ,null),LK.createElement(`div`,{ref:t,id:`${OQ(e)}-inner`,"data-name":o.name,lang:o.parameters?.htmlLang||`en`}))},AQ=({story:e,height:t=`500px`})=>LK.createElement(`div`,{style:{width:`100%`,height:t}},LK.createElement(DQ.Consumer,null,({scale:t})=>LK.createElement(EQ,{key:`iframe`,id:`iframe--${e.id}`,title:e.name,src:wQ(e.id,{viewMode:`story`}),allowFullScreen:!0,scale:t,style:{width:`100%`,height:`100%`,border:`0 none`}}))),jQ=N.strong(({theme:e})=>({color:e.color.orange})),MQ=e=>{let{inline:t,story:n}=e;return t&&!e.autoplay&&n.usesMount?LK.createElement(jQ,null,`This story mounts inside of play. Set`,` `,LK.createElement(`a`,{href:`https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay`},`autoplay`),` `,`to true to view this story.`):LK.createElement(`div`,{id:OQ(e),className:`sb-story sb-unstyled`,"data-story-block":`true`},t?LK.createElement(kQ,{...e}):LK.createElement(AQ,{...e}))},NQ=()=>LK.createElement(QV,null),PQ=N(gV)({position:`absolute`,left:0,right:0,top:0,transition:`transform .2s linear`,display:`flex`,alignItems:`center`}),FQ=N.div({display:`flex`,alignItems:`center`,gap:4}),IQ=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`})),LQ=({isLoading:e,storyId:t,zoom:n,resetZoom:r,onReloadStory:i,...a})=>BK.createElement(PQ,{innerStyle:{gap:4,paddingInline:7,justifyContent:`space-between`},lang:`en`,...a},BK.createElement(FQ,{key:`left`},e?[1,2,3].map(e=>BK.createElement(IQ,{key:e})):BK.createElement(BK.Fragment,null,i&&BK.createElement(HI,{padding:`small`,variant:`ghost`,key:`reload`,onClick:i,ariaLabel:`Reload story`},BK.createElement(ot,null)),BK.createElement(HI,{padding:`small`,variant:`ghost`,key:`zoomin`,onClick:e=>{e.preventDefault(),n(.8)},ariaLabel:`Zoom in`},BK.createElement(Re,null)),BK.createElement(HI,{padding:`small`,variant:`ghost`,key:`zoomout`,onClick:e=>{e.preventDefault(),n(1.25)},ariaLabel:`Zoom out`},BK.createElement(ze,null)),BK.createElement(HI,{padding:`small`,variant:`ghost`,key:`zoomreset`,onClick:e=>{e.preventDefault(),r()},ariaLabel:`Reset zoom`},BK.createElement(Be,null)))),e?BK.createElement(FQ,{key:`right`},BK.createElement(IQ,null)):t&&BK.createElement(FQ,{key:`right`},BK.createElement(HI,{asChild:!0,padding:`small`,variant:`ghost`,key:`opener`,ariaLabel:`Open canvas in new tab`},BK.createElement(`a`,{href:wQ(t),target:`_blank`,rel:`noopener noreferrer`},BK.createElement(Qe,null))))),RQ=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)`}}:{}),zQ=N(LB)({marginTop:-40,marginBottom:40}),BQ=N(TU)(({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)`:mU(.05,e.background.content),color:e.color.lightest,button:{background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:mU(.05,e.background.content)}})),VQ=N.div(({theme:e})=>({position:`relative`,overflow:`hidden`,margin:`25px 0 40px`,...CQ(e),"h3 + &":{marginTop:`16px`}}),({withToolbar:e})=>e&&{paddingTop:40}),HQ=N(LQ)({position:`absolute`,top:0,left:0,right:0,height:40}),UQ=2e3,WQ=({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=OW(),S=[l,`sbdocs`,`sbdocs-preview`,`sb-unstyled`],C=(0,Z.useContext)(mQ),w=(0,Z.useCallback)(async e=>{let{createCopyToClipboardFunction:t}=await a(async()=>{let{createCopyToClipboardFunction:e}=await Promise.resolve().then(()=>(rH(),aS));return{createCopyToClipboardFunction:e}},void 0,import.meta.url);await t()(e)},[]),T=(0,Z.useCallback)(async()=>{try{await w(i?.code??``),_(`Copied!`)}catch(e){YZ.error(e),_(`Copy error!`)}globalThis.window.setTimeout(()=>_(null),UQ)},[w,i?.code]),E=HW(r),D=!!(i&&i.error),O=!!(i&&!i.error);return Z.createElement(Z.Fragment,null,Z.createElement(VQ,{withSource:i,withToolbar:o,...p,className:S.join(` `)},o&&Z.createElement(HQ,{isLoading:e,border:!0,zoom:e=>y(v*e),resetZoom:()=>y(1),storyId:!e&&E?yQ(E,C):void 0,onReloadStory:f}),Z.createElement(DQ.Provider,{value:{scale:v}},Z.createElement(RQ,{isColumn:t||!Array.isArray(r),columns:n,layout:u,inline:d,className:`docs-story`},Z.createElement(nR.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(BQ,{...i,dark:!0,copyable:!1}))),(i||b.length>0)&&Z.createElement(zQ,{className:`sbdocs sbdocs-preview-actions`,innerStyle:{paddingInline:0}},D&&Z.createElement(HI,{lang:`en`,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(GI,{lang:`en`,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(HI,{lang:`en`,ariaLabel:!1,variant:`ghost`,onClick:T},Z.createElement(Ue,null),` `,g??`Copy code`)),b.map(({title:e,ariaLabel:t,className:n,onClick:r,disabled:i},a)=>Z.createElement(HI,{key:a,ariaLabel:t??!1,className:n,onClick:r,disabled:!!i,variant:`ghost`},e))))},N(WQ)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}})),GQ=N(FV)({height:`fit-content`}),KQ=({tabs:e,...t})=>{let n=Object.entries(e);if(n.length===1)return VK.createElement(VZ,{...n[0][1],...t});let r=n.map(([e,n],r)=>{let i=r===0?t:{sort:t.sort,docsLang:t.docsLang};return{id:`prop_table_div_${e}`,title:e,children:VK.createElement(VZ,{inTabPanel:!0,...n,...i})}});return VK.createElement(GQ,{tabs:r})},N.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base===`light`?vU(.4,e.color.defaultText):vU(.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(Wj,({theme:e})=>({...CQ(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:vU(.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:vU(.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})=>({...CQ(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:vU(.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})=>({...CQ(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:qQ}=__STORYBOOK_MODULE_CORE_EVENTS__,JQ={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={},e$=Object.prototype.hasOwnProperty,t$={destroy:YW,init:JW,refresh:XW},n$=N.aside(()=>({width:`10rem`,"@media (max-width: 768px)":{display:`none`}})),r$=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`}})),i$=N.p(({theme:e})=>({fontWeight:600,fontSize:`0.875em`,color:e.color.defaultText,textTransform:`uppercase`,marginBottom:10})),a$=({headingId:e,title:t})=>typeof t==`string`||!t?HK.createElement(i$,{as:`h2`,id:e,className:t?``:`sb-sr-only`,lang:t?void 0:`en`},t||`Table of contents`):HK.createElement(`div`,{id:e},t),o$=({title:e,disable:t,headingSelector:n,contentsSelector:r,ignoreSelector:i,unsafeTocbotOptions:a,channel:o,className:s})=>{(0,HK.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(qQ,`#${t}`)}},...a},s=setTimeout(()=>t$.init(e),100);return()=>{clearTimeout(s),t$.destroy()}},[o,t,i,r,n,a]);let c=`table-of-contents`;return HK.createElement(n$,{className:s},t?null:HK.createElement(r$,{"aria-labelledby":c},HK.createElement(a$,{headingId:c,title:e}),HK.createElement(`div`,{className:`toc-wrapper`})))},s$=e=>`anchor--${e}`,c$=({storyId:e,children:t})=>UK.createElement(`div`,{id:s$(e),className:`sb-anchor`},t),{InvalidBlockOfPropError:l$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:u$}=__STORYBOOK_MODULE_PREVIEW_API__,{getService:d$}=__STORYBOOK_MODULE_PREVIEW_API__,f$=(e,t)=>(0,qK.useContext)(mQ).resolveOf(e,t),p$=e=>e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),m$=e=>{if(e)return typeof e==`string`?e.includes(`-`)?p$(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name},h$=e=>{let{argTypes:t,parameters:n,component:r,subcomponents:i,filterProps:a}=dG(e);return t?fG({mainName:m$(r),mainRows:t,subcomponentRows:cG(i,n),docsLang:n?.docs?.lang,...a}):null},g$=e=>{let{argTypes:t,parameters:n,componentId:r,storyId:i,initialArgs:a,filterProps:o,component:s}=dG(e),{rows:c,isInitialLoading:l}=lG({componentId:r,storyId:i,parameters:n,initialArgs:a,customArgTypes:t});return l?WK.createElement(VZ,{isLoading:!0}):c?fG({mainName:m$(s)??c.serviceComponentName,mainRows:c.mainRows,subcomponentRows:c.subcomponentRows,docsLang:n?.docs?.lang,...o}):null},_$=e=>globalThis.FEATURES?.experimentalDocgenServer?WK.createElement(g$,{...e}):WK.createElement(h$,{...e}),v$=vQ(`ArgTypes`,_$),{FORCE_REMOUNT:y$}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:b$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:x$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,S$=Object.create,C$=Object.defineProperty,w$=Object.getOwnPropertyDescriptor,T$=Object.getOwnPropertyNames,E$=Object.getPrototypeOf,D$=Object.prototype.hasOwnProperty,$=(e,t)=>function(){return t||(0,e[T$(e)[0]])((t={exports:{}}).exports,t),t.exports},O$=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of T$(t))!D$.call(e,i)&&i!==n&&C$(e,i,{get:()=>t[i],enumerable:!(r=w$(t,i))||r.enumerable});return e},k$=(e,t,n)=>(n=e==null?{}:S$(E$(e)),O$(t||!e||!e.__esModule?C$(n,`default`,{value:e,enumerable:!0}):n,e)),A$=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],j$=[`detail`],M$=$({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),N$=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),P$=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),F$=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),I$=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),L$=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),R$=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),z$=$({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),B$=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),V$=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),H$=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),U$=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),W$=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),G$=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),K$=$({"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}}}),q$=$({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=K$();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),J$=$({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Y$=$({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=J$();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),X$=$({"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}}),Z$=$({"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}}}),Q$=$({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=Z$();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),$$=$({"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}}),e1=$({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=M$().getPrototypeOf||null}}),t1=$({"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}}}),n1=$({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=t1();t.exports=Function.prototype.bind||n}}),r1=$({"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}}),i1=$({"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}}),a1=$({"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}}),o1=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=n1(),r=i1(),i=r1();t.exports=a1()||n.call(i,r)}}),s1=$({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=n1(),r=R$(),i=r1(),a=o1();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),c1=$({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=s1(),r=Y$(),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))})}}),l1=$({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=$$(),r=e1(),i=c1();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}}),u1=$({"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=n1().call(n,r)}}),d1=$({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=M$(),i=N$(),a=P$(),o=F$(),s=I$(),c=L$(),l=R$(),u=z$(),d=B$(),f=V$(),p=H$(),m=U$(),h=W$(),g=G$(),_=q$(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Y$(),x=X$(),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=Q$()(),T=l1(),E=e1(),D=$$(),O=i1(),k=r1(),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},ne={__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`]},re=n1(),ie=u1(),ae=re.call(k,Array.prototype.concat),oe=re.call(O,Array.prototype.splice),se=re.call(k,String.prototype.replace),ce=re.call(k,String.prototype.slice),le=re.call(k,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,de=/\\(\\)?/g,fe=function(e){var t=ce(e,0,1),n=ce(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 se(e,ue,function(e,t,n,i){r[r.length]=n?se(i,de,`$1`):t||e}),r},pe=function(e,t){var n=e,r;if(ie(ne,n)&&(r=ne[n],n=`%`+r[0]+`%`),ie(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(le(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fe(e),r=n.length>0?n[0]:``,i=pe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],oe(n,ae([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ce(p,0,1),h=ce(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+`%`,ie(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=ie(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),f1=$({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=d1(),r=s1(),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}}}),p1=$({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=Z$();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),m1=$({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=f1(),r=p1()(),i=u1(),a=Y$(),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}}),h1=$({"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)}}}),g1=$({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=f1(),r=m1(),i=n(`RegExp.prototype.exec`),a=R$();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),_1=$({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=f1(),r=n(`Object.prototype.toString`),i=Q$()(),a=g1();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`&&s(o(e))},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}}),v1=k$(m1()),y1=k$(h1()),b1=k$(_1()),x1=typeof global==`object`&&global&&global.Object===Object&&global,S1=typeof self==`object`&&self&&self.Object===Object&&self,C1=x1||S1||Function(`return this`)(),w1=C1.Symbol,T1=Object.prototype,E1=T1.hasOwnProperty,D1=T1.toString,O1=w1?w1.toStringTag:void 0,k1=hG,A1=Object.prototype.toString,j1=gG,M1=`[object Null]`,N1=`[object Undefined]`,P1=w1?w1.toStringTag:void 0,F1=_G,I1=w1?w1.prototype:void 0,I1&&I1.toString,L1=vG,R1=`[object AsyncFunction]`,z1=`[object Function]`,B1=`[object GeneratorFunction]`,V1=`[object Proxy]`,H1=yG,U1=C1[`__core-js_shared__`],W1=(function(){var e=/[^.]+$/.exec(U1&&U1.keys&&U1.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),G1=bG,K1=Function.prototype.toString,q1=xG,J1=/[\\^$.*+?()[\]{}|]/g,Y1=/^\[object .+?Constructor\]$/,X1=Function.prototype,Z1=Object.prototype,Q1=X1.toString,$1=Z1.hasOwnProperty,e0=RegExp(`^`+Q1.call($1).replace(J1,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),t0=SG,n0=CG,r0=wG,i0=TG,a0=r0(Object,`create`),o0=EG,s0=DG,c0=`__lodash_hash_undefined__`,l0=Object.prototype.hasOwnProperty,u0=OG,d0=Object.prototype.hasOwnProperty,f0=kG,p0=`__lodash_hash_undefined__`,m0=AG,jG.prototype.clear=o0,jG.prototype.delete=s0,jG.prototype.get=u0,jG.prototype.has=f0,jG.prototype.set=m0,h0=jG,g0=MG,_0=NG,v0=Array.prototype.splice,y0=PG,b0=FG,x0=IG,S0=LG,RG.prototype.clear=g0,RG.prototype.delete=y0,RG.prototype.get=b0,RG.prototype.has=x0,RG.prototype.set=S0,C0=RG,w0=r0(C1,`Map`),T0=zG,E0=BG,D0=VG,O0=HG,k0=UG,A0=WG,j0=GG,KG.prototype.clear=T0,KG.prototype.delete=O0,KG.prototype.get=k0,KG.prototype.has=A0,KG.prototype.set=j0,M0=KG,N0=`Expected a function`,qG.Cache=M0,P0=qG,F0=500,I0=JG,L0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R0=/\\(\\)?/g,I0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(L0,function(e,n,r,i){t.push(r?i.replace(R0,`$1`):n||e)}),t}),z0=mG,B0=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,V0=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 B0.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,v1.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,y1.default)(o))return;if((0,b1.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:YG(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}}},H0={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},U0=(e,t={})=>{let n={...H0,...t};return JSON.stringify(YG(e),V0(n),t.space)},W0=(0,XK.createContext)({sources:{}}),G0=`--unknown--`,K0=({children:e,channel:t})=>{let[n,r]=(0,XK.useState)({});return(0,XK.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?XG(a):G0;r(e=>({...e,[i]:{...e[i],[c]:{code:o||``,format:s}}}))};return t.on(D,e),()=>t.off(D,e)},[]),XK.createElement(W0.Provider,{value:{sources:n}},e)},{getService:q0}=__STORYBOOK_MODULE_PREVIEW_API__,J0={sources:{}},Y0=(e,t,n)=>{let{sources:r}=n,i=r?.[e];return i?.[XG(t)]||i?.[`--unknown--`]||{code:``}},X0=({snippet:e,serviceSnippet:t,storyContext:n,typeFromProps:r,transformFromProps:i})=>{let a=n.parameters??{},{__isArgsStory:o}=a,s=a.docs?.source||{},c=r||s.type||A.AUTO,l=t||e,u=c===A.DYNAMIC||c===A.AUTO&&l&&o?l:s.originalSource||``,d=i??s.transform,f=d?eK(u,d,n):u;return s.code===void 0?f:s.code},Z0=(e,t,n,r=``)=>{let{of:i}=e,a=(0,YK.useMemo)(()=>{if(i)return t.resolveOf(i,[`story`]).story;try{return t.storyById()}catch{}},[t,i]),o=a?t.getStoryContext(a):{},s=e.__forceInitialArgs?o.initialArgs:o.unmappedArgs,c=a?Y0(a.id,s,n):null,l=X0({snippet:c?c.code:``,serviceSnippet:r,storyContext:{...o,args:s},typeFromProps:e.type,transformFromProps:e.transform});if(`of`in e&&i===void 0)throw new x$;let u=a?.parameters?.docs?.source||{},d=e.format,f=e.language??u.language??`jsx`,p=e.dark??u.dark??!1;return e.code===void 0&&!a?{error:`Oh no! The source is not available.`}:e.code===void 0?(d=c?.format??!0,{code:l,format:d,language:f,dark:p}):{code:e.code,format:d,language:f,dark:p}},Q0=({storyId:e,docsContext:t,sourceContext:n,...r})=>{let i=Z0(r,t,n,$G(e).data??``);return YK.createElement(TU,{...i})},$0=e=>{let{of:t}=e,n=(0,YK.useContext)(W0),r=(0,YK.useContext)(mQ),i=(0,YK.useMemo)(()=>{if(t)return r.resolveOf(t,[`story`]).story;try{return r.storyById()}catch{}},[r,t]);if(globalThis.FEATURES?.experimentalDocgenServer&&i?.id)return YK.createElement(Q0,{...e,docsContext:r,sourceContext:n,storyId:i.id});let a=Z0(e,r,n);return YK.createElement(TU,{...a})},e2=e=>{let t=Z0(e,(0,YK.useContext)(mQ),J0);return YK.createElement(TU,{...t})},t2=e=>e.code===void 0?YK.createElement($0,{...e}):YK.createElement(e2,{...e}),vQ(`Source`,t2),n2=e=>{let t=(0,JK.useContext)(mQ),n=(0,JK.useContext)(W0),{of:r,source:i}=e;if(`of`in e&&r===void 0)throw new b$;let{story:a}=f$(r||`story`,[`story`]),o=Z0({...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,JK.useCallback)(()=>{t.channel.emit(y$,{storyId:a.id})},[t.channel,a.id]);return JK.createElement(WQ,{withSource:u===`none`?void 0:o,isExpanded:u===`shown`,withToolbar:c,additionalActions:l,className:d,layout:s,inline:f,onReloadStory:f?p:void 0},JK.createElement(SQ,{of:r||a.moduleExport,meta:e.meta,...e.story}))},r2=vQ(`Canvas`,n2),{filterArgTypes:i2}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:a2,STORY_ARGS_UPDATED:o2,UPDATE_STORY_ARGS:s2}=__STORYBOOK_MODULE_CORE_EVENTS__,c2=(e,t)=>{let n=l2(e,t);if(!n)throw Error(`No result when story was defined`);return n},l2=(e,t)=>{let n=e?t.getStoryContext(e):{args:{}},{id:r}=e||{id:`none`},[i,a]=(0,eq.useState)(n.args);(0,eq.useEffect)(()=>{let e=e=>{e.storyId===r&&a(e.args)};return t.channel.on(o2,e),()=>t.channel.off(o2,e)},[r,t.channel]);let o=(0,eq.useCallback)(e=>t.channel.emit(s2,{storyId:r,updatedArgs:e}),[r,t.channel]),s=(0,eq.useCallback)(e=>t.channel.emit(a2,{storyId:r,argNames:e}),[r,t.channel]);return e&&[i,o,s]},{GLOBALS_UPDATED:u2}=__STORYBOOK_MODULE_CORE_EVENTS__,d2=(e,t)=>{let n=t.getStoryContext(e),[r,i]=(0,tq.useState)(n.globals);return(0,tq.useEffect)(()=>{let e=e=>{i(e.globals)};return t.channel.on(u2,e),()=>t.channel.off(u2,e)},[t.channel]),[r]},{Tag:f2}=__STORYBOOK_MODULE_PREVIEW_API__,p2=()=>{let e=(0,nq.useContext)(mQ),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(e=>e.tags.includes(f2.AUTODOCS))},m2=({mainName:e=`Story`,mainRows:t,subcomponentRows:n,include:r,exclude:i,sort:a,storyId:o,controlsId:s,args:c,globals:l,updateArgs:u,resetArgs:d,docsLang:f})=>{let p=i2(t,r,i);if(Object.keys(n).length===0)return Object.keys(p).length>0||Object.keys(c).length>0?$K.createElement(VZ,{storyId:o,controlsId:s,rows:p,sort:a,args:c,globals:l,updateArgs:u,resetArgs:d,docsLang:f}):null;let m={[e]:{rows:p,sort:a},...Object.fromEntries(Object.entries(n).map(([e,t])=>[e,{rows:i2(t,r,i),sort:a}]))};return $K.createElement(KQ,{tabs:m,sort:a,args:c,globals:l,updateArgs:u,resetArgs:d,storyId:o,controlsId:s,docsLang:f})},h2=({story:e,context:t,...n})=>{let{parameters:r,argTypes:i,component:a,subcomponents:o}=e,s=tK(e,n),c=nK(e,t);return i?$K.createElement(m2,{mainName:m$(a)||`Story`,mainRows:i,subcomponentRows:cG(o,r),...s,storyId:e.id,...c,docsLang:r?.docs?.lang}):null},g2=({story:e,context:t,...n})=>{let{parameters:r,argTypes:i,component:a}=e,o=tK(e,n),s=nK(e,t),{rows:c,isInitialLoading:l}=lG({componentId:e.id.split(`--`)[0],storyId:e.id,parameters:r,initialArgs:e.initialArgs,customArgTypes:i});return l?$K.createElement(VZ,{isLoading:!0}):c?$K.createElement(m2,{mainName:m$(a)??c.serviceComponentName,mainRows:c.mainRows,subcomponentRows:c.subcomponentRows,...o,storyId:e.id,...s,docsLang:r?.docs?.lang}):null},_2=e=>{let{of:t}=e,n=(0,$K.useContext)(mQ),r=p2(),i=t?n.resolveOf(t,[`story`]).story:r;if(!i)return null;let a={...e,story:i,context:n};return globalThis.FEATURES?.experimentalDocgenServer?$K.createElement(g2,{...a}):$K.createElement(h2,{...a})},v2=vQ(`Controls`,_2),{InvalidBlockOfPropError:y2}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:b2}=__STORYBOOK_MODULE_CORE_EVENTS__,{document:x2}=globalThis,S2=({className:e,children:t,...n})=>{if(typeof e!=`string`&&(typeof t!=`string`||!t.match(/[\n\r]/g)))return aq.createElement(aM,null,t);let r=e&&e.split(`-`);return aq.createElement(TU,{language:r&&r[1]||`text`,format:!1,code:t,...n})},C2=tH.a,w2=({hash:e,children:t})=>{let n=(0,aq.useContext)(mQ);return aq.createElement(C2,{href:e,target:`_self`,onClick:t=>{let r=e.substring(1);x2.getElementById(r)&&rK(n,e)}},t)},T2=e=>{let{href:t,target:n,children:r,...i}=e,a=(0,aq.useContext)(mQ);return!t||n===`_blank`||/^https?:\/\//.test(t)?aq.createElement(C2,{...e}):t.startsWith(`#`)?aq.createElement(w2,{hash:t},r):aq.createElement(C2,{href:t,onClick:e=>{e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&(e.preventDefault(),rK(a,e.currentTarget.getAttribute(`href`)||``))},target:n,...i},r)},E2=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],D2=E2.reduce((e,t)=>({...e,[t]:N(t)({})}),{}),O2=N.span({display:`block`,position:`relative`,"& svg":{visibility:`hidden`},"&:hover svg, &:focus-within svg":{visibility:`visible`}}),k2=N.span({position:`absolute`,top:`50%`,right:`100%`,lineHeight:`inherit`,paddingRight:`8px`,"&&":{marginTop:-14},color:`inherit`,"& a":{color:`inherit`,textDecoration:`none`}}),N.span({}),A2=({as:e,id:t,children:n,...r})=>{let i=(0,aq.useContext)(mQ),a=D2[e],o=`#${t}`;return aq.createElement(a,{id:t,...r},aq.createElement(O2,{className:`sb-unstyled`},aq.createElement(k2,null,aq.createElement(HI,{asChild:!0,variant:`ghost`,size:`small`,padding:`small`,ariaLabel:`Copy heading URL to address bar`},aq.createElement(`a`,{href:o,target:`_self`,onClick:e=>{e.preventDefault(),x2.getElementById(t)&&rK(i,o)}},aq.createElement(Ze,null)))),n))},j2=e=>{let{as:t,id:n,children:r,...i}=e;if(n)return aq.createElement(A2,{as:t,id:n,...i},r);let a=t,{as:o,...s}=e;return aq.createElement(a,{...Vj(s,t)})},M2=E2.reduce((e,t)=>({...e,[t]:e=>aq.createElement(j2,{as:t,...e})}),{}),N2=e=>{if(!e.children)return null;if(typeof e.children!=`string`)throw Error(DU`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
272
|
+
This is often caused by not wrapping the child in a template string.
|
|
273
|
+
|
|
274
|
+
This is invalid:
|
|
275
|
+
<Markdown>
|
|
276
|
+
# Some heading
|
|
277
|
+
A paragraph
|
|
278
|
+
</Markdown>
|
|
279
|
+
|
|
280
|
+
Instead do:
|
|
281
|
+
<Markdown>
|
|
282
|
+
{\`
|
|
283
|
+
# Some heading
|
|
284
|
+
A paragraph
|
|
285
|
+
\`}
|
|
286
|
+
</Markdown>
|
|
287
|
+
`);return iq.createElement(sY,{...e,options:{forceBlock:!0,overrides:{code:S2,a:T2,...M2,...e?.options?.overrides},...e?.options}})},P2=vQ(`Markdown`,N2),F2=(e,t,n)=>{switch(e.type){case`story`:{let t=e.story.parameters.docs?.description?.story;return t===void 0?n??null:t}case`meta`:{let{parameters:n,component:r}=e.preparedMeta;return n.docs?.description?.component||n.docs?.extractComponentDescription?.(r,{component:r,parameters:n})||t||null}case`component`:{let{component:n,projectAnnotations:{parameters:r}}=e;return r?.docs?.extractComponentDescription?.(n,{component:n,parameters:r})||t||null}default:throw Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},I2=({resolvedOf:e,serviceComponentDescription:t,lang:n,storyDocsDescription:r})=>{let i=F2(e,t,r);return i?rq.createElement(P2,{lang:n},i):null},L2=({resolvedOf:e})=>{let t=QG(e.story.id).data?.description,n=e.story.parameters.docs?.lang||`en`;return rq.createElement(I2,{resolvedOf:e,storyDocsDescription:t,lang:n})},R2=({resolvedOf:e,componentId:t})=>{let n=oG(t).data?.description||void 0,r=e.type===`meta`?e.preparedMeta.parameters.docs?.lang||`en`:e.projectAnnotations.parameters?.docs?.lang||`en`;return rq.createElement(I2,{resolvedOf:e,serviceComponentDescription:n,lang:r})},z2=e=>{let{of:t}=e,n=(0,rq.useContext)(mQ);if(`of`in e&&t===void 0)throw new y2;let r=f$(t||`meta`);if(globalThis.FEATURES?.experimentalDocgenServer){if(r.type===`story`)return rq.createElement(L2,{resolvedOf:r});let e=r.type===`meta`?r.preparedMeta.componentId:n.getComponentId(r.component);if(e)return rq.createElement(R2,{resolvedOf:r,componentId:e})}let i=(r.type===`story`?r.story.parameters:r.type===`meta`?r.preparedMeta.parameters:r.projectAnnotations.parameters)?.docs?.lang||`en`;return rq.createElement(I2,{resolvedOf:r,lang:i})},B2=vQ(`Description`,z2),V2=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,H2=Object.hasOwnProperty,U2=class{constructor(){this.occurrences,this.reset()}slug(e,t){let n=this,r=iK(e,t===!0),i=r;for(;H2.call(n.occurrences,r);)n.occurrences[i]++,r=i+`-`+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}},W2=()=>new U2,G2=(0,cq.createContext)(null),{document:K2,window:q2}=globalThis,J2=({context:e,theme:t,children:n})=>{let r=(0,sq.useMemo)(()=>W2(),[]),i,a;try{let t=e.resolveOf(`meta`,[`meta`]).preparedMeta.parameters;i=t?.docs?.toc,a=t?.docs?.lang||`en`}catch{i=e?.projectAnnotations?.parameters?.docs?.toc,a=e?.projectAnnotations?.parameters?.docs?.lang||`en`}return(0,sq.useEffect)(()=>{let e;try{if(e=new URL(q2.parent.location.toString()),e.hash){let t=K2.getElementById(decodeURIComponent(e.hash.substring(1)));t&&setTimeout(()=>{uG(t)},200)}}catch{}}),sq.createElement(G2.Provider,{value:r},sq.createElement(mQ.Provider,{value:e},sq.createElement(K0,{channel:e.channel},sq.createElement(De,{theme:Te(t)},sq.createElement(JZ,{lang:a,toc:i?sq.createElement(o$,{className:`sbdocs sbdocs-toc--custom`,channel:e.channel,...i}):null},n)))))},Y2=new U2,X2=({children:e,disableAnchor:t,...n})=>{if(t||typeof e!=`string`)return pq.createElement(lM,null,e);let r=(pq.useContext(G2)??Y2).slug(e.toLowerCase());return pq.createElement(j2,{as:`h2`,id:r,...n},e)},Z2=vQ(`Heading`,X2),Q2=({children:e,disableAnchor:t})=>{if(t||typeof e!=`string`)return fq.createElement(uM,null,e);let n=(fq.useContext(G2)??Y2).slug(e.toLowerCase());return fq.createElement(j2,{as:`h3`,id:n},e)},$2=vQ(`Subheading`,Q2),e4=({of:e,expanded:t=!0,withToolbar:n=!1,__forceInitialArgs:r=!1,__primary:i=!1})=>{let{story:a}=f$(e||`story`,[`story`]),o=a.parameters.docs?.canvas?.withToolbar??n;return dq.createElement(c$,{storyId:i?`primary--${a.id}`:a.id},t&&dq.createElement(dq.Fragment,null,dq.createElement($2,null,a.name),dq.createElement(B2,{of:e})),dq.createElement(r2,{of:e,withToolbar:o,story:{__forceInitialArgs:r,__primary:i},source:{__forceInitialArgs:r}}))},t4=vQ(`DocsStory`,e4),n4=()=>{let e=p2();return e?uq.createElement(t4,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},r4=vQ(`Primary`,n4),{Tag:i4}=__STORYBOOK_MODULE_PREVIEW_API__,a4=N(Z2)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:`16px`,letterSpacing:`0.35em`,textTransform:`uppercase`,color:e.textMutedColor,border:0,marginBottom:`12px`,"&:first-of-type":{marginTop:`56px`}})),o4=({title:e=`Stories`,includePrimary:t=!0})=>{let{componentStories:n,projectAnnotations:r,getStoryContext:i}=(0,mq.useContext)(mQ),a=n(),o=r.parameters?.docs?.stories?.filter;return o&&(a=a.filter(e=>o(e,i(e)))),a.some(e=>e.tags?.includes(i4.AUTODOCS))&&(a=a.filter(e=>e.tags?.includes(i4.AUTODOCS)&&!e.usesMount)),t||(a=a.slice(1)),!a||a.length===0?null:mq.createElement(mq.Fragment,null,typeof e==`string`?mq.createElement(a4,null,e):e,a.map(e=>e&&mq.createElement(t4,{key:e.id,of:e.moduleExport,expanded:!0,__forceInitialArgs:!0})))},s4=vQ(`Stories`,o4),{deprecate:c4}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{InvalidBlockOfPropError:l4}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,u4=`https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle`,d4=e=>{let{of:t,children:n}=e;if(`of`in e&&t===void 0)throw new l4;let r;try{r=f$(t||`meta`,[`meta`]).preparedMeta}catch(e){if(n&&!e.message.includes(`did you forget to use <Meta of={} />?`))throw e}let{componentSubtitle:i,docs:a}=r?.parameters||{};i&&c4(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${u4}`);let o=n||a?.subtitle||i;return o?hq.createElement(GZ,{className:`sbdocs-subtitle sb-unstyled`},o):null},f4=vQ(`Subtitle`,d4),{InvalidBlockOfPropError:p4}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,m4=/\s*\/\s*/,h4=e=>{let t=e.trim().split(m4);return t?.[t?.length-1]||e},g4=e=>{let{children:t,of:n}=e;if(`of`in e&&n===void 0)throw new p4;let r;try{r=f$(n||`meta`,[`meta`]).preparedMeta}catch(e){if(t&&e instanceof Error&&!e.message.includes(`did you forget to use <Meta of={} />?`))throw e}let i=t||h4(r?.title||``);return i?gq.createElement(WZ,{className:`sbdocs-title sb-unstyled`},i):null},_4=vQ(`Title`,g4),v4=()=>{let{stories:e}=f$(`meta`,[`meta`]).csfFile,t=Object.keys(e).length===1;return lq.createElement(lq.Fragment,null,lq.createElement(_4,null),lq.createElement(f4,null),lq.createElement(B2,{of:`meta`}),t?lq.createElement(B2,{of:`story`}):null,lq.createElement(r4,null),lq.createElement(v2,null),t?null:lq.createElement(s4,null))},{deprecate:y4}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{composeConfigs:b4}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:x4}=__STORYBOOK_MODULE_CHANNELS__,{Preview:S4,composeConfigs:C4}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:w4}=__STORYBOOK_MODULE_PREVIEW_API__,{deprecate:T4}=__STORYBOOK_MODULE_CLIENT_LOGGER__,E4=({of:e})=>{let t=(0,_q.useContext)(mQ);e&&t.referenceMeta(e,!0);try{let e=t.storyById();return _q.createElement(c$,{storyId:e.id})}catch{return null}},D4=e=>vq.createElement(`div`,{...e,className:`sb-unstyled`}),vQ(`Unstyled`,D4),O4=({children:e})=>yq.createElement(`div`,{style:{fontFamily:`sans-serif`}},e),vQ(`Wrapper`,O4)})))()}export{mB as _,v2 as a,ct as b,P2 as c,s4 as d,f4 as f,QR as g,HI as h,S2 as i,E4 as l,k4 as m,v$ as n,aK as o,_4 as p,r2 as r,M2 as s,T2 as t,r4 as u,rH as v,We as y};
|