@uva-glass/component-library 3.55.1 → 3.55.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion-BpnBHYIx.js +69 -0
- package/dist/Accordion-BpnBHYIx.js.map +1 -0
- package/dist/AccordionCard-BXy-plB7.js +43 -0
- package/dist/AccordionCard-BXy-plB7.js.map +1 -0
- package/dist/ActionList-O9w1hqNg.js +95 -0
- package/dist/ActionList-O9w1hqNg.js.map +1 -0
- package/dist/AddCatalogueLinkForm-Cy6fPNvN.js +117 -0
- package/dist/AddCatalogueLinkForm-Cy6fPNvN.js.map +1 -0
- package/dist/AppStatusBar-Bca0KFDR.js +20 -0
- package/dist/AppStatusBar-Bca0KFDR.js.map +1 -0
- package/dist/Attention-Bq5UU9I8.js +13 -0
- package/dist/Attention-Bq5UU9I8.js.map +1 -0
- package/dist/Backdrop-D8AHeuBn.js +10 -0
- package/dist/Backdrop-D8AHeuBn.js.map +1 -0
- package/dist/Button.module-DJlNwQUj.js +16 -0
- package/dist/Button.module-DJlNwQUj.js.map +1 -0
- package/dist/ButtonGroup-DR80lTLz.js +21 -0
- package/dist/ButtonGroup-DR80lTLz.js.map +1 -0
- package/dist/Card-DMFyuTmy.js +32 -0
- package/dist/Card-DMFyuTmy.js.map +1 -0
- package/dist/Checkbox-D6-b_4dC.js +12 -0
- package/dist/Checkbox-D6-b_4dC.js.map +1 -0
- package/dist/CheckboxButtonBar-CalU0IYK.js +79 -0
- package/dist/CheckboxButtonBar-CalU0IYK.js.map +1 -0
- package/dist/Chip-DJHvFToV.js +22 -0
- package/dist/Chip-DJHvFToV.js.map +1 -0
- package/dist/ClipboardButton-geHjMl2J.js +43 -0
- package/dist/ClipboardButton-geHjMl2J.js.map +1 -0
- package/dist/Column-BwKEOOuL.js +84 -0
- package/dist/Column-BwKEOOuL.js.map +1 -0
- package/dist/Container-BLjtYDqq.js +31 -0
- package/dist/Container-BLjtYDqq.js.map +1 -0
- package/dist/ControlsButton-zemVxTlg.js +64 -0
- package/dist/ControlsButton-zemVxTlg.js.map +1 -0
- package/dist/CopyableText-DkyhZ6wk.js +57 -0
- package/dist/CopyableText-DkyhZ6wk.js.map +1 -0
- package/dist/Drawer-Ggofac6y.js +77 -0
- package/dist/Drawer-Ggofac6y.js.map +1 -0
- package/dist/EmptyStateDataDisplay-D0QiI8nE.js +46 -0
- package/dist/EmptyStateDataDisplay-D0QiI8nE.js.map +1 -0
- package/dist/ExpandableInfoPanel-CnBVVNlJ.js +58 -0
- package/dist/ExpandableInfoPanel-CnBVVNlJ.js.map +1 -0
- package/dist/FeedbackBar-ByKp32HE.js +43 -0
- package/dist/FeedbackBar-ByKp32HE.js.map +1 -0
- package/dist/FeedbackBox-Bu7uB9DP.js +29 -0
- package/dist/FeedbackBox-Bu7uB9DP.js.map +1 -0
- package/dist/FieldHint-D0HtbTnt.js +16 -0
- package/dist/FieldHint-D0HtbTnt.js.map +1 -0
- package/dist/Fieldset-CoNu_Owa.js +23 -0
- package/dist/Fieldset-CoNu_Owa.js.map +1 -0
- package/dist/Flyout-DEpzfZOC.js +18 -0
- package/dist/Flyout-DEpzfZOC.js.map +1 -0
- package/dist/FormField-BZSoQdp9.js +21 -0
- package/dist/FormField-BZSoQdp9.js.map +1 -0
- package/dist/HorizontalList-C22DaDz-.js +20 -0
- package/dist/HorizontalList-C22DaDz-.js.map +1 -0
- package/dist/IconButton-CWCMH9uf.js +24 -0
- package/dist/IconButton-CWCMH9uf.js.map +1 -0
- package/dist/InfoBanner-DyznQLGr.js +13 -0
- package/dist/InfoBanner-DyznQLGr.js.map +1 -0
- package/dist/InfoMessage-I-VlwxVc.js +19 -0
- package/dist/InfoMessage-I-VlwxVc.js.map +1 -0
- package/dist/Input-Bn-arMaC.js +25 -0
- package/dist/Input-Bn-arMaC.js.map +1 -0
- package/dist/InputField-BWAy19w9.js +51 -0
- package/dist/InputField-BWAy19w9.js.map +1 -0
- package/dist/Label-o0BcWTUS.js +21 -0
- package/dist/Label-o0BcWTUS.js.map +1 -0
- package/dist/Lexical.prod-DCGjHGxG.js +5235 -0
- package/dist/Lexical.prod-DCGjHGxG.js.map +1 -0
- package/dist/LexicalClipboard.prod-CGG14aoP.js +248 -0
- package/dist/LexicalClipboard.prod-CGG14aoP.js.map +1 -0
- package/dist/LexicalComposerContext.prod-Ca-YN_fj.js +22 -0
- package/dist/LexicalComposerContext.prod-Ca-YN_fj.js.map +1 -0
- package/dist/LexicalExtension.prod-DWt1IjPF.js +854 -0
- package/dist/LexicalExtension.prod-DWt1IjPF.js.map +1 -0
- package/dist/LexicalLink.prod-Dy1gE75H.js +665 -0
- package/dist/LexicalLink.prod-Dy1gE75H.js.map +1 -0
- package/dist/LexicalList.prod-D9R0L7cu.js +760 -0
- package/dist/LexicalList.prod-D9R0L7cu.js.map +1 -0
- package/dist/LexicalTable.prod-C2FP47Lm.js +1991 -0
- package/dist/LexicalTable.prod-C2FP47Lm.js.map +1 -0
- package/dist/LexicalUtils.prod-BzrjMu6t.js +242 -0
- package/dist/LexicalUtils.prod-BzrjMu6t.js.map +1 -0
- package/dist/LinkContextMenu-DZlKfbg1.js +101 -0
- package/dist/LinkContextMenu-DZlKfbg1.js.map +1 -0
- package/dist/MenuLink-Cm1yZO_5.js +21 -0
- package/dist/MenuLink-Cm1yZO_5.js.map +1 -0
- package/dist/MetaDataBar-C4QO9oBV.js +23 -0
- package/dist/MetaDataBar-C4QO9oBV.js.map +1 -0
- package/dist/MetaDataList-CAR1HTYs.js +24 -0
- package/dist/MetaDataList-CAR1HTYs.js.map +1 -0
- package/dist/ModalDialog-HUkDdAJ-.js +114 -0
- package/dist/ModalDialog-HUkDdAJ-.js.map +1 -0
- package/dist/MultiSelectBox-Cuh_o-A1.js +189 -0
- package/dist/MultiSelectBox-Cuh_o-A1.js.map +1 -0
- package/dist/MultiSelectItem-BF5xRjz5.js +36 -0
- package/dist/MultiSelectItem-BF5xRjz5.js.map +1 -0
- package/dist/Notification-CIhsHuF0.js +68 -0
- package/dist/Notification-CIhsHuF0.js.map +1 -0
- package/dist/OverlayCloseButton-rttFbAM_.js +22 -0
- package/dist/OverlayCloseButton-rttFbAM_.js.map +1 -0
- package/dist/OverlayStepBar-CjaoYdsh.js +45 -0
- package/dist/OverlayStepBar-CjaoYdsh.js.map +1 -0
- package/dist/PageOverlay-D_wG2oie.js +108 -0
- package/dist/PageOverlay-D_wG2oie.js.map +1 -0
- package/dist/PasteHandlerPlugin-DUdocSHB.js +235 -0
- package/dist/PasteHandlerPlugin-DUdocSHB.js.map +1 -0
- package/dist/Periods-BYETtB6R.js +40 -0
- package/dist/Periods-BYETtB6R.js.map +1 -0
- package/dist/ProgrammeCard-76gG7ksx.js +27 -0
- package/dist/ProgrammeCard-76gG7ksx.js.map +1 -0
- package/dist/RadioButton-Bto2p5B9.js +35 -0
- package/dist/RadioButton-Bto2p5B9.js.map +1 -0
- package/dist/RadioGroup-JeTjVp5B.js +50 -0
- package/dist/RadioGroup-JeTjVp5B.js.map +1 -0
- package/dist/Repeater-BhkTEUai.js +22 -0
- package/dist/Repeater-BhkTEUai.js.map +1 -0
- package/dist/RteEditor.module-Jk80F1FA.js +42 -0
- package/dist/RteEditor.module-Jk80F1FA.js.map +1 -0
- package/dist/SearchField.module-BgxjHaPG.js +19 -0
- package/dist/SearchField.module-BgxjHaPG.js.map +1 -0
- package/dist/SectionNotification-CQqwPTqP.js +14 -0
- package/dist/SectionNotification-CQqwPTqP.js.map +1 -0
- package/dist/SelectListbox.module-HaPs1CLD.js +30 -0
- package/dist/SelectListbox.module-HaPs1CLD.js.map +1 -0
- package/dist/Slider-BlLyrET9.js +102 -0
- package/dist/Slider-BlLyrET9.js.map +1 -0
- package/dist/Sortable.module-BTUOSbOU.js +27 -0
- package/dist/Sortable.module-BTUOSbOU.js.map +1 -0
- package/dist/SortableProvider-Dc7hwkb5.js +147 -0
- package/dist/SortableProvider-Dc7hwkb5.js.map +1 -0
- package/dist/Spinner-D8tWqg9j.js +31 -0
- package/dist/Spinner-D8tWqg9j.js.map +1 -0
- package/dist/StatusBage-DQDOF5-U.js +13 -0
- package/dist/StatusBage-DQDOF5-U.js.map +1 -0
- package/dist/StatusPill-DM7n3I4W.js +30 -0
- package/dist/StatusPill-DM7n3I4W.js.map +1 -0
- package/dist/TableCellContextMenu-D0IMQr3E.js +119 -0
- package/dist/TableCellContextMenu-D0IMQr3E.js.map +1 -0
- package/dist/TableCellResizerPlugin-BGolbi44.js +208 -0
- package/dist/TableCellResizerPlugin-BGolbi44.js.map +1 -0
- package/dist/TextArea-DqKIpOfT.js +68 -0
- package/dist/TextArea-DqKIpOfT.js.map +1 -0
- package/dist/ToggleSwitch-C7z7JVtx.js +51 -0
- package/dist/ToggleSwitch-C7z7JVtx.js.map +1 -0
- package/dist/Tooltip-BzB3jznk.js +80 -0
- package/dist/Tooltip-BzB3jznk.js.map +1 -0
- package/dist/VarIndicator-C-GueOZD.js +50 -0
- package/dist/VarIndicator-C-GueOZD.js.map +1 -0
- package/dist/WeekSelector.module-BLPrVYgn.js +18 -0
- package/dist/WeekSelector.module-BLPrVYgn.js.map +1 -0
- package/dist/__mocks__/svgrMock.js +12 -9
- package/dist/__mocks__/svgrMock.js.map +1 -1
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionCard.css +1 -1
- package/dist/assets/ActionList.css +1 -1
- package/dist/assets/AddCatalogueLinkForm.css +1 -1
- package/dist/assets/AppStatusBar.css +1 -1
- package/dist/assets/Attention.css +1 -1
- package/dist/assets/Backdrop.css +1 -1
- package/dist/assets/Backdrop2.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/CheckboxButtonBar.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/ClipboardButton.css +1 -1
- package/dist/assets/Column.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/ControlsButton.css +1 -1
- package/dist/assets/CopyableText.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/EmptyStateDataDisplay.css +1 -1
- package/dist/assets/ExpandableInfoPanel.css +1 -1
- package/dist/assets/FeedbackBar.css +1 -1
- package/dist/assets/FeedbackBox.css +1 -1
- package/dist/assets/Fieldset.css +1 -1
- package/dist/assets/Flyout.css +1 -1
- package/dist/assets/FormField.css +1 -1
- package/dist/assets/GridRow.css +1 -1
- package/dist/assets/HorizontalList.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/InfoBanner.css +1 -1
- package/dist/assets/InfoMessage.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputField.css +1 -1
- package/dist/assets/Label.css +1 -1
- package/dist/assets/LinkContextMenu.css +1 -1
- package/dist/assets/MenuLink.css +1 -1
- package/dist/assets/MenuLink2.css +1 -1
- package/dist/assets/MetaDataBar.css +1 -1
- package/dist/assets/MetaDataList.css +1 -1
- package/dist/assets/ModalDialog.css +1 -1
- package/dist/assets/MultiSelectBox.css +1 -1
- package/dist/assets/MultiSelectItem.css +1 -1
- package/dist/assets/Notification.css +1 -1
- package/dist/assets/OverlayCloseButton.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/PageOverlay.css +1 -1
- package/dist/assets/Periods.css +1 -1
- package/dist/assets/ProgrammeCard.css +1 -1
- package/dist/assets/RadioButton.css +1 -1
- package/dist/assets/RadioButton2.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/SectionNotification.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/Spinner.css +1 -1
- package/dist/assets/StatusBage.css +1 -1
- package/dist/assets/StatusPill.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/VarIndicator.css +1 -1
- package/dist/assets/WeekSelector.css +1 -1
- package/dist/assets/components.css +1 -0
- package/dist/chunk-DeC0fbbY.js +23 -0
- package/dist/chunk-OPOZOKLO-CXKdjnjn.js +8448 -0
- package/dist/chunk-OPOZOKLO-CXKdjnjn.js.map +1 -0
- package/dist/client-C0JVBgoR.js +18953 -0
- package/dist/client-C0JVBgoR.js.map +1 -0
- package/dist/clsx-BD2qMUU1.js +18 -0
- package/dist/clsx-BD2qMUU1.js.map +1 -0
- package/dist/components/Accordion/Accordion.js +2 -94
- package/dist/components/Accordion/Accordion.stories.js +30 -32
- package/dist/components/Accordion/Accordion.stories.js.map +1 -1
- package/dist/components/Accordion/Accordion.test.js +49 -27
- package/dist/components/Accordion/Accordion.test.js.map +1 -1
- package/dist/components/Accordion/index.js +2 -5
- package/dist/components/AccordionCard/AccordionCard.js +2 -58
- package/dist/components/AccordionCard/AccordionCard.stories.js +31 -32
- package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js +54 -31
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
- package/dist/components/AccordionCard/index.js +2 -5
- package/dist/components/ActionList/ActionList.js +2 -83
- package/dist/components/ActionList/ActionList.stories.js +49 -38
- package/dist/components/ActionList/ActionList.stories.js.map +1 -1
- package/dist/components/ActionList/ActionList.test.js +97 -57
- package/dist/components/ActionList/ActionList.test.js.map +1 -1
- package/dist/components/ActionList/index.js +2 -5
- package/dist/components/AppStatusBar/AppStatusBar.js +2 -13
- package/dist/components/AppStatusBar/AppStatusBar.stories.js +25 -26
- package/dist/components/AppStatusBar/AppStatusBar.stories.js.map +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +17 -8
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
- package/dist/components/AppStatusBar/index.js +2 -5
- package/dist/components/Attention/Attention.js +2 -12
- package/dist/components/Attention/Attention.stories.js +18 -16
- package/dist/components/Attention/Attention.stories.js.map +1 -1
- package/dist/components/Attention/Attention.test.js +14 -8
- package/dist/components/Attention/Attention.test.js.map +1 -1
- package/dist/components/Attention/index.js +2 -5
- package/dist/components/Backdrop/Backdrop.js +2 -8
- package/dist/components/Backdrop/Backdrop.stories.js +32 -28
- package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +13 -7
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
- package/dist/components/Backdrop/index.js +2 -5
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -26
- package/dist/components/ButtonGroup/ButtonGroup.stories.js +29 -39
- package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
- package/dist/components/ButtonGroup/index.js +2 -5
- package/dist/components/Buttons/Button.js +16 -22
- package/dist/components/Buttons/Button.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +43 -56
- package/dist/components/Buttons/Button.stories.js.map +1 -1
- package/dist/components/Buttons/Button.test.js +60 -33
- package/dist/components/Buttons/Button.test.js.map +1 -1
- package/dist/components/Buttons/LinkButton.js +14 -11
- package/dist/components/Buttons/LinkButton.js.map +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +41 -57
- package/dist/components/Buttons/LinkButton.stories.js.map +1 -1
- package/dist/components/Buttons/LinkButton.test.js +71 -65
- package/dist/components/Buttons/LinkButton.test.js.map +1 -1
- package/dist/components/Buttons/MenuButton.js +18 -15
- package/dist/components/Buttons/MenuButton.js.map +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +45 -61
- package/dist/components/Buttons/MenuButton.stories.js.map +1 -1
- package/dist/components/Buttons/MenuButton.test.js +70 -64
- package/dist/components/Buttons/MenuButton.test.js.map +1 -1
- package/dist/components/Buttons/index.js +4 -9
- package/dist/components/Card/Card.js +2 -39
- package/dist/components/Card/Card.stories.js +42 -49
- package/dist/components/Card/Card.stories.js.map +1 -1
- package/dist/components/Card/Card.test.js +14 -8
- package/dist/components/Card/Card.test.js.map +1 -1
- package/dist/components/Card/index.js +2 -5
- package/dist/components/Checkbox/Checkbox.js +2 -9
- package/dist/components/Checkbox/Checkbox.stories.js +44 -41
- package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +21 -15
- package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/components/Checkbox/index.js +2 -5
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +2 -114
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +277 -310
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +71 -85
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/index.js +2 -5
- package/dist/components/CheckboxTree/CheckboxTree.js +3 -172
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +89 -139
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/CheckboxTree/index.js +3 -5
- package/dist/components/Chip/Chip.js +2 -14
- package/dist/components/Chip/Chip.stories.js +24 -28
- package/dist/components/Chip/Chip.stories.js.map +1 -1
- package/dist/components/Chip/index.js +2 -5
- package/dist/components/ControlsButton/ControlsButton.js +2 -82
- package/dist/components/ControlsButton/ControlsButton.stories.js +98 -122
- package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
- package/dist/components/ControlsButton/index.js +2 -5
- package/dist/components/CopyableText/CopyableText.js +2 -64
- package/dist/components/CopyableText/CopyableText.stories.js +36 -35
- package/dist/components/CopyableText/CopyableText.stories.js.map +1 -1
- package/dist/components/CopyableText/index.js +2 -5
- package/dist/components/Drawer/Drawer.js +2 -62
- package/dist/components/Drawer/Drawer.stories.js +49 -68
- package/dist/components/Drawer/Drawer.stories.js.map +1 -1
- package/dist/components/Drawer/index.js +2 -5
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +2 -50
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +17 -18
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
- package/dist/components/EmptyStateDataDisplay/index.js +2 -5
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +2 -57
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +57 -50
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js.map +1 -1
- package/dist/components/ExpandableInfoPanel/index.js +2 -5
- package/dist/components/FeedbackBar/FeedbackBar.js +2 -30
- package/dist/components/FeedbackBar/FeedbackBar.stories.js +30 -33
- package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +18 -12
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
- package/dist/components/FeedbackBar/index.js +2 -5
- package/dist/components/FeedbackBox/FeedbackBox.js +2 -31
- package/dist/components/FeedbackBox/FeedbackBox.stories.js +30 -34
- package/dist/components/FeedbackBox/FeedbackBox.stories.js.map +1 -1
- package/dist/components/FeedbackBox/index.js +2 -5
- package/dist/components/FieldHint/FieldHint.js +2 -15
- package/dist/components/FieldHint/FieldHint.stories.js +27 -35
- package/dist/components/FieldHint/FieldHint.stories.js.map +1 -1
- package/dist/components/FieldHint/index.js +2 -5
- package/dist/components/Fieldset/Fieldset.js +2 -32
- package/dist/components/Fieldset/Fieldset.stories.js +40 -46
- package/dist/components/Fieldset/Fieldset.stories.js.map +1 -1
- package/dist/components/Fieldset/index.js +2 -5
- package/dist/components/FormField/FormField.js +2 -23
- package/dist/components/FormField/FormField.stories.js +40 -45
- package/dist/components/FormField/FormField.stories.js.map +1 -1
- package/dist/components/FormField/index.js +2 -5
- package/dist/components/FormInput/FormInput.js +3 -79
- package/dist/components/FormInput/FormInput.stories.js +60 -40
- package/dist/components/FormInput/FormInput.stories.js.map +1 -1
- package/dist/components/FormInput/index.js +3 -5
- package/dist/components/GridRow/Column/Column.js +2 -7
- package/dist/components/GridRow/Column/index.js +2 -5
- package/dist/components/GridRow/GridRow.js +27 -38
- package/dist/components/GridRow/GridRow.js.map +1 -1
- package/dist/components/GridRow/GridRow.stories.js +198 -95
- package/dist/components/GridRow/GridRow.stories.js.map +1 -1
- package/dist/components/GridRow/index.js +2 -5
- package/dist/components/HorizontalList/HorizontalList.js +2 -13
- package/dist/components/HorizontalList/HorizontalList.stories.js +44 -46
- package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -1
- package/dist/components/HorizontalList/index.js +2 -5
- package/dist/components/Icon/Icon.js +16 -9
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/Icon.stories.js +47 -50
- package/dist/components/Icon/Icon.stories.js.map +1 -1
- package/dist/components/Icon/icons/index.js +2 -672
- package/dist/components/Icon/index.js +2 -5
- package/dist/components/IconButton/IconButton.js +2 -28
- package/dist/components/IconButton/IconButton.stories.js +55 -58
- package/dist/components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/components/IconButton/index.js +2 -5
- package/dist/components/InfoBanner/InfoBanner.js +2 -12
- package/dist/components/InfoBanner/InfoBanner.stories.js +18 -22
- package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
- package/dist/components/InfoBanner/index.js +2 -5
- package/dist/components/InfoMessage/InfoMessage.js +2 -23
- package/dist/components/InfoMessage/InfoMessage.stories.js +21 -26
- package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
- package/dist/components/InfoMessage/index.js +2 -5
- package/dist/components/Input/Input.js +2 -28
- package/dist/components/Input/Input.stories.js +31 -50
- package/dist/components/Input/Input.stories.js.map +1 -1
- package/dist/components/Input/index.js +2 -5
- package/dist/components/InputField/InputField.js +2 -70
- package/dist/components/InputField/InputField.stories.js +81 -109
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/InputField/index.js +2 -5
- package/dist/components/Label/Label.js +2 -24
- package/dist/components/Label/Label.stories.js +26 -37
- package/dist/components/Label/Label.stories.js.map +1 -1
- package/dist/components/Label/Label.test.js +35 -20
- package/dist/components/Label/Label.test.js.map +1 -1
- package/dist/components/Label/index.js +2 -5
- package/dist/components/MenuLink/MenuLink.js +2 -25
- package/dist/components/MenuLink/MenuLink.stories.js +64 -27
- package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
- package/dist/components/MenuLink/index.js +2 -5
- package/dist/components/MetaDataBar/MetaDataBar.js +2 -13
- package/dist/components/MetaDataBar/MetaDataBar.stories.js +20 -20
- package/dist/components/MetaDataBar/MetaDataBar.stories.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +26 -16
- package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
- package/dist/components/MetaDataBar/index.js +2 -5
- package/dist/components/MetaDataList/MetaDataList.js +2 -14
- package/dist/components/MetaDataList/MetaDataList.stories.js +21 -23
- package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
- package/dist/components/MetaDataList/index.js +2 -5
- package/dist/components/ModalDialog/ModalDialog.js +2 -130
- package/dist/components/ModalDialog/ModalDialog.stories.js +80 -93
- package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
- package/dist/components/ModalDialog/index.js +2 -5
- package/dist/components/MultiSelect/MultiSelect.js +3 -8
- package/dist/components/MultiSelect/MultiSelect.stories.js +83 -93
- package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -34
- package/dist/components/MultiSelect/components/MultiSelectItem.js +2 -9
- package/dist/components/MultiSelect/index.js +3 -5
- package/dist/components/MultiSelectBox/MultiSelectBox.js +2 -207
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +101 -70
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +54 -29
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/MultiSelectBox/index.js +2 -5
- package/dist/components/Notification/Notification.js +2 -58
- package/dist/components/Notification/Notification.stories.js +43 -40
- package/dist/components/Notification/Notification.stories.js.map +1 -1
- package/dist/components/Notification/Notification.test.js +24 -10
- package/dist/components/Notification/Notification.test.js.map +1 -1
- package/dist/components/Notification/index.js +2 -5
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js +2 -25
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +30 -29
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
- package/dist/components/OverlayCloseButton/index.js +2 -5
- package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -57
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +44 -49
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js.map +1 -1
- package/dist/components/OverlayStepBar/index.js +2 -5
- package/dist/components/PageOverlay/PageOverlay.js +2 -114
- package/dist/components/PageOverlay/PageOverlay.stories.js +155 -163
- package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
- package/dist/components/PageOverlay/index.js +2 -5
- package/dist/components/PeriodSelector/PeriodSelector.js +3 -96
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +27 -24
- package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
- package/dist/components/PeriodSelector/index.js +3 -5
- package/dist/components/Periods/Periods.js +2 -46
- package/dist/components/Periods/Periods.stories.js +53 -60
- package/dist/components/Periods/Periods.stories.js.map +1 -1
- package/dist/components/Periods/index.js +2 -5
- package/dist/components/ProgrammeCard/ProgrammeCard.js +2 -29
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +71 -80
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/ProgrammeCard/index.js +2 -5
- package/dist/components/RadioButton/RadioButton.js +2 -26
- package/dist/components/RadioButton/RadioButton.stories.js +30 -40
- package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
- package/dist/components/RadioButton/index.js +2 -5
- package/dist/components/RadioGroup/RadioGroup.js +2 -52
- package/dist/components/RadioGroup/RadioGroup.stories.js +39 -46
- package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +46 -22
- package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
- package/dist/components/RadioGroup/index.js +2 -5
- package/dist/components/RadioTabSelector/RadioTabSelector.js +3 -94
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +76 -74
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
- package/dist/components/RadioTabSelector/index.js +3 -5
- package/dist/components/Repeater/Repeater.js +2 -19
- package/dist/components/Repeater/Repeater.stories.js +32 -42
- package/dist/components/Repeater/Repeater.stories.js.map +1 -1
- package/dist/components/Repeater/index.js +2 -5
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -43
- package/dist/components/RteEditor/EditorHeader/index.js +3 -5
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +45 -47
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +2 -108
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +2 -5
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +150 -194
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +3 -81
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -38
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +2 -95
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +3 -217
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +2 -12
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +75 -83
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +2 -31
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +2 -14
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -36
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +2 -133
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -42
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +69 -92
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +4 -7
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -90
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/index.js +7 -21
- package/dist/components/RteEditor/Providers/LanguageProvider.js +22 -17
- package/dist/components/RteEditor/Providers/LanguageProvider.js.map +1 -1
- package/dist/components/RteEditor/RteEditor.js +3 -871
- package/dist/components/RteEditor/RteEditor.stories.js +160 -207
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +41 -40
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/index.js +2 -5
- package/dist/components/RteEditor/helpers.js +33 -40
- package/dist/components/RteEditor/helpers.js.map +1 -1
- package/dist/components/RteEditor/hooks/components/Flyout.js +2 -11
- package/dist/components/RteEditor/hooks/useFlyout.js +35 -23
- package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
- package/dist/components/RteEditor/hooks/useTranslation.js +9 -8
- package/dist/components/RteEditor/hooks/useTranslation.js.map +1 -1
- package/dist/components/RteEditor/index.js +3 -6
- package/dist/components/RteEditor/mockCatalogueSearchData.js +484 -484
- package/dist/components/RteEditor/mockCatalogueSearchData.js.map +1 -1
- package/dist/components/RteEditor/mockRteContent.js +6 -100
- package/dist/components/RteEditor/mockRteContent.js.map +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +98 -122
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/index.js +2 -11
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +58 -72
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js.map +1 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.js +2 -10
- package/dist/components/RteEditor/nodes/index.js +3 -18
- package/dist/components/RteEditor/translations.js +216 -215
- package/dist/components/RteEditor/translations.js.map +1 -1
- package/dist/components/SearchField/SearchField.js +104 -105
- package/dist/components/SearchField/SearchField.js.map +1 -1
- package/dist/components/SearchField/SearcheField.stories.js +89 -118
- package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
- package/dist/components/SearchField/components/ResultOptionBox.js +19 -12
- package/dist/components/SearchField/components/ResultOptionBox.js.map +1 -1
- package/dist/components/SearchField/components/ResultsOption.js +50 -55
- package/dist/components/SearchField/components/ResultsOption.js.map +1 -1
- package/dist/components/SearchField/index.js +2 -5
- package/dist/components/SearchField/mockData.js +136 -135
- package/dist/components/SearchField/mockData.js.map +1 -1
- package/dist/components/SectionNotification/SectionNotification.js +2 -18
- package/dist/components/SectionNotification/SectionNotification.stories.js +21 -24
- package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
- package/dist/components/SectionNotification/index.js +2 -5
- package/dist/components/SelectListbox/SelectListBox.stories.js +3415 -248
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectListbox.js +45 -56
- package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +42 -43
- package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js +63 -77
- package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectContainer.js +22 -21
- package/dist/components/SelectListbox/components/SelectContainer.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +69 -66
- package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectOptionBox.js +28 -30
- package/dist/components/SelectListbox/components/SelectOptionBox.js.map +1 -1
- package/dist/components/SelectListbox/index.js +2 -5
- package/dist/components/Slider/Slider.js +2 -113
- package/dist/components/Slider/Slider.stories.js +59 -38
- package/dist/components/Slider/Slider.stories.js.map +1 -1
- package/dist/components/Slider/index.js +2 -5
- package/dist/components/Sortable/Sortable.js +25 -41
- package/dist/components/Sortable/Sortable.js.map +1 -1
- package/dist/components/Sortable/Sortable.stories.js +79 -59
- package/dist/components/Sortable/Sortable.stories.js.map +1 -1
- package/dist/components/Sortable/SortableProvider.js +2 -10
- package/dist/components/Sortable/actions.js +24 -32
- package/dist/components/Sortable/actions.js.map +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +2 -9
- package/dist/components/Sortable/components/SortableHandle.js +13 -9
- package/dist/components/Sortable/components/SortableHandle.js.map +1 -1
- package/dist/components/Sortable/components/SortableItem.js +103 -113
- package/dist/components/Sortable/components/SortableItem.js.map +1 -1
- package/dist/components/Sortable/constants.js +6 -14
- package/dist/components/Sortable/constants.js.map +1 -1
- package/dist/components/Sortable/index.js +1 -4
- package/dist/components/Sortable/sortableReducer.js +76 -90
- package/dist/components/Sortable/sortableReducer.js.map +1 -1
- package/dist/components/Spinner/Spinner.js +2 -22
- package/dist/components/Spinner/Spinner.stories.js +21 -26
- package/dist/components/Spinner/Spinner.stories.js.map +1 -1
- package/dist/components/Spinner/index.js +2 -5
- package/dist/components/StatusBadge/StatusBadge.stories.js +18 -21
- package/dist/components/StatusBadge/StatusBadge.stories.js.map +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +19 -10
- package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
- package/dist/components/StatusBadge/StatusBage.js +2 -10
- package/dist/components/StatusBadge/index.js +2 -5
- package/dist/components/StatusPill/StatusPill.js +2 -35
- package/dist/components/StatusPill/StatusPill.stories.js +20 -20
- package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
- package/dist/components/StatusPill/index.js +2 -5
- package/dist/components/TextArea/TextArea.js +2 -65
- package/dist/components/TextArea/TextArea.stories.js +30 -31
- package/dist/components/TextArea/TextArea.stories.js.map +1 -1
- package/dist/components/TextArea/TextArea.test.js +38 -22
- package/dist/components/TextArea/TextArea.test.js.map +1 -1
- package/dist/components/TextArea/index.js +2 -5
- package/dist/components/ToggleSwitch/ToggleSwitch.js +2 -66
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +20 -26
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js.map +1 -1
- package/dist/components/ToggleSwitch/index.js +2 -5
- package/dist/components/Tooltip/Tooltip.js +2 -75
- package/dist/components/Tooltip/Tooltip.stories.js +27 -32
- package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/components/Tooltip/index.js +2 -5
- package/dist/components/VarIndicator/VarIndicator.js +2 -62
- package/dist/components/VarIndicator/VarIndicator.stories.js +31 -30
- package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +72 -54
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/VarIndicator/index.js +2 -5
- package/dist/components/WeekSelector/WeekSelector.js +89 -97
- package/dist/components/WeekSelector/WeekSelector.js.map +1 -1
- package/dist/components/WeekSelector/WeekSelector.stories.js +146 -191
- package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorButton.js +20 -22
- package/dist/components/WeekSelector/components/WeekSelectorButton.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.js +72 -85
- package/dist/components/WeekSelector/components/WeekSelectorOption.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js +30 -17
- package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js.map +1 -1
- package/dist/components/WeekSelector/index.js +2 -5
- package/dist/components/WeekSelector/mockdata.js +470 -469
- package/dist/components/WeekSelector/mockdata.js.map +1 -1
- package/dist/components/hooks/useDebounce.js +17 -16
- package/dist/components/hooks/useDebounce.js.map +1 -1
- package/dist/components/hooks/useOnClickOutside.js +15 -14
- package/dist/components/hooks/useOnClickOutside.js.map +1 -1
- package/dist/components/hooks/usePositionedFloaters.js +66 -71
- package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
- package/dist/components/hooks/useResponsive.js +36 -32
- package/dist/components/hooks/useResponsive.js.map +1 -1
- package/dist/components/index.js +64 -139
- package/dist/components-DVUYdcHS.js +1992 -0
- package/dist/components-DVUYdcHS.js.map +1 -0
- package/dist/dist-D6qYwmKD.js +2005 -0
- package/dist/dist-D6qYwmKD.js.map +1 -0
- package/dist/esm-Cmy7DlsJ.js +2781 -0
- package/dist/esm-Cmy7DlsJ.js.map +1 -0
- package/dist/helpers-DcFTH1J1.js +34 -0
- package/dist/helpers-DcFTH1J1.js.map +1 -0
- package/dist/icons-TRhI-4V6.js +2681 -0
- package/dist/icons-TRhI-4V6.js.map +1 -0
- package/dist/index.js +64 -139
- package/dist/lib-6BbFZdI7.js +5595 -0
- package/dist/lib-6BbFZdI7.js.map +1 -0
- package/dist/react-18-PI4Gvl2f.js +43 -0
- package/dist/react-18-PI4Gvl2f.js.map +1 -0
- package/dist/react.esm-Cev8dB-E.js +3297 -0
- package/dist/react.esm-Cev8dB-E.js.map +1 -0
- package/dist/setupTests.js +1226 -36
- package/dist/setupTests.js.map +1 -1
- package/dist/storyComponents/ClipboardButton/ClipboardButton.js +2 -45
- package/dist/storyComponents/ClipboardButton/index.js +2 -5
- package/dist/storyComponents/Container/Container.js +2 -40
- package/dist/storyComponents/Container/index.js +2 -5
- package/dist/storybook__react.d.js +6939 -7524
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/test-CPFNM-bL.js +21586 -0
- package/dist/test-CPFNM-bL.js.map +1 -0
- package/dist/test-utils-BSs0eZfL.js +21 -0
- package/dist/test-utils-BSs0eZfL.js.map +1 -0
- package/dist/types/UserInterface.js +0 -2
- package/dist/vite-env.d.js +0 -2
- package/package.json +22 -22
- package/dist/Button.module-S1-6tV9o.js +0 -16
- package/dist/Button.module-S1-6tV9o.js.map +0 -1
- package/dist/Column-BL3dsYxn.js +0 -101
- package/dist/Column-BL3dsYxn.js.map +0 -1
- package/dist/Lexical.prod-o6Eq_uLx.js +0 -5202
- package/dist/Lexical.prod-o6Eq_uLx.js.map +0 -1
- package/dist/LexicalClipboard.prod-CnUrf2_p.js +0 -265
- package/dist/LexicalClipboard.prod-CnUrf2_p.js.map +0 -1
- package/dist/LexicalComposerContext.prod-DOyoZx0P.js +0 -22
- package/dist/LexicalComposerContext.prod-DOyoZx0P.js.map +0 -1
- package/dist/LexicalExtension.prod-CanXuzFO.js +0 -551
- package/dist/LexicalExtension.prod-CanXuzFO.js.map +0 -1
- package/dist/LexicalLink.prod-DAVbKER8.js +0 -561
- package/dist/LexicalLink.prod-DAVbKER8.js.map +0 -1
- package/dist/LexicalList.prod-C6cknPBV.js +0 -632
- package/dist/LexicalList.prod-C6cknPBV.js.map +0 -1
- package/dist/LexicalSelection.prod-B8GGrzJ3.js +0 -116
- package/dist/LexicalSelection.prod-B8GGrzJ3.js.map +0 -1
- package/dist/LexicalTable.prod-upbwOtcE.js +0 -1892
- package/dist/LexicalTable.prod-upbwOtcE.js.map +0 -1
- package/dist/LexicalUtils.prod-CF7x-KWm.js +0 -134
- package/dist/LexicalUtils.prod-CF7x-KWm.js.map +0 -1
- package/dist/MultiSelectItem-BzBmsKof.js +0 -24
- package/dist/MultiSelectItem-BzBmsKof.js.map +0 -1
- package/dist/RteEditor.module-CoTOIw5i.js +0 -41
- package/dist/RteEditor.module-CoTOIw5i.js.map +0 -1
- package/dist/SearchField.module-CMUEgX7d.js +0 -17
- package/dist/SearchField.module-CMUEgX7d.js.map +0 -1
- package/dist/SelectListbox.module-CXqMuXRB.js +0 -29
- package/dist/SelectListbox.module-CXqMuXRB.js.map +0 -1
- package/dist/Sortable.module-DCVXxKnw.js +0 -26
- package/dist/Sortable.module-DCVXxKnw.js.map +0 -1
- package/dist/SortableProvider-BbwlEPIr.js +0 -160
- package/dist/SortableProvider-BbwlEPIr.js.map +0 -1
- package/dist/TableCellResizerPlugin-qMtSAoKT.js +0 -248
- package/dist/TableCellResizerPlugin-qMtSAoKT.js.map +0 -1
- package/dist/TablePlugin-BRZcXq73.js +0 -308
- package/dist/TablePlugin-BRZcXq73.js.map +0 -1
- package/dist/WeekSelector.module-Clco7jTs.js +0 -17
- package/dist/WeekSelector.module-Clco7jTs.js.map +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
- package/dist/assets/CheckboxTree.css +0 -1
- package/dist/assets/EditorHeader.css +0 -1
- package/dist/assets/FormInput.css +0 -1
- package/dist/assets/PeriodSelector.css +0 -1
- package/dist/assets/RadioTabSelector.css +0 -1
- package/dist/assets/TablePlugin.css +0 -1
- package/dist/chunk-OPOZOKLO-nJkI9rUN.js +0 -4508
- package/dist/chunk-OPOZOKLO-nJkI9rUN.js.map +0 -1
- package/dist/client-D5eE1v54.js +0 -27222
- package/dist/client-D5eE1v54.js.map +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -17
- package/dist/clsx-OuTLNxxd.js.map +0 -1
- package/dist/components/Accordion/Accordion.js.map +0 -1
- package/dist/components/Accordion/index.js.map +0 -1
- package/dist/components/AccordionCard/AccordionCard.js.map +0 -1
- package/dist/components/AccordionCard/index.js.map +0 -1
- package/dist/components/ActionList/ActionList.js.map +0 -1
- package/dist/components/ActionList/index.js.map +0 -1
- package/dist/components/AppStatusBar/AppStatusBar.js.map +0 -1
- package/dist/components/AppStatusBar/index.js.map +0 -1
- package/dist/components/Attention/Attention.js.map +0 -1
- package/dist/components/Attention/index.js.map +0 -1
- package/dist/components/Backdrop/Backdrop.js.map +0 -1
- package/dist/components/Backdrop/index.js.map +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.js.map +0 -1
- package/dist/components/ButtonGroup/index.js.map +0 -1
- package/dist/components/Buttons/index.js.map +0 -1
- package/dist/components/Card/Card.js.map +0 -1
- package/dist/components/Card/index.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +0 -1
- package/dist/components/CheckboxButtonBar/index.js.map +0 -1
- package/dist/components/CheckboxTree/CheckboxTree.js.map +0 -1
- package/dist/components/CheckboxTree/index.js.map +0 -1
- package/dist/components/Chip/Chip.js.map +0 -1
- package/dist/components/Chip/index.js.map +0 -1
- package/dist/components/ControlsButton/ControlsButton.js.map +0 -1
- package/dist/components/ControlsButton/index.js.map +0 -1
- package/dist/components/CopyableText/CopyableText.js.map +0 -1
- package/dist/components/CopyableText/index.js.map +0 -1
- package/dist/components/Drawer/Drawer.js.map +0 -1
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js.map +0 -1
- package/dist/components/EmptyStateDataDisplay/index.js.map +0 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js.map +0 -1
- package/dist/components/ExpandableInfoPanel/index.js.map +0 -1
- package/dist/components/FeedbackBar/FeedbackBar.js.map +0 -1
- package/dist/components/FeedbackBar/index.js.map +0 -1
- package/dist/components/FeedbackBox/FeedbackBox.js.map +0 -1
- package/dist/components/FeedbackBox/index.js.map +0 -1
- package/dist/components/FieldHint/FieldHint.js.map +0 -1
- package/dist/components/FieldHint/index.js.map +0 -1
- package/dist/components/Fieldset/Fieldset.js.map +0 -1
- package/dist/components/Fieldset/index.js.map +0 -1
- package/dist/components/FormField/FormField.js.map +0 -1
- package/dist/components/FormField/index.js.map +0 -1
- package/dist/components/FormInput/FormInput.js.map +0 -1
- package/dist/components/FormInput/index.js.map +0 -1
- package/dist/components/GridRow/Column/Column.js.map +0 -1
- package/dist/components/GridRow/Column/index.js.map +0 -1
- package/dist/components/GridRow/index.js.map +0 -1
- package/dist/components/HorizontalList/HorizontalList.js.map +0 -1
- package/dist/components/HorizontalList/index.js.map +0 -1
- package/dist/components/Icon/icons/index.js.map +0 -1
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/IconButton/IconButton.js.map +0 -1
- package/dist/components/IconButton/index.js.map +0 -1
- package/dist/components/InfoBanner/InfoBanner.js.map +0 -1
- package/dist/components/InfoBanner/index.js.map +0 -1
- package/dist/components/InfoMessage/InfoMessage.js.map +0 -1
- package/dist/components/InfoMessage/index.js.map +0 -1
- package/dist/components/Input/Input.js.map +0 -1
- package/dist/components/Input/index.js.map +0 -1
- package/dist/components/InputField/InputField.js.map +0 -1
- package/dist/components/InputField/index.js.map +0 -1
- package/dist/components/Label/Label.js.map +0 -1
- package/dist/components/Label/index.js.map +0 -1
- package/dist/components/MenuLink/MenuLink.js.map +0 -1
- package/dist/components/MenuLink/index.js.map +0 -1
- package/dist/components/MetaDataBar/MetaDataBar.js.map +0 -1
- package/dist/components/MetaDataBar/index.js.map +0 -1
- package/dist/components/MetaDataList/MetaDataList.js.map +0 -1
- package/dist/components/MetaDataList/index.js.map +0 -1
- package/dist/components/ModalDialog/ModalDialog.js.map +0 -1
- package/dist/components/ModalDialog/index.js.map +0 -1
- package/dist/components/MultiSelect/MultiSelect.js.map +0 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +0 -1
- package/dist/components/MultiSelect/components/MultiSelectItem.js.map +0 -1
- package/dist/components/MultiSelect/index.js.map +0 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js.map +0 -1
- package/dist/components/MultiSelectBox/index.js.map +0 -1
- package/dist/components/Notification/Notification.js.map +0 -1
- package/dist/components/Notification/index.js.map +0 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js.map +0 -1
- package/dist/components/OverlayCloseButton/index.js.map +0 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js.map +0 -1
- package/dist/components/OverlayStepBar/index.js.map +0 -1
- package/dist/components/PageOverlay/PageOverlay.js.map +0 -1
- package/dist/components/PageOverlay/index.js.map +0 -1
- package/dist/components/PeriodSelector/PeriodSelector.js.map +0 -1
- package/dist/components/PeriodSelector/index.js.map +0 -1
- package/dist/components/Periods/Periods.js.map +0 -1
- package/dist/components/Periods/index.js.map +0 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.js.map +0 -1
- package/dist/components/ProgrammeCard/index.js.map +0 -1
- package/dist/components/RadioButton/RadioButton.js.map +0 -1
- package/dist/components/RadioButton/index.js.map +0 -1
- package/dist/components/RadioGroup/RadioGroup.js.map +0 -1
- package/dist/components/RadioGroup/index.js.map +0 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js.map +0 -1
- package/dist/components/RadioTabSelector/index.js.map +0 -1
- package/dist/components/Repeater/Repeater.js.map +0 -1
- package/dist/components/Repeater/index.js.map +0 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +0 -1
- package/dist/components/RteEditor/EditorHeader/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/index.js.map +0 -1
- package/dist/components/RteEditor/RteEditor.js.map +0 -1
- package/dist/components/RteEditor/UvaTheme/index.js.map +0 -1
- package/dist/components/RteEditor/hooks/components/Flyout.js.map +0 -1
- package/dist/components/RteEditor/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/index.js.map +0 -1
- package/dist/components/SearchField/index.js.map +0 -1
- package/dist/components/SectionNotification/SectionNotification.js.map +0 -1
- package/dist/components/SectionNotification/index.js.map +0 -1
- package/dist/components/SelectListbox/index.js.map +0 -1
- package/dist/components/Slider/Slider.js.map +0 -1
- package/dist/components/Slider/index.js.map +0 -1
- package/dist/components/Sortable/SortableProvider.js.map +0 -1
- package/dist/components/Sortable/components/SortableContainer.js.map +0 -1
- package/dist/components/Sortable/index.js.map +0 -1
- package/dist/components/Spinner/Spinner.js.map +0 -1
- package/dist/components/Spinner/index.js.map +0 -1
- package/dist/components/StatusBadge/StatusBage.js.map +0 -1
- package/dist/components/StatusBadge/index.js.map +0 -1
- package/dist/components/StatusPill/StatusPill.js.map +0 -1
- package/dist/components/StatusPill/index.js.map +0 -1
- package/dist/components/TextArea/TextArea.js.map +0 -1
- package/dist/components/TextArea/index.js.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js.map +0 -1
- package/dist/components/ToggleSwitch/index.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/Tooltip/index.js.map +0 -1
- package/dist/components/VarIndicator/VarIndicator.js.map +0 -1
- package/dist/components/VarIndicator/index.js.map +0 -1
- package/dist/components/WeekSelector/index.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/index-B_q_4aBT.js +0 -24946
- package/dist/index-B_q_4aBT.js.map +0 -1
- package/dist/index-CULNJwuI.js +0 -2355
- package/dist/index-CULNJwuI.js.map +0 -1
- package/dist/index-D6WVIfcJ.js +0 -6039
- package/dist/index-D6WVIfcJ.js.map +0 -1
- package/dist/index-YdDr6J97.js +0 -3099
- package/dist/index-YdDr6J97.js.map +0 -1
- package/dist/index-yEhaxKq-.js +0 -238
- package/dist/index-yEhaxKq-.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/react-18-CxCoNkIN.js +0 -41
- package/dist/react-18-CxCoNkIN.js.map +0 -1
- package/dist/react.esm-C68fQMAi.js +0 -4237
- package/dist/react.esm-C68fQMAi.js.map +0 -1
- package/dist/storyComponents/ClipboardButton/ClipboardButton.js.map +0 -1
- package/dist/storyComponents/ClipboardButton/index.js.map +0 -1
- package/dist/storyComponents/Container/Container.js.map +0 -1
- package/dist/storyComponents/Container/index.js.map +0 -1
- package/dist/test-utils-BcpWLsLH.js +0 -56
- package/dist/test-utils-BcpWLsLH.js.map +0 -1
- package/dist/types/UserInterface.js.map +0 -1
- package/dist/vite-env.d.js.map +0 -1
|
@@ -1,4237 +0,0 @@
|
|
|
1
|
-
import * as Ie from "react";
|
|
2
|
-
import { a as Pr } from "./test-utils-BcpWLsLH.js";
|
|
3
|
-
import je from "react-dom";
|
|
4
|
-
import { c as It } from "./client-D5eE1v54.js";
|
|
5
|
-
import { l as K } from "./index-D6WVIfcJ.js";
|
|
6
|
-
import { g as Lr } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
|
-
var X = {}, ke = { exports: {} };
|
|
8
|
-
ke.exports;
|
|
9
|
-
var xt;
|
|
10
|
-
function er() {
|
|
11
|
-
return xt || (xt = 1, (function(e) {
|
|
12
|
-
const r = (c = 0) => (u) => `\x1B[${38 + c};5;${u}m`, o = (c = 0) => (u, p, n) => `\x1B[${38 + c};2;${u};${p};${n}m`;
|
|
13
|
-
function s() {
|
|
14
|
-
const c = /* @__PURE__ */ new Map(), u = {
|
|
15
|
-
modifier: {
|
|
16
|
-
reset: [0, 0],
|
|
17
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
18
|
-
bold: [1, 22],
|
|
19
|
-
dim: [2, 22],
|
|
20
|
-
italic: [3, 23],
|
|
21
|
-
underline: [4, 24],
|
|
22
|
-
overline: [53, 55],
|
|
23
|
-
inverse: [7, 27],
|
|
24
|
-
hidden: [8, 28],
|
|
25
|
-
strikethrough: [9, 29]
|
|
26
|
-
},
|
|
27
|
-
color: {
|
|
28
|
-
black: [30, 39],
|
|
29
|
-
red: [31, 39],
|
|
30
|
-
green: [32, 39],
|
|
31
|
-
yellow: [33, 39],
|
|
32
|
-
blue: [34, 39],
|
|
33
|
-
magenta: [35, 39],
|
|
34
|
-
cyan: [36, 39],
|
|
35
|
-
white: [37, 39],
|
|
36
|
-
// Bright color
|
|
37
|
-
blackBright: [90, 39],
|
|
38
|
-
redBright: [91, 39],
|
|
39
|
-
greenBright: [92, 39],
|
|
40
|
-
yellowBright: [93, 39],
|
|
41
|
-
blueBright: [94, 39],
|
|
42
|
-
magentaBright: [95, 39],
|
|
43
|
-
cyanBright: [96, 39],
|
|
44
|
-
whiteBright: [97, 39]
|
|
45
|
-
},
|
|
46
|
-
bgColor: {
|
|
47
|
-
bgBlack: [40, 49],
|
|
48
|
-
bgRed: [41, 49],
|
|
49
|
-
bgGreen: [42, 49],
|
|
50
|
-
bgYellow: [43, 49],
|
|
51
|
-
bgBlue: [44, 49],
|
|
52
|
-
bgMagenta: [45, 49],
|
|
53
|
-
bgCyan: [46, 49],
|
|
54
|
-
bgWhite: [47, 49],
|
|
55
|
-
// Bright color
|
|
56
|
-
bgBlackBright: [100, 49],
|
|
57
|
-
bgRedBright: [101, 49],
|
|
58
|
-
bgGreenBright: [102, 49],
|
|
59
|
-
bgYellowBright: [103, 49],
|
|
60
|
-
bgBlueBright: [104, 49],
|
|
61
|
-
bgMagentaBright: [105, 49],
|
|
62
|
-
bgCyanBright: [106, 49],
|
|
63
|
-
bgWhiteBright: [107, 49]
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
u.color.gray = u.color.blackBright, u.bgColor.bgGray = u.bgColor.bgBlackBright, u.color.grey = u.color.blackBright, u.bgColor.bgGrey = u.bgColor.bgBlackBright;
|
|
67
|
-
for (const [p, n] of Object.entries(u)) {
|
|
68
|
-
for (const [a, l] of Object.entries(n))
|
|
69
|
-
u[a] = {
|
|
70
|
-
open: `\x1B[${l[0]}m`,
|
|
71
|
-
close: `\x1B[${l[1]}m`
|
|
72
|
-
}, n[a] = u[a], c.set(l[0], l[1]);
|
|
73
|
-
Object.defineProperty(u, p, {
|
|
74
|
-
value: n,
|
|
75
|
-
enumerable: !1
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
return Object.defineProperty(u, "codes", {
|
|
79
|
-
value: c,
|
|
80
|
-
enumerable: !1
|
|
81
|
-
}), u.color.close = "\x1B[39m", u.bgColor.close = "\x1B[49m", u.color.ansi256 = r(), u.color.ansi16m = o(), u.bgColor.ansi256 = r(10), u.bgColor.ansi16m = o(10), Object.defineProperties(u, {
|
|
82
|
-
rgbToAnsi256: {
|
|
83
|
-
value: (p, n, a) => p === n && n === a ? p < 8 ? 16 : p > 248 ? 231 : Math.round((p - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(p / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(a / 255 * 5),
|
|
84
|
-
enumerable: !1
|
|
85
|
-
},
|
|
86
|
-
hexToRgb: {
|
|
87
|
-
value: (p) => {
|
|
88
|
-
const n = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(p.toString(16));
|
|
89
|
-
if (!n)
|
|
90
|
-
return [0, 0, 0];
|
|
91
|
-
let { colorString: a } = n.groups;
|
|
92
|
-
a.length === 3 && (a = a.split("").map((i) => i + i).join(""));
|
|
93
|
-
const l = Number.parseInt(a, 16);
|
|
94
|
-
return [
|
|
95
|
-
l >> 16 & 255,
|
|
96
|
-
l >> 8 & 255,
|
|
97
|
-
l & 255
|
|
98
|
-
];
|
|
99
|
-
},
|
|
100
|
-
enumerable: !1
|
|
101
|
-
},
|
|
102
|
-
hexToAnsi256: {
|
|
103
|
-
value: (p) => u.rgbToAnsi256(...u.hexToRgb(p)),
|
|
104
|
-
enumerable: !1
|
|
105
|
-
}
|
|
106
|
-
}), u;
|
|
107
|
-
}
|
|
108
|
-
Object.defineProperty(e, "exports", {
|
|
109
|
-
enumerable: !0,
|
|
110
|
-
get: s
|
|
111
|
-
});
|
|
112
|
-
})(ke)), ke.exports;
|
|
113
|
-
}
|
|
114
|
-
var be = {}, Ot;
|
|
115
|
-
function He() {
|
|
116
|
-
if (Ot) return be;
|
|
117
|
-
Ot = 1, Object.defineProperty(be, "__esModule", {
|
|
118
|
-
value: !0
|
|
119
|
-
}), be.printIteratorEntries = t, be.printIteratorValues = r, be.printListItems = o, be.printObjectProperties = s;
|
|
120
|
-
const e = (c, u) => {
|
|
121
|
-
const p = Object.keys(c).sort(u);
|
|
122
|
-
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(c).forEach((n) => {
|
|
123
|
-
Object.getOwnPropertyDescriptor(c, n).enumerable && p.push(n);
|
|
124
|
-
}), p;
|
|
125
|
-
};
|
|
126
|
-
function t(c, u, p, n, a, l, i = ": ") {
|
|
127
|
-
let d = "", m = c.next();
|
|
128
|
-
if (!m.done) {
|
|
129
|
-
d += u.spacingOuter;
|
|
130
|
-
const E = p + u.indent;
|
|
131
|
-
for (; !m.done; ) {
|
|
132
|
-
const h = l(
|
|
133
|
-
m.value[0],
|
|
134
|
-
u,
|
|
135
|
-
E,
|
|
136
|
-
n,
|
|
137
|
-
a
|
|
138
|
-
), w = l(
|
|
139
|
-
m.value[1],
|
|
140
|
-
u,
|
|
141
|
-
E,
|
|
142
|
-
n,
|
|
143
|
-
a
|
|
144
|
-
);
|
|
145
|
-
d += E + h + i + w, m = c.next(), m.done ? u.min || (d += ",") : d += "," + u.spacingInner;
|
|
146
|
-
}
|
|
147
|
-
d += u.spacingOuter + p;
|
|
148
|
-
}
|
|
149
|
-
return d;
|
|
150
|
-
}
|
|
151
|
-
function r(c, u, p, n, a, l) {
|
|
152
|
-
let i = "", d = c.next();
|
|
153
|
-
if (!d.done) {
|
|
154
|
-
i += u.spacingOuter;
|
|
155
|
-
const m = p + u.indent;
|
|
156
|
-
for (; !d.done; )
|
|
157
|
-
i += m + l(d.value, u, m, n, a), d = c.next(), d.done ? u.min || (i += ",") : i += "," + u.spacingInner;
|
|
158
|
-
i += u.spacingOuter + p;
|
|
159
|
-
}
|
|
160
|
-
return i;
|
|
161
|
-
}
|
|
162
|
-
function o(c, u, p, n, a, l) {
|
|
163
|
-
let i = "";
|
|
164
|
-
if (c.length) {
|
|
165
|
-
i += u.spacingOuter;
|
|
166
|
-
const d = p + u.indent;
|
|
167
|
-
for (let m = 0; m < c.length; m++)
|
|
168
|
-
i += d, m in c && (i += l(c[m], u, d, n, a)), m < c.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
|
|
169
|
-
i += u.spacingOuter + p;
|
|
170
|
-
}
|
|
171
|
-
return i;
|
|
172
|
-
}
|
|
173
|
-
function s(c, u, p, n, a, l) {
|
|
174
|
-
let i = "";
|
|
175
|
-
const d = e(c, u.compareKeys);
|
|
176
|
-
if (d.length) {
|
|
177
|
-
i += u.spacingOuter;
|
|
178
|
-
const m = p + u.indent;
|
|
179
|
-
for (let E = 0; E < d.length; E++) {
|
|
180
|
-
const h = d[E], w = l(h, u, m, n, a), f = l(c[h], u, m, n, a);
|
|
181
|
-
i += m + w + ": " + f, E < d.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
|
|
182
|
-
}
|
|
183
|
-
i += u.spacingOuter + p;
|
|
184
|
-
}
|
|
185
|
-
return i;
|
|
186
|
-
}
|
|
187
|
-
return be;
|
|
188
|
-
}
|
|
189
|
-
var ee = {}, Mt;
|
|
190
|
-
function Dr() {
|
|
191
|
-
if (Mt) return ee;
|
|
192
|
-
Mt = 1, Object.defineProperty(ee, "__esModule", {
|
|
193
|
-
value: !0
|
|
194
|
-
}), ee.test = ee.serialize = ee.default = void 0;
|
|
195
|
-
var e = He(), t = (function() {
|
|
196
|
-
return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
197
|
-
})(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
|
|
198
|
-
const o = typeof r == "function" && r.for ? r.for("jest.asymmetricMatcher") : 1267621, s = " ", c = (a, l, i, d, m, E) => {
|
|
199
|
-
const h = a.toString();
|
|
200
|
-
return h === "ArrayContaining" || h === "ArrayNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "[" + (0, e.printListItems)(
|
|
201
|
-
a.sample,
|
|
202
|
-
l,
|
|
203
|
-
i,
|
|
204
|
-
d,
|
|
205
|
-
m,
|
|
206
|
-
E
|
|
207
|
-
) + "]" : h === "ObjectContaining" || h === "ObjectNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "{" + (0, e.printObjectProperties)(
|
|
208
|
-
a.sample,
|
|
209
|
-
l,
|
|
210
|
-
i,
|
|
211
|
-
d,
|
|
212
|
-
m,
|
|
213
|
-
E
|
|
214
|
-
) + "}" : h === "StringMatching" || h === "StringNotMatching" || h === "StringContaining" || h === "StringNotContaining" ? h + s + E(a.sample, l, i, d, m) : a.toAsymmetricMatcher();
|
|
215
|
-
};
|
|
216
|
-
ee.serialize = c;
|
|
217
|
-
const u = (a) => a && a.$$typeof === o;
|
|
218
|
-
ee.test = u;
|
|
219
|
-
var n = {
|
|
220
|
-
serialize: c,
|
|
221
|
-
test: u
|
|
222
|
-
};
|
|
223
|
-
return ee.default = n, ee;
|
|
224
|
-
}
|
|
225
|
-
var te = {}, Ze, _t;
|
|
226
|
-
function qr() {
|
|
227
|
-
return _t || (_t = 1, Ze = ({ onlyFirst: e = !1 } = {}) => {
|
|
228
|
-
const t = [
|
|
229
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
230
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
231
|
-
].join("|");
|
|
232
|
-
return new RegExp(t, e ? void 0 : "g");
|
|
233
|
-
}), Ze;
|
|
234
|
-
}
|
|
235
|
-
var Ct;
|
|
236
|
-
function jr() {
|
|
237
|
-
if (Ct) return te;
|
|
238
|
-
Ct = 1, Object.defineProperty(te, "__esModule", {
|
|
239
|
-
value: !0
|
|
240
|
-
}), te.test = te.serialize = te.default = void 0;
|
|
241
|
-
var e = r(qr()), t = r(er());
|
|
242
|
-
function r(n) {
|
|
243
|
-
return n && n.__esModule ? n : { default: n };
|
|
244
|
-
}
|
|
245
|
-
const o = (n) => n.replace((0, e.default)(), (a) => {
|
|
246
|
-
switch (a) {
|
|
247
|
-
case t.default.red.close:
|
|
248
|
-
case t.default.green.close:
|
|
249
|
-
case t.default.cyan.close:
|
|
250
|
-
case t.default.gray.close:
|
|
251
|
-
case t.default.white.close:
|
|
252
|
-
case t.default.yellow.close:
|
|
253
|
-
case t.default.bgRed.close:
|
|
254
|
-
case t.default.bgGreen.close:
|
|
255
|
-
case t.default.bgYellow.close:
|
|
256
|
-
case t.default.inverse.close:
|
|
257
|
-
case t.default.dim.close:
|
|
258
|
-
case t.default.bold.close:
|
|
259
|
-
case t.default.reset.open:
|
|
260
|
-
case t.default.reset.close:
|
|
261
|
-
return "</>";
|
|
262
|
-
case t.default.red.open:
|
|
263
|
-
return "<red>";
|
|
264
|
-
case t.default.green.open:
|
|
265
|
-
return "<green>";
|
|
266
|
-
case t.default.cyan.open:
|
|
267
|
-
return "<cyan>";
|
|
268
|
-
case t.default.gray.open:
|
|
269
|
-
return "<gray>";
|
|
270
|
-
case t.default.white.open:
|
|
271
|
-
return "<white>";
|
|
272
|
-
case t.default.yellow.open:
|
|
273
|
-
return "<yellow>";
|
|
274
|
-
case t.default.bgRed.open:
|
|
275
|
-
return "<bgRed>";
|
|
276
|
-
case t.default.bgGreen.open:
|
|
277
|
-
return "<bgGreen>";
|
|
278
|
-
case t.default.bgYellow.open:
|
|
279
|
-
return "<bgYellow>";
|
|
280
|
-
case t.default.inverse.open:
|
|
281
|
-
return "<inverse>";
|
|
282
|
-
case t.default.dim.open:
|
|
283
|
-
return "<dim>";
|
|
284
|
-
case t.default.bold.open:
|
|
285
|
-
return "<bold>";
|
|
286
|
-
default:
|
|
287
|
-
return "";
|
|
288
|
-
}
|
|
289
|
-
}), s = (n) => typeof n == "string" && !!n.match((0, e.default)());
|
|
290
|
-
te.test = s;
|
|
291
|
-
const c = (n, a, l, i, d, m) => m(o(n), a, l, i, d);
|
|
292
|
-
te.serialize = c;
|
|
293
|
-
var p = {
|
|
294
|
-
serialize: c,
|
|
295
|
-
test: s
|
|
296
|
-
};
|
|
297
|
-
return te.default = p, te;
|
|
298
|
-
}
|
|
299
|
-
var re = {}, Rt;
|
|
300
|
-
function kr() {
|
|
301
|
-
if (Rt) return re;
|
|
302
|
-
Rt = 1, Object.defineProperty(re, "__esModule", {
|
|
303
|
-
value: !0
|
|
304
|
-
}), re.test = re.serialize = re.default = void 0;
|
|
305
|
-
var e = He();
|
|
306
|
-
const t = " ", r = ["DOMStringMap", "NamedNodeMap"], o = /^(HTML\w*Collection|NodeList)$/, s = (l) => r.indexOf(l) !== -1 || o.test(l), c = (l) => l && l.constructor && !!l.constructor.name && s(l.constructor.name);
|
|
307
|
-
re.test = c;
|
|
308
|
-
const u = (l) => l.constructor.name === "NamedNodeMap", p = (l, i, d, m, E, h) => {
|
|
309
|
-
const w = l.constructor.name;
|
|
310
|
-
return ++m > i.maxDepth ? "[" + w + "]" : (i.min ? "" : w + t) + (r.indexOf(w) !== -1 ? "{" + (0, e.printObjectProperties)(
|
|
311
|
-
u(l) ? Array.from(l).reduce((f, A) => (f[A.name] = A.value, f), {}) : { ...l },
|
|
312
|
-
i,
|
|
313
|
-
d,
|
|
314
|
-
m,
|
|
315
|
-
E,
|
|
316
|
-
h
|
|
317
|
-
) + "}" : "[" + (0, e.printListItems)(
|
|
318
|
-
Array.from(l),
|
|
319
|
-
i,
|
|
320
|
-
d,
|
|
321
|
-
m,
|
|
322
|
-
E,
|
|
323
|
-
h
|
|
324
|
-
) + "]");
|
|
325
|
-
};
|
|
326
|
-
re.serialize = p;
|
|
327
|
-
var a = {
|
|
328
|
-
serialize: p,
|
|
329
|
-
test: c
|
|
330
|
-
};
|
|
331
|
-
return re.default = a, re;
|
|
332
|
-
}
|
|
333
|
-
var ne = {}, H = {}, Le = {}, Bt;
|
|
334
|
-
function Fr() {
|
|
335
|
-
if (Bt) return Le;
|
|
336
|
-
Bt = 1, Object.defineProperty(Le, "__esModule", {
|
|
337
|
-
value: !0
|
|
338
|
-
}), Le.default = e;
|
|
339
|
-
function e(t) {
|
|
340
|
-
return t.replace(/</g, "<").replace(/>/g, ">");
|
|
341
|
-
}
|
|
342
|
-
return Le;
|
|
343
|
-
}
|
|
344
|
-
var Nt;
|
|
345
|
-
function gt() {
|
|
346
|
-
if (Nt) return H;
|
|
347
|
-
Nt = 1, Object.defineProperty(H, "__esModule", {
|
|
348
|
-
value: !0
|
|
349
|
-
}), H.printText = H.printProps = H.printElementAsLeaf = H.printElement = H.printComment = H.printChildren = void 0;
|
|
350
|
-
var e = t(Fr());
|
|
351
|
-
function t(n) {
|
|
352
|
-
return n && n.__esModule ? n : { default: n };
|
|
353
|
-
}
|
|
354
|
-
const r = (n, a, l, i, d, m, E) => {
|
|
355
|
-
const h = i + l.indent, w = l.colors;
|
|
356
|
-
return n.map((f) => {
|
|
357
|
-
const A = a[f];
|
|
358
|
-
let I = E(A, l, h, d, m);
|
|
359
|
-
return typeof A != "string" && (I.indexOf(`
|
|
360
|
-
`) !== -1 && (I = l.spacingOuter + h + I + l.spacingOuter + i), I = "{" + I + "}"), l.spacingInner + i + w.prop.open + f + w.prop.close + "=" + w.value.open + I + w.value.close;
|
|
361
|
-
}).join("");
|
|
362
|
-
};
|
|
363
|
-
H.printProps = r;
|
|
364
|
-
const o = (n, a, l, i, d, m) => n.map(
|
|
365
|
-
(E) => a.spacingOuter + l + (typeof E == "string" ? s(E, a) : m(E, a, l, i, d))
|
|
366
|
-
).join("");
|
|
367
|
-
H.printChildren = o;
|
|
368
|
-
const s = (n, a) => {
|
|
369
|
-
const l = a.colors.content;
|
|
370
|
-
return l.open + (0, e.default)(n) + l.close;
|
|
371
|
-
};
|
|
372
|
-
H.printText = s;
|
|
373
|
-
const c = (n, a) => {
|
|
374
|
-
const l = a.colors.comment;
|
|
375
|
-
return l.open + "<!--" + (0, e.default)(n) + "-->" + l.close;
|
|
376
|
-
};
|
|
377
|
-
H.printComment = c;
|
|
378
|
-
const u = (n, a, l, i, d) => {
|
|
379
|
-
const m = i.colors.tag;
|
|
380
|
-
return m.open + "<" + n + (a && m.close + a + i.spacingOuter + d + m.open) + (l ? ">" + m.close + l + i.spacingOuter + d + m.open + "</" + n : (a && !i.min ? "" : " ") + "/") + ">" + m.close;
|
|
381
|
-
};
|
|
382
|
-
H.printElement = u;
|
|
383
|
-
const p = (n, a) => {
|
|
384
|
-
const l = a.colors.tag;
|
|
385
|
-
return l.open + "<" + n + l.close + " …" + l.open + " />" + l.close;
|
|
386
|
-
};
|
|
387
|
-
return H.printElementAsLeaf = p, H;
|
|
388
|
-
}
|
|
389
|
-
var Pt;
|
|
390
|
-
function $r() {
|
|
391
|
-
if (Pt) return ne;
|
|
392
|
-
Pt = 1, Object.defineProperty(ne, "__esModule", {
|
|
393
|
-
value: !0
|
|
394
|
-
}), ne.test = ne.serialize = ne.default = void 0;
|
|
395
|
-
var e = gt();
|
|
396
|
-
const t = 1, r = 3, o = 8, s = 11, c = /^((HTML|SVG)\w*)?Element$/, u = (h) => {
|
|
397
|
-
try {
|
|
398
|
-
return typeof h.hasAttribute == "function" && h.hasAttribute("is");
|
|
399
|
-
} catch {
|
|
400
|
-
return !1;
|
|
401
|
-
}
|
|
402
|
-
}, p = (h) => {
|
|
403
|
-
const w = h.constructor.name, { nodeType: f, tagName: A } = h, I = typeof A == "string" && A.includes("-") || u(h);
|
|
404
|
-
return f === t && (c.test(w) || I) || f === r && w === "Text" || f === o && w === "Comment" || f === s && w === "DocumentFragment";
|
|
405
|
-
}, n = (h) => {
|
|
406
|
-
var w;
|
|
407
|
-
return (h == null || (w = h.constructor) === null || w === void 0 ? void 0 : w.name) && p(h);
|
|
408
|
-
};
|
|
409
|
-
ne.test = n;
|
|
410
|
-
function a(h) {
|
|
411
|
-
return h.nodeType === r;
|
|
412
|
-
}
|
|
413
|
-
function l(h) {
|
|
414
|
-
return h.nodeType === o;
|
|
415
|
-
}
|
|
416
|
-
function i(h) {
|
|
417
|
-
return h.nodeType === s;
|
|
418
|
-
}
|
|
419
|
-
const d = (h, w, f, A, I, x) => {
|
|
420
|
-
if (a(h))
|
|
421
|
-
return (0, e.printText)(h.data, w);
|
|
422
|
-
if (l(h))
|
|
423
|
-
return (0, e.printComment)(h.data, w);
|
|
424
|
-
const M = i(h) ? "DocumentFragment" : h.tagName.toLowerCase();
|
|
425
|
-
return ++A > w.maxDepth ? (0, e.printElementAsLeaf)(M, w) : (0, e.printElement)(
|
|
426
|
-
M,
|
|
427
|
-
(0, e.printProps)(
|
|
428
|
-
i(h) ? [] : Array.from(h.attributes).map((y) => y.name).sort(),
|
|
429
|
-
i(h) ? {} : Array.from(h.attributes).reduce((y, g) => (y[g.name] = g.value, y), {}),
|
|
430
|
-
w,
|
|
431
|
-
f + w.indent,
|
|
432
|
-
A,
|
|
433
|
-
I,
|
|
434
|
-
x
|
|
435
|
-
),
|
|
436
|
-
(0, e.printChildren)(
|
|
437
|
-
Array.prototype.slice.call(h.childNodes || h.children),
|
|
438
|
-
w,
|
|
439
|
-
f + w.indent,
|
|
440
|
-
A,
|
|
441
|
-
I,
|
|
442
|
-
x
|
|
443
|
-
),
|
|
444
|
-
w,
|
|
445
|
-
f
|
|
446
|
-
);
|
|
447
|
-
};
|
|
448
|
-
ne.serialize = d;
|
|
449
|
-
var E = {
|
|
450
|
-
serialize: d,
|
|
451
|
-
test: n
|
|
452
|
-
};
|
|
453
|
-
return ne.default = E, ne;
|
|
454
|
-
}
|
|
455
|
-
var ie = {}, Lt;
|
|
456
|
-
function zr() {
|
|
457
|
-
if (Lt) return ie;
|
|
458
|
-
Lt = 1, Object.defineProperty(ie, "__esModule", {
|
|
459
|
-
value: !0
|
|
460
|
-
}), ie.test = ie.serialize = ie.default = void 0;
|
|
461
|
-
var e = He();
|
|
462
|
-
const t = "@@__IMMUTABLE_ITERABLE__@@", r = "@@__IMMUTABLE_LIST__@@", o = "@@__IMMUTABLE_KEYED__@@", s = "@@__IMMUTABLE_MAP__@@", c = "@@__IMMUTABLE_ORDERED__@@", u = "@@__IMMUTABLE_RECORD__@@", p = "@@__IMMUTABLE_SEQ__@@", n = "@@__IMMUTABLE_SET__@@", a = "@@__IMMUTABLE_STACK__@@", l = (g) => "Immutable." + g, i = (g) => "[" + g + "]", d = " ", m = "…", E = (g, v, C, R, B, N, S) => ++R > v.maxDepth ? i(l(S)) : l(S) + d + "{" + (0, e.printIteratorEntries)(
|
|
463
|
-
g.entries(),
|
|
464
|
-
v,
|
|
465
|
-
C,
|
|
466
|
-
R,
|
|
467
|
-
B,
|
|
468
|
-
N
|
|
469
|
-
) + "}";
|
|
470
|
-
function h(g) {
|
|
471
|
-
let v = 0;
|
|
472
|
-
return {
|
|
473
|
-
next() {
|
|
474
|
-
if (v < g._keys.length) {
|
|
475
|
-
const C = g._keys[v++];
|
|
476
|
-
return {
|
|
477
|
-
done: !1,
|
|
478
|
-
value: [C, g.get(C)]
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
return {
|
|
482
|
-
done: !0,
|
|
483
|
-
value: void 0
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
const w = (g, v, C, R, B, N) => {
|
|
489
|
-
const S = l(g._name || "Record");
|
|
490
|
-
return ++R > v.maxDepth ? i(S) : S + d + "{" + (0, e.printIteratorEntries)(
|
|
491
|
-
h(g),
|
|
492
|
-
v,
|
|
493
|
-
C,
|
|
494
|
-
R,
|
|
495
|
-
B,
|
|
496
|
-
N
|
|
497
|
-
) + "}";
|
|
498
|
-
}, f = (g, v, C, R, B, N) => {
|
|
499
|
-
const S = l("Seq");
|
|
500
|
-
return ++R > v.maxDepth ? i(S) : g[o] ? S + d + "{" + // from Immutable collection of entries or from ECMAScript object
|
|
501
|
-
(g._iter || g._object ? (0, e.printIteratorEntries)(
|
|
502
|
-
g.entries(),
|
|
503
|
-
v,
|
|
504
|
-
C,
|
|
505
|
-
R,
|
|
506
|
-
B,
|
|
507
|
-
N
|
|
508
|
-
) : m) + "}" : S + d + "[" + (g._iter || // from Immutable collection of values
|
|
509
|
-
g._array || // from ECMAScript array
|
|
510
|
-
g._collection || // from ECMAScript collection in immutable v4
|
|
511
|
-
g._iterable ? (0, e.printIteratorValues)(
|
|
512
|
-
g.values(),
|
|
513
|
-
v,
|
|
514
|
-
C,
|
|
515
|
-
R,
|
|
516
|
-
B,
|
|
517
|
-
N
|
|
518
|
-
) : m) + "]";
|
|
519
|
-
}, A = (g, v, C, R, B, N, S) => ++R > v.maxDepth ? i(l(S)) : l(S) + d + "[" + (0, e.printIteratorValues)(
|
|
520
|
-
g.values(),
|
|
521
|
-
v,
|
|
522
|
-
C,
|
|
523
|
-
R,
|
|
524
|
-
B,
|
|
525
|
-
N
|
|
526
|
-
) + "]", I = (g, v, C, R, B, N) => g[s] ? E(
|
|
527
|
-
g,
|
|
528
|
-
v,
|
|
529
|
-
C,
|
|
530
|
-
R,
|
|
531
|
-
B,
|
|
532
|
-
N,
|
|
533
|
-
g[c] ? "OrderedMap" : "Map"
|
|
534
|
-
) : g[r] ? A(
|
|
535
|
-
g,
|
|
536
|
-
v,
|
|
537
|
-
C,
|
|
538
|
-
R,
|
|
539
|
-
B,
|
|
540
|
-
N,
|
|
541
|
-
"List"
|
|
542
|
-
) : g[n] ? A(
|
|
543
|
-
g,
|
|
544
|
-
v,
|
|
545
|
-
C,
|
|
546
|
-
R,
|
|
547
|
-
B,
|
|
548
|
-
N,
|
|
549
|
-
g[c] ? "OrderedSet" : "Set"
|
|
550
|
-
) : g[a] ? A(
|
|
551
|
-
g,
|
|
552
|
-
v,
|
|
553
|
-
C,
|
|
554
|
-
R,
|
|
555
|
-
B,
|
|
556
|
-
N,
|
|
557
|
-
"Stack"
|
|
558
|
-
) : g[p] ? f(g, v, C, R, B, N) : w(g, v, C, R, B, N);
|
|
559
|
-
ie.serialize = I;
|
|
560
|
-
const x = (g) => g && (g[t] === !0 || g[u] === !0);
|
|
561
|
-
ie.test = x;
|
|
562
|
-
var y = {
|
|
563
|
-
serialize: I,
|
|
564
|
-
test: x
|
|
565
|
-
};
|
|
566
|
-
return ie.default = y, ie;
|
|
567
|
-
}
|
|
568
|
-
var oe = {}, De = { exports: {} }, D = {};
|
|
569
|
-
var Dt;
|
|
570
|
-
function Ur() {
|
|
571
|
-
if (Dt) return D;
|
|
572
|
-
Dt = 1;
|
|
573
|
-
var e = 60103, t = 60106, r = 60107, o = 60108, s = 60114, c = 60109, u = 60110, p = 60112, n = 60113, a = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
|
|
574
|
-
if (typeof Symbol == "function" && Symbol.for) {
|
|
575
|
-
var f = Symbol.for;
|
|
576
|
-
e = f("react.element"), t = f("react.portal"), r = f("react.fragment"), o = f("react.strict_mode"), s = f("react.profiler"), c = f("react.provider"), u = f("react.context"), p = f("react.forward_ref"), n = f("react.suspense"), a = f("react.suspense_list"), l = f("react.memo"), i = f("react.lazy"), d = f("react.block"), m = f("react.server.block"), E = f("react.fundamental"), h = f("react.debug_trace_mode"), w = f("react.legacy_hidden");
|
|
577
|
-
}
|
|
578
|
-
function A(S) {
|
|
579
|
-
if (typeof S == "object" && S !== null) {
|
|
580
|
-
var _ = S.$$typeof;
|
|
581
|
-
switch (_) {
|
|
582
|
-
case e:
|
|
583
|
-
switch (S = S.type, S) {
|
|
584
|
-
case r:
|
|
585
|
-
case s:
|
|
586
|
-
case o:
|
|
587
|
-
case n:
|
|
588
|
-
case a:
|
|
589
|
-
return S;
|
|
590
|
-
default:
|
|
591
|
-
switch (S = S && S.$$typeof, S) {
|
|
592
|
-
case u:
|
|
593
|
-
case p:
|
|
594
|
-
case i:
|
|
595
|
-
case l:
|
|
596
|
-
case c:
|
|
597
|
-
return S;
|
|
598
|
-
default:
|
|
599
|
-
return _;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
case t:
|
|
603
|
-
return _;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
var I = c, x = e, M = p, y = r, g = i, v = l, C = t, R = s, B = o, N = n;
|
|
608
|
-
return D.ContextConsumer = u, D.ContextProvider = I, D.Element = x, D.ForwardRef = M, D.Fragment = y, D.Lazy = g, D.Memo = v, D.Portal = C, D.Profiler = R, D.StrictMode = B, D.Suspense = N, D.isAsyncMode = function() {
|
|
609
|
-
return !1;
|
|
610
|
-
}, D.isConcurrentMode = function() {
|
|
611
|
-
return !1;
|
|
612
|
-
}, D.isContextConsumer = function(S) {
|
|
613
|
-
return A(S) === u;
|
|
614
|
-
}, D.isContextProvider = function(S) {
|
|
615
|
-
return A(S) === c;
|
|
616
|
-
}, D.isElement = function(S) {
|
|
617
|
-
return typeof S == "object" && S !== null && S.$$typeof === e;
|
|
618
|
-
}, D.isForwardRef = function(S) {
|
|
619
|
-
return A(S) === p;
|
|
620
|
-
}, D.isFragment = function(S) {
|
|
621
|
-
return A(S) === r;
|
|
622
|
-
}, D.isLazy = function(S) {
|
|
623
|
-
return A(S) === i;
|
|
624
|
-
}, D.isMemo = function(S) {
|
|
625
|
-
return A(S) === l;
|
|
626
|
-
}, D.isPortal = function(S) {
|
|
627
|
-
return A(S) === t;
|
|
628
|
-
}, D.isProfiler = function(S) {
|
|
629
|
-
return A(S) === s;
|
|
630
|
-
}, D.isStrictMode = function(S) {
|
|
631
|
-
return A(S) === o;
|
|
632
|
-
}, D.isSuspense = function(S) {
|
|
633
|
-
return A(S) === n;
|
|
634
|
-
}, D.isValidElementType = function(S) {
|
|
635
|
-
return typeof S == "string" || typeof S == "function" || S === r || S === s || S === h || S === o || S === n || S === a || S === w || typeof S == "object" && S !== null && (S.$$typeof === i || S.$$typeof === l || S.$$typeof === c || S.$$typeof === u || S.$$typeof === p || S.$$typeof === E || S.$$typeof === d || S[0] === m);
|
|
636
|
-
}, D.typeOf = A, D;
|
|
637
|
-
}
|
|
638
|
-
var q = {};
|
|
639
|
-
var qt;
|
|
640
|
-
function Wr() {
|
|
641
|
-
return qt || (qt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
642
|
-
var e = 60103, t = 60106, r = 60107, o = 60108, s = 60114, c = 60109, u = 60110, p = 60112, n = 60113, a = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
|
|
643
|
-
if (typeof Symbol == "function" && Symbol.for) {
|
|
644
|
-
var f = Symbol.for;
|
|
645
|
-
e = f("react.element"), t = f("react.portal"), r = f("react.fragment"), o = f("react.strict_mode"), s = f("react.profiler"), c = f("react.provider"), u = f("react.context"), p = f("react.forward_ref"), n = f("react.suspense"), a = f("react.suspense_list"), l = f("react.memo"), i = f("react.lazy"), d = f("react.block"), m = f("react.server.block"), E = f("react.fundamental"), f("react.scope"), f("react.opaque.id"), h = f("react.debug_trace_mode"), f("react.offscreen"), w = f("react.legacy_hidden");
|
|
646
|
-
}
|
|
647
|
-
var A = !1;
|
|
648
|
-
function I(T) {
|
|
649
|
-
return !!(typeof T == "string" || typeof T == "function" || T === r || T === s || T === h || T === o || T === n || T === a || T === w || A || typeof T == "object" && T !== null && (T.$$typeof === i || T.$$typeof === l || T.$$typeof === c || T.$$typeof === u || T.$$typeof === p || T.$$typeof === E || T.$$typeof === d || T[0] === m));
|
|
650
|
-
}
|
|
651
|
-
function x(T) {
|
|
652
|
-
if (typeof T == "object" && T !== null) {
|
|
653
|
-
var L = T.$$typeof;
|
|
654
|
-
switch (L) {
|
|
655
|
-
case e:
|
|
656
|
-
var P = T.type;
|
|
657
|
-
switch (P) {
|
|
658
|
-
case r:
|
|
659
|
-
case s:
|
|
660
|
-
case o:
|
|
661
|
-
case n:
|
|
662
|
-
case a:
|
|
663
|
-
return P;
|
|
664
|
-
default:
|
|
665
|
-
var U = P && P.$$typeof;
|
|
666
|
-
switch (U) {
|
|
667
|
-
case u:
|
|
668
|
-
case p:
|
|
669
|
-
case i:
|
|
670
|
-
case l:
|
|
671
|
-
case c:
|
|
672
|
-
return U;
|
|
673
|
-
default:
|
|
674
|
-
return L;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
case t:
|
|
678
|
-
return L;
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
var M = u, y = c, g = e, v = p, C = r, R = i, B = l, N = t, S = s, _ = o, W = n, z = !1, k = !1;
|
|
683
|
-
function Z(T) {
|
|
684
|
-
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
685
|
-
}
|
|
686
|
-
function Se(T) {
|
|
687
|
-
return k || (k = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
688
|
-
}
|
|
689
|
-
function Ke(T) {
|
|
690
|
-
return x(T) === u;
|
|
691
|
-
}
|
|
692
|
-
function Ce(T) {
|
|
693
|
-
return x(T) === c;
|
|
694
|
-
}
|
|
695
|
-
function Re(T) {
|
|
696
|
-
return typeof T == "object" && T !== null && T.$$typeof === e;
|
|
697
|
-
}
|
|
698
|
-
function Be(T) {
|
|
699
|
-
return x(T) === p;
|
|
700
|
-
}
|
|
701
|
-
function Ne(T) {
|
|
702
|
-
return x(T) === r;
|
|
703
|
-
}
|
|
704
|
-
function Je(T) {
|
|
705
|
-
return x(T) === i;
|
|
706
|
-
}
|
|
707
|
-
function Pe(T) {
|
|
708
|
-
return x(T) === l;
|
|
709
|
-
}
|
|
710
|
-
function Qe(T) {
|
|
711
|
-
return x(T) === t;
|
|
712
|
-
}
|
|
713
|
-
function Xe(T) {
|
|
714
|
-
return x(T) === s;
|
|
715
|
-
}
|
|
716
|
-
function b(T) {
|
|
717
|
-
return x(T) === o;
|
|
718
|
-
}
|
|
719
|
-
function O(T) {
|
|
720
|
-
return x(T) === n;
|
|
721
|
-
}
|
|
722
|
-
q.ContextConsumer = M, q.ContextProvider = y, q.Element = g, q.ForwardRef = v, q.Fragment = C, q.Lazy = R, q.Memo = B, q.Portal = N, q.Profiler = S, q.StrictMode = _, q.Suspense = W, q.isAsyncMode = Z, q.isConcurrentMode = Se, q.isContextConsumer = Ke, q.isContextProvider = Ce, q.isElement = Re, q.isForwardRef = Be, q.isFragment = Ne, q.isLazy = Je, q.isMemo = Pe, q.isPortal = Qe, q.isProfiler = Xe, q.isStrictMode = b, q.isSuspense = O, q.isValidElementType = I, q.typeOf = x;
|
|
723
|
-
})()), q;
|
|
724
|
-
}
|
|
725
|
-
var jt;
|
|
726
|
-
function Vr() {
|
|
727
|
-
return jt || (jt = 1, process.env.NODE_ENV === "production" ? De.exports = Ur() : De.exports = Wr()), De.exports;
|
|
728
|
-
}
|
|
729
|
-
var kt;
|
|
730
|
-
function Hr() {
|
|
731
|
-
if (kt) return oe;
|
|
732
|
-
kt = 1, Object.defineProperty(oe, "__esModule", {
|
|
733
|
-
value: !0
|
|
734
|
-
}), oe.test = oe.serialize = oe.default = void 0;
|
|
735
|
-
var e = o(Vr()), t = gt();
|
|
736
|
-
function r(i) {
|
|
737
|
-
if (typeof WeakMap != "function") return null;
|
|
738
|
-
var d = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
|
|
739
|
-
return (r = function(E) {
|
|
740
|
-
return E ? m : d;
|
|
741
|
-
})(i);
|
|
742
|
-
}
|
|
743
|
-
function o(i, d) {
|
|
744
|
-
if (i && i.__esModule)
|
|
745
|
-
return i;
|
|
746
|
-
if (i === null || typeof i != "object" && typeof i != "function")
|
|
747
|
-
return { default: i };
|
|
748
|
-
var m = r(d);
|
|
749
|
-
if (m && m.has(i))
|
|
750
|
-
return m.get(i);
|
|
751
|
-
var E = {}, h = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
752
|
-
for (var w in i)
|
|
753
|
-
if (w !== "default" && Object.prototype.hasOwnProperty.call(i, w)) {
|
|
754
|
-
var f = h ? Object.getOwnPropertyDescriptor(i, w) : null;
|
|
755
|
-
f && (f.get || f.set) ? Object.defineProperty(E, w, f) : E[w] = i[w];
|
|
756
|
-
}
|
|
757
|
-
return E.default = i, m && m.set(i, E), E;
|
|
758
|
-
}
|
|
759
|
-
const s = (i, d = []) => (Array.isArray(i) ? i.forEach((m) => {
|
|
760
|
-
s(m, d);
|
|
761
|
-
}) : i != null && i !== !1 && d.push(i), d), c = (i) => {
|
|
762
|
-
const d = i.type;
|
|
763
|
-
if (typeof d == "string")
|
|
764
|
-
return d;
|
|
765
|
-
if (typeof d == "function")
|
|
766
|
-
return d.displayName || d.name || "Unknown";
|
|
767
|
-
if (e.isFragment(i))
|
|
768
|
-
return "React.Fragment";
|
|
769
|
-
if (e.isSuspense(i))
|
|
770
|
-
return "React.Suspense";
|
|
771
|
-
if (typeof d == "object" && d !== null) {
|
|
772
|
-
if (e.isContextProvider(i))
|
|
773
|
-
return "Context.Provider";
|
|
774
|
-
if (e.isContextConsumer(i))
|
|
775
|
-
return "Context.Consumer";
|
|
776
|
-
if (e.isForwardRef(i)) {
|
|
777
|
-
if (d.displayName)
|
|
778
|
-
return d.displayName;
|
|
779
|
-
const m = d.render.displayName || d.render.name || "";
|
|
780
|
-
return m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef";
|
|
781
|
-
}
|
|
782
|
-
if (e.isMemo(i)) {
|
|
783
|
-
const m = d.displayName || d.type.displayName || d.type.name || "";
|
|
784
|
-
return m !== "" ? "Memo(" + m + ")" : "Memo";
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
return "UNDEFINED";
|
|
788
|
-
}, u = (i) => {
|
|
789
|
-
const { props: d } = i;
|
|
790
|
-
return Object.keys(d).filter((m) => m !== "children" && d[m] !== void 0).sort();
|
|
791
|
-
}, p = (i, d, m, E, h, w) => ++E > d.maxDepth ? (0, t.printElementAsLeaf)(c(i), d) : (0, t.printElement)(
|
|
792
|
-
c(i),
|
|
793
|
-
(0, t.printProps)(
|
|
794
|
-
u(i),
|
|
795
|
-
i.props,
|
|
796
|
-
d,
|
|
797
|
-
m + d.indent,
|
|
798
|
-
E,
|
|
799
|
-
h,
|
|
800
|
-
w
|
|
801
|
-
),
|
|
802
|
-
(0, t.printChildren)(
|
|
803
|
-
s(i.props.children),
|
|
804
|
-
d,
|
|
805
|
-
m + d.indent,
|
|
806
|
-
E,
|
|
807
|
-
h,
|
|
808
|
-
w
|
|
809
|
-
),
|
|
810
|
-
d,
|
|
811
|
-
m
|
|
812
|
-
);
|
|
813
|
-
oe.serialize = p;
|
|
814
|
-
const n = (i) => i != null && e.isElement(i);
|
|
815
|
-
oe.test = n;
|
|
816
|
-
var l = {
|
|
817
|
-
serialize: p,
|
|
818
|
-
test: n
|
|
819
|
-
};
|
|
820
|
-
return oe.default = l, oe;
|
|
821
|
-
}
|
|
822
|
-
var ae = {}, Ft;
|
|
823
|
-
function Gr() {
|
|
824
|
-
if (Ft) return ae;
|
|
825
|
-
Ft = 1, Object.defineProperty(ae, "__esModule", {
|
|
826
|
-
value: !0
|
|
827
|
-
}), ae.test = ae.serialize = ae.default = void 0;
|
|
828
|
-
var e = gt(), t = (function() {
|
|
829
|
-
return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
830
|
-
})(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
|
|
831
|
-
const o = typeof r == "function" && r.for ? r.for("react.test.json") : 245830487, s = (a) => {
|
|
832
|
-
const { props: l } = a;
|
|
833
|
-
return l ? Object.keys(l).filter((i) => l[i] !== void 0).sort() : [];
|
|
834
|
-
}, c = (a, l, i, d, m, E) => ++d > l.maxDepth ? (0, e.printElementAsLeaf)(a.type, l) : (0, e.printElement)(
|
|
835
|
-
a.type,
|
|
836
|
-
a.props ? (0, e.printProps)(
|
|
837
|
-
s(a),
|
|
838
|
-
a.props,
|
|
839
|
-
l,
|
|
840
|
-
i + l.indent,
|
|
841
|
-
d,
|
|
842
|
-
m,
|
|
843
|
-
E
|
|
844
|
-
) : "",
|
|
845
|
-
a.children ? (0, e.printChildren)(
|
|
846
|
-
a.children,
|
|
847
|
-
l,
|
|
848
|
-
i + l.indent,
|
|
849
|
-
d,
|
|
850
|
-
m,
|
|
851
|
-
E
|
|
852
|
-
) : "",
|
|
853
|
-
l,
|
|
854
|
-
i
|
|
855
|
-
);
|
|
856
|
-
ae.serialize = c;
|
|
857
|
-
const u = (a) => a && a.$$typeof === o;
|
|
858
|
-
ae.test = u;
|
|
859
|
-
var n = {
|
|
860
|
-
serialize: c,
|
|
861
|
-
test: u
|
|
862
|
-
};
|
|
863
|
-
return ae.default = n, ae;
|
|
864
|
-
}
|
|
865
|
-
var $t;
|
|
866
|
-
function Yr() {
|
|
867
|
-
if ($t) return X;
|
|
868
|
-
$t = 1, Object.defineProperty(X, "__esModule", {
|
|
869
|
-
value: !0
|
|
870
|
-
}), X.default = X.DEFAULT_OPTIONS = void 0, X.format = Pe, X.plugins = void 0;
|
|
871
|
-
var e = a(er()), t = He(), r = a(
|
|
872
|
-
Dr()
|
|
873
|
-
), o = a(jr()), s = a(kr()), c = a($r()), u = a(zr()), p = a(Hr()), n = a(
|
|
874
|
-
Gr()
|
|
875
|
-
);
|
|
876
|
-
function a(b) {
|
|
877
|
-
return b && b.__esModule ? b : { default: b };
|
|
878
|
-
}
|
|
879
|
-
const l = Object.prototype.toString, i = Date.prototype.toISOString, d = Error.prototype.toString, m = RegExp.prototype.toString, E = (b) => typeof b.constructor == "function" && b.constructor.name || "Object", h = (b) => typeof window < "u" && b === window, w = /^Symbol\((.*)\)(.*)$/, f = /\n/gi;
|
|
880
|
-
class A extends Error {
|
|
881
|
-
constructor(O, T) {
|
|
882
|
-
super(O), this.stack = T, this.name = this.constructor.name;
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
function I(b) {
|
|
886
|
-
return b === "[object Array]" || b === "[object ArrayBuffer]" || b === "[object DataView]" || b === "[object Float32Array]" || b === "[object Float64Array]" || b === "[object Int8Array]" || b === "[object Int16Array]" || b === "[object Int32Array]" || b === "[object Uint8Array]" || b === "[object Uint8ClampedArray]" || b === "[object Uint16Array]" || b === "[object Uint32Array]";
|
|
887
|
-
}
|
|
888
|
-
function x(b) {
|
|
889
|
-
return Object.is(b, -0) ? "-0" : String(b);
|
|
890
|
-
}
|
|
891
|
-
function M(b) {
|
|
892
|
-
return `${b}n`;
|
|
893
|
-
}
|
|
894
|
-
function y(b, O) {
|
|
895
|
-
return O ? "[Function " + (b.name || "anonymous") + "]" : "[Function]";
|
|
896
|
-
}
|
|
897
|
-
function g(b) {
|
|
898
|
-
return String(b).replace(w, "Symbol($1)");
|
|
899
|
-
}
|
|
900
|
-
function v(b) {
|
|
901
|
-
return "[" + d.call(b) + "]";
|
|
902
|
-
}
|
|
903
|
-
function C(b, O, T, L) {
|
|
904
|
-
if (b === !0 || b === !1)
|
|
905
|
-
return "" + b;
|
|
906
|
-
if (b === void 0)
|
|
907
|
-
return "undefined";
|
|
908
|
-
if (b === null)
|
|
909
|
-
return "null";
|
|
910
|
-
const P = typeof b;
|
|
911
|
-
if (P === "number")
|
|
912
|
-
return x(b);
|
|
913
|
-
if (P === "bigint")
|
|
914
|
-
return M(b);
|
|
915
|
-
if (P === "string")
|
|
916
|
-
return L ? '"' + b.replace(/"|\\/g, "\\$&") + '"' : '"' + b + '"';
|
|
917
|
-
if (P === "function")
|
|
918
|
-
return y(b, O);
|
|
919
|
-
if (P === "symbol")
|
|
920
|
-
return g(b);
|
|
921
|
-
const U = l.call(b);
|
|
922
|
-
return U === "[object WeakMap]" ? "WeakMap {}" : U === "[object WeakSet]" ? "WeakSet {}" : U === "[object Function]" || U === "[object GeneratorFunction]" ? y(b, O) : U === "[object Symbol]" ? g(b) : U === "[object Date]" ? isNaN(+b) ? "Date { NaN }" : i.call(b) : U === "[object Error]" ? v(b) : U === "[object RegExp]" ? T ? m.call(b).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : m.call(b) : b instanceof Error ? v(b) : null;
|
|
923
|
-
}
|
|
924
|
-
function R(b, O, T, L, P, U) {
|
|
925
|
-
if (P.indexOf(b) !== -1)
|
|
926
|
-
return "[Circular]";
|
|
927
|
-
P = P.slice(), P.push(b);
|
|
928
|
-
const G = ++L > O.maxDepth, Y = O.min;
|
|
929
|
-
if (O.callToJSON && !G && b.toJSON && typeof b.toJSON == "function" && !U)
|
|
930
|
-
return _(b.toJSON(), O, T, L, P, !0);
|
|
931
|
-
const pe = l.call(b);
|
|
932
|
-
return pe === "[object Arguments]" ? G ? "[Arguments]" : (Y ? "" : "Arguments ") + "[" + (0, t.printListItems)(
|
|
933
|
-
b,
|
|
934
|
-
O,
|
|
935
|
-
T,
|
|
936
|
-
L,
|
|
937
|
-
P,
|
|
938
|
-
_
|
|
939
|
-
) + "]" : I(pe) ? G ? "[" + b.constructor.name + "]" : (Y || !O.printBasicPrototype && b.constructor.name === "Array" ? "" : b.constructor.name + " ") + "[" + (0, t.printListItems)(
|
|
940
|
-
b,
|
|
941
|
-
O,
|
|
942
|
-
T,
|
|
943
|
-
L,
|
|
944
|
-
P,
|
|
945
|
-
_
|
|
946
|
-
) + "]" : pe === "[object Map]" ? G ? "[Map]" : "Map {" + (0, t.printIteratorEntries)(
|
|
947
|
-
b.entries(),
|
|
948
|
-
O,
|
|
949
|
-
T,
|
|
950
|
-
L,
|
|
951
|
-
P,
|
|
952
|
-
_,
|
|
953
|
-
" => "
|
|
954
|
-
) + "}" : pe === "[object Set]" ? G ? "[Set]" : "Set {" + (0, t.printIteratorValues)(
|
|
955
|
-
b.values(),
|
|
956
|
-
O,
|
|
957
|
-
T,
|
|
958
|
-
L,
|
|
959
|
-
P,
|
|
960
|
-
_
|
|
961
|
-
) + "}" : G || h(b) ? "[" + E(b) + "]" : (Y || !O.printBasicPrototype && E(b) === "Object" ? "" : E(b) + " ") + "{" + (0, t.printObjectProperties)(
|
|
962
|
-
b,
|
|
963
|
-
O,
|
|
964
|
-
T,
|
|
965
|
-
L,
|
|
966
|
-
P,
|
|
967
|
-
_
|
|
968
|
-
) + "}";
|
|
969
|
-
}
|
|
970
|
-
function B(b) {
|
|
971
|
-
return b.serialize != null;
|
|
972
|
-
}
|
|
973
|
-
function N(b, O, T, L, P, U) {
|
|
974
|
-
let G;
|
|
975
|
-
try {
|
|
976
|
-
G = B(b) ? b.serialize(O, T, L, P, U, _) : b.print(
|
|
977
|
-
O,
|
|
978
|
-
(Y) => _(Y, T, L, P, U),
|
|
979
|
-
(Y) => {
|
|
980
|
-
const pe = L + T.indent;
|
|
981
|
-
return pe + Y.replace(f, `
|
|
982
|
-
` + pe);
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
edgeSpacing: T.spacingOuter,
|
|
986
|
-
min: T.min,
|
|
987
|
-
spacing: T.spacingInner
|
|
988
|
-
},
|
|
989
|
-
T.colors
|
|
990
|
-
);
|
|
991
|
-
} catch (Y) {
|
|
992
|
-
throw new A(Y.message, Y.stack);
|
|
993
|
-
}
|
|
994
|
-
if (typeof G != "string")
|
|
995
|
-
throw new Error(
|
|
996
|
-
`pretty-format: Plugin must return type "string" but instead returned "${typeof G}".`
|
|
997
|
-
);
|
|
998
|
-
return G;
|
|
999
|
-
}
|
|
1000
|
-
function S(b, O) {
|
|
1001
|
-
for (let T = 0; T < b.length; T++)
|
|
1002
|
-
try {
|
|
1003
|
-
if (b[T].test(O))
|
|
1004
|
-
return b[T];
|
|
1005
|
-
} catch (L) {
|
|
1006
|
-
throw new A(L.message, L.stack);
|
|
1007
|
-
}
|
|
1008
|
-
return null;
|
|
1009
|
-
}
|
|
1010
|
-
function _(b, O, T, L, P, U) {
|
|
1011
|
-
const G = S(O.plugins, b);
|
|
1012
|
-
if (G !== null)
|
|
1013
|
-
return N(G, b, O, T, L, P);
|
|
1014
|
-
const Y = C(
|
|
1015
|
-
b,
|
|
1016
|
-
O.printFunctionName,
|
|
1017
|
-
O.escapeRegex,
|
|
1018
|
-
O.escapeString
|
|
1019
|
-
);
|
|
1020
|
-
return Y !== null ? Y : R(
|
|
1021
|
-
b,
|
|
1022
|
-
O,
|
|
1023
|
-
T,
|
|
1024
|
-
L,
|
|
1025
|
-
P,
|
|
1026
|
-
U
|
|
1027
|
-
);
|
|
1028
|
-
}
|
|
1029
|
-
const W = {
|
|
1030
|
-
comment: "gray",
|
|
1031
|
-
content: "reset",
|
|
1032
|
-
prop: "yellow",
|
|
1033
|
-
tag: "cyan",
|
|
1034
|
-
value: "green"
|
|
1035
|
-
}, z = Object.keys(W), k = {
|
|
1036
|
-
callToJSON: !0,
|
|
1037
|
-
compareKeys: void 0,
|
|
1038
|
-
escapeRegex: !1,
|
|
1039
|
-
escapeString: !0,
|
|
1040
|
-
highlight: !1,
|
|
1041
|
-
indent: 2,
|
|
1042
|
-
maxDepth: 1 / 0,
|
|
1043
|
-
min: !1,
|
|
1044
|
-
plugins: [],
|
|
1045
|
-
printBasicPrototype: !0,
|
|
1046
|
-
printFunctionName: !0,
|
|
1047
|
-
theme: W
|
|
1048
|
-
};
|
|
1049
|
-
X.DEFAULT_OPTIONS = k;
|
|
1050
|
-
function Z(b) {
|
|
1051
|
-
if (Object.keys(b).forEach((O) => {
|
|
1052
|
-
if (!k.hasOwnProperty(O))
|
|
1053
|
-
throw new Error(`pretty-format: Unknown option "${O}".`);
|
|
1054
|
-
}), b.min && b.indent !== void 0 && b.indent !== 0)
|
|
1055
|
-
throw new Error(
|
|
1056
|
-
'pretty-format: Options "min" and "indent" cannot be used together.'
|
|
1057
|
-
);
|
|
1058
|
-
if (b.theme !== void 0) {
|
|
1059
|
-
if (b.theme === null)
|
|
1060
|
-
throw new Error('pretty-format: Option "theme" must not be null.');
|
|
1061
|
-
if (typeof b.theme != "object")
|
|
1062
|
-
throw new Error(
|
|
1063
|
-
`pretty-format: Option "theme" must be of type "object" but instead received "${typeof b.theme}".`
|
|
1064
|
-
);
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
const Se = (b) => z.reduce((O, T) => {
|
|
1068
|
-
const L = b.theme && b.theme[T] !== void 0 ? b.theme[T] : W[T], P = L && e.default[L];
|
|
1069
|
-
if (P && typeof P.close == "string" && typeof P.open == "string")
|
|
1070
|
-
O[T] = P;
|
|
1071
|
-
else
|
|
1072
|
-
throw new Error(
|
|
1073
|
-
`pretty-format: Option "theme" has a key "${T}" whose value "${L}" is undefined in ansi-styles.`
|
|
1074
|
-
);
|
|
1075
|
-
return O;
|
|
1076
|
-
}, /* @__PURE__ */ Object.create(null)), Ke = () => z.reduce((b, O) => (b[O] = {
|
|
1077
|
-
close: "",
|
|
1078
|
-
open: ""
|
|
1079
|
-
}, b), /* @__PURE__ */ Object.create(null)), Ce = (b) => b && b.printFunctionName !== void 0 ? b.printFunctionName : k.printFunctionName, Re = (b) => b && b.escapeRegex !== void 0 ? b.escapeRegex : k.escapeRegex, Be = (b) => b && b.escapeString !== void 0 ? b.escapeString : k.escapeString, Ne = (b) => {
|
|
1080
|
-
var O;
|
|
1081
|
-
return {
|
|
1082
|
-
callToJSON: b && b.callToJSON !== void 0 ? b.callToJSON : k.callToJSON,
|
|
1083
|
-
colors: b && b.highlight ? Se(b) : Ke(),
|
|
1084
|
-
compareKeys: b && typeof b.compareKeys == "function" ? b.compareKeys : k.compareKeys,
|
|
1085
|
-
escapeRegex: Re(b),
|
|
1086
|
-
escapeString: Be(b),
|
|
1087
|
-
indent: b && b.min ? "" : Je(
|
|
1088
|
-
b && b.indent !== void 0 ? b.indent : k.indent
|
|
1089
|
-
),
|
|
1090
|
-
maxDepth: b && b.maxDepth !== void 0 ? b.maxDepth : k.maxDepth,
|
|
1091
|
-
min: b && b.min !== void 0 ? b.min : k.min,
|
|
1092
|
-
plugins: b && b.plugins !== void 0 ? b.plugins : k.plugins,
|
|
1093
|
-
printBasicPrototype: (O = b?.printBasicPrototype) !== null && O !== void 0 ? O : !0,
|
|
1094
|
-
printFunctionName: Ce(b),
|
|
1095
|
-
spacingInner: b && b.min ? " " : `
|
|
1096
|
-
`,
|
|
1097
|
-
spacingOuter: b && b.min ? "" : `
|
|
1098
|
-
`
|
|
1099
|
-
};
|
|
1100
|
-
};
|
|
1101
|
-
function Je(b) {
|
|
1102
|
-
return new Array(b + 1).join(" ");
|
|
1103
|
-
}
|
|
1104
|
-
function Pe(b, O) {
|
|
1105
|
-
if (O && (Z(O), O.plugins)) {
|
|
1106
|
-
const L = S(O.plugins, b);
|
|
1107
|
-
if (L !== null)
|
|
1108
|
-
return N(L, b, Ne(O), "", 0, []);
|
|
1109
|
-
}
|
|
1110
|
-
const T = C(
|
|
1111
|
-
b,
|
|
1112
|
-
Ce(O),
|
|
1113
|
-
Re(O),
|
|
1114
|
-
Be(O)
|
|
1115
|
-
);
|
|
1116
|
-
return T !== null ? T : R(b, Ne(O), "", 0, []);
|
|
1117
|
-
}
|
|
1118
|
-
const Qe = {
|
|
1119
|
-
AsymmetricMatcher: r.default,
|
|
1120
|
-
ConvertAnsi: o.default,
|
|
1121
|
-
DOMCollection: s.default,
|
|
1122
|
-
DOMElement: c.default,
|
|
1123
|
-
Immutable: u.default,
|
|
1124
|
-
ReactElement: p.default,
|
|
1125
|
-
ReactTestComponent: n.default
|
|
1126
|
-
};
|
|
1127
|
-
X.plugins = Qe;
|
|
1128
|
-
var Xe = Pe;
|
|
1129
|
-
return X.default = Xe, X;
|
|
1130
|
-
}
|
|
1131
|
-
var tr = Yr(), Kr = Object.prototype.toString;
|
|
1132
|
-
function Jr(e) {
|
|
1133
|
-
return typeof e == "function" || Kr.call(e) === "[object Function]";
|
|
1134
|
-
}
|
|
1135
|
-
function Qr(e) {
|
|
1136
|
-
var t = Number(e);
|
|
1137
|
-
return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
|
|
1138
|
-
}
|
|
1139
|
-
var Xr = Math.pow(2, 53) - 1;
|
|
1140
|
-
function Zr(e) {
|
|
1141
|
-
var t = Qr(e);
|
|
1142
|
-
return Math.min(Math.max(t, 0), Xr);
|
|
1143
|
-
}
|
|
1144
|
-
function Q(e, t) {
|
|
1145
|
-
var r = Array, o = Object(e);
|
|
1146
|
-
if (e == null)
|
|
1147
|
-
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
|
1148
|
-
for (var s = Zr(o.length), c = Jr(r) ? Object(new r(s)) : new Array(s), u = 0, p; u < s; )
|
|
1149
|
-
p = o[u], c[u] = p, u += 1;
|
|
1150
|
-
return c.length = s, c;
|
|
1151
|
-
}
|
|
1152
|
-
function xe(e) {
|
|
1153
|
-
"@babel/helpers - typeof";
|
|
1154
|
-
return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1155
|
-
return typeof t;
|
|
1156
|
-
} : function(t) {
|
|
1157
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1158
|
-
}, xe(e);
|
|
1159
|
-
}
|
|
1160
|
-
function en(e, t) {
|
|
1161
|
-
if (!(e instanceof t))
|
|
1162
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1163
|
-
}
|
|
1164
|
-
function tn(e, t) {
|
|
1165
|
-
for (var r = 0; r < t.length; r++) {
|
|
1166
|
-
var o = t[r];
|
|
1167
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, rr(o.key), o);
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
function rn(e, t, r) {
|
|
1171
|
-
return t && tn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1172
|
-
}
|
|
1173
|
-
function nn(e, t, r) {
|
|
1174
|
-
return t = rr(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1175
|
-
}
|
|
1176
|
-
function rr(e) {
|
|
1177
|
-
var t = on(e, "string");
|
|
1178
|
-
return xe(t) === "symbol" ? t : String(t);
|
|
1179
|
-
}
|
|
1180
|
-
function on(e, t) {
|
|
1181
|
-
if (xe(e) !== "object" || e === null) return e;
|
|
1182
|
-
var r = e[Symbol.toPrimitive];
|
|
1183
|
-
if (r !== void 0) {
|
|
1184
|
-
var o = r.call(e, t);
|
|
1185
|
-
if (xe(o) !== "object") return o;
|
|
1186
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1187
|
-
}
|
|
1188
|
-
return (t === "string" ? String : Number)(e);
|
|
1189
|
-
}
|
|
1190
|
-
var an = /* @__PURE__ */ (function() {
|
|
1191
|
-
function e() {
|
|
1192
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
1193
|
-
en(this, e), nn(this, "items", void 0), this.items = t;
|
|
1194
|
-
}
|
|
1195
|
-
return rn(e, [{
|
|
1196
|
-
key: "add",
|
|
1197
|
-
value: function(r) {
|
|
1198
|
-
return this.has(r) === !1 && this.items.push(r), this;
|
|
1199
|
-
}
|
|
1200
|
-
}, {
|
|
1201
|
-
key: "clear",
|
|
1202
|
-
value: function() {
|
|
1203
|
-
this.items = [];
|
|
1204
|
-
}
|
|
1205
|
-
}, {
|
|
1206
|
-
key: "delete",
|
|
1207
|
-
value: function(r) {
|
|
1208
|
-
var o = this.items.length;
|
|
1209
|
-
return this.items = this.items.filter(function(s) {
|
|
1210
|
-
return s !== r;
|
|
1211
|
-
}), o !== this.items.length;
|
|
1212
|
-
}
|
|
1213
|
-
}, {
|
|
1214
|
-
key: "forEach",
|
|
1215
|
-
value: function(r) {
|
|
1216
|
-
var o = this;
|
|
1217
|
-
this.items.forEach(function(s) {
|
|
1218
|
-
r(s, s, o);
|
|
1219
|
-
});
|
|
1220
|
-
}
|
|
1221
|
-
}, {
|
|
1222
|
-
key: "has",
|
|
1223
|
-
value: function(r) {
|
|
1224
|
-
return this.items.indexOf(r) !== -1;
|
|
1225
|
-
}
|
|
1226
|
-
}, {
|
|
1227
|
-
key: "size",
|
|
1228
|
-
get: function() {
|
|
1229
|
-
return this.items.length;
|
|
1230
|
-
}
|
|
1231
|
-
}]), e;
|
|
1232
|
-
})();
|
|
1233
|
-
const un = typeof Set > "u" ? Set : an;
|
|
1234
|
-
function V(e) {
|
|
1235
|
-
var t;
|
|
1236
|
-
return (
|
|
1237
|
-
// eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
|
|
1238
|
-
(t = e.localName) !== null && t !== void 0 ? t : (
|
|
1239
|
-
// eslint-disable-next-line no-restricted-properties -- required for the fallback
|
|
1240
|
-
e.tagName.toLowerCase()
|
|
1241
|
-
)
|
|
1242
|
-
);
|
|
1243
|
-
}
|
|
1244
|
-
var ln = {
|
|
1245
|
-
article: "article",
|
|
1246
|
-
aside: "complementary",
|
|
1247
|
-
button: "button",
|
|
1248
|
-
datalist: "listbox",
|
|
1249
|
-
dd: "definition",
|
|
1250
|
-
details: "group",
|
|
1251
|
-
dialog: "dialog",
|
|
1252
|
-
dt: "term",
|
|
1253
|
-
fieldset: "group",
|
|
1254
|
-
figure: "figure",
|
|
1255
|
-
// WARNING: Only with an accessible name
|
|
1256
|
-
form: "form",
|
|
1257
|
-
footer: "contentinfo",
|
|
1258
|
-
h1: "heading",
|
|
1259
|
-
h2: "heading",
|
|
1260
|
-
h3: "heading",
|
|
1261
|
-
h4: "heading",
|
|
1262
|
-
h5: "heading",
|
|
1263
|
-
h6: "heading",
|
|
1264
|
-
header: "banner",
|
|
1265
|
-
hr: "separator",
|
|
1266
|
-
html: "document",
|
|
1267
|
-
legend: "legend",
|
|
1268
|
-
li: "listitem",
|
|
1269
|
-
math: "math",
|
|
1270
|
-
main: "main",
|
|
1271
|
-
menu: "list",
|
|
1272
|
-
nav: "navigation",
|
|
1273
|
-
ol: "list",
|
|
1274
|
-
optgroup: "group",
|
|
1275
|
-
// WARNING: Only in certain context
|
|
1276
|
-
option: "option",
|
|
1277
|
-
output: "status",
|
|
1278
|
-
progress: "progressbar",
|
|
1279
|
-
// WARNING: Only with an accessible name
|
|
1280
|
-
section: "region",
|
|
1281
|
-
summary: "button",
|
|
1282
|
-
table: "table",
|
|
1283
|
-
tbody: "rowgroup",
|
|
1284
|
-
textarea: "textbox",
|
|
1285
|
-
tfoot: "rowgroup",
|
|
1286
|
-
// WARNING: Only in certain context
|
|
1287
|
-
td: "cell",
|
|
1288
|
-
th: "columnheader",
|
|
1289
|
-
thead: "rowgroup",
|
|
1290
|
-
tr: "row",
|
|
1291
|
-
ul: "list"
|
|
1292
|
-
}, sn = {
|
|
1293
|
-
caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1294
|
-
code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1295
|
-
deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1296
|
-
emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1297
|
-
generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
|
|
1298
|
-
insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1299
|
-
paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1300
|
-
presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1301
|
-
strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1302
|
-
subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
1303
|
-
superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
|
|
1304
|
-
};
|
|
1305
|
-
function cn(e, t) {
|
|
1306
|
-
return [
|
|
1307
|
-
"aria-atomic",
|
|
1308
|
-
"aria-busy",
|
|
1309
|
-
"aria-controls",
|
|
1310
|
-
"aria-current",
|
|
1311
|
-
"aria-describedby",
|
|
1312
|
-
"aria-details",
|
|
1313
|
-
// "disabled",
|
|
1314
|
-
"aria-dropeffect",
|
|
1315
|
-
// "errormessage",
|
|
1316
|
-
"aria-flowto",
|
|
1317
|
-
"aria-grabbed",
|
|
1318
|
-
// "haspopup",
|
|
1319
|
-
"aria-hidden",
|
|
1320
|
-
// "invalid",
|
|
1321
|
-
"aria-keyshortcuts",
|
|
1322
|
-
"aria-label",
|
|
1323
|
-
"aria-labelledby",
|
|
1324
|
-
"aria-live",
|
|
1325
|
-
"aria-owns",
|
|
1326
|
-
"aria-relevant",
|
|
1327
|
-
"aria-roledescription"
|
|
1328
|
-
].some(function(r) {
|
|
1329
|
-
var o;
|
|
1330
|
-
return e.hasAttribute(r) && !((o = sn[t]) !== null && o !== void 0 && o.has(r));
|
|
1331
|
-
});
|
|
1332
|
-
}
|
|
1333
|
-
function nr(e, t) {
|
|
1334
|
-
return cn(e, t);
|
|
1335
|
-
}
|
|
1336
|
-
function fn(e) {
|
|
1337
|
-
var t = pn(e);
|
|
1338
|
-
if (t === null || t === "presentation") {
|
|
1339
|
-
var r = dn(e);
|
|
1340
|
-
if (t !== "presentation" || nr(e, r || ""))
|
|
1341
|
-
return r;
|
|
1342
|
-
}
|
|
1343
|
-
return t;
|
|
1344
|
-
}
|
|
1345
|
-
function dn(e) {
|
|
1346
|
-
var t = ln[V(e)];
|
|
1347
|
-
if (t !== void 0)
|
|
1348
|
-
return t;
|
|
1349
|
-
switch (V(e)) {
|
|
1350
|
-
case "a":
|
|
1351
|
-
case "area":
|
|
1352
|
-
case "link":
|
|
1353
|
-
if (e.hasAttribute("href"))
|
|
1354
|
-
return "link";
|
|
1355
|
-
break;
|
|
1356
|
-
case "img":
|
|
1357
|
-
return e.getAttribute("alt") === "" && !nr(e, "img") ? "presentation" : "img";
|
|
1358
|
-
case "input": {
|
|
1359
|
-
var r = e, o = r.type;
|
|
1360
|
-
switch (o) {
|
|
1361
|
-
case "button":
|
|
1362
|
-
case "image":
|
|
1363
|
-
case "reset":
|
|
1364
|
-
case "submit":
|
|
1365
|
-
return "button";
|
|
1366
|
-
case "checkbox":
|
|
1367
|
-
case "radio":
|
|
1368
|
-
return o;
|
|
1369
|
-
case "range":
|
|
1370
|
-
return "slider";
|
|
1371
|
-
case "email":
|
|
1372
|
-
case "tel":
|
|
1373
|
-
case "text":
|
|
1374
|
-
case "url":
|
|
1375
|
-
return e.hasAttribute("list") ? "combobox" : "textbox";
|
|
1376
|
-
case "search":
|
|
1377
|
-
return e.hasAttribute("list") ? "combobox" : "searchbox";
|
|
1378
|
-
case "number":
|
|
1379
|
-
return "spinbutton";
|
|
1380
|
-
default:
|
|
1381
|
-
return null;
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
case "select":
|
|
1385
|
-
return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
|
|
1386
|
-
}
|
|
1387
|
-
return null;
|
|
1388
|
-
}
|
|
1389
|
-
function pn(e) {
|
|
1390
|
-
var t = e.getAttribute("role");
|
|
1391
|
-
if (t !== null) {
|
|
1392
|
-
var r = t.trim().split(" ")[0];
|
|
1393
|
-
if (r.length > 0)
|
|
1394
|
-
return r;
|
|
1395
|
-
}
|
|
1396
|
-
return null;
|
|
1397
|
-
}
|
|
1398
|
-
function F(e) {
|
|
1399
|
-
return e !== null && e.nodeType === e.ELEMENT_NODE;
|
|
1400
|
-
}
|
|
1401
|
-
function ir(e) {
|
|
1402
|
-
return F(e) && V(e) === "caption";
|
|
1403
|
-
}
|
|
1404
|
-
function Fe(e) {
|
|
1405
|
-
return F(e) && V(e) === "input";
|
|
1406
|
-
}
|
|
1407
|
-
function bn(e) {
|
|
1408
|
-
return F(e) && V(e) === "optgroup";
|
|
1409
|
-
}
|
|
1410
|
-
function mn(e) {
|
|
1411
|
-
return F(e) && V(e) === "select";
|
|
1412
|
-
}
|
|
1413
|
-
function yn(e) {
|
|
1414
|
-
return F(e) && V(e) === "table";
|
|
1415
|
-
}
|
|
1416
|
-
function gn(e) {
|
|
1417
|
-
return F(e) && V(e) === "textarea";
|
|
1418
|
-
}
|
|
1419
|
-
function hn(e) {
|
|
1420
|
-
var t = e.ownerDocument === null ? e : e.ownerDocument, r = t.defaultView;
|
|
1421
|
-
if (r === null)
|
|
1422
|
-
throw new TypeError("no window available");
|
|
1423
|
-
return r;
|
|
1424
|
-
}
|
|
1425
|
-
function En(e) {
|
|
1426
|
-
return F(e) && V(e) === "fieldset";
|
|
1427
|
-
}
|
|
1428
|
-
function vn(e) {
|
|
1429
|
-
return F(e) && V(e) === "legend";
|
|
1430
|
-
}
|
|
1431
|
-
function Tn(e) {
|
|
1432
|
-
return F(e) && V(e) === "slot";
|
|
1433
|
-
}
|
|
1434
|
-
function wn(e) {
|
|
1435
|
-
return F(e) && e.ownerSVGElement !== void 0;
|
|
1436
|
-
}
|
|
1437
|
-
function An(e) {
|
|
1438
|
-
return F(e) && V(e) === "svg";
|
|
1439
|
-
}
|
|
1440
|
-
function Sn(e) {
|
|
1441
|
-
return wn(e) && V(e) === "title";
|
|
1442
|
-
}
|
|
1443
|
-
function $e(e, t) {
|
|
1444
|
-
if (F(e) && e.hasAttribute(t)) {
|
|
1445
|
-
var r = e.getAttribute(t).split(" "), o = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
1446
|
-
return r.map(function(s) {
|
|
1447
|
-
return o.getElementById(s);
|
|
1448
|
-
}).filter(
|
|
1449
|
-
function(s) {
|
|
1450
|
-
return s !== null;
|
|
1451
|
-
}
|
|
1452
|
-
// TODO: why does this not narrow?
|
|
1453
|
-
);
|
|
1454
|
-
}
|
|
1455
|
-
return [];
|
|
1456
|
-
}
|
|
1457
|
-
function le(e, t) {
|
|
1458
|
-
return F(e) ? t.indexOf(fn(e)) !== -1 : !1;
|
|
1459
|
-
}
|
|
1460
|
-
function In(e) {
|
|
1461
|
-
return e.trim().replace(/\s\s+/g, " ");
|
|
1462
|
-
}
|
|
1463
|
-
function xn(e, t) {
|
|
1464
|
-
if (!F(e))
|
|
1465
|
-
return !1;
|
|
1466
|
-
if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true")
|
|
1467
|
-
return !0;
|
|
1468
|
-
var r = t(e);
|
|
1469
|
-
return r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
|
|
1470
|
-
}
|
|
1471
|
-
function On(e) {
|
|
1472
|
-
return le(e, ["button", "combobox", "listbox", "textbox"]) || or(e, "range");
|
|
1473
|
-
}
|
|
1474
|
-
function or(e, t) {
|
|
1475
|
-
if (!F(e))
|
|
1476
|
-
return !1;
|
|
1477
|
-
if (t === "range")
|
|
1478
|
-
return le(e, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
|
|
1479
|
-
throw new TypeError("No knowledge about abstract role '".concat(t, "'. This is likely a bug :("));
|
|
1480
|
-
}
|
|
1481
|
-
function zt(e, t) {
|
|
1482
|
-
var r = Q(e.querySelectorAll(t));
|
|
1483
|
-
return $e(e, "aria-owns").forEach(function(o) {
|
|
1484
|
-
r.push.apply(r, Q(o.querySelectorAll(t)));
|
|
1485
|
-
}), r;
|
|
1486
|
-
}
|
|
1487
|
-
function Mn(e) {
|
|
1488
|
-
return mn(e) ? e.selectedOptions || zt(e, "[selected]") : zt(e, '[aria-selected="true"]');
|
|
1489
|
-
}
|
|
1490
|
-
function _n(e) {
|
|
1491
|
-
return le(e, ["none", "presentation"]);
|
|
1492
|
-
}
|
|
1493
|
-
function Cn(e) {
|
|
1494
|
-
return ir(e);
|
|
1495
|
-
}
|
|
1496
|
-
function Rn(e) {
|
|
1497
|
-
return le(e, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
|
|
1498
|
-
}
|
|
1499
|
-
function Bn(e) {
|
|
1500
|
-
return !1;
|
|
1501
|
-
}
|
|
1502
|
-
function Nn(e) {
|
|
1503
|
-
return Fe(e) || gn(e) ? e.value : e.textContent || "";
|
|
1504
|
-
}
|
|
1505
|
-
function Ut(e) {
|
|
1506
|
-
var t = e.getPropertyValue("content");
|
|
1507
|
-
return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
|
|
1508
|
-
}
|
|
1509
|
-
function ar(e) {
|
|
1510
|
-
var t = V(e);
|
|
1511
|
-
return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
|
|
1512
|
-
}
|
|
1513
|
-
function ur(e) {
|
|
1514
|
-
if (ar(e))
|
|
1515
|
-
return e;
|
|
1516
|
-
var t = null;
|
|
1517
|
-
return e.childNodes.forEach(function(r) {
|
|
1518
|
-
if (t === null && F(r)) {
|
|
1519
|
-
var o = ur(r);
|
|
1520
|
-
o !== null && (t = o);
|
|
1521
|
-
}
|
|
1522
|
-
}), t;
|
|
1523
|
-
}
|
|
1524
|
-
function Pn(e) {
|
|
1525
|
-
if (e.control !== void 0)
|
|
1526
|
-
return e.control;
|
|
1527
|
-
var t = e.getAttribute("for");
|
|
1528
|
-
return t !== null ? e.ownerDocument.getElementById(t) : ur(e);
|
|
1529
|
-
}
|
|
1530
|
-
function Ln(e) {
|
|
1531
|
-
var t = e.labels;
|
|
1532
|
-
if (t === null)
|
|
1533
|
-
return t;
|
|
1534
|
-
if (t !== void 0)
|
|
1535
|
-
return Q(t);
|
|
1536
|
-
if (!ar(e))
|
|
1537
|
-
return null;
|
|
1538
|
-
var r = e.ownerDocument;
|
|
1539
|
-
return Q(r.querySelectorAll("label")).filter(function(o) {
|
|
1540
|
-
return Pn(o) === e;
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
function Dn(e) {
|
|
1544
|
-
var t = e.assignedNodes();
|
|
1545
|
-
return t.length === 0 ? Q(e.childNodes) : t;
|
|
1546
|
-
}
|
|
1547
|
-
function lr(e) {
|
|
1548
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new un(), o = hn(e), s = t.compute, c = s === void 0 ? "name" : s, u = t.computedStyleSupportsPseudoElements, p = u === void 0 ? t.getComputedStyle !== void 0 : u, n = t.getComputedStyle, a = n === void 0 ? o.getComputedStyle.bind(o) : n, l = t.hidden, i = l === void 0 ? !1 : l;
|
|
1549
|
-
function d(f, A) {
|
|
1550
|
-
var I = "";
|
|
1551
|
-
if (F(f) && p) {
|
|
1552
|
-
var x = a(f, "::before"), M = Ut(x);
|
|
1553
|
-
I = "".concat(M, " ").concat(I);
|
|
1554
|
-
}
|
|
1555
|
-
var y = Tn(f) ? Dn(f) : Q(f.childNodes).concat($e(f, "aria-owns"));
|
|
1556
|
-
if (y.forEach(function(C) {
|
|
1557
|
-
var R = w(C, {
|
|
1558
|
-
isEmbeddedInLabel: A.isEmbeddedInLabel,
|
|
1559
|
-
isReferenced: !1,
|
|
1560
|
-
recursion: !0
|
|
1561
|
-
}), B = F(C) ? a(C).getPropertyValue("display") : "inline", N = B !== "inline" ? " " : "";
|
|
1562
|
-
I += "".concat(N).concat(R).concat(N);
|
|
1563
|
-
}), F(f) && p) {
|
|
1564
|
-
var g = a(f, "::after"), v = Ut(g);
|
|
1565
|
-
I = "".concat(I, " ").concat(v);
|
|
1566
|
-
}
|
|
1567
|
-
return I.trim();
|
|
1568
|
-
}
|
|
1569
|
-
function m(f, A) {
|
|
1570
|
-
var I = f.getAttributeNode(A);
|
|
1571
|
-
return I !== null && !r.has(I) && I.value.trim() !== "" ? (r.add(I), I.value) : null;
|
|
1572
|
-
}
|
|
1573
|
-
function E(f) {
|
|
1574
|
-
return F(f) ? m(f, "title") : null;
|
|
1575
|
-
}
|
|
1576
|
-
function h(f) {
|
|
1577
|
-
if (!F(f))
|
|
1578
|
-
return null;
|
|
1579
|
-
if (En(f)) {
|
|
1580
|
-
r.add(f);
|
|
1581
|
-
for (var A = Q(f.childNodes), I = 0; I < A.length; I += 1) {
|
|
1582
|
-
var x = A[I];
|
|
1583
|
-
if (vn(x))
|
|
1584
|
-
return w(x, {
|
|
1585
|
-
isEmbeddedInLabel: !1,
|
|
1586
|
-
isReferenced: !1,
|
|
1587
|
-
recursion: !1
|
|
1588
|
-
});
|
|
1589
|
-
}
|
|
1590
|
-
} else if (yn(f)) {
|
|
1591
|
-
r.add(f);
|
|
1592
|
-
for (var M = Q(f.childNodes), y = 0; y < M.length; y += 1) {
|
|
1593
|
-
var g = M[y];
|
|
1594
|
-
if (ir(g))
|
|
1595
|
-
return w(g, {
|
|
1596
|
-
isEmbeddedInLabel: !1,
|
|
1597
|
-
isReferenced: !1,
|
|
1598
|
-
recursion: !1
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
} else if (An(f)) {
|
|
1602
|
-
r.add(f);
|
|
1603
|
-
for (var v = Q(f.childNodes), C = 0; C < v.length; C += 1) {
|
|
1604
|
-
var R = v[C];
|
|
1605
|
-
if (Sn(R))
|
|
1606
|
-
return R.textContent;
|
|
1607
|
-
}
|
|
1608
|
-
return null;
|
|
1609
|
-
} else if (V(f) === "img" || V(f) === "area") {
|
|
1610
|
-
var B = m(f, "alt");
|
|
1611
|
-
if (B !== null)
|
|
1612
|
-
return B;
|
|
1613
|
-
} else if (bn(f)) {
|
|
1614
|
-
var N = m(f, "label");
|
|
1615
|
-
if (N !== null)
|
|
1616
|
-
return N;
|
|
1617
|
-
}
|
|
1618
|
-
if (Fe(f) && (f.type === "button" || f.type === "submit" || f.type === "reset")) {
|
|
1619
|
-
var S = m(f, "value");
|
|
1620
|
-
if (S !== null)
|
|
1621
|
-
return S;
|
|
1622
|
-
if (f.type === "submit")
|
|
1623
|
-
return "Submit";
|
|
1624
|
-
if (f.type === "reset")
|
|
1625
|
-
return "Reset";
|
|
1626
|
-
}
|
|
1627
|
-
var _ = Ln(f);
|
|
1628
|
-
if (_ !== null && _.length !== 0)
|
|
1629
|
-
return r.add(f), Q(_).map(function(Z) {
|
|
1630
|
-
return w(Z, {
|
|
1631
|
-
isEmbeddedInLabel: !0,
|
|
1632
|
-
isReferenced: !1,
|
|
1633
|
-
recursion: !0
|
|
1634
|
-
});
|
|
1635
|
-
}).filter(function(Z) {
|
|
1636
|
-
return Z.length > 0;
|
|
1637
|
-
}).join(" ");
|
|
1638
|
-
if (Fe(f) && f.type === "image") {
|
|
1639
|
-
var W = m(f, "alt");
|
|
1640
|
-
if (W !== null)
|
|
1641
|
-
return W;
|
|
1642
|
-
var z = m(f, "title");
|
|
1643
|
-
return z !== null ? z : "Submit Query";
|
|
1644
|
-
}
|
|
1645
|
-
if (le(f, ["button"])) {
|
|
1646
|
-
var k = d(f, {
|
|
1647
|
-
isEmbeddedInLabel: !1
|
|
1648
|
-
});
|
|
1649
|
-
if (k !== "")
|
|
1650
|
-
return k;
|
|
1651
|
-
}
|
|
1652
|
-
return null;
|
|
1653
|
-
}
|
|
1654
|
-
function w(f, A) {
|
|
1655
|
-
if (r.has(f))
|
|
1656
|
-
return "";
|
|
1657
|
-
if (!i && xn(f, a) && !A.isReferenced)
|
|
1658
|
-
return r.add(f), "";
|
|
1659
|
-
var I = F(f) ? f.getAttributeNode("aria-labelledby") : null, x = I !== null && !r.has(I) ? $e(f, "aria-labelledby") : [];
|
|
1660
|
-
if (c === "name" && !A.isReferenced && x.length > 0)
|
|
1661
|
-
return r.add(I), x.map(function(B) {
|
|
1662
|
-
return w(B, {
|
|
1663
|
-
isEmbeddedInLabel: A.isEmbeddedInLabel,
|
|
1664
|
-
isReferenced: !0,
|
|
1665
|
-
// this isn't recursion as specified, otherwise we would skip
|
|
1666
|
-
// `aria-label` in
|
|
1667
|
-
// <input id="myself" aria-label="foo" aria-labelledby="myself"
|
|
1668
|
-
recursion: !1
|
|
1669
|
-
});
|
|
1670
|
-
}).join(" ");
|
|
1671
|
-
var M = A.recursion && On(f) && c === "name";
|
|
1672
|
-
if (!M) {
|
|
1673
|
-
var y = (F(f) && f.getAttribute("aria-label") || "").trim();
|
|
1674
|
-
if (y !== "" && c === "name")
|
|
1675
|
-
return r.add(f), y;
|
|
1676
|
-
if (!_n(f)) {
|
|
1677
|
-
var g = h(f);
|
|
1678
|
-
if (g !== null)
|
|
1679
|
-
return r.add(f), g;
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
if (le(f, ["menu"]))
|
|
1683
|
-
return r.add(f), "";
|
|
1684
|
-
if (M || A.isEmbeddedInLabel || A.isReferenced) {
|
|
1685
|
-
if (le(f, ["combobox", "listbox"])) {
|
|
1686
|
-
r.add(f);
|
|
1687
|
-
var v = Mn(f);
|
|
1688
|
-
return v.length === 0 ? Fe(f) ? f.value : "" : Q(v).map(function(B) {
|
|
1689
|
-
return w(B, {
|
|
1690
|
-
isEmbeddedInLabel: A.isEmbeddedInLabel,
|
|
1691
|
-
isReferenced: !1,
|
|
1692
|
-
recursion: !0
|
|
1693
|
-
});
|
|
1694
|
-
}).join(" ");
|
|
1695
|
-
}
|
|
1696
|
-
if (or(f, "range"))
|
|
1697
|
-
return r.add(f), f.hasAttribute("aria-valuetext") ? f.getAttribute("aria-valuetext") : f.hasAttribute("aria-valuenow") ? f.getAttribute("aria-valuenow") : f.getAttribute("value") || "";
|
|
1698
|
-
if (le(f, ["textbox"]))
|
|
1699
|
-
return r.add(f), Nn(f);
|
|
1700
|
-
}
|
|
1701
|
-
if (Rn(f) || F(f) && A.isReferenced || Cn(f) || Bn()) {
|
|
1702
|
-
var C = d(f, {
|
|
1703
|
-
isEmbeddedInLabel: A.isEmbeddedInLabel
|
|
1704
|
-
});
|
|
1705
|
-
if (C !== "")
|
|
1706
|
-
return r.add(f), C;
|
|
1707
|
-
}
|
|
1708
|
-
if (f.nodeType === f.TEXT_NODE)
|
|
1709
|
-
return r.add(f), f.textContent || "";
|
|
1710
|
-
if (A.recursion)
|
|
1711
|
-
return r.add(f), d(f, {
|
|
1712
|
-
isEmbeddedInLabel: A.isEmbeddedInLabel
|
|
1713
|
-
});
|
|
1714
|
-
var R = E(f);
|
|
1715
|
-
return R !== null ? (r.add(f), R) : (r.add(f), "");
|
|
1716
|
-
}
|
|
1717
|
-
return In(w(e, {
|
|
1718
|
-
isEmbeddedInLabel: !1,
|
|
1719
|
-
// by spec computeAccessibleDescription starts with the referenced elements as roots
|
|
1720
|
-
isReferenced: c === "description",
|
|
1721
|
-
recursion: !1
|
|
1722
|
-
}));
|
|
1723
|
-
}
|
|
1724
|
-
function Oe(e) {
|
|
1725
|
-
"@babel/helpers - typeof";
|
|
1726
|
-
return Oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1727
|
-
return typeof t;
|
|
1728
|
-
} : function(t) {
|
|
1729
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1730
|
-
}, Oe(e);
|
|
1731
|
-
}
|
|
1732
|
-
function Wt(e, t) {
|
|
1733
|
-
var r = Object.keys(e);
|
|
1734
|
-
if (Object.getOwnPropertySymbols) {
|
|
1735
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
1736
|
-
t && (o = o.filter(function(s) {
|
|
1737
|
-
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
1738
|
-
})), r.push.apply(r, o);
|
|
1739
|
-
}
|
|
1740
|
-
return r;
|
|
1741
|
-
}
|
|
1742
|
-
function Vt(e) {
|
|
1743
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1744
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
1745
|
-
t % 2 ? Wt(Object(r), !0).forEach(function(o) {
|
|
1746
|
-
qn(e, o, r[o]);
|
|
1747
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Wt(Object(r)).forEach(function(o) {
|
|
1748
|
-
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(r, o));
|
|
1749
|
-
});
|
|
1750
|
-
}
|
|
1751
|
-
return e;
|
|
1752
|
-
}
|
|
1753
|
-
function qn(e, t, r) {
|
|
1754
|
-
return t = jn(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1755
|
-
}
|
|
1756
|
-
function jn(e) {
|
|
1757
|
-
var t = kn(e, "string");
|
|
1758
|
-
return Oe(t) === "symbol" ? t : String(t);
|
|
1759
|
-
}
|
|
1760
|
-
function kn(e, t) {
|
|
1761
|
-
if (Oe(e) !== "object" || e === null) return e;
|
|
1762
|
-
var r = e[Symbol.toPrimitive];
|
|
1763
|
-
if (r !== void 0) {
|
|
1764
|
-
var o = r.call(e, t);
|
|
1765
|
-
if (Oe(o) !== "object") return o;
|
|
1766
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1767
|
-
}
|
|
1768
|
-
return (t === "string" ? String : Number)(e);
|
|
1769
|
-
}
|
|
1770
|
-
function sr(e) {
|
|
1771
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = $e(e, "aria-describedby").map(function(s) {
|
|
1772
|
-
return lr(s, Vt(Vt({}, t), {}, {
|
|
1773
|
-
compute: "description"
|
|
1774
|
-
}));
|
|
1775
|
-
}).join(" ");
|
|
1776
|
-
if (r === "") {
|
|
1777
|
-
var o = e.getAttribute("title");
|
|
1778
|
-
r = o === null ? "" : o;
|
|
1779
|
-
}
|
|
1780
|
-
return r;
|
|
1781
|
-
}
|
|
1782
|
-
function Fn(e) {
|
|
1783
|
-
return le(e, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
|
|
1784
|
-
}
|
|
1785
|
-
function ht(e) {
|
|
1786
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1787
|
-
return Fn(e) ? "" : lr(e, t);
|
|
1788
|
-
}
|
|
1789
|
-
var et = { exports: {} }, Ht;
|
|
1790
|
-
function $n() {
|
|
1791
|
-
return Ht || (Ht = 1, (function(e) {
|
|
1792
|
-
var t = (function() {
|
|
1793
|
-
var r = String.fromCharCode, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", c = {};
|
|
1794
|
-
function u(n, a) {
|
|
1795
|
-
if (!c[n]) {
|
|
1796
|
-
c[n] = {};
|
|
1797
|
-
for (var l = 0; l < n.length; l++)
|
|
1798
|
-
c[n][n.charAt(l)] = l;
|
|
1799
|
-
}
|
|
1800
|
-
return c[n][a];
|
|
1801
|
-
}
|
|
1802
|
-
var p = {
|
|
1803
|
-
compressToBase64: function(n) {
|
|
1804
|
-
if (n == null) return "";
|
|
1805
|
-
var a = p._compress(n, 6, function(l) {
|
|
1806
|
-
return o.charAt(l);
|
|
1807
|
-
});
|
|
1808
|
-
switch (a.length % 4) {
|
|
1809
|
-
// To produce valid Base64
|
|
1810
|
-
default:
|
|
1811
|
-
// When could this happen ?
|
|
1812
|
-
case 0:
|
|
1813
|
-
return a;
|
|
1814
|
-
case 1:
|
|
1815
|
-
return a + "===";
|
|
1816
|
-
case 2:
|
|
1817
|
-
return a + "==";
|
|
1818
|
-
case 3:
|
|
1819
|
-
return a + "=";
|
|
1820
|
-
}
|
|
1821
|
-
},
|
|
1822
|
-
decompressFromBase64: function(n) {
|
|
1823
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32, function(a) {
|
|
1824
|
-
return u(o, n.charAt(a));
|
|
1825
|
-
});
|
|
1826
|
-
},
|
|
1827
|
-
compressToUTF16: function(n) {
|
|
1828
|
-
return n == null ? "" : p._compress(n, 15, function(a) {
|
|
1829
|
-
return r(a + 32);
|
|
1830
|
-
}) + " ";
|
|
1831
|
-
},
|
|
1832
|
-
decompressFromUTF16: function(n) {
|
|
1833
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 16384, function(a) {
|
|
1834
|
-
return n.charCodeAt(a) - 32;
|
|
1835
|
-
});
|
|
1836
|
-
},
|
|
1837
|
-
//compress into uint8array (UCS-2 big endian format)
|
|
1838
|
-
compressToUint8Array: function(n) {
|
|
1839
|
-
for (var a = p.compress(n), l = new Uint8Array(a.length * 2), i = 0, d = a.length; i < d; i++) {
|
|
1840
|
-
var m = a.charCodeAt(i);
|
|
1841
|
-
l[i * 2] = m >>> 8, l[i * 2 + 1] = m % 256;
|
|
1842
|
-
}
|
|
1843
|
-
return l;
|
|
1844
|
-
},
|
|
1845
|
-
//decompress from uint8array (UCS-2 big endian format)
|
|
1846
|
-
decompressFromUint8Array: function(n) {
|
|
1847
|
-
if (n == null)
|
|
1848
|
-
return p.decompress(n);
|
|
1849
|
-
for (var a = new Array(n.length / 2), l = 0, i = a.length; l < i; l++)
|
|
1850
|
-
a[l] = n[l * 2] * 256 + n[l * 2 + 1];
|
|
1851
|
-
var d = [];
|
|
1852
|
-
return a.forEach(function(m) {
|
|
1853
|
-
d.push(r(m));
|
|
1854
|
-
}), p.decompress(d.join(""));
|
|
1855
|
-
},
|
|
1856
|
-
//compress into a string that is already URI encoded
|
|
1857
|
-
compressToEncodedURIComponent: function(n) {
|
|
1858
|
-
return n == null ? "" : p._compress(n, 6, function(a) {
|
|
1859
|
-
return s.charAt(a);
|
|
1860
|
-
});
|
|
1861
|
-
},
|
|
1862
|
-
//decompress from an output of compressToEncodedURIComponent
|
|
1863
|
-
decompressFromEncodedURIComponent: function(n) {
|
|
1864
|
-
return n == null ? "" : n == "" ? null : (n = n.replace(/ /g, "+"), p._decompress(n.length, 32, function(a) {
|
|
1865
|
-
return u(s, n.charAt(a));
|
|
1866
|
-
}));
|
|
1867
|
-
},
|
|
1868
|
-
compress: function(n) {
|
|
1869
|
-
return p._compress(n, 16, function(a) {
|
|
1870
|
-
return r(a);
|
|
1871
|
-
});
|
|
1872
|
-
},
|
|
1873
|
-
_compress: function(n, a, l) {
|
|
1874
|
-
if (n == null) return "";
|
|
1875
|
-
var i, d, m = {}, E = {}, h = "", w = "", f = "", A = 2, I = 3, x = 2, M = [], y = 0, g = 0, v;
|
|
1876
|
-
for (v = 0; v < n.length; v += 1)
|
|
1877
|
-
if (h = n.charAt(v), Object.prototype.hasOwnProperty.call(m, h) || (m[h] = I++, E[h] = !0), w = f + h, Object.prototype.hasOwnProperty.call(m, w))
|
|
1878
|
-
f = w;
|
|
1879
|
-
else {
|
|
1880
|
-
if (Object.prototype.hasOwnProperty.call(E, f)) {
|
|
1881
|
-
if (f.charCodeAt(0) < 256) {
|
|
1882
|
-
for (i = 0; i < x; i++)
|
|
1883
|
-
y = y << 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++;
|
|
1884
|
-
for (d = f.charCodeAt(0), i = 0; i < 8; i++)
|
|
1885
|
-
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1886
|
-
} else {
|
|
1887
|
-
for (d = 1, i = 0; i < x; i++)
|
|
1888
|
-
y = y << 1 | d, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = 0;
|
|
1889
|
-
for (d = f.charCodeAt(0), i = 0; i < 16; i++)
|
|
1890
|
-
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1891
|
-
}
|
|
1892
|
-
A--, A == 0 && (A = Math.pow(2, x), x++), delete E[f];
|
|
1893
|
-
} else
|
|
1894
|
-
for (d = m[f], i = 0; i < x; i++)
|
|
1895
|
-
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1896
|
-
A--, A == 0 && (A = Math.pow(2, x), x++), m[w] = I++, f = String(h);
|
|
1897
|
-
}
|
|
1898
|
-
if (f !== "") {
|
|
1899
|
-
if (Object.prototype.hasOwnProperty.call(E, f)) {
|
|
1900
|
-
if (f.charCodeAt(0) < 256) {
|
|
1901
|
-
for (i = 0; i < x; i++)
|
|
1902
|
-
y = y << 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++;
|
|
1903
|
-
for (d = f.charCodeAt(0), i = 0; i < 8; i++)
|
|
1904
|
-
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1905
|
-
} else {
|
|
1906
|
-
for (d = 1, i = 0; i < x; i++)
|
|
1907
|
-
y = y << 1 | d, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = 0;
|
|
1908
|
-
for (d = f.charCodeAt(0), i = 0; i < 16; i++)
|
|
1909
|
-
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1910
|
-
}
|
|
1911
|
-
A--, A == 0 && (A = Math.pow(2, x), x++), delete E[f];
|
|
1912
|
-
} else
|
|
1913
|
-
for (d = m[f], i = 0; i < x; i++)
|
|
1914
|
-
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1915
|
-
A--, A == 0 && (A = Math.pow(2, x), x++);
|
|
1916
|
-
}
|
|
1917
|
-
for (d = 2, i = 0; i < x; i++)
|
|
1918
|
-
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1919
|
-
for (; ; )
|
|
1920
|
-
if (y = y << 1, g == a - 1) {
|
|
1921
|
-
M.push(l(y));
|
|
1922
|
-
break;
|
|
1923
|
-
} else g++;
|
|
1924
|
-
return M.join("");
|
|
1925
|
-
},
|
|
1926
|
-
decompress: function(n) {
|
|
1927
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32768, function(a) {
|
|
1928
|
-
return n.charCodeAt(a);
|
|
1929
|
-
});
|
|
1930
|
-
},
|
|
1931
|
-
_decompress: function(n, a, l) {
|
|
1932
|
-
var i = [], d = 4, m = 4, E = 3, h = "", w = [], f, A, I, x, M, y, g, v = { val: l(0), position: a, index: 1 };
|
|
1933
|
-
for (f = 0; f < 3; f += 1)
|
|
1934
|
-
i[f] = f;
|
|
1935
|
-
for (I = 0, M = Math.pow(2, 2), y = 1; y != M; )
|
|
1936
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1937
|
-
switch (I) {
|
|
1938
|
-
case 0:
|
|
1939
|
-
for (I = 0, M = Math.pow(2, 8), y = 1; y != M; )
|
|
1940
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1941
|
-
g = r(I);
|
|
1942
|
-
break;
|
|
1943
|
-
case 1:
|
|
1944
|
-
for (I = 0, M = Math.pow(2, 16), y = 1; y != M; )
|
|
1945
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1946
|
-
g = r(I);
|
|
1947
|
-
break;
|
|
1948
|
-
case 2:
|
|
1949
|
-
return "";
|
|
1950
|
-
}
|
|
1951
|
-
for (i[3] = g, A = g, w.push(g); ; ) {
|
|
1952
|
-
if (v.index > n)
|
|
1953
|
-
return "";
|
|
1954
|
-
for (I = 0, M = Math.pow(2, E), y = 1; y != M; )
|
|
1955
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1956
|
-
switch (g = I) {
|
|
1957
|
-
case 0:
|
|
1958
|
-
for (I = 0, M = Math.pow(2, 8), y = 1; y != M; )
|
|
1959
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1960
|
-
i[m++] = r(I), g = m - 1, d--;
|
|
1961
|
-
break;
|
|
1962
|
-
case 1:
|
|
1963
|
-
for (I = 0, M = Math.pow(2, 16), y = 1; y != M; )
|
|
1964
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1965
|
-
i[m++] = r(I), g = m - 1, d--;
|
|
1966
|
-
break;
|
|
1967
|
-
case 2:
|
|
1968
|
-
return w.join("");
|
|
1969
|
-
}
|
|
1970
|
-
if (d == 0 && (d = Math.pow(2, E), E++), i[g])
|
|
1971
|
-
h = i[g];
|
|
1972
|
-
else if (g === m)
|
|
1973
|
-
h = A + A.charAt(0);
|
|
1974
|
-
else
|
|
1975
|
-
return null;
|
|
1976
|
-
w.push(h), i[m++] = A + h.charAt(0), d--, A = h, d == 0 && (d = Math.pow(2, E), E++);
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
|
-
return p;
|
|
1981
|
-
})();
|
|
1982
|
-
e != null ? e.exports = t : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
1983
|
-
return t;
|
|
1984
|
-
});
|
|
1985
|
-
})(et)), et.exports;
|
|
1986
|
-
}
|
|
1987
|
-
var zn = $n();
|
|
1988
|
-
const Un = /* @__PURE__ */ Lr(zn);
|
|
1989
|
-
function cr(e) {
|
|
1990
|
-
return e.replace(/</g, "<").replace(/>/g, ">");
|
|
1991
|
-
}
|
|
1992
|
-
const Wn = (e, t, r, o, s, c, u) => {
|
|
1993
|
-
const p = o + r.indent, n = r.colors;
|
|
1994
|
-
return e.map((a) => {
|
|
1995
|
-
const l = t[a];
|
|
1996
|
-
let i = u(l, r, p, s, c);
|
|
1997
|
-
return typeof l != "string" && (i.indexOf(`
|
|
1998
|
-
`) !== -1 && (i = r.spacingOuter + p + i + r.spacingOuter + o), i = "{" + i + "}"), r.spacingInner + o + n.prop.open + a + n.prop.close + "=" + n.value.open + i + n.value.close;
|
|
1999
|
-
}).join("");
|
|
2000
|
-
}, Vn = 3, Hn = (e, t, r, o, s, c) => e.map((u) => {
|
|
2001
|
-
const p = typeof u == "string" ? fr(u, t) : c(u, t, r, o, s);
|
|
2002
|
-
return p === "" && typeof u == "object" && u !== null && u.nodeType !== Vn ? "" : t.spacingOuter + r + p;
|
|
2003
|
-
}).join(""), fr = (e, t) => {
|
|
2004
|
-
const r = t.colors.content;
|
|
2005
|
-
return r.open + cr(e) + r.close;
|
|
2006
|
-
}, Gn = (e, t) => {
|
|
2007
|
-
const r = t.colors.comment;
|
|
2008
|
-
return r.open + "<!--" + cr(e) + "-->" + r.close;
|
|
2009
|
-
}, Yn = (e, t, r, o, s) => {
|
|
2010
|
-
const c = o.colors.tag;
|
|
2011
|
-
return c.open + "<" + e + (t && c.close + t + o.spacingOuter + s + c.open) + (r ? ">" + c.close + r + o.spacingOuter + s + c.open + "</" + e : (t && !o.min ? "" : " ") + "/") + ">" + c.close;
|
|
2012
|
-
}, Kn = (e, t) => {
|
|
2013
|
-
const r = t.colors.tag;
|
|
2014
|
-
return r.open + "<" + e + r.close + " …" + r.open + " />" + r.close;
|
|
2015
|
-
}, Jn = 1, dr = 3, pr = 8, br = 11, Qn = /^((HTML|SVG)\w*)?Element$/, mr = (e) => {
|
|
2016
|
-
const {
|
|
2017
|
-
tagName: t
|
|
2018
|
-
} = e;
|
|
2019
|
-
return !!(typeof t == "string" && t.includes("-") || typeof e.hasAttribute == "function" && e.hasAttribute("is"));
|
|
2020
|
-
}, Xn = (e) => {
|
|
2021
|
-
const t = e.constructor.name, {
|
|
2022
|
-
nodeType: r
|
|
2023
|
-
} = e;
|
|
2024
|
-
return r === Jn && (Qn.test(t) || mr(e)) || r === dr && t === "Text" || r === pr && t === "Comment" || r === br && t === "DocumentFragment";
|
|
2025
|
-
};
|
|
2026
|
-
function Zn(e) {
|
|
2027
|
-
return e.nodeType === dr;
|
|
2028
|
-
}
|
|
2029
|
-
function ei(e) {
|
|
2030
|
-
return e.nodeType === pr;
|
|
2031
|
-
}
|
|
2032
|
-
function tt(e) {
|
|
2033
|
-
return e.nodeType === br;
|
|
2034
|
-
}
|
|
2035
|
-
function ti(e) {
|
|
2036
|
-
return {
|
|
2037
|
-
test: (t) => {
|
|
2038
|
-
var r;
|
|
2039
|
-
return ((t == null || (r = t.constructor) == null ? void 0 : r.name) || mr(t)) && Xn(t);
|
|
2040
|
-
},
|
|
2041
|
-
serialize: (t, r, o, s, c, u) => {
|
|
2042
|
-
if (Zn(t))
|
|
2043
|
-
return fr(t.data, r);
|
|
2044
|
-
if (ei(t))
|
|
2045
|
-
return Gn(t.data, r);
|
|
2046
|
-
const p = tt(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
2047
|
-
return ++s > r.maxDepth ? Kn(p, r) : Yn(p, Wn(tt(t) ? [] : Array.from(t.attributes).map((n) => n.name).sort(), tt(t) ? {} : Array.from(t.attributes).reduce((n, a) => (n[a.name] = a.value, n), {}), r, o + r.indent, s, c, u), Hn(Array.prototype.slice.call(t.childNodes || t.children).filter(e), r, o + r.indent, s, c, u), r, o);
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
|
-
}
|
|
2051
|
-
let yr = null, Et = null, vt = null;
|
|
2052
|
-
try {
|
|
2053
|
-
const e = module && module.require;
|
|
2054
|
-
Et = e.call(module, "fs").readFileSync, vt = e.call(module, "@babel/code-frame").codeFrameColumns, yr = e.call(module, "picocolors");
|
|
2055
|
-
} catch {
|
|
2056
|
-
}
|
|
2057
|
-
function ri(e) {
|
|
2058
|
-
const t = e.indexOf("(") + 1, r = e.indexOf(")"), o = e.slice(t, r), s = o.split(":"), [c, u, p] = [s[0], parseInt(s[1], 10), parseInt(s[2], 10)];
|
|
2059
|
-
let n = "";
|
|
2060
|
-
try {
|
|
2061
|
-
n = Et(c, "utf-8");
|
|
2062
|
-
} catch {
|
|
2063
|
-
return "";
|
|
2064
|
-
}
|
|
2065
|
-
const a = vt(n, {
|
|
2066
|
-
start: {
|
|
2067
|
-
line: u,
|
|
2068
|
-
column: p
|
|
2069
|
-
}
|
|
2070
|
-
}, {
|
|
2071
|
-
highlightCode: !0,
|
|
2072
|
-
linesBelow: 0
|
|
2073
|
-
});
|
|
2074
|
-
return yr.dim(o) + `
|
|
2075
|
-
` + a + `
|
|
2076
|
-
`;
|
|
2077
|
-
}
|
|
2078
|
-
function ni() {
|
|
2079
|
-
if (!Et || !vt)
|
|
2080
|
-
return "";
|
|
2081
|
-
const t = new Error().stack.split(`
|
|
2082
|
-
`).slice(1).find((r) => !r.includes("node_modules/"));
|
|
2083
|
-
return ri(t);
|
|
2084
|
-
}
|
|
2085
|
-
const gr = 3;
|
|
2086
|
-
function rt() {
|
|
2087
|
-
return typeof jest < "u" && jest !== null ? (
|
|
2088
|
-
// legacy timers
|
|
2089
|
-
setTimeout._isMockFunction === !0 || // modern timers
|
|
2090
|
-
// eslint-disable-next-line prefer-object-has-own -- not supported by our support matrix
|
|
2091
|
-
Object.prototype.hasOwnProperty.call(setTimeout, "clock")
|
|
2092
|
-
) : !1;
|
|
2093
|
-
}
|
|
2094
|
-
function Tt() {
|
|
2095
|
-
if (typeof window > "u")
|
|
2096
|
-
throw new Error("Could not find default container");
|
|
2097
|
-
return window.document;
|
|
2098
|
-
}
|
|
2099
|
-
function hr(e) {
|
|
2100
|
-
if (e.defaultView)
|
|
2101
|
-
return e.defaultView;
|
|
2102
|
-
if (e.ownerDocument && e.ownerDocument.defaultView)
|
|
2103
|
-
return e.ownerDocument.defaultView;
|
|
2104
|
-
if (e.window)
|
|
2105
|
-
return e.window;
|
|
2106
|
-
throw e.ownerDocument && e.ownerDocument.defaultView === null ? new Error("It looks like the window object is not available for the provided node.") : e.then instanceof Function ? new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?") : Array.isArray(e) ? new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?") : typeof e.debug == "function" && typeof e.logTestingPlaygroundURL == "function" ? new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?") : new Error("The given node is not an Element, the node type is: " + typeof e + ".");
|
|
2107
|
-
}
|
|
2108
|
-
function ce(e) {
|
|
2109
|
-
if (!e || typeof e.querySelector != "function" || typeof e.querySelectorAll != "function")
|
|
2110
|
-
throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + t(e) + ".");
|
|
2111
|
-
function t(r) {
|
|
2112
|
-
return typeof r == "object" ? r === null ? "null" : r.constructor.name : typeof r;
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
const ii = () => {
|
|
2116
|
-
if (typeof process > "u")
|
|
2117
|
-
return !1;
|
|
2118
|
-
let e;
|
|
2119
|
-
try {
|
|
2120
|
-
var t;
|
|
2121
|
-
const r = (t = process.env) == null ? void 0 : t.COLORS;
|
|
2122
|
-
r && (e = JSON.parse(r));
|
|
2123
|
-
} catch {
|
|
2124
|
-
}
|
|
2125
|
-
return typeof e == "boolean" ? e : process.versions !== void 0 && process.versions.node !== void 0;
|
|
2126
|
-
}, {
|
|
2127
|
-
DOMCollection: oi
|
|
2128
|
-
} = tr.plugins, ai = 1, ui = 8;
|
|
2129
|
-
function li(e) {
|
|
2130
|
-
return e.nodeType !== ui && (e.nodeType !== ai || !e.matches(j().defaultIgnore));
|
|
2131
|
-
}
|
|
2132
|
-
function Te(e, t, r) {
|
|
2133
|
-
if (r === void 0 && (r = {}), e || (e = Tt().body), typeof t != "number" && (t = typeof process < "u" && typeof process.env < "u" && process.env.DEBUG_PRINT_LIMIT || 7e3), t === 0)
|
|
2134
|
-
return "";
|
|
2135
|
-
e.documentElement && (e = e.documentElement);
|
|
2136
|
-
let o = typeof e;
|
|
2137
|
-
if (o === "object" ? o = e.constructor.name : e = {}, !("outerHTML" in e))
|
|
2138
|
-
throw new TypeError("Expected an element or document but got " + o);
|
|
2139
|
-
const {
|
|
2140
|
-
filterNode: s = li,
|
|
2141
|
-
...c
|
|
2142
|
-
} = r, u = tr.format(e, {
|
|
2143
|
-
plugins: [ti(s), oi],
|
|
2144
|
-
printFunctionName: !1,
|
|
2145
|
-
highlight: ii(),
|
|
2146
|
-
...c
|
|
2147
|
-
});
|
|
2148
|
-
return t !== void 0 && e.outerHTML.length > t ? u.slice(0, t) + "..." : u;
|
|
2149
|
-
}
|
|
2150
|
-
const Gt = function() {
|
|
2151
|
-
const e = ni();
|
|
2152
|
-
console.log(e ? Te(...arguments) + `
|
|
2153
|
-
|
|
2154
|
-
` + e : Te(...arguments));
|
|
2155
|
-
};
|
|
2156
|
-
let me = {
|
|
2157
|
-
testIdAttribute: "data-testid",
|
|
2158
|
-
asyncUtilTimeout: 1e3,
|
|
2159
|
-
// asyncWrapper and advanceTimersWrapper is to support React's async `act` function.
|
|
2160
|
-
// forcing react-testing-library to wrap all async functions would've been
|
|
2161
|
-
// a total nightmare (consider wrapping every findBy* query and then also
|
|
2162
|
-
// updating `within` so those would be wrapped too. Total nightmare).
|
|
2163
|
-
// so we have this config option that's really only intended for
|
|
2164
|
-
// react-testing-library to use. For that reason, this feature will remain
|
|
2165
|
-
// undocumented.
|
|
2166
|
-
asyncWrapper: (e) => e(),
|
|
2167
|
-
unstable_advanceTimersWrapper: (e) => e(),
|
|
2168
|
-
eventWrapper: (e) => e(),
|
|
2169
|
-
// default value for the `hidden` option in `ByRole` queries
|
|
2170
|
-
defaultHidden: !1,
|
|
2171
|
-
// default value for the `ignore` option in `ByText` queries
|
|
2172
|
-
defaultIgnore: "script, style",
|
|
2173
|
-
// showOriginalStackTrace flag to show the full error stack traces for async errors
|
|
2174
|
-
showOriginalStackTrace: !1,
|
|
2175
|
-
// throw errors w/ suggestions for better queries. Opt in so off by default.
|
|
2176
|
-
throwSuggestions: !1,
|
|
2177
|
-
// called when getBy* queries fail. (message, container) => Error
|
|
2178
|
-
getElementError(e, t) {
|
|
2179
|
-
const r = Te(t), o = new Error([e, "Ignored nodes: comments, " + me.defaultIgnore + `
|
|
2180
|
-
` + r].filter(Boolean).join(`
|
|
2181
|
-
|
|
2182
|
-
`));
|
|
2183
|
-
return o.name = "TestingLibraryElementError", o;
|
|
2184
|
-
},
|
|
2185
|
-
_disableExpensiveErrorDiagnostics: !1,
|
|
2186
|
-
computedStyleSupportsPseudoElements: !1
|
|
2187
|
-
};
|
|
2188
|
-
function si(e) {
|
|
2189
|
-
try {
|
|
2190
|
-
return me._disableExpensiveErrorDiagnostics = !0, e();
|
|
2191
|
-
} finally {
|
|
2192
|
-
me._disableExpensiveErrorDiagnostics = !1;
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
|
-
function ci(e) {
|
|
2196
|
-
typeof e == "function" && (e = e(me)), me = {
|
|
2197
|
-
...me,
|
|
2198
|
-
...e
|
|
2199
|
-
};
|
|
2200
|
-
}
|
|
2201
|
-
function j() {
|
|
2202
|
-
return me;
|
|
2203
|
-
}
|
|
2204
|
-
const fi = ["button", "meter", "output", "progress", "select", "textarea", "input"];
|
|
2205
|
-
function Er(e) {
|
|
2206
|
-
return fi.includes(e.nodeName.toLowerCase()) ? "" : e.nodeType === gr ? e.textContent : Array.from(e.childNodes).map((t) => Er(t)).join("");
|
|
2207
|
-
}
|
|
2208
|
-
function it(e) {
|
|
2209
|
-
let t;
|
|
2210
|
-
return e.tagName.toLowerCase() === "label" ? t = Er(e) : t = e.value || e.textContent, t;
|
|
2211
|
-
}
|
|
2212
|
-
function vr(e) {
|
|
2213
|
-
if (e.labels !== void 0) {
|
|
2214
|
-
var t;
|
|
2215
|
-
return (t = e.labels) != null ? t : [];
|
|
2216
|
-
}
|
|
2217
|
-
if (!di(e)) return [];
|
|
2218
|
-
const r = e.ownerDocument.querySelectorAll("label");
|
|
2219
|
-
return Array.from(r).filter((o) => o.control === e);
|
|
2220
|
-
}
|
|
2221
|
-
function di(e) {
|
|
2222
|
-
return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName) || e.tagName === "INPUT" && e.getAttribute("type") !== "hidden";
|
|
2223
|
-
}
|
|
2224
|
-
function Tr(e, t, r) {
|
|
2225
|
-
let {
|
|
2226
|
-
selector: o = "*"
|
|
2227
|
-
} = r === void 0 ? {} : r;
|
|
2228
|
-
const s = t.getAttribute("aria-labelledby"), c = s ? s.split(" ") : [];
|
|
2229
|
-
return c.length ? c.map((u) => {
|
|
2230
|
-
const p = e.querySelector('[id="' + u + '"]');
|
|
2231
|
-
return p ? {
|
|
2232
|
-
content: it(p),
|
|
2233
|
-
formControl: null
|
|
2234
|
-
} : {
|
|
2235
|
-
content: "",
|
|
2236
|
-
formControl: null
|
|
2237
|
-
};
|
|
2238
|
-
}) : Array.from(vr(t)).map((u) => {
|
|
2239
|
-
const p = it(u), a = Array.from(u.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((l) => l.matches(o))[0];
|
|
2240
|
-
return {
|
|
2241
|
-
content: p,
|
|
2242
|
-
formControl: a
|
|
2243
|
-
};
|
|
2244
|
-
});
|
|
2245
|
-
}
|
|
2246
|
-
function wr(e) {
|
|
2247
|
-
if (e == null)
|
|
2248
|
-
throw new Error(
|
|
2249
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- implicitly converting `T` to `string`
|
|
2250
|
-
"It looks like " + e + " was passed instead of a matcher. Did you do something like getByText(" + e + ")?"
|
|
2251
|
-
);
|
|
2252
|
-
}
|
|
2253
|
-
function Ae(e, t, r, o) {
|
|
2254
|
-
if (typeof e != "string")
|
|
2255
|
-
return !1;
|
|
2256
|
-
wr(r);
|
|
2257
|
-
const s = o(e);
|
|
2258
|
-
return typeof r == "string" || typeof r == "number" ? s.toLowerCase().includes(r.toString().toLowerCase()) : typeof r == "function" ? r(s, t) : Sr(r, s);
|
|
2259
|
-
}
|
|
2260
|
-
function se(e, t, r, o) {
|
|
2261
|
-
if (typeof e != "string")
|
|
2262
|
-
return !1;
|
|
2263
|
-
wr(r);
|
|
2264
|
-
const s = o(e);
|
|
2265
|
-
return r instanceof Function ? r(s, t) : r instanceof RegExp ? Sr(r, s) : s === String(r);
|
|
2266
|
-
}
|
|
2267
|
-
function Ar(e) {
|
|
2268
|
-
let {
|
|
2269
|
-
trim: t = !0,
|
|
2270
|
-
collapseWhitespace: r = !0
|
|
2271
|
-
} = e === void 0 ? {} : e;
|
|
2272
|
-
return (o) => {
|
|
2273
|
-
let s = o;
|
|
2274
|
-
return s = t ? s.trim() : s, s = r ? s.replace(/\s+/g, " ") : s, s;
|
|
2275
|
-
};
|
|
2276
|
-
}
|
|
2277
|
-
function he(e) {
|
|
2278
|
-
let {
|
|
2279
|
-
trim: t,
|
|
2280
|
-
collapseWhitespace: r,
|
|
2281
|
-
normalizer: o
|
|
2282
|
-
} = e;
|
|
2283
|
-
if (!o)
|
|
2284
|
-
return Ar({
|
|
2285
|
-
trim: t,
|
|
2286
|
-
collapseWhitespace: r
|
|
2287
|
-
});
|
|
2288
|
-
if (typeof t < "u" || typeof r < "u")
|
|
2289
|
-
throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');
|
|
2290
|
-
return o;
|
|
2291
|
-
}
|
|
2292
|
-
function Sr(e, t) {
|
|
2293
|
-
const r = e.test(t);
|
|
2294
|
-
return e.global && e.lastIndex !== 0 && (console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."), e.lastIndex = 0), r;
|
|
2295
|
-
}
|
|
2296
|
-
function Ge(e) {
|
|
2297
|
-
return e.matches("input[type=submit], input[type=button], input[type=reset]") ? e.value : Array.from(e.childNodes).filter((t) => t.nodeType === gr && !!t.textContent).map((t) => t.textContent).join("");
|
|
2298
|
-
}
|
|
2299
|
-
const pi = bi(K.elementRoles);
|
|
2300
|
-
function Ir(e) {
|
|
2301
|
-
return e.hidden === !0 || e.getAttribute("aria-hidden") === "true" || e.ownerDocument.defaultView.getComputedStyle(e).display === "none";
|
|
2302
|
-
}
|
|
2303
|
-
function wt(e, t) {
|
|
2304
|
-
t === void 0 && (t = {});
|
|
2305
|
-
const {
|
|
2306
|
-
isSubtreeInaccessible: r = Ir
|
|
2307
|
-
} = t;
|
|
2308
|
-
if (e.ownerDocument.defaultView.getComputedStyle(e).visibility === "hidden")
|
|
2309
|
-
return !0;
|
|
2310
|
-
let s = e;
|
|
2311
|
-
for (; s; ) {
|
|
2312
|
-
if (r(s))
|
|
2313
|
-
return !0;
|
|
2314
|
-
s = s.parentElement;
|
|
2315
|
-
}
|
|
2316
|
-
return !1;
|
|
2317
|
-
}
|
|
2318
|
-
function At(e) {
|
|
2319
|
-
for (const {
|
|
2320
|
-
match: t,
|
|
2321
|
-
roles: r
|
|
2322
|
-
} of pi)
|
|
2323
|
-
if (t(e))
|
|
2324
|
-
return [...r];
|
|
2325
|
-
return [];
|
|
2326
|
-
}
|
|
2327
|
-
function bi(e) {
|
|
2328
|
-
function t(u) {
|
|
2329
|
-
let {
|
|
2330
|
-
name: p,
|
|
2331
|
-
attributes: n
|
|
2332
|
-
} = u;
|
|
2333
|
-
return "" + p + n.map((a) => {
|
|
2334
|
-
let {
|
|
2335
|
-
name: l,
|
|
2336
|
-
value: i,
|
|
2337
|
-
constraints: d = []
|
|
2338
|
-
} = a;
|
|
2339
|
-
const m = d.indexOf("undefined") !== -1, E = d.indexOf("set") !== -1;
|
|
2340
|
-
return typeof i < "u" ? "[" + l + '="' + i + '"]' : m ? ":not([" + l + "])" : E ? "[" + l + "]:not([" + l + '=""])' : "[" + l + "]";
|
|
2341
|
-
}).join("");
|
|
2342
|
-
}
|
|
2343
|
-
function r(u) {
|
|
2344
|
-
let {
|
|
2345
|
-
attributes: p = []
|
|
2346
|
-
} = u;
|
|
2347
|
-
return p.length;
|
|
2348
|
-
}
|
|
2349
|
-
function o(u, p) {
|
|
2350
|
-
let {
|
|
2351
|
-
specificity: n
|
|
2352
|
-
} = u, {
|
|
2353
|
-
specificity: a
|
|
2354
|
-
} = p;
|
|
2355
|
-
return a - n;
|
|
2356
|
-
}
|
|
2357
|
-
function s(u) {
|
|
2358
|
-
let {
|
|
2359
|
-
attributes: p = []
|
|
2360
|
-
} = u;
|
|
2361
|
-
const n = p.findIndex((l) => l.value && l.name === "type" && l.value === "text");
|
|
2362
|
-
n >= 0 && (p = [...p.slice(0, n), ...p.slice(n + 1)]);
|
|
2363
|
-
const a = t({
|
|
2364
|
-
...u,
|
|
2365
|
-
attributes: p
|
|
2366
|
-
});
|
|
2367
|
-
return (l) => n >= 0 && l.type !== "text" ? !1 : l.matches(a);
|
|
2368
|
-
}
|
|
2369
|
-
let c = [];
|
|
2370
|
-
for (const [u, p] of e.entries())
|
|
2371
|
-
c = [...c, {
|
|
2372
|
-
match: s(u),
|
|
2373
|
-
roles: Array.from(p),
|
|
2374
|
-
specificity: r(u)
|
|
2375
|
-
}];
|
|
2376
|
-
return c.sort(o);
|
|
2377
|
-
}
|
|
2378
|
-
function mi(e, t) {
|
|
2379
|
-
let {
|
|
2380
|
-
hidden: r = !1
|
|
2381
|
-
} = t === void 0 ? {} : t;
|
|
2382
|
-
function o(s) {
|
|
2383
|
-
return [s, ...Array.from(s.children).reduce((c, u) => [...c, ...o(u)], [])];
|
|
2384
|
-
}
|
|
2385
|
-
return o(e).filter((s) => r === !1 ? wt(s) === !1 : !0).reduce((s, c) => {
|
|
2386
|
-
let u = [];
|
|
2387
|
-
return c.hasAttribute("role") ? u = c.getAttribute("role").split(" ").slice(0, 1) : u = At(c), u.reduce((p, n) => Array.isArray(p[n]) ? {
|
|
2388
|
-
...p,
|
|
2389
|
-
[n]: [...p[n], c]
|
|
2390
|
-
} : {
|
|
2391
|
-
...p,
|
|
2392
|
-
[n]: [c]
|
|
2393
|
-
}, s);
|
|
2394
|
-
}, {});
|
|
2395
|
-
}
|
|
2396
|
-
function yi(e, t) {
|
|
2397
|
-
let {
|
|
2398
|
-
hidden: r,
|
|
2399
|
-
includeDescription: o
|
|
2400
|
-
} = t;
|
|
2401
|
-
const s = mi(e, {
|
|
2402
|
-
hidden: r
|
|
2403
|
-
});
|
|
2404
|
-
return Object.entries(s).filter((c) => {
|
|
2405
|
-
let [u] = c;
|
|
2406
|
-
return u !== "generic";
|
|
2407
|
-
}).map((c) => {
|
|
2408
|
-
let [u, p] = c;
|
|
2409
|
-
const n = "-".repeat(50), a = p.map((l) => {
|
|
2410
|
-
const i = 'Name "' + ht(l, {
|
|
2411
|
-
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
2412
|
-
}) + `":
|
|
2413
|
-
`, d = Te(l.cloneNode(!1));
|
|
2414
|
-
if (o) {
|
|
2415
|
-
const m = 'Description "' + sr(l, {
|
|
2416
|
-
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
2417
|
-
}) + `":
|
|
2418
|
-
`;
|
|
2419
|
-
return "" + i + m + d;
|
|
2420
|
-
}
|
|
2421
|
-
return "" + i + d;
|
|
2422
|
-
}).join(`
|
|
2423
|
-
|
|
2424
|
-
`);
|
|
2425
|
-
return u + `:
|
|
2426
|
-
|
|
2427
|
-
` + a + `
|
|
2428
|
-
|
|
2429
|
-
` + n;
|
|
2430
|
-
}).join(`
|
|
2431
|
-
`);
|
|
2432
|
-
}
|
|
2433
|
-
function gi(e) {
|
|
2434
|
-
return e.tagName === "OPTION" ? e.selected : _e(e, "aria-selected");
|
|
2435
|
-
}
|
|
2436
|
-
function hi(e) {
|
|
2437
|
-
return e.getAttribute("aria-busy") === "true";
|
|
2438
|
-
}
|
|
2439
|
-
function Ei(e) {
|
|
2440
|
-
if (!("indeterminate" in e && e.indeterminate))
|
|
2441
|
-
return "checked" in e ? e.checked : _e(e, "aria-checked");
|
|
2442
|
-
}
|
|
2443
|
-
function vi(e) {
|
|
2444
|
-
return _e(e, "aria-pressed");
|
|
2445
|
-
}
|
|
2446
|
-
function Ti(e) {
|
|
2447
|
-
var t, r;
|
|
2448
|
-
return (t = (r = _e(e, "aria-current")) != null ? r : e.getAttribute("aria-current")) != null ? t : !1;
|
|
2449
|
-
}
|
|
2450
|
-
function wi(e) {
|
|
2451
|
-
return _e(e, "aria-expanded");
|
|
2452
|
-
}
|
|
2453
|
-
function _e(e, t) {
|
|
2454
|
-
const r = e.getAttribute(t);
|
|
2455
|
-
if (r === "true")
|
|
2456
|
-
return !0;
|
|
2457
|
-
if (r === "false")
|
|
2458
|
-
return !1;
|
|
2459
|
-
}
|
|
2460
|
-
function Ai(e) {
|
|
2461
|
-
const t = {
|
|
2462
|
-
H1: 1,
|
|
2463
|
-
H2: 2,
|
|
2464
|
-
H3: 3,
|
|
2465
|
-
H4: 4,
|
|
2466
|
-
H5: 5,
|
|
2467
|
-
H6: 6
|
|
2468
|
-
};
|
|
2469
|
-
return e.getAttribute("aria-level") && Number(e.getAttribute("aria-level")) || t[e.tagName];
|
|
2470
|
-
}
|
|
2471
|
-
function Si(e) {
|
|
2472
|
-
const t = e.getAttribute("aria-valuenow");
|
|
2473
|
-
return t === null ? void 0 : +t;
|
|
2474
|
-
}
|
|
2475
|
-
function Ii(e) {
|
|
2476
|
-
const t = e.getAttribute("aria-valuemax");
|
|
2477
|
-
return t === null ? void 0 : +t;
|
|
2478
|
-
}
|
|
2479
|
-
function xi(e) {
|
|
2480
|
-
const t = e.getAttribute("aria-valuemin");
|
|
2481
|
-
return t === null ? void 0 : +t;
|
|
2482
|
-
}
|
|
2483
|
-
function Oi(e) {
|
|
2484
|
-
const t = e.getAttribute("aria-valuetext");
|
|
2485
|
-
return t === null ? void 0 : t;
|
|
2486
|
-
}
|
|
2487
|
-
const Yt = Ar();
|
|
2488
|
-
function Mi(e) {
|
|
2489
|
-
return e.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
|
|
2490
|
-
}
|
|
2491
|
-
function Kt(e) {
|
|
2492
|
-
return new RegExp(Mi(e.toLowerCase()), "i");
|
|
2493
|
-
}
|
|
2494
|
-
function fe(e, t, r, o) {
|
|
2495
|
-
let {
|
|
2496
|
-
variant: s,
|
|
2497
|
-
name: c
|
|
2498
|
-
} = o, u = "";
|
|
2499
|
-
const p = {}, n = [["Role", "TestId"].includes(e) ? r : Kt(r)];
|
|
2500
|
-
c && (p.name = Kt(c)), e === "Role" && wt(t) && (p.hidden = !0, u = `Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
2501
|
-
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
2502
|
-
`), Object.keys(p).length > 0 && n.push(p);
|
|
2503
|
-
const a = s + "By" + e;
|
|
2504
|
-
return {
|
|
2505
|
-
queryName: e,
|
|
2506
|
-
queryMethod: a,
|
|
2507
|
-
queryArgs: n,
|
|
2508
|
-
variant: s,
|
|
2509
|
-
warning: u,
|
|
2510
|
-
toString() {
|
|
2511
|
-
u && console.warn(u);
|
|
2512
|
-
let [l, i] = n;
|
|
2513
|
-
return l = typeof l == "string" ? "'" + l + "'" : l, i = i ? ", { " + Object.entries(i).map((d) => {
|
|
2514
|
-
let [m, E] = d;
|
|
2515
|
-
return m + ": " + E;
|
|
2516
|
-
}).join(", ") + " }" : "", a + "(" + l + i + ")";
|
|
2517
|
-
}
|
|
2518
|
-
};
|
|
2519
|
-
}
|
|
2520
|
-
function de(e, t, r) {
|
|
2521
|
-
return r && !0;
|
|
2522
|
-
}
|
|
2523
|
-
function ot(e, t, r) {
|
|
2524
|
-
var o, s;
|
|
2525
|
-
if (t === void 0 && (t = "get"), e.matches(j().defaultIgnore))
|
|
2526
|
-
return;
|
|
2527
|
-
const c = (o = e.getAttribute("role")) != null ? o : (s = At(e)) == null ? void 0 : s[0];
|
|
2528
|
-
if (c !== "generic" && de("Role", r, c))
|
|
2529
|
-
return fe("Role", e, c, {
|
|
2530
|
-
variant: t,
|
|
2531
|
-
name: ht(e, {
|
|
2532
|
-
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
2533
|
-
})
|
|
2534
|
-
});
|
|
2535
|
-
const u = Tr(document, e).map((d) => d.content).join(" ");
|
|
2536
|
-
if (de("LabelText", r, u))
|
|
2537
|
-
return fe("LabelText", e, u, {
|
|
2538
|
-
variant: t
|
|
2539
|
-
});
|
|
2540
|
-
const p = e.getAttribute("placeholder");
|
|
2541
|
-
if (de("PlaceholderText", r, p))
|
|
2542
|
-
return fe("PlaceholderText", e, p, {
|
|
2543
|
-
variant: t
|
|
2544
|
-
});
|
|
2545
|
-
const n = Yt(Ge(e));
|
|
2546
|
-
if (de("Text", r, n))
|
|
2547
|
-
return fe("Text", e, n, {
|
|
2548
|
-
variant: t
|
|
2549
|
-
});
|
|
2550
|
-
if (de("DisplayValue", r, e.value))
|
|
2551
|
-
return fe("DisplayValue", e, Yt(e.value), {
|
|
2552
|
-
variant: t
|
|
2553
|
-
});
|
|
2554
|
-
const a = e.getAttribute("alt");
|
|
2555
|
-
if (de("AltText", r, a))
|
|
2556
|
-
return fe("AltText", e, a, {
|
|
2557
|
-
variant: t
|
|
2558
|
-
});
|
|
2559
|
-
const l = e.getAttribute("title");
|
|
2560
|
-
if (de("Title", r, l))
|
|
2561
|
-
return fe("Title", e, l, {
|
|
2562
|
-
variant: t
|
|
2563
|
-
});
|
|
2564
|
-
const i = e.getAttribute(j().testIdAttribute);
|
|
2565
|
-
if (de("TestId", r, i))
|
|
2566
|
-
return fe("TestId", e, i, {
|
|
2567
|
-
variant: t
|
|
2568
|
-
});
|
|
2569
|
-
}
|
|
2570
|
-
function qe(e, t) {
|
|
2571
|
-
e.stack = t.stack.replace(t.message, e.message);
|
|
2572
|
-
}
|
|
2573
|
-
function _i(e, t) {
|
|
2574
|
-
let {
|
|
2575
|
-
container: r = Tt(),
|
|
2576
|
-
timeout: o = j().asyncUtilTimeout,
|
|
2577
|
-
showOriginalStackTrace: s = j().showOriginalStackTrace,
|
|
2578
|
-
stackTraceError: c,
|
|
2579
|
-
interval: u = 50,
|
|
2580
|
-
onTimeout: p = (a) => (Object.defineProperty(a, "message", {
|
|
2581
|
-
value: j().getElementError(a.message, r).message
|
|
2582
|
-
}), a),
|
|
2583
|
-
mutationObserverOptions: n = {
|
|
2584
|
-
subtree: !0,
|
|
2585
|
-
childList: !0,
|
|
2586
|
-
attributes: !0,
|
|
2587
|
-
characterData: !0
|
|
2588
|
-
}
|
|
2589
|
-
} = t;
|
|
2590
|
-
if (typeof e != "function")
|
|
2591
|
-
throw new TypeError("Received `callback` arg must be a function");
|
|
2592
|
-
return new Promise(async (a, l) => {
|
|
2593
|
-
let i, d, m, E = !1, h = "idle";
|
|
2594
|
-
const w = setTimeout(M, o), f = rt();
|
|
2595
|
-
if (f) {
|
|
2596
|
-
const {
|
|
2597
|
-
unstable_advanceTimersWrapper: y
|
|
2598
|
-
} = j();
|
|
2599
|
-
for (x(); !E; ) {
|
|
2600
|
-
if (!rt()) {
|
|
2601
|
-
const g = new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
|
|
2602
|
-
s || qe(g, c), l(g);
|
|
2603
|
-
return;
|
|
2604
|
-
}
|
|
2605
|
-
if (await y(async () => {
|
|
2606
|
-
jest.advanceTimersByTime(u);
|
|
2607
|
-
}), E)
|
|
2608
|
-
break;
|
|
2609
|
-
x();
|
|
2610
|
-
}
|
|
2611
|
-
} else {
|
|
2612
|
-
try {
|
|
2613
|
-
ce(r);
|
|
2614
|
-
} catch (g) {
|
|
2615
|
-
l(g);
|
|
2616
|
-
return;
|
|
2617
|
-
}
|
|
2618
|
-
d = setInterval(I, u);
|
|
2619
|
-
const {
|
|
2620
|
-
MutationObserver: y
|
|
2621
|
-
} = hr(r);
|
|
2622
|
-
m = new y(I), m.observe(r, n), x();
|
|
2623
|
-
}
|
|
2624
|
-
function A(y, g) {
|
|
2625
|
-
E = !0, clearTimeout(w), f || (clearInterval(d), m.disconnect()), y ? l(y) : a(g);
|
|
2626
|
-
}
|
|
2627
|
-
function I() {
|
|
2628
|
-
if (rt()) {
|
|
2629
|
-
const y = new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
|
|
2630
|
-
return s || qe(y, c), l(y);
|
|
2631
|
-
} else
|
|
2632
|
-
return x();
|
|
2633
|
-
}
|
|
2634
|
-
function x() {
|
|
2635
|
-
if (h !== "pending")
|
|
2636
|
-
try {
|
|
2637
|
-
const y = si(e);
|
|
2638
|
-
typeof y?.then == "function" ? (h = "pending", y.then((g) => {
|
|
2639
|
-
h = "resolved", A(null, g);
|
|
2640
|
-
}, (g) => {
|
|
2641
|
-
h = "rejected", i = g;
|
|
2642
|
-
})) : A(null, y);
|
|
2643
|
-
} catch (y) {
|
|
2644
|
-
i = y;
|
|
2645
|
-
}
|
|
2646
|
-
}
|
|
2647
|
-
function M() {
|
|
2648
|
-
let y;
|
|
2649
|
-
i ? (y = i, !s && y.name === "TestingLibraryElementError" && qe(y, c)) : (y = new Error("Timed out in waitFor."), s || qe(y, c)), A(p(y), null);
|
|
2650
|
-
}
|
|
2651
|
-
});
|
|
2652
|
-
}
|
|
2653
|
-
function Ci(e, t) {
|
|
2654
|
-
const r = new Error("STACK_TRACE_MESSAGE");
|
|
2655
|
-
return j().asyncWrapper(() => _i(e, {
|
|
2656
|
-
stackTraceError: r,
|
|
2657
|
-
...t
|
|
2658
|
-
}));
|
|
2659
|
-
}
|
|
2660
|
-
function xr(e, t) {
|
|
2661
|
-
return j().getElementError(e, t);
|
|
2662
|
-
}
|
|
2663
|
-
function Ri(e, t) {
|
|
2664
|
-
return xr(e + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", t);
|
|
2665
|
-
}
|
|
2666
|
-
function Ye(e, t, r, o) {
|
|
2667
|
-
let {
|
|
2668
|
-
exact: s = !0,
|
|
2669
|
-
collapseWhitespace: c,
|
|
2670
|
-
trim: u,
|
|
2671
|
-
normalizer: p
|
|
2672
|
-
} = o === void 0 ? {} : o;
|
|
2673
|
-
const n = s ? se : Ae, a = he({
|
|
2674
|
-
collapseWhitespace: c,
|
|
2675
|
-
trim: u,
|
|
2676
|
-
normalizer: p
|
|
2677
|
-
});
|
|
2678
|
-
return Array.from(t.querySelectorAll("[" + e + "]")).filter((l) => n(l.getAttribute(e), l, r, a));
|
|
2679
|
-
}
|
|
2680
|
-
function ze(e, t) {
|
|
2681
|
-
return function(r) {
|
|
2682
|
-
for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
|
|
2683
|
-
s[c - 1] = arguments[c];
|
|
2684
|
-
const u = e(r, ...s);
|
|
2685
|
-
if (u.length > 1) {
|
|
2686
|
-
const p = u.map((n) => xr(null, n).message).join(`
|
|
2687
|
-
|
|
2688
|
-
`);
|
|
2689
|
-
throw Ri(t(r, ...s) + `
|
|
2690
|
-
|
|
2691
|
-
Here are the matching elements:
|
|
2692
|
-
|
|
2693
|
-
` + p, r);
|
|
2694
|
-
}
|
|
2695
|
-
return u[0] || null;
|
|
2696
|
-
};
|
|
2697
|
-
}
|
|
2698
|
-
function Or(e, t) {
|
|
2699
|
-
return j().getElementError(`A better query is available, try this:
|
|
2700
|
-
` + e.toString() + `
|
|
2701
|
-
`, t);
|
|
2702
|
-
}
|
|
2703
|
-
function Bi(e, t) {
|
|
2704
|
-
return function(r) {
|
|
2705
|
-
for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
|
|
2706
|
-
s[c - 1] = arguments[c];
|
|
2707
|
-
const u = e(r, ...s);
|
|
2708
|
-
if (!u.length)
|
|
2709
|
-
throw j().getElementError(t(r, ...s), r);
|
|
2710
|
-
return u;
|
|
2711
|
-
};
|
|
2712
|
-
}
|
|
2713
|
-
function Ue(e) {
|
|
2714
|
-
return (t, r, o, s) => Ci(() => e(t, r, o), {
|
|
2715
|
-
container: t,
|
|
2716
|
-
...s
|
|
2717
|
-
});
|
|
2718
|
-
}
|
|
2719
|
-
const ve = (e, t, r) => function(o) {
|
|
2720
|
-
for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
|
|
2721
|
-
c[u - 1] = arguments[u];
|
|
2722
|
-
const p = e(o, ...c), [{
|
|
2723
|
-
suggest: n = j().throwSuggestions
|
|
2724
|
-
} = {}] = c.slice(-1);
|
|
2725
|
-
if (p && n) {
|
|
2726
|
-
const a = ot(p, r);
|
|
2727
|
-
if (a && !t.endsWith(a.queryName))
|
|
2728
|
-
throw Or(a.toString(), o);
|
|
2729
|
-
}
|
|
2730
|
-
return p;
|
|
2731
|
-
}, J = (e, t, r) => function(o) {
|
|
2732
|
-
for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
|
|
2733
|
-
c[u - 1] = arguments[u];
|
|
2734
|
-
const p = e(o, ...c), [{
|
|
2735
|
-
suggest: n = j().throwSuggestions
|
|
2736
|
-
} = {}] = c.slice(-1);
|
|
2737
|
-
if (p.length && n) {
|
|
2738
|
-
const a = [...new Set(p.map((l) => {
|
|
2739
|
-
var i;
|
|
2740
|
-
return (i = ot(l, r)) == null ? void 0 : i.toString();
|
|
2741
|
-
}))];
|
|
2742
|
-
if (
|
|
2743
|
-
// only want to suggest if all the els have the same suggestion.
|
|
2744
|
-
a.length === 1 && !t.endsWith(
|
|
2745
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
|
|
2746
|
-
ot(p[0], r).queryName
|
|
2747
|
-
)
|
|
2748
|
-
)
|
|
2749
|
-
throw Or(a[0], o);
|
|
2750
|
-
}
|
|
2751
|
-
return p;
|
|
2752
|
-
};
|
|
2753
|
-
function Ee(e, t, r) {
|
|
2754
|
-
const o = ve(ze(e, t), e.name, "query"), s = Bi(e, r), c = ze(s, t), u = ve(c, e.name, "get"), p = J(s, e.name.replace("query", "get"), "getAll"), n = Ue(J(s, e.name, "findAll")), a = Ue(ve(c, e.name, "find"));
|
|
2755
|
-
return [o, p, u, n, a];
|
|
2756
|
-
}
|
|
2757
|
-
function Ni(e) {
|
|
2758
|
-
return Array.from(e.querySelectorAll("label,input")).map((t) => ({
|
|
2759
|
-
node: t,
|
|
2760
|
-
textToMatch: it(t)
|
|
2761
|
-
})).filter((t) => {
|
|
2762
|
-
let {
|
|
2763
|
-
textToMatch: r
|
|
2764
|
-
} = t;
|
|
2765
|
-
return r !== null;
|
|
2766
|
-
});
|
|
2767
|
-
}
|
|
2768
|
-
const Pi = function(e, t, r) {
|
|
2769
|
-
let {
|
|
2770
|
-
exact: o = !0,
|
|
2771
|
-
trim: s,
|
|
2772
|
-
collapseWhitespace: c,
|
|
2773
|
-
normalizer: u
|
|
2774
|
-
} = r === void 0 ? {} : r;
|
|
2775
|
-
const p = o ? se : Ae, n = he({
|
|
2776
|
-
collapseWhitespace: c,
|
|
2777
|
-
trim: s,
|
|
2778
|
-
normalizer: u
|
|
2779
|
-
});
|
|
2780
|
-
return Ni(e).filter((l) => {
|
|
2781
|
-
let {
|
|
2782
|
-
node: i,
|
|
2783
|
-
textToMatch: d
|
|
2784
|
-
} = l;
|
|
2785
|
-
return p(d, i, t, n);
|
|
2786
|
-
}).map((l) => {
|
|
2787
|
-
let {
|
|
2788
|
-
node: i
|
|
2789
|
-
} = l;
|
|
2790
|
-
return i;
|
|
2791
|
-
});
|
|
2792
|
-
}, Me = function(e, t, r) {
|
|
2793
|
-
let {
|
|
2794
|
-
selector: o = "*",
|
|
2795
|
-
exact: s = !0,
|
|
2796
|
-
collapseWhitespace: c,
|
|
2797
|
-
trim: u,
|
|
2798
|
-
normalizer: p
|
|
2799
|
-
} = r === void 0 ? {} : r;
|
|
2800
|
-
ce(e);
|
|
2801
|
-
const n = s ? se : Ae, a = he({
|
|
2802
|
-
collapseWhitespace: c,
|
|
2803
|
-
trim: u,
|
|
2804
|
-
normalizer: p
|
|
2805
|
-
}), l = Array.from(e.querySelectorAll("*")).filter((i) => vr(i).length || i.hasAttribute("aria-labelledby")).reduce((i, d) => {
|
|
2806
|
-
const m = Tr(e, d, {
|
|
2807
|
-
selector: o
|
|
2808
|
-
});
|
|
2809
|
-
m.filter((h) => !!h.formControl).forEach((h) => {
|
|
2810
|
-
n(h.content, h.formControl, t, a) && h.formControl && i.push(h.formControl);
|
|
2811
|
-
});
|
|
2812
|
-
const E = m.filter((h) => !!h.content).map((h) => h.content);
|
|
2813
|
-
return n(E.join(" "), d, t, a) && i.push(d), E.length > 1 && E.forEach((h, w) => {
|
|
2814
|
-
n(h, d, t, a) && i.push(d);
|
|
2815
|
-
const f = [...E];
|
|
2816
|
-
f.splice(w, 1), f.length > 1 && n(f.join(" "), d, t, a) && i.push(d);
|
|
2817
|
-
}), i;
|
|
2818
|
-
}, []).concat(Ye("aria-label", e, t, {
|
|
2819
|
-
exact: s,
|
|
2820
|
-
normalizer: a
|
|
2821
|
-
}));
|
|
2822
|
-
return Array.from(new Set(l)).filter((i) => i.matches(o));
|
|
2823
|
-
}, ye = function(e, t) {
|
|
2824
|
-
for (var r = arguments.length, o = new Array(r > 2 ? r - 2 : 0), s = 2; s < r; s++)
|
|
2825
|
-
o[s - 2] = arguments[s];
|
|
2826
|
-
const c = Me(e, t, ...o);
|
|
2827
|
-
if (!c.length) {
|
|
2828
|
-
const u = Pi(e, t, ...o);
|
|
2829
|
-
if (u.length) {
|
|
2830
|
-
const p = u.map((n) => Li(e, n)).filter((n) => !!n);
|
|
2831
|
-
throw p.length ? j().getElementError(p.map((n) => "Found a label with the text of: " + t + ", however the element associated with this label (<" + n + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + n + " />, you can use aria-label or aria-labelledby instead.").join(`
|
|
2832
|
-
|
|
2833
|
-
`), e) : j().getElementError("Found a label with the text of: " + t + `, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`, e);
|
|
2834
|
-
} else
|
|
2835
|
-
throw j().getElementError("Unable to find a label with the text of: " + t, e);
|
|
2836
|
-
}
|
|
2837
|
-
return c;
|
|
2838
|
-
};
|
|
2839
|
-
function Li(e, t) {
|
|
2840
|
-
const r = t.getAttribute("for");
|
|
2841
|
-
if (!r)
|
|
2842
|
-
return null;
|
|
2843
|
-
const o = e.querySelector('[id="' + r + '"]');
|
|
2844
|
-
return o ? o.tagName.toLowerCase() : null;
|
|
2845
|
-
}
|
|
2846
|
-
const Mr = (e, t) => "Found multiple elements with the text of: " + t, Di = ve(ze(Me, Mr), Me.name, "query"), _r = ze(ye, Mr), qi = Ue(J(ye, ye.name, "findAll")), ji = Ue(ve(_r, ye.name, "find")), ki = J(ye, ye.name, "getAll"), Fi = ve(_r, ye.name, "get"), $i = J(Me, Me.name, "queryAll"), at = function() {
|
|
2847
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
2848
|
-
t[r] = arguments[r];
|
|
2849
|
-
return ce(t[0]), Ye("placeholder", ...t);
|
|
2850
|
-
}, zi = (e, t) => "Found multiple elements with the placeholder text of: " + t, Ui = (e, t) => "Unable to find an element with the placeholder text of: " + t, Wi = J(at, at.name, "queryAll"), [Vi, Hi, Gi, Yi, Ki] = Ee(at, zi, Ui), ut = function(e, t, r) {
|
|
2851
|
-
let {
|
|
2852
|
-
selector: o = "*",
|
|
2853
|
-
exact: s = !0,
|
|
2854
|
-
collapseWhitespace: c,
|
|
2855
|
-
trim: u,
|
|
2856
|
-
ignore: p = j().defaultIgnore,
|
|
2857
|
-
normalizer: n
|
|
2858
|
-
} = r === void 0 ? {} : r;
|
|
2859
|
-
ce(e);
|
|
2860
|
-
const a = s ? se : Ae, l = he({
|
|
2861
|
-
collapseWhitespace: c,
|
|
2862
|
-
trim: u,
|
|
2863
|
-
normalizer: n
|
|
2864
|
-
});
|
|
2865
|
-
let i = [];
|
|
2866
|
-
return typeof e.matches == "function" && e.matches(o) && (i = [e]), [...i, ...Array.from(e.querySelectorAll(o))].filter((d) => !p || !d.matches(p)).filter((d) => a(Ge(d), d, t, l));
|
|
2867
|
-
}, Ji = (e, t) => "Found multiple elements with the text: " + t, Qi = function(e, t, r) {
|
|
2868
|
-
r === void 0 && (r = {});
|
|
2869
|
-
const {
|
|
2870
|
-
collapseWhitespace: o,
|
|
2871
|
-
trim: s,
|
|
2872
|
-
normalizer: c,
|
|
2873
|
-
selector: u
|
|
2874
|
-
} = r, n = he({
|
|
2875
|
-
collapseWhitespace: o,
|
|
2876
|
-
trim: s,
|
|
2877
|
-
normalizer: c
|
|
2878
|
-
})(t.toString()), a = n !== t.toString(), l = (u ?? "*") !== "*";
|
|
2879
|
-
return "Unable to find an element with the text: " + (a ? n + " (normalized from '" + t + "')" : t) + (l ? ", which matches selector '" + u + "'" : "") + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.";
|
|
2880
|
-
}, Xi = J(ut, ut.name, "queryAll"), [Zi, eo, to, ro, no] = Ee(ut, Ji, Qi), lt = function(e, t, r) {
|
|
2881
|
-
let {
|
|
2882
|
-
exact: o = !0,
|
|
2883
|
-
collapseWhitespace: s,
|
|
2884
|
-
trim: c,
|
|
2885
|
-
normalizer: u
|
|
2886
|
-
} = r === void 0 ? {} : r;
|
|
2887
|
-
ce(e);
|
|
2888
|
-
const p = o ? se : Ae, n = he({
|
|
2889
|
-
collapseWhitespace: s,
|
|
2890
|
-
trim: c,
|
|
2891
|
-
normalizer: u
|
|
2892
|
-
});
|
|
2893
|
-
return Array.from(e.querySelectorAll("input,textarea,select")).filter((a) => a.tagName === "SELECT" ? Array.from(a.options).filter((i) => i.selected).some((i) => p(Ge(i), i, t, n)) : p(a.value, a, t, n));
|
|
2894
|
-
}, io = (e, t) => "Found multiple elements with the display value: " + t + ".", oo = (e, t) => "Unable to find an element with the display value: " + t + ".", ao = J(lt, lt.name, "queryAll"), [uo, lo, so, co, fo] = Ee(lt, io, oo), po = /^(img|input|area|.+-.+)$/i, st = function(e, t, r) {
|
|
2895
|
-
return r === void 0 && (r = {}), ce(e), Ye("alt", e, t, r).filter((o) => po.test(o.tagName));
|
|
2896
|
-
}, bo = (e, t) => "Found multiple elements with the alt text: " + t, mo = (e, t) => "Unable to find an element with the alt text: " + t, yo = J(st, st.name, "queryAll"), [go, ho, Eo, vo, To] = Ee(st, bo, mo), wo = (e) => {
|
|
2897
|
-
var t;
|
|
2898
|
-
return e.tagName.toLowerCase() === "title" && ((t = e.parentElement) == null ? void 0 : t.tagName.toLowerCase()) === "svg";
|
|
2899
|
-
}, ct = function(e, t, r) {
|
|
2900
|
-
let {
|
|
2901
|
-
exact: o = !0,
|
|
2902
|
-
collapseWhitespace: s,
|
|
2903
|
-
trim: c,
|
|
2904
|
-
normalizer: u
|
|
2905
|
-
} = r === void 0 ? {} : r;
|
|
2906
|
-
ce(e);
|
|
2907
|
-
const p = o ? se : Ae, n = he({
|
|
2908
|
-
collapseWhitespace: s,
|
|
2909
|
-
trim: c,
|
|
2910
|
-
normalizer: u
|
|
2911
|
-
});
|
|
2912
|
-
return Array.from(e.querySelectorAll("[title], svg > title")).filter((a) => p(a.getAttribute("title"), a, t, n) || wo(a) && p(Ge(a), a, t, n));
|
|
2913
|
-
}, Ao = (e, t) => "Found multiple elements with the title: " + t + ".", So = (e, t) => "Unable to find an element with the title: " + t + ".", Io = J(ct, ct.name, "queryAll"), [xo, Oo, Mo, _o, Co] = Ee(ct, Ao, So), ft = function(e, t, r) {
|
|
2914
|
-
let {
|
|
2915
|
-
hidden: o = j().defaultHidden,
|
|
2916
|
-
name: s,
|
|
2917
|
-
description: c,
|
|
2918
|
-
queryFallbacks: u = !1,
|
|
2919
|
-
selected: p,
|
|
2920
|
-
busy: n,
|
|
2921
|
-
checked: a,
|
|
2922
|
-
pressed: l,
|
|
2923
|
-
current: i,
|
|
2924
|
-
level: d,
|
|
2925
|
-
expanded: m,
|
|
2926
|
-
value: {
|
|
2927
|
-
now: E,
|
|
2928
|
-
min: h,
|
|
2929
|
-
max: w,
|
|
2930
|
-
text: f
|
|
2931
|
-
} = {}
|
|
2932
|
-
} = r === void 0 ? {} : r;
|
|
2933
|
-
if (ce(e), p !== void 0) {
|
|
2934
|
-
var A;
|
|
2935
|
-
if (((A = K.roles.get(t)) == null ? void 0 : A.props["aria-selected"]) === void 0)
|
|
2936
|
-
throw new Error('"aria-selected" is not supported on role "' + t + '".');
|
|
2937
|
-
}
|
|
2938
|
-
if (n !== void 0) {
|
|
2939
|
-
var I;
|
|
2940
|
-
if (((I = K.roles.get(t)) == null ? void 0 : I.props["aria-busy"]) === void 0)
|
|
2941
|
-
throw new Error('"aria-busy" is not supported on role "' + t + '".');
|
|
2942
|
-
}
|
|
2943
|
-
if (a !== void 0) {
|
|
2944
|
-
var x;
|
|
2945
|
-
if (((x = K.roles.get(t)) == null ? void 0 : x.props["aria-checked"]) === void 0)
|
|
2946
|
-
throw new Error('"aria-checked" is not supported on role "' + t + '".');
|
|
2947
|
-
}
|
|
2948
|
-
if (l !== void 0) {
|
|
2949
|
-
var M;
|
|
2950
|
-
if (((M = K.roles.get(t)) == null ? void 0 : M.props["aria-pressed"]) === void 0)
|
|
2951
|
-
throw new Error('"aria-pressed" is not supported on role "' + t + '".');
|
|
2952
|
-
}
|
|
2953
|
-
if (i !== void 0) {
|
|
2954
|
-
var y;
|
|
2955
|
-
if (((y = K.roles.get(t)) == null ? void 0 : y.props["aria-current"]) === void 0)
|
|
2956
|
-
throw new Error('"aria-current" is not supported on role "' + t + '".');
|
|
2957
|
-
}
|
|
2958
|
-
if (d !== void 0 && t !== "heading")
|
|
2959
|
-
throw new Error('Role "' + t + '" cannot have "level" property.');
|
|
2960
|
-
if (E !== void 0) {
|
|
2961
|
-
var g;
|
|
2962
|
-
if (((g = K.roles.get(t)) == null ? void 0 : g.props["aria-valuenow"]) === void 0)
|
|
2963
|
-
throw new Error('"aria-valuenow" is not supported on role "' + t + '".');
|
|
2964
|
-
}
|
|
2965
|
-
if (w !== void 0) {
|
|
2966
|
-
var v;
|
|
2967
|
-
if (((v = K.roles.get(t)) == null ? void 0 : v.props["aria-valuemax"]) === void 0)
|
|
2968
|
-
throw new Error('"aria-valuemax" is not supported on role "' + t + '".');
|
|
2969
|
-
}
|
|
2970
|
-
if (h !== void 0) {
|
|
2971
|
-
var C;
|
|
2972
|
-
if (((C = K.roles.get(t)) == null ? void 0 : C.props["aria-valuemin"]) === void 0)
|
|
2973
|
-
throw new Error('"aria-valuemin" is not supported on role "' + t + '".');
|
|
2974
|
-
}
|
|
2975
|
-
if (f !== void 0) {
|
|
2976
|
-
var R;
|
|
2977
|
-
if (((R = K.roles.get(t)) == null ? void 0 : R.props["aria-valuetext"]) === void 0)
|
|
2978
|
-
throw new Error('"aria-valuetext" is not supported on role "' + t + '".');
|
|
2979
|
-
}
|
|
2980
|
-
if (m !== void 0) {
|
|
2981
|
-
var B;
|
|
2982
|
-
if (((B = K.roles.get(t)) == null ? void 0 : B.props["aria-expanded"]) === void 0)
|
|
2983
|
-
throw new Error('"aria-expanded" is not supported on role "' + t + '".');
|
|
2984
|
-
}
|
|
2985
|
-
const N = /* @__PURE__ */ new WeakMap();
|
|
2986
|
-
function S(_) {
|
|
2987
|
-
return N.has(_) || N.set(_, Ir(_)), N.get(_);
|
|
2988
|
-
}
|
|
2989
|
-
return Array.from(e.querySelectorAll(
|
|
2990
|
-
// Only query elements that can be matched by the following filters
|
|
2991
|
-
Ro(t)
|
|
2992
|
-
)).filter((_) => {
|
|
2993
|
-
if (_.hasAttribute("role")) {
|
|
2994
|
-
const k = _.getAttribute("role");
|
|
2995
|
-
if (u)
|
|
2996
|
-
return k.split(" ").filter(Boolean).some((Se) => Se === t);
|
|
2997
|
-
const [Z] = k.split(" ");
|
|
2998
|
-
return Z === t;
|
|
2999
|
-
}
|
|
3000
|
-
return At(_).some((k) => k === t);
|
|
3001
|
-
}).filter((_) => {
|
|
3002
|
-
if (p !== void 0)
|
|
3003
|
-
return p === gi(_);
|
|
3004
|
-
if (n !== void 0)
|
|
3005
|
-
return n === hi(_);
|
|
3006
|
-
if (a !== void 0)
|
|
3007
|
-
return a === Ei(_);
|
|
3008
|
-
if (l !== void 0)
|
|
3009
|
-
return l === vi(_);
|
|
3010
|
-
if (i !== void 0)
|
|
3011
|
-
return i === Ti(_);
|
|
3012
|
-
if (m !== void 0)
|
|
3013
|
-
return m === wi(_);
|
|
3014
|
-
if (d !== void 0)
|
|
3015
|
-
return d === Ai(_);
|
|
3016
|
-
if (E !== void 0 || w !== void 0 || h !== void 0 || f !== void 0) {
|
|
3017
|
-
let z = !0;
|
|
3018
|
-
if (E !== void 0 && z && (z = E === Si(_)), w !== void 0 && z && (z = w === Ii(_)), h !== void 0 && z && (z = h === xi(_)), f !== void 0) {
|
|
3019
|
-
var W;
|
|
3020
|
-
z && (z = se((W = Oi(_)) != null ? W : null, _, f, (k) => k));
|
|
3021
|
-
}
|
|
3022
|
-
return z;
|
|
3023
|
-
}
|
|
3024
|
-
return !0;
|
|
3025
|
-
}).filter((_) => s === void 0 ? !0 : se(ht(_, {
|
|
3026
|
-
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
3027
|
-
}), _, s, (W) => W)).filter((_) => c === void 0 ? !0 : se(sr(_, {
|
|
3028
|
-
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
3029
|
-
}), _, c, (W) => W)).filter((_) => o === !1 ? wt(_, {
|
|
3030
|
-
isSubtreeInaccessible: S
|
|
3031
|
-
}) === !1 : !0);
|
|
3032
|
-
};
|
|
3033
|
-
function Ro(e) {
|
|
3034
|
-
var t;
|
|
3035
|
-
const r = '*[role~="' + e + '"]', o = (t = K.roleElements.get(e)) != null ? t : /* @__PURE__ */ new Set(), s = new Set(Array.from(o).map((c) => {
|
|
3036
|
-
let {
|
|
3037
|
-
name: u
|
|
3038
|
-
} = c;
|
|
3039
|
-
return u;
|
|
3040
|
-
}));
|
|
3041
|
-
return [r].concat(Array.from(s)).join(",");
|
|
3042
|
-
}
|
|
3043
|
-
const Cr = (e) => {
|
|
3044
|
-
let t = "";
|
|
3045
|
-
return e === void 0 ? t = "" : typeof e == "string" ? t = ' and name "' + e + '"' : t = " and name `" + e + "`", t;
|
|
3046
|
-
}, Bo = function(e, t, r) {
|
|
3047
|
-
let {
|
|
3048
|
-
name: o
|
|
3049
|
-
} = r === void 0 ? {} : r;
|
|
3050
|
-
return 'Found multiple elements with the role "' + t + '"' + Cr(o);
|
|
3051
|
-
}, No = function(e, t, r) {
|
|
3052
|
-
let {
|
|
3053
|
-
hidden: o = j().defaultHidden,
|
|
3054
|
-
name: s,
|
|
3055
|
-
description: c
|
|
3056
|
-
} = r === void 0 ? {} : r;
|
|
3057
|
-
if (j()._disableExpensiveErrorDiagnostics)
|
|
3058
|
-
return 'Unable to find role="' + t + '"' + Cr(s);
|
|
3059
|
-
let u = "";
|
|
3060
|
-
Array.from(e.children).forEach((l) => {
|
|
3061
|
-
u += yi(l, {
|
|
3062
|
-
hidden: o,
|
|
3063
|
-
includeDescription: c !== void 0
|
|
3064
|
-
});
|
|
3065
|
-
});
|
|
3066
|
-
let p;
|
|
3067
|
-
u.length === 0 ? o === !1 ? p = "There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole" : p = "There are no available roles." : p = (`
|
|
3068
|
-
Here are the ` + (o === !1 ? "accessible" : "available") + ` roles:
|
|
3069
|
-
|
|
3070
|
-
` + u.replace(/\n/g, `
|
|
3071
|
-
`).replace(/\n\s\s\n/g, `
|
|
3072
|
-
|
|
3073
|
-
`) + `
|
|
3074
|
-
`).trim();
|
|
3075
|
-
let n = "";
|
|
3076
|
-
s === void 0 ? n = "" : typeof s == "string" ? n = ' and name "' + s + '"' : n = " and name `" + s + "`";
|
|
3077
|
-
let a = "";
|
|
3078
|
-
return c === void 0 ? a = "" : typeof c == "string" ? a = ' and description "' + c + '"' : a = " and description `" + c + "`", (`
|
|
3079
|
-
Unable to find an ` + (o === !1 ? "accessible " : "") + 'element with the role "' + t + '"' + n + a + `
|
|
3080
|
-
|
|
3081
|
-
` + p).trim();
|
|
3082
|
-
}, Po = J(ft, ft.name, "queryAll"), [Lo, Do, qo, jo, ko] = Ee(ft, Bo, No), St = () => j().testIdAttribute, dt = function() {
|
|
3083
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
3084
|
-
t[r] = arguments[r];
|
|
3085
|
-
return ce(t[0]), Ye(St(), ...t);
|
|
3086
|
-
}, Fo = (e, t) => "Found multiple elements by: [" + St() + '="' + t + '"]', $o = (e, t) => "Unable to find an element by: [" + St() + '="' + t + '"]', zo = J(dt, dt.name, "queryAll"), [Uo, Wo, Vo, Ho, Go] = Ee(dt, Fo, $o);
|
|
3087
|
-
var pt = /* @__PURE__ */ Object.freeze({
|
|
3088
|
-
__proto__: null,
|
|
3089
|
-
queryAllByLabelText: $i,
|
|
3090
|
-
queryByLabelText: Di,
|
|
3091
|
-
getAllByLabelText: ki,
|
|
3092
|
-
getByLabelText: Fi,
|
|
3093
|
-
findAllByLabelText: qi,
|
|
3094
|
-
findByLabelText: ji,
|
|
3095
|
-
queryByPlaceholderText: Vi,
|
|
3096
|
-
queryAllByPlaceholderText: Wi,
|
|
3097
|
-
getByPlaceholderText: Gi,
|
|
3098
|
-
getAllByPlaceholderText: Hi,
|
|
3099
|
-
findAllByPlaceholderText: Yi,
|
|
3100
|
-
findByPlaceholderText: Ki,
|
|
3101
|
-
queryByText: Zi,
|
|
3102
|
-
queryAllByText: Xi,
|
|
3103
|
-
getByText: to,
|
|
3104
|
-
getAllByText: eo,
|
|
3105
|
-
findAllByText: ro,
|
|
3106
|
-
findByText: no,
|
|
3107
|
-
queryByDisplayValue: uo,
|
|
3108
|
-
queryAllByDisplayValue: ao,
|
|
3109
|
-
getByDisplayValue: so,
|
|
3110
|
-
getAllByDisplayValue: lo,
|
|
3111
|
-
findAllByDisplayValue: co,
|
|
3112
|
-
findByDisplayValue: fo,
|
|
3113
|
-
queryByAltText: go,
|
|
3114
|
-
queryAllByAltText: yo,
|
|
3115
|
-
getByAltText: Eo,
|
|
3116
|
-
getAllByAltText: ho,
|
|
3117
|
-
findAllByAltText: vo,
|
|
3118
|
-
findByAltText: To,
|
|
3119
|
-
queryByTitle: xo,
|
|
3120
|
-
queryAllByTitle: Io,
|
|
3121
|
-
getByTitle: Mo,
|
|
3122
|
-
getAllByTitle: Oo,
|
|
3123
|
-
findAllByTitle: _o,
|
|
3124
|
-
findByTitle: Co,
|
|
3125
|
-
queryByRole: Lo,
|
|
3126
|
-
queryAllByRole: Po,
|
|
3127
|
-
getAllByRole: Do,
|
|
3128
|
-
getByRole: qo,
|
|
3129
|
-
findAllByRole: jo,
|
|
3130
|
-
findByRole: ko,
|
|
3131
|
-
queryByTestId: Uo,
|
|
3132
|
-
queryAllByTestId: zo,
|
|
3133
|
-
getByTestId: Vo,
|
|
3134
|
-
getAllByTestId: Wo,
|
|
3135
|
-
findAllByTestId: Ho,
|
|
3136
|
-
findByTestId: Go
|
|
3137
|
-
});
|
|
3138
|
-
function Rr(e, t, r) {
|
|
3139
|
-
return t === void 0 && (t = pt), r === void 0 && (r = {}), Object.keys(t).reduce((o, s) => {
|
|
3140
|
-
const c = t[s];
|
|
3141
|
-
return o[s] = c.bind(null, e), o;
|
|
3142
|
-
}, r);
|
|
3143
|
-
}
|
|
3144
|
-
const Jt = {
|
|
3145
|
-
// Clipboard Events
|
|
3146
|
-
copy: {
|
|
3147
|
-
EventType: "ClipboardEvent",
|
|
3148
|
-
defaultInit: {
|
|
3149
|
-
bubbles: !0,
|
|
3150
|
-
cancelable: !0,
|
|
3151
|
-
composed: !0
|
|
3152
|
-
}
|
|
3153
|
-
},
|
|
3154
|
-
cut: {
|
|
3155
|
-
EventType: "ClipboardEvent",
|
|
3156
|
-
defaultInit: {
|
|
3157
|
-
bubbles: !0,
|
|
3158
|
-
cancelable: !0,
|
|
3159
|
-
composed: !0
|
|
3160
|
-
}
|
|
3161
|
-
},
|
|
3162
|
-
paste: {
|
|
3163
|
-
EventType: "ClipboardEvent",
|
|
3164
|
-
defaultInit: {
|
|
3165
|
-
bubbles: !0,
|
|
3166
|
-
cancelable: !0,
|
|
3167
|
-
composed: !0
|
|
3168
|
-
}
|
|
3169
|
-
},
|
|
3170
|
-
// Composition Events
|
|
3171
|
-
compositionEnd: {
|
|
3172
|
-
EventType: "CompositionEvent",
|
|
3173
|
-
defaultInit: {
|
|
3174
|
-
bubbles: !0,
|
|
3175
|
-
cancelable: !0,
|
|
3176
|
-
composed: !0
|
|
3177
|
-
}
|
|
3178
|
-
},
|
|
3179
|
-
compositionStart: {
|
|
3180
|
-
EventType: "CompositionEvent",
|
|
3181
|
-
defaultInit: {
|
|
3182
|
-
bubbles: !0,
|
|
3183
|
-
cancelable: !0,
|
|
3184
|
-
composed: !0
|
|
3185
|
-
}
|
|
3186
|
-
},
|
|
3187
|
-
compositionUpdate: {
|
|
3188
|
-
EventType: "CompositionEvent",
|
|
3189
|
-
defaultInit: {
|
|
3190
|
-
bubbles: !0,
|
|
3191
|
-
cancelable: !0,
|
|
3192
|
-
composed: !0
|
|
3193
|
-
}
|
|
3194
|
-
},
|
|
3195
|
-
// Keyboard Events
|
|
3196
|
-
keyDown: {
|
|
3197
|
-
EventType: "KeyboardEvent",
|
|
3198
|
-
defaultInit: {
|
|
3199
|
-
bubbles: !0,
|
|
3200
|
-
cancelable: !0,
|
|
3201
|
-
charCode: 0,
|
|
3202
|
-
composed: !0
|
|
3203
|
-
}
|
|
3204
|
-
},
|
|
3205
|
-
keyPress: {
|
|
3206
|
-
EventType: "KeyboardEvent",
|
|
3207
|
-
defaultInit: {
|
|
3208
|
-
bubbles: !0,
|
|
3209
|
-
cancelable: !0,
|
|
3210
|
-
charCode: 0,
|
|
3211
|
-
composed: !0
|
|
3212
|
-
}
|
|
3213
|
-
},
|
|
3214
|
-
keyUp: {
|
|
3215
|
-
EventType: "KeyboardEvent",
|
|
3216
|
-
defaultInit: {
|
|
3217
|
-
bubbles: !0,
|
|
3218
|
-
cancelable: !0,
|
|
3219
|
-
charCode: 0,
|
|
3220
|
-
composed: !0
|
|
3221
|
-
}
|
|
3222
|
-
},
|
|
3223
|
-
// Focus Events
|
|
3224
|
-
focus: {
|
|
3225
|
-
EventType: "FocusEvent",
|
|
3226
|
-
defaultInit: {
|
|
3227
|
-
bubbles: !1,
|
|
3228
|
-
cancelable: !1,
|
|
3229
|
-
composed: !0
|
|
3230
|
-
}
|
|
3231
|
-
},
|
|
3232
|
-
blur: {
|
|
3233
|
-
EventType: "FocusEvent",
|
|
3234
|
-
defaultInit: {
|
|
3235
|
-
bubbles: !1,
|
|
3236
|
-
cancelable: !1,
|
|
3237
|
-
composed: !0
|
|
3238
|
-
}
|
|
3239
|
-
},
|
|
3240
|
-
focusIn: {
|
|
3241
|
-
EventType: "FocusEvent",
|
|
3242
|
-
defaultInit: {
|
|
3243
|
-
bubbles: !0,
|
|
3244
|
-
cancelable: !1,
|
|
3245
|
-
composed: !0
|
|
3246
|
-
}
|
|
3247
|
-
},
|
|
3248
|
-
focusOut: {
|
|
3249
|
-
EventType: "FocusEvent",
|
|
3250
|
-
defaultInit: {
|
|
3251
|
-
bubbles: !0,
|
|
3252
|
-
cancelable: !1,
|
|
3253
|
-
composed: !0
|
|
3254
|
-
}
|
|
3255
|
-
},
|
|
3256
|
-
// Form Events
|
|
3257
|
-
change: {
|
|
3258
|
-
EventType: "Event",
|
|
3259
|
-
defaultInit: {
|
|
3260
|
-
bubbles: !0,
|
|
3261
|
-
cancelable: !1
|
|
3262
|
-
}
|
|
3263
|
-
},
|
|
3264
|
-
input: {
|
|
3265
|
-
EventType: "InputEvent",
|
|
3266
|
-
defaultInit: {
|
|
3267
|
-
bubbles: !0,
|
|
3268
|
-
cancelable: !1,
|
|
3269
|
-
composed: !0
|
|
3270
|
-
}
|
|
3271
|
-
},
|
|
3272
|
-
invalid: {
|
|
3273
|
-
EventType: "Event",
|
|
3274
|
-
defaultInit: {
|
|
3275
|
-
bubbles: !1,
|
|
3276
|
-
cancelable: !0
|
|
3277
|
-
}
|
|
3278
|
-
},
|
|
3279
|
-
submit: {
|
|
3280
|
-
EventType: "Event",
|
|
3281
|
-
defaultInit: {
|
|
3282
|
-
bubbles: !0,
|
|
3283
|
-
cancelable: !0
|
|
3284
|
-
}
|
|
3285
|
-
},
|
|
3286
|
-
reset: {
|
|
3287
|
-
EventType: "Event",
|
|
3288
|
-
defaultInit: {
|
|
3289
|
-
bubbles: !0,
|
|
3290
|
-
cancelable: !0
|
|
3291
|
-
}
|
|
3292
|
-
},
|
|
3293
|
-
// Mouse Events
|
|
3294
|
-
click: {
|
|
3295
|
-
EventType: "MouseEvent",
|
|
3296
|
-
defaultInit: {
|
|
3297
|
-
bubbles: !0,
|
|
3298
|
-
cancelable: !0,
|
|
3299
|
-
button: 0,
|
|
3300
|
-
composed: !0
|
|
3301
|
-
}
|
|
3302
|
-
},
|
|
3303
|
-
contextMenu: {
|
|
3304
|
-
EventType: "MouseEvent",
|
|
3305
|
-
defaultInit: {
|
|
3306
|
-
bubbles: !0,
|
|
3307
|
-
cancelable: !0,
|
|
3308
|
-
composed: !0
|
|
3309
|
-
}
|
|
3310
|
-
},
|
|
3311
|
-
dblClick: {
|
|
3312
|
-
EventType: "MouseEvent",
|
|
3313
|
-
defaultInit: {
|
|
3314
|
-
bubbles: !0,
|
|
3315
|
-
cancelable: !0,
|
|
3316
|
-
composed: !0
|
|
3317
|
-
}
|
|
3318
|
-
},
|
|
3319
|
-
drag: {
|
|
3320
|
-
EventType: "DragEvent",
|
|
3321
|
-
defaultInit: {
|
|
3322
|
-
bubbles: !0,
|
|
3323
|
-
cancelable: !0,
|
|
3324
|
-
composed: !0
|
|
3325
|
-
}
|
|
3326
|
-
},
|
|
3327
|
-
dragEnd: {
|
|
3328
|
-
EventType: "DragEvent",
|
|
3329
|
-
defaultInit: {
|
|
3330
|
-
bubbles: !0,
|
|
3331
|
-
cancelable: !1,
|
|
3332
|
-
composed: !0
|
|
3333
|
-
}
|
|
3334
|
-
},
|
|
3335
|
-
dragEnter: {
|
|
3336
|
-
EventType: "DragEvent",
|
|
3337
|
-
defaultInit: {
|
|
3338
|
-
bubbles: !0,
|
|
3339
|
-
cancelable: !0,
|
|
3340
|
-
composed: !0
|
|
3341
|
-
}
|
|
3342
|
-
},
|
|
3343
|
-
dragExit: {
|
|
3344
|
-
EventType: "DragEvent",
|
|
3345
|
-
defaultInit: {
|
|
3346
|
-
bubbles: !0,
|
|
3347
|
-
cancelable: !1,
|
|
3348
|
-
composed: !0
|
|
3349
|
-
}
|
|
3350
|
-
},
|
|
3351
|
-
dragLeave: {
|
|
3352
|
-
EventType: "DragEvent",
|
|
3353
|
-
defaultInit: {
|
|
3354
|
-
bubbles: !0,
|
|
3355
|
-
cancelable: !1,
|
|
3356
|
-
composed: !0
|
|
3357
|
-
}
|
|
3358
|
-
},
|
|
3359
|
-
dragOver: {
|
|
3360
|
-
EventType: "DragEvent",
|
|
3361
|
-
defaultInit: {
|
|
3362
|
-
bubbles: !0,
|
|
3363
|
-
cancelable: !0,
|
|
3364
|
-
composed: !0
|
|
3365
|
-
}
|
|
3366
|
-
},
|
|
3367
|
-
dragStart: {
|
|
3368
|
-
EventType: "DragEvent",
|
|
3369
|
-
defaultInit: {
|
|
3370
|
-
bubbles: !0,
|
|
3371
|
-
cancelable: !0,
|
|
3372
|
-
composed: !0
|
|
3373
|
-
}
|
|
3374
|
-
},
|
|
3375
|
-
drop: {
|
|
3376
|
-
EventType: "DragEvent",
|
|
3377
|
-
defaultInit: {
|
|
3378
|
-
bubbles: !0,
|
|
3379
|
-
cancelable: !0,
|
|
3380
|
-
composed: !0
|
|
3381
|
-
}
|
|
3382
|
-
},
|
|
3383
|
-
mouseDown: {
|
|
3384
|
-
EventType: "MouseEvent",
|
|
3385
|
-
defaultInit: {
|
|
3386
|
-
bubbles: !0,
|
|
3387
|
-
cancelable: !0,
|
|
3388
|
-
composed: !0
|
|
3389
|
-
}
|
|
3390
|
-
},
|
|
3391
|
-
mouseEnter: {
|
|
3392
|
-
EventType: "MouseEvent",
|
|
3393
|
-
defaultInit: {
|
|
3394
|
-
bubbles: !1,
|
|
3395
|
-
cancelable: !1,
|
|
3396
|
-
composed: !0
|
|
3397
|
-
}
|
|
3398
|
-
},
|
|
3399
|
-
mouseLeave: {
|
|
3400
|
-
EventType: "MouseEvent",
|
|
3401
|
-
defaultInit: {
|
|
3402
|
-
bubbles: !1,
|
|
3403
|
-
cancelable: !1,
|
|
3404
|
-
composed: !0
|
|
3405
|
-
}
|
|
3406
|
-
},
|
|
3407
|
-
mouseMove: {
|
|
3408
|
-
EventType: "MouseEvent",
|
|
3409
|
-
defaultInit: {
|
|
3410
|
-
bubbles: !0,
|
|
3411
|
-
cancelable: !0,
|
|
3412
|
-
composed: !0
|
|
3413
|
-
}
|
|
3414
|
-
},
|
|
3415
|
-
mouseOut: {
|
|
3416
|
-
EventType: "MouseEvent",
|
|
3417
|
-
defaultInit: {
|
|
3418
|
-
bubbles: !0,
|
|
3419
|
-
cancelable: !0,
|
|
3420
|
-
composed: !0
|
|
3421
|
-
}
|
|
3422
|
-
},
|
|
3423
|
-
mouseOver: {
|
|
3424
|
-
EventType: "MouseEvent",
|
|
3425
|
-
defaultInit: {
|
|
3426
|
-
bubbles: !0,
|
|
3427
|
-
cancelable: !0,
|
|
3428
|
-
composed: !0
|
|
3429
|
-
}
|
|
3430
|
-
},
|
|
3431
|
-
mouseUp: {
|
|
3432
|
-
EventType: "MouseEvent",
|
|
3433
|
-
defaultInit: {
|
|
3434
|
-
bubbles: !0,
|
|
3435
|
-
cancelable: !0,
|
|
3436
|
-
composed: !0
|
|
3437
|
-
}
|
|
3438
|
-
},
|
|
3439
|
-
// Selection Events
|
|
3440
|
-
select: {
|
|
3441
|
-
EventType: "Event",
|
|
3442
|
-
defaultInit: {
|
|
3443
|
-
bubbles: !0,
|
|
3444
|
-
cancelable: !1
|
|
3445
|
-
}
|
|
3446
|
-
},
|
|
3447
|
-
// Touch Events
|
|
3448
|
-
touchCancel: {
|
|
3449
|
-
EventType: "TouchEvent",
|
|
3450
|
-
defaultInit: {
|
|
3451
|
-
bubbles: !0,
|
|
3452
|
-
cancelable: !1,
|
|
3453
|
-
composed: !0
|
|
3454
|
-
}
|
|
3455
|
-
},
|
|
3456
|
-
touchEnd: {
|
|
3457
|
-
EventType: "TouchEvent",
|
|
3458
|
-
defaultInit: {
|
|
3459
|
-
bubbles: !0,
|
|
3460
|
-
cancelable: !0,
|
|
3461
|
-
composed: !0
|
|
3462
|
-
}
|
|
3463
|
-
},
|
|
3464
|
-
touchMove: {
|
|
3465
|
-
EventType: "TouchEvent",
|
|
3466
|
-
defaultInit: {
|
|
3467
|
-
bubbles: !0,
|
|
3468
|
-
cancelable: !0,
|
|
3469
|
-
composed: !0
|
|
3470
|
-
}
|
|
3471
|
-
},
|
|
3472
|
-
touchStart: {
|
|
3473
|
-
EventType: "TouchEvent",
|
|
3474
|
-
defaultInit: {
|
|
3475
|
-
bubbles: !0,
|
|
3476
|
-
cancelable: !0,
|
|
3477
|
-
composed: !0
|
|
3478
|
-
}
|
|
3479
|
-
},
|
|
3480
|
-
// UI Events
|
|
3481
|
-
resize: {
|
|
3482
|
-
EventType: "UIEvent",
|
|
3483
|
-
defaultInit: {
|
|
3484
|
-
bubbles: !1,
|
|
3485
|
-
cancelable: !1
|
|
3486
|
-
}
|
|
3487
|
-
},
|
|
3488
|
-
scroll: {
|
|
3489
|
-
EventType: "UIEvent",
|
|
3490
|
-
defaultInit: {
|
|
3491
|
-
bubbles: !1,
|
|
3492
|
-
cancelable: !1
|
|
3493
|
-
}
|
|
3494
|
-
},
|
|
3495
|
-
// Wheel Events
|
|
3496
|
-
wheel: {
|
|
3497
|
-
EventType: "WheelEvent",
|
|
3498
|
-
defaultInit: {
|
|
3499
|
-
bubbles: !0,
|
|
3500
|
-
cancelable: !0,
|
|
3501
|
-
composed: !0
|
|
3502
|
-
}
|
|
3503
|
-
},
|
|
3504
|
-
// Media Events
|
|
3505
|
-
abort: {
|
|
3506
|
-
EventType: "Event",
|
|
3507
|
-
defaultInit: {
|
|
3508
|
-
bubbles: !1,
|
|
3509
|
-
cancelable: !1
|
|
3510
|
-
}
|
|
3511
|
-
},
|
|
3512
|
-
canPlay: {
|
|
3513
|
-
EventType: "Event",
|
|
3514
|
-
defaultInit: {
|
|
3515
|
-
bubbles: !1,
|
|
3516
|
-
cancelable: !1
|
|
3517
|
-
}
|
|
3518
|
-
},
|
|
3519
|
-
canPlayThrough: {
|
|
3520
|
-
EventType: "Event",
|
|
3521
|
-
defaultInit: {
|
|
3522
|
-
bubbles: !1,
|
|
3523
|
-
cancelable: !1
|
|
3524
|
-
}
|
|
3525
|
-
},
|
|
3526
|
-
durationChange: {
|
|
3527
|
-
EventType: "Event",
|
|
3528
|
-
defaultInit: {
|
|
3529
|
-
bubbles: !1,
|
|
3530
|
-
cancelable: !1
|
|
3531
|
-
}
|
|
3532
|
-
},
|
|
3533
|
-
emptied: {
|
|
3534
|
-
EventType: "Event",
|
|
3535
|
-
defaultInit: {
|
|
3536
|
-
bubbles: !1,
|
|
3537
|
-
cancelable: !1
|
|
3538
|
-
}
|
|
3539
|
-
},
|
|
3540
|
-
encrypted: {
|
|
3541
|
-
EventType: "Event",
|
|
3542
|
-
defaultInit: {
|
|
3543
|
-
bubbles: !1,
|
|
3544
|
-
cancelable: !1
|
|
3545
|
-
}
|
|
3546
|
-
},
|
|
3547
|
-
ended: {
|
|
3548
|
-
EventType: "Event",
|
|
3549
|
-
defaultInit: {
|
|
3550
|
-
bubbles: !1,
|
|
3551
|
-
cancelable: !1
|
|
3552
|
-
}
|
|
3553
|
-
},
|
|
3554
|
-
loadedData: {
|
|
3555
|
-
EventType: "Event",
|
|
3556
|
-
defaultInit: {
|
|
3557
|
-
bubbles: !1,
|
|
3558
|
-
cancelable: !1
|
|
3559
|
-
}
|
|
3560
|
-
},
|
|
3561
|
-
loadedMetadata: {
|
|
3562
|
-
EventType: "Event",
|
|
3563
|
-
defaultInit: {
|
|
3564
|
-
bubbles: !1,
|
|
3565
|
-
cancelable: !1
|
|
3566
|
-
}
|
|
3567
|
-
},
|
|
3568
|
-
loadStart: {
|
|
3569
|
-
EventType: "ProgressEvent",
|
|
3570
|
-
defaultInit: {
|
|
3571
|
-
bubbles: !1,
|
|
3572
|
-
cancelable: !1
|
|
3573
|
-
}
|
|
3574
|
-
},
|
|
3575
|
-
pause: {
|
|
3576
|
-
EventType: "Event",
|
|
3577
|
-
defaultInit: {
|
|
3578
|
-
bubbles: !1,
|
|
3579
|
-
cancelable: !1
|
|
3580
|
-
}
|
|
3581
|
-
},
|
|
3582
|
-
play: {
|
|
3583
|
-
EventType: "Event",
|
|
3584
|
-
defaultInit: {
|
|
3585
|
-
bubbles: !1,
|
|
3586
|
-
cancelable: !1
|
|
3587
|
-
}
|
|
3588
|
-
},
|
|
3589
|
-
playing: {
|
|
3590
|
-
EventType: "Event",
|
|
3591
|
-
defaultInit: {
|
|
3592
|
-
bubbles: !1,
|
|
3593
|
-
cancelable: !1
|
|
3594
|
-
}
|
|
3595
|
-
},
|
|
3596
|
-
progress: {
|
|
3597
|
-
EventType: "ProgressEvent",
|
|
3598
|
-
defaultInit: {
|
|
3599
|
-
bubbles: !1,
|
|
3600
|
-
cancelable: !1
|
|
3601
|
-
}
|
|
3602
|
-
},
|
|
3603
|
-
rateChange: {
|
|
3604
|
-
EventType: "Event",
|
|
3605
|
-
defaultInit: {
|
|
3606
|
-
bubbles: !1,
|
|
3607
|
-
cancelable: !1
|
|
3608
|
-
}
|
|
3609
|
-
},
|
|
3610
|
-
seeked: {
|
|
3611
|
-
EventType: "Event",
|
|
3612
|
-
defaultInit: {
|
|
3613
|
-
bubbles: !1,
|
|
3614
|
-
cancelable: !1
|
|
3615
|
-
}
|
|
3616
|
-
},
|
|
3617
|
-
seeking: {
|
|
3618
|
-
EventType: "Event",
|
|
3619
|
-
defaultInit: {
|
|
3620
|
-
bubbles: !1,
|
|
3621
|
-
cancelable: !1
|
|
3622
|
-
}
|
|
3623
|
-
},
|
|
3624
|
-
stalled: {
|
|
3625
|
-
EventType: "Event",
|
|
3626
|
-
defaultInit: {
|
|
3627
|
-
bubbles: !1,
|
|
3628
|
-
cancelable: !1
|
|
3629
|
-
}
|
|
3630
|
-
},
|
|
3631
|
-
suspend: {
|
|
3632
|
-
EventType: "Event",
|
|
3633
|
-
defaultInit: {
|
|
3634
|
-
bubbles: !1,
|
|
3635
|
-
cancelable: !1
|
|
3636
|
-
}
|
|
3637
|
-
},
|
|
3638
|
-
timeUpdate: {
|
|
3639
|
-
EventType: "Event",
|
|
3640
|
-
defaultInit: {
|
|
3641
|
-
bubbles: !1,
|
|
3642
|
-
cancelable: !1
|
|
3643
|
-
}
|
|
3644
|
-
},
|
|
3645
|
-
volumeChange: {
|
|
3646
|
-
EventType: "Event",
|
|
3647
|
-
defaultInit: {
|
|
3648
|
-
bubbles: !1,
|
|
3649
|
-
cancelable: !1
|
|
3650
|
-
}
|
|
3651
|
-
},
|
|
3652
|
-
waiting: {
|
|
3653
|
-
EventType: "Event",
|
|
3654
|
-
defaultInit: {
|
|
3655
|
-
bubbles: !1,
|
|
3656
|
-
cancelable: !1
|
|
3657
|
-
}
|
|
3658
|
-
},
|
|
3659
|
-
// Events
|
|
3660
|
-
load: {
|
|
3661
|
-
// TODO: load events can be UIEvent or Event depending on what generated them
|
|
3662
|
-
// This is where this abstraction breaks down.
|
|
3663
|
-
// But the common targets are <img />, <script /> and window.
|
|
3664
|
-
// Neither of these targets receive a UIEvent
|
|
3665
|
-
EventType: "Event",
|
|
3666
|
-
defaultInit: {
|
|
3667
|
-
bubbles: !1,
|
|
3668
|
-
cancelable: !1
|
|
3669
|
-
}
|
|
3670
|
-
},
|
|
3671
|
-
error: {
|
|
3672
|
-
EventType: "Event",
|
|
3673
|
-
defaultInit: {
|
|
3674
|
-
bubbles: !1,
|
|
3675
|
-
cancelable: !1
|
|
3676
|
-
}
|
|
3677
|
-
},
|
|
3678
|
-
// Animation Events
|
|
3679
|
-
animationStart: {
|
|
3680
|
-
EventType: "AnimationEvent",
|
|
3681
|
-
defaultInit: {
|
|
3682
|
-
bubbles: !0,
|
|
3683
|
-
cancelable: !1
|
|
3684
|
-
}
|
|
3685
|
-
},
|
|
3686
|
-
animationEnd: {
|
|
3687
|
-
EventType: "AnimationEvent",
|
|
3688
|
-
defaultInit: {
|
|
3689
|
-
bubbles: !0,
|
|
3690
|
-
cancelable: !1
|
|
3691
|
-
}
|
|
3692
|
-
},
|
|
3693
|
-
animationIteration: {
|
|
3694
|
-
EventType: "AnimationEvent",
|
|
3695
|
-
defaultInit: {
|
|
3696
|
-
bubbles: !0,
|
|
3697
|
-
cancelable: !1
|
|
3698
|
-
}
|
|
3699
|
-
},
|
|
3700
|
-
// Transition Events
|
|
3701
|
-
transitionCancel: {
|
|
3702
|
-
EventType: "TransitionEvent",
|
|
3703
|
-
defaultInit: {
|
|
3704
|
-
bubbles: !0,
|
|
3705
|
-
cancelable: !1
|
|
3706
|
-
}
|
|
3707
|
-
},
|
|
3708
|
-
transitionEnd: {
|
|
3709
|
-
EventType: "TransitionEvent",
|
|
3710
|
-
defaultInit: {
|
|
3711
|
-
bubbles: !0,
|
|
3712
|
-
cancelable: !0
|
|
3713
|
-
}
|
|
3714
|
-
},
|
|
3715
|
-
transitionRun: {
|
|
3716
|
-
EventType: "TransitionEvent",
|
|
3717
|
-
defaultInit: {
|
|
3718
|
-
bubbles: !0,
|
|
3719
|
-
cancelable: !1
|
|
3720
|
-
}
|
|
3721
|
-
},
|
|
3722
|
-
transitionStart: {
|
|
3723
|
-
EventType: "TransitionEvent",
|
|
3724
|
-
defaultInit: {
|
|
3725
|
-
bubbles: !0,
|
|
3726
|
-
cancelable: !1
|
|
3727
|
-
}
|
|
3728
|
-
},
|
|
3729
|
-
// pointer events
|
|
3730
|
-
pointerOver: {
|
|
3731
|
-
EventType: "PointerEvent",
|
|
3732
|
-
defaultInit: {
|
|
3733
|
-
bubbles: !0,
|
|
3734
|
-
cancelable: !0,
|
|
3735
|
-
composed: !0
|
|
3736
|
-
}
|
|
3737
|
-
},
|
|
3738
|
-
pointerEnter: {
|
|
3739
|
-
EventType: "PointerEvent",
|
|
3740
|
-
defaultInit: {
|
|
3741
|
-
bubbles: !1,
|
|
3742
|
-
cancelable: !1
|
|
3743
|
-
}
|
|
3744
|
-
},
|
|
3745
|
-
pointerDown: {
|
|
3746
|
-
EventType: "PointerEvent",
|
|
3747
|
-
defaultInit: {
|
|
3748
|
-
bubbles: !0,
|
|
3749
|
-
cancelable: !0,
|
|
3750
|
-
composed: !0
|
|
3751
|
-
}
|
|
3752
|
-
},
|
|
3753
|
-
pointerMove: {
|
|
3754
|
-
EventType: "PointerEvent",
|
|
3755
|
-
defaultInit: {
|
|
3756
|
-
bubbles: !0,
|
|
3757
|
-
cancelable: !0,
|
|
3758
|
-
composed: !0
|
|
3759
|
-
}
|
|
3760
|
-
},
|
|
3761
|
-
pointerUp: {
|
|
3762
|
-
EventType: "PointerEvent",
|
|
3763
|
-
defaultInit: {
|
|
3764
|
-
bubbles: !0,
|
|
3765
|
-
cancelable: !0,
|
|
3766
|
-
composed: !0
|
|
3767
|
-
}
|
|
3768
|
-
},
|
|
3769
|
-
pointerCancel: {
|
|
3770
|
-
EventType: "PointerEvent",
|
|
3771
|
-
defaultInit: {
|
|
3772
|
-
bubbles: !0,
|
|
3773
|
-
cancelable: !1,
|
|
3774
|
-
composed: !0
|
|
3775
|
-
}
|
|
3776
|
-
},
|
|
3777
|
-
pointerOut: {
|
|
3778
|
-
EventType: "PointerEvent",
|
|
3779
|
-
defaultInit: {
|
|
3780
|
-
bubbles: !0,
|
|
3781
|
-
cancelable: !0,
|
|
3782
|
-
composed: !0
|
|
3783
|
-
}
|
|
3784
|
-
},
|
|
3785
|
-
pointerLeave: {
|
|
3786
|
-
EventType: "PointerEvent",
|
|
3787
|
-
defaultInit: {
|
|
3788
|
-
bubbles: !1,
|
|
3789
|
-
cancelable: !1
|
|
3790
|
-
}
|
|
3791
|
-
},
|
|
3792
|
-
gotPointerCapture: {
|
|
3793
|
-
EventType: "PointerEvent",
|
|
3794
|
-
defaultInit: {
|
|
3795
|
-
bubbles: !0,
|
|
3796
|
-
cancelable: !1,
|
|
3797
|
-
composed: !0
|
|
3798
|
-
}
|
|
3799
|
-
},
|
|
3800
|
-
lostPointerCapture: {
|
|
3801
|
-
EventType: "PointerEvent",
|
|
3802
|
-
defaultInit: {
|
|
3803
|
-
bubbles: !0,
|
|
3804
|
-
cancelable: !1,
|
|
3805
|
-
composed: !0
|
|
3806
|
-
}
|
|
3807
|
-
},
|
|
3808
|
-
// history events
|
|
3809
|
-
popState: {
|
|
3810
|
-
EventType: "PopStateEvent",
|
|
3811
|
-
defaultInit: {
|
|
3812
|
-
bubbles: !0,
|
|
3813
|
-
cancelable: !1
|
|
3814
|
-
}
|
|
3815
|
-
},
|
|
3816
|
-
// window events
|
|
3817
|
-
offline: {
|
|
3818
|
-
EventType: "Event",
|
|
3819
|
-
defaultInit: {
|
|
3820
|
-
bubbles: !1,
|
|
3821
|
-
cancelable: !1
|
|
3822
|
-
}
|
|
3823
|
-
},
|
|
3824
|
-
online: {
|
|
3825
|
-
EventType: "Event",
|
|
3826
|
-
defaultInit: {
|
|
3827
|
-
bubbles: !1,
|
|
3828
|
-
cancelable: !1
|
|
3829
|
-
}
|
|
3830
|
-
},
|
|
3831
|
-
pageHide: {
|
|
3832
|
-
EventType: "PageTransitionEvent",
|
|
3833
|
-
defaultInit: {
|
|
3834
|
-
bubbles: !0,
|
|
3835
|
-
cancelable: !0
|
|
3836
|
-
}
|
|
3837
|
-
},
|
|
3838
|
-
pageShow: {
|
|
3839
|
-
EventType: "PageTransitionEvent",
|
|
3840
|
-
defaultInit: {
|
|
3841
|
-
bubbles: !0,
|
|
3842
|
-
cancelable: !0
|
|
3843
|
-
}
|
|
3844
|
-
}
|
|
3845
|
-
}, Qt = {
|
|
3846
|
-
doubleClick: "dblClick"
|
|
3847
|
-
};
|
|
3848
|
-
function ge(e, t) {
|
|
3849
|
-
return j().eventWrapper(() => {
|
|
3850
|
-
if (!t)
|
|
3851
|
-
throw new Error("Unable to fire an event - please provide an event object.");
|
|
3852
|
-
if (!e)
|
|
3853
|
-
throw new Error('Unable to fire a "' + t.type + '" event - please provide a DOM element.');
|
|
3854
|
-
return e.dispatchEvent(t);
|
|
3855
|
-
});
|
|
3856
|
-
}
|
|
3857
|
-
function nt(e, t, r, o) {
|
|
3858
|
-
let {
|
|
3859
|
-
EventType: s = "Event",
|
|
3860
|
-
defaultInit: c = {}
|
|
3861
|
-
} = o === void 0 ? {} : o;
|
|
3862
|
-
if (!t)
|
|
3863
|
-
throw new Error('Unable to fire a "' + e + '" event - please provide a DOM element.');
|
|
3864
|
-
const u = {
|
|
3865
|
-
...c,
|
|
3866
|
-
...r
|
|
3867
|
-
}, {
|
|
3868
|
-
target: {
|
|
3869
|
-
value: p,
|
|
3870
|
-
files: n,
|
|
3871
|
-
...a
|
|
3872
|
-
} = {}
|
|
3873
|
-
} = u;
|
|
3874
|
-
p !== void 0 && Yo(t, p), n !== void 0 && Object.defineProperty(t, "files", {
|
|
3875
|
-
configurable: !0,
|
|
3876
|
-
enumerable: !0,
|
|
3877
|
-
writable: !0,
|
|
3878
|
-
value: n
|
|
3879
|
-
}), Object.assign(t, a);
|
|
3880
|
-
const l = hr(t), i = l[s] || l.Event;
|
|
3881
|
-
let d;
|
|
3882
|
-
if (typeof i == "function")
|
|
3883
|
-
d = new i(e, u);
|
|
3884
|
-
else {
|
|
3885
|
-
d = l.document.createEvent(s);
|
|
3886
|
-
const {
|
|
3887
|
-
bubbles: E,
|
|
3888
|
-
cancelable: h,
|
|
3889
|
-
detail: w,
|
|
3890
|
-
...f
|
|
3891
|
-
} = u;
|
|
3892
|
-
d.initEvent(e, E, h, w), Object.keys(f).forEach((A) => {
|
|
3893
|
-
d[A] = f[A];
|
|
3894
|
-
});
|
|
3895
|
-
}
|
|
3896
|
-
return ["dataTransfer", "clipboardData"].forEach((E) => {
|
|
3897
|
-
const h = u[E];
|
|
3898
|
-
typeof h == "object" && (typeof l.DataTransfer == "function" ? Object.defineProperty(d, E, {
|
|
3899
|
-
value: Object.getOwnPropertyNames(h).reduce((w, f) => (Object.defineProperty(w, f, {
|
|
3900
|
-
value: h[f]
|
|
3901
|
-
}), w), new l.DataTransfer())
|
|
3902
|
-
}) : Object.defineProperty(d, E, {
|
|
3903
|
-
value: h
|
|
3904
|
-
}));
|
|
3905
|
-
}), d;
|
|
3906
|
-
}
|
|
3907
|
-
Object.keys(Jt).forEach((e) => {
|
|
3908
|
-
const {
|
|
3909
|
-
EventType: t,
|
|
3910
|
-
defaultInit: r
|
|
3911
|
-
} = Jt[e], o = e.toLowerCase();
|
|
3912
|
-
nt[e] = (s, c) => nt(o, s, c, {
|
|
3913
|
-
EventType: t,
|
|
3914
|
-
defaultInit: r
|
|
3915
|
-
}), ge[e] = (s, c) => ge(s, nt[e](s, c));
|
|
3916
|
-
});
|
|
3917
|
-
function Yo(e, t) {
|
|
3918
|
-
const {
|
|
3919
|
-
set: r
|
|
3920
|
-
} = Object.getOwnPropertyDescriptor(e, "value") || {}, o = Object.getPrototypeOf(e), {
|
|
3921
|
-
set: s
|
|
3922
|
-
} = Object.getOwnPropertyDescriptor(o, "value") || {};
|
|
3923
|
-
if (s && r !== s)
|
|
3924
|
-
s.call(e, t);
|
|
3925
|
-
else if (r)
|
|
3926
|
-
r.call(e, t);
|
|
3927
|
-
else
|
|
3928
|
-
throw new Error("The given element does not have a value setter");
|
|
3929
|
-
}
|
|
3930
|
-
Object.keys(Qt).forEach((e) => {
|
|
3931
|
-
const t = Qt[e];
|
|
3932
|
-
ge[e] = function() {
|
|
3933
|
-
return ge[t](...arguments);
|
|
3934
|
-
};
|
|
3935
|
-
});
|
|
3936
|
-
function Ko(e) {
|
|
3937
|
-
return e.replace(/[ \t]*[\n][ \t]*/g, `
|
|
3938
|
-
`);
|
|
3939
|
-
}
|
|
3940
|
-
function Jo(e) {
|
|
3941
|
-
return Un.compressToEncodedURIComponent(Ko(e));
|
|
3942
|
-
}
|
|
3943
|
-
function Qo(e) {
|
|
3944
|
-
return "https://testing-playground.com/#markup=" + Jo(e);
|
|
3945
|
-
}
|
|
3946
|
-
const Xo = (e, t, r) => Array.isArray(e) ? e.forEach((o) => Gt(o, t, r)) : Gt(e, t, r), Zo = function(e) {
|
|
3947
|
-
if (e === void 0 && (e = Tt().body), !e || !("innerHTML" in e)) {
|
|
3948
|
-
console.log("The element you're providing isn't a valid DOM element.");
|
|
3949
|
-
return;
|
|
3950
|
-
}
|
|
3951
|
-
if (!e.innerHTML) {
|
|
3952
|
-
console.log("The provided element doesn't have any children.");
|
|
3953
|
-
return;
|
|
3954
|
-
}
|
|
3955
|
-
const t = Qo(e.innerHTML);
|
|
3956
|
-
return console.log(`Open this URL in your browser
|
|
3957
|
-
|
|
3958
|
-
` + t), t;
|
|
3959
|
-
}, Xt = {
|
|
3960
|
-
debug: Xo,
|
|
3961
|
-
logTestingPlaygroundURL: Zo
|
|
3962
|
-
}, va = typeof document < "u" && document.body ? Rr(document.body, pt, Xt) : Object.keys(pt).reduce((e, t) => (e[t] = () => {
|
|
3963
|
-
throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
|
|
3964
|
-
}, e), Xt), ea = typeof Ie.act == "function" ? Ie.act : Pr.act;
|
|
3965
|
-
function Br() {
|
|
3966
|
-
if (typeof globalThis < "u")
|
|
3967
|
-
return globalThis;
|
|
3968
|
-
if (typeof self < "u")
|
|
3969
|
-
return self;
|
|
3970
|
-
if (typeof window < "u")
|
|
3971
|
-
return window;
|
|
3972
|
-
if (typeof global < "u")
|
|
3973
|
-
return global;
|
|
3974
|
-
throw new Error("unable to locate global object");
|
|
3975
|
-
}
|
|
3976
|
-
function ue(e) {
|
|
3977
|
-
Br().IS_REACT_ACT_ENVIRONMENT = e;
|
|
3978
|
-
}
|
|
3979
|
-
function We() {
|
|
3980
|
-
return Br().IS_REACT_ACT_ENVIRONMENT;
|
|
3981
|
-
}
|
|
3982
|
-
function ta(e) {
|
|
3983
|
-
return (t) => {
|
|
3984
|
-
const r = We();
|
|
3985
|
-
ue(!0);
|
|
3986
|
-
try {
|
|
3987
|
-
let o = !1;
|
|
3988
|
-
const s = e(() => {
|
|
3989
|
-
const c = t();
|
|
3990
|
-
return c !== null && typeof c == "object" && typeof c.then == "function" && (o = !0), c;
|
|
3991
|
-
});
|
|
3992
|
-
if (o) {
|
|
3993
|
-
const c = s;
|
|
3994
|
-
return {
|
|
3995
|
-
then: (u, p) => {
|
|
3996
|
-
c.then((n) => {
|
|
3997
|
-
ue(r), u(n);
|
|
3998
|
-
}, (n) => {
|
|
3999
|
-
ue(r), p(n);
|
|
4000
|
-
});
|
|
4001
|
-
}
|
|
4002
|
-
};
|
|
4003
|
-
} else
|
|
4004
|
-
return ue(r), s;
|
|
4005
|
-
} catch (o) {
|
|
4006
|
-
throw ue(r), o;
|
|
4007
|
-
}
|
|
4008
|
-
};
|
|
4009
|
-
}
|
|
4010
|
-
const we = ta(ea), $ = (...e) => ge(...e);
|
|
4011
|
-
Object.keys(ge).forEach((e) => {
|
|
4012
|
-
$[e] = (...t) => ge[e](...t);
|
|
4013
|
-
});
|
|
4014
|
-
const ra = $.mouseEnter, na = $.mouseLeave;
|
|
4015
|
-
$.mouseEnter = (...e) => (ra(...e), $.mouseOver(...e));
|
|
4016
|
-
$.mouseLeave = (...e) => (na(...e), $.mouseOut(...e));
|
|
4017
|
-
const ia = $.pointerEnter, oa = $.pointerLeave;
|
|
4018
|
-
$.pointerEnter = (...e) => (ia(...e), $.pointerOver(...e));
|
|
4019
|
-
$.pointerLeave = (...e) => (oa(...e), $.pointerOut(...e));
|
|
4020
|
-
const aa = $.select;
|
|
4021
|
-
$.select = (e, t) => {
|
|
4022
|
-
aa(e, t), e.focus(), $.keyUp(e, t);
|
|
4023
|
-
};
|
|
4024
|
-
const ua = $.blur, la = $.focus;
|
|
4025
|
-
$.blur = (...e) => ($.focusOut(...e), ua(...e));
|
|
4026
|
-
$.focus = (...e) => ($.focusIn(...e), la(...e));
|
|
4027
|
-
let sa = {
|
|
4028
|
-
reactStrictMode: !1
|
|
4029
|
-
};
|
|
4030
|
-
function ca() {
|
|
4031
|
-
return {
|
|
4032
|
-
...j(),
|
|
4033
|
-
...sa
|
|
4034
|
-
};
|
|
4035
|
-
}
|
|
4036
|
-
function fa() {
|
|
4037
|
-
return typeof jest < "u" && jest !== null ? (
|
|
4038
|
-
// legacy timers
|
|
4039
|
-
setTimeout._isMockFunction === !0 || // modern timers
|
|
4040
|
-
// eslint-disable-next-line prefer-object-has-own -- No Object.hasOwn in all target environments we support.
|
|
4041
|
-
Object.prototype.hasOwnProperty.call(setTimeout, "clock")
|
|
4042
|
-
) : !1;
|
|
4043
|
-
}
|
|
4044
|
-
ci({
|
|
4045
|
-
unstable_advanceTimersWrapper: (e) => we(e),
|
|
4046
|
-
// We just want to run `waitFor` without IS_REACT_ACT_ENVIRONMENT
|
|
4047
|
-
// But that's not necessarily how `asyncWrapper` is used since it's a public method.
|
|
4048
|
-
// Let's just hope nobody else is using it.
|
|
4049
|
-
asyncWrapper: async (e) => {
|
|
4050
|
-
const t = We();
|
|
4051
|
-
ue(!1);
|
|
4052
|
-
try {
|
|
4053
|
-
const r = await e();
|
|
4054
|
-
return await new Promise((o) => {
|
|
4055
|
-
setTimeout(() => {
|
|
4056
|
-
o();
|
|
4057
|
-
}, 0), fa() && jest.advanceTimersByTime(0);
|
|
4058
|
-
}), r;
|
|
4059
|
-
} finally {
|
|
4060
|
-
ue(t);
|
|
4061
|
-
}
|
|
4062
|
-
},
|
|
4063
|
-
eventWrapper: (e) => {
|
|
4064
|
-
let t;
|
|
4065
|
-
return we(() => {
|
|
4066
|
-
t = e();
|
|
4067
|
-
}), t;
|
|
4068
|
-
}
|
|
4069
|
-
});
|
|
4070
|
-
const bt = /* @__PURE__ */ new Set(), Ve = [];
|
|
4071
|
-
function mt(e, t) {
|
|
4072
|
-
return t ?? ca().reactStrictMode ? /* @__PURE__ */ Ie.createElement(Ie.StrictMode, null, e) : e;
|
|
4073
|
-
}
|
|
4074
|
-
function yt(e, t) {
|
|
4075
|
-
return t ? /* @__PURE__ */ Ie.createElement(t, null, e) : e;
|
|
4076
|
-
}
|
|
4077
|
-
function da(e, {
|
|
4078
|
-
hydrate: t,
|
|
4079
|
-
onCaughtError: r,
|
|
4080
|
-
onRecoverableError: o,
|
|
4081
|
-
ui: s,
|
|
4082
|
-
wrapper: c,
|
|
4083
|
-
reactStrictMode: u
|
|
4084
|
-
}) {
|
|
4085
|
-
let p;
|
|
4086
|
-
return t ? we(() => {
|
|
4087
|
-
p = It.hydrateRoot(e, mt(yt(s, c), u), {
|
|
4088
|
-
onCaughtError: r,
|
|
4089
|
-
onRecoverableError: o
|
|
4090
|
-
});
|
|
4091
|
-
}) : p = It.createRoot(e, {
|
|
4092
|
-
onCaughtError: r,
|
|
4093
|
-
onRecoverableError: o
|
|
4094
|
-
}), {
|
|
4095
|
-
hydrate() {
|
|
4096
|
-
if (!t)
|
|
4097
|
-
throw new Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.");
|
|
4098
|
-
},
|
|
4099
|
-
render(n) {
|
|
4100
|
-
p.render(n);
|
|
4101
|
-
},
|
|
4102
|
-
unmount() {
|
|
4103
|
-
p.unmount();
|
|
4104
|
-
}
|
|
4105
|
-
};
|
|
4106
|
-
}
|
|
4107
|
-
function pa(e) {
|
|
4108
|
-
return {
|
|
4109
|
-
hydrate(t) {
|
|
4110
|
-
je.hydrate(t, e);
|
|
4111
|
-
},
|
|
4112
|
-
render(t) {
|
|
4113
|
-
je.render(t, e);
|
|
4114
|
-
},
|
|
4115
|
-
unmount() {
|
|
4116
|
-
je.unmountComponentAtNode(e);
|
|
4117
|
-
}
|
|
4118
|
-
};
|
|
4119
|
-
}
|
|
4120
|
-
function Nr(e, {
|
|
4121
|
-
baseElement: t,
|
|
4122
|
-
container: r,
|
|
4123
|
-
hydrate: o,
|
|
4124
|
-
queries: s,
|
|
4125
|
-
root: c,
|
|
4126
|
-
wrapper: u,
|
|
4127
|
-
reactStrictMode: p
|
|
4128
|
-
}) {
|
|
4129
|
-
return we(() => {
|
|
4130
|
-
o ? c.hydrate(mt(yt(e, u), p), r) : c.render(mt(yt(e, u), p), r);
|
|
4131
|
-
}), {
|
|
4132
|
-
container: r,
|
|
4133
|
-
baseElement: t,
|
|
4134
|
-
debug: (n = t, a, l) => Array.isArray(n) ? (
|
|
4135
|
-
// eslint-disable-next-line no-console
|
|
4136
|
-
n.forEach((i) => console.log(Te(i, a, l)))
|
|
4137
|
-
) : (
|
|
4138
|
-
// eslint-disable-next-line no-console,
|
|
4139
|
-
console.log(Te(n, a, l))
|
|
4140
|
-
),
|
|
4141
|
-
unmount: () => {
|
|
4142
|
-
we(() => {
|
|
4143
|
-
c.unmount();
|
|
4144
|
-
});
|
|
4145
|
-
},
|
|
4146
|
-
rerender: (n) => {
|
|
4147
|
-
Nr(n, {
|
|
4148
|
-
container: r,
|
|
4149
|
-
baseElement: t,
|
|
4150
|
-
root: c,
|
|
4151
|
-
wrapper: u,
|
|
4152
|
-
reactStrictMode: p
|
|
4153
|
-
});
|
|
4154
|
-
},
|
|
4155
|
-
asFragment: () => {
|
|
4156
|
-
if (typeof document.createRange == "function")
|
|
4157
|
-
return document.createRange().createContextualFragment(r.innerHTML);
|
|
4158
|
-
{
|
|
4159
|
-
const n = document.createElement("template");
|
|
4160
|
-
return n.innerHTML = r.innerHTML, n.content;
|
|
4161
|
-
}
|
|
4162
|
-
},
|
|
4163
|
-
...Rr(t, s)
|
|
4164
|
-
};
|
|
4165
|
-
}
|
|
4166
|
-
function ba(e, {
|
|
4167
|
-
container: t,
|
|
4168
|
-
baseElement: r = t,
|
|
4169
|
-
legacyRoot: o = !1,
|
|
4170
|
-
onCaughtError: s,
|
|
4171
|
-
onUncaughtError: c,
|
|
4172
|
-
onRecoverableError: u,
|
|
4173
|
-
queries: p,
|
|
4174
|
-
hydrate: n = !1,
|
|
4175
|
-
wrapper: a,
|
|
4176
|
-
reactStrictMode: l
|
|
4177
|
-
} = {}) {
|
|
4178
|
-
if (c !== void 0)
|
|
4179
|
-
throw new Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");
|
|
4180
|
-
if (o && typeof je.render != "function") {
|
|
4181
|
-
const d = new Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");
|
|
4182
|
-
throw Error.captureStackTrace(d, ba), d;
|
|
4183
|
-
}
|
|
4184
|
-
r || (r = document.body), t || (t = r.appendChild(document.createElement("div")));
|
|
4185
|
-
let i;
|
|
4186
|
-
return bt.has(t) ? Ve.forEach((d) => {
|
|
4187
|
-
d.container === t && (i = d.root);
|
|
4188
|
-
}) : (i = (o ? pa : da)(t, {
|
|
4189
|
-
hydrate: n,
|
|
4190
|
-
onCaughtError: s,
|
|
4191
|
-
onRecoverableError: u,
|
|
4192
|
-
ui: e,
|
|
4193
|
-
wrapper: a,
|
|
4194
|
-
reactStrictMode: l
|
|
4195
|
-
}), Ve.push({
|
|
4196
|
-
container: t,
|
|
4197
|
-
root: i
|
|
4198
|
-
}), bt.add(t)), Nr(e, {
|
|
4199
|
-
container: t,
|
|
4200
|
-
baseElement: r,
|
|
4201
|
-
queries: p,
|
|
4202
|
-
hydrate: n,
|
|
4203
|
-
wrapper: a,
|
|
4204
|
-
root: i,
|
|
4205
|
-
reactStrictMode: l
|
|
4206
|
-
});
|
|
4207
|
-
}
|
|
4208
|
-
function Zt() {
|
|
4209
|
-
Ve.forEach(({
|
|
4210
|
-
root: e,
|
|
4211
|
-
container: t
|
|
4212
|
-
}) => {
|
|
4213
|
-
we(() => {
|
|
4214
|
-
e.unmount();
|
|
4215
|
-
}), t.parentNode === document.body && document.body.removeChild(t);
|
|
4216
|
-
}), Ve.length = 0, bt.clear();
|
|
4217
|
-
}
|
|
4218
|
-
if ((typeof process > "u" || !process.env?.RTL_SKIP_AUTO_CLEANUP) && (typeof afterEach == "function" ? afterEach(() => {
|
|
4219
|
-
Zt();
|
|
4220
|
-
}) : typeof teardown == "function" && teardown(() => {
|
|
4221
|
-
Zt();
|
|
4222
|
-
}), typeof beforeAll == "function" && typeof afterAll == "function")) {
|
|
4223
|
-
let e = We();
|
|
4224
|
-
beforeAll(() => {
|
|
4225
|
-
e = We(), ue(!0);
|
|
4226
|
-
}), afterAll(() => {
|
|
4227
|
-
ue(e);
|
|
4228
|
-
});
|
|
4229
|
-
}
|
|
4230
|
-
export {
|
|
4231
|
-
$ as f,
|
|
4232
|
-
j as g,
|
|
4233
|
-
ba as r,
|
|
4234
|
-
va as s,
|
|
4235
|
-
Ci as w
|
|
4236
|
-
};
|
|
4237
|
-
//# sourceMappingURL=react.esm-C68fQMAi.js.map
|