@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
package/dist/index-CULNJwuI.js
DELETED
|
@@ -1,2355 +0,0 @@
|
|
|
1
|
-
import { g as de, c as be } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
|
-
import { l as pe } from "./index-D6WVIfcJ.js";
|
|
3
|
-
var Q, ve;
|
|
4
|
-
function Ot() {
|
|
5
|
-
return ve || (ve = 1, Q = (e) => {
|
|
6
|
-
const t = e.match(/^[ \t]*(?=\S)/gm);
|
|
7
|
-
return t ? t.reduce((n, r) => Math.min(n, r.length), 1 / 0) : 0;
|
|
8
|
-
}), Q;
|
|
9
|
-
}
|
|
10
|
-
var J, ye;
|
|
11
|
-
function It() {
|
|
12
|
-
if (ye) return J;
|
|
13
|
-
ye = 1;
|
|
14
|
-
const e = Ot();
|
|
15
|
-
return J = (t) => {
|
|
16
|
-
const n = e(t);
|
|
17
|
-
if (n === 0)
|
|
18
|
-
return t;
|
|
19
|
-
const r = new RegExp(`^[ \\t]{${n}}`, "gm");
|
|
20
|
-
return t.replace(r, "");
|
|
21
|
-
}, J;
|
|
22
|
-
}
|
|
23
|
-
var Z, Ee;
|
|
24
|
-
function Ht() {
|
|
25
|
-
return Ee || (Ee = 1, Z = (e, t = 1, n) => {
|
|
26
|
-
if (n = {
|
|
27
|
-
indent: " ",
|
|
28
|
-
includeEmptyLines: !1,
|
|
29
|
-
...n
|
|
30
|
-
}, typeof e != "string")
|
|
31
|
-
throw new TypeError(
|
|
32
|
-
`Expected \`input\` to be a \`string\`, got \`${typeof e}\``
|
|
33
|
-
);
|
|
34
|
-
if (typeof t != "number")
|
|
35
|
-
throw new TypeError(
|
|
36
|
-
`Expected \`count\` to be a \`number\`, got \`${typeof t}\``
|
|
37
|
-
);
|
|
38
|
-
if (typeof n.indent != "string")
|
|
39
|
-
throw new TypeError(
|
|
40
|
-
`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``
|
|
41
|
-
);
|
|
42
|
-
if (t === 0)
|
|
43
|
-
return e;
|
|
44
|
-
const r = n.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
45
|
-
return e.replace(r, n.indent.repeat(t));
|
|
46
|
-
}), Z;
|
|
47
|
-
}
|
|
48
|
-
var ee, we;
|
|
49
|
-
function Tt() {
|
|
50
|
-
if (we) return ee;
|
|
51
|
-
we = 1;
|
|
52
|
-
const e = It(), t = Ht();
|
|
53
|
-
return ee = (n, r = 0, i) => t(e(n), r, i), ee;
|
|
54
|
-
}
|
|
55
|
-
var Dt = Tt();
|
|
56
|
-
const xe = /* @__PURE__ */ de(Dt);
|
|
57
|
-
class Bt extends Error {
|
|
58
|
-
reason;
|
|
59
|
-
filename;
|
|
60
|
-
line;
|
|
61
|
-
column;
|
|
62
|
-
source;
|
|
63
|
-
constructor(t, n, r, i, s) {
|
|
64
|
-
super(`${t}:${r}:${i}: ${n}`), this.reason = n, this.filename = t, this.line = r, this.column = i, this.source = s;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
class Pt {
|
|
68
|
-
start;
|
|
69
|
-
end;
|
|
70
|
-
source;
|
|
71
|
-
constructor(t, n, r) {
|
|
72
|
-
this.start = t, this.end = n, this.source = r;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
var N;
|
|
76
|
-
(function(e) {
|
|
77
|
-
e.stylesheet = "stylesheet", e.rule = "rule", e.declaration = "declaration", e.comment = "comment", e.container = "container", e.charset = "charset", e.document = "document", e.customMedia = "custom-media", e.fontFace = "font-face", e.host = "host", e.import = "import", e.keyframes = "keyframes", e.keyframe = "keyframe", e.layer = "layer", e.media = "media", e.namespace = "namespace", e.page = "page", e.startingStyle = "starting-style", e.supports = "supports";
|
|
78
|
-
})(N || (N = {}));
|
|
79
|
-
const Ne = (e, t, n) => {
|
|
80
|
-
let r = n, i = 1e4;
|
|
81
|
-
do {
|
|
82
|
-
const s = t.map((c) => e.indexOf(c, r));
|
|
83
|
-
s.push(e.indexOf("\\", r));
|
|
84
|
-
const o = s.filter((c) => c !== -1);
|
|
85
|
-
if (o.length === 0) return -1;
|
|
86
|
-
const f = Math.min(...o);
|
|
87
|
-
if (e[f] !== "\\") return f;
|
|
88
|
-
r = f + 2, i--;
|
|
89
|
-
} while (i > 0);
|
|
90
|
-
throw new Error("Too many escaping");
|
|
91
|
-
}, ne = (e, t, n) => {
|
|
92
|
-
let r = n, i = 1e4;
|
|
93
|
-
do {
|
|
94
|
-
const s = t.map((c) => e.indexOf(c, r));
|
|
95
|
-
s.push(e.indexOf("(", r)), s.push(e.indexOf('"', r)), s.push(e.indexOf("'", r)), s.push(e.indexOf("\\", r));
|
|
96
|
-
const o = s.filter((c) => c !== -1);
|
|
97
|
-
if (o.length === 0) return -1;
|
|
98
|
-
const f = Math.min(...o);
|
|
99
|
-
switch (e[f]) {
|
|
100
|
-
case "\\":
|
|
101
|
-
r = f + 2;
|
|
102
|
-
break;
|
|
103
|
-
case "(":
|
|
104
|
-
{
|
|
105
|
-
const c = ne(e, [")"], f + 1);
|
|
106
|
-
if (c === -1) return -1;
|
|
107
|
-
r = c + 1;
|
|
108
|
-
}
|
|
109
|
-
break;
|
|
110
|
-
case '"':
|
|
111
|
-
{
|
|
112
|
-
const c = Ne(e, ['"'], f + 1);
|
|
113
|
-
if (c === -1) return -1;
|
|
114
|
-
r = c + 1;
|
|
115
|
-
}
|
|
116
|
-
break;
|
|
117
|
-
case "'":
|
|
118
|
-
{
|
|
119
|
-
const c = Ne(e, ["'"], f + 1);
|
|
120
|
-
if (c === -1) return -1;
|
|
121
|
-
r = c + 1;
|
|
122
|
-
}
|
|
123
|
-
break;
|
|
124
|
-
default:
|
|
125
|
-
return f;
|
|
126
|
-
}
|
|
127
|
-
i--;
|
|
128
|
-
} while (i > 0);
|
|
129
|
-
throw new Error("Too many escaping");
|
|
130
|
-
}, te = /\/\*[^]*?(?:\*\/|$)/g;
|
|
131
|
-
function R(e) {
|
|
132
|
-
return e ? e.trim() : "";
|
|
133
|
-
}
|
|
134
|
-
function re(e, t) {
|
|
135
|
-
const n = e && typeof e.type == "string", r = n ? e : t;
|
|
136
|
-
for (const i in e) {
|
|
137
|
-
const s = e[i];
|
|
138
|
-
Array.isArray(s) ? s.forEach((o) => {
|
|
139
|
-
re(o, r);
|
|
140
|
-
}) : s && typeof s == "object" && re(s, r);
|
|
141
|
-
}
|
|
142
|
-
return n && Object.defineProperty(e, "parent", { configurable: !0, writable: !0, enumerable: !1, value: t || null }), e;
|
|
143
|
-
}
|
|
144
|
-
const kt = (e, t) => {
|
|
145
|
-
t = t || {};
|
|
146
|
-
let n = 1, r = 1;
|
|
147
|
-
function i() {
|
|
148
|
-
const l = { line: n, column: r };
|
|
149
|
-
return (u) => (u.position = new Pt(l, { line: n, column: r }, t?.source || ""), L(), u);
|
|
150
|
-
}
|
|
151
|
-
const s = [];
|
|
152
|
-
function o(l) {
|
|
153
|
-
const u = new Bt(t?.source || "", l, n, r, e);
|
|
154
|
-
if (!t?.silent) throw u;
|
|
155
|
-
s.push(u);
|
|
156
|
-
}
|
|
157
|
-
function f() {
|
|
158
|
-
const l = /^{\s*/.exec(e);
|
|
159
|
-
return !!l && (h(l), !0);
|
|
160
|
-
}
|
|
161
|
-
function c() {
|
|
162
|
-
const l = /^}/.exec(e);
|
|
163
|
-
return !!l && (h(l), !0);
|
|
164
|
-
}
|
|
165
|
-
function b() {
|
|
166
|
-
let l;
|
|
167
|
-
const u = [];
|
|
168
|
-
for (L(), y(u); e.length && e.charAt(0) !== "}" && (l = I() || D(), l); ) u.push(l), y(u);
|
|
169
|
-
return u;
|
|
170
|
-
}
|
|
171
|
-
function h(l) {
|
|
172
|
-
const u = l[0];
|
|
173
|
-
return (function(d) {
|
|
174
|
-
const p = d.match(/\n/g);
|
|
175
|
-
p && (n += p.length);
|
|
176
|
-
const g = d.lastIndexOf(`
|
|
177
|
-
`);
|
|
178
|
-
r = ~g ? d.length - g : r + d.length;
|
|
179
|
-
})(u), e = e.slice(u.length), l;
|
|
180
|
-
}
|
|
181
|
-
function L() {
|
|
182
|
-
const l = /^\s*/.exec(e);
|
|
183
|
-
l && h(l);
|
|
184
|
-
}
|
|
185
|
-
function y(l) {
|
|
186
|
-
l = l || [];
|
|
187
|
-
let u = H();
|
|
188
|
-
for (; u; ) l.push(u), u = H();
|
|
189
|
-
return l;
|
|
190
|
-
}
|
|
191
|
-
function H() {
|
|
192
|
-
const l = i();
|
|
193
|
-
if (e.charAt(0) !== "/" || e.charAt(1) !== "*") return;
|
|
194
|
-
const u = /^\/\*[^]*?\*\//.exec(e);
|
|
195
|
-
return u ? (h(u), l({ type: N.comment, comment: u[0].slice(2, -2) })) : o("End of comment missing");
|
|
196
|
-
}
|
|
197
|
-
function F() {
|
|
198
|
-
const l = /^([^{]+)/.exec(e);
|
|
199
|
-
if (l)
|
|
200
|
-
return h(l), ((u, d) => {
|
|
201
|
-
const p = [];
|
|
202
|
-
let g = 0;
|
|
203
|
-
for (; g < u.length; ) {
|
|
204
|
-
const x = ne(u, d, g);
|
|
205
|
-
if (x === -1) return p.push(u.substring(g)), p;
|
|
206
|
-
p.push(u.substring(g, x)), g = x + 1;
|
|
207
|
-
}
|
|
208
|
-
return p;
|
|
209
|
-
})(R(l[0]).replace(te, ""), [","]).map((u) => R(u));
|
|
210
|
-
}
|
|
211
|
-
function k() {
|
|
212
|
-
const l = i(), u = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);
|
|
213
|
-
if (!u) return;
|
|
214
|
-
h(u);
|
|
215
|
-
const d = R(u[0]), p = /^:\s*/.exec(e);
|
|
216
|
-
if (!p) return o("property missing ':'");
|
|
217
|
-
h(p);
|
|
218
|
-
let g = "";
|
|
219
|
-
const x = ne(e, [";", "}"]);
|
|
220
|
-
x !== -1 && (g = e.substring(0, x), h([g]), g = R(g).replace(te, ""));
|
|
221
|
-
const B = l({ type: N.declaration, property: d.replace(te, ""), value: g }), V = /^[;\s]*/.exec(e);
|
|
222
|
-
return V && h(V), B;
|
|
223
|
-
}
|
|
224
|
-
function O() {
|
|
225
|
-
const l = [];
|
|
226
|
-
if (!f()) return o("missing '{'");
|
|
227
|
-
y(l);
|
|
228
|
-
let u = k();
|
|
229
|
-
for (; u; ) l.push(u), y(l), u = k();
|
|
230
|
-
return c() ? l : o("missing '}'");
|
|
231
|
-
}
|
|
232
|
-
function a() {
|
|
233
|
-
const l = [], u = i();
|
|
234
|
-
let d = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);
|
|
235
|
-
for (; d; ) {
|
|
236
|
-
const p = h(d);
|
|
237
|
-
l.push(p[1]);
|
|
238
|
-
const g = /^,\s*/.exec(e);
|
|
239
|
-
g && h(g), d = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);
|
|
240
|
-
}
|
|
241
|
-
if (l.length) return u({ type: N.keyframe, values: l, declarations: O() || [] });
|
|
242
|
-
}
|
|
243
|
-
const w = $("import"), E = $("charset"), T = $("namespace");
|
|
244
|
-
function $(l) {
|
|
245
|
-
const u = new RegExp("^@" + l + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);
|
|
246
|
-
return () => {
|
|
247
|
-
const d = i(), p = u.exec(e);
|
|
248
|
-
if (!p) return;
|
|
249
|
-
const g = h(p), x = { type: l };
|
|
250
|
-
return x[l] = g[1].trim(), d(x);
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
function I() {
|
|
254
|
-
if (e[0] === "@") return (function() {
|
|
255
|
-
const l = i(), u = /^@([-\w]+)?keyframes\s*/.exec(e);
|
|
256
|
-
if (!u) return;
|
|
257
|
-
const d = h(u)[1], p = /^([-\w]+)\s*/.exec(e);
|
|
258
|
-
if (!p) return o("@keyframes missing name");
|
|
259
|
-
const g = h(p)[1];
|
|
260
|
-
if (!f()) return o("@keyframes missing '{'");
|
|
261
|
-
let x = y(), B = a();
|
|
262
|
-
for (; B; ) x.push(B), x = x.concat(y()), B = a();
|
|
263
|
-
return c() ? l({ type: N.keyframes, name: g, vendor: d, keyframes: x }) : o("@keyframes missing '}'");
|
|
264
|
-
})() || (function() {
|
|
265
|
-
const l = i(), u = /^@media *([^{]+)/.exec(e);
|
|
266
|
-
if (!u) return;
|
|
267
|
-
const d = R(h(u)[1]);
|
|
268
|
-
if (!f()) return o("@media missing '{'");
|
|
269
|
-
const p = y().concat(b());
|
|
270
|
-
return c() ? l({ type: N.media, media: d, rules: p }) : o("@media missing '}'");
|
|
271
|
-
})() || (function() {
|
|
272
|
-
const l = i(), u = /^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);
|
|
273
|
-
if (!u) return;
|
|
274
|
-
const d = h(u);
|
|
275
|
-
return l({ type: N.customMedia, name: R(d[1]), media: R(d[2]) });
|
|
276
|
-
})() || (function() {
|
|
277
|
-
const l = i(), u = /^@supports *([^{]+)/.exec(e);
|
|
278
|
-
if (!u) return;
|
|
279
|
-
const d = R(h(u)[1]);
|
|
280
|
-
if (!f()) return o("@supports missing '{'");
|
|
281
|
-
const p = y().concat(b());
|
|
282
|
-
return c() ? l({ type: N.supports, supports: d, rules: p }) : o("@supports missing '}'");
|
|
283
|
-
})() || w() || E() || T() || (function() {
|
|
284
|
-
const l = i(), u = /^@([-\w]+)?document *([^{]+)/.exec(e);
|
|
285
|
-
if (!u) return;
|
|
286
|
-
const d = h(u), p = R(d[1]), g = R(d[2]);
|
|
287
|
-
if (!f()) return o("@document missing '{'");
|
|
288
|
-
const x = y().concat(b());
|
|
289
|
-
return c() ? l({ type: N.document, document: g, vendor: p, rules: x }) : o("@document missing '}'");
|
|
290
|
-
})() || (function() {
|
|
291
|
-
const l = i(), u = /^@page */.exec(e);
|
|
292
|
-
if (!u) return;
|
|
293
|
-
h(u);
|
|
294
|
-
const d = F() || [];
|
|
295
|
-
if (!f()) return o("@page missing '{'");
|
|
296
|
-
let p = y(), g = k();
|
|
297
|
-
for (; g; ) p.push(g), p = p.concat(y()), g = k();
|
|
298
|
-
return c() ? l({ type: N.page, selectors: d, declarations: p }) : o("@page missing '}'");
|
|
299
|
-
})() || (function() {
|
|
300
|
-
const l = i(), u = /^@host\s*/.exec(e);
|
|
301
|
-
if (!u) return;
|
|
302
|
-
if (h(u), !f()) return o("@host missing '{'");
|
|
303
|
-
const d = y().concat(b());
|
|
304
|
-
return c() ? l({ type: N.host, rules: d }) : o("@host missing '}'");
|
|
305
|
-
})() || (function() {
|
|
306
|
-
const l = i(), u = /^@font-face\s*/.exec(e);
|
|
307
|
-
if (!u) return;
|
|
308
|
-
if (h(u), !f()) return o("@font-face missing '{'");
|
|
309
|
-
let d = y(), p = k();
|
|
310
|
-
for (; p; ) d.push(p), d = d.concat(y()), p = k();
|
|
311
|
-
return c() ? l({ type: N.fontFace, declarations: d }) : o("@font-face missing '}'");
|
|
312
|
-
})() || (function() {
|
|
313
|
-
const l = i(), u = /^@container *([^{]+)/.exec(e);
|
|
314
|
-
if (!u) return;
|
|
315
|
-
const d = R(h(u)[1]);
|
|
316
|
-
if (!f()) return o("@container missing '{'");
|
|
317
|
-
const p = y().concat(b());
|
|
318
|
-
return c() ? l({ type: N.container, container: d, rules: p }) : o("@container missing '}'");
|
|
319
|
-
})() || (function() {
|
|
320
|
-
const l = i(), u = /^@starting-style\s*/.exec(e);
|
|
321
|
-
if (!u) return;
|
|
322
|
-
if (h(u), !f()) return o("@starting-style missing '{'");
|
|
323
|
-
const d = y().concat(b());
|
|
324
|
-
return c() ? l({ type: N.startingStyle, rules: d }) : o("@starting-style missing '}'");
|
|
325
|
-
})() || (function() {
|
|
326
|
-
const l = i(), u = /^@layer *([^{;@]+)/.exec(e);
|
|
327
|
-
if (!u) return;
|
|
328
|
-
const d = R(h(u)[1]);
|
|
329
|
-
if (!f()) {
|
|
330
|
-
const g = /^[;\s]*/.exec(e);
|
|
331
|
-
return g && h(g), l({ type: N.layer, layer: d });
|
|
332
|
-
}
|
|
333
|
-
const p = y().concat(b());
|
|
334
|
-
return c() ? l({ type: N.layer, layer: d, rules: p }) : o("@layer missing '}'");
|
|
335
|
-
})();
|
|
336
|
-
}
|
|
337
|
-
function D() {
|
|
338
|
-
const l = i(), u = F();
|
|
339
|
-
return u ? (y(), l({ type: N.rule, selectors: u, declarations: O() || [] })) : o("selector missing");
|
|
340
|
-
}
|
|
341
|
-
return re((function() {
|
|
342
|
-
const l = b();
|
|
343
|
-
return { type: N.stylesheet, stylesheet: { source: t?.source, rules: l, parsingErrors: s } };
|
|
344
|
-
})());
|
|
345
|
-
};
|
|
346
|
-
var Mt = Object.prototype.toString;
|
|
347
|
-
function Lt(e) {
|
|
348
|
-
return typeof e == "function" || Mt.call(e) === "[object Function]";
|
|
349
|
-
}
|
|
350
|
-
function Vt(e) {
|
|
351
|
-
var t = Number(e);
|
|
352
|
-
return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
|
|
353
|
-
}
|
|
354
|
-
var jt = Math.pow(2, 53) - 1;
|
|
355
|
-
function _t(e) {
|
|
356
|
-
var t = Vt(e);
|
|
357
|
-
return Math.min(Math.max(t, 0), jt);
|
|
358
|
-
}
|
|
359
|
-
function C(e, t) {
|
|
360
|
-
var n = Array, r = Object(e);
|
|
361
|
-
if (e == null)
|
|
362
|
-
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
|
363
|
-
for (var i = _t(r.length), s = Lt(n) ? Object(new n(i)) : new Array(i), o = 0, f; o < i; )
|
|
364
|
-
f = r[o], s[o] = f, o += 1;
|
|
365
|
-
return s.length = i, s;
|
|
366
|
-
}
|
|
367
|
-
function _(e) {
|
|
368
|
-
"@babel/helpers - typeof";
|
|
369
|
-
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
370
|
-
return typeof t;
|
|
371
|
-
} : function(t) {
|
|
372
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
373
|
-
}, _(e);
|
|
374
|
-
}
|
|
375
|
-
function qt(e, t) {
|
|
376
|
-
if (!(e instanceof t))
|
|
377
|
-
throw new TypeError("Cannot call a class as a function");
|
|
378
|
-
}
|
|
379
|
-
function Ft(e, t) {
|
|
380
|
-
for (var n = 0; n < t.length; n++) {
|
|
381
|
-
var r = t[n];
|
|
382
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Le(r.key), r);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
function Ut(e, t, n) {
|
|
386
|
-
return t && Ft(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
387
|
-
}
|
|
388
|
-
function Gt(e, t, n) {
|
|
389
|
-
return t = Le(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
390
|
-
}
|
|
391
|
-
function Le(e) {
|
|
392
|
-
var t = zt(e, "string");
|
|
393
|
-
return _(t) === "symbol" ? t : String(t);
|
|
394
|
-
}
|
|
395
|
-
function zt(e, t) {
|
|
396
|
-
if (_(e) !== "object" || e === null) return e;
|
|
397
|
-
var n = e[Symbol.toPrimitive];
|
|
398
|
-
if (n !== void 0) {
|
|
399
|
-
var r = n.call(e, t);
|
|
400
|
-
if (_(r) !== "object") return r;
|
|
401
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
402
|
-
}
|
|
403
|
-
return (t === "string" ? String : Number)(e);
|
|
404
|
-
}
|
|
405
|
-
var Wt = /* @__PURE__ */ (function() {
|
|
406
|
-
function e() {
|
|
407
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
408
|
-
qt(this, e), Gt(this, "items", void 0), this.items = t;
|
|
409
|
-
}
|
|
410
|
-
return Ut(e, [{
|
|
411
|
-
key: "add",
|
|
412
|
-
value: function(n) {
|
|
413
|
-
return this.has(n) === !1 && this.items.push(n), this;
|
|
414
|
-
}
|
|
415
|
-
}, {
|
|
416
|
-
key: "clear",
|
|
417
|
-
value: function() {
|
|
418
|
-
this.items = [];
|
|
419
|
-
}
|
|
420
|
-
}, {
|
|
421
|
-
key: "delete",
|
|
422
|
-
value: function(n) {
|
|
423
|
-
var r = this.items.length;
|
|
424
|
-
return this.items = this.items.filter(function(i) {
|
|
425
|
-
return i !== n;
|
|
426
|
-
}), r !== this.items.length;
|
|
427
|
-
}
|
|
428
|
-
}, {
|
|
429
|
-
key: "forEach",
|
|
430
|
-
value: function(n) {
|
|
431
|
-
var r = this;
|
|
432
|
-
this.items.forEach(function(i) {
|
|
433
|
-
n(i, i, r);
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
}, {
|
|
437
|
-
key: "has",
|
|
438
|
-
value: function(n) {
|
|
439
|
-
return this.items.indexOf(n) !== -1;
|
|
440
|
-
}
|
|
441
|
-
}, {
|
|
442
|
-
key: "size",
|
|
443
|
-
get: function() {
|
|
444
|
-
return this.items.length;
|
|
445
|
-
}
|
|
446
|
-
}]), e;
|
|
447
|
-
})();
|
|
448
|
-
const Yt = typeof Set > "u" ? Set : Wt;
|
|
449
|
-
function A(e) {
|
|
450
|
-
var t;
|
|
451
|
-
return (
|
|
452
|
-
// eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
|
|
453
|
-
(t = e.localName) !== null && t !== void 0 ? t : (
|
|
454
|
-
// eslint-disable-next-line no-restricted-properties -- required for the fallback
|
|
455
|
-
e.tagName.toLowerCase()
|
|
456
|
-
)
|
|
457
|
-
);
|
|
458
|
-
}
|
|
459
|
-
var Kt = {
|
|
460
|
-
article: "article",
|
|
461
|
-
aside: "complementary",
|
|
462
|
-
button: "button",
|
|
463
|
-
datalist: "listbox",
|
|
464
|
-
dd: "definition",
|
|
465
|
-
details: "group",
|
|
466
|
-
dialog: "dialog",
|
|
467
|
-
dt: "term",
|
|
468
|
-
fieldset: "group",
|
|
469
|
-
figure: "figure",
|
|
470
|
-
// WARNING: Only with an accessible name
|
|
471
|
-
form: "form",
|
|
472
|
-
footer: "contentinfo",
|
|
473
|
-
h1: "heading",
|
|
474
|
-
h2: "heading",
|
|
475
|
-
h3: "heading",
|
|
476
|
-
h4: "heading",
|
|
477
|
-
h5: "heading",
|
|
478
|
-
h6: "heading",
|
|
479
|
-
header: "banner",
|
|
480
|
-
hr: "separator",
|
|
481
|
-
html: "document",
|
|
482
|
-
legend: "legend",
|
|
483
|
-
li: "listitem",
|
|
484
|
-
math: "math",
|
|
485
|
-
main: "main",
|
|
486
|
-
menu: "list",
|
|
487
|
-
nav: "navigation",
|
|
488
|
-
ol: "list",
|
|
489
|
-
optgroup: "group",
|
|
490
|
-
// WARNING: Only in certain context
|
|
491
|
-
option: "option",
|
|
492
|
-
output: "status",
|
|
493
|
-
progress: "progressbar",
|
|
494
|
-
// WARNING: Only with an accessible name
|
|
495
|
-
section: "region",
|
|
496
|
-
summary: "button",
|
|
497
|
-
table: "table",
|
|
498
|
-
tbody: "rowgroup",
|
|
499
|
-
textarea: "textbox",
|
|
500
|
-
tfoot: "rowgroup",
|
|
501
|
-
// WARNING: Only in certain context
|
|
502
|
-
td: "cell",
|
|
503
|
-
th: "columnheader",
|
|
504
|
-
thead: "rowgroup",
|
|
505
|
-
tr: "row",
|
|
506
|
-
ul: "list"
|
|
507
|
-
}, Xt = {
|
|
508
|
-
caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
509
|
-
code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
510
|
-
deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
511
|
-
emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
512
|
-
generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
|
|
513
|
-
insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
514
|
-
none: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
515
|
-
paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
516
|
-
presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
517
|
-
strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
518
|
-
subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
519
|
-
superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
|
|
520
|
-
};
|
|
521
|
-
function Qt(e, t) {
|
|
522
|
-
return [
|
|
523
|
-
"aria-atomic",
|
|
524
|
-
"aria-busy",
|
|
525
|
-
"aria-controls",
|
|
526
|
-
"aria-current",
|
|
527
|
-
"aria-description",
|
|
528
|
-
"aria-describedby",
|
|
529
|
-
"aria-details",
|
|
530
|
-
// "disabled",
|
|
531
|
-
"aria-dropeffect",
|
|
532
|
-
// "errormessage",
|
|
533
|
-
"aria-flowto",
|
|
534
|
-
"aria-grabbed",
|
|
535
|
-
// "haspopup",
|
|
536
|
-
"aria-hidden",
|
|
537
|
-
// "invalid",
|
|
538
|
-
"aria-keyshortcuts",
|
|
539
|
-
"aria-label",
|
|
540
|
-
"aria-labelledby",
|
|
541
|
-
"aria-live",
|
|
542
|
-
"aria-owns",
|
|
543
|
-
"aria-relevant",
|
|
544
|
-
"aria-roledescription"
|
|
545
|
-
].some(function(n) {
|
|
546
|
-
var r;
|
|
547
|
-
return e.hasAttribute(n) && !((r = Xt[t]) !== null && r !== void 0 && r.has(n));
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
function Ve(e, t) {
|
|
551
|
-
return Qt(e, t);
|
|
552
|
-
}
|
|
553
|
-
function Jt(e) {
|
|
554
|
-
var t = en(e);
|
|
555
|
-
if (t === null || ie.indexOf(t) !== -1) {
|
|
556
|
-
var n = Zt(e);
|
|
557
|
-
if (ie.indexOf(t || "") === -1 || Ve(e, n || ""))
|
|
558
|
-
return n;
|
|
559
|
-
}
|
|
560
|
-
return t;
|
|
561
|
-
}
|
|
562
|
-
function Zt(e) {
|
|
563
|
-
var t = Kt[A(e)];
|
|
564
|
-
if (t !== void 0)
|
|
565
|
-
return t;
|
|
566
|
-
switch (A(e)) {
|
|
567
|
-
case "a":
|
|
568
|
-
case "area":
|
|
569
|
-
case "link":
|
|
570
|
-
if (e.hasAttribute("href"))
|
|
571
|
-
return "link";
|
|
572
|
-
break;
|
|
573
|
-
case "img":
|
|
574
|
-
return e.getAttribute("alt") === "" && !Ve(e, "img") ? "presentation" : "img";
|
|
575
|
-
case "input": {
|
|
576
|
-
var n = e, r = n.type;
|
|
577
|
-
switch (r) {
|
|
578
|
-
case "button":
|
|
579
|
-
case "image":
|
|
580
|
-
case "reset":
|
|
581
|
-
case "submit":
|
|
582
|
-
return "button";
|
|
583
|
-
case "checkbox":
|
|
584
|
-
case "radio":
|
|
585
|
-
return r;
|
|
586
|
-
case "range":
|
|
587
|
-
return "slider";
|
|
588
|
-
case "email":
|
|
589
|
-
case "tel":
|
|
590
|
-
case "text":
|
|
591
|
-
case "url":
|
|
592
|
-
return e.hasAttribute("list") ? "combobox" : "textbox";
|
|
593
|
-
case "search":
|
|
594
|
-
return e.hasAttribute("list") ? "combobox" : "searchbox";
|
|
595
|
-
case "number":
|
|
596
|
-
return "spinbutton";
|
|
597
|
-
default:
|
|
598
|
-
return null;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
case "select":
|
|
602
|
-
return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
|
|
603
|
-
}
|
|
604
|
-
return null;
|
|
605
|
-
}
|
|
606
|
-
function en(e) {
|
|
607
|
-
var t = e.getAttribute("role");
|
|
608
|
-
if (t !== null) {
|
|
609
|
-
var n = t.trim().split(" ")[0];
|
|
610
|
-
if (n.length > 0)
|
|
611
|
-
return n;
|
|
612
|
-
}
|
|
613
|
-
return null;
|
|
614
|
-
}
|
|
615
|
-
var ie = ["presentation", "none"];
|
|
616
|
-
function v(e) {
|
|
617
|
-
return e !== null && e.nodeType === e.ELEMENT_NODE;
|
|
618
|
-
}
|
|
619
|
-
function je(e) {
|
|
620
|
-
return v(e) && A(e) === "caption";
|
|
621
|
-
}
|
|
622
|
-
function G(e) {
|
|
623
|
-
return v(e) && A(e) === "input";
|
|
624
|
-
}
|
|
625
|
-
function tn(e) {
|
|
626
|
-
return v(e) && A(e) === "optgroup";
|
|
627
|
-
}
|
|
628
|
-
function nn(e) {
|
|
629
|
-
return v(e) && A(e) === "select";
|
|
630
|
-
}
|
|
631
|
-
function rn(e) {
|
|
632
|
-
return v(e) && A(e) === "table";
|
|
633
|
-
}
|
|
634
|
-
function sn(e) {
|
|
635
|
-
return v(e) && A(e) === "textarea";
|
|
636
|
-
}
|
|
637
|
-
function on(e) {
|
|
638
|
-
var t = e.ownerDocument === null ? e : e.ownerDocument, n = t.defaultView;
|
|
639
|
-
if (n === null)
|
|
640
|
-
throw new TypeError("no window available");
|
|
641
|
-
return n;
|
|
642
|
-
}
|
|
643
|
-
function an(e) {
|
|
644
|
-
return v(e) && A(e) === "fieldset";
|
|
645
|
-
}
|
|
646
|
-
function un(e) {
|
|
647
|
-
return v(e) && A(e) === "legend";
|
|
648
|
-
}
|
|
649
|
-
function cn(e) {
|
|
650
|
-
return v(e) && A(e) === "slot";
|
|
651
|
-
}
|
|
652
|
-
function ln(e) {
|
|
653
|
-
return v(e) && e.ownerSVGElement !== void 0;
|
|
654
|
-
}
|
|
655
|
-
function fn(e) {
|
|
656
|
-
return v(e) && A(e) === "svg";
|
|
657
|
-
}
|
|
658
|
-
function dn(e) {
|
|
659
|
-
return ln(e) && A(e) === "title";
|
|
660
|
-
}
|
|
661
|
-
function W(e, t) {
|
|
662
|
-
if (v(e) && e.hasAttribute(t)) {
|
|
663
|
-
var n = e.getAttribute(t).split(" "), r = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
664
|
-
return n.map(function(i) {
|
|
665
|
-
return r.getElementById(i);
|
|
666
|
-
}).filter(
|
|
667
|
-
function(i) {
|
|
668
|
-
return i !== null;
|
|
669
|
-
}
|
|
670
|
-
// TODO: why does this not narrow?
|
|
671
|
-
);
|
|
672
|
-
}
|
|
673
|
-
return [];
|
|
674
|
-
}
|
|
675
|
-
function P(e, t) {
|
|
676
|
-
return v(e) ? t.indexOf(Jt(e)) !== -1 : !1;
|
|
677
|
-
}
|
|
678
|
-
function pn(e) {
|
|
679
|
-
return e.trim().replace(/\s\s+/g, " ");
|
|
680
|
-
}
|
|
681
|
-
function hn(e, t) {
|
|
682
|
-
if (!v(e))
|
|
683
|
-
return !1;
|
|
684
|
-
if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true")
|
|
685
|
-
return !0;
|
|
686
|
-
var n = t(e);
|
|
687
|
-
return n.getPropertyValue("display") === "none" || n.getPropertyValue("visibility") === "hidden";
|
|
688
|
-
}
|
|
689
|
-
function gn(e) {
|
|
690
|
-
return P(e, ["button", "combobox", "listbox", "textbox"]) || _e(e, "range");
|
|
691
|
-
}
|
|
692
|
-
function _e(e, t) {
|
|
693
|
-
if (!v(e))
|
|
694
|
-
return !1;
|
|
695
|
-
if (t === "range")
|
|
696
|
-
return P(e, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
|
|
697
|
-
throw new TypeError("No knowledge about abstract role '".concat(t, "'. This is likely a bug :("));
|
|
698
|
-
}
|
|
699
|
-
function Se(e, t) {
|
|
700
|
-
var n = C(e.querySelectorAll(t));
|
|
701
|
-
return W(e, "aria-owns").forEach(function(r) {
|
|
702
|
-
n.push.apply(n, C(r.querySelectorAll(t)));
|
|
703
|
-
}), n;
|
|
704
|
-
}
|
|
705
|
-
function mn(e) {
|
|
706
|
-
return nn(e) ? e.selectedOptions || Se(e, "[selected]") : Se(e, '[aria-selected="true"]');
|
|
707
|
-
}
|
|
708
|
-
function bn(e) {
|
|
709
|
-
return P(e, ie);
|
|
710
|
-
}
|
|
711
|
-
function vn(e) {
|
|
712
|
-
return je(e);
|
|
713
|
-
}
|
|
714
|
-
function yn(e) {
|
|
715
|
-
return P(e, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
|
|
716
|
-
}
|
|
717
|
-
function En(e) {
|
|
718
|
-
return !1;
|
|
719
|
-
}
|
|
720
|
-
function wn(e) {
|
|
721
|
-
return G(e) || sn(e) ? e.value : e.textContent || "";
|
|
722
|
-
}
|
|
723
|
-
function Ae(e) {
|
|
724
|
-
var t = e.getPropertyValue("content");
|
|
725
|
-
return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
|
|
726
|
-
}
|
|
727
|
-
function qe(e) {
|
|
728
|
-
var t = A(e);
|
|
729
|
-
return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
|
|
730
|
-
}
|
|
731
|
-
function Fe(e) {
|
|
732
|
-
if (qe(e))
|
|
733
|
-
return e;
|
|
734
|
-
var t = null;
|
|
735
|
-
return e.childNodes.forEach(function(n) {
|
|
736
|
-
if (t === null && v(n)) {
|
|
737
|
-
var r = Fe(n);
|
|
738
|
-
r !== null && (t = r);
|
|
739
|
-
}
|
|
740
|
-
}), t;
|
|
741
|
-
}
|
|
742
|
-
function xn(e) {
|
|
743
|
-
if (e.control !== void 0)
|
|
744
|
-
return e.control;
|
|
745
|
-
var t = e.getAttribute("for");
|
|
746
|
-
return t !== null ? e.ownerDocument.getElementById(t) : Fe(e);
|
|
747
|
-
}
|
|
748
|
-
function Nn(e) {
|
|
749
|
-
var t = e.labels;
|
|
750
|
-
if (t === null)
|
|
751
|
-
return t;
|
|
752
|
-
if (t !== void 0)
|
|
753
|
-
return C(t);
|
|
754
|
-
if (!qe(e))
|
|
755
|
-
return null;
|
|
756
|
-
var n = e.ownerDocument;
|
|
757
|
-
return C(n.querySelectorAll("label")).filter(function(r) {
|
|
758
|
-
return xn(r) === e;
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
function Sn(e) {
|
|
762
|
-
var t = e.assignedNodes();
|
|
763
|
-
return t.length === 0 ? C(e.childNodes) : t;
|
|
764
|
-
}
|
|
765
|
-
function Ue(e) {
|
|
766
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = new Yt(), r = on(e), i = t.compute, s = i === void 0 ? "name" : i, o = t.computedStyleSupportsPseudoElements, f = o === void 0 ? t.getComputedStyle !== void 0 : o, c = t.getComputedStyle, b = c === void 0 ? r.getComputedStyle.bind(r) : c, h = t.hidden, L = h === void 0 ? !1 : h;
|
|
767
|
-
function y(a, w) {
|
|
768
|
-
var E = "";
|
|
769
|
-
if (v(a) && f) {
|
|
770
|
-
var T = b(a, "::before"), $ = Ae(T);
|
|
771
|
-
E = "".concat($, " ").concat(E);
|
|
772
|
-
}
|
|
773
|
-
var I = cn(a) ? Sn(a) : C(a.childNodes).concat(W(a, "aria-owns"));
|
|
774
|
-
if (I.forEach(function(u) {
|
|
775
|
-
var d = O(u, {
|
|
776
|
-
isEmbeddedInLabel: w.isEmbeddedInLabel,
|
|
777
|
-
isReferenced: !1,
|
|
778
|
-
recursion: !0
|
|
779
|
-
}), p = v(u) ? b(u).getPropertyValue("display") : "inline", g = p !== "inline" ? " " : "";
|
|
780
|
-
E += "".concat(g).concat(d).concat(g);
|
|
781
|
-
}), v(a) && f) {
|
|
782
|
-
var D = b(a, "::after"), l = Ae(D);
|
|
783
|
-
E = "".concat(E, " ").concat(l);
|
|
784
|
-
}
|
|
785
|
-
return E.trim();
|
|
786
|
-
}
|
|
787
|
-
function H(a, w) {
|
|
788
|
-
var E = a.getAttributeNode(w);
|
|
789
|
-
return E !== null && !n.has(E) && E.value.trim() !== "" ? (n.add(E), E.value) : null;
|
|
790
|
-
}
|
|
791
|
-
function F(a) {
|
|
792
|
-
return v(a) ? H(a, "title") : null;
|
|
793
|
-
}
|
|
794
|
-
function k(a) {
|
|
795
|
-
if (!v(a))
|
|
796
|
-
return null;
|
|
797
|
-
if (an(a)) {
|
|
798
|
-
n.add(a);
|
|
799
|
-
for (var w = C(a.childNodes), E = 0; E < w.length; E += 1) {
|
|
800
|
-
var T = w[E];
|
|
801
|
-
if (un(T))
|
|
802
|
-
return O(T, {
|
|
803
|
-
isEmbeddedInLabel: !1,
|
|
804
|
-
isReferenced: !1,
|
|
805
|
-
recursion: !1
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
} else if (rn(a)) {
|
|
809
|
-
n.add(a);
|
|
810
|
-
for (var $ = C(a.childNodes), I = 0; I < $.length; I += 1) {
|
|
811
|
-
var D = $[I];
|
|
812
|
-
if (je(D))
|
|
813
|
-
return O(D, {
|
|
814
|
-
isEmbeddedInLabel: !1,
|
|
815
|
-
isReferenced: !1,
|
|
816
|
-
recursion: !1
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
} else if (fn(a)) {
|
|
820
|
-
n.add(a);
|
|
821
|
-
for (var l = C(a.childNodes), u = 0; u < l.length; u += 1) {
|
|
822
|
-
var d = l[u];
|
|
823
|
-
if (dn(d))
|
|
824
|
-
return d.textContent;
|
|
825
|
-
}
|
|
826
|
-
return null;
|
|
827
|
-
} else if (A(a) === "img" || A(a) === "area") {
|
|
828
|
-
var p = H(a, "alt");
|
|
829
|
-
if (p !== null)
|
|
830
|
-
return p;
|
|
831
|
-
} else if (tn(a)) {
|
|
832
|
-
var g = H(a, "label");
|
|
833
|
-
if (g !== null)
|
|
834
|
-
return g;
|
|
835
|
-
}
|
|
836
|
-
if (G(a) && (a.type === "button" || a.type === "submit" || a.type === "reset")) {
|
|
837
|
-
var x = H(a, "value");
|
|
838
|
-
if (x !== null)
|
|
839
|
-
return x;
|
|
840
|
-
if (a.type === "submit")
|
|
841
|
-
return "Submit";
|
|
842
|
-
if (a.type === "reset")
|
|
843
|
-
return "Reset";
|
|
844
|
-
}
|
|
845
|
-
var B = Nn(a);
|
|
846
|
-
if (B !== null && B.length !== 0)
|
|
847
|
-
return n.add(a), C(B).map(function(X) {
|
|
848
|
-
return O(X, {
|
|
849
|
-
isEmbeddedInLabel: !0,
|
|
850
|
-
isReferenced: !1,
|
|
851
|
-
recursion: !0
|
|
852
|
-
});
|
|
853
|
-
}).filter(function(X) {
|
|
854
|
-
return X.length > 0;
|
|
855
|
-
}).join(" ");
|
|
856
|
-
if (G(a) && a.type === "image") {
|
|
857
|
-
var V = H(a, "alt");
|
|
858
|
-
if (V !== null)
|
|
859
|
-
return V;
|
|
860
|
-
var ge = H(a, "title");
|
|
861
|
-
return ge !== null ? ge : "Submit Query";
|
|
862
|
-
}
|
|
863
|
-
if (P(a, ["button"])) {
|
|
864
|
-
var me = y(a, {
|
|
865
|
-
isEmbeddedInLabel: !1
|
|
866
|
-
});
|
|
867
|
-
if (me !== "")
|
|
868
|
-
return me;
|
|
869
|
-
}
|
|
870
|
-
return null;
|
|
871
|
-
}
|
|
872
|
-
function O(a, w) {
|
|
873
|
-
if (n.has(a))
|
|
874
|
-
return "";
|
|
875
|
-
if (!L && hn(a, b) && !w.isReferenced)
|
|
876
|
-
return n.add(a), "";
|
|
877
|
-
var E = v(a) ? a.getAttributeNode("aria-labelledby") : null, T = E !== null && !n.has(E) ? W(a, "aria-labelledby") : [];
|
|
878
|
-
if (s === "name" && !w.isReferenced && T.length > 0)
|
|
879
|
-
return n.add(E), T.map(function(p) {
|
|
880
|
-
return O(p, {
|
|
881
|
-
isEmbeddedInLabel: w.isEmbeddedInLabel,
|
|
882
|
-
isReferenced: !0,
|
|
883
|
-
// this isn't recursion as specified, otherwise we would skip
|
|
884
|
-
// `aria-label` in
|
|
885
|
-
// <input id="myself" aria-label="foo" aria-labelledby="myself"
|
|
886
|
-
recursion: !1
|
|
887
|
-
});
|
|
888
|
-
}).join(" ");
|
|
889
|
-
var $ = w.recursion && gn(a) && s === "name";
|
|
890
|
-
if (!$) {
|
|
891
|
-
var I = (v(a) && a.getAttribute("aria-label") || "").trim();
|
|
892
|
-
if (I !== "" && s === "name")
|
|
893
|
-
return n.add(a), I;
|
|
894
|
-
if (!bn(a)) {
|
|
895
|
-
var D = k(a);
|
|
896
|
-
if (D !== null)
|
|
897
|
-
return n.add(a), D;
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
if (P(a, ["menu"]))
|
|
901
|
-
return n.add(a), "";
|
|
902
|
-
if ($ || w.isEmbeddedInLabel || w.isReferenced) {
|
|
903
|
-
if (P(a, ["combobox", "listbox"])) {
|
|
904
|
-
n.add(a);
|
|
905
|
-
var l = mn(a);
|
|
906
|
-
return l.length === 0 ? G(a) ? a.value : "" : C(l).map(function(p) {
|
|
907
|
-
return O(p, {
|
|
908
|
-
isEmbeddedInLabel: w.isEmbeddedInLabel,
|
|
909
|
-
isReferenced: !1,
|
|
910
|
-
recursion: !0
|
|
911
|
-
});
|
|
912
|
-
}).join(" ");
|
|
913
|
-
}
|
|
914
|
-
if (_e(a, "range"))
|
|
915
|
-
return n.add(a), a.hasAttribute("aria-valuetext") ? a.getAttribute("aria-valuetext") : a.hasAttribute("aria-valuenow") ? a.getAttribute("aria-valuenow") : a.getAttribute("value") || "";
|
|
916
|
-
if (P(a, ["textbox"]))
|
|
917
|
-
return n.add(a), wn(a);
|
|
918
|
-
}
|
|
919
|
-
if (yn(a) || v(a) && w.isReferenced || vn(a) || En()) {
|
|
920
|
-
var u = y(a, {
|
|
921
|
-
isEmbeddedInLabel: w.isEmbeddedInLabel
|
|
922
|
-
});
|
|
923
|
-
if (u !== "")
|
|
924
|
-
return n.add(a), u;
|
|
925
|
-
}
|
|
926
|
-
if (a.nodeType === a.TEXT_NODE)
|
|
927
|
-
return n.add(a), a.textContent || "";
|
|
928
|
-
if (w.recursion)
|
|
929
|
-
return n.add(a), y(a, {
|
|
930
|
-
isEmbeddedInLabel: w.isEmbeddedInLabel
|
|
931
|
-
});
|
|
932
|
-
var d = F(a);
|
|
933
|
-
return d !== null ? (n.add(a), d) : (n.add(a), "");
|
|
934
|
-
}
|
|
935
|
-
return pn(O(e, {
|
|
936
|
-
isEmbeddedInLabel: !1,
|
|
937
|
-
// by spec computeAccessibleDescription starts with the referenced elements as roots
|
|
938
|
-
isReferenced: s === "description",
|
|
939
|
-
recursion: !1
|
|
940
|
-
}));
|
|
941
|
-
}
|
|
942
|
-
function q(e) {
|
|
943
|
-
"@babel/helpers - typeof";
|
|
944
|
-
return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
945
|
-
return typeof t;
|
|
946
|
-
} : function(t) {
|
|
947
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
948
|
-
}, q(e);
|
|
949
|
-
}
|
|
950
|
-
function Re(e, t) {
|
|
951
|
-
var n = Object.keys(e);
|
|
952
|
-
if (Object.getOwnPropertySymbols) {
|
|
953
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
954
|
-
t && (r = r.filter(function(i) {
|
|
955
|
-
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
956
|
-
})), n.push.apply(n, r);
|
|
957
|
-
}
|
|
958
|
-
return n;
|
|
959
|
-
}
|
|
960
|
-
function $e(e) {
|
|
961
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
962
|
-
var n = arguments[t] != null ? arguments[t] : {};
|
|
963
|
-
t % 2 ? Re(Object(n), !0).forEach(function(r) {
|
|
964
|
-
An(e, r, n[r]);
|
|
965
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Re(Object(n)).forEach(function(r) {
|
|
966
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
967
|
-
});
|
|
968
|
-
}
|
|
969
|
-
return e;
|
|
970
|
-
}
|
|
971
|
-
function An(e, t, n) {
|
|
972
|
-
return t = Rn(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
973
|
-
}
|
|
974
|
-
function Rn(e) {
|
|
975
|
-
var t = $n(e, "string");
|
|
976
|
-
return q(t) === "symbol" ? t : String(t);
|
|
977
|
-
}
|
|
978
|
-
function $n(e, t) {
|
|
979
|
-
if (q(e) !== "object" || e === null) return e;
|
|
980
|
-
var n = e[Symbol.toPrimitive];
|
|
981
|
-
if (n !== void 0) {
|
|
982
|
-
var r = n.call(e, t);
|
|
983
|
-
if (q(r) !== "object") return r;
|
|
984
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
985
|
-
}
|
|
986
|
-
return (t === "string" ? String : Number)(e);
|
|
987
|
-
}
|
|
988
|
-
function Cn(e) {
|
|
989
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = W(e, "aria-describedby").map(function(s) {
|
|
990
|
-
return Ue(s, $e($e({}, t), {}, {
|
|
991
|
-
compute: "description"
|
|
992
|
-
}));
|
|
993
|
-
}).join(" ");
|
|
994
|
-
if (n === "") {
|
|
995
|
-
var r = e.getAttribute("aria-description");
|
|
996
|
-
n = r === null ? "" : r;
|
|
997
|
-
}
|
|
998
|
-
if (n === "") {
|
|
999
|
-
var i = e.getAttribute("title");
|
|
1000
|
-
n = i === null ? "" : i;
|
|
1001
|
-
}
|
|
1002
|
-
return n;
|
|
1003
|
-
}
|
|
1004
|
-
function On(e) {
|
|
1005
|
-
return P(e, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript", "superscript"]);
|
|
1006
|
-
}
|
|
1007
|
-
function In(e) {
|
|
1008
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1009
|
-
return On(e) ? "" : Ue(e, t);
|
|
1010
|
-
}
|
|
1011
|
-
var U = { exports: {} }, Ce;
|
|
1012
|
-
function Hn() {
|
|
1013
|
-
if (Ce) return U.exports;
|
|
1014
|
-
Ce = 1;
|
|
1015
|
-
var e = String, t = function() {
|
|
1016
|
-
return { isColorSupported: !1, reset: e, bold: e, dim: e, italic: e, underline: e, inverse: e, hidden: e, strikethrough: e, black: e, red: e, green: e, yellow: e, blue: e, magenta: e, cyan: e, white: e, gray: e, bgBlack: e, bgRed: e, bgGreen: e, bgYellow: e, bgBlue: e, bgMagenta: e, bgCyan: e, bgWhite: e, blackBright: e, redBright: e, greenBright: e, yellowBright: e, blueBright: e, magentaBright: e, cyanBright: e, whiteBright: e, bgBlackBright: e, bgRedBright: e, bgGreenBright: e, bgYellowBright: e, bgBlueBright: e, bgMagentaBright: e, bgCyanBright: e, bgWhiteBright: e };
|
|
1017
|
-
};
|
|
1018
|
-
return U.exports = t(), U.exports.createColors = t, U.exports;
|
|
1019
|
-
}
|
|
1020
|
-
var Tn = /* @__PURE__ */ Hn();
|
|
1021
|
-
const Dn = /* @__PURE__ */ de(Tn);
|
|
1022
|
-
var z = { exports: {} };
|
|
1023
|
-
var Bn = z.exports, Oe;
|
|
1024
|
-
function Pn() {
|
|
1025
|
-
return Oe || (Oe = 1, (function(e, t) {
|
|
1026
|
-
(function(n, r) {
|
|
1027
|
-
e.exports = r(n);
|
|
1028
|
-
})(typeof be < "u" ? be : Bn, function(n) {
|
|
1029
|
-
if (n.CSS && n.CSS.escape)
|
|
1030
|
-
return n.CSS.escape;
|
|
1031
|
-
var r = function(i) {
|
|
1032
|
-
if (arguments.length == 0)
|
|
1033
|
-
throw new TypeError("`CSS.escape` requires an argument.");
|
|
1034
|
-
for (var s = String(i), o = s.length, f = -1, c, b = "", h = s.charCodeAt(0); ++f < o; ) {
|
|
1035
|
-
if (c = s.charCodeAt(f), c == 0) {
|
|
1036
|
-
b += "�";
|
|
1037
|
-
continue;
|
|
1038
|
-
}
|
|
1039
|
-
if (
|
|
1040
|
-
// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
|
|
1041
|
-
// U+007F, […]
|
|
1042
|
-
c >= 1 && c <= 31 || c == 127 || // If the character is the first character and is in the range [0-9]
|
|
1043
|
-
// (U+0030 to U+0039), […]
|
|
1044
|
-
f == 0 && c >= 48 && c <= 57 || // If the character is the second character and is in the range [0-9]
|
|
1045
|
-
// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
|
|
1046
|
-
f == 1 && c >= 48 && c <= 57 && h == 45
|
|
1047
|
-
) {
|
|
1048
|
-
b += "\\" + c.toString(16) + " ";
|
|
1049
|
-
continue;
|
|
1050
|
-
}
|
|
1051
|
-
if (
|
|
1052
|
-
// If the character is the first character and is a `-` (U+002D), and
|
|
1053
|
-
// there is no second character, […]
|
|
1054
|
-
f == 0 && o == 1 && c == 45
|
|
1055
|
-
) {
|
|
1056
|
-
b += "\\" + s.charAt(f);
|
|
1057
|
-
continue;
|
|
1058
|
-
}
|
|
1059
|
-
if (c >= 128 || c == 45 || c == 95 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122) {
|
|
1060
|
-
b += s.charAt(f);
|
|
1061
|
-
continue;
|
|
1062
|
-
}
|
|
1063
|
-
b += "\\" + s.charAt(f);
|
|
1064
|
-
}
|
|
1065
|
-
return b;
|
|
1066
|
-
};
|
|
1067
|
-
return n.CSS || (n.CSS = {}), n.CSS.escape = r, r;
|
|
1068
|
-
});
|
|
1069
|
-
})(z)), z.exports;
|
|
1070
|
-
}
|
|
1071
|
-
var kn = Pn();
|
|
1072
|
-
const Mn = /* @__PURE__ */ de(kn);
|
|
1073
|
-
class Ge extends Error {
|
|
1074
|
-
constructor(t, n, r, i) {
|
|
1075
|
-
super(), Error.captureStackTrace && Error.captureStackTrace(this, r);
|
|
1076
|
-
let s = "";
|
|
1077
|
-
try {
|
|
1078
|
-
s = i.utils.printWithType(
|
|
1079
|
-
"Received",
|
|
1080
|
-
n,
|
|
1081
|
-
i.utils.printReceived
|
|
1082
|
-
);
|
|
1083
|
-
} catch {
|
|
1084
|
-
}
|
|
1085
|
-
this.message = [
|
|
1086
|
-
i.utils.matcherHint(
|
|
1087
|
-
`${i.isNot ? ".not" : ""}.${r.name}`,
|
|
1088
|
-
"received",
|
|
1089
|
-
""
|
|
1090
|
-
),
|
|
1091
|
-
"",
|
|
1092
|
-
// eslint-disable-next-line new-cap
|
|
1093
|
-
`${i.utils.RECEIVED_COLOR(
|
|
1094
|
-
"received"
|
|
1095
|
-
)} value must ${t}.`,
|
|
1096
|
-
s
|
|
1097
|
-
].join(`
|
|
1098
|
-
`);
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
class Ie extends Ge {
|
|
1102
|
-
constructor(...t) {
|
|
1103
|
-
super("be an HTMLElement or an SVGElement", ...t);
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
class He extends Ge {
|
|
1107
|
-
constructor(...t) {
|
|
1108
|
-
super("be a Node", ...t);
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
function ze(e, t, ...n) {
|
|
1112
|
-
if (!e || !e.ownerDocument || !e.ownerDocument.defaultView)
|
|
1113
|
-
throw new t(e, ...n);
|
|
1114
|
-
}
|
|
1115
|
-
function Ln(e, ...t) {
|
|
1116
|
-
ze(e, He, ...t);
|
|
1117
|
-
const n = e.ownerDocument.defaultView;
|
|
1118
|
-
if (!(e instanceof n.Node))
|
|
1119
|
-
throw new He(e, ...t);
|
|
1120
|
-
}
|
|
1121
|
-
function m(e, ...t) {
|
|
1122
|
-
ze(e, Ie, ...t);
|
|
1123
|
-
const n = e.ownerDocument.defaultView;
|
|
1124
|
-
if (!(e instanceof n.HTMLElement) && !(e instanceof n.SVGElement))
|
|
1125
|
-
throw new Ie(e, ...t);
|
|
1126
|
-
}
|
|
1127
|
-
class Vn extends Error {
|
|
1128
|
-
constructor(t, n, r) {
|
|
1129
|
-
super(), Error.captureStackTrace && Error.captureStackTrace(this, n), this.message = [
|
|
1130
|
-
t.message,
|
|
1131
|
-
"",
|
|
1132
|
-
// eslint-disable-next-line new-cap
|
|
1133
|
-
r.utils.RECEIVED_COLOR("Failing css:"),
|
|
1134
|
-
// eslint-disable-next-line new-cap
|
|
1135
|
-
r.utils.RECEIVED_COLOR(`${t.css}`)
|
|
1136
|
-
].join(`
|
|
1137
|
-
`);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
function jn(e, ...t) {
|
|
1141
|
-
const n = kt(`selector { ${e} }`, { silent: !0 }).stylesheet;
|
|
1142
|
-
if (n.parsingErrors && n.parsingErrors.length > 0) {
|
|
1143
|
-
const { reason: i, line: s } = n.parsingErrors[0];
|
|
1144
|
-
throw new Vn(
|
|
1145
|
-
{
|
|
1146
|
-
css: e,
|
|
1147
|
-
message: `Syntax error parsing expected css: ${i} on line: ${s}`
|
|
1148
|
-
},
|
|
1149
|
-
...t
|
|
1150
|
-
);
|
|
1151
|
-
}
|
|
1152
|
-
return n.rules[0].declarations.filter((i) => i.type === "declaration").reduce(
|
|
1153
|
-
(i, { property: s, value: o }) => Object.assign(i, { [s]: o }),
|
|
1154
|
-
{}
|
|
1155
|
-
);
|
|
1156
|
-
}
|
|
1157
|
-
function Te(e, t) {
|
|
1158
|
-
return typeof t == "string" ? t : e.utils.stringify(t);
|
|
1159
|
-
}
|
|
1160
|
-
function S(e, t, n, r, i, s) {
|
|
1161
|
-
return [
|
|
1162
|
-
`${t}
|
|
1163
|
-
`,
|
|
1164
|
-
// eslint-disable-next-line new-cap
|
|
1165
|
-
`${n}:
|
|
1166
|
-
${e.utils.EXPECTED_COLOR(
|
|
1167
|
-
xe(Te(e, r), 2)
|
|
1168
|
-
)}`,
|
|
1169
|
-
// eslint-disable-next-line new-cap
|
|
1170
|
-
`${i}:
|
|
1171
|
-
${e.utils.RECEIVED_COLOR(
|
|
1172
|
-
xe(Te(e, s), 2)
|
|
1173
|
-
)}`
|
|
1174
|
-
].join(`
|
|
1175
|
-
`);
|
|
1176
|
-
}
|
|
1177
|
-
function _n(e, t) {
|
|
1178
|
-
return t instanceof RegExp ? t.test(e) : e.includes(String(t));
|
|
1179
|
-
}
|
|
1180
|
-
function Y(e, t) {
|
|
1181
|
-
console.warn(
|
|
1182
|
-
`Warning: ${e} has been deprecated and will be removed in future updates.`,
|
|
1183
|
-
t
|
|
1184
|
-
);
|
|
1185
|
-
}
|
|
1186
|
-
function K(e) {
|
|
1187
|
-
return e.replace(/\s+/g, " ").trim();
|
|
1188
|
-
}
|
|
1189
|
-
function M(e) {
|
|
1190
|
-
return e.tagName && e.tagName.toLowerCase();
|
|
1191
|
-
}
|
|
1192
|
-
function qn({ multiple: e, options: t }) {
|
|
1193
|
-
const n = [...t].filter((r) => r.selected);
|
|
1194
|
-
if (e)
|
|
1195
|
-
return [...n].map((r) => r.value);
|
|
1196
|
-
if (n.length !== 0)
|
|
1197
|
-
return n[0].value;
|
|
1198
|
-
}
|
|
1199
|
-
function Fn(e) {
|
|
1200
|
-
switch (e.type) {
|
|
1201
|
-
case "number":
|
|
1202
|
-
return e.value === "" ? null : Number(e.value);
|
|
1203
|
-
case "checkbox":
|
|
1204
|
-
return e.checked;
|
|
1205
|
-
default:
|
|
1206
|
-
return e.value;
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
const Un = ["meter", "progressbar", "slider", "spinbutton"];
|
|
1210
|
-
function Gn(e) {
|
|
1211
|
-
if (Un.includes(e.getAttribute("role")))
|
|
1212
|
-
return Number(e.getAttribute("aria-valuenow"));
|
|
1213
|
-
}
|
|
1214
|
-
function We(e) {
|
|
1215
|
-
if (e)
|
|
1216
|
-
switch (e.tagName.toLowerCase()) {
|
|
1217
|
-
case "input":
|
|
1218
|
-
return Fn(e);
|
|
1219
|
-
case "select":
|
|
1220
|
-
return qn(e);
|
|
1221
|
-
default:
|
|
1222
|
-
return e.value ?? Gn(e);
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
function zn(e, { wordConnector: t = ", ", lastWordConnector: n = " and " } = {}) {
|
|
1226
|
-
return [e.slice(0, -1).join(t), e[e.length - 1]].join(
|
|
1227
|
-
e.length > 1 ? n : ""
|
|
1228
|
-
);
|
|
1229
|
-
}
|
|
1230
|
-
function he(e, t) {
|
|
1231
|
-
return Array.isArray(e) && Array.isArray(t) ? [...new Set(e)].every((n) => new Set(t).has(n)) : e === t;
|
|
1232
|
-
}
|
|
1233
|
-
function se(e, t) {
|
|
1234
|
-
return Y(
|
|
1235
|
-
"toBeInTheDOM",
|
|
1236
|
-
"Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."
|
|
1237
|
-
), e && m(e, se, this), t && m(t, se, this), {
|
|
1238
|
-
pass: t ? t.contains(e) : !!e,
|
|
1239
|
-
message: () => [
|
|
1240
|
-
this.utils.matcherHint(
|
|
1241
|
-
`${this.isNot ? ".not" : ""}.toBeInTheDOM`,
|
|
1242
|
-
"element",
|
|
1243
|
-
""
|
|
1244
|
-
),
|
|
1245
|
-
"",
|
|
1246
|
-
"Received:",
|
|
1247
|
-
` ${this.utils.printReceived(
|
|
1248
|
-
e && e.cloneNode(!1)
|
|
1249
|
-
)}`
|
|
1250
|
-
].join(`
|
|
1251
|
-
`)
|
|
1252
|
-
};
|
|
1253
|
-
}
|
|
1254
|
-
function Ye(e) {
|
|
1255
|
-
(e !== null || !this.isNot) && m(e, Ye, this);
|
|
1256
|
-
const t = e === null ? !1 : e.ownerDocument === e.getRootNode({ composed: !0 }), n = () => `expected document not to contain element, found ${this.utils.stringify(
|
|
1257
|
-
e.cloneNode(!0)
|
|
1258
|
-
)} instead`, r = () => "element could not be found in the document";
|
|
1259
|
-
return {
|
|
1260
|
-
pass: t,
|
|
1261
|
-
message: () => [
|
|
1262
|
-
this.utils.matcherHint(
|
|
1263
|
-
`${this.isNot ? ".not" : ""}.toBeInTheDocument`,
|
|
1264
|
-
"element",
|
|
1265
|
-
""
|
|
1266
|
-
),
|
|
1267
|
-
"",
|
|
1268
|
-
// eslint-disable-next-line new-cap
|
|
1269
|
-
this.utils.RECEIVED_COLOR(this.isNot ? n() : r())
|
|
1270
|
-
].join(`
|
|
1271
|
-
`)
|
|
1272
|
-
};
|
|
1273
|
-
}
|
|
1274
|
-
function Ke(e) {
|
|
1275
|
-
return Y(
|
|
1276
|
-
"toBeEmpty",
|
|
1277
|
-
"Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."
|
|
1278
|
-
), m(e, Ke, this), {
|
|
1279
|
-
pass: e.innerHTML === "",
|
|
1280
|
-
message: () => [
|
|
1281
|
-
this.utils.matcherHint(
|
|
1282
|
-
`${this.isNot ? ".not" : ""}.toBeEmpty`,
|
|
1283
|
-
"element",
|
|
1284
|
-
""
|
|
1285
|
-
),
|
|
1286
|
-
"",
|
|
1287
|
-
"Received:",
|
|
1288
|
-
` ${this.utils.printReceived(e.innerHTML)}`
|
|
1289
|
-
].join(`
|
|
1290
|
-
`)
|
|
1291
|
-
};
|
|
1292
|
-
}
|
|
1293
|
-
function Xe(e) {
|
|
1294
|
-
return m(e, Xe, this), {
|
|
1295
|
-
pass: Wn(e),
|
|
1296
|
-
message: () => [
|
|
1297
|
-
this.utils.matcherHint(
|
|
1298
|
-
`${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`,
|
|
1299
|
-
"element",
|
|
1300
|
-
""
|
|
1301
|
-
),
|
|
1302
|
-
"",
|
|
1303
|
-
"Received:",
|
|
1304
|
-
` ${this.utils.printReceived(e.innerHTML)}`
|
|
1305
|
-
].join(`
|
|
1306
|
-
`)
|
|
1307
|
-
};
|
|
1308
|
-
}
|
|
1309
|
-
function Wn(e) {
|
|
1310
|
-
return [...e.childNodes].filter((n) => n.nodeType !== 8).length === 0;
|
|
1311
|
-
}
|
|
1312
|
-
function oe(e, t) {
|
|
1313
|
-
return m(e, oe, this), t !== null && m(t, oe, this), {
|
|
1314
|
-
pass: e.contains(t),
|
|
1315
|
-
message: () => [
|
|
1316
|
-
this.utils.matcherHint(
|
|
1317
|
-
`${this.isNot ? ".not" : ""}.toContainElement`,
|
|
1318
|
-
"element",
|
|
1319
|
-
"element"
|
|
1320
|
-
),
|
|
1321
|
-
"",
|
|
1322
|
-
// eslint-disable-next-line new-cap
|
|
1323
|
-
this.utils.RECEIVED_COLOR(`${this.utils.stringify(
|
|
1324
|
-
e.cloneNode(!1)
|
|
1325
|
-
)} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(t && t.cloneNode(!1))}
|
|
1326
|
-
`)
|
|
1327
|
-
].join(`
|
|
1328
|
-
`)
|
|
1329
|
-
};
|
|
1330
|
-
}
|
|
1331
|
-
function Yn(e, t) {
|
|
1332
|
-
const n = e.ownerDocument.createElement("div");
|
|
1333
|
-
return n.innerHTML = t, n.innerHTML;
|
|
1334
|
-
}
|
|
1335
|
-
function Qe(e, t) {
|
|
1336
|
-
if (m(e, Qe, this), typeof t != "string")
|
|
1337
|
-
throw new Error(`.toContainHTML() expects a string value, got ${t}`);
|
|
1338
|
-
return {
|
|
1339
|
-
pass: e.outerHTML.includes(Yn(e, t)),
|
|
1340
|
-
message: () => [
|
|
1341
|
-
this.utils.matcherHint(
|
|
1342
|
-
`${this.isNot ? ".not" : ""}.toContainHTML`,
|
|
1343
|
-
"element",
|
|
1344
|
-
""
|
|
1345
|
-
),
|
|
1346
|
-
"Expected:",
|
|
1347
|
-
// eslint-disable-next-line new-cap
|
|
1348
|
-
` ${this.utils.EXPECTED_COLOR(t)}`,
|
|
1349
|
-
"Received:",
|
|
1350
|
-
` ${this.utils.printReceived(e.cloneNode(!0))}`
|
|
1351
|
-
].join(`
|
|
1352
|
-
`)
|
|
1353
|
-
};
|
|
1354
|
-
}
|
|
1355
|
-
function Je(e, t, n = { normalizeWhitespace: !0 }) {
|
|
1356
|
-
Ln(e, Je, this);
|
|
1357
|
-
const r = n.normalizeWhitespace ? K(e.textContent) : e.textContent.replace(/\u00a0/g, " "), i = r !== "" && t === "";
|
|
1358
|
-
return {
|
|
1359
|
-
pass: !i && _n(r, t),
|
|
1360
|
-
message: () => {
|
|
1361
|
-
const s = this.isNot ? "not to" : "to";
|
|
1362
|
-
return S(
|
|
1363
|
-
this,
|
|
1364
|
-
this.utils.matcherHint(
|
|
1365
|
-
`${this.isNot ? ".not" : ""}.toHaveTextContent`,
|
|
1366
|
-
"element",
|
|
1367
|
-
""
|
|
1368
|
-
),
|
|
1369
|
-
i ? "Checking with empty string will always match, use .toBeEmptyDOMElement() instead" : `Expected element ${s} have text content`,
|
|
1370
|
-
t,
|
|
1371
|
-
"Received",
|
|
1372
|
-
r
|
|
1373
|
-
);
|
|
1374
|
-
}
|
|
1375
|
-
};
|
|
1376
|
-
}
|
|
1377
|
-
function ae(e, t) {
|
|
1378
|
-
m(e, ae, this);
|
|
1379
|
-
const n = Cn(e), r = arguments.length === 1;
|
|
1380
|
-
let i = !1;
|
|
1381
|
-
return r ? i = n !== "" : i = t instanceof RegExp ? t.test(n) : this.equals(
|
|
1382
|
-
n,
|
|
1383
|
-
t
|
|
1384
|
-
), {
|
|
1385
|
-
pass: i,
|
|
1386
|
-
message: () => {
|
|
1387
|
-
const s = this.isNot ? "not to" : "to";
|
|
1388
|
-
return S(
|
|
1389
|
-
this,
|
|
1390
|
-
this.utils.matcherHint(
|
|
1391
|
-
`${this.isNot ? ".not" : ""}.${ae.name}`,
|
|
1392
|
-
"element",
|
|
1393
|
-
""
|
|
1394
|
-
),
|
|
1395
|
-
`Expected element ${s} have accessible description`,
|
|
1396
|
-
t,
|
|
1397
|
-
"Received",
|
|
1398
|
-
n
|
|
1399
|
-
);
|
|
1400
|
-
}
|
|
1401
|
-
};
|
|
1402
|
-
}
|
|
1403
|
-
const j = "aria-invalid", Kn = ["false"];
|
|
1404
|
-
function Ze(e, t) {
|
|
1405
|
-
m(e, Ze, this);
|
|
1406
|
-
const n = this.isNot ? "not to" : "to", r = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", i = e.getAttribute("aria-errormessage");
|
|
1407
|
-
if (!!i && /\s+/.test(i))
|
|
1408
|
-
return {
|
|
1409
|
-
pass: !1,
|
|
1410
|
-
message: () => S(
|
|
1411
|
-
this,
|
|
1412
|
-
this.utils.matcherHint(r, "element"),
|
|
1413
|
-
"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID",
|
|
1414
|
-
"",
|
|
1415
|
-
"Received",
|
|
1416
|
-
`aria-errormessage="${i}"`
|
|
1417
|
-
)
|
|
1418
|
-
};
|
|
1419
|
-
const o = e.getAttribute(j);
|
|
1420
|
-
if (!e.hasAttribute(j) || Kn.includes(o))
|
|
1421
|
-
return {
|
|
1422
|
-
pass: !1,
|
|
1423
|
-
message: () => S(
|
|
1424
|
-
this,
|
|
1425
|
-
this.utils.matcherHint(r, "element"),
|
|
1426
|
-
"Expected element to be marked as invalid with attribute",
|
|
1427
|
-
`${j}="${String(!0)}"`,
|
|
1428
|
-
"Received",
|
|
1429
|
-
e.hasAttribute("aria-invalid") ? `${j}="${e.getAttribute(j)}` : null
|
|
1430
|
-
)
|
|
1431
|
-
};
|
|
1432
|
-
const c = K(
|
|
1433
|
-
e.ownerDocument.getElementById(i)?.textContent ?? ""
|
|
1434
|
-
);
|
|
1435
|
-
return {
|
|
1436
|
-
pass: t === void 0 ? !!c : t instanceof RegExp ? t.test(c) : this.equals(c, t),
|
|
1437
|
-
message: () => S(
|
|
1438
|
-
this,
|
|
1439
|
-
this.utils.matcherHint(r, "element"),
|
|
1440
|
-
`Expected element ${n} have accessible error message`,
|
|
1441
|
-
t ?? "",
|
|
1442
|
-
"Received",
|
|
1443
|
-
c
|
|
1444
|
-
)
|
|
1445
|
-
};
|
|
1446
|
-
}
|
|
1447
|
-
const Xn = Zn(pe.elementRoles);
|
|
1448
|
-
function ue(e, t) {
|
|
1449
|
-
m(e, ue, this);
|
|
1450
|
-
const n = Qn(e);
|
|
1451
|
-
return {
|
|
1452
|
-
pass: n.some((i) => i === t),
|
|
1453
|
-
message: () => {
|
|
1454
|
-
const i = this.isNot ? "not to" : "to";
|
|
1455
|
-
return S(
|
|
1456
|
-
this,
|
|
1457
|
-
this.utils.matcherHint(
|
|
1458
|
-
`${this.isNot ? ".not" : ""}.${ue.name}`,
|
|
1459
|
-
"element",
|
|
1460
|
-
""
|
|
1461
|
-
),
|
|
1462
|
-
`Expected element ${i} have role`,
|
|
1463
|
-
t,
|
|
1464
|
-
"Received",
|
|
1465
|
-
n.join(", ")
|
|
1466
|
-
);
|
|
1467
|
-
}
|
|
1468
|
-
};
|
|
1469
|
-
}
|
|
1470
|
-
function Qn(e) {
|
|
1471
|
-
return e.hasAttribute("role") ? e.getAttribute("role").split(" ").filter(Boolean) : Jn(e);
|
|
1472
|
-
}
|
|
1473
|
-
function Jn(e) {
|
|
1474
|
-
for (const { match: t, roles: n } of Xn)
|
|
1475
|
-
if (t(e))
|
|
1476
|
-
return [...n];
|
|
1477
|
-
return [];
|
|
1478
|
-
}
|
|
1479
|
-
function Zn(e) {
|
|
1480
|
-
function t({ name: o, attributes: f }) {
|
|
1481
|
-
return `${o}${f.map(({ name: c, value: b, constraints: h = [] }) => h.indexOf("undefined") !== -1 ? `:not([${c}])` : b ? `[${c}="${b}"]` : `[${c}]`).join("")}`;
|
|
1482
|
-
}
|
|
1483
|
-
function n({ attributes: o = [] }) {
|
|
1484
|
-
return o.length;
|
|
1485
|
-
}
|
|
1486
|
-
function r({ specificity: o }, { specificity: f }) {
|
|
1487
|
-
return f - o;
|
|
1488
|
-
}
|
|
1489
|
-
function i(o) {
|
|
1490
|
-
let { attributes: f = [] } = o;
|
|
1491
|
-
const c = f.findIndex(
|
|
1492
|
-
(h) => h.value && h.name === "type" && h.value === "text"
|
|
1493
|
-
);
|
|
1494
|
-
c >= 0 && (f = [
|
|
1495
|
-
...f.slice(0, c),
|
|
1496
|
-
...f.slice(c + 1)
|
|
1497
|
-
]);
|
|
1498
|
-
const b = t({ ...o, attributes: f });
|
|
1499
|
-
return (h) => c >= 0 && h.type !== "text" ? !1 : h.matches(b);
|
|
1500
|
-
}
|
|
1501
|
-
let s = [];
|
|
1502
|
-
for (const [o, f] of e.entries())
|
|
1503
|
-
s = [
|
|
1504
|
-
...s,
|
|
1505
|
-
{
|
|
1506
|
-
match: i(o),
|
|
1507
|
-
roles: Array.from(f),
|
|
1508
|
-
specificity: n(o)
|
|
1509
|
-
}
|
|
1510
|
-
];
|
|
1511
|
-
return s.sort(r);
|
|
1512
|
-
}
|
|
1513
|
-
function ce(e, t) {
|
|
1514
|
-
m(e, ce, this);
|
|
1515
|
-
const n = In(e), r = arguments.length === 1;
|
|
1516
|
-
let i = !1;
|
|
1517
|
-
return r ? i = n !== "" : i = t instanceof RegExp ? t.test(n) : this.equals(n, t), {
|
|
1518
|
-
pass: i,
|
|
1519
|
-
message: () => {
|
|
1520
|
-
const s = this.isNot ? "not to" : "to";
|
|
1521
|
-
return S(
|
|
1522
|
-
this,
|
|
1523
|
-
this.utils.matcherHint(
|
|
1524
|
-
`${this.isNot ? ".not" : ""}.${ce.name}`,
|
|
1525
|
-
"element",
|
|
1526
|
-
""
|
|
1527
|
-
),
|
|
1528
|
-
`Expected element ${s} have accessible name`,
|
|
1529
|
-
t,
|
|
1530
|
-
"Received",
|
|
1531
|
-
n
|
|
1532
|
-
);
|
|
1533
|
-
}
|
|
1534
|
-
};
|
|
1535
|
-
}
|
|
1536
|
-
function De(e, t, n) {
|
|
1537
|
-
return n === void 0 ? t : `${t}=${e(n)}`;
|
|
1538
|
-
}
|
|
1539
|
-
function er(e, t, n) {
|
|
1540
|
-
return n === void 0 ? `element.hasAttribute(${e(t)})` : `element.getAttribute(${e(t)}) === ${e(n)}`;
|
|
1541
|
-
}
|
|
1542
|
-
function et(e, t, n) {
|
|
1543
|
-
m(e, et, this);
|
|
1544
|
-
const r = n !== void 0, i = e.hasAttribute(t), s = e.getAttribute(t);
|
|
1545
|
-
return {
|
|
1546
|
-
pass: r ? i && this.equals(s, n) : i,
|
|
1547
|
-
message: () => {
|
|
1548
|
-
const o = this.isNot ? "not to" : "to", f = i ? De(this.utils.stringify, t, s) : null, c = this.utils.matcherHint(
|
|
1549
|
-
`${this.isNot ? ".not" : ""}.toHaveAttribute`,
|
|
1550
|
-
"element",
|
|
1551
|
-
this.utils.printExpected(t),
|
|
1552
|
-
{
|
|
1553
|
-
secondArgument: r ? this.utils.printExpected(n) : void 0,
|
|
1554
|
-
comment: er(
|
|
1555
|
-
this.utils.stringify,
|
|
1556
|
-
t,
|
|
1557
|
-
n
|
|
1558
|
-
)
|
|
1559
|
-
}
|
|
1560
|
-
);
|
|
1561
|
-
return S(
|
|
1562
|
-
this,
|
|
1563
|
-
c,
|
|
1564
|
-
`Expected the element ${o} have attribute`,
|
|
1565
|
-
De(this.utils.stringify, t, n),
|
|
1566
|
-
"Received",
|
|
1567
|
-
f
|
|
1568
|
-
);
|
|
1569
|
-
}
|
|
1570
|
-
};
|
|
1571
|
-
}
|
|
1572
|
-
function tr(e) {
|
|
1573
|
-
const t = e.pop();
|
|
1574
|
-
let n, r;
|
|
1575
|
-
return typeof t == "object" && !(t instanceof RegExp) ? (n = e, r = t) : (n = e.concat(t), r = { exact: !1 }), { expectedClassNames: n, options: r };
|
|
1576
|
-
}
|
|
1577
|
-
function Be(e) {
|
|
1578
|
-
return e ? e.split(/\s+/).filter((t) => t.length > 0) : [];
|
|
1579
|
-
}
|
|
1580
|
-
function Pe(e, t) {
|
|
1581
|
-
return e.every(
|
|
1582
|
-
(n) => typeof n == "string" ? t.includes(n) : t.some((r) => n.test(r))
|
|
1583
|
-
);
|
|
1584
|
-
}
|
|
1585
|
-
function tt(e, ...t) {
|
|
1586
|
-
m(e, tt, this);
|
|
1587
|
-
const { expectedClassNames: n, options: r } = tr(t), i = Be(e.getAttribute("class")), s = n.reduce(
|
|
1588
|
-
(f, c) => f.concat(
|
|
1589
|
-
typeof c == "string" || !c ? Be(c) : c
|
|
1590
|
-
),
|
|
1591
|
-
[]
|
|
1592
|
-
), o = s.some((f) => f instanceof RegExp);
|
|
1593
|
-
if (r.exact && o)
|
|
1594
|
-
throw new Error("Exact option does not support RegExp expected class names");
|
|
1595
|
-
return r.exact ? {
|
|
1596
|
-
pass: Pe(s, i) && s.length === i.length,
|
|
1597
|
-
message: () => {
|
|
1598
|
-
const f = this.isNot ? "not to" : "to";
|
|
1599
|
-
return S(
|
|
1600
|
-
this,
|
|
1601
|
-
this.utils.matcherHint(
|
|
1602
|
-
`${this.isNot ? ".not" : ""}.toHaveClass`,
|
|
1603
|
-
"element",
|
|
1604
|
-
this.utils.printExpected(s.join(" "))
|
|
1605
|
-
),
|
|
1606
|
-
`Expected the element ${f} have EXACTLY defined classes`,
|
|
1607
|
-
s.join(" "),
|
|
1608
|
-
"Received",
|
|
1609
|
-
i.join(" ")
|
|
1610
|
-
);
|
|
1611
|
-
}
|
|
1612
|
-
} : s.length > 0 ? {
|
|
1613
|
-
pass: Pe(s, i),
|
|
1614
|
-
message: () => {
|
|
1615
|
-
const f = this.isNot ? "not to" : "to";
|
|
1616
|
-
return S(
|
|
1617
|
-
this,
|
|
1618
|
-
this.utils.matcherHint(
|
|
1619
|
-
`${this.isNot ? ".not" : ""}.toHaveClass`,
|
|
1620
|
-
"element",
|
|
1621
|
-
this.utils.printExpected(s.join(" "))
|
|
1622
|
-
),
|
|
1623
|
-
`Expected the element ${f} have class`,
|
|
1624
|
-
s.join(" "),
|
|
1625
|
-
"Received",
|
|
1626
|
-
i.join(" ")
|
|
1627
|
-
);
|
|
1628
|
-
}
|
|
1629
|
-
} : {
|
|
1630
|
-
pass: this.isNot ? i.length > 0 : !1,
|
|
1631
|
-
message: () => this.isNot ? S(
|
|
1632
|
-
this,
|
|
1633
|
-
this.utils.matcherHint(".not.toHaveClass", "element", ""),
|
|
1634
|
-
"Expected the element to have classes",
|
|
1635
|
-
"(none)",
|
|
1636
|
-
"Received",
|
|
1637
|
-
i.join(" ")
|
|
1638
|
-
) : [
|
|
1639
|
-
this.utils.matcherHint(".toHaveClass", "element"),
|
|
1640
|
-
"At least one expected class must be provided."
|
|
1641
|
-
].join(`
|
|
1642
|
-
`)
|
|
1643
|
-
};
|
|
1644
|
-
}
|
|
1645
|
-
function nr(e, t) {
|
|
1646
|
-
const n = {}, r = e.createElement("div");
|
|
1647
|
-
return Object.keys(t).forEach((i) => {
|
|
1648
|
-
r.style[i] = t[i], n[i] = r.style[i];
|
|
1649
|
-
}), n;
|
|
1650
|
-
}
|
|
1651
|
-
function rr(e, t) {
|
|
1652
|
-
return !!Object.keys(e).length && Object.entries(e).every(([n, r]) => {
|
|
1653
|
-
const i = n.startsWith("--"), s = [n];
|
|
1654
|
-
return i || s.push(n.toLowerCase()), s.some(
|
|
1655
|
-
(o) => t[o] === r || t.getPropertyValue(o) === r
|
|
1656
|
-
);
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
|
-
function ke(e) {
|
|
1660
|
-
return Object.keys(e).sort().map((t) => `${t}: ${e[t]};`).join(`
|
|
1661
|
-
`);
|
|
1662
|
-
}
|
|
1663
|
-
function ir(e, t, n) {
|
|
1664
|
-
const r = Array.from(n).filter((s) => t[s] !== void 0).reduce(
|
|
1665
|
-
(s, o) => Object.assign(s, { [o]: n.getPropertyValue(o) }),
|
|
1666
|
-
{}
|
|
1667
|
-
);
|
|
1668
|
-
return e(ke(t), ke(r)).replace(`${Dn.red("+ Received")}
|
|
1669
|
-
`, "");
|
|
1670
|
-
}
|
|
1671
|
-
function le(e, t) {
|
|
1672
|
-
m(e, le, this);
|
|
1673
|
-
const n = typeof t == "object" ? t : jn(t, le, this), { getComputedStyle: r } = e.ownerDocument.defaultView, i = nr(e.ownerDocument, n), s = r(e);
|
|
1674
|
-
return {
|
|
1675
|
-
pass: rr(i, s),
|
|
1676
|
-
message: () => {
|
|
1677
|
-
const o = `${this.isNot ? ".not" : ""}.toHaveStyle`;
|
|
1678
|
-
return [
|
|
1679
|
-
this.utils.matcherHint(o, "element", ""),
|
|
1680
|
-
ir(this.utils.diff, i, s)
|
|
1681
|
-
].join(`
|
|
1682
|
-
|
|
1683
|
-
`);
|
|
1684
|
-
}
|
|
1685
|
-
};
|
|
1686
|
-
}
|
|
1687
|
-
function nt(e) {
|
|
1688
|
-
return m(e, nt, this), {
|
|
1689
|
-
pass: e.ownerDocument.activeElement === e,
|
|
1690
|
-
message: () => [
|
|
1691
|
-
this.utils.matcherHint(
|
|
1692
|
-
`${this.isNot ? ".not" : ""}.toHaveFocus`,
|
|
1693
|
-
"element",
|
|
1694
|
-
""
|
|
1695
|
-
),
|
|
1696
|
-
"",
|
|
1697
|
-
...this.isNot ? [
|
|
1698
|
-
"Received element is focused:",
|
|
1699
|
-
` ${this.utils.printReceived(e)}`
|
|
1700
|
-
] : [
|
|
1701
|
-
"Expected element with focus:",
|
|
1702
|
-
` ${this.utils.printExpected(e)}`,
|
|
1703
|
-
"Received element with focus:",
|
|
1704
|
-
` ${this.utils.printReceived(
|
|
1705
|
-
e.ownerDocument.activeElement
|
|
1706
|
-
)}`
|
|
1707
|
-
]
|
|
1708
|
-
].join(`
|
|
1709
|
-
`)
|
|
1710
|
-
};
|
|
1711
|
-
}
|
|
1712
|
-
function sr(e) {
|
|
1713
|
-
const t = [...new Set(e.map((n) => n.type))];
|
|
1714
|
-
if (t.length !== 1)
|
|
1715
|
-
throw new Error(
|
|
1716
|
-
"Multiple form elements with the same name must be of the same type"
|
|
1717
|
-
);
|
|
1718
|
-
switch (t[0]) {
|
|
1719
|
-
case "radio": {
|
|
1720
|
-
const n = e.find((r) => r.checked);
|
|
1721
|
-
return n ? n.value : void 0;
|
|
1722
|
-
}
|
|
1723
|
-
case "checkbox":
|
|
1724
|
-
return e.filter((n) => n.checked).map((n) => n.value);
|
|
1725
|
-
default:
|
|
1726
|
-
return e.map((n) => n.value);
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
|
-
function or(e, t) {
|
|
1730
|
-
const n = [...e.querySelectorAll(`[name="${Mn(t)}"]`)];
|
|
1731
|
-
if (n.length !== 0)
|
|
1732
|
-
return n.length === 1 ? We(n[0]) : sr(n);
|
|
1733
|
-
}
|
|
1734
|
-
function ar(e) {
|
|
1735
|
-
return /\[\]$/.test(e) ? e.slice(0, -2) : e;
|
|
1736
|
-
}
|
|
1737
|
-
function ur(e) {
|
|
1738
|
-
return Array.from(e.elements).map((n) => n.name).reduce(
|
|
1739
|
-
(n, r) => ({
|
|
1740
|
-
...n,
|
|
1741
|
-
[ar(r)]: or(e, r)
|
|
1742
|
-
}),
|
|
1743
|
-
{}
|
|
1744
|
-
);
|
|
1745
|
-
}
|
|
1746
|
-
function rt(e, t) {
|
|
1747
|
-
if (m(e, rt, this), !e.elements)
|
|
1748
|
-
throw new Error("toHaveFormValues must be called on a form or a fieldset");
|
|
1749
|
-
const n = ur(e);
|
|
1750
|
-
return {
|
|
1751
|
-
pass: Object.entries(t).every(
|
|
1752
|
-
([r, i]) => he(n[r], i)
|
|
1753
|
-
),
|
|
1754
|
-
message: () => {
|
|
1755
|
-
const r = this.isNot ? "not to" : "to", i = `${this.isNot ? ".not" : ""}.toHaveFormValues`, s = Object.keys(n).filter((o) => t.hasOwnProperty(o)).reduce((o, f) => ({ ...o, [f]: n[f] }), {});
|
|
1756
|
-
return [
|
|
1757
|
-
this.utils.matcherHint(i, "element", ""),
|
|
1758
|
-
`Expected the element ${r} have form values`,
|
|
1759
|
-
this.utils.diff(t, s)
|
|
1760
|
-
].join(`
|
|
1761
|
-
|
|
1762
|
-
`);
|
|
1763
|
-
}
|
|
1764
|
-
};
|
|
1765
|
-
}
|
|
1766
|
-
function cr(e) {
|
|
1767
|
-
const { getComputedStyle: t } = e.ownerDocument.defaultView, { display: n, visibility: r, opacity: i } = t(e);
|
|
1768
|
-
return n !== "none" && r !== "hidden" && r !== "collapse" && i !== "0" && i !== 0;
|
|
1769
|
-
}
|
|
1770
|
-
function lr(e, t) {
|
|
1771
|
-
let n;
|
|
1772
|
-
return t ? n = e.nodeName === "DETAILS" && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0 : n = e.nodeName === "DETAILS" ? e.hasAttribute("open") : !0, !e.hasAttribute("hidden") && n;
|
|
1773
|
-
}
|
|
1774
|
-
function it(e, t) {
|
|
1775
|
-
return cr(e) && lr(e, t) && (!e.parentElement || it(e.parentElement, e));
|
|
1776
|
-
}
|
|
1777
|
-
function st(e) {
|
|
1778
|
-
m(e, st, this);
|
|
1779
|
-
const t = e.ownerDocument === e.getRootNode({ composed: !0 }), n = t && it(e);
|
|
1780
|
-
return {
|
|
1781
|
-
pass: n,
|
|
1782
|
-
message: () => {
|
|
1783
|
-
const r = n ? "is" : "is not";
|
|
1784
|
-
return [
|
|
1785
|
-
this.utils.matcherHint(
|
|
1786
|
-
`${this.isNot ? ".not" : ""}.toBeVisible`,
|
|
1787
|
-
"element",
|
|
1788
|
-
""
|
|
1789
|
-
),
|
|
1790
|
-
"",
|
|
1791
|
-
`Received element ${r} visible${t ? "" : " (element is not in the document)"}:`,
|
|
1792
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1793
|
-
].join(`
|
|
1794
|
-
`);
|
|
1795
|
-
}
|
|
1796
|
-
};
|
|
1797
|
-
}
|
|
1798
|
-
const fr = [
|
|
1799
|
-
"fieldset",
|
|
1800
|
-
"input",
|
|
1801
|
-
"select",
|
|
1802
|
-
"optgroup",
|
|
1803
|
-
"option",
|
|
1804
|
-
"button",
|
|
1805
|
-
"textarea"
|
|
1806
|
-
];
|
|
1807
|
-
function dr(e, t) {
|
|
1808
|
-
return M(e) === "legend" && M(t) === "fieldset" && e.isSameNode(
|
|
1809
|
-
Array.from(t.children).find((n) => M(n) === "legend")
|
|
1810
|
-
);
|
|
1811
|
-
}
|
|
1812
|
-
function pr(e, t) {
|
|
1813
|
-
return at(t) && !dr(e, t);
|
|
1814
|
-
}
|
|
1815
|
-
function hr(e) {
|
|
1816
|
-
return e.includes("-");
|
|
1817
|
-
}
|
|
1818
|
-
function ot(e) {
|
|
1819
|
-
const t = M(e);
|
|
1820
|
-
return fr.includes(t) || hr(t);
|
|
1821
|
-
}
|
|
1822
|
-
function at(e) {
|
|
1823
|
-
return ot(e) && e.hasAttribute("disabled");
|
|
1824
|
-
}
|
|
1825
|
-
function ut(e) {
|
|
1826
|
-
const t = e.parentElement;
|
|
1827
|
-
return !!t && (pr(e, t) || ut(t));
|
|
1828
|
-
}
|
|
1829
|
-
function ct(e) {
|
|
1830
|
-
return ot(e) && (at(e) || ut(e));
|
|
1831
|
-
}
|
|
1832
|
-
function lt(e) {
|
|
1833
|
-
m(e, lt, this);
|
|
1834
|
-
const t = ct(e);
|
|
1835
|
-
return {
|
|
1836
|
-
pass: t,
|
|
1837
|
-
message: () => {
|
|
1838
|
-
const n = t ? "is" : "is not";
|
|
1839
|
-
return [
|
|
1840
|
-
this.utils.matcherHint(
|
|
1841
|
-
`${this.isNot ? ".not" : ""}.toBeDisabled`,
|
|
1842
|
-
"element",
|
|
1843
|
-
""
|
|
1844
|
-
),
|
|
1845
|
-
"",
|
|
1846
|
-
`Received element ${n} disabled:`,
|
|
1847
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1848
|
-
].join(`
|
|
1849
|
-
`);
|
|
1850
|
-
}
|
|
1851
|
-
};
|
|
1852
|
-
}
|
|
1853
|
-
function ft(e) {
|
|
1854
|
-
m(e, ft, this);
|
|
1855
|
-
const t = !ct(e);
|
|
1856
|
-
return {
|
|
1857
|
-
pass: t,
|
|
1858
|
-
message: () => {
|
|
1859
|
-
const n = t ? "is" : "is not";
|
|
1860
|
-
return [
|
|
1861
|
-
this.utils.matcherHint(
|
|
1862
|
-
`${this.isNot ? ".not" : ""}.toBeEnabled`,
|
|
1863
|
-
"element",
|
|
1864
|
-
""
|
|
1865
|
-
),
|
|
1866
|
-
"",
|
|
1867
|
-
`Received element ${n} enabled:`,
|
|
1868
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1869
|
-
].join(`
|
|
1870
|
-
`);
|
|
1871
|
-
}
|
|
1872
|
-
};
|
|
1873
|
-
}
|
|
1874
|
-
const gr = ["select", "textarea"], mr = ["input", "select", "textarea"], br = [
|
|
1875
|
-
"color",
|
|
1876
|
-
"hidden",
|
|
1877
|
-
"range",
|
|
1878
|
-
"submit",
|
|
1879
|
-
"image",
|
|
1880
|
-
"reset"
|
|
1881
|
-
], vr = [
|
|
1882
|
-
"checkbox",
|
|
1883
|
-
"combobox",
|
|
1884
|
-
"gridcell",
|
|
1885
|
-
"listbox",
|
|
1886
|
-
"radiogroup",
|
|
1887
|
-
"spinbutton",
|
|
1888
|
-
"textbox",
|
|
1889
|
-
"tree"
|
|
1890
|
-
];
|
|
1891
|
-
function yr(e) {
|
|
1892
|
-
return gr.includes(M(e)) && e.hasAttribute("required");
|
|
1893
|
-
}
|
|
1894
|
-
function Er(e) {
|
|
1895
|
-
return M(e) === "input" && e.hasAttribute("required") && (e.hasAttribute("type") && !br.includes(e.getAttribute("type")) || !e.hasAttribute("type"));
|
|
1896
|
-
}
|
|
1897
|
-
function wr(e) {
|
|
1898
|
-
return e.hasAttribute("aria-required") && e.getAttribute("aria-required") === "true" && (mr.includes(M(e)) || e.hasAttribute("role") && vr.includes(e.getAttribute("role")));
|
|
1899
|
-
}
|
|
1900
|
-
function dt(e) {
|
|
1901
|
-
m(e, dt, this);
|
|
1902
|
-
const t = yr(e) || Er(e) || wr(e);
|
|
1903
|
-
return {
|
|
1904
|
-
pass: t,
|
|
1905
|
-
message: () => {
|
|
1906
|
-
const n = t ? "is" : "is not";
|
|
1907
|
-
return [
|
|
1908
|
-
this.utils.matcherHint(
|
|
1909
|
-
`${this.isNot ? ".not" : ""}.toBeRequired`,
|
|
1910
|
-
"element",
|
|
1911
|
-
""
|
|
1912
|
-
),
|
|
1913
|
-
"",
|
|
1914
|
-
`Received element ${n} required:`,
|
|
1915
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1916
|
-
].join(`
|
|
1917
|
-
`);
|
|
1918
|
-
}
|
|
1919
|
-
};
|
|
1920
|
-
}
|
|
1921
|
-
const xr = ["form", "input", "select", "textarea"];
|
|
1922
|
-
function Nr(e) {
|
|
1923
|
-
return e.hasAttribute("aria-invalid") && e.getAttribute("aria-invalid") !== "false";
|
|
1924
|
-
}
|
|
1925
|
-
function Sr(e) {
|
|
1926
|
-
return xr.includes(M(e));
|
|
1927
|
-
}
|
|
1928
|
-
function pt(e) {
|
|
1929
|
-
const t = Nr(e);
|
|
1930
|
-
return Sr(e) ? t || !e.checkValidity() : t;
|
|
1931
|
-
}
|
|
1932
|
-
function ht(e) {
|
|
1933
|
-
m(e, ht, this);
|
|
1934
|
-
const t = pt(e);
|
|
1935
|
-
return {
|
|
1936
|
-
pass: t,
|
|
1937
|
-
message: () => {
|
|
1938
|
-
const n = t ? "is" : "is not";
|
|
1939
|
-
return [
|
|
1940
|
-
this.utils.matcherHint(
|
|
1941
|
-
`${this.isNot ? ".not" : ""}.toBeInvalid`,
|
|
1942
|
-
"element",
|
|
1943
|
-
""
|
|
1944
|
-
),
|
|
1945
|
-
"",
|
|
1946
|
-
`Received element ${n} currently invalid:`,
|
|
1947
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1948
|
-
].join(`
|
|
1949
|
-
`);
|
|
1950
|
-
}
|
|
1951
|
-
};
|
|
1952
|
-
}
|
|
1953
|
-
function gt(e) {
|
|
1954
|
-
m(e, gt, this);
|
|
1955
|
-
const t = !pt(e);
|
|
1956
|
-
return {
|
|
1957
|
-
pass: t,
|
|
1958
|
-
message: () => {
|
|
1959
|
-
const n = t ? "is" : "is not";
|
|
1960
|
-
return [
|
|
1961
|
-
this.utils.matcherHint(
|
|
1962
|
-
`${this.isNot ? ".not" : ""}.toBeValid`,
|
|
1963
|
-
"element",
|
|
1964
|
-
""
|
|
1965
|
-
),
|
|
1966
|
-
"",
|
|
1967
|
-
`Received element ${n} currently valid:`,
|
|
1968
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1969
|
-
].join(`
|
|
1970
|
-
`);
|
|
1971
|
-
}
|
|
1972
|
-
};
|
|
1973
|
-
}
|
|
1974
|
-
function mt(e, t) {
|
|
1975
|
-
if (m(e, mt, this), e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type))
|
|
1976
|
-
throw new Error(
|
|
1977
|
-
"input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead"
|
|
1978
|
-
);
|
|
1979
|
-
const n = We(e), r = t !== void 0;
|
|
1980
|
-
let i = t, s = n;
|
|
1981
|
-
return t == n && t !== n && (i = `${t} (${typeof t})`, s = `${n} (${typeof n})`), {
|
|
1982
|
-
pass: r ? he(n, t) : !!n,
|
|
1983
|
-
message: () => {
|
|
1984
|
-
const o = this.isNot ? "not to" : "to", f = this.utils.matcherHint(
|
|
1985
|
-
`${this.isNot ? ".not" : ""}.toHaveValue`,
|
|
1986
|
-
"element",
|
|
1987
|
-
t
|
|
1988
|
-
);
|
|
1989
|
-
return S(
|
|
1990
|
-
this,
|
|
1991
|
-
f,
|
|
1992
|
-
`Expected the element ${o} have value`,
|
|
1993
|
-
r ? i : "(any)",
|
|
1994
|
-
"Received",
|
|
1995
|
-
s
|
|
1996
|
-
);
|
|
1997
|
-
}
|
|
1998
|
-
};
|
|
1999
|
-
}
|
|
2000
|
-
function bt(e, t) {
|
|
2001
|
-
m(e, bt, this);
|
|
2002
|
-
const n = e.tagName.toLowerCase();
|
|
2003
|
-
if (!["select", "input", "textarea"].includes(n))
|
|
2004
|
-
throw new Error(
|
|
2005
|
-
".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead."
|
|
2006
|
-
);
|
|
2007
|
-
if (n === "input" && ["radio", "checkbox"].includes(e.type))
|
|
2008
|
-
throw new Error(
|
|
2009
|
-
`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`
|
|
2010
|
-
);
|
|
2011
|
-
const r = Ar(n, e), i = Rr(t), s = i.filter(
|
|
2012
|
-
(c) => r.some(
|
|
2013
|
-
(b) => c instanceof RegExp ? c.test(b) : this.equals(b, String(c))
|
|
2014
|
-
)
|
|
2015
|
-
).length, o = s === r.length, f = s === i.length;
|
|
2016
|
-
return {
|
|
2017
|
-
pass: o && f,
|
|
2018
|
-
message: () => S(
|
|
2019
|
-
this,
|
|
2020
|
-
this.utils.matcherHint(
|
|
2021
|
-
`${this.isNot ? ".not" : ""}.toHaveDisplayValue`,
|
|
2022
|
-
"element",
|
|
2023
|
-
""
|
|
2024
|
-
),
|
|
2025
|
-
`Expected element ${this.isNot ? "not " : ""}to have display value`,
|
|
2026
|
-
t,
|
|
2027
|
-
"Received",
|
|
2028
|
-
r
|
|
2029
|
-
)
|
|
2030
|
-
};
|
|
2031
|
-
}
|
|
2032
|
-
function Ar(e, t) {
|
|
2033
|
-
return e === "select" ? Array.from(t).filter((n) => n.selected).map((n) => n.textContent) : [t.value];
|
|
2034
|
-
}
|
|
2035
|
-
function Rr(e) {
|
|
2036
|
-
return e instanceof Array ? e : [e];
|
|
2037
|
-
}
|
|
2038
|
-
function vt(e) {
|
|
2039
|
-
m(e, vt, this);
|
|
2040
|
-
const t = () => e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type), n = () => yt(e.getAttribute("role")) && ["true", "false"].includes(e.getAttribute("aria-checked"));
|
|
2041
|
-
if (!t() && !n())
|
|
2042
|
-
return {
|
|
2043
|
-
pass: !1,
|
|
2044
|
-
message: () => `only inputs with type="checkbox" or type="radio" or elements with ${$r()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`
|
|
2045
|
-
};
|
|
2046
|
-
const r = () => t() ? e.checked : e.getAttribute("aria-checked") === "true";
|
|
2047
|
-
return {
|
|
2048
|
-
pass: r(),
|
|
2049
|
-
message: () => {
|
|
2050
|
-
const i = r() ? "is" : "is not";
|
|
2051
|
-
return [
|
|
2052
|
-
this.utils.matcherHint(
|
|
2053
|
-
`${this.isNot ? ".not" : ""}.toBeChecked`,
|
|
2054
|
-
"element",
|
|
2055
|
-
""
|
|
2056
|
-
),
|
|
2057
|
-
"",
|
|
2058
|
-
`Received element ${i} checked:`,
|
|
2059
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
2060
|
-
].join(`
|
|
2061
|
-
`);
|
|
2062
|
-
}
|
|
2063
|
-
};
|
|
2064
|
-
}
|
|
2065
|
-
function $r() {
|
|
2066
|
-
return zn(
|
|
2067
|
-
Cr().map((e) => `role="${e}"`),
|
|
2068
|
-
{ lastWordConnector: " or " }
|
|
2069
|
-
);
|
|
2070
|
-
}
|
|
2071
|
-
function Cr() {
|
|
2072
|
-
return pe.roles.keys().filter(yt);
|
|
2073
|
-
}
|
|
2074
|
-
function yt(e) {
|
|
2075
|
-
return pe.roles.get(e)?.props["aria-checked"] !== void 0;
|
|
2076
|
-
}
|
|
2077
|
-
function Et(e) {
|
|
2078
|
-
m(e, Et, this);
|
|
2079
|
-
const t = () => e.tagName.toLowerCase() === "input" && e.type === "checkbox", n = () => e.getAttribute("role") === "checkbox";
|
|
2080
|
-
if (!t() && !n())
|
|
2081
|
-
return {
|
|
2082
|
-
pass: !1,
|
|
2083
|
-
message: () => 'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'
|
|
2084
|
-
};
|
|
2085
|
-
const r = () => {
|
|
2086
|
-
const i = e.getAttribute("aria-checked") === "mixed";
|
|
2087
|
-
return t() && e.indeterminate || i;
|
|
2088
|
-
};
|
|
2089
|
-
return {
|
|
2090
|
-
pass: r(),
|
|
2091
|
-
message: () => {
|
|
2092
|
-
const i = r() ? "is" : "is not";
|
|
2093
|
-
return [
|
|
2094
|
-
this.utils.matcherHint(
|
|
2095
|
-
`${this.isNot ? ".not" : ""}.toBePartiallyChecked`,
|
|
2096
|
-
"element",
|
|
2097
|
-
""
|
|
2098
|
-
),
|
|
2099
|
-
"",
|
|
2100
|
-
`Received element ${i} partially checked:`,
|
|
2101
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
2102
|
-
].join(`
|
|
2103
|
-
`);
|
|
2104
|
-
}
|
|
2105
|
-
};
|
|
2106
|
-
}
|
|
2107
|
-
function wt(e, t) {
|
|
2108
|
-
Y(
|
|
2109
|
-
"toHaveDescription",
|
|
2110
|
-
"Please use toHaveAccessibleDescription."
|
|
2111
|
-
), m(e, wt, this);
|
|
2112
|
-
const n = t !== void 0, i = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean);
|
|
2113
|
-
let s = "";
|
|
2114
|
-
if (i.length > 0) {
|
|
2115
|
-
const o = e.ownerDocument, f = i.map((c) => o.getElementById(c)).filter(Boolean);
|
|
2116
|
-
s = K(f.map((c) => c.textContent).join(" "));
|
|
2117
|
-
}
|
|
2118
|
-
return {
|
|
2119
|
-
pass: n ? t instanceof RegExp ? t.test(s) : this.equals(s, t) : !!s,
|
|
2120
|
-
message: () => {
|
|
2121
|
-
const o = this.isNot ? "not to" : "to";
|
|
2122
|
-
return S(
|
|
2123
|
-
this,
|
|
2124
|
-
this.utils.matcherHint(
|
|
2125
|
-
`${this.isNot ? ".not" : ""}.toHaveDescription`,
|
|
2126
|
-
"element",
|
|
2127
|
-
""
|
|
2128
|
-
),
|
|
2129
|
-
`Expected the element ${o} have description`,
|
|
2130
|
-
this.utils.printExpected(t),
|
|
2131
|
-
"Received",
|
|
2132
|
-
this.utils.printReceived(s)
|
|
2133
|
-
);
|
|
2134
|
-
}
|
|
2135
|
-
};
|
|
2136
|
-
}
|
|
2137
|
-
function xt(e, t) {
|
|
2138
|
-
if (Y("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), m(e, xt, this), !e.hasAttribute("aria-invalid") || e.getAttribute("aria-invalid") === "false") {
|
|
2139
|
-
const o = this.isNot ? ".not" : "";
|
|
2140
|
-
return {
|
|
2141
|
-
pass: !1,
|
|
2142
|
-
message: () => S(
|
|
2143
|
-
this,
|
|
2144
|
-
this.utils.matcherHint(`${o}.toHaveErrorMessage`, "element", ""),
|
|
2145
|
-
"Expected the element to have invalid state indicated by",
|
|
2146
|
-
'aria-invalid="true"',
|
|
2147
|
-
"Received",
|
|
2148
|
-
e.hasAttribute("aria-invalid") ? `aria-invalid="${e.getAttribute("aria-invalid")}"` : this.utils.printReceived("")
|
|
2149
|
-
)
|
|
2150
|
-
};
|
|
2151
|
-
}
|
|
2152
|
-
const n = t !== void 0, i = (e.getAttribute("aria-errormessage") || "").split(/\s+/).filter(Boolean);
|
|
2153
|
-
let s = "";
|
|
2154
|
-
if (i.length > 0) {
|
|
2155
|
-
const o = e.ownerDocument, f = i.map((c) => o.getElementById(c)).filter(Boolean);
|
|
2156
|
-
s = K(
|
|
2157
|
-
f.map((c) => c.textContent).join(" ")
|
|
2158
|
-
);
|
|
2159
|
-
}
|
|
2160
|
-
return {
|
|
2161
|
-
pass: n ? t instanceof RegExp ? t.test(s) : this.equals(s, t) : !!s,
|
|
2162
|
-
message: () => {
|
|
2163
|
-
const o = this.isNot ? "not to" : "to";
|
|
2164
|
-
return S(
|
|
2165
|
-
this,
|
|
2166
|
-
this.utils.matcherHint(
|
|
2167
|
-
`${this.isNot ? ".not" : ""}.toHaveErrorMessage`,
|
|
2168
|
-
"element",
|
|
2169
|
-
""
|
|
2170
|
-
),
|
|
2171
|
-
`Expected the element ${o} have error message`,
|
|
2172
|
-
this.utils.printExpected(t),
|
|
2173
|
-
"Received",
|
|
2174
|
-
this.utils.printReceived(s)
|
|
2175
|
-
);
|
|
2176
|
-
}
|
|
2177
|
-
};
|
|
2178
|
-
}
|
|
2179
|
-
function Or(e) {
|
|
2180
|
-
const t = e.ownerDocument.getSelection();
|
|
2181
|
-
if (["input", "textarea"].includes(e.tagName.toLowerCase()))
|
|
2182
|
-
return ["radio", "checkbox"].includes(e.type) ? "" : e.value.toString().substring(e.selectionStart, e.selectionEnd);
|
|
2183
|
-
if (t.anchorNode === null || t.focusNode === null)
|
|
2184
|
-
return "";
|
|
2185
|
-
const n = t.getRangeAt(0), r = e.ownerDocument.createRange();
|
|
2186
|
-
if (t.containsNode(e, !1))
|
|
2187
|
-
r.selectNodeContents(e), t.removeAllRanges(), t.addRange(r);
|
|
2188
|
-
else if (!(e.contains(t.anchorNode) && e.contains(t.focusNode))) {
|
|
2189
|
-
const s = e === n.startContainer || e.contains(n.startContainer), o = e === n.endContainer || e.contains(n.endContainer);
|
|
2190
|
-
t.removeAllRanges(), (s || o) && (r.selectNodeContents(e), s && r.setStart(
|
|
2191
|
-
n.startContainer,
|
|
2192
|
-
n.startOffset
|
|
2193
|
-
), o && r.setEnd(
|
|
2194
|
-
n.endContainer,
|
|
2195
|
-
n.endOffset
|
|
2196
|
-
), t.addRange(r));
|
|
2197
|
-
}
|
|
2198
|
-
const i = t.toString();
|
|
2199
|
-
return t.removeAllRanges(), t.addRange(n), i;
|
|
2200
|
-
}
|
|
2201
|
-
function Nt(e, t) {
|
|
2202
|
-
m(e, Nt, this);
|
|
2203
|
-
const n = t !== void 0;
|
|
2204
|
-
if (n && typeof t != "string")
|
|
2205
|
-
throw new Error("expected selection must be a string or undefined");
|
|
2206
|
-
const r = Or(e);
|
|
2207
|
-
return {
|
|
2208
|
-
pass: n ? he(r, t) : !!r,
|
|
2209
|
-
message: () => {
|
|
2210
|
-
const i = this.isNot ? "not to" : "to", s = this.utils.matcherHint(
|
|
2211
|
-
`${this.isNot ? ".not" : ""}.toHaveSelection`,
|
|
2212
|
-
"element",
|
|
2213
|
-
t
|
|
2214
|
-
);
|
|
2215
|
-
return S(
|
|
2216
|
-
this,
|
|
2217
|
-
s,
|
|
2218
|
-
`Expected the element ${i} have selection`,
|
|
2219
|
-
n ? t : "(any)",
|
|
2220
|
-
"Received",
|
|
2221
|
-
r
|
|
2222
|
-
);
|
|
2223
|
-
}
|
|
2224
|
-
};
|
|
2225
|
-
}
|
|
2226
|
-
function St(e) {
|
|
2227
|
-
m(e, St, this);
|
|
2228
|
-
const t = (e.getAttribute("role") || "").split(" ").map((o) => o.trim()), n = e.tagName.toLowerCase() === "button" || e.tagName.toLowerCase() === "input" && e.type === "button" || t.includes("button"), r = e.getAttribute("aria-pressed");
|
|
2229
|
-
return !n || !(r === "true" || r === "false") ? {
|
|
2230
|
-
pass: !1,
|
|
2231
|
-
message: () => 'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'
|
|
2232
|
-
} : {
|
|
2233
|
-
pass: n && r === "true",
|
|
2234
|
-
message: () => {
|
|
2235
|
-
const o = this.utils.matcherHint(
|
|
2236
|
-
`${this.isNot ? ".not" : ""}.toBePressed`,
|
|
2237
|
-
"element",
|
|
2238
|
-
""
|
|
2239
|
-
);
|
|
2240
|
-
return S(
|
|
2241
|
-
this,
|
|
2242
|
-
o,
|
|
2243
|
-
"Expected element to have",
|
|
2244
|
-
`aria-pressed="${this.isNot ? "false" : "true"}"`,
|
|
2245
|
-
"Received",
|
|
2246
|
-
`aria-pressed="${r}"`
|
|
2247
|
-
);
|
|
2248
|
-
}
|
|
2249
|
-
};
|
|
2250
|
-
}
|
|
2251
|
-
function At(e) {
|
|
2252
|
-
m(e, At, this);
|
|
2253
|
-
const t = (e.getAttribute("role") || "").split(" ").map((o) => o.trim()), n = e.tagName.toLowerCase() === "button" || e.tagName.toLowerCase() === "input" && e.type === "button" || t.includes("button"), r = e.getAttribute("aria-pressed");
|
|
2254
|
-
return !n || !(r === "true" || r === "false" || r === "mixed") ? {
|
|
2255
|
-
pass: !1,
|
|
2256
|
-
message: () => 'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'
|
|
2257
|
-
} : {
|
|
2258
|
-
pass: n && r === "mixed",
|
|
2259
|
-
message: () => {
|
|
2260
|
-
const o = this.isNot ? "not to" : "to", f = this.utils.matcherHint(
|
|
2261
|
-
`${this.isNot ? ".not" : ""}.toBePartiallyPressed`,
|
|
2262
|
-
"element",
|
|
2263
|
-
""
|
|
2264
|
-
);
|
|
2265
|
-
return S(
|
|
2266
|
-
this,
|
|
2267
|
-
f,
|
|
2268
|
-
`Expected element ${o} have`,
|
|
2269
|
-
'aria-pressed="mixed"',
|
|
2270
|
-
"Received",
|
|
2271
|
-
`aria-pressed="${r}"`
|
|
2272
|
-
);
|
|
2273
|
-
}
|
|
2274
|
-
};
|
|
2275
|
-
}
|
|
2276
|
-
const Ir = 1, Rt = 2, $t = 4, Hr = 8, Tr = 16, Dr = 32, Me = {
|
|
2277
|
-
[Ir]: "Node.DOCUMENT_POSITION_DISCONNECTED",
|
|
2278
|
-
[Rt]: "Node.DOCUMENT_POSITION_PRECEDING",
|
|
2279
|
-
[$t]: "Node.DOCUMENT_POSITION_FOLLOWING",
|
|
2280
|
-
[Hr]: "Node.DOCUMENT_POSITION_CONTAINS",
|
|
2281
|
-
[Tr]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
|
|
2282
|
-
[Dr]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
|
|
2283
|
-
};
|
|
2284
|
-
function Br(e) {
|
|
2285
|
-
return e in Me ? `${Me[e]} (${e})` : `Unknown document position (${e})`;
|
|
2286
|
-
}
|
|
2287
|
-
function Ct(e, t) {
|
|
2288
|
-
return function(n, r) {
|
|
2289
|
-
m(n, fe, this), m(r, fe, this);
|
|
2290
|
-
const i = n.compareDocumentPosition(r);
|
|
2291
|
-
return {
|
|
2292
|
-
pass: i === t,
|
|
2293
|
-
message: () => [
|
|
2294
|
-
this.utils.matcherHint(
|
|
2295
|
-
`${this.isNot ? ".not" : ""}.${e}`,
|
|
2296
|
-
"element",
|
|
2297
|
-
"secondElement"
|
|
2298
|
-
),
|
|
2299
|
-
"",
|
|
2300
|
-
`Received: ${Br(i)}`
|
|
2301
|
-
].join(`
|
|
2302
|
-
`)
|
|
2303
|
-
};
|
|
2304
|
-
};
|
|
2305
|
-
}
|
|
2306
|
-
function fe(e, t) {
|
|
2307
|
-
return Ct("toAppearBefore", $t).apply(
|
|
2308
|
-
this,
|
|
2309
|
-
[e, t]
|
|
2310
|
-
);
|
|
2311
|
-
}
|
|
2312
|
-
function Pr(e, t) {
|
|
2313
|
-
return Ct("toAppearAfter", Rt).apply(
|
|
2314
|
-
this,
|
|
2315
|
-
[e, t]
|
|
2316
|
-
);
|
|
2317
|
-
}
|
|
2318
|
-
var kr = /* @__PURE__ */ Object.freeze({
|
|
2319
|
-
__proto__: null,
|
|
2320
|
-
toAppearAfter: Pr,
|
|
2321
|
-
toAppearBefore: fe,
|
|
2322
|
-
toBeChecked: vt,
|
|
2323
|
-
toBeDisabled: lt,
|
|
2324
|
-
toBeEmpty: Ke,
|
|
2325
|
-
toBeEmptyDOMElement: Xe,
|
|
2326
|
-
toBeEnabled: ft,
|
|
2327
|
-
toBeInTheDOM: se,
|
|
2328
|
-
toBeInTheDocument: Ye,
|
|
2329
|
-
toBeInvalid: ht,
|
|
2330
|
-
toBePartiallyChecked: Et,
|
|
2331
|
-
toBePartiallyPressed: At,
|
|
2332
|
-
toBePressed: St,
|
|
2333
|
-
toBeRequired: dt,
|
|
2334
|
-
toBeValid: gt,
|
|
2335
|
-
toBeVisible: st,
|
|
2336
|
-
toContainElement: oe,
|
|
2337
|
-
toContainHTML: Qe,
|
|
2338
|
-
toHaveAccessibleDescription: ae,
|
|
2339
|
-
toHaveAccessibleErrorMessage: Ze,
|
|
2340
|
-
toHaveAccessibleName: ce,
|
|
2341
|
-
toHaveAttribute: et,
|
|
2342
|
-
toHaveClass: tt,
|
|
2343
|
-
toHaveDescription: wt,
|
|
2344
|
-
toHaveDisplayValue: bt,
|
|
2345
|
-
toHaveErrorMessage: xt,
|
|
2346
|
-
toHaveFocus: nt,
|
|
2347
|
-
toHaveFormValues: rt,
|
|
2348
|
-
toHaveRole: ue,
|
|
2349
|
-
toHaveSelection: Nt,
|
|
2350
|
-
toHaveStyle: le,
|
|
2351
|
-
toHaveTextContent: Je,
|
|
2352
|
-
toHaveValue: mt
|
|
2353
|
-
});
|
|
2354
|
-
expect.extend(kr);
|
|
2355
|
-
//# sourceMappingURL=index-CULNJwuI.js.map
|