@baishuyun/ai-design 2.0.31 → 2.0.34
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/CHANGELOG.md +24 -0
- package/package.json +7 -7
- package/src/components/agent-helper/field-select/index.tsx +4 -1
- package/src/components/agent-helper/field-value-input/picker-inputs.tsx +6 -1
- package/src/components/agent-helper/relational-operator-select/index.tsx +2 -0
- package/src/components/date-range-picker.tsx +1 -1
- package/src/components/form-info-editor.tsx +13 -3
- package/src/components/ui/calendar.tsx +1 -1
- package/style.css +611 -1138
- package/.claude/settings.local.json +0 -7
- package/.turbo/turbo-build.log +0 -574
- package/debug-storybook.log +0 -19
- package/dist/ai-design.js +0 -39928
- package/dist/ai-design.js.map +0 -1
- package/dist/ai-design.umd.cjs +0 -591
- package/dist/ai-design.umd.cjs.map +0 -1
- package/dist/index.css +0 -1
- package/storybook-static/assets/AbsFullscreenGradientBg.stories-Hd2WmWkA.js +0 -18
- package/storybook-static/assets/AgentScrollSelector.stories-C3rsFZ6F.js +0 -40
- package/storybook-static/assets/AgentSelect.stories-DVhwD0rq.js +0 -53
- package/storybook-static/assets/AttachmentPart.stories-ejj4i7n-.js +0 -45
- package/storybook-static/assets/AttachmentPartGroup.stories-5Zdayw6l.js +0 -34
- package/storybook-static/assets/AttachmentsPreviewer.stories-DyjtCRco.js +0 -138
- package/storybook-static/assets/BaseButton.stories-DrGEYx9W.js +0 -11
- package/storybook-static/assets/BorderAnimation.stories-D9p4pgL6.js +0 -87
- package/storybook-static/assets/BorderColorAnimation.stories-tvilZOeG.js +0 -42
- package/storybook-static/assets/BotAvatarAndName.stories-B8ZNN2_J.js +0 -5
- package/storybook-static/assets/BotIcon.stories-DAyXSQDa.js +0 -3
- package/storybook-static/assets/BsEntrySelect.stories-B2B9FZWy.js +0 -119
- package/storybook-static/assets/BsTooltip.stories-Bf_LcqnK.js +0 -6
- package/storybook-static/assets/Card.stories-BSeowjg-.js +0 -8
- package/storybook-static/assets/CardField.stories-CYnnBUTk.js +0 -41
- package/storybook-static/assets/ChatAreaHeader.stories-muYZq_ix.js +0 -6
- package/storybook-static/assets/CircleChecker.stories-CueVuqmn.js +0 -38
- package/storybook-static/assets/CollapsibleTextMsg.stories-Bl8inRXa.js +0 -21
- package/storybook-static/assets/Color-ASIRERSW-CAiV6Nyl.js +0 -1
- package/storybook-static/assets/Combination-CZ7kzc03.js +0 -41
- package/storybook-static/assets/ConfirmDialog.stories-C3TDIr-r.js +0 -42
- package/storybook-static/assets/DocsRenderer-GHJI37HO-DLf4p3c1.js +0 -763
- package/storybook-static/assets/FakeBotMsg.stories-CSC1k9UE.js +0 -14
- package/storybook-static/assets/FormInfoEditor.stories-DcLwCSHN.js +0 -75
- package/storybook-static/assets/FormulaTag.stories-hiPYLb6Y.js +0 -29
- package/storybook-static/assets/GenerateAnimation.stories-C5qGwAy0.js +0 -14
- package/storybook-static/assets/IconBtn.stories-pcl--4Wl.js +0 -10
- package/storybook-static/assets/Icons.stories-FN8wG7iW.js +0 -3
- package/storybook-static/assets/ImgMsgPart.stories-CkiWUjiY.js +0 -15
- package/storybook-static/assets/LegacySlot.stories-C_PeMEjh.js +0 -38
- package/storybook-static/assets/LineChecker.stories-DcChEKvO.js +0 -93
- package/storybook-static/assets/LinearGradientBorderBtn.stories-CQgLcYJf.js +0 -46
- package/storybook-static/assets/LinearGradientColorBgAnimation.stories-D9NYfNzo.js +0 -43
- package/storybook-static/assets/MemoizedMarkdown.stories-BxOuEc_8.js +0 -195
- package/storybook-static/assets/MessageContent.stories-Cz7z6a8d.js +0 -14
- package/storybook-static/assets/NumbersMsgPart.stories-Dke7EvTU.js +0 -16
- package/storybook-static/assets/OfficeContainer.stories-DpQ7TB3v.js +0 -116
- package/storybook-static/assets/OptionItem.stories-BNr85yzu.js +0 -44
- package/storybook-static/assets/PreviewerHeader.stories-IxioHG75.js +0 -68
- package/storybook-static/assets/PrimaryConfirmBtn.stories-Dg0OQKbA.js +0 -30
- package/storybook-static/assets/PrimaryEntryBtn.stories-Baz1MVoZ.js +0 -35
- package/storybook-static/assets/ScrollToBottom.stories-DqAOmU_g.js +0 -5
- package/storybook-static/assets/SplitLine.stories-CbkBng-u.js +0 -9
- package/storybook-static/assets/SquareChecker.stories-BFXpWaHr.js +0 -43
- package/storybook-static/assets/TabRadioGroup.stories-d3CvjAQV.js +0 -54
- package/storybook-static/assets/UserTextMsgBubble.stories-Dv5HUEKe.js +0 -5
- package/storybook-static/assets/WarningMessage.stories-DoHvvVJB.js +0 -3
- package/storybook-static/assets/WithTooltip-IO6J4KBT-5iq4HD_s.js +0 -9
- package/storybook-static/assets/abs-fullscreen-gradient-bg-pEhwW8Lt.js +0 -1
- package/storybook-static/assets/agent-select-BlwXZgPu.js +0 -1
- package/storybook-static/assets/attachment-part-_D41HaS7.js +0 -1
- package/storybook-static/assets/base-button-BGn3Fo0B.js +0 -1
- package/storybook-static/assets/border-color-animation-BoCxpIBW.js +0 -10
- package/storybook-static/assets/bot-icon-Ci07j_8n.js +0 -1
- package/storybook-static/assets/bs-icons-CDeLTCWJ.js +0 -1
- package/storybook-static/assets/button-Cyp2OfiJ.js +0 -1
- package/storybook-static/assets/collapsible-TCbdh_v_.js +0 -1
- package/storybook-static/assets/collapsible-txt-msg-DukRF1Ws.js +0 -1
- package/storybook-static/assets/collapsible.stories-DmrXoEsa.js +0 -25
- package/storybook-static/assets/confirm-dialog-BO5s3AJb.js +0 -1
- package/storybook-static/assets/createLucideIcon-CkLwfbD4.js +0 -21
- package/storybook-static/assets/drawer.stories-BdM7Wbzl.js +0 -123
- package/storybook-static/assets/field-checker-f9FOL58q.js +0 -1
- package/storybook-static/assets/field-checker-list-msg.stories-B_6usiWl.js +0 -37
- package/storybook-static/assets/field-checker.stories-BghsIYEd.js +0 -91
- package/storybook-static/assets/field-icon-6Mrtj4c9.js +0 -1
- package/storybook-static/assets/field-icon.stories-D9Ukdb7l.js +0 -57
- package/storybook-static/assets/field-value-checker-BOyFGXwK.js +0 -1
- package/storybook-static/assets/field-value-checker.stories-Ch-7H5CO.js +0 -93
- package/storybook-static/assets/fields-design-info-table.stories-CtmX3mmp.js +0 -75
- package/storybook-static/assets/fields-generating-indicator-Cex4HigZ.js +0 -12
- package/storybook-static/assets/fields-generating.stories-CAtWVnX3.js +0 -16
- package/storybook-static/assets/fields-previewer.stories-D3USvSB3.js +0 -48
- package/storybook-static/assets/font-icon-Ts3EnP1y.js +0 -1
- package/storybook-static/assets/formatter-QJ4M4OGQ-Db-9LUhi.js +0 -1
- package/storybook-static/assets/icon-btn-B-A_0V7W.js +0 -1
- package/storybook-static/assets/icons-iPP3Tbk5.js +0 -1
- package/storybook-static/assets/iframe-BNpZCkNl.js +0 -1071
- package/storybook-static/assets/iframe-DHG3NC8n.css +0 -1
- package/storybook-static/assets/img-part-CWcYacNo.js +0 -1
- package/storybook-static/assets/index-B-T-IyWu.js +0 -24
- package/storybook-static/assets/index-CCxWT_9r.js +0 -1
- package/storybook-static/assets/index-CXB_DHA8.js +0 -1
- package/storybook-static/assets/index-CY6zduIX.js +0 -5
- package/storybook-static/assets/index-CaU3vELI.js +0 -5
- package/storybook-static/assets/index-D-D2iJjc.js +0 -1
- package/storybook-static/assets/index-DFx_ePTl.js +0 -1
- package/storybook-static/assets/index-DZuATJno.js +0 -1
- package/storybook-static/assets/index-DvxqVOC1.js +0 -1
- package/storybook-static/assets/index-KJpiBtEb.js +0 -1
- package/storybook-static/assets/jsx-runtime-CpaO0gaJ.js +0 -9
- package/storybook-static/assets/line-checker-DSzQ_hxZ.js +0 -1
- package/storybook-static/assets/linear-gradient-color-bg-animation-DIBcKbzI.js +0 -39
- package/storybook-static/assets/message-content-DwEkjIr8.js +0 -1
- package/storybook-static/assets/option-item-DVwitDz1.js +0 -1
- package/storybook-static/assets/preload-helper-CmsKOCeN.js +0 -1
- package/storybook-static/assets/previewer-header-BzO0Sbpf.js +0 -6
- package/storybook-static/assets/primary-confirm-btn-CW72MiLv.js +0 -1
- package/storybook-static/assets/react-18-Cn3rktXT.js +0 -1
- package/storybook-static/assets/square-checker-BKGRXJag.js +0 -1
- package/storybook-static/assets/subform-fields-value-checker-DCstRpVF.js +0 -7
- package/storybook-static/assets/subform-fields-value-checker.stories-BCg_WRIi.js +0 -114
- package/storybook-static/assets/syntaxhighlighter-IQDEPFLK-RkNUra3q.js +0 -6
- package/storybook-static/assets/tooltip-3SR6ujOq.js +0 -1
- package/storybook-static/assets/ui-B16ZxGB5.js +0 -4
- package/storybook-static/assets/utils-CXGjNK-X.js +0 -1
- package/storybook-static/favicon-wrapper.svg +0 -46
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -687
- package/storybook-static/index.html +0 -143
- package/storybook-static/index.json +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/docs-1/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -628
- package/storybook-static/sb-addons/vitest-2/manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +0 -75605
- package/storybook-static/sb-manager/globals.js +0 -24
- package/storybook-static/sb-manager/manager-stores.js +0 -23
- package/storybook-static/sb-manager/runtime.js +0 -19717
- package/storybook-static/src/components/abs-fullscreen-gradient-bg.d.ts +0 -10
- package/storybook-static/src/components/abs-fullscreen-gradient-bg.d.ts.map +0 -1
- package/storybook-static/src/components/agent-scroll-selector.d.ts +0 -12
- package/storybook-static/src/components/agent-scroll-selector.d.ts.map +0 -1
- package/storybook-static/src/components/agent-select.d.ts +0 -16
- package/storybook-static/src/components/agent-select.d.ts.map +0 -1
- package/storybook-static/src/components/attachment-part-group.d.ts +0 -16
- package/storybook-static/src/components/attachment-part-group.d.ts.map +0 -1
- package/storybook-static/src/components/attachment-part.d.ts +0 -19
- package/storybook-static/src/components/attachment-part.d.ts.map +0 -1
- package/storybook-static/src/components/attachments-previewer.d.ts +0 -18
- package/storybook-static/src/components/attachments-previewer.d.ts.map +0 -1
- package/storybook-static/src/components/base-button.d.ts +0 -8
- package/storybook-static/src/components/base-button.d.ts.map +0 -1
- package/storybook-static/src/components/border-animation.d.ts +0 -23
- package/storybook-static/src/components/border-animation.d.ts.map +0 -1
- package/storybook-static/src/components/border-color-animation.d.ts +0 -11
- package/storybook-static/src/components/border-color-animation.d.ts.map +0 -1
- package/storybook-static/src/components/bot-avatar-name.d.ts +0 -6
- package/storybook-static/src/components/bot-avatar-name.d.ts.map +0 -1
- package/storybook-static/src/components/bot-icon.d.ts +0 -5
- package/storybook-static/src/components/bot-icon.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/app-group-folder.d.ts +0 -6
- package/storybook-static/src/components/bs-entry-select/app-group-folder.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/bs-entry-select.d.ts +0 -4
- package/storybook-static/src/components/bs-entry-select/bs-entry-select.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/build-tree.d.ts +0 -9
- package/storybook-static/src/components/bs-entry-select/build-tree.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/entry-item.d.ts +0 -8
- package/storybook-static/src/components/bs-entry-select/entry-item.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/entry-popover.d.ts +0 -17
- package/storybook-static/src/components/bs-entry-select/entry-popover.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/index.d.ts +0 -3
- package/storybook-static/src/components/bs-entry-select/index.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/other-app-section.d.ts +0 -11
- package/storybook-static/src/components/bs-entry-select/other-app-section.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/scroll-slider.d.ts +0 -10
- package/storybook-static/src/components/bs-entry-select/scroll-slider.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/search-input.d.ts +0 -5
- package/storybook-static/src/components/bs-entry-select/search-input.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/tree-item-node.d.ts +0 -9
- package/storybook-static/src/components/bs-entry-select/tree-item-node.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/types.d.ts +0 -28
- package/storybook-static/src/components/bs-entry-select/types.d.ts.map +0 -1
- package/storybook-static/src/components/bs-icons.d.ts +0 -77
- package/storybook-static/src/components/bs-icons.d.ts.map +0 -1
- package/storybook-static/src/components/card-field.d.ts +0 -11
- package/storybook-static/src/components/card-field.d.ts.map +0 -1
- package/storybook-static/src/components/card.d.ts +0 -11
- package/storybook-static/src/components/card.d.ts.map +0 -1
- package/storybook-static/src/components/chat-area-header.d.ts +0 -13
- package/storybook-static/src/components/chat-area-header.d.ts.map +0 -1
- package/storybook-static/src/components/circle-checker.d.ts +0 -10
- package/storybook-static/src/components/circle-checker.d.ts.map +0 -1
- package/storybook-static/src/components/collapsible-txt-msg.d.ts +0 -11
- package/storybook-static/src/components/collapsible-txt-msg.d.ts.map +0 -1
- package/storybook-static/src/components/collapsible.d.ts +0 -6
- package/storybook-static/src/components/collapsible.d.ts.map +0 -1
- package/storybook-static/src/components/confirm-dialog.d.ts +0 -26
- package/storybook-static/src/components/confirm-dialog.d.ts.map +0 -1
- package/storybook-static/src/components/fake-bot-msg.d.ts +0 -8
- package/storybook-static/src/components/fake-bot-msg.d.ts.map +0 -1
- package/storybook-static/src/components/field-checker-list-msg.d.ts +0 -19
- package/storybook-static/src/components/field-checker-list-msg.d.ts.map +0 -1
- package/storybook-static/src/components/field-checker.d.ts +0 -19
- package/storybook-static/src/components/field-checker.d.ts.map +0 -1
- package/storybook-static/src/components/field-icon.d.ts +0 -5
- package/storybook-static/src/components/field-icon.d.ts.map +0 -1
- package/storybook-static/src/components/field-value-checker.d.ts +0 -16
- package/storybook-static/src/components/field-value-checker.d.ts.map +0 -1
- package/storybook-static/src/components/fields-design-info-table.d.ts +0 -7
- package/storybook-static/src/components/fields-design-info-table.d.ts.map +0 -1
- package/storybook-static/src/components/fields-generating-indicator.d.ts +0 -6
- package/storybook-static/src/components/fields-generating-indicator.d.ts.map +0 -1
- package/storybook-static/src/components/fields-portal.d.ts +0 -8
- package/storybook-static/src/components/fields-portal.d.ts.map +0 -1
- package/storybook-static/src/components/fields-previewer.d.ts +0 -19
- package/storybook-static/src/components/fields-previewer.d.ts.map +0 -1
- package/storybook-static/src/components/font-icon.d.ts +0 -6
- package/storybook-static/src/components/font-icon.d.ts.map +0 -1
- package/storybook-static/src/components/form-info-editor.d.ts +0 -31
- package/storybook-static/src/components/form-info-editor.d.ts.map +0 -1
- package/storybook-static/src/components/formula-tag.d.ts +0 -8
- package/storybook-static/src/components/formula-tag.d.ts.map +0 -1
- package/storybook-static/src/components/generate-animation.d.ts +0 -5
- package/storybook-static/src/components/generate-animation.d.ts.map +0 -1
- package/storybook-static/src/components/icon-btn.d.ts +0 -9
- package/storybook-static/src/components/icon-btn.d.ts.map +0 -1
- package/storybook-static/src/components/img-part.d.ts +0 -10
- package/storybook-static/src/components/img-part.d.ts.map +0 -1
- package/storybook-static/src/components/legacy-slot.d.ts +0 -11
- package/storybook-static/src/components/legacy-slot.d.ts.map +0 -1
- package/storybook-static/src/components/line-checker.d.ts +0 -19
- package/storybook-static/src/components/line-checker.d.ts.map +0 -1
- package/storybook-static/src/components/linear-gradient-border-btn.d.ts +0 -10
- package/storybook-static/src/components/linear-gradient-border-btn.d.ts.map +0 -1
- package/storybook-static/src/components/linear-gradient-color-bg-animation.d.ts +0 -8
- package/storybook-static/src/components/linear-gradient-color-bg-animation.d.ts.map +0 -1
- package/storybook-static/src/components/memoized-markdown.d.ts +0 -5
- package/storybook-static/src/components/memoized-markdown.d.ts.map +0 -1
- package/storybook-static/src/components/message-content.d.ts +0 -6
- package/storybook-static/src/components/message-content.d.ts.map +0 -1
- package/storybook-static/src/components/number-part.d.ts +0 -9
- package/storybook-static/src/components/number-part.d.ts.map +0 -1
- package/storybook-static/src/components/office-container.d.ts +0 -17
- package/storybook-static/src/components/office-container.d.ts.map +0 -1
- package/storybook-static/src/components/option-item.d.ts +0 -9
- package/storybook-static/src/components/option-item.d.ts.map +0 -1
- package/storybook-static/src/components/previewer-header.d.ts +0 -21
- package/storybook-static/src/components/previewer-header.d.ts.map +0 -1
- package/storybook-static/src/components/primary-confirm-btn.d.ts +0 -10
- package/storybook-static/src/components/primary-confirm-btn.d.ts.map +0 -1
- package/storybook-static/src/components/primary-entry-btn.d.ts +0 -9
- package/storybook-static/src/components/primary-entry-btn.d.ts.map +0 -1
- package/storybook-static/src/components/scroll-to-bottom-btn.d.ts +0 -6
- package/storybook-static/src/components/scroll-to-bottom-btn.d.ts.map +0 -1
- package/storybook-static/src/components/split-line.d.ts +0 -5
- package/storybook-static/src/components/split-line.d.ts.map +0 -1
- package/storybook-static/src/components/square-checker.d.ts +0 -15
- package/storybook-static/src/components/square-checker.d.ts.map +0 -1
- package/storybook-static/src/components/subform-fields-value-checker.d.ts +0 -22
- package/storybook-static/src/components/subform-fields-value-checker.d.ts.map +0 -1
- package/storybook-static/src/components/tab-radio-group.d.ts +0 -20
- package/storybook-static/src/components/tab-radio-group.d.ts.map +0 -1
- package/storybook-static/src/components/tooltip.d.ts +0 -6
- package/storybook-static/src/components/tooltip.d.ts.map +0 -1
- package/storybook-static/src/components/ui/button.d.ts +0 -12
- package/storybook-static/src/components/ui/button.d.ts.map +0 -1
- package/storybook-static/src/components/ui/dialog.d.ts +0 -24
- package/storybook-static/src/components/ui/dialog.d.ts.map +0 -1
- package/storybook-static/src/components/ui/drawer.d.ts +0 -16
- package/storybook-static/src/components/ui/drawer.d.ts.map +0 -1
- package/storybook-static/src/components/ui/icons.d.ts +0 -176
- package/storybook-static/src/components/ui/icons.d.ts.map +0 -1
- package/storybook-static/src/components/ui/popover.d.ts +0 -10
- package/storybook-static/src/components/ui/popover.d.ts.map +0 -1
- package/storybook-static/src/components/ui/spinner.d.ts +0 -3
- package/storybook-static/src/components/ui/spinner.d.ts.map +0 -1
- package/storybook-static/src/components/ui/tooltip.d.ts +0 -13
- package/storybook-static/src/components/ui/tooltip.d.ts.map +0 -1
- package/storybook-static/src/components/user-txt-msg-bubble.d.ts +0 -6
- package/storybook-static/src/components/user-txt-msg-bubble.d.ts.map +0 -1
- package/storybook-static/src/components/warning-msg.d.ts +0 -6
- package/storybook-static/src/components/warning-msg.d.ts.map +0 -1
- package/storybook-static/src/const/ui.d.ts +0 -10
- package/storybook-static/src/const/ui.d.ts.map +0 -1
- package/storybook-static/src/hooks/use-column-appear.d.ts +0 -22
- package/storybook-static/src/hooks/use-column-appear.d.ts.map +0 -1
- package/storybook-static/src/hooks/use-resizable-width.d.ts +0 -26
- package/storybook-static/src/hooks/use-resizable-width.d.ts.map +0 -1
- package/storybook-static/src/hooks/use-shadow.d.ts +0 -25
- package/storybook-static/src/hooks/use-shadow.d.ts.map +0 -1
- package/storybook-static/src/index.d.ts +0 -76
- package/storybook-static/src/index.d.ts.map +0 -1
- package/storybook-static/src/lib/utils.d.ts +0 -7
- package/storybook-static/src/lib/utils.d.ts.map +0 -1
- package/storybook-static/src/stories/AbsFullscreenGradientBg.stories.d.ts +0 -17
- package/storybook-static/src/stories/AbsFullscreenGradientBg.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AgentScrollSelector.stories.d.ts +0 -11
- package/storybook-static/src/stories/AgentScrollSelector.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AgentSelect.stories.d.ts +0 -14
- package/storybook-static/src/stories/AgentSelect.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AttachmentPart.stories.d.ts +0 -23
- package/storybook-static/src/stories/AttachmentPart.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AttachmentPartGroup.stories.d.ts +0 -21
- package/storybook-static/src/stories/AttachmentPartGroup.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AttachmentsPreviewer.stories.d.ts +0 -20
- package/storybook-static/src/stories/AttachmentsPreviewer.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BaseButton.stories.d.ts +0 -18
- package/storybook-static/src/stories/BaseButton.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BorderAnimation.stories.d.ts +0 -21
- package/storybook-static/src/stories/BorderAnimation.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BorderColorAnimation.stories.d.ts +0 -26
- package/storybook-static/src/stories/BorderColorAnimation.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BotAvatarAndName.stories.d.ts +0 -18
- package/storybook-static/src/stories/BotAvatarAndName.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BotIcon.stories.d.ts +0 -17
- package/storybook-static/src/stories/BotIcon.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BsEntrySelect.stories.d.ts +0 -17
- package/storybook-static/src/stories/BsEntrySelect.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BsTooltip.stories.d.ts +0 -7
- package/storybook-static/src/stories/BsTooltip.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/Card.stories.d.ts +0 -14
- package/storybook-static/src/stories/Card.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/CardField.stories.d.ts +0 -13
- package/storybook-static/src/stories/CardField.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/ChatAreaHeader.stories.d.ts +0 -14
- package/storybook-static/src/stories/ChatAreaHeader.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/CircleChecker.stories.d.ts +0 -21
- package/storybook-static/src/stories/CircleChecker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/CollapsibleTextMsg.stories.d.ts +0 -16
- package/storybook-static/src/stories/CollapsibleTextMsg.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/ConfirmDialog.stories.d.ts +0 -61
- package/storybook-static/src/stories/ConfirmDialog.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/FakeBotMsg.stories.d.ts +0 -21
- package/storybook-static/src/stories/FakeBotMsg.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/FormInfoEditor.stories.d.ts +0 -15
- package/storybook-static/src/stories/FormInfoEditor.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/FormulaTag.stories.d.ts +0 -37
- package/storybook-static/src/stories/FormulaTag.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/GenerateAnimation.stories.d.ts +0 -17
- package/storybook-static/src/stories/GenerateAnimation.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/IconBtn.stories.d.ts +0 -15
- package/storybook-static/src/stories/IconBtn.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/IconLib.d.ts +0 -12
- package/storybook-static/src/stories/IconLib.d.ts.map +0 -1
- package/storybook-static/src/stories/Icons.stories.d.ts +0 -24
- package/storybook-static/src/stories/Icons.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/ImgMsgPart.stories.d.ts +0 -20
- package/storybook-static/src/stories/ImgMsgPart.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/LegacySlot.stories.d.ts +0 -16
- package/storybook-static/src/stories/LegacySlot.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/LineChecker.stories.d.ts +0 -23
- package/storybook-static/src/stories/LineChecker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/LinearGradientBorderBtn.stories.d.ts +0 -22
- package/storybook-static/src/stories/LinearGradientBorderBtn.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/LinearGradientColorBgAnimation.stories.d.ts +0 -23
- package/storybook-static/src/stories/LinearGradientColorBgAnimation.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/MemoizedMarkdown.stories.d.ts +0 -23
- package/storybook-static/src/stories/MemoizedMarkdown.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/MessageContent.stories.d.ts +0 -16
- package/storybook-static/src/stories/MessageContent.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/NumbersMsgPart.stories.d.ts +0 -19
- package/storybook-static/src/stories/NumbersMsgPart.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/OfficeContainer.stories.d.ts +0 -13
- package/storybook-static/src/stories/OfficeContainer.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/OptionItem.stories.d.ts +0 -20
- package/storybook-static/src/stories/OptionItem.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/PreviewerHeader.stories.d.ts +0 -12
- package/storybook-static/src/stories/PreviewerHeader.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/PrimaryConfirmBtn.stories.d.ts +0 -19
- package/storybook-static/src/stories/PrimaryConfirmBtn.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/PrimaryEntryBtn.stories.d.ts +0 -26
- package/storybook-static/src/stories/PrimaryEntryBtn.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/ScrollToBottom.stories.d.ts +0 -15
- package/storybook-static/src/stories/ScrollToBottom.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/SplitLine.stories.d.ts +0 -9
- package/storybook-static/src/stories/SplitLine.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/SquareChecker.stories.d.ts +0 -26
- package/storybook-static/src/stories/SquareChecker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/TabRadioGroup.stories.d.ts +0 -18
- package/storybook-static/src/stories/TabRadioGroup.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/UserTextMsgBubble.stories.d.ts +0 -14
- package/storybook-static/src/stories/UserTextMsgBubble.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/WarningMessage.stories.d.ts +0 -16
- package/storybook-static/src/stories/WarningMessage.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/collapsible.stories.d.ts +0 -8
- package/storybook-static/src/stories/collapsible.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/drawer.stories.d.ts +0 -18
- package/storybook-static/src/stories/drawer.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/field-checker-list-msg.stories.d.ts +0 -11
- package/storybook-static/src/stories/field-checker-list-msg.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/field-checker.stories.d.ts +0 -13
- package/storybook-static/src/stories/field-checker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/field-icon.stories.d.ts +0 -15
- package/storybook-static/src/stories/field-icon.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/field-value-checker.stories.d.ts +0 -13
- package/storybook-static/src/stories/field-value-checker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/fields-design-info-table.stories.d.ts +0 -14
- package/storybook-static/src/stories/fields-design-info-table.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/fields-generating.stories.d.ts +0 -20
- package/storybook-static/src/stories/fields-generating.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/fields-previewer.stories.d.ts +0 -19
- package/storybook-static/src/stories/fields-previewer.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/subform-fields-value-checker.stories.d.ts +0 -9
- package/storybook-static/src/stories/subform-fields-value-checker.stories.d.ts.map +0 -1
- package/storybook-static/src/types.d.ts +0 -8
- package/storybook-static/src/types.d.ts.map +0 -1
- package/storybook-static/vite-inject-mocker-entry.js +0 -18
|
@@ -1,1071 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AbsFullscreenGradientBg.stories-Hd2WmWkA.js","./jsx-runtime-CpaO0gaJ.js","./abs-fullscreen-gradient-bg-pEhwW8Lt.js","./preload-helper-CmsKOCeN.js","./AgentScrollSelector.stories-C3rsFZ6F.js","./utils-CXGjNK-X.js","./ui-B16ZxGB5.js","./icon-btn-B-A_0V7W.js","./button-Cyp2OfiJ.js","./index-KJpiBtEb.js","./tooltip-3SR6ujOq.js","./index-CXB_DHA8.js","./index-B-T-IyWu.js","./index-DFx_ePTl.js","./index-DvxqVOC1.js","./index-DZuATJno.js","./bs-icons-CDeLTCWJ.js","./agent-select-BlwXZgPu.js","./Combination-CZ7kzc03.js","./AgentSelect.stories-DVhwD0rq.js","./AttachmentPart.stories-ejj4i7n-.js","./attachment-part-_D41HaS7.js","./img-part-CWcYacNo.js","./AttachmentPartGroup.stories-5Zdayw6l.js","./AttachmentsPreviewer.stories-DyjtCRco.js","./icons-iPP3Tbk5.js","./BaseButton.stories-DrGEYx9W.js","./base-button-BGn3Fo0B.js","./BorderAnimation.stories-D9p4pgL6.js","./BorderColorAnimation.stories-tvilZOeG.js","./border-color-animation-BoCxpIBW.js","./BotAvatarAndName.stories-B8ZNN2_J.js","./bot-icon-Ci07j_8n.js","./BotIcon.stories-DAyXSQDa.js","./BsEntrySelect.stories-B2B9FZWy.js","./BsTooltip.stories-Bf_LcqnK.js","./Card.stories-BSeowjg-.js","./CardField.stories-CYnnBUTk.js","./ChatAreaHeader.stories-muYZq_ix.js","./CircleChecker.stories-CueVuqmn.js","./CollapsibleTextMsg.stories-Bl8inRXa.js","./collapsible-txt-msg-DukRF1Ws.js","./ConfirmDialog.stories-C3TDIr-r.js","./confirm-dialog-BO5s3AJb.js","./index-CY6zduIX.js","./FakeBotMsg.stories-CSC1k9UE.js","./message-content-DwEkjIr8.js","./FormInfoEditor.stories-DcLwCSHN.js","./primary-confirm-btn-CW72MiLv.js","./font-icon-Ts3EnP1y.js","./FormulaTag.stories-hiPYLb6Y.js","./GenerateAnimation.stories-C5qGwAy0.js","./index-CaU3vELI.js","./IconBtn.stories-pcl--4Wl.js","./Icons.stories-FN8wG7iW.js","./ImgMsgPart.stories-CkiWUjiY.js","./LegacySlot.stories-C_PeMEjh.js","./LineChecker.stories-DcChEKvO.js","./line-checker-DSzQ_hxZ.js","./square-checker-BKGRXJag.js","./index-D-D2iJjc.js","./LinearGradientBorderBtn.stories-CQgLcYJf.js","./LinearGradientColorBgAnimation.stories-D9NYfNzo.js","./linear-gradient-color-bg-animation-DIBcKbzI.js","./MemoizedMarkdown.stories-BxOuEc_8.js","./MessageContent.stories-Cz7z6a8d.js","./NumbersMsgPart.stories-Dke7EvTU.js","./OfficeContainer.stories-DpQ7TB3v.js","./OptionItem.stories-BNr85yzu.js","./option-item-DVwitDz1.js","./PreviewerHeader.stories-IxioHG75.js","./previewer-header-BzO0Sbpf.js","./createLucideIcon-CkLwfbD4.js","./PrimaryConfirmBtn.stories-Dg0OQKbA.js","./PrimaryEntryBtn.stories-Baz1MVoZ.js","./ScrollToBottom.stories-DqAOmU_g.js","./SplitLine.stories-CbkBng-u.js","./SquareChecker.stories-BFXpWaHr.js","./TabRadioGroup.stories-d3CvjAQV.js","./UserTextMsgBubble.stories-Dv5HUEKe.js","./WarningMessage.stories-DoHvvVJB.js","./collapsible.stories-DmrXoEsa.js","./collapsible-TCbdh_v_.js","./drawer.stories-BdM7Wbzl.js","./field-checker-list-msg.stories-B_6usiWl.js","./field-checker-f9FOL58q.js","./field-icon-6Mrtj4c9.js","./field-value-checker-BOyFGXwK.js","./subform-fields-value-checker-DCstRpVF.js","./field-checker.stories-BghsIYEd.js","./field-icon.stories-D9Ukdb7l.js","./field-value-checker.stories-Ch-7H5CO.js","./fields-design-info-table.stories-CtmX3mmp.js","./fields-generating.stories-CAtWVnX3.js","./fields-generating-indicator-Cex4HigZ.js","./fields-previewer.stories-D3USvSB3.js","./subform-fields-value-checker.stories-BCg_WRIi.js","./react-18-Cn3rktXT.js","./DocsRenderer-GHJI37HO-DLf4p3c1.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var qw=Object.defineProperty;var Lw=(e,t,r)=>t in e?qw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xt=(e,t,r)=>Lw(e,typeof t!="symbol"?t+"":t,r);import{_ as Pe}from"./preload-helper-CmsKOCeN.js";function $w(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Bu={},Vw=Object.create,ic=Object.defineProperty,Uw=Object.getOwnPropertyDescriptor,ny=Object.getOwnPropertyNames,Jw=Object.getPrototypeOf,Hw=Object.prototype.hasOwnProperty,oa=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Y=(e,t)=>function(){return t||(0,e[ny(e)[0]])((t={exports:{}}).exports,t),t.exports},ur=(e,t)=>{for(var r in t)ic(e,r,{get:t[r],enumerable:!0})},Gw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ny(t))!Hw.call(e,i)&&i!==r&&ic(e,i,{get:()=>t[i],enumerable:!(n=Uw(t,i))||n.enumerable});return e},kt=(e,t,r)=>(r=e!=null?Vw(Jw(e)):{},Gw(t||!e||!e.__esModule?ic(r,"default",{value:e,enumerable:!0}):r,e)),zw=Y({"../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(i){return Object.keys(i).concat(Object.getOwnPropertySymbols(i))}:Object.keys;return function(i,o){return function a(s,p,l){var d,f,h,m=t.call(s),b=t.call(p);if(s===p)return!0;if(s==null||p==null)return!1;if(l.indexOf(s)>-1&&l.indexOf(p)>-1)return!0;if(l.push(s,p),m!=b||(d=n(s),f=n(p),d.length!=f.length||d.some(function(E){return!a(s[E],p[E],l)})))return!1;switch(m.slice(8,-1)){case"Symbol":return s.valueOf()==p.valueOf();case"Date":case"Number":return+s==+p||+s!=+s&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+p;case"Set":case"Map":d=s.entries(),f=p.entries();do if(!a((h=d.next()).value,f.next().value,l))return!1;while(!h.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),p=new Uint8Array(p);case"DataView":s=new Uint8Array(s.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=p.length)return!1;for(h=0;h<s.length;h++)if((h in s||h in p)&&(h in s!=h in p||!a(s[h],p[h],l)))return!1;return!0;case"Object":return a(r(s),r(p),l);default:return!1}}(i,o,[])}}()}}),Ww=Y({"../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((i,o)=>Math.min(i,o.length),1/0):0}}}),Kw=Y({"../node_modules/strip-indent/index.js"(e,t){var r=Ww();t.exports=n=>{let i=r(n);if(i===0)return n;let o=new RegExp(`^[ \\t]{${i}}`,"gm");return n.replace(o,"")}}}),Yw=Y({"../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,i)=>{if(i={indent:" ",includeEmptyLines:!1,...i},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof i.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i.indent}\``);if(n===0)return r;let o=i.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(o,i.indent.repeat(n))}}}),iy=Y({"../node_modules/redent/index.js"(e,t){var r=Kw(),n=Yw();t.exports=(i,o=0,a)=>n(r(i),o,a)}}),Xw=Y({"../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,i={"@@iterator":function(){return i},next:function(){if(n<r.length){var o=r[n];return n=n+1,{done:!1,value:o}}else return{done:!0}}};return i}e.default=t}}),Lo=Y({"../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=r(Xw());function r(o){return o&&o.__esModule?o:{default:o}}function n(o){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n(o)}function i(o,a){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:t.default.bind(a)}),o}}}),Qw=Y({"../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Lo());function r(f){return f&&f.__esModule?f:{default:f}}function n(f,h){return p(f)||s(f,h)||o(f,h)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(f,h){if(f){if(typeof f=="string")return a(f,h);var m={}.toString.call(f).slice(8,-1);return m==="Object"&&f.constructor&&(m=f.constructor.name),m==="Map"||m==="Set"?Array.from(f):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?a(f,h):void 0}}function a(f,h){(h==null||h>f.length)&&(h=f.length);for(var m=0,b=Array(h);m<h;m++)b[m]=f[m];return b}function s(f,h){var m=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(m!=null){var b,E,_,A,T=[],k=!0,O=!1;try{if(_=(m=m.call(f)).next,h===0){if(Object(m)!==m)return;k=!1}else for(;!(k=(b=_.call(m)).done)&&(T.push(b.value),T.length!==h);k=!0);}catch(R){O=!0,E=R}finally{try{if(!k&&m.return!=null&&(A=m.return(),Object(A)!==A))return}finally{if(O)throw E}}return T}}function p(f){if(Array.isArray(f))return f}var l=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],d={entries:function(){return l},forEach:function(f){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=0,b=l;m<b.length;m++){var E=n(b[m],2),_=E[0],A=E[1];f.call(h,A,_,l)}},get:function(f){var h=l.filter(function(m){return m[0]===f})[0];return h&&h[1]},has:function(f){return!!d.get(f)},keys:function(){return l.map(function(f){var h=n(f,1),m=h[0];return m})},values:function(){return l.map(function(f){var h=n(f,2),m=h[1];return m})}};e.default=(0,t.default)(d,d.entries())}}),Zw=Y({"../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Lo());function r(f){return f&&f.__esModule?f:{default:f}}function n(f,h){return p(f)||s(f,h)||o(f,h)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(f,h){if(f){if(typeof f=="string")return a(f,h);var m={}.toString.call(f).slice(8,-1);return m==="Object"&&f.constructor&&(m=f.constructor.name),m==="Map"||m==="Set"?Array.from(f):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?a(f,h):void 0}}function a(f,h){(h==null||h>f.length)&&(h=f.length);for(var m=0,b=Array(h);m<h;m++)b[m]=f[m];return b}function s(f,h){var m=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(m!=null){var b,E,_,A,T=[],k=!0,O=!1;try{if(_=(m=m.call(f)).next,h===0){if(Object(m)!==m)return;k=!1}else for(;!(k=(b=_.call(m)).done)&&(T.push(b.value),T.length!==h);k=!0);}catch(R){O=!0,E=R}finally{try{if(!k&&m.return!=null&&(A=m.return(),Object(A)!==A))return}finally{if(O)throw E}}return T}}function p(f){if(Array.isArray(f))return f}var l=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],d={entries:function(){return l},forEach:function(f){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=0,b=l;m<b.length;m++){var E=n(b[m],2),_=E[0],A=E[1];f.call(h,A,_,l)}},get:function(f){var h=l.filter(function(m){return m[0]===f})[0];return h&&h[1]},has:function(f){return!!d.get(f)},keys:function(){return l.map(function(f){var h=n(f,1),m=h[0];return m})},values:function(){return l.map(function(f){var h=n(f,2),m=h[1];return m})}};e.default=(0,t.default)(d,d.entries())}}),eC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),tC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),rC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),nC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),iC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),oC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),aC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),sC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),uC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};e.default=t}}),lC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),cC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),pC=Y({"../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),dC=Y({"../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=m(eC()),r=m(tC()),n=m(rC()),i=m(nC()),o=m(iC()),a=m(oC()),s=m(aC()),p=m(sC()),l=m(uC()),d=m(lC()),f=m(cC()),h=m(pC());function m(E){return E&&E.__esModule?E:{default:E}}var b=[["command",t.default],["composite",r.default],["input",n.default],["landmark",i.default],["range",o.default],["roletype",a.default],["section",s.default],["sectionhead",p.default],["select",l.default],["structure",d.default],["widget",f.default],["window",h.default]];e.default=b}}),fC=Y({"../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),hC=Y({"../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};e.default=t}}),mC=Y({"../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),yC=Y({"../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}}),gC=Y({"../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),bC=Y({"../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),EC=Y({"../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),vC=Y({"../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),AC=Y({"../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),_C=Y({"../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}}),wC=Y({"../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),CC=Y({"../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),TC=Y({"../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]};e.default=t}}),SC=Y({"../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),xC=Y({"../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),DC=Y({"../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),RC=Y({"../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),PC=Y({"../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}}),OC=Y({"../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),FC=Y({"../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),IC=Y({"../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),NC=Y({"../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),BC=Y({"../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),kC=Y({"../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),MC=Y({"../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),jC=Y({"../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]};e.default=t}}),qC=Y({"../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]};e.default=t}}),LC=Y({"../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),$C=Y({"../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]};e.default=t}}),VC=Y({"../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),UC=Y({"../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),JC=Y({"../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),HC=Y({"../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),GC=Y({"../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),zC=Y({"../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),WC=Y({"../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),KC=Y({"../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),YC=Y({"../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),XC=Y({"../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),QC=Y({"../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),ZC=Y({"../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),eT=Y({"../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]};e.default=t}}),tT=Y({"../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),rT=Y({"../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]};e.default=t}}),nT=Y({"../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]};e.default=t}}),iT=Y({"../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]};e.default=t}}),oT=Y({"../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),aT=Y({"../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),sT=Y({"../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),uT=Y({"../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]};e.default=t}}),lT=Y({"../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),cT=Y({"../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),pT=Y({"../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}}),dT=Y({"../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}}),fT=Y({"../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),hT=Y({"../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),mT=Y({"../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]};e.default=t}}),yT=Y({"../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),gT=Y({"../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),bT=Y({"../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}}),ET=Y({"../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),vT=Y({"../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]};e.default=t}}),AT=Y({"../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),_T=Y({"../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}}),wT=Y({"../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}}),CT=Y({"../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),TT=Y({"../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),ST=Y({"../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),xT=Y({"../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),DT=Y({"../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]};e.default=t}}),RT=Y({"../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]};e.default=t}}),PT=Y({"../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),OT=Y({"../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]};e.default=t}}),FT=Y({"../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),IT=Y({"../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),NT=Y({"../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]};e.default=t}}),BT=Y({"../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),kT=Y({"../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}}),MT=Y({"../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}}),jT=Y({"../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),qT=Y({"../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),LT=Y({"../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]};e.default=t}}),$T=Y({"../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]};e.default=t}}),VT=Y({"../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=P(fC()),r=P(hC()),n=P(mC()),i=P(yC()),o=P(gC()),a=P(bC()),s=P(EC()),p=P(vC()),l=P(AC()),d=P(_C()),f=P(wC()),h=P(CC()),m=P(TC()),b=P(SC()),E=P(xC()),_=P(DC()),A=P(RC()),T=P(PC()),k=P(OC()),O=P(FC()),R=P(IC()),y=P(NC()),S=P(BC()),C=P(kC()),D=P(MC()),J=P(jC()),M=P(qC()),G=P(LC()),L=P($C()),N=P(VC()),U=P(UC()),W=P(JC()),K=P(HC()),ne=P(GC()),be=P(zC()),xe=P(WC()),we=P(KC()),ue=P(YC()),He=P(XC()),Ve=P(QC()),Ce=P(ZC()),le=P(eT()),Ne=P(tT()),Be=P(rT()),ut=P(nT()),X=P(iT()),pe=P(oT()),ye=P(aT()),_e=P(sT()),Ae=P(uT()),Te=P(lT()),Se=P(cT()),ke=P(pT()),st=P(dT()),It=P(fT()),Le=P(hT()),yt=P(mT()),Ke=P(yT()),nr=P(gT()),Nt=P(bT()),fe=P(ET()),pt=P(vT()),Oe=P(AT()),At=P(_T()),et=P(wT()),wr=P(CT()),Or=P(TT()),gt=P(ST()),Fe=P(xT()),ir=P(DT()),ot=P(RT()),Jt=P(PT()),Lr=P(OT()),rt=P(FT()),_t=P(IT()),or=P(NT()),bt=P(BT()),nt=P(kT()),Bt=P(MT()),Re=P(jT()),w=P(qT()),B=P(LT()),F=P($T());function P(re){return re&&re.__esModule?re:{default:re}}var $=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",i.default],["banner",o.default],["blockquote",a.default],["button",s.default],["caption",p.default],["cell",l.default],["checkbox",d.default],["code",f.default],["columnheader",h.default],["combobox",m.default],["complementary",b.default],["contentinfo",E.default],["definition",_.default],["deletion",A.default],["dialog",T.default],["directory",k.default],["document",O.default],["emphasis",R.default],["feed",y.default],["figure",S.default],["form",C.default],["generic",D.default],["grid",J.default],["gridcell",M.default],["group",G.default],["heading",L.default],["img",N.default],["insertion",U.default],["link",W.default],["list",K.default],["listbox",ne.default],["listitem",be.default],["log",xe.default],["main",we.default],["mark",ue.default],["marquee",He.default],["math",Ve.default],["menu",Ce.default],["menubar",le.default],["menuitem",Ne.default],["menuitemcheckbox",Be.default],["menuitemradio",ut.default],["meter",X.default],["navigation",pe.default],["none",ye.default],["note",_e.default],["option",Ae.default],["paragraph",Te.default],["presentation",Se.default],["progressbar",ke.default],["radio",st.default],["radiogroup",It.default],["region",Le.default],["row",yt.default],["rowgroup",Ke.default],["rowheader",nr.default],["scrollbar",Nt.default],["search",fe.default],["searchbox",pt.default],["separator",Oe.default],["slider",At.default],["spinbutton",et.default],["status",wr.default],["strong",Or.default],["subscript",gt.default],["superscript",Fe.default],["switch",ir.default],["tab",ot.default],["table",Jt.default],["tablist",Lr.default],["tabpanel",rt.default],["term",_t.default],["textbox",or.default],["time",bt.default],["timer",nt.default],["toolbar",Bt.default],["tooltip",Re.default],["tree",w.default],["treegrid",B.default],["treeitem",F.default]];e.default=$}}),UT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),JT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),HT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),GT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),zT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),WT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}}),KT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),YT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),XT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),QT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),ZT=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),eS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}}),tS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),rS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),nS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),iS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}}),oS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),aS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),sS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),uS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),lS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),cS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),pS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),dS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),fS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),hS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),mS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),yS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),gS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}}),bS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]};e.default=t}}),ES=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),vS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),AS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),_S=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),wS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),CS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),TS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]};e.default=t}}),SS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),xS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]};e.default=t}}),DS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}}),RS=Y({"../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),PS=Y({"../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=le(UT()),r=le(JT()),n=le(HT()),i=le(GT()),o=le(zT()),a=le(WT()),s=le(KT()),p=le(YT()),l=le(XT()),d=le(QT()),f=le(ZT()),h=le(eS()),m=le(tS()),b=le(rS()),E=le(nS()),_=le(iS()),A=le(oS()),T=le(aS()),k=le(sS()),O=le(uS()),R=le(lS()),y=le(cS()),S=le(pS()),C=le(dS()),D=le(fS()),J=le(hS()),M=le(mS()),G=le(yS()),L=le(gS()),N=le(bS()),U=le(ES()),W=le(vS()),K=le(AS()),ne=le(_S()),be=le(wS()),xe=le(CS()),we=le(TS()),ue=le(SS()),He=le(xS()),Ve=le(DS()),Ce=le(RS());function le(Be){return Be&&Be.__esModule?Be:{default:Be}}var Ne=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",i.default],["doc-backlink",o.default],["doc-biblioentry",a.default],["doc-bibliography",s.default],["doc-biblioref",p.default],["doc-chapter",l.default],["doc-colophon",d.default],["doc-conclusion",f.default],["doc-cover",h.default],["doc-credit",m.default],["doc-credits",b.default],["doc-dedication",E.default],["doc-endnote",_.default],["doc-endnotes",A.default],["doc-epigraph",T.default],["doc-epilogue",k.default],["doc-errata",O.default],["doc-example",R.default],["doc-footnote",y.default],["doc-foreword",S.default],["doc-glossary",C.default],["doc-glossref",D.default],["doc-index",J.default],["doc-introduction",M.default],["doc-noteref",G.default],["doc-notice",L.default],["doc-pagebreak",N.default],["doc-pagefooter",U.default],["doc-pageheader",W.default],["doc-pagelist",K.default],["doc-part",ne.default],["doc-preface",be.default],["doc-prologue",xe.default],["doc-pullquote",we.default],["doc-qna",ue.default],["doc-subtitle",He.default],["doc-tip",Ve.default],["doc-toc",Ce.default]];e.default=Ne}}),OS=Y({"../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}}),FS=Y({"../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}}),IS=Y({"../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}}),NS=Y({"../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(OS()),r=i(FS()),n=i(IS());function i(a){return a&&a.__esModule?a:{default:a}}var o=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=o}}),oc=Y({"../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(dC()),r=a(VT()),n=a(PS()),i=a(NS()),o=a(Lo());function a(_){return _&&_.__esModule?_:{default:_}}function s(_,A){var T=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!T){if(Array.isArray(_)||(T=d(_))||A){T&&(_=T);var k=0,O=function(){};return{s:O,n:function(){return k>=_.length?{done:!0}:{done:!1,value:_[k++]}},e:function(C){throw C},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R,y=!0,S=!1;return{s:function(){T=T.call(_)},n:function(){var C=T.next();return y=C.done,C},e:function(C){S=!0,R=C},f:function(){try{y||T.return==null||T.return()}finally{if(S)throw R}}}}function p(_,A){return m(_)||h(_,A)||d(_,A)||l()}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(_,A){if(_){if(typeof _=="string")return f(_,A);var T={}.toString.call(_).slice(8,-1);return T==="Object"&&_.constructor&&(T=_.constructor.name),T==="Map"||T==="Set"?Array.from(_):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?f(_,A):void 0}}function f(_,A){(A==null||A>_.length)&&(A=_.length);for(var T=0,k=Array(A);T<A;T++)k[T]=_[T];return k}function h(_,A){var T=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(T!=null){var k,O,R,y,S=[],C=!0,D=!1;try{if(R=(T=T.call(_)).next,A===0){if(Object(T)!==T)return;C=!1}else for(;!(C=(k=R.call(T)).done)&&(S.push(k.value),S.length!==A);C=!0);}catch(J){D=!0,O=J}finally{try{if(!C&&T.return!=null&&(y=T.return(),Object(y)!==y))return}finally{if(D)throw O}}return S}}function m(_){if(Array.isArray(_))return _}var b=[].concat(t.default,r.default,n.default,i.default);b.forEach(function(_){var A=p(_,2),T=A[1],k=s(T.superClass),O;try{for(k.s();!(O=k.n()).done;){var R=O.value,y=s(R),S;try{var C=function(){var D=S.value,J=b.filter(function(U){var W=p(U,1),K=W[0];return K===D})[0];if(J)for(var M=J[1],G=0,L=Object.keys(M.props);G<L.length;G++){var N=L[G];Object.prototype.hasOwnProperty.call(T.props,N)||(T.props[N]=M.props[N])}};for(y.s();!(S=y.n()).done;)C()}catch(D){y.e(D)}finally{y.f()}}}catch(D){k.e(D)}finally{k.f()}});var E={entries:function(){return b},forEach:function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,T=s(b),k;try{for(T.s();!(k=T.n()).done;){var O=p(k.value,2),R=O[0],y=O[1];_.call(A,y,R,b)}}catch(S){T.e(S)}finally{T.f()}},get:function(_){var A=b.filter(function(T){return T[0]===_})[0];return A&&A[1]},has:function(_){return!!E.get(_)},keys:function(){return b.map(function(_){var A=p(_,1),T=A[0];return T})},values:function(){return b.map(function(_){var A=p(_,2),T=A[1];return T})}};e.default=(0,o.default)(E,E.entries())}}),BS=Y({"../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Lo()),r=n(oc());function n(y){return y&&y.__esModule?y:{default:y}}function i(y,S){return l(y)||p(y,S)||a(y,S)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(y,S){if(y){if(typeof y=="string")return s(y,S);var C={}.toString.call(y).slice(8,-1);return C==="Object"&&y.constructor&&(C=y.constructor.name),C==="Map"||C==="Set"?Array.from(y):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?s(y,S):void 0}}function s(y,S){(S==null||S>y.length)&&(S=y.length);for(var C=0,D=Array(S);C<S;C++)D[C]=y[C];return D}function p(y,S){var C=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(C!=null){var D,J,M,G,L=[],N=!0,U=!1;try{if(M=(C=C.call(y)).next,S===0){if(Object(C)!==C)return;N=!1}else for(;!(N=(D=M.call(C)).done)&&(L.push(D.value),L.length!==S);N=!0);}catch(W){U=!0,J=W}finally{try{if(!N&&C.return!=null&&(G=C.return(),Object(G)!==G))return}finally{if(U)throw J}}return L}}function l(y){if(Array.isArray(y))return y}var d=[],f=r.default.keys();for(A=0;A<f.length;A++)if(h=f[A],m=r.default.get(h),m)for(b=[].concat(m.baseConcepts,m.relatedConcepts),E=function(){var y=b[_];if(y.module==="HTML"){var S=y.concept;if(S){var C=d.filter(function(G){return k(G[0],S)})[0],D;C?D=C[1]:D=[];for(var J=!0,M=0;M<D.length;M++)if(D[M]===h){J=!1;break}J&&D.push(h),C||d.push([S,D])}}},_=0;_<b.length;_++)E();var h,m,b,E,_,A,T={entries:function(){return d},forEach:function(y){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,C=0,D=d;C<D.length;C++){var J=i(D[C],2),M=J[0],G=J[1];y.call(S,G,M,d)}},get:function(y){var S=d.filter(function(C){return y.name===C[0].name&&R(y.attributes,C[0].attributes)})[0];return S&&S[1]},has:function(y){return!!T.get(y)},keys:function(){return d.map(function(y){var S=i(y,1),C=S[0];return C})},values:function(){return d.map(function(y){var S=i(y,2),C=S[1];return C})}};function k(y,S){return y.name===S.name&&O(y.constraints,S.constraints)&&R(y.attributes,S.attributes)}function O(y,S){if(y===void 0&&S!==void 0||y!==void 0&&S===void 0)return!1;if(y!==void 0&&S!==void 0){if(y.length!==S.length)return!1;for(var C=0;C<y.length;C++)if(y[C]!==S[C])return!1}return!0}function R(y,S){if(y===void 0&&S!==void 0||y!==void 0&&S===void 0)return!1;if(y!==void 0&&S!==void 0){if(y.length!==S.length)return!1;for(var C=0;C<y.length;C++){if(y[C].name!==S[C].name||y[C].value!==S[C].value||y[C].constraints===void 0&&S[C].constraints!==void 0||y[C].constraints!==void 0&&S[C].constraints===void 0)return!1;if(y[C].constraints!==void 0&&S[C].constraints!==void 0){if(y[C].constraints.length!==S[C].constraints.length)return!1;for(var D=0;D<y[C].constraints.length;D++)if(y[C].constraints[D]!==S[C].constraints[D])return!1}}}return!0}e.default=(0,t.default)(T,T.entries())}}),kS=Y({"../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Lo()),r=n(oc());function n(R){return R&&R.__esModule?R:{default:R}}function i(R,y){return l(R)||p(R,y)||a(R,y)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(R,y){if(R){if(typeof R=="string")return s(R,y);var S={}.toString.call(R).slice(8,-1);return S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set"?Array.from(R):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?s(R,y):void 0}}function s(R,y){(y==null||y>R.length)&&(y=R.length);for(var S=0,C=Array(y);S<y;S++)C[S]=R[S];return C}function p(R,y){var S=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(S!=null){var C,D,J,M,G=[],L=!0,N=!1;try{if(J=(S=S.call(R)).next,y===0){if(Object(S)!==S)return;L=!1}else for(;!(L=(C=J.call(S)).done)&&(G.push(C.value),G.length!==y);L=!0);}catch(U){N=!0,D=U}finally{try{if(!L&&S.return!=null&&(M=S.return(),Object(M)!==M))return}finally{if(N)throw D}}return G}}function l(R){if(Array.isArray(R))return R}var d=[],f=r.default.keys();for(k=0;k<f.length;k++)if(h=f[k],m=r.default.get(h),b=[],m){for(E=[].concat(m.baseConcepts,m.relatedConcepts),T=0;T<E.length;T++)_=E[T],_.module==="HTML"&&(A=_.concept,A!=null&&b.push(A));b.length>0&&d.push([h,b])}var h,m,b,E,_,A,T,k,O={entries:function(){return d},forEach:function(R){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=0,C=d;S<C.length;S++){var D=i(C[S],2),J=D[0],M=D[1];R.call(y,M,J,d)}},get:function(R){var y=d.filter(function(S){return S[0]===R})[0];return y&&y[1]},has:function(R){return!!O.get(R)},keys:function(){return d.map(function(R){var y=i(R,1),S=y[0];return S})},values:function(){return d.map(function(R){var y=i(R,2),S=y[1];return S})}};e.default=(0,t.default)(O,O.entries())}}),ac=Y({"../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=a(Qw()),r=a(Zw()),n=a(oc()),i=a(BS()),o=a(kS());function a(s){return s&&s.__esModule?s:{default:s}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=i.default,e.roleElements=o.default}}),oy=Y({"../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}}),ay=Y({"../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(i){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var o=String(i),a=o.length,s=-1,p,l="",d=o.charCodeAt(0);++s<a;){if(p=o.charCodeAt(s),p==0){l+="�";continue}if(p>=1&&p<=31||p==127||s==0&&p>=48&&p<=57||s==1&&p>=48&&p<=57&&d==45){l+="\\"+p.toString(16)+" ";continue}if(s==0&&a==1&&p==45){l+="\\"+o.charAt(s);continue}if(p>=128||p==45||p==95||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122){l+=o.charAt(s);continue}l+="\\"+o.charAt(s)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),sy=Y({"../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,t){var r=(o=0)=>a=>`\x1B[${38+o};5;${a}m`,n=(o=0)=>(a,s,p)=>`\x1B[${38+o};2;${a};${s};${p}m`;function i(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(let[s,p]of Object.entries(a)){for(let[l,d]of Object.entries(p))a[l]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},p[l]=a[l],o.set(d[0],d[1]);Object.defineProperty(a,s,{value:p,enumerable:!1})}return Object.defineProperty(a,"codes",{value:o,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi256=r(),a.color.ansi16m=n(),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=n(10),Object.defineProperties(a,{rgbToAnsi256:{value:(s,p,l)=>s===p&&p===l?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(p/255*5)+Math.round(l/255*5),enumerable:!1},hexToRgb:{value:s=>{let p=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!p)return[0,0,0];let{colorString:l}=p.groups;l.length===3&&(l=l.split("").map(f=>f+f).join(""));let d=Number.parseInt(l,16);return[d>>16&255,d>>8&255,d&255]},enumerable:!1},hexToAnsi256:{value:s=>a.rgbToAnsi256(...a.hexToRgb(s)),enumerable:!1}}),a}Object.defineProperty(t,"exports",{enumerable:!0,get:i})}}),ds=Y({"../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=i,e.printObjectProperties=o;var t=(a,s)=>{let p=Object.keys(a).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(l=>{Object.getOwnPropertyDescriptor(a,l).enumerable&&p.push(l)}),p};function r(a,s,p,l,d,f,h=": "){let m="",b=a.next();if(!b.done){m+=s.spacingOuter;let E=p+s.indent;for(;!b.done;){let _=f(b.value[0],s,E,l,d),A=f(b.value[1],s,E,l,d);m+=E+_+h+A,b=a.next(),b.done?s.min||(m+=","):m+=","+s.spacingInner}m+=s.spacingOuter+p}return m}function n(a,s,p,l,d,f){let h="",m=a.next();if(!m.done){h+=s.spacingOuter;let b=p+s.indent;for(;!m.done;)h+=b+f(m.value,s,b,l,d),m=a.next(),m.done?s.min||(h+=","):h+=","+s.spacingInner;h+=s.spacingOuter+p}return h}function i(a,s,p,l,d,f){let h="";if(a.length){h+=s.spacingOuter;let m=p+s.indent;for(let b=0;b<a.length;b++)h+=m,b in a&&(h+=f(a[b],s,m,l,d)),b<a.length-1?h+=","+s.spacingInner:s.min||(h+=",");h+=s.spacingOuter+p}return h}function o(a,s,p,l,d,f){let h="",m=t(a,s.compareKeys);if(m.length){h+=s.spacingOuter;let b=p+s.indent;for(let E=0;E<m.length;E++){let _=m[E],A=f(_,s,b,l,d),T=f(a[_],s,b,l,d);h+=b+A+": "+T,E<m.length-1?h+=","+s.spacingInner:s.min||(h+=",")}h+=s.spacingOuter+p}return h}}}),MS=Y({"../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=ds(),r=function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),n=r["jest-symbol-do-not-touch"]||r.Symbol,i=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,o=" ",a=(d,f,h,m,b,E)=>{let _=d.toString();return _==="ArrayContaining"||_==="ArrayNotContaining"?++m>f.maxDepth?"["+_+"]":_+o+"["+(0,t.printListItems)(d.sample,f,h,m,b,E)+"]":_==="ObjectContaining"||_==="ObjectNotContaining"?++m>f.maxDepth?"["+_+"]":_+o+"{"+(0,t.printObjectProperties)(d.sample,f,h,m,b,E)+"}":_==="StringMatching"||_==="StringNotMatching"||_==="StringContaining"||_==="StringNotContaining"?_+o+E(d.sample,f,h,m,b):d.toAsymmetricMatcher()};e.serialize=a;var s=d=>d&&d.$$typeof===i;e.test=s;var p={serialize:a,test:s},l=p;e.default=l}}),jS=Y({"../node_modules/pretty-format/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}}}),qS=Y({"../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(jS()),r=n(sy());function n(l){return l&&l.__esModule?l:{default:l}}var i=l=>l.replace((0,t.default)(),d=>{switch(d){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),o=l=>typeof l=="string"&&!!l.match((0,t.default)());e.test=o;var a=(l,d,f,h,m,b)=>b(i(l),d,f,h,m);e.serialize=a;var s={serialize:a,test:o},p=s;e.default=p}}),LS=Y({"../node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=ds(),r=" ",n=["DOMStringMap","NamedNodeMap"],i=/^(HTML\w*Collection|NodeList)$/,o=f=>n.indexOf(f)!==-1||i.test(f),a=f=>f&&f.constructor&&!!f.constructor.name&&o(f.constructor.name);e.test=a;var s=f=>f.constructor.name==="NamedNodeMap",p=(f,h,m,b,E,_)=>{let A=f.constructor.name;return++b>h.maxDepth?"["+A+"]":(h.min?"":A+r)+(n.indexOf(A)!==-1?"{"+(0,t.printObjectProperties)(s(f)?Array.from(f).reduce((T,k)=>(T[k.name]=k.value,T),{}):{...f},h,m,b,E,_)+"}":"["+(0,t.printListItems)(Array.from(f),h,m,b,E,_)+"]")};e.serialize=p;var l={serialize:p,test:a},d=l;e.default=d}}),$S=Y({"../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}}}),sc=Y({"../node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r($S());function r(l){return l&&l.__esModule?l:{default:l}}var n=(l,d,f,h,m,b,E)=>{let _=h+f.indent,A=f.colors;return l.map(T=>{let k=d[T],O=E(k,f,_,m,b);return typeof k!="string"&&(O.indexOf(`
|
|
9
|
-
`)!==-1&&(O=f.spacingOuter+_+O+f.spacingOuter+h),O="{"+O+"}"),f.spacingInner+h+A.prop.open+T+A.prop.close+"="+A.value.open+O+A.value.close}).join("")};e.printProps=n;var i=(l,d,f,h,m,b)=>l.map(E=>d.spacingOuter+f+(typeof E=="string"?o(E,d):b(E,d,f,h,m))).join("");e.printChildren=i;var o=(l,d)=>{let f=d.colors.content;return f.open+(0,t.default)(l)+f.close};e.printText=o;var a=(l,d)=>{let f=d.colors.comment;return f.open+"<!--"+(0,t.default)(l)+"-->"+f.close};e.printComment=a;var s=(l,d,f,h,m)=>{let b=h.colors.tag;return b.open+"<"+l+(d&&b.close+d+h.spacingOuter+m+b.open)+(f?">"+b.close+f+h.spacingOuter+m+b.open+"</"+l:(d&&!h.min?"":" ")+"/")+">"+b.close};e.printElement=s;var p=(l,d)=>{let f=d.colors.tag;return f.open+"<"+l+f.close+" …"+f.open+" />"+f.close};e.printElementAsLeaf=p}}),VS=Y({"../node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=sc(),r=1,n=3,i=8,o=11,a=/^((HTML|SVG)\w*)?Element$/,s=_=>{try{return typeof _.hasAttribute=="function"&&_.hasAttribute("is")}catch{return!1}},p=_=>{let A=_.constructor.name,{nodeType:T,tagName:k}=_,O=typeof k=="string"&&k.includes("-")||s(_);return T===r&&(a.test(A)||O)||T===n&&A==="Text"||T===i&&A==="Comment"||T===o&&A==="DocumentFragment"},l=_=>{var A;return(_==null||(A=_.constructor)===null||A===void 0?void 0:A.name)&&p(_)};e.test=l;function d(_){return _.nodeType===n}function f(_){return _.nodeType===i}function h(_){return _.nodeType===o}var m=(_,A,T,k,O,R)=>{if(d(_))return(0,t.printText)(_.data,A);if(f(_))return(0,t.printComment)(_.data,A);let y=h(_)?"DocumentFragment":_.tagName.toLowerCase();return++k>A.maxDepth?(0,t.printElementAsLeaf)(y,A):(0,t.printElement)(y,(0,t.printProps)(h(_)?[]:Array.from(_.attributes).map(S=>S.name).sort(),h(_)?{}:Array.from(_.attributes).reduce((S,C)=>(S[C.name]=C.value,S),{}),A,T+A.indent,k,O,R),(0,t.printChildren)(Array.prototype.slice.call(_.childNodes||_.children),A,T+A.indent,k,O,R),A,T)};e.serialize=m;var b={serialize:m,test:l},E=b;e.default=E}}),US=Y({"../node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=ds(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",i="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",p="@@__IMMUTABLE_SEQ__@@",l="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",f=C=>"Immutable."+C,h=C=>"["+C+"]",m=" ",b="…",E=(C,D,J,M,G,L,N)=>++M>D.maxDepth?h(f(N)):f(N)+m+"{"+(0,t.printIteratorEntries)(C.entries(),D,J,M,G,L)+"}";function _(C){let D=0;return{next(){if(D<C._keys.length){let J=C._keys[D++];return{done:!1,value:[J,C.get(J)]}}return{done:!0,value:void 0}}}}var A=(C,D,J,M,G,L)=>{let N=f(C._name||"Record");return++M>D.maxDepth?h(N):N+m+"{"+(0,t.printIteratorEntries)(_(C),D,J,M,G,L)+"}"},T=(C,D,J,M,G,L)=>{let N=f("Seq");return++M>D.maxDepth?h(N):C[i]?N+m+"{"+(C._iter||C._object?(0,t.printIteratorEntries)(C.entries(),D,J,M,G,L):b)+"}":N+m+"["+(C._iter||C._array||C._collection||C._iterable?(0,t.printIteratorValues)(C.values(),D,J,M,G,L):b)+"]"},k=(C,D,J,M,G,L,N)=>++M>D.maxDepth?h(f(N)):f(N)+m+"["+(0,t.printIteratorValues)(C.values(),D,J,M,G,L)+"]",O=(C,D,J,M,G,L)=>C[o]?E(C,D,J,M,G,L,C[a]?"OrderedMap":"Map"):C[n]?k(C,D,J,M,G,L,"List"):C[l]?k(C,D,J,M,G,L,C[a]?"OrderedSet":"Set"):C[d]?k(C,D,J,M,G,L,"Stack"):C[p]?T(C,D,J,M,G,L):A(C,D,J,M,G,L);e.serialize=O;var R=C=>C&&(C[r]===!0||C[s]===!0);e.test=R;var y={serialize:O,test:R},S=y;e.default=S}}),JS=Y({"../node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,i=60108,o=60114,a=60109,s=60110,p=60112,l=60113,d=60120,f=60115,h=60116,m=60121,b=60122,E=60117,_=60129,A=60131;typeof Symbol=="function"&&Symbol.for&&(T=Symbol.for,t=T("react.element"),r=T("react.portal"),n=T("react.fragment"),i=T("react.strict_mode"),o=T("react.profiler"),a=T("react.provider"),s=T("react.context"),p=T("react.forward_ref"),l=T("react.suspense"),d=T("react.suspense_list"),f=T("react.memo"),h=T("react.lazy"),m=T("react.block"),b=T("react.server.block"),E=T("react.fundamental"),_=T("react.debug_trace_mode"),A=T("react.legacy_hidden"));var T;function k(N){if(typeof N=="object"&&N!==null){var U=N.$$typeof;switch(U){case t:switch(N=N.type,N){case n:case o:case i:case l:case d:return N;default:switch(N=N&&N.$$typeof,N){case s:case p:case h:case f:case a:return N;default:return U}}case r:return U}}}var O=a,R=t,y=p,S=n,C=h,D=f,J=r,M=o,G=i,L=l;e.ContextConsumer=s,e.ContextProvider=O,e.Element=R,e.ForwardRef=y,e.Fragment=S,e.Lazy=C,e.Memo=D,e.Portal=J,e.Profiler=M,e.StrictMode=G,e.Suspense=L,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(N){return k(N)===s},e.isContextProvider=function(N){return k(N)===a},e.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===t},e.isForwardRef=function(N){return k(N)===p},e.isFragment=function(N){return k(N)===n},e.isLazy=function(N){return k(N)===h},e.isMemo=function(N){return k(N)===f},e.isPortal=function(N){return k(N)===r},e.isProfiler=function(N){return k(N)===o},e.isStrictMode=function(N){return k(N)===i},e.isSuspense=function(N){return k(N)===l},e.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===n||N===o||N===_||N===i||N===l||N===d||N===A||typeof N=="object"&&N!==null&&(N.$$typeof===h||N.$$typeof===f||N.$$typeof===a||N.$$typeof===s||N.$$typeof===p||N.$$typeof===E||N.$$typeof===m||N[0]===b)},e.typeOf=k}}),HS=Y({"../node_modules/pretty-format/node_modules/react-is/index.js"(e,t){t.exports=JS()}}),GS=Y({"../node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=i(HS()),r=sc();function n(h){if(typeof WeakMap!="function")return null;var m=new WeakMap,b=new WeakMap;return(n=function(E){return E?b:m})(h)}function i(h,m){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var b=n(m);if(b&&b.has(h))return b.get(h);var E={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in h)if(A!=="default"&&Object.prototype.hasOwnProperty.call(h,A)){var T=_?Object.getOwnPropertyDescriptor(h,A):null;T&&(T.get||T.set)?Object.defineProperty(E,A,T):E[A]=h[A]}return E.default=h,b&&b.set(h,E),E}var o=(h,m=[])=>(Array.isArray(h)?h.forEach(b=>{o(b,m)}):h!=null&&h!==!1&&m.push(h),m),a=h=>{let m=h.type;if(typeof m=="string")return m;if(typeof m=="function")return m.displayName||m.name||"Unknown";if(t.isFragment(h))return"React.Fragment";if(t.isSuspense(h))return"React.Suspense";if(typeof m=="object"&&m!==null){if(t.isContextProvider(h))return"Context.Provider";if(t.isContextConsumer(h))return"Context.Consumer";if(t.isForwardRef(h)){if(m.displayName)return m.displayName;let b=m.render.displayName||m.render.name||"";return b!==""?"ForwardRef("+b+")":"ForwardRef"}if(t.isMemo(h)){let b=m.displayName||m.type.displayName||m.type.name||"";return b!==""?"Memo("+b+")":"Memo"}}return"UNDEFINED"},s=h=>{let{props:m}=h;return Object.keys(m).filter(b=>b!=="children"&&m[b]!==void 0).sort()},p=(h,m,b,E,_,A)=>++E>m.maxDepth?(0,r.printElementAsLeaf)(a(h),m):(0,r.printElement)(a(h),(0,r.printProps)(s(h),h.props,m,b+m.indent,E,_,A),(0,r.printChildren)(o(h.props.children),m,b+m.indent,E,_,A),m,b);e.serialize=p;var l=h=>h!=null&&t.isElement(h);e.test=l;var d={serialize:p,test:l},f=d;e.default=f}}),zS=Y({"../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=sc(),r=function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),n=r["jest-symbol-do-not-touch"]||r.Symbol,i=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,o=d=>{let{props:f}=d;return f?Object.keys(f).filter(h=>f[h]!==void 0).sort():[]},a=(d,f,h,m,b,E)=>++m>f.maxDepth?(0,t.printElementAsLeaf)(d.type,f):(0,t.printElement)(d.type,d.props?(0,t.printProps)(o(d),d.props,f,h+f.indent,m,b,E):"",d.children?(0,t.printChildren)(d.children,f,h+f.indent,m,b,E):"",f,h);e.serialize=a;var s=d=>d&&d.$$typeof===i;e.test=s;var p={serialize:a,test:s},l=p;e.default=l}}),WS=Y({"../node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=Ne,e.plugins=void 0;var t=d(sy()),r=ds(),n=d(MS()),i=d(qS()),o=d(LS()),a=d(VS()),s=d(US()),p=d(GS()),l=d(zS());function d(X){return X&&X.__esModule?X:{default:X}}var f=Object.prototype.toString,h=Date.prototype.toISOString,m=Error.prototype.toString,b=RegExp.prototype.toString,E=X=>typeof X.constructor=="function"&&X.constructor.name||"Object",_=X=>typeof window<"u"&&X===window,A=/^Symbol\((.*)\)(.*)$/,T=/\n/gi,k=class extends Error{constructor(X,pe){super(X),this.stack=pe,this.name=this.constructor.name}};function O(X){return X==="[object Array]"||X==="[object ArrayBuffer]"||X==="[object DataView]"||X==="[object Float32Array]"||X==="[object Float64Array]"||X==="[object Int8Array]"||X==="[object Int16Array]"||X==="[object Int32Array]"||X==="[object Uint8Array]"||X==="[object Uint8ClampedArray]"||X==="[object Uint16Array]"||X==="[object Uint32Array]"}function R(X){return Object.is(X,-0)?"-0":String(X)}function y(X){return`${X}n`}function S(X,pe){return pe?"[Function "+(X.name||"anonymous")+"]":"[Function]"}function C(X){return String(X).replace(A,"Symbol($1)")}function D(X){return"["+m.call(X)+"]"}function J(X,pe,ye,_e){if(X===!0||X===!1)return""+X;if(X===void 0)return"undefined";if(X===null)return"null";let Ae=typeof X;if(Ae==="number")return R(X);if(Ae==="bigint")return y(X);if(Ae==="string")return _e?'"'+X.replace(/"|\\/g,"\\$&")+'"':'"'+X+'"';if(Ae==="function")return S(X,pe);if(Ae==="symbol")return C(X);let Te=f.call(X);return Te==="[object WeakMap]"?"WeakMap {}":Te==="[object WeakSet]"?"WeakSet {}":Te==="[object Function]"||Te==="[object GeneratorFunction]"?S(X,pe):Te==="[object Symbol]"?C(X):Te==="[object Date]"?isNaN(+X)?"Date { NaN }":h.call(X):Te==="[object Error]"?D(X):Te==="[object RegExp]"?ye?b.call(X).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(X):X instanceof Error?D(X):null}function M(X,pe,ye,_e,Ae,Te){if(Ae.indexOf(X)!==-1)return"[Circular]";Ae=Ae.slice(),Ae.push(X);let Se=++_e>pe.maxDepth,ke=pe.min;if(pe.callToJSON&&!Se&&X.toJSON&&typeof X.toJSON=="function"&&!Te)return U(X.toJSON(),pe,ye,_e,Ae,!0);let st=f.call(X);return st==="[object Arguments]"?Se?"[Arguments]":(ke?"":"Arguments ")+"["+(0,r.printListItems)(X,pe,ye,_e,Ae,U)+"]":O(st)?Se?"["+X.constructor.name+"]":(ke||!pe.printBasicPrototype&&X.constructor.name==="Array"?"":X.constructor.name+" ")+"["+(0,r.printListItems)(X,pe,ye,_e,Ae,U)+"]":st==="[object Map]"?Se?"[Map]":"Map {"+(0,r.printIteratorEntries)(X.entries(),pe,ye,_e,Ae,U," => ")+"}":st==="[object Set]"?Se?"[Set]":"Set {"+(0,r.printIteratorValues)(X.values(),pe,ye,_e,Ae,U)+"}":Se||_(X)?"["+E(X)+"]":(ke||!pe.printBasicPrototype&&E(X)==="Object"?"":E(X)+" ")+"{"+(0,r.printObjectProperties)(X,pe,ye,_e,Ae,U)+"}"}function G(X){return X.serialize!=null}function L(X,pe,ye,_e,Ae,Te){let Se;try{Se=G(X)?X.serialize(pe,ye,_e,Ae,Te,U):X.print(pe,ke=>U(ke,ye,_e,Ae,Te),ke=>{let st=_e+ye.indent;return st+ke.replace(T,`
|
|
10
|
-
`+st)},{edgeSpacing:ye.spacingOuter,min:ye.min,spacing:ye.spacingInner},ye.colors)}catch(ke){throw new k(ke.message,ke.stack)}if(typeof Se!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Se}".`);return Se}function N(X,pe){for(let ye=0;ye<X.length;ye++)try{if(X[ye].test(pe))return X[ye]}catch(_e){throw new k(_e.message,_e.stack)}return null}function U(X,pe,ye,_e,Ae,Te){let Se=N(pe.plugins,X);if(Se!==null)return L(Se,X,pe,ye,_e,Ae);let ke=J(X,pe.printFunctionName,pe.escapeRegex,pe.escapeString);return ke!==null?ke:M(X,pe,ye,_e,Ae,Te)}var W={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},K=Object.keys(W),ne={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:W};e.DEFAULT_OPTIONS=ne;function be(X){if(Object.keys(X).forEach(pe=>{if(!ne.hasOwnProperty(pe))throw new Error(`pretty-format: Unknown option "${pe}".`)}),X.min&&X.indent!==void 0&&X.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(X.theme!==void 0){if(X.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof X.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof X.theme}".`)}}var xe=X=>K.reduce((pe,ye)=>{let _e=X.theme&&X.theme[ye]!==void 0?X.theme[ye]:W[ye],Ae=_e&&t.default[_e];if(Ae&&typeof Ae.close=="string"&&typeof Ae.open=="string")pe[ye]=Ae;else throw new Error(`pretty-format: Option "theme" has a key "${ye}" whose value "${_e}" is undefined in ansi-styles.`);return pe},Object.create(null)),we=()=>K.reduce((X,pe)=>(X[pe]={close:"",open:""},X),Object.create(null)),ue=X=>X&&X.printFunctionName!==void 0?X.printFunctionName:ne.printFunctionName,He=X=>X&&X.escapeRegex!==void 0?X.escapeRegex:ne.escapeRegex,Ve=X=>X&&X.escapeString!==void 0?X.escapeString:ne.escapeString,Ce=X=>{var pe;return{callToJSON:X&&X.callToJSON!==void 0?X.callToJSON:ne.callToJSON,colors:X&&X.highlight?xe(X):we(),compareKeys:X&&typeof X.compareKeys=="function"?X.compareKeys:ne.compareKeys,escapeRegex:He(X),escapeString:Ve(X),indent:X&&X.min?"":le(X&&X.indent!==void 0?X.indent:ne.indent),maxDepth:X&&X.maxDepth!==void 0?X.maxDepth:ne.maxDepth,min:X&&X.min!==void 0?X.min:ne.min,plugins:X&&X.plugins!==void 0?X.plugins:ne.plugins,printBasicPrototype:(pe=X?.printBasicPrototype)!==null&&pe!==void 0?pe:!0,printFunctionName:ue(X),spacingInner:X&&X.min?" ":`
|
|
11
|
-
`,spacingOuter:X&&X.min?"":`
|
|
12
|
-
`}};function le(X){return new Array(X+1).join(" ")}function Ne(X,pe){if(pe&&(be(pe),pe.plugins)){let _e=N(pe.plugins,X);if(_e!==null)return L(_e,X,Ce(pe),"",0,[])}let ye=J(X,ue(pe),He(pe),Ve(pe));return ye!==null?ye:M(X,Ce(pe),"",0,[])}var Be={AsymmetricMatcher:n.default,ConvertAnsi:i.default,DOMCollection:o.default,DOMElement:a.default,Immutable:s.default,ReactElement:p.default,ReactTestComponent:l.default};e.plugins=Be;var ut=Ne;e.default=ut}}),KS=Y({"../node_modules/lz-string/libs/lz-string.js"(e,t){var r=function(){var n=String.fromCharCode,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function s(l,d){if(!a[l]){a[l]={};for(var f=0;f<l.length;f++)a[l][l.charAt(f)]=f}return a[l][d]}var p={compressToBase64:function(l){if(l==null)return"";var d=p._compress(l,6,function(f){return i.charAt(f)});switch(d.length%4){default:case 0:return d;case 1:return d+"===";case 2:return d+"==";case 3:return d+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:p._decompress(l.length,32,function(d){return s(i,l.charAt(d))})},compressToUTF16:function(l){return l==null?"":p._compress(l,15,function(d){return n(d+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:p._decompress(l.length,16384,function(d){return l.charCodeAt(d)-32})},compressToUint8Array:function(l){for(var d=p.compress(l),f=new Uint8Array(d.length*2),h=0,m=d.length;h<m;h++){var b=d.charCodeAt(h);f[h*2]=b>>>8,f[h*2+1]=b%256}return f},decompressFromUint8Array:function(l){if(l==null)return p.decompress(l);for(var d=new Array(l.length/2),f=0,h=d.length;f<h;f++)d[f]=l[f*2]*256+l[f*2+1];var m=[];return d.forEach(function(b){m.push(n(b))}),p.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":p._compress(l,6,function(d){return o.charAt(d)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),p._decompress(l.length,32,function(d){return s(o,l.charAt(d))}))},compress:function(l){return p._compress(l,16,function(d){return n(d)})},_compress:function(l,d,f){if(l==null)return"";var h,m,b={},E={},_="",A="",T="",k=2,O=3,R=2,y=[],S=0,C=0,D;for(D=0;D<l.length;D+=1)if(_=l.charAt(D),Object.prototype.hasOwnProperty.call(b,_)||(b[_]=O++,E[_]=!0),A=T+_,Object.prototype.hasOwnProperty.call(b,A))T=A;else{if(Object.prototype.hasOwnProperty.call(E,T)){if(T.charCodeAt(0)<256){for(h=0;h<R;h++)S=S<<1,C==d-1?(C=0,y.push(f(S)),S=0):C++;for(m=T.charCodeAt(0),h=0;h<8;h++)S=S<<1|m&1,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=m>>1}else{for(m=1,h=0;h<R;h++)S=S<<1|m,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=0;for(m=T.charCodeAt(0),h=0;h<16;h++)S=S<<1|m&1,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=m>>1}k--,k==0&&(k=Math.pow(2,R),R++),delete E[T]}else for(m=b[T],h=0;h<R;h++)S=S<<1|m&1,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=m>>1;k--,k==0&&(k=Math.pow(2,R),R++),b[A]=O++,T=String(_)}if(T!==""){if(Object.prototype.hasOwnProperty.call(E,T)){if(T.charCodeAt(0)<256){for(h=0;h<R;h++)S=S<<1,C==d-1?(C=0,y.push(f(S)),S=0):C++;for(m=T.charCodeAt(0),h=0;h<8;h++)S=S<<1|m&1,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=m>>1}else{for(m=1,h=0;h<R;h++)S=S<<1|m,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=0;for(m=T.charCodeAt(0),h=0;h<16;h++)S=S<<1|m&1,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=m>>1}k--,k==0&&(k=Math.pow(2,R),R++),delete E[T]}else for(m=b[T],h=0;h<R;h++)S=S<<1|m&1,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=m>>1;k--,k==0&&(k=Math.pow(2,R),R++)}for(m=2,h=0;h<R;h++)S=S<<1|m&1,C==d-1?(C=0,y.push(f(S)),S=0):C++,m=m>>1;for(;;)if(S=S<<1,C==d-1){y.push(f(S));break}else C++;return y.join("")},decompress:function(l){return l==null?"":l==""?null:p._decompress(l.length,32768,function(d){return l.charCodeAt(d)})},_decompress:function(l,d,f){var h=[],m=4,b=4,E=3,_="",A=[],T,k,O,R,y,S,C,D={val:f(0),position:d,index:1};for(T=0;T<3;T+=1)h[T]=T;for(O=0,y=Math.pow(2,2),S=1;S!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*S,S<<=1;switch(O){case 0:for(O=0,y=Math.pow(2,8),S=1;S!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*S,S<<=1;C=n(O);break;case 1:for(O=0,y=Math.pow(2,16),S=1;S!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*S,S<<=1;C=n(O);break;case 2:return""}for(h[3]=C,k=C,A.push(C);;){if(D.index>l)return"";for(O=0,y=Math.pow(2,E),S=1;S!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*S,S<<=1;switch(C=O){case 0:for(O=0,y=Math.pow(2,8),S=1;S!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*S,S<<=1;h[b++]=n(O),C=b-1,m--;break;case 1:for(O=0,y=Math.pow(2,16),S=1;S!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*S,S<<=1;h[b++]=n(O),C=b-1,m--;break;case 2:return A.join("")}if(m==0&&(m=Math.pow(2,E),E++),h[C])_=h[C];else if(C===b)_=k+k.charAt(0);else return null;A.push(_),h[b++]=k+_.charAt(0),m--,k=_,m==0&&(m=Math.pow(2,E),E++)}}};return p}();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),uy=Y({"../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,i,o){function a(l,d){if(!i[l]){if(!n[l]){var f=typeof oa=="function"&&oa;if(!d&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var m=i[l]={exports:{}};n[l][0].call(m.exports,function(b){var E=n[l][1][b];return a(E||b)},m,m.exports,r,n,i,o)}return i[l].exports}for(var s=typeof oa=="function"&&oa,p=0;p<o.length;p++)a(o[p]);return a}({1:[function(r,n,i){n.exports=function(o){if(typeof Map!="function"||o){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,i){function o(){return this.list=[],this.lastItem=void 0,this.size=0,this}o.prototype.get=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(s=this.indexOf(a),s>=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(a,s){var p;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=s,this):(p=this.indexOf(a),p>=0?(this.lastItem=this.list[p],this.list[p].val=s,this):(this.lastItem={key:a,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),s=this.indexOf(a),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(a){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(a,s){var p;for(p=0;p<this.size;p++)a.call(s||this,this.list[p].val,this.list[p].key,this)},o.prototype.indexOf=function(a){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,a))return s;return-1},o.prototype.isEqual=function(a,s){return a===s||a!==a&&s!==s},n.exports=o},{}],3:[function(r,n,i){var o=r("map-or-similar");n.exports=function(l){var d=new o(!1),f=[];return function(h){var m=function(){var b=d,E,_,A=arguments.length-1,T=Array(A+1),k=!0,O;if((m.numArgs||m.numArgs===0)&&m.numArgs!==A+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(O=0;O<A;O++){if(T[O]={cacheItem:b,arg:arguments[O]},b.has(arguments[O])){b=b.get(arguments[O]);continue}k=!1,E=new o(!1),b.set(arguments[O],E),b=E}return k&&(b.has(arguments[A])?_=b.get(arguments[A]):k=!1),k||(_=h.apply(null,arguments),b.set(arguments[A],_)),l>0&&(T[A]={cacheItem:b,arg:arguments[A]},k?a(f,T):f.push(T),f.length>l&&s(f.shift())),m.wasMemoized=k,m.numArgs=A+1,_};return m.limit=l,m.wasMemoized=!1,m.cache=d,m.lru=f,m}};function a(l,d){var f=l.length,h=d.length,m,b,E;for(b=0;b<f;b++){for(m=!0,E=0;E<h;E++)if(!p(l[b][E].arg,d[E].arg)){m=!1;break}if(m)break}l.push(l.splice(b,1)[0])}function s(l){var d=l.length,f=l[d-1],h,m;for(f.cacheItem.delete(f.arg),m=d-2;m>=0&&(f=l[m],h=f.cacheItem.get(f.arg),!h||!h.size);m--)f.cacheItem.delete(f.arg)}function p(l,d){return l===d||l!==l&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),ly=Y({"../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(i,o)=>"%"+((o<16?"0":"")+o.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(i){let o=i.length;if(o===0)return"";let a="",s=0,p=0;e:for(;p<o;p++){let l=i.charCodeAt(p);for(;l<128;){if(r[l]!==1&&(s<p&&(a+=i.slice(s,p)),s=p+1,a+=t[l]),++p===o)break e;l=i.charCodeAt(p)}if(s<p&&(a+=i.slice(s,p)),l<2048){s=p+1,a+=t[192|l>>6]+t[128|l&63];continue}if(l<55296||l>=57344){s=p+1,a+=t[224|l>>12]+t[128|l>>6&63]+t[128|l&63];continue}if(++p,p>=o)throw new Error("URI malformed");let d=i.charCodeAt(p)&1023;s=p+1,l=65536+((l&1023)<<10|d),a+=t[240|l>>18]+t[128|l>>12&63]+t[128|l>>6&63]+t[128|l&63]}return s===0?i:s<o?a+i.slice(s):a}}}),uc=Y({"../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=ly(),r=o=>{switch(typeof o){case"string":return(0,t.encodeString)(o);case"bigint":case"boolean":return""+o;case"number":if(Number.isFinite(o))return o<1e21?""+o:(0,t.encodeString)(""+o);break}return o instanceof Date?(0,t.encodeString)(o.toISOString()):""};e.defaultValueSerializer=r;var n=o=>o instanceof Date;e.defaultShouldSerializeObject=n;var i=o=>o;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:i,valueSerializer:e.defaultValueSerializer,keyDeserializer:i,shouldSerializeObject:e.defaultShouldSerializeObject}}}),cy=Y({"../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=i,e.stringifyObject=d;var t=uc(),r=ly();function n(f){return f==="__proto__"||f==="constructor"||f==="prototype"}function i(f,h,m,b,E){if(n(h))return f;let _=f[h];return typeof _=="object"&&_!==null?_:!b&&(E||typeof m=="number"||typeof m=="string"&&m*0===0&&m.indexOf(".")===-1)?f[h]=[]:f[h]={}}var o=20,a="[]",s="[",p="]",l=".";function d(f,h,m=0,b,E){let{nestingSyntax:_=t.defaultOptions.nestingSyntax,arrayRepeat:A=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:T=t.defaultOptions.arrayRepeatSyntax,nesting:k=t.defaultOptions.nesting,delimiter:O=t.defaultOptions.delimiter,valueSerializer:R=t.defaultOptions.valueSerializer,shouldSerializeObject:y=t.defaultOptions.shouldSerializeObject}=h,S=typeof O=="number"?String.fromCharCode(O):O,C=E===!0&&A,D=_==="dot"||_==="js"&&!E;if(m>o)return"";let J="",M=!0,G=!1;for(let L in f){let N=f[L];if(N===void 0)continue;let U;b?(U=b,C?T==="bracket"&&(U+=a):D?(U+=l,U+=L):(U+=s,U+=L,U+=p)):U=L,M||(J+=S),typeof N=="object"&&N!==null&&!y(N)?(G=N.pop!==void 0,(k||A&&G)&&(J+=d(N,h,m+1,U,G))):(J+=(0,r.encodeString)(U),J+="=",J+=R(N,L)),M&&(M=!1)}return J}}}),YS=Y({"../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=i;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function i(s){let p=s.indexOf("%");if(p===-1)return s;let l=s.length,d="",f=0,h=0,m=p,b=t;for(;p>-1&&p<l;){let E=a(s[p+1],4),_=a(s[p+2],0),A=E|_,T=n[A];if(b=n[256+b+T],h=h<<6|A&n[364+T],b===t)d+=s.slice(f,m),d+=h<=65535?String.fromCharCode(h):String.fromCharCode(55232+(h>>10),56320+(h&1023)),h=0,f=p+3,p=m=s.indexOf("%",f);else{if(b===r)return null;if(p+=3,p<l&&s.charCodeAt(p)===37)continue;return null}}return d+s.slice(f)}var o={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function a(s,p){let l=o[s];return l===void 0?255:l<<p}}}),XS=Y({"../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=l;var t=cy(),r=uc(),n=YS(),i=d=>{let f=Number(d);return Number.isNaN(f)?d:f};e.numberKeyDeserializer=i;var o=d=>{let f=Number(d);return Number.isNaN(f)?d:f};e.numberValueDeserializer=o;var a=/\+/g,s=function(){};s.prototype=Object.create(null);function p(d,f,h,m,b){let E=d.substring(f,h);return m&&(E=E.replace(a," ")),b&&(E=(0,n.decodeURIComponent)(E)||E),E}function l(d,f){let{valueDeserializer:h=r.defaultOptions.valueDeserializer,keyDeserializer:m=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:b=r.defaultOptions.arrayRepeatSyntax,nesting:E=r.defaultOptions.nesting,arrayRepeat:_=r.defaultOptions.arrayRepeat,nestingSyntax:A=r.defaultOptions.nestingSyntax,delimiter:T=r.defaultOptions.delimiter}=f??{},k=typeof T=="string"?T.charCodeAt(0):T,O=A==="js",R=new s;if(typeof d!="string")return R;let y=d.length,S="",C=-1,D=-1,J=-1,M=R,G,L="",N="",U=!1,W=!1,K=!1,ne=!1,be=!1,xe=!1,we=0,ue=-1,He=-1,Ve=-1;for(let Ce=0;Ce<y+1;Ce++){if(we=Ce!==y?d.charCodeAt(Ce):k,we===k){if(xe=D>C,xe||(D=Ce),J!==D-1&&(N=p(d,J+1,ue>-1?ue:D,K,U),L=m(N),G!==void 0&&(M=(0,t.getDeepObject)(M,G,L,O&&be,void 0))),xe||L!==""){xe&&(S=d.slice(D+1,Ce),ne&&(S=S.replace(a," ")),W&&(S=(0,n.decodeURIComponent)(S)||S));let le=h(S,L);if(_){let Ne=M[L];Ne===void 0?ue>-1?M[L]=[le]:M[L]=le:Ne.pop?Ne.push(le):M[L]=[Ne,le]}else M[L]=le}S="",C=Ce,D=Ce,U=!1,W=!1,K=!1,ne=!1,be=!1,ue=-1,J=Ce,M=R,G=void 0,L=""}else we===93?(_&&b==="bracket"&&Ve===91&&(ue=He),E&&(A==="index"||O)&&D<=C&&(J!==He&&(N=p(d,J+1,Ce,K,U),L=m(N),G!==void 0&&(M=(0,t.getDeepObject)(M,G,L,void 0,void 0)),G=L,K=!1,U=!1),J=Ce,be=!1)):we===46?E&&(A==="dot"||O)&&D<=C&&(J!==He&&(N=p(d,J+1,Ce,K,U),L=m(N),G!==void 0&&(M=(0,t.getDeepObject)(M,G,L,O)),G=L,K=!1,U=!1),be=!0,J=Ce):we===91?E&&(A==="index"||O)&&D<=C&&(J!==He&&(N=p(d,J+1,Ce,K,U),L=m(N),O&&G!==void 0&&(M=(0,t.getDeepObject)(M,G,L,O)),G=L,K=!1,U=!1,be=!1),J=Ce):we===61?D<=C?D=Ce:W=!0:we===43?D>C?ne=!0:K=!0:we===37&&(D>C?W=!0:U=!0);He=Ce,Ve=we}return R}}}),QS=Y({"../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=cy();function r(n,i){if(n===null||typeof n!="object")return"";let o=i??{};return(0,t.stringifyObject)(n,o)}}}),lc=Y({"../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(o,a,s,p){p===void 0&&(p=s);var l=Object.getOwnPropertyDescriptor(a,s);(!l||("get"in l?!a.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(o,p,l)}:function(o,a,s,p){p===void 0&&(p=s),o[p]=a[s]}),r=e&&e.__exportStar||function(o,a){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,o,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=XS();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var i=QS();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),r(uc(),e)}}),py=Y({"../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
13
|
-
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}}}),ZS=Y({"../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),dy=Y({"../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),e1=Y({"../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),t1=Y({"../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(e1()),n=String.fromCodePoint||function(o){var a="";return o>65535&&(o-=65536,a+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),a+=String.fromCharCode(o),a};function i(o){return o>=55296&&o<=57343||o>1114111?"�":(o in r.default&&(o=r.default[o]),n(o))}e.default=i}}),Cd=Y({"../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(py()),n=t(ZS()),i=t(dy()),o=t(t1()),a=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(i.default),e.decodeHTMLStrict=s(r.default);function s(d){var f=l(d);return function(h){return String(h).replace(a,f)}}var p=function(d,f){return d<f?1:-1};e.decodeHTML=function(){for(var d=Object.keys(n.default).sort(p),f=Object.keys(r.default).sort(p),h=0,m=0;h<f.length;h++)d[m]===f[h]?(f[h]+=";?",m++):f[h]+=";";var b=new RegExp("&(?:"+f.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=l(r.default);function _(A){return A.substr(-1)!==";"&&(A+=";"),E(A)}return function(A){return String(A).replace(b,_)}}();function l(d){return function(f){if(f.charAt(1)==="#"){var h=f.charAt(2);return h==="X"||h==="x"?o.default(parseInt(f.substr(3),16)):o.default(parseInt(f.substr(2),10))}return d[f.slice(1,-1)]||f}}}}),Td=Y({"../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(dy()),n=p(r.default),i=l(n);e.encodeXML=A(n);var o=t(py()),a=p(o.default),s=l(a);e.encodeHTML=m(a,s),e.encodeNonAsciiHTML=A(a);function p(T){return Object.keys(T).sort().reduce(function(k,O){return k[T[O]]="&"+O+";",k},{})}function l(T){for(var k=[],O=[],R=0,y=Object.keys(T);R<y.length;R++){var S=y[R];S.length===1?k.push("\\"+S):O.push(S)}k.sort();for(var C=0;C<k.length-1;C++){for(var D=C;D<k.length-1&&k[D].charCodeAt(1)+1===k[D+1].charCodeAt(1);)D+=1;var J=1+D-C;J<3||k.splice(C,J,k[C]+"-"+k[D])}return O.unshift("["+k.join("")+"]"),new RegExp(O.join("|"),"g")}var d=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f=String.prototype.codePointAt!=null?function(T){return T.codePointAt(0)}:function(T){return(T.charCodeAt(0)-55296)*1024+T.charCodeAt(1)-56320+65536};function h(T){return"&#x"+(T.length>1?f(T):T.charCodeAt(0)).toString(16).toUpperCase()+";"}function m(T,k){return function(O){return O.replace(k,function(R){return T[R]}).replace(d,h)}}var b=new RegExp(i.source+"|"+d.source,"g");function E(T){return T.replace(b,h)}e.escape=E;function _(T){return T.replace(i,h)}e.escapeUTF8=_;function A(T){return function(k){return k.replace(b,function(O){return T[O]||h(O)})}}}}),r1=Y({"../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Cd(),r=Td();function n(p,l){return(!l||l<=0?t.decodeXML:t.decodeHTML)(p)}e.decode=n;function i(p,l){return(!l||l<=0?t.decodeXML:t.decodeHTMLStrict)(p)}e.decodeStrict=i;function o(p,l){return(!l||l<=0?r.encodeXML:r.encodeHTML)(p)}e.encode=o;var a=Td();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=Cd();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})}}),n1=Y({"../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(N,U){if(!(N instanceof U))throw new TypeError("Cannot call a class as a function")}function n(N,U){for(var W=0;W<U.length;W++){var K=U[W];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(N,K.key,K)}}function i(N,U,W){return U&&n(N.prototype,U),N}function o(N,U){var W=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!W){if(Array.isArray(N)||(W=a(N))||U){W&&(N=W);var K=0,ne=function(){};return{s:ne,n:function(){return K>=N.length?{done:!0}:{done:!1,value:N[K++]}},e:function(ue){throw ue},f:ne}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var be=!0,xe=!1,we;return{s:function(){W=W.call(N)},n:function(){var ue=W.next();return be=ue.done,ue},e:function(ue){xe=!0,we=ue},f:function(){try{!be&&W.return!=null&&W.return()}finally{if(xe)throw we}}}}function a(N,U){if(N){if(typeof N=="string")return s(N,U);var W=Object.prototype.toString.call(N).slice(8,-1);if(W==="Object"&&N.constructor&&(W=N.constructor.name),W==="Map"||W==="Set")return Array.from(N);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return s(N,U)}}function s(N,U){(U==null||U>N.length)&&(U=N.length);for(var W=0,K=new Array(U);W<U;W++)K[W]=N[W];return K}var p=r1(),l={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var N={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return T(0,5).forEach(function(U){T(0,5).forEach(function(W){T(0,5).forEach(function(K){return f(U,W,K,N)})})}),T(0,23).forEach(function(U){var W=U+232,K=h(U*10+8);N[W]="#"+K+K+K}),N}function f(N,U,W,K){var ne=16+N*36+U*6+W,be=N>0?N*40+55:0,xe=U>0?U*40+55:0,we=W>0?W*40+55:0;K[ne]=m([be,xe,we])}function h(N){for(var U=N.toString(16);U.length<2;)U="0"+U;return U}function m(N){var U=[],W=o(N),K;try{for(W.s();!(K=W.n()).done;){var ne=K.value;U.push(h(ne))}}catch(be){W.e(be)}finally{W.f()}return"#"+U.join("")}function b(N,U,W,K){var ne;return U==="text"?ne=R(W,K):U==="display"?ne=_(N,W,K):U==="xterm256Foreground"?ne=C(N,K.colors[W]):U==="xterm256Background"?ne=D(N,K.colors[W]):U==="rgb"&&(ne=E(N,W)),ne}function E(N,U){U=U.substring(2).slice(0,-1);var W=+U.substr(0,2),K=U.substring(5).split(";"),ne=K.map(function(be){return("0"+Number(be).toString(16)).substr(-2)}).join("");return S(N,(W===38?"color:#":"background-color:#")+ne)}function _(N,U,W){U=parseInt(U,10);var K={"-1":function(){return"<br/>"},0:function(){return N.length&&A(N)},1:function(){return y(N,"b")},3:function(){return y(N,"i")},4:function(){return y(N,"u")},8:function(){return S(N,"display:none")},9:function(){return y(N,"strike")},22:function(){return S(N,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return J(N,"i")},24:function(){return J(N,"u")},39:function(){return C(N,W.fg)},49:function(){return D(N,W.bg)},53:function(){return S(N,"text-decoration:overline")}},ne;return K[U]?ne=K[U]():4<U&&U<7?ne=y(N,"blink"):29<U&&U<38?ne=C(N,W.colors[U-30]):39<U&&U<48?ne=D(N,W.colors[U-40]):89<U&&U<98?ne=C(N,W.colors[8+(U-90)]):99<U&&U<108&&(ne=D(N,W.colors[8+(U-100)])),ne}function A(N){var U=N.slice(0);return N.length=0,U.reverse().map(function(W){return"</"+W+">"}).join("")}function T(N,U){for(var W=[],K=N;K<=U;K++)W.push(K);return W}function k(N){return function(U){return(N===null||U.category!==N)&&N!=="all"}}function O(N){N=parseInt(N,10);var U=null;return N===0?U="all":N===1?U="bold":2<N&&N<5?U="underline":4<N&&N<7?U="blink":N===8?U="hide":N===9?U="strike":29<N&&N<38||N===39||89<N&&N<98?U="foreground-color":(39<N&&N<48||N===49||99<N&&N<108)&&(U="background-color"),U}function R(N,U){return U.escapeXML?p.encodeXML(N):N}function y(N,U,W){return W||(W=""),N.push(U),"<".concat(U).concat(W?' style="'.concat(W,'"'):"",">")}function S(N,U){return y(N,"span",U)}function C(N,U){return y(N,"span","color:"+U)}function D(N,U){return y(N,"span","background-color:"+U)}function J(N,U){var W;if(N.slice(-1)[0]===U&&(W=N.pop()),W)return"</"+U+">"}function M(N,U,W){var K=!1,ne=3;function be(){return""}function xe(Te,Se){return W("xterm256Foreground",Se),""}function we(Te,Se){return W("xterm256Background",Se),""}function ue(Te){return U.newline?W("display",-1):W("text",Te),""}function He(Te,Se){K=!0,Se.trim().length===0&&(Se="0"),Se=Se.trimRight(";").split(";");var ke=o(Se),st;try{for(ke.s();!(st=ke.n()).done;){var It=st.value;W("display",It)}}catch(Le){ke.e(Le)}finally{ke.f()}return""}function Ve(Te){return W("text",Te),""}function Ce(Te){return W("rgb",Te),""}var le=[{pattern:/^\x08+/,sub:be},{pattern:/^\x1b\[[012]?K/,sub:be},{pattern:/^\x1b\[\(B/,sub:be},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ce},{pattern:/^\x1b\[38;5;(\d+)m/,sub:xe},{pattern:/^\x1b\[48;5;(\d+)m/,sub:we},{pattern:/^\n/,sub:ue},{pattern:/^\r+\n/,sub:ue},{pattern:/^\r/,sub:ue},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:He},{pattern:/^\x1b\[\d?J/,sub:be},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:be},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:be},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ve}];function Ne(Te,Se){Se>ne&&K||(K=!1,N=N.replace(Te.pattern,Te.sub))}var Be=[],ut=N,X=ut.length;e:for(;X>0;){for(var pe=0,ye=0,_e=le.length;ye<_e;pe=++ye){var Ae=le[pe];if(Ne(Ae,pe),N.length!==X){X=N.length;continue e}}if(N.length===X)break;Be.push(0),X=N.length}return Be}function G(N,U,W){return U!=="text"&&(N=N.filter(k(O(W))),N.push({token:U,data:W,category:O(W)})),N}var L=function(){function N(U){r(this,N),U=U||{},U.colors&&(U.colors=Object.assign({},l.colors,U.colors)),this.options=Object.assign({},l,U),this.stack=[],this.stickyStack=[]}return i(N,[{key:"toHtml",value:function(U){var W=this;U=typeof U=="string"?[U]:U;var K=this.stack,ne=this.options,be=[];return this.stickyStack.forEach(function(xe){var we=b(K,xe.token,xe.data,ne);we&&be.push(we)}),M(U.join(""),ne,function(xe,we){var ue=b(K,xe,we,ne);ue&&be.push(ue),ne.stream&&(W.stickyStack=G(W.stickyStack,xe,we))}),K.length&&be.push(A(K)),be.join("")}}]),N}();t.exports=L}}),i1=Y({"../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,function(r){function n(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class i extends Error{constructor(g){super(`No parslet found for token: ${n(g)}`),this.token=g,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class o extends Error{constructor(g){super(`The parsing ended early. The next token was: ${n(g)}`),this.token=g,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class a extends Error{constructor(g,x){let j=`Unexpected type: '${g.type}'.`;x!==void 0&&(j+=` Message: ${x}`),super(j),Object.setPrototypeOf(this,a.prototype)}}function s(u){return g=>g.startsWith(u)?{type:u,text:u}:null}function p(u){let g=0,x,j=u[0],Q=!1;if(j!=="'"&&j!=='"')return null;for(;g<u.length;){if(g++,x=u[g],!Q&&x===j){g++;break}Q=!Q&&x==="\\"}if(x!==j)throw new Error("Unterminated String");return u.slice(0,g)}let l=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function f(u){let g=u[0];if(!l.test(g))return null;let x=1;do{if(g=u[x],!d.test(g))break;x++}while(x<u.length);return u.slice(0,x)}let h=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function m(u){var g,x;return(x=(g=h.exec(u))===null||g===void 0?void 0:g[0])!==null&&x!==void 0?x:null}let b=u=>{let g=f(u);return g==null?null:{type:"Identifier",text:g}};function E(u){return g=>{if(!g.startsWith(u))return null;let x=g[u.length];return x!==void 0&&d.test(x)?null:{type:u,text:u}}}let _=u=>{let g=p(u);return g==null?null:{type:"StringValue",text:g}},A=u=>u.length>0?null:{type:"EOF",text:""},T=u=>{let g=m(u);return g===null?null:{type:"Number",text:g}},k=[A,s("=>"),s("("),s(")"),s("{"),s("}"),s("["),s("]"),s("|"),s("&"),s("<"),s(">"),s(","),s(";"),s("*"),s("?"),s("!"),s("="),s(":"),s("..."),s("."),s("#"),s("~"),s("/"),s("@"),E("undefined"),E("null"),E("function"),E("this"),E("new"),E("module"),E("event"),E("extends"),E("external"),E("infer"),E("typeof"),E("keyof"),E("readonly"),E("import"),E("is"),E("in"),E("asserts"),T,b,_],O=/^\s*\n\s*/;class R{static create(g){let x=this.read(g);g=x.text;let j=this.read(g);return g=j.text,new R(g,void 0,x.token,j.token)}constructor(g,x,j,Q){this.text="",this.text=g,this.previous=x,this.current=j,this.next=Q}static read(g,x=!1){x=x||O.test(g),g=g.trim();for(let j of k){let Q=j(g);if(Q!==null){let ie=Object.assign(Object.assign({},Q),{startOfLine:x});return g=g.slice(ie.text.length),{text:g,token:ie}}}throw new Error("Unexpected Token "+g)}advance(){let g=R.read(this.text);return new R(g.text,this.current,this.next,g.token)}}function y(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"||u.type==="JsdocTypeTypeParameter")throw new a(u);return u}function S(u){return u.type==="JsdocTypeKeyValue"?D(u):y(u)}function C(u){return u.type==="JsdocTypeName"?u:D(u)}function D(u){if(u.type!=="JsdocTypeKeyValue")throw new a(u);return u}function J(u){var g;if(u.type==="JsdocTypeVariadic"){if(((g=u.element)===null||g===void 0?void 0:g.type)==="JsdocTypeName")return u;throw new a(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new a(u);return u}function M(u){if(u.type==="JsdocTypeTuple"||u.type==="JsdocTypeGeneric"&&u.meta.brackets==="square")return u;throw new a(u)}function G(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var L;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(L||(L={}));class N{constructor(g,x,j){this.grammar=g,typeof x=="string"?this._lexer=R.create(x):this._lexer=x,this.baseParser=j}get lexer(){return this._lexer}parse(){let g=this.parseType(L.ALL);if(this.lexer.current.type!=="EOF")throw new o(this.lexer.current);return g}parseType(g){return y(this.parseIntermediateType(g))}parseIntermediateType(g){let x=this.tryParslets(null,g);if(x===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(x,g)}parseInfixIntermediateType(g,x){let j=this.tryParslets(g,x);for(;j!==null;)g=j,j=this.tryParslets(g,x);return g}tryParslets(g,x){for(let j of this.grammar){let Q=j(this,x,g);if(Q!==null)return Q}return null}consume(g){return Array.isArray(g)||(g=[g]),g.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(g){this._lexer=g.lexer}}function U(u){return u==="}"||u==="EOF"||u==="|"||u===","||u===")"||u===">"}let W=(u,g,x)=>{let j=u.lexer.current.type,Q=u.lexer.next.type;return x==null&&j==="?"&&!U(Q)||x!=null&&j==="?"?(u.consume("?"),x==null?{type:"JsdocTypeNullable",element:u.parseType(L.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:y(x),meta:{position:"suffix"}}):null};function K(u){let g=(x,j,Q)=>{let ie=x.lexer.current.type,ce=x.lexer.next.type;if(Q===null){if("parsePrefix"in u&&u.accept(ie,ce))return u.parsePrefix(x)}else if("parseInfix"in u&&u.precedence>j&&u.accept(ie,ce))return u.parseInfix(x,Q);return null};return Object.defineProperty(g,"name",{value:u.name}),g}let ne=K({name:"optionalParslet",accept:u=>u==="=",precedence:L.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(L.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,g)=>(u.consume("="),{type:"JsdocTypeOptional",element:y(g),meta:{position:"suffix"}})}),be=K({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let g=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:g}}}),xe=K({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let g=u.parseIntermediateType(L.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return g.type==="JsdocTypeParameterList"?g:g.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[g]}:{type:"JsdocTypeParenthesis",element:y(g)}}}),we=K({name:"specialTypesParslet",accept:(u,g)=>u==="?"&&U(g)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),ue=K({name:"notNullableParslet",accept:u=>u==="!",precedence:L.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(L.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,g)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:y(g),meta:{position:"suffix"}})});function He({allowTrailingComma:u}){return K({name:"parameterListParslet",accept:g=>g===",",precedence:L.PARAMETER_LIST,parseInfix:(g,x)=>{let j=[S(x)];g.consume(",");do try{let Q=g.parseIntermediateType(L.PARAMETER_LIST);j.push(S(Q))}catch(Q){if(Q instanceof i)break;throw Q}while(g.consume(","));if(j.length>0&&j.slice(0,-1).some(Q=>Q.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:j}}})}let Ve=K({name:"genericParslet",accept:(u,g)=>u==="<"||u==="."&&g==="<",precedence:L.GENERIC,parseInfix:(u,g)=>{let x=u.consume(".");u.consume("<");let j=[],Q=!1;if(u.consume("infer")){Q=!0;let ie=u.parseIntermediateType(L.SYMBOL);if(ie.type!=="JsdocTypeName")throw new a(ie,"A typescript asserts always has to have a name on the left side.");j.push(ie)}else do j.push(u.parseType(L.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:y(g),elements:j},Q?{infer:!0}:{}),{meta:{brackets:"angle",dot:x}})}}),Ce=K({name:"unionParslet",accept:u=>u==="|",precedence:L.UNION,parseInfix:(u,g)=>{u.consume("|");let x=[];do x.push(u.parseType(L.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[y(g),...x]}}}),le=[W,ne,be,xe,we,ue,He({allowTrailingComma:!0}),Ve,Ce,ne];function Ne({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:g,pathGrammar:x}){return function(j,Q,ie){if(ie==null||Q>=L.NAME_PATH)return null;let ce=j.lexer.current.type,he=j.lexer.next.type;if(!(ce==="."&&he!=="<"||ce==="["&&(u||ie.type==="JsdocTypeName")||g&&(ce==="~"||ce==="#")))return null;let Ie,ze=!1;j.consume(".")?Ie="property":j.consume("[")?(Ie="property-brackets",ze=!0):j.consume("~")?Ie="inner":(j.consume("#"),Ie="instance");let Tt=x!==null?new N(x,j.lexer,j):j,dt=Tt.parseIntermediateType(L.NAME_PATH);j.acceptLexerState(Tt);let ar;switch(dt.type){case"JsdocTypeName":ar={type:"JsdocTypeProperty",value:dt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":ar={type:"JsdocTypeProperty",value:dt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":ar={type:"JsdocTypeProperty",value:dt.value,meta:{quote:dt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(dt.specialType==="event")ar=dt;else throw new a(dt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(dt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ze&&!j.consume("]")){let Nn=j.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Nn.type}' with text '${Nn.text}'`)}return{type:"JsdocTypeNamePath",left:y(ie),right:ar,pathType:Ie}}}function Be({allowedAdditionalTokens:u}){return K({name:"nameParslet",accept:g=>g==="Identifier"||g==="this"||g==="new"||u.includes(g),parsePrefix:g=>{let{type:x,text:j}=g.lexer.current;return g.consume(x),{type:"JsdocTypeName",value:j}}})}let ut=K({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let g=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:g.slice(1,-1),meta:{quote:g[0]==="'"?"single":"double"}}}});function X({pathGrammar:u,allowedTypes:g}){return K({name:"specialNamePathParslet",accept:x=>g.includes(x),parsePrefix:x=>{let j=x.lexer.current.type;if(x.consume(j),!x.consume(":"))return{type:"JsdocTypeName",value:j};let Q,ie=x.lexer.current;if(x.consume("StringValue"))Q={type:"JsdocTypeSpecialNamePath",value:ie.text.slice(1,-1),specialType:j,meta:{quote:ie.text[0]==="'"?"single":"double"}};else{let Ie="",ze=["Identifier","@","/"];for(;ze.some(Tt=>x.consume(Tt));)Ie+=ie.text,ie=x.lexer.current;Q={type:"JsdocTypeSpecialNamePath",value:Ie,specialType:j,meta:{quote:void 0}}}let ce=new N(u,x.lexer,x),he=ce.parseInfixIntermediateType(Q,L.ALL);return x.acceptLexerState(ce),y(he)}})}let pe=[Be({allowedAdditionalTokens:["external","module"]}),ut,be,Ne({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ye=[...pe,X({allowedTypes:["event"],pathGrammar:pe})];function _e(u){let g;if(u.type==="JsdocTypeParameterList")g=u.elements;else if(u.type==="JsdocTypeParenthesis")g=[u.element];else throw new a(u);return g.map(x=>S(x))}function Ae(u){let g=_e(u);if(g.some(x=>x.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return g}function Te({allowNamedParameters:u,allowNoReturnType:g,allowWithoutParenthesis:x,allowNewAsFunctionKeyword:j}){return K({name:"functionParslet",accept:(Q,ie)=>Q==="function"||j&&Q==="new"&&ie==="(",parsePrefix:Q=>{let ie=Q.consume("new");Q.consume("function");let ce=Q.lexer.current.type==="(";if(!ce){if(!x)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let he={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:ie,parenthesis:ce},Ie=Q.parseIntermediateType(L.FUNCTION);if(u===void 0)he.parameters=Ae(Ie);else{if(ie&&Ie.type==="JsdocTypeFunction"&&Ie.arrow)return he=Ie,he.constructor=!0,he;he.parameters=_e(Ie);for(let ze of he.parameters)if(ze.type==="JsdocTypeKeyValue"&&!u.includes(ze.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${ze.type}`)}if(Q.consume(":"))he.returnType=Q.parseType(L.PREFIX);else if(!g)throw new Error("function is missing return type");return he}})}function Se({allowPostfix:u,allowEnclosingBrackets:g}){return K({name:"variadicParslet",accept:x=>x==="...",precedence:L.PREFIX,parsePrefix:x=>{x.consume("...");let j=g&&x.consume("[");try{let Q=x.parseType(L.PREFIX);if(j&&!x.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:y(Q),meta:{position:"prefix",squareBrackets:j}}}catch(Q){if(Q instanceof i){if(j)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw Q}},parseInfix:u?(x,j)=>(x.consume("..."),{type:"JsdocTypeVariadic",element:y(j),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let ke=K({name:"symbolParslet",accept:u=>u==="(",precedence:L.SYMBOL,parseInfix:(u,g)=>{if(g.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let x={type:"JsdocTypeSymbol",value:g.value};if(!u.consume(")")){let j=u.parseIntermediateType(L.SYMBOL);if(x.element=J(j),!u.consume(")"))throw new Error("Symbol does not end after value")}return x}}),st=K({name:"arrayBracketsParslet",precedence:L.ARRAY_BRACKETS,accept:(u,g)=>u==="["&&g==="]",parseInfix:(u,g)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[y(g)],meta:{brackets:"square",dot:!1}})});function It({objectFieldGrammar:u,allowKeyTypes:g}){return K({name:"objectParslet",accept:x=>x==="{",parsePrefix:x=>{x.consume("{");let j={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!x.consume("}")){let Q,ie=new N(u,x.lexer,x);for(;;){ie.acceptLexerState(x);let ce=ie.parseIntermediateType(L.OBJECT);x.acceptLexerState(ie),ce===void 0&&g&&(ce=x.parseIntermediateType(L.OBJECT));let he=!1;if(ce.type==="JsdocTypeNullable"&&(he=!0,ce=ce.element),ce.type==="JsdocTypeNumber"||ce.type==="JsdocTypeName"||ce.type==="JsdocTypeStringValue"){let Ie;ce.type==="JsdocTypeStringValue"&&(Ie=ce.meta.quote),j.elements.push({type:"JsdocTypeObjectField",key:ce.value.toString(),right:void 0,optional:he,readonly:!1,meta:{quote:Ie}})}else if(ce.type==="JsdocTypeObjectField"||ce.type==="JsdocTypeJsdocObjectField")j.elements.push(ce);else throw new a(ce);if(x.lexer.current.startOfLine)Q="linebreak",x.consume(",")||x.consume(";");else if(x.consume(","))Q="comma";else if(x.consume(";"))Q="semicolon";else break;if(x.lexer.current.type==="}")break}if(j.meta.separator=Q??"comma",Q==="linebreak"&&(j.meta.propertyIndent=" "),!x.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return j}})}function Le({allowSquaredProperties:u,allowKeyTypes:g,allowReadonly:x,allowOptional:j}){return K({name:"objectFieldParslet",precedence:L.KEY_VALUE,accept:Q=>Q===":",parseInfix:(Q,ie)=>{var ce;let he=!1,Ie=!1;j&&ie.type==="JsdocTypeNullable"&&(he=!0,ie=ie.element),x&&ie.type==="JsdocTypeReadonlyProperty"&&(Ie=!0,ie=ie.element);let ze=(ce=Q.baseParser)!==null&&ce!==void 0?ce:Q;if(ze.acceptLexerState(Q),ie.type==="JsdocTypeNumber"||ie.type==="JsdocTypeName"||ie.type==="JsdocTypeStringValue"||G(ie)){if(G(ie)&&!u)throw new a(ie);ze.consume(":");let Tt;ie.type==="JsdocTypeStringValue"&&(Tt=ie.meta.quote);let dt=ze.parseType(L.KEY_VALUE);return Q.acceptLexerState(ze),{type:"JsdocTypeObjectField",key:G(ie)?ie:ie.value.toString(),right:dt,optional:he,readonly:Ie,meta:{quote:Tt}}}else{if(!g)throw new a(ie);ze.consume(":");let Tt=ze.parseType(L.KEY_VALUE);return Q.acceptLexerState(ze),{type:"JsdocTypeJsdocObjectField",left:y(ie),right:Tt}}}})}function yt({allowOptional:u,allowVariadic:g}){return K({name:"keyValueParslet",precedence:L.KEY_VALUE,accept:x=>x===":",parseInfix:(x,j)=>{let Q=!1,ie=!1;if(u&&j.type==="JsdocTypeNullable"&&(Q=!0,j=j.element),g&&j.type==="JsdocTypeVariadic"&&j.element!==void 0&&(ie=!0,j=j.element),j.type!=="JsdocTypeName")throw new a(j);x.consume(":");let ce=x.parseType(L.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:j.value,right:ce,optional:Q,variadic:ie}}})}let Ke=[...le,Te({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ut,X({allowedTypes:["module","external","event"],pathGrammar:ye}),Se({allowEnclosingBrackets:!0,allowPostfix:!0}),Be({allowedAdditionalTokens:["keyof"]}),ke,st,Ne({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ye})],nr=[...Ke,It({objectFieldGrammar:[Be({allowedAdditionalTokens:["typeof","module","in"]}),Le({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Ke],allowKeyTypes:!0}),yt({allowOptional:!0,allowVariadic:!0})],Nt=K({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:u.parseType(L.KEY_OF_TYPE_OF)})}),fe=[Be({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),W,ne,ut,be,Le({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],pt=[...le,It({allowKeyTypes:!1,objectFieldGrammar:fe}),Be({allowedAdditionalTokens:["event","external","in"]}),Nt,Te({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Se({allowEnclosingBrackets:!1,allowPostfix:!1}),Be({allowedAdditionalTokens:["keyof"]}),X({allowedTypes:["module"],pathGrammar:ye}),Ne({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ye}),yt({allowOptional:!1,allowVariadic:!1}),ke],Oe=K({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let g=u.parseIntermediateType(L.SYMBOL);if(g.type!=="JsdocTypeName")throw new a(g,"A typescript asserts always has to have a name on the left side.");return u.consume("is")?{type:"JsdocTypeAsserts",left:g,right:y(u.parseIntermediateType(L.INFIX))}:{type:"JsdocTypeAssertsPlain",element:g}}});function At({allowQuestionMark:u}){return K({name:"tupleParslet",accept:g=>g==="[",parsePrefix:g=>{g.consume("[");let x={type:"JsdocTypeTuple",elements:[]};if(g.consume("]"))return x;let j=g.parseIntermediateType(L.ALL);if(j.type==="JsdocTypeParameterList"?j.elements[0].type==="JsdocTypeKeyValue"?x.elements=j.elements.map(D):x.elements=j.elements.map(y):j.type==="JsdocTypeKeyValue"?x.elements=[D(j)]:x.elements=[y(j)],!g.consume("]"))throw new Error("Unterminated '['");if(x.elements.some(Q=>Q.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return x}})}let et=K({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:y(u.parseType(L.KEY_OF_TYPE_OF))})}),wr=K({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let g=u.parseType(L.PREFIX);if(g.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:g}}}),Or=K({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseIntermediateType(L.KEY_VALUE)})}),gt=K({name:"arrowFunctionParslet",precedence:L.ARROW,accept:u=>u==="=>",parseInfix:(u,g)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:_e(g).map(C),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(L.OBJECT)})}),Fe=K({name:"genericArrowFunctionParslet",accept:u=>u==="<",parsePrefix:u=>{let g=[];u.consume("<");do{let j,Q=u.parseIntermediateType(L.SYMBOL);if(Q.type==="JsdocTypeOptional"&&(Q=Q.element,j=u.parseType(L.SYMBOL)),Q.type!=="JsdocTypeName")throw new a(Q);let ie;u.consume("extends")&&(ie=u.parseType(L.SYMBOL),ie.type==="JsdocTypeOptional"&&(ie=ie.element,j=u.parseType(L.SYMBOL)));let ce={type:"JsdocTypeTypeParameter",name:Q};if(ie!==void 0&&(ce.constraint=ie),j!==void 0&&(ce.defaultValue=j),g.push(ce),u.consume(">"))break}while(u.consume(","));let x=u.parseIntermediateType(L.SYMBOL);return x.typeParameters=g,x}}),ir=K({name:"intersectionParslet",accept:u=>u==="&",precedence:L.INTERSECTION,parseInfix:(u,g)=>{u.consume("&");let x=[];do x.push(u.parseType(L.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[y(g),...x]}}}),ot=K({name:"predicateParslet",precedence:L.INFIX,accept:u=>u==="is",parseInfix:(u,g)=>{if(g.type!=="JsdocTypeName")throw new a(g,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:g,right:y(u.parseIntermediateType(L.INFIX))}}}),Jt=K({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let g=u.lexer.current.text;u.consume("Identifier");let x;if(u.consume(":")){let j=u.baseParser;j.acceptLexerState(u),x={type:"JsdocTypeIndexSignature",key:g,right:j.parseType(L.INDEX_BRACKETS)},u.acceptLexerState(j)}else if(u.consume("in")){let j=u.baseParser;j.acceptLexerState(u),x={type:"JsdocTypeMappedType",key:g,right:j.parseType(L.ARRAY_BRACKETS)},u.acceptLexerState(j)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return x}}),Lr=K({name:"readonlyArrayParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:M(u.parseIntermediateType(L.ALL))})}),rt=K({name:"conditionalParslet",precedence:L.INFIX,accept:u=>u==="extends",parseInfix:(u,g)=>{u.consume("extends");let x=u.parseType(L.KEY_OF_TYPE_OF).element,j=u.parseType(L.INFIX);return u.consume(":"),{type:"JsdocTypeConditional",checksType:y(g),extendsType:x,trueType:j,falseType:u.parseType(L.INFIX)}}}),_t=[Or,Be({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),W,ne,ut,be,Le({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Jt],or=[...le,It({allowKeyTypes:!1,objectFieldGrammar:_t}),Lr,Nt,et,wr,ut,Te({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),At({allowQuestionMark:!1}),Se({allowEnclosingBrackets:!1,allowPostfix:!1}),Oe,rt,Be({allowedAdditionalTokens:["event","external","in"]}),X({allowedTypes:["module"],pathGrammar:ye}),st,gt,Fe,Ne({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ye}),ir,ot,yt({allowVariadic:!0,allowOptional:!0})];function bt(u,g){switch(g){case"closure":return new N(pt,u).parse();case"jsdoc":return new N(nr,u).parse();case"typescript":return new N(or,u).parse()}}function nt(u,g=["typescript","closure","jsdoc"]){let x;for(let j of g)try{return bt(u,j)}catch(Q){x=Q}throw x}function Bt(u,g){let x=u[g.type];if(x===void 0)throw new Error(`In this set of transform rules exists no rule for type ${g.type}.`);return x(g,j=>Bt(u,j))}function Re(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function w(u){let g={params:[]};for(let x of u.parameters)x.type==="JsdocTypeKeyValue"?x.key==="this"?g.this=x.right:x.key==="new"?g.new=x.right:g.params.push(x):g.params.push(x);return g}function B(u,g,x){return u==="prefix"?x+g:g+x}function F(u,g){switch(g){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function P(){return{JsdocTypeParenthesis:(u,g)=>`(${u.element!==void 0?g(u.element):""})`,JsdocTypeKeyof:(u,g)=>`keyof ${g(u.element)}`,JsdocTypeFunction:(u,g)=>{var x;if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let j=`${u.typeParameters!==void 0?`<${(x=u.typeParameters.map(g).join(", "))!==null&&x!==void 0?x:""}>`:""}(${u.parameters.map(g).join(", ")}) => ${g(u.returnType)}`;return u.constructor&&(j="new "+j),j}else{let j=u.constructor?"new":"function";return u.parenthesis&&(j+=`(${u.parameters.map(g).join(", ")})`,u.returnType!==void 0&&(j+=`: ${g(u.returnType)}`)),j}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,g)=>`[${u.elements.map(g).join(", ")}]`,JsdocTypeVariadic:(u,g)=>u.meta.position===void 0?"...":B(u.meta.position,g(u.element),"..."),JsdocTypeNamePath:(u,g)=>{let x=g(u.left),j=g(u.right);switch(u.pathType){case"inner":return`${x}~${j}`;case"instance":return`${x}#${j}`;case"property":return`${x}.${j}`;case"property-brackets":return`${x}[${j}]`}},JsdocTypeStringValue:u=>F(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,g)=>{if(u.meta.brackets==="square"){let x=u.elements[0],j=g(x);return x.type==="JsdocTypeUnion"||x.type==="JsdocTypeIntersection"?`(${j})[]`:`${j}[]`}else return`${g(u.left)}${u.meta.dot?".":""}<${u.infer===!0?"infer ":""}${u.elements.map(g).join(", ")}>`},JsdocTypeImport:(u,g)=>`import(${g(u.element)})`,JsdocTypeObjectField:(u,g)=>{let x="";return u.readonly&&(x+="readonly "),typeof u.key=="string"?x+=F(u.key,u.meta.quote):x+=g(u.key),u.optional&&(x+="?"),u.right===void 0?x:x+`: ${g(u.right)}`},JsdocTypeJsdocObjectField:(u,g)=>`${g(u.left)}: ${g(u.right)}`,JsdocTypeKeyValue:(u,g)=>{let x=u.key;return u.optional&&(x+="?"),u.variadic&&(x="..."+x),u.right===void 0?x:x+`: ${g(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${F(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,g)=>B(u.meta.position,g(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,g)=>B(u.meta.position,g(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,g)=>{var x,j;return`{${(u.meta.separator==="linebreak"&&u.elements.length>1?`
|
|
15
|
-
`+((x=u.meta.propertyIndent)!==null&&x!==void 0?x:""):"")+u.elements.map(g).join(u.meta.separator==="comma"?", ":u.meta.separator==="linebreak"?`
|
|
16
|
-
`+((j=u.meta.propertyIndent)!==null&&j!==void 0?j:""):"; ")+(u.meta.separator==="linebreak"&&u.elements.length>1?`
|
|
17
|
-
`:"")}}`},JsdocTypeOptional:(u,g)=>B(u.meta.position,g(u.element),"="),JsdocTypeSymbol:(u,g)=>`${u.value}(${u.element!==void 0?g(u.element):""})`,JsdocTypeTypeof:(u,g)=>`typeof ${g(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,g)=>u.elements.map(g).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,g)=>u.elements.map(g).join(" & "),JsdocTypeProperty:u=>F(u.value,u.meta.quote),JsdocTypePredicate:(u,g)=>`${g(u.left)} is ${g(u.right)}`,JsdocTypeIndexSignature:(u,g)=>`[${u.key}: ${g(u.right)}]`,JsdocTypeMappedType:(u,g)=>`[${u.key} in ${g(u.right)}]`,JsdocTypeAsserts:(u,g)=>`asserts ${g(u.left)} is ${g(u.right)}`,JsdocTypeReadonlyArray:(u,g)=>`readonly ${g(u.element)}`,JsdocTypeAssertsPlain:(u,g)=>`asserts ${g(u.element)}`,JsdocTypeConditional:(u,g)=>`${g(u.checksType)} extends ${g(u.extendsType)} ? ${g(u.trueType)} : ${g(u.falseType)}`,JsdocTypeTypeParameter:(u,g)=>`${g(u.name)}${u.constraint!==void 0?` extends ${g(u.constraint)}`:""}${u.defaultValue!==void 0?` = ${g(u.defaultValue)}`:""}`}}let $=P();function re(u){return Bt($,u)}let oe=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function se(u){let g={type:"NameExpression",name:u};return oe.includes(u)&&(g.reservedWord=!0),g}let ve={JsdocTypeOptional:(u,g)=>{let x=g(u.element);return x.optional=!0,x},JsdocTypeNullable:(u,g)=>{let x=g(u.element);return x.nullable=!0,x},JsdocTypeNotNullable:(u,g)=>{let x=g(u.element);return x.nullable=!1,x},JsdocTypeVariadic:(u,g)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let x=g(u.element);return x.repeatable=!0,x},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>se(F(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,g)=>{let x=w(u),j={type:"FunctionType",params:x.params.map(g)};return x.this!==void 0&&(j.this=g(x.this)),x.new!==void 0&&(j.new=g(x.new)),u.returnType!==void 0&&(j.result=g(u.returnType)),j},JsdocTypeGeneric:(u,g)=>({type:"TypeApplication",applications:u.elements.map(x=>g(x)),expression:g(u.left)}),JsdocTypeSpecialNamePath:u=>se(u.specialType+":"+F(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?se(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>se(u.value.toString()),JsdocTypeObject:(u,g)=>{let x={type:"RecordType",fields:[]};for(let j of u.elements)j.type!=="JsdocTypeObjectField"&&j.type!=="JsdocTypeJsdocObjectField"?x.fields.push({type:"FieldType",key:g(j),value:void 0}):x.fields.push(g(j));return x},JsdocTypeObjectField:(u,g)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:se(F(u.key,u.meta.quote)),value:u.right===void 0?void 0:g(u.right)}},JsdocTypeJsdocObjectField:(u,g)=>({type:"FieldType",key:g(u.left),value:g(u.right)}),JsdocTypeUnion:(u,g)=>({type:"TypeUnion",elements:u.elements.map(x=>g(x))}),JsdocTypeKeyValue:(u,g)=>({type:"FieldType",key:se(u.key),value:u.right===void 0?void 0:g(u.right)}),JsdocTypeNamePath:(u,g)=>{let x=g(u.left),j;u.right.type==="JsdocTypeSpecialNamePath"?j=g(u.right).name:j=F(u.right.value,u.right.meta.quote);let Q=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return se(`${x.name}${Q}${j}`)},JsdocTypeSymbol:u=>{let g="",x=u.element,j=!1;return x?.type==="JsdocTypeVariadic"&&(x.meta.position==="prefix"?g="...":j=!0,x=x.element),x?.type==="JsdocTypeName"?g+=x.value:x?.type==="JsdocTypeNumber"&&(g+=x.value.toString()),j&&(g+="..."),se(`${u.value}(${g})`)},JsdocTypeParenthesis:(u,g)=>g(y(u.element)),JsdocTypeMappedType:Re,JsdocTypeIndexSignature:Re,JsdocTypeImport:Re,JsdocTypeKeyof:Re,JsdocTypeTuple:Re,JsdocTypeTypeof:Re,JsdocTypeIntersection:Re,JsdocTypeProperty:Re,JsdocTypePredicate:Re,JsdocTypeAsserts:Re,JsdocTypeReadonlyArray:Re,JsdocTypeAssertsPlain:Re,JsdocTypeConditional:Re,JsdocTypeTypeParameter:Re};function je(u){return Bt(ve,u)}function de(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Ft(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function jt(u,g){return g.length===2?{type:u,left:g[0],right:g[1]}:{type:u,left:g[0],right:jt(u,g.slice(1))}}let $r={JsdocTypeOptional:(u,g)=>({type:"OPTIONAL",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,g)=>({type:"NULLABLE",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,g)=>({type:"NOT_NULLABLE",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,g)=>{let x={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(x.value=g(u.element)),x},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,g)=>({type:"TYPE_QUERY",name:g(u.element)}),JsdocTypeTuple:(u,g)=>({type:"TUPLE",entries:u.elements.map(g)}),JsdocTypeKeyof:(u,g)=>({type:"KEY_QUERY",value:g(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:de(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,g)=>{let x=w(u),j={type:u.arrow?"ARROW":"FUNCTION",params:x.params.map(Q=>{if(Q.type==="JsdocTypeKeyValue"){if(Q.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:Q.key,typeName:g(Q.right)}}else return g(Q)}),new:null,returns:null};return x.this!==void 0?j.this=g(x.this):u.arrow||(j.this=null),x.new!==void 0&&(j.new=g(x.new)),u.returnType!==void 0&&(j.returns=g(u.returnType)),j},JsdocTypeGeneric:(u,g)=>{let x={type:"GENERIC",subject:g(u.left),objects:u.elements.map(g),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(x.objects[0]={type:"NAME",name:"function"}),x},JsdocTypeObjectField:(u,g)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:de(u.meta.quote),value:null,readonly:!1};let x=g(u.right);return u.optional&&(x={type:"OPTIONAL",value:x,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:de(u.meta.quote),value:x,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,g)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let x=g(u.right);return u.optional&&(x={type:"OPTIONAL",value:x,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:x,readonly:!1}},JsdocTypeObject:(u,g)=>{let x=[];for(let j of u.elements)(j.type==="JsdocTypeObjectField"||j.type==="JsdocTypeJsdocObjectField")&&x.push(g(j));return{type:"RECORD",entries:x}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:de(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,g)=>{let x=!1,j,Q;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(x=!0,j=u.right.value,Q=de(u.right.meta.quote)):(j=u.right.value,Q=de(u.right.meta.quote));let ie={type:Ft(u.pathType),owner:g(u.left),name:j,quoteStyle:Q,hasEventPrefix:x};if(ie.owner.type==="MODULE"){let ce=ie.owner;return ie.owner=ie.owner.value,ce.value=ie,ce}else return ie},JsdocTypeUnion:(u,g)=>jt("UNION",u.elements.map(g)),JsdocTypeParenthesis:(u,g)=>({type:"PARENTHESIS",value:g(y(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:de(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,g)=>jt("INTERSECTION",u.elements.map(g)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:Re,JsdocTypeProperty:Re,JsdocTypePredicate:Re,JsdocTypeMappedType:Re,JsdocTypeIndexSignature:Re,JsdocTypeAsserts:Re,JsdocTypeReadonlyArray:Re,JsdocTypeAssertsPlain:Re,JsdocTypeConditional:Re,JsdocTypeTypeParameter:Re};function un(u){return Bt($r,u)}function Gt(){return{JsdocTypeIntersection:(u,g)=>({type:"JsdocTypeIntersection",elements:u.elements.map(g)}),JsdocTypeGeneric:(u,g)=>({type:"JsdocTypeGeneric",left:g(u.left),elements:u.elements.map(g),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,g)=>({type:"JsdocTypeUnion",elements:u.elements.map(g)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,g)=>({type:"JsdocTypeTypeof",element:g(u.element)}),JsdocTypeSymbol:(u,g)=>{let x={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(x.element=g(u.element)),x},JsdocTypeOptional:(u,g)=>({type:"JsdocTypeOptional",element:g(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,g)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(g)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,g)=>({type:"JsdocTypeNotNullable",element:g(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,g)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:g(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,g)=>({type:"JsdocTypeJsdocObjectField",left:g(u.left),right:g(u.right)}),JsdocTypeKeyValue:(u,g)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:g(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,g)=>({type:"JsdocTypeImport",element:g(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,g)=>{let x={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(x.element=g(u.element)),x},JsdocTypeTuple:(u,g)=>({type:"JsdocTypeTuple",elements:u.elements.map(g)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,g)=>{let x={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(g),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(x.returnType=g(u.returnType)),x},JsdocTypeKeyof:(u,g)=>({type:"JsdocTypeKeyof",element:g(u.element)}),JsdocTypeParenthesis:(u,g)=>({type:"JsdocTypeParenthesis",element:g(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,g)=>({type:"JsdocTypePredicate",left:g(u.left),right:g(u.right)}),JsdocTypeIndexSignature:(u,g)=>({type:"JsdocTypeIndexSignature",key:u.key,right:g(u.right)}),JsdocTypeMappedType:(u,g)=>({type:"JsdocTypeMappedType",key:u.key,right:g(u.right)}),JsdocTypeAsserts:(u,g)=>({type:"JsdocTypeAsserts",left:g(u.left),right:g(u.right)}),JsdocTypeReadonlyArray:(u,g)=>({type:"JsdocTypeReadonlyArray",element:g(u.element)}),JsdocTypeAssertsPlain:(u,g)=>({type:"JsdocTypeAssertsPlain",element:g(u.element)}),JsdocTypeConditional:(u,g)=>({type:"JsdocTypeConditional",checksType:g(u.checksType),extendsType:g(u.extendsType),trueType:g(u.trueType),falseType:g(u.falseType)}),JsdocTypeTypeParameter:(u,g)=>({type:"JsdocTypeTypeParameter",name:g(u.name),constraint:u.constraint!==void 0?g(u.constraint):void 0,defaultValue:u.defaultValue!==void 0?g(u.defaultValue):void 0})}}let ln={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function Vr(u,g,x,j,Q){j?.(u,g,x);let ie=ln[u.type];for(let ce of ie){let he=u[ce];if(he!==void 0)if(Array.isArray(he))for(let Ie of he)Vr(Ie,u,ce,j,Q);else Vr(he,u,ce,j,Q)}Q?.(u,g,x)}function zi(u,g,x){Vr(u,void 0,void 0,g,x)}r.catharsisTransform=je,r.identityTransformRules=Gt,r.jtpTransform=un,r.parse=bt,r.stringify=re,r.stringifyRules=P,r.transform=Bt,r.traverse=zi,r.tryParse=nt,r.visitorKeys=ln})}}),o1=Y({"../node_modules/browser-dtector/browser-dtector.umd.min.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).BrowserDetector=n()})(e,function(){function r(p,l){for(var d=0;d<l.length;d++){var f=l[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(p,(h=f.key,m=void 0,typeof(m=function(b,E){if(typeof b!="object"||b===null)return b;var _=b[Symbol.toPrimitive];if(_!==void 0){var A=_.call(b,E);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(b)}(h,"string"))=="symbol"?m:String(m)),f)}var h,m}var n={chrome:"Google Chrome",brave:"Brave",crios:"Google Chrome",edge:"Microsoft Edge",edg:"Microsoft Edge",edgios:"Microsoft Edge",fennec:"Mozilla Firefox",jsdom:"JsDOM",mozilla:"Mozilla Firefox",fxios:"Mozilla Firefox",msie:"Microsoft Internet Explorer",opera:"Opera",opios:"Opera",opr:"Opera",opt:"Opera",rv:"Microsoft Internet Explorer",safari:"Safari",samsungbrowser:"Samsung Browser",electron:"Electron"},i={android:"Android",androidTablet:"Android Tablet",cros:"Chrome OS",fennec:"Android Tablet",ipad:"IPad",iphone:"IPhone",jsdom:"JsDOM",linux:"Linux",mac:"Macintosh",tablet:"Android Tablet",win:"Windows","windows phone":"Windows Phone",xbox:"Microsoft Xbox"},o=function(p){var l=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),d=Number(p).toString().match(l);return d?d[0]:null},a=function(){return typeof window<"u"?window.navigator:null},s=function(){function p(h){var m;(function(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")})(this,p),this.userAgent=h||((m=a())===null||m===void 0?void 0:m.userAgent)||null}var l,d,f;return l=p,d=[{key:"parseUserAgent",value:function(h){var m,b,E,_={},A=h||this.userAgent||"",T=A.toLowerCase().replace(/\s\s+/g," "),k=/(edge)\/([\w.]+)/.exec(T)||/(edg)[/]([\w.]+)/.exec(T)||/(opr)[/]([\w.]+)/.exec(T)||/(opt)[/]([\w.]+)/.exec(T)||/(fxios)[/]([\w.]+)/.exec(T)||/(edgios)[/]([\w.]+)/.exec(T)||/(jsdom)[/]([\w.]+)/.exec(T)||/(samsungbrowser)[/]([\w.]+)/.exec(T)||/(electron)[/]([\w.]+)/.exec(T)||/(chrome)[/]([\w.]+)/.exec(T)||/(crios)[/]([\w.]+)/.exec(T)||/(opios)[/]([\w.]+)/.exec(T)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(webkit)[/]([\w.]+)/.exec(T)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(T)||/(msie) ([\w.]+)/.exec(T)||/(fennec)[/]([\w.]+)/.exec(T)||T.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(T)||T.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(T)||[],O=/(ipad)/.exec(T)||/(ipod)/.exec(T)||/(iphone)/.exec(T)||/(jsdom)/.exec(T)||/(windows phone)/.exec(T)||/(xbox)/.exec(T)||/(win)/.exec(T)||/(tablet)/.exec(T)||/(android)/.test(T)&&/(mobile)/.test(T)===!1&&["androidTablet"]||/(android)/.exec(T)||/(mac)/.exec(T)||/(linux)/.exec(T)||/(cros)/.exec(T)||[],R=k[5]||k[3]||k[1]||null,y=O[0]||null,S=k[4]||k[2]||null,C=a();R==="chrome"&&typeof(C==null||(m=C.brave)===null||m===void 0?void 0:m.isBrave)=="function"&&(R="brave"),R&&(_[R]=!0),y&&(_[y]=!0);var D=!!(_.tablet||_.android||_.androidTablet),J=!!(_.ipad||_.tablet||_.androidTablet),M=!!(_.android||_.androidTablet||_.tablet||_.ipad||_.ipod||_.iphone||_["windows phone"]),G=!!(_.cros||_.mac||_.linux||_.win),L=!!(_.brave||_.chrome||_.crios||_.opr||_.safari||_.edg||_.electron),N=!!(_.msie||_.rv);return{name:(b=n[R])!==null&&b!==void 0?b:null,platform:(E=i[y])!==null&&E!==void 0?E:null,userAgent:A,version:S,shortVersion:S?o(parseFloat(S),2):null,isAndroid:D,isTablet:J,isMobile:M,isDesktop:G,isWebkit:L,isIE:N}}},{key:"getBrowserInfo",value:function(){var h=this.parseUserAgent();return{name:h.name,platform:h.platform,userAgent:h.userAgent,version:h.version,shortVersion:h.shortVersion}}}],f=[{key:"VERSION",get:function(){return"3.4.0"}}],d&&r(l.prototype,d),f&&r(l,f),Object.defineProperty(l,"prototype",{writable:!1}),p}();return s})}}),cc={};ur(cc,{ARGTYPES_INFO_REQUEST:()=>Iy,ARGTYPES_INFO_RESPONSE:()=>qu,CHANNEL_CREATED:()=>s1,CHANNEL_WS_DISCONNECT:()=>fy,CONFIG_ERROR:()=>hy,CREATE_NEW_STORYFILE_REQUEST:()=>u1,CREATE_NEW_STORYFILE_RESPONSE:()=>l1,CURRENT_STORY_WAS_SET:()=>ku,DOCS_PREPARED:()=>my,DOCS_RENDERED:()=>dc,FILE_COMPONENT_SEARCH_REQUEST:()=>c1,FILE_COMPONENT_SEARCH_RESPONSE:()=>p1,FORCE_REMOUNT:()=>ja,FORCE_RE_RENDER:()=>fc,GLOBALS_UPDATED:()=>bo,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>Ny,NAVIGATE_URL:()=>d1,OPEN_IN_EDITOR_REQUEST:()=>P1,OPEN_IN_EDITOR_RESPONSE:()=>O1,PLAY_FUNCTION_THREW_EXCEPTION:()=>yy,PRELOAD_ENTRIES:()=>by,PREVIEW_BUILDER_PROGRESS:()=>f1,PREVIEW_INITIALIZED:()=>Ey,PREVIEW_KEYDOWN:()=>vy,REGISTER_SUBSCRIPTION:()=>h1,REQUEST_WHATS_NEW_DATA:()=>C1,RESET_STORY_ARGS:()=>hc,RESULT_WHATS_NEW_DATA:()=>T1,SAVE_STORY_REQUEST:()=>D1,SAVE_STORY_RESPONSE:()=>R1,SELECT_STORY:()=>m1,SET_CONFIG:()=>y1,SET_CURRENT_STORY:()=>mc,SET_FILTER:()=>g1,SET_GLOBALS:()=>Ay,SET_INDEX:()=>b1,SET_STORIES:()=>E1,SET_WHATS_NEW_CACHE:()=>S1,SHARED_STATE_CHANGED:()=>v1,SHARED_STATE_SET:()=>A1,STORIES_COLLAPSE_ALL:()=>_1,STORIES_EXPAND_ALL:()=>w1,STORY_ARGS_UPDATED:()=>_y,STORY_CHANGED:()=>wy,STORY_ERRORED:()=>Cy,STORY_FINISHED:()=>ju,STORY_HOT_UPDATED:()=>Py,STORY_INDEX_INVALIDATED:()=>Ty,STORY_MISSING:()=>Mu,STORY_PREPARED:()=>Sy,STORY_RENDERED:()=>qa,STORY_RENDER_PHASE_CHANGED:()=>Wn,STORY_SPECIFIED:()=>xy,STORY_THREW_EXCEPTION:()=>Dy,STORY_UNCHANGED:()=>Ry,TELEMETRY_ERROR:()=>Fy,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>x1,UNHANDLED_ERRORS_WHILE_PLAYING:()=>gy,UPDATE_GLOBALS:()=>yc,UPDATE_QUERY_PARAMS:()=>Oy,UPDATE_STORY_ARGS:()=>gc,default:()=>a1});var pc=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.STORY_HOT_UPDATED="storyHotUpdated",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_INITIALIZED="previewInitialized",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.OPEN_IN_EDITOR_REQUEST="openInEditorRequest",e.OPEN_IN_EDITOR_RESPONSE="openInEditorResponse",e.MANAGER_INERT_ATTRIBUTE_CHANGED="managerInertAttributeChanged",e))(pc||{}),a1=pc,{CHANNEL_WS_DISCONNECT:fy,CHANNEL_CREATED:s1,CONFIG_ERROR:hy,CREATE_NEW_STORYFILE_REQUEST:u1,CREATE_NEW_STORYFILE_RESPONSE:l1,CURRENT_STORY_WAS_SET:ku,DOCS_PREPARED:my,DOCS_RENDERED:dc,FILE_COMPONENT_SEARCH_REQUEST:c1,FILE_COMPONENT_SEARCH_RESPONSE:p1,FORCE_RE_RENDER:fc,FORCE_REMOUNT:ja,GLOBALS_UPDATED:bo,NAVIGATE_URL:d1,PLAY_FUNCTION_THREW_EXCEPTION:yy,UNHANDLED_ERRORS_WHILE_PLAYING:gy,PRELOAD_ENTRIES:by,PREVIEW_INITIALIZED:Ey,PREVIEW_BUILDER_PROGRESS:f1,PREVIEW_KEYDOWN:vy,REGISTER_SUBSCRIPTION:h1,RESET_STORY_ARGS:hc,SELECT_STORY:m1,SET_CONFIG:y1,SET_CURRENT_STORY:mc,SET_FILTER:g1,SET_GLOBALS:Ay,SET_INDEX:b1,SET_STORIES:E1,SHARED_STATE_CHANGED:v1,SHARED_STATE_SET:A1,STORIES_COLLAPSE_ALL:_1,STORIES_EXPAND_ALL:w1,STORY_ARGS_UPDATED:_y,STORY_CHANGED:wy,STORY_ERRORED:Cy,STORY_INDEX_INVALIDATED:Ty,STORY_MISSING:Mu,STORY_PREPARED:Sy,STORY_RENDER_PHASE_CHANGED:Wn,STORY_RENDERED:qa,STORY_FINISHED:ju,STORY_SPECIFIED:xy,STORY_THREW_EXCEPTION:Dy,STORY_UNCHANGED:Ry,STORY_HOT_UPDATED:Py,UPDATE_GLOBALS:yc,UPDATE_QUERY_PARAMS:Oy,UPDATE_STORY_ARGS:gc,REQUEST_WHATS_NEW_DATA:C1,RESULT_WHATS_NEW_DATA:T1,SET_WHATS_NEW_CACHE:S1,TOGGLE_WHATS_NEW_NOTIFICATIONS:x1,TELEMETRY_ERROR:Fy,SAVE_STORY_REQUEST:D1,SAVE_STORY_RESPONSE:R1,ARGTYPES_INFO_REQUEST:Iy,ARGTYPES_INFO_RESPONSE:qu,OPEN_IN_EDITOR_REQUEST:P1,OPEN_IN_EDITOR_RESPONSE:O1,MANAGER_INERT_ATTRIBUTE_CHANGED:Ny}=pc,By={};ur(By,{global:()=>ge});var ge=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),ky={"@storybook/global":"__STORYBOOK_MODULE_GLOBAL__","storybook/test":"__STORYBOOK_MODULE_TEST__","storybook/actions":"__STORYBOOK_MODULE_ACTIONS__","storybook/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__","storybook/internal/channels":"__STORYBOOK_MODULE_CHANNELS__","storybook/internal/client-logger":"__STORYBOOK_MODULE_CLIENT_LOGGER__","storybook/internal/core-events":"__STORYBOOK_MODULE_CORE_EVENTS__","storybook/internal/preview-errors":"__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__","storybook/internal/types":"__STORYBOOK_MODULE_TYPES__","storybook/internal/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__"},F1=Object.keys(ky),My={};ur(My,{Channel:()=>fs,HEARTBEAT_INTERVAL:()=>sg,HEARTBEAT_MAX_LATENCY:()=>ug,PostMessageTransport:()=>ag,WebsocketTransport:()=>lg,createBrowserChannel:()=>HR,default:()=>JR});function We(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(s,p){var l=p.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.map(function(d){var f,h;return(h=(f=d.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):s},[]);if(i.length){var o=new RegExp(`
|
|
18
|
-
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(s){return s.replace(o,`
|
|
19
|
-
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,p){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",f=s;typeof s=="string"&&s.includes(`
|
|
20
|
-
`)&&(f=String(s).split(`
|
|
21
|
-
`).map(function(h,m){return m===0?h:""+d+h}).join(`
|
|
22
|
-
`)),a+=f+n[p+1]}),a}var Sd=new Map,I1="UNIVERSAL_STORE:",hr={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},qn=class qe{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,i)=>{let o=typeof n=="function",a=o?"*":n,s=o?n:i;if(this.debug("subscribe",{eventType:a,listener:s}),!s)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(a)||this.listeners.set(a,new Set),this.listeners.get(a).add(s),()=>{this.debug("unsubscribe",{eventType:a,listener:s}),this.listeners.has(a)&&(this.listeners.get(a).delete(s),this.listeners.get(a)?.size===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==qe.Status.READY)throw new TypeError(We`Cannot send event before store is ready. You can get the current status with store.status,
|
|
23
|
-
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
24
|
-
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!qe.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(qe.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?qe.ActorType.LEADER:qe.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${I1}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===qe.ActorType.LEADER)this.syncing={state:hr.RESOLVED,promise:Promise.resolve()};else{let n,i,o=new Promise((a,s)=>{n=()=>{this.syncing.state===hr.PENDING&&(this.syncing.state=hr.RESOLVED,a())},i=p=>{this.syncing.state===hr.PENDING&&(this.syncing.state=hr.REJECTED,s(p))}});this.syncing={state:hr.PENDING,promise:o,resolve:n,reject:i}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??qe.preparation.channel,this.environment=r?.environment??qe.preparation.environment,this.channel&&this.environment?(qe.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):qe.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((i,o)=>{t=a=>{i(a)},r=(...a)=>{o(a)}});qe.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??qe.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return qe.Status.UNPREPARED;switch(this.syncing?.state){case hr.PENDING:case void 0:return qe.Status.SYNCING;case hr.REJECTED:return qe.Status.ERROR;case hr.RESOLVED:default:return qe.Status.READY}}untilReady(){return Promise.all([qe.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(We`[UniversalStore]
|
|
25
|
-
create`,{options:t});let r=Sd.get(t.id);if(r)return console.warn(We`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
26
|
-
You should reuse the existing instance instead of trying to create a new one.`),r;qe.isInternalConstructing=!0;let n=new qe(t);return Sd.set(t.id,n),n}static __prepare(t,r){qe.preparation.channel=t,qe.preparation.environment=r,qe.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==qe.Status.READY)throw new TypeError(We`Cannot set state before store is ready. You can get the current status with store.status,
|
|
27
|
-
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
28
|
-
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let i={type:qe.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(qe.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===qe.ActorType.LEADER?this.emitToChannel({type:qe.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:qe.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:qe.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),i=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:i}),[...n??[],...i??[]].forEach(o=>o(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===hr.PENDING&&r.type!==qe.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===qe.ActorType.LEADER){let i=!0;switch(r.type){case qe.InternalEventType.EXISTING_STATE_REQUEST:i=!1;let o={type:qe.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:o}),this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor});break;case qe.InternalEventType.LEADER_CREATED:i=!1,this.syncing.state=hr.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(We`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
29
|
-
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
30
|
-
Leaders detected:
|
|
31
|
-
this: ${JSON.stringify(this.actor,null,2)}
|
|
32
|
-
other: ${JSON.stringify(n.actor,null,2)}`);break}i&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===qe.ActorType.FOLLOWER)switch(r.type){case qe.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==hr.PENDING)break;this.syncing.resolve?.();let i={type:qe.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(i,n);break}switch(r.type){case qe.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(We`[UniversalStore::${this.id}::${this.environment??qe.Environment.UNKNOWN}]
|
|
33
|
-
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){qe.preparation.reject(new Error("reset")),qe.setupPreparationPromise(),qe.isInternalConstructing=!1}};qn.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},qn.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},qn.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},qn.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},qn.isInternalConstructing=!1,qn.setupPreparationPromise();var zs=qn,N1=e=>e.transports!==void 0,B1=()=>Math.random().toString(16).slice(2),fs=class{constructor(e={}){this.sender=B1(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,N1(e)?(this.transports=e.transports||[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let r={type:e,args:t,from:this.sender},n={};t.length>=1&&t[0]&&t[0].options&&(n=t[0].options);let i=()=>{this.transports.forEach(o=>{o.send(r,n)}),this.handleEvent(r)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let r=this.onceListener(e,t);this.addListener(e,r)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let r=this.listeners(e);r&&(this.events[e]=r.filter(n=>n!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(r=>{r.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let r=(...n)=>(this.removeListener(e,r),t(...n));return r}},jy={};ur(jy,{deprecate:()=>bc,logger:()=>vt,once:()=>Ot,pretty:()=>dr});var{LOGLEVEL:k1}=ge,mn={trace:1,debug:2,info:3,warn:4,error:5,silent:10},M1=k1,li=mn[M1]||mn.info,vt={trace:(e,...t)=>{li<=mn.trace&&console.trace(e,...t)},debug:(e,...t)=>{li<=mn.debug&&console.debug(e,...t)},info:(e,...t)=>{li<=mn.info&&console.info(e,...t)},warn:(e,...t)=>{li<=mn.warn&&console.warn(e,...t)},error:(e,...t)=>{li<=mn.error&&console.error(e,...t)},log:(e,...t)=>{li<mn.silent&&console.log(e,...t)}},Lu=new Set,Ot=e=>(t,...r)=>{if(!Lu.has(t))return Lu.add(t),vt[e](t,...r)};Ot.clear=()=>Lu.clear();Ot.trace=Ot("trace");Ot.debug=Ot("debug");Ot.info=Ot("info");Ot.warn=Ot("warn");Ot.error=Ot("error");Ot.log=Ot("log");var bc=Ot("warn"),dr=e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,i=/<\/span>/gi,o;for(r.push(t[0].replace(n,"%c").replace(i,"%c"));o=n.exec(t[0]);)r.push(o[2]),r.push("");for(let a=1;a<t.length;a++)r.push(t[a])}vt[e].apply(vt,r)};dr.trace=dr("trace");dr.debug=dr("debug");dr.info=dr("info");dr.warn=dr("warn");dr.error=dr("error");var j1=Object.create,qy=Object.defineProperty,q1=Object.getOwnPropertyDescriptor,Ly=Object.getOwnPropertyNames,L1=Object.getPrototypeOf,$1=Object.prototype.hasOwnProperty,Ue=(e,t)=>function(){return t||(0,e[Ly(e)[0]])((t={exports:{}}).exports,t),t.exports},V1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ly(t))!$1.call(e,i)&&i!==r&&qy(e,i,{get:()=>t[i],enumerable:!(n=q1(t,i))||n.enumerable});return e},Ec=(e,t,r)=>(r=e!=null?j1(L1(e)):{},V1(!e||!e.__esModule?qy(r,"default",{value:e,enumerable:!0}):r,e)),U1=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],J1=["detail"];function H1(e){let t=U1.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of J1.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var $y=Ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),G1=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),z1=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),W1=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),K1=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Y1=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),vc=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),X1=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),Q1=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Z1=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),ex=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),tx=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),rx=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),nx=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),ix=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),ox=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=ix();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),ax=Ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Ac=Ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=ax();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),sx=Ue({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),Vy=Ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(r,n);if(p.value!==o||p.enumerable!==!0)return!1}return!0}}}),Uy=Ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Vy();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),Jy=Ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),Hy=Ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=$y();t.exports=r.getPrototypeOf||null}}),ux=Ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,i=Math.max,o="[object Function]",a=function(l,d){for(var f=[],h=0;h<l.length;h+=1)f[h]=l[h];for(var m=0;m<d.length;m+=1)f[m+l.length]=d[m];return f},s=function(l,d){for(var f=[],h=d,m=0;h<l.length;h+=1,m+=1)f[m]=l[h];return f},p=function(l,d){for(var f="",h=0;h<l.length;h+=1)f+=l[h],h+1<l.length&&(f+=d);return f};t.exports=function(l){var d=this;if(typeof d!="function"||n.apply(d)!==o)throw new TypeError(r+d);for(var f=s(arguments,1),h,m=function(){if(this instanceof h){var T=d.apply(this,a(f,arguments));return Object(T)===T?T:this}return d.apply(l,a(f,arguments))},b=i(0,d.length-f.length),E=[],_=0;_<b;_++)E[_]="$"+_;if(h=Function("binder","return function ("+p(E,",")+"){ return binder.apply(this,arguments); }")(m),d.prototype){var A=function(){};A.prototype=d.prototype,h.prototype=new A,A.prototype=null}return h}}}),hs=Ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=ux();t.exports=Function.prototype.bind||r}}),_c=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),Gy=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),lx=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),cx=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=hs(),n=Gy(),i=_c(),o=lx();t.exports=o||r.call(i,n)}}),zy=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=hs(),n=vc(),i=_c(),o=cx();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return o(r,i,a)}}}),px=Ue({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=zy(),n=Ac(),i;try{i=[].__proto__===Array.prototype}catch(p){if(!p||typeof p!="object"||!("code"in p)||p.code!=="ERR_PROTO_ACCESS")throw p}var o=!!i&&n&&n(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;t.exports=o&&typeof o.get=="function"?r([o.get]):typeof s=="function"?function(p){return s(p==null?p:a(p))}:!1}}),dx=Ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Jy(),n=Hy(),i=px();t.exports=r?function(o){return r(o)}:n?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return n(o)}:i?function(o){return i(o)}:null}}),Wy=Ue({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=hs();t.exports=i.call(r,n)}}),fx=Ue({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=$y(),i=G1(),o=z1(),a=W1(),s=K1(),p=Y1(),l=vc(),d=X1(),f=Q1(),h=Z1(),m=ex(),b=tx(),E=rx(),_=nx(),A=ox(),T=Function,k=function(pe){try{return T('"use strict"; return ('+pe+").constructor;")()}catch{}},O=Ac(),R=sx(),y=function(){throw new l},S=O?function(){try{return arguments.callee,y}catch{try{return O(arguments,"callee").get}catch{return y}}}():y,C=Uy()(),D=dx(),J=Hy(),M=Jy(),G=Gy(),L=_c(),N={},U=typeof Uint8Array>"u"||!D?r:D(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&D?D(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":p,"%ThrowTypeError%":S,"%TypedArray%":U,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":G,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":J,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":b,"%Math.pow%":E,"%Math.round%":_,"%Math.sign%":A,"%Reflect.getPrototypeOf%":M};if(D)try{null.error}catch(pe){K=D(D(pe)),W["%Error.prototype%"]=K}var K,ne=function pe(ye){var _e;if(ye==="%AsyncFunction%")_e=k("async function () {}");else if(ye==="%GeneratorFunction%")_e=k("function* () {}");else if(ye==="%AsyncGeneratorFunction%")_e=k("async function* () {}");else if(ye==="%AsyncGenerator%"){var Ae=pe("%AsyncGeneratorFunction%");Ae&&(_e=Ae.prototype)}else if(ye==="%AsyncIteratorPrototype%"){var Te=pe("%AsyncGenerator%");Te&&D&&(_e=D(Te.prototype))}return W[ye]=_e,_e},be={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},xe=hs(),we=Wy(),ue=xe.call(L,Array.prototype.concat),He=xe.call(G,Array.prototype.splice),Ve=xe.call(L,String.prototype.replace),Ce=xe.call(L,String.prototype.slice),le=xe.call(L,RegExp.prototype.exec),Ne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Be=/\\(\\)?/g,ut=function(pe){var ye=Ce(pe,0,1),_e=Ce(pe,-1);if(ye==="%"&&_e!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(_e==="%"&&ye!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var Ae=[];return Ve(pe,Ne,function(Te,Se,ke,st){Ae[Ae.length]=ke?Ve(st,Be,"$1"):Se||Te}),Ae},X=function(pe,ye){var _e=pe,Ae;if(we(be,_e)&&(Ae=be[_e],_e="%"+Ae[0]+"%"),we(W,_e)){var Te=W[_e];if(Te===N&&(Te=ne(_e)),typeof Te>"u"&&!ye)throw new l("intrinsic "+pe+" exists, but is not available. Please file an issue!");return{alias:Ae,name:_e,value:Te}}throw new p("intrinsic "+pe+" does not exist!")};t.exports=function(pe,ye){if(typeof pe!="string"||pe.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ye!="boolean")throw new l('"allowMissing" argument must be a boolean');if(le(/^%?[^%]*%?$/,pe)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _e=ut(pe),Ae=_e.length>0?_e[0]:"",Te=X("%"+Ae+"%",ye),Se=Te.name,ke=Te.value,st=!1,It=Te.alias;It&&(Ae=It[0],He(_e,ue([0,1],It)));for(var Le=1,yt=!0;Le<_e.length;Le+=1){var Ke=_e[Le],nr=Ce(Ke,0,1),Nt=Ce(Ke,-1);if((nr==='"'||nr==="'"||nr==="`"||Nt==='"'||Nt==="'"||Nt==="`")&&nr!==Nt)throw new p("property names with quotes must have matching quotes");if((Ke==="constructor"||!yt)&&(st=!0),Ae+="."+Ke,Se="%"+Ae+"%",we(W,Se))ke=W[Se];else if(ke!=null){if(!(Ke in ke)){if(!ye)throw new l("base intrinsic for "+pe+" exists, but the property is not available.");return}if(O&&Le+1>=_e.length){var fe=O(ke,Ke);yt=!!fe,yt&&"get"in fe&&!("originalValue"in fe.get)?ke=fe.get:ke=ke[Ke]}else yt=we(ke,Ke),ke=ke[Ke];yt&&!st&&(W[Se]=ke)}}return ke}}}),wc=Ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=fx(),n=zy(),i=n([r("%String.prototype.indexOf%")]);t.exports=function(o,a){var s=r(o,!!a);return typeof s=="function"&&i(o,".prototype.")>-1?n([s]):s}}}),hx=Ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Vy();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),Ky=Ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=wc(),n=hx()(),i=Wy(),o=Ac(),a;n?(s=r("RegExp.prototype.exec"),p={},l=function(){throw p},d={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=l),a=function(m){if(!m||typeof m!="object")return!1;var b=o(m,"lastIndex"),E=b&&i(b,"value");if(!E)return!1;try{s(m,d)}catch(_){return _===p}}):(f=r("Object.prototype.toString"),h="[object RegExp]",a=function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:f(m)===h});var s,p,l,d,f,h;t.exports=a}}),mx=Ue({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(i){if(!i)return!1;var o=r.call(i);return o==="[object Function]"||typeof i=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(i===window.setTimeout||i===window.alert||i===window.confirm||i===window.prompt)}}}),yx=Ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=wc(),n=Ky(),i=r("RegExp.prototype.exec"),o=vc();t.exports=function(a){if(!n(a))throw new o("`regex` must be a RegExp");return function(s){return i(a,s)!==null}}}}),gx=Ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=wc(),n=r("Object.prototype.toString"),i=Uy()(),o=yx();i?(a=r("Symbol.prototype.toString"),s=o(/^Symbol\(.*\)$/),p=function(l){return typeof l.valueOf()!="symbol"?!1:s(a(l))},t.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||n(l)!=="[object Symbol]")return!1;try{return p(l)}catch{return!1}}):t.exports=function(l){return!1};var a,s,p}}),bx=Ec(Ky()),Ex=Ec(mx()),vx=Ec(gx());function Ax(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var _x=typeof global=="object"&&global&&global.Object===Object&&global,wx=_x,Cx=typeof self=="object"&&self&&self.Object===Object&&self,Tx=wx||Cx||Function("return this")(),Cc=Tx,Sx=Cc.Symbol,vi=Sx,Yy=Object.prototype,xx=Yy.hasOwnProperty,Dx=Yy.toString,Wi=vi?vi.toStringTag:void 0;function Rx(e){var t=xx.call(e,Wi),r=e[Wi];try{e[Wi]=void 0;var n=!0}catch{}var i=Dx.call(e);return n&&(t?e[Wi]=r:delete e[Wi]),i}var Px=Rx,Ox=Object.prototype,Fx=Ox.toString;function Ix(e){return Fx.call(e)}var Nx=Ix,Bx="[object Null]",kx="[object Undefined]",xd=vi?vi.toStringTag:void 0;function Mx(e){return e==null?e===void 0?kx:Bx:xd&&xd in Object(e)?Px(e):Nx(e)}var Xy=Mx;function jx(e){return e!=null&&typeof e=="object"}var qx=jx,Lx="[object Symbol]";function $x(e){return typeof e=="symbol"||qx(e)&&Xy(e)==Lx}var Tc=$x;function Vx(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ux=Vx,Jx=Array.isArray,Sc=Jx,Dd=vi?vi.prototype:void 0,Rd=Dd?Dd.toString:void 0;function Qy(e){if(typeof e=="string")return e;if(Sc(e))return Ux(e,Qy)+"";if(Tc(e))return Rd?Rd.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Hx=Qy;function Gx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zy=Gx,zx="[object AsyncFunction]",Wx="[object Function]",Kx="[object GeneratorFunction]",Yx="[object Proxy]";function Xx(e){if(!Zy(e))return!1;var t=Xy(e);return t==Wx||t==Kx||t==zx||t==Yx}var Qx=Xx,Zx=Cc["__core-js_shared__"],Ws=Zx,Pd=function(){var e=/[^.]+$/.exec(Ws&&Ws.keys&&Ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function eD(e){return!!Pd&&Pd in e}var tD=eD,rD=Function.prototype,nD=rD.toString;function iD(e){if(e!=null){try{return nD.call(e)}catch{}try{return e+""}catch{}}return""}var oD=iD,aD=/[\\^$.*+?()[\]{}|]/g,sD=/^\[object .+?Constructor\]$/,uD=Function.prototype,lD=Object.prototype,cD=uD.toString,pD=lD.hasOwnProperty,dD=RegExp("^"+cD.call(pD).replace(aD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fD(e){if(!Zy(e)||tD(e))return!1;var t=Qx(e)?dD:sD;return t.test(oD(e))}var hD=fD;function mD(e,t){return e?.[t]}var yD=mD;function gD(e,t){var r=yD(e,t);return hD(r)?r:void 0}var eg=gD;function bD(e,t){return e===t||e!==e&&t!==t}var ED=bD,vD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AD=/^\w*$/;function _D(e,t){if(Sc(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Tc(e)?!0:AD.test(e)||!vD.test(e)||t!=null&&e in Object(t)}var wD=_D,CD=eg(Object,"create"),Eo=CD;function TD(){this.__data__=Eo?Eo(null):{},this.size=0}var SD=TD;function xD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var DD=xD,RD="__lodash_hash_undefined__",PD=Object.prototype,OD=PD.hasOwnProperty;function FD(e){var t=this.__data__;if(Eo){var r=t[e];return r===RD?void 0:r}return OD.call(t,e)?t[e]:void 0}var ID=FD,ND=Object.prototype,BD=ND.hasOwnProperty;function kD(e){var t=this.__data__;return Eo?t[e]!==void 0:BD.call(t,e)}var MD=kD,jD="__lodash_hash_undefined__";function qD(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Eo&&t===void 0?jD:t,this}var LD=qD;function ki(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ki.prototype.clear=SD;ki.prototype.delete=DD;ki.prototype.get=ID;ki.prototype.has=MD;ki.prototype.set=LD;var Od=ki;function $D(){this.__data__=[],this.size=0}var VD=$D;function UD(e,t){for(var r=e.length;r--;)if(ED(e[r][0],t))return r;return-1}var ms=UD,JD=Array.prototype,HD=JD.splice;function GD(e){var t=this.__data__,r=ms(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():HD.call(t,r,1),--this.size,!0}var zD=GD;function WD(e){var t=this.__data__,r=ms(t,e);return r<0?void 0:t[r][1]}var KD=WD;function YD(e){return ms(this.__data__,e)>-1}var XD=YD;function QD(e,t){var r=this.__data__,n=ms(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ZD=QD;function Mi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mi.prototype.clear=VD;Mi.prototype.delete=zD;Mi.prototype.get=KD;Mi.prototype.has=XD;Mi.prototype.set=ZD;var eR=Mi,tR=eg(Cc,"Map"),rR=tR;function nR(){this.size=0,this.__data__={hash:new Od,map:new(rR||eR),string:new Od}}var iR=nR;function oR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var aR=oR;function sR(e,t){var r=e.__data__;return aR(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ys=sR;function uR(e){var t=ys(this,e).delete(e);return this.size-=t?1:0,t}var lR=uR;function cR(e){return ys(this,e).get(e)}var pR=cR;function dR(e){return ys(this,e).has(e)}var fR=dR;function hR(e,t){var r=ys(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var mR=hR;function ji(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ji.prototype.clear=iR;ji.prototype.delete=lR;ji.prototype.get=pR;ji.prototype.has=fR;ji.prototype.set=mR;var tg=ji,yR="Expected a function";function xc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(xc.Cache||tg),r}xc.Cache=tg;var gR=xc,bR=500;function ER(e){var t=gR(e,function(n){return r.size===bR&&r.clear(),n}),r=t.cache;return t}var vR=ER,AR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_R=/\\(\\)?/g,wR=vR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(AR,function(r,n,i,o){t.push(i?o.replace(_R,"$1"):n||r)}),t}),CR=wR;function TR(e){return e==null?"":Hx(e)}var SR=TR;function xR(e,t){return Sc(e)?e:wD(e,t)?[e]:CR(SR(e))}var DR=xR;function RR(e){if(typeof e=="string"||Tc(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var PR=RR;function OR(e,t){t=DR(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[PR(t[r++])];return r&&r==n?e:void 0}var FR=OR;function IR(e,t,r){var n=e==null?void 0:FR(e,t);return n===void 0?r:n}var NR=IR,Dc=Ax,BR=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Rc=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function rg(e){if(!Dc(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=H1(t),r=!0),t=Object.keys(t).reduce((n,i)=>{try{t[i]&&t[i].toJSON,n[i]=t[i]}catch{r=!0}return n},{}),r?t:e}var kR=function(e){let t,r,n,i;return function(o,a){try{if(o==="")return i=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),i.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return BR.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,bx.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,Ex.default)(a))return;if((0,vx.default)(a)){if(!e.allowSymbol)return;let l=Symbol.keyFor(a);return l!==void 0?`_gsymbol_${l}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(i)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if(a?.constructor?.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let l=t.get(a);if(!l){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((f,h)=>{try{f[h]=a[h]}catch{}return f},{})};return i.push(o),n.unshift(d),t.set(a,JSON.stringify(i)),a!==d&&r.set(a,d),d}return`_duplicate_${l}`}let p=t.get(a);if(!p){let l=Array.isArray(a)?a:rg(a);return i.push(o),n.unshift(l),t.set(a,JSON.stringify(i)),a!==l&&r.set(a,l),l}return`_duplicate_${p}`}catch{return}}},MR=function(e){let t=[],r;return function(n,i){if(n===""&&(r=i,t.forEach(({target:o,container:a,replacement:s})=>{let p=Rc(s)?JSON.parse(s):s.split(".");p.length===0?a[o]=r:a[o]=NR(r,p)})),n==="_constructor-name_")return i;if(Dc(i)&&i.__isConvertedError__){let{message:o,...a}=i.errorProperties,s=new Error(o);return Object.assign(s,a),s}if(typeof i=="string"&&i.startsWith("_regexp_")&&e.allowRegExp){let[,o,a]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(a,o)}return typeof i=="string"&&i.startsWith("_date_")&&e.allowDate?new Date(i.replace("_date_","")):typeof i=="string"&&i.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:i.replace(/^_duplicate_/,"")}),null):typeof i=="string"&&i.startsWith("_symbol_")&&e.allowSymbol?Symbol(i.replace("_symbol_","")):typeof i=="string"&&i.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(i.replace("_gsymbol_","")):typeof i=="string"&&i==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof i=="string"&&i==="_Infinity_"?Number.POSITIVE_INFINITY:typeof i=="string"&&i==="_NaN_"?Number.NaN:typeof i=="string"&&i.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(i.replace("_bigint_","")):i}},ng={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},ig=(e,t={})=>{let r={...ng,...t};return JSON.stringify(rg(e),kR(r),t.space)},jR=()=>{let e=new Map;return function t(r){Dc(r)&&Object.entries(r).forEach(([n,i])=>{i==="_undefined_"?r[n]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(r)&&r.forEach((n,i)=>{n==="_undefined_"?(e.set(n,!0),r[i]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},og=(e,t={})=>{let r={...ng,...t},n=JSON.parse(e,MR(r));return jR()(n),n},qR="Invariant failed";function en(e,t){if(!e)throw new Error(qR)}var LR=e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(o=>{try{return o.contentWindow?.location.origin===e.source.location.origin&&o.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return o.contentWindow===e.source}catch{}let a=o.getAttribute("src"),s;try{if(!a)return!1;({origin:s}=new URL(a,document.location.toString()))}catch{return!1}return s===e.origin}),i=r?.getAttribute("src");if(i&&n.length===0){let{protocol:o,host:a,pathname:s}=new URL(i,document.location.toString());return`${o}//${a}${s}`}return n.length>0&&vt.error("found multiple candidates for event source"),null},{document:Ks,location:Ys}=ge,Fd="storybook-channel",$R={maxDepth:25},ag=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof ge?.addEventListener=="function"&&ge.addEventListener("message",this.handleEvent.bind(this),!1),e.page!=="manager"&&e.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${e.page}"`)}setHandler(e){this.handler=(...t)=>{e.apply(this,t),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(e,t){let{target:r,allowRegExp:n,allowSymbol:i,allowDate:o,allowError:a,allowUndefined:s,maxDepth:p,space:l}=t||{},d=Object.fromEntries(Object.entries({allowRegExp:n,allowSymbol:i,allowDate:o,allowError:a,allowUndefined:s,maxDepth:p,space:l}).filter(([E,_])=>typeof _<"u")),f={...$R,...ge.CHANNEL_OPTIONS||{},...d},h=this.getFrames(r),m=new URLSearchParams(Ys?.search||""),b=ig({key:Fd,event:e,refId:m.get("refId")},f);return h.length?(this.buffer.length&&this.flush(),h.forEach(E=>{try{E.postMessage(b,"*")}catch{vt.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((E,_)=>{this.buffer.push({event:e,resolve:E,reject:_})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>{this.send(t.event).then(t.resolve).catch(t.reject)})}getFrames(e){if(this.config.page==="manager"){let t=Array.from(Ks.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(r=>{try{return r.contentWindow&&r.dataset.isStorybook!==void 0&&r.id===e?[r.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return ge&&ge.parent&&ge.parent!==ge.self?[ge.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Ks.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):ge&&ge.parent?[ge.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Ks.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):ge&&ge.parent?[ge.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:n,refId:i}=typeof t=="string"&&Rc(t)?og(t,ge.CHANNEL_OPTIONS||{}):t;if(r===Fd){let o=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',a=Object.values(cc).includes(n.type)?`<span style="color: #FF4785">${n.type}</span>`:`<span style="color: #FFAE00">${n.type}</span>`;if(i&&(n.refId=i),n.source=this.config.page==="preview"?e.origin:LR(e),!n.source){dr.error(`${o} received ${a} but was unable to determine the source of the event`);return}let s=`${o} received ${a} (${t.length})`;dr.debug(Ys.origin!==n.source?s:`${s} <span style="color: gray">(on ${Ys.origin} from ${n.source})</span>`,...n.args),en(this.handler,"ChannelHandler should be set"),this.handler(n)}}catch(t){vt.error(t)}}},{WebSocket:VR}=ge,sg=15e3,ug=5e3,lg=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new VR(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:n})=>{let i=typeof n=="string"&&Rc(n)?og(n):n;en(this.handler),this.handler(i),i.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=n=>{t&&t(n)},this.socket.onclose=n=>{en(this.handler),this.handler({type:fy,args:[{reason:n.reason,code:n.code}],from:r||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},sg+ug)}setHandler(e){this.handler=e}send(e){this.isClosed||(this.isReady?this.sendNow(e):this.sendLater(e))}sendLater(e){this.buffer.push(e)}sendNow(e){let t=ig(e,{maxDepth:15,...ge.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}},{CONFIG_TYPE:UR}=ge,JR=fs;function HR({page:e,extraTransports:t=[]}){let r=[new ag({page:e}),...t];if(UR==="DEVELOPMENT"){let i=window.location.protocol==="http:"?"ws":"wss",{hostname:o,port:a}=window.location,s=`${i}://${o}:${a}/storybook-server-channel`;r.push(new lg({url:s,onError:()=>{},page:e}))}let n=new fs({transports:r});return zs.__prepare(n,e==="manager"?zs.Environment.MANAGER:zs.Environment.PREVIEW),n}var cg={};ur(cg,{CalledExtractOnStoreError:()=>mg,CalledPreviewMethodBeforeInitializationError:()=>cr,Category:()=>dg,ElementA11yParameterError:()=>XR,EmptyIndexError:()=>Eg,ImplicitActionsDuringRendering:()=>hg,MdxFileWithNoCsfReferencesError:()=>bg,MissingRenderToCanvasError:()=>yg,MissingStoryAfterHmrError:()=>fg,MissingStoryFromCsfFileError:()=>Ag,MountMustBeDestructuredError:()=>Pc,NextJsSharpError:()=>zR,NextjsRouterMocksNotAvailable:()=>WR,NoRenderFunctionError:()=>wg,NoStoryMatchError:()=>vg,NoStoryMountedError:()=>Cg,StatusTypeIdMismatchError:()=>GR,StoryIndexFetchError:()=>gg,StoryStoreAccessedBeforeInitializationError:()=>_g,UnknownArgTypesError:()=>KR,UnsupportedViewportDimensionError:()=>YR});function Id({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function Nd(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var Mt=class pg extends Error{constructor(t){super(pg.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return Id({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:i}){let o;return t===!0?o=`https://storybook.js.org/error/${Id({code:r,category:n})}?ref=error`:typeof t=="string"?o=Nd(t):Array.isArray(t)&&(o=`
|
|
34
|
-
${t.map(a=>` - ${Nd(a)}`).join(`
|
|
35
|
-
`)}`),`${i}${o!=null?`
|
|
36
|
-
|
|
37
|
-
More info: ${o}
|
|
38
|
-
`:""}`}},dg=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e.ADDON_A11Y="ADDON_A11Y",e))(dg||{}),fg=class extends Mt{constructor(e){super({name:"MissingStoryAfterHmrError",category:"PREVIEW_API",code:1,message:We`
|
|
39
|
-
Couldn't find story matching id '${e.storyId}' after HMR.
|
|
40
|
-
- Did you just rename a story?
|
|
41
|
-
- Did you remove it from your CSF file?
|
|
42
|
-
- Are you sure a story with the id '${e.storyId}' exists?
|
|
43
|
-
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
44
|
-
- Also check the browser console and terminal for potential error messages.`}),this.data=e}},hg=class extends Mt{constructor(e){super({name:"ImplicitActionsDuringRendering",category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:We`
|
|
45
|
-
We detected that you use an implicit action arg while ${e.phase} of your story.
|
|
46
|
-
${e.deprecated?`
|
|
47
|
-
This is deprecated and won't work in Storybook 8 anymore.
|
|
48
|
-
`:""}
|
|
49
|
-
Please provide an explicit spy to your args like this:
|
|
50
|
-
import { fn } from 'storybook/test';
|
|
51
|
-
...
|
|
52
|
-
args: {
|
|
53
|
-
${e.name}: fn()
|
|
54
|
-
}`}),this.data=e}},mg=class extends Mt{constructor(){super({name:"CalledExtractOnStoreError",category:"PREVIEW_API",code:3,message:We`
|
|
55
|
-
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
56
|
-
|
|
57
|
-
You probably meant to call \`await preview.extract()\` which does the above for you.`})}},yg=class extends Mt{constructor(){super({name:"MissingRenderToCanvasError",category:"PREVIEW_API",code:4,message:We`
|
|
58
|
-
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
59
|
-
|
|
60
|
-
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}},cr=class extends Mt{constructor(e){super({name:"CalledPreviewMethodBeforeInitializationError",category:"PREVIEW_API",code:5,message:We`
|
|
61
|
-
Called \`Preview.${e.methodName}()\` before initialization.
|
|
62
|
-
|
|
63
|
-
The preview needs to load the story index before most methods can be called. If you want
|
|
64
|
-
to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
65
|
-
|
|
66
|
-
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
67
|
-
do the above.`}),this.data=e}},gg=class extends Mt{constructor(e){super({name:"StoryIndexFetchError",category:"PREVIEW_API",code:6,message:We`
|
|
68
|
-
Error fetching \`/index.json\`:
|
|
69
|
-
|
|
70
|
-
${e.text}
|
|
71
|
-
|
|
72
|
-
If you are in development, this likely indicates a problem with your Storybook process,
|
|
73
|
-
check the terminal for errors.
|
|
74
|
-
|
|
75
|
-
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
76
|
-
build.`}),this.data=e}},bg=class extends Mt{constructor(e){super({name:"MdxFileWithNoCsfReferencesError",category:"PREVIEW_API",code:7,message:We`
|
|
77
|
-
Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
|
|
78
|
-
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
79
|
-
|
|
80
|
-
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
81
|
-
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},Eg=class extends Mt{constructor(){super({name:"EmptyIndexError",category:"PREVIEW_API",code:8,message:We`
|
|
82
|
-
Couldn't find any stories in your Storybook.
|
|
83
|
-
|
|
84
|
-
- Please check your stories field of your main.js config: does it match correctly?
|
|
85
|
-
- Also check the browser console and terminal for error messages.`})}},vg=class extends Mt{constructor(e){super({name:"NoStoryMatchError",category:"PREVIEW_API",code:9,message:We`
|
|
86
|
-
Couldn't find story matching '${e.storySpecifier}'.
|
|
87
|
-
|
|
88
|
-
- Are you sure a story with that id exists?
|
|
89
|
-
- Please check your stories field of your main.js config.
|
|
90
|
-
- Also check the browser console and terminal for error messages.`}),this.data=e}},Ag=class extends Mt{constructor(e){super({name:"MissingStoryFromCsfFileError",category:"PREVIEW_API",code:10,message:We`
|
|
91
|
-
Couldn't find story matching id '${e.storyId}' after importing a CSF file.
|
|
92
|
-
|
|
93
|
-
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
94
|
-
we didn't find the story. Possible reasons:
|
|
95
|
-
- You are using a custom story indexer that is misbehaving.
|
|
96
|
-
- You have a custom file loader that is removing or renaming exports.
|
|
97
|
-
|
|
98
|
-
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},_g=class extends Mt{constructor(){super({name:"StoryStoreAccessedBeforeInitializationError",category:"PREVIEW_API",code:11,message:We`
|
|
99
|
-
Cannot access the Story Store until the index is ready.
|
|
100
|
-
|
|
101
|
-
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
102
|
-
remove access to the store entirely`})}},Pc=class extends Mt{constructor(e){super({name:"MountMustBeDestructuredError",category:"PREVIEW_API",code:12,message:We`
|
|
103
|
-
Incorrect use of mount in the play function.
|
|
104
|
-
|
|
105
|
-
To use mount in the play function, you must satisfy the following two requirements:
|
|
106
|
-
|
|
107
|
-
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
108
|
-
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
109
|
-
|
|
110
|
-
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
111
|
-
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
112
|
-
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
113
|
-
|
|
114
|
-
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
115
|
-
|
|
116
|
-
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
117
|
-
|
|
118
|
-
Received the following play function:
|
|
119
|
-
${e.playFunction}`}),this.data=e}},wg=class extends Mt{constructor(e){super({name:"NoRenderFunctionError",category:"PREVIEW_API",code:14,message:We`
|
|
120
|
-
No render function available for storyId '${e.id}'
|
|
121
|
-
`}),this.data=e}},Cg=class extends Mt{constructor(){super({name:"NoStoryMountedError",category:"PREVIEW_API",code:15,message:We`
|
|
122
|
-
No component is mounted in your story.
|
|
123
|
-
|
|
124
|
-
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
125
|
-
|
|
126
|
-
For example:
|
|
127
|
-
|
|
128
|
-
async play({ mount, canvasElement }) {
|
|
129
|
-
// 👈 mount should be called: await mount();
|
|
130
|
-
const canvas = within(canvasElement);
|
|
131
|
-
const button = await canvas.findByRole('button');
|
|
132
|
-
await userEvent.click(button);
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
Make sure to either remove it or call mount in your play function.
|
|
136
|
-
`})}},GR=class extends Mt{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},zR=class extends Mt{constructor(){super({name:"NextJsSharpError",category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:We`
|
|
137
|
-
You are importing avif images, but you don't have sharp installed.
|
|
138
|
-
|
|
139
|
-
You have to install sharp in order to use image optimization features in Next.js.
|
|
140
|
-
`})}},WR=class extends Mt{constructor(e){super({name:"NextjsRouterMocksNotAvailable",category:"FRAMEWORK_NEXTJS",code:2,message:We`
|
|
141
|
-
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
142
|
-
`}),this.data=e}},KR=class extends Mt{constructor(t){super({name:"UnknownArgTypesError",category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:We`
|
|
143
|
-
There was a failure when generating detailed ArgTypes in ${t.language} for:
|
|
144
|
-
${JSON.stringify(t.type,null,2)}
|
|
145
|
-
|
|
146
|
-
Storybook will fall back to use a generic type description instead.
|
|
147
|
-
|
|
148
|
-
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
149
|
-
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
150
|
-
`}),this.data=t}},YR=class extends Mt{constructor(e){super({name:"UnsupportedViewportDimensionError",category:"ADDON_VITEST",code:1,message:We`
|
|
151
|
-
Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
|
|
152
|
-
|
|
153
|
-
The Storybook plugin only supports values in the following units:
|
|
154
|
-
- px, vh, vw, em, rem and %.
|
|
155
|
-
|
|
156
|
-
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
|
157
|
-
`}),this.data=e}},XR=class extends Mt{constructor(){super({name:"ElementA11yParameterError",category:"ADDON_A11Y",code:1,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",message:'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'})}},Tg={};ur(Tg,{Addon_TypesEnum:()=>Sg,CoreWebpackCompiler:()=>Rg,Feature:()=>Og,SupportedBuilder:()=>Pg,SupportedFramework:()=>xg,SupportedLanguage:()=>Fg,SupportedRenderer:()=>Dg});var Sg=(e=>(e.TAB="tab",e.PANEL="panel",e.TOOL="tool",e.TOOLEXTRA="toolextra",e.PREVIEW="preview",e.experimental_PAGE="page",e.experimental_TEST_PROVIDER="test-provider",e))(Sg||{}),xg=(e=>(e.ANGULAR="angular",e.EMBER="ember",e.HTML_VITE="html-vite",e.NEXTJS="nextjs",e.NEXTJS_VITE="nextjs-vite",e.PREACT_VITE="preact-vite",e.REACT_NATIVE_WEB_VITE="react-native-web-vite",e.REACT_VITE="react-vite",e.REACT_WEBPACK5="react-webpack5",e.SERVER_WEBPACK5="server-webpack5",e.SVELTE_VITE="svelte-vite",e.SVELTEKIT="sveltekit",e.VUE3_VITE="vue3-vite",e.WEB_COMPONENTS_VITE="web-components-vite",e.HTML_RSBUILD="html-rsbuild",e.NUXT="nuxt",e.QWIK="qwik",e.REACT_RSBUILD="react-rsbuild",e.SOLID="solid",e.VUE3_RSBUILD="vue3-rsbuild",e.WEB_COMPONENTS_RSBUILD="web-components-rsbuild",e))(xg||{}),Dg=(e=>(e.REACT="react",e.REACT_NATIVE="react-native",e.VUE3="vue3",e.ANGULAR="angular",e.EMBER="ember",e.PREACT="preact",e.SVELTE="svelte",e.QWIK="qwik",e.HTML="html",e.WEB_COMPONENTS="web-components",e.SERVER="server",e.SOLID="solid",e.NUXT="nuxt",e))(Dg||{}),Rg=(e=>(e.Babel="babel",e.SWC="swc",e))(Rg||{}),Pg=(e=>(e.WEBPACK5="webpack5",e.VITE="vite",e.RSBUILD="rsbuild",e))(Pg||{}),Og=(e=>(e.DOCS="docs",e.TEST="test",e.ONBOARDING="onboarding",e.A11Y="a11y",e))(Og||{}),Fg=(e=>(e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e))(Fg||{}),Ig={};ur(Ig,{ADDON_ID:()=>gs,CLEAR_ID:()=>eP,CYCLIC_KEY:()=>tP,EVENT_ID:()=>Ng,PANEL_ID:()=>ZR,PARAM_KEY:()=>QR,action:()=>Zo,actions:()=>P9,config:()=>jo,configureActions:()=>x9});var QR="actions",gs="storybook/actions",ZR=`${gs}/panel`,Ng=`${gs}/action-event`,eP=`${gs}/action-clear`,tP="$___storybook.isCyclic",$u={};ur($u,{DocsContext:()=>nd,HooksContext:()=>Oc,Preview:()=>f_,PreviewWeb:()=>g9,PreviewWithSelection:()=>m_,ReporterAPI:()=>rd,StoryStore:()=>p_,UrlStore:()=>v_,WebView:()=>__,addons:()=>vr,applyHooks:()=>kg,combineArgs:()=>ss,combineParameters:()=>ei,composeConfigs:()=>Ii,composeStepRunners:()=>a_,composeStories:()=>J5,composeStory:()=>c_,createPlaywrightTest:()=>H5,decorateStory:()=>QA,defaultDecorateStory:()=>e_,emitTransformCode:()=>S9,filterArgTypes:()=>o_,getCsfFactoryAnnotations:()=>l_,inferControls:()=>Zp,makeDecorator:()=>mP,mockChannel:()=>Bg,normalizeArrays:()=>ht,normalizeProjectAnnotations:()=>cs,normalizeStory:()=>ho,pauseAnimations:()=>ed,prepareMeta:()=>t_,prepareStory:()=>Qp,sanitizeStoryContextUpdate:()=>ZA,setDefaultProjectAnnotations:()=>j5,setProjectAnnotations:()=>V5,simulateDOMContentLoaded:()=>Hl,simulatePageLoad:()=>A9,sortStoriesV7:()=>Z5,useArgs:()=>fP,useCallback:()=>vo,useChannel:()=>pP,useEffect:()=>Kn,useGlobals:()=>hP,useMemo:()=>jg,useParameter:()=>dP,useReducer:()=>cP,useRef:()=>sP,useState:()=>lP,useStoryContext:()=>Es,userOrAutoTitle:()=>Y5,userOrAutoTitleFromSpecifier:()=>d_,waitForAnimations:()=>td});function Bg(){let e={setHandler:()=>{},send:()=>{}};return new fs({transport:e})}var rP=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=Bg();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},Xs="__STORYBOOK_ADDONS_PREVIEW";function nP(){return ge[Xs]||(ge[Xs]=new rP),ge[Xs]}var vr=nP(),Oc=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),vr.getChannel().on(qa,this.renderListener)}removeRenderListeners(){vr.getChannel().removeListener(qa,this.renderListener)}};function Bd(e){let t=(...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],i=n.currentPhase,o=n.currentHooks,a=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let p=ge.STORYBOOK_HOOKS_CONTEXT;ge.STORYBOOK_HOOKS_CONTEXT=n;let l=e(...r);if(ge.STORYBOOK_HOOKS_CONTEXT=p,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=i,n.currentHooks=o,n.nextHookIndex=a,n.currentDecoratorName=s,l};return t.originalFn=e,t}var Qs=0,iP=25,kg=e=>(t,r)=>{let n=e(Bd(t),r.map(i=>Bd(i)));return i=>{let{hooks:o}=i;o.prevMountedDecorators??(o.prevMountedDecorators=new Set),o.mountedDecorators=new Set([t,...r]),o.currentContext=i,o.hasUpdates=!1;let a=n(i);for(Qs=1;o.hasUpdates;)if(o.hasUpdates=!1,o.currentEffects=[],a=n(i),Qs+=1,Qs>iP)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return o.addRenderListeners(),a}},oP=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),Fc=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function Mg(){return ge.STORYBOOK_HOOKS_CONTEXT||null}function Ic(){let e=Mg();if(e==null)throw Fc();return e}function aP(e,t,r){let n=Ic();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&vt.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let i={name:e,deps:r};return n.currentHooks.push(i),t(i),i}if(n.currentPhase==="UPDATE"){let i=n.getNextHook();if(i==null)throw new Error("Rendered more hooks than during the previous render.");return i.name!==e&&vt.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&i.deps==null&&vt.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&i.deps!=null&&r.length!==i.deps.length&&vt.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
158
|
-
Previous: ${i.deps}
|
|
159
|
-
Incoming: ${r}`),(r==null||i.deps==null||!oP(r,i.deps))&&(t(i),i.deps=r),i}throw Fc()}function bs(e,t,r){let{memoizedState:n}=aP(e,i=>{i.memoizedState=t()},r);return n}function jg(e,t){return bs("useMemo",e,t)}function vo(e,t){return bs("useCallback",()=>e,t)}function qg(e,t){return bs(e,()=>({current:t}),[])}function sP(e){return qg("useRef",e)}function uP(){let e=Mg();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{vr.getChannel().emit(fc)}catch{vt.warn("State updates of Storybook preview hooks work only in browser")}}function Lg(e,t){let r=qg(e,typeof t=="function"?t():t),n=i=>{r.current=typeof i=="function"?i(r.current):i,uP()};return[r.current,n]}function lP(e){return Lg("useState",e)}function cP(e,t,r){let n=r!=null?()=>r(t):t,[i,o]=Lg("useReducer",n);return[i,a=>o(s=>e(s,a))]}function Kn(e,t){let r=Ic(),n=bs("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}function pP(e,t=[]){let r=vr.getChannel();return Kn(()=>(Object.entries(e).forEach(([n,i])=>r.on(n,i)),()=>{Object.entries(e).forEach(([n,i])=>r.removeListener(n,i))}),[...Object.keys(e),...t]),vo(r.emit.bind(r),[r])}function Es(){let{currentContext:e}=Ic();if(e==null)throw Fc();return e}function dP(e,t){let{parameters:r}=Es();if(e)return r[e]??t}function fP(){let e=vr.getChannel(),{id:t,args:r}=Es(),n=vo(o=>e.emit(gc,{storyId:t,updatedArgs:o}),[e,t]),i=vo(o=>e.emit(hc,{storyId:t,argNames:o}),[e,t]);return[r,n,i]}function hP(){let e=vr.getChannel(),{globals:t}=Es(),r=vo(n=>e.emit(yc,{globals:n}),[e]);return[t,r]}var mP=({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let i=o=>(a,s)=>{let p=s.parameters&&s.parameters[t];return p&&p.disable||n&&!o&&!p?a(s):r(a,s,{options:o,parameters:p})};return(...o)=>typeof o[0]=="function"?i()(...o):(...a)=>{if(a.length>1)return o.length>1?i(o)(...a):i(...o)(...a);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
160
|
-
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function yP(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,i)=>`${r} ${n}${i}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var kd=kt(zw(),1),$g=e=>e.map(t=>typeof t<"u").filter(Boolean).length,gP=(e,t)=>{let{exists:r,eq:n,neq:i,truthy:o}=e;if($g([r,n,i,o])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:i})}`);if(typeof n<"u")return(0,kd.isEqual)(t,n);if(typeof i<"u")return!(0,kd.isEqual)(t,i);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof o>"u"||o?!!t:!t},bP=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:i}=e.if;if($g([n,i])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:i})}`);let o=n?t[n]:r[i];return gP(e.if,o)};function EP(e){return e!=null&&vP(e).includes("mount")}function vP(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Md(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?Md(n.slice(1,-1).replace(/\s/g,"")).map(i=>i.replace(/:.*|=.*/g,"")):[]}function Md(e){let t=[],r=[],n=0;for(let o=0;o<e.length;o++)if(e[o]==="{"||e[o]==="[")r.push(e[o]==="{"?"}":"]");else if(e[o]===r[r.length-1])r.pop();else if(!r.length&&e[o]===","){let a=e.substring(n,o).trim();a&&t.push(a),n=o+1}let i=e.substring(n).trim();return i&&t.push(i),t}var Vg={};ur(Vg,{argsEnhancers:()=>wP});var Ug=(e,t)=>typeof t[e]>"u"&&!(e in t),AP=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!r)return{};let o=new RegExp(i.argTypesRegex);return Object.entries(r).filter(([a])=>!!o.test(a)).reduce((a,[s,p])=>(Ug(s,t)&&(a[s]=Zo(s,{implicit:!0,id:n})),a),{})},_P=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([i,o])=>!!o.action).reduce((i,[o,a])=>(Ug(o,t)&&(i[o]=Zo(typeof a.action=="string"?a.action:o)),i),{})},wP=[_P,AP],Jg={};ur(Jg,{loaders:()=>R8});var Hg={};ur(Hg,{buildQueries:()=>u3,clearAllMocks:()=>DE,configure:()=>l3,createEvent:()=>c3,expect:()=>S8,findAllByAltText:()=>d3,findAllByDisplayValue:()=>f3,findAllByLabelText:()=>h3,findAllByPlaceholderText:()=>m3,findAllByRole:()=>y3,findAllByTestId:()=>g3,findAllByText:()=>b3,findAllByTitle:()=>E3,findByAltText:()=>v3,findByDisplayValue:()=>A3,findByLabelText:()=>_3,findByPlaceholderText:()=>w3,findByRole:()=>C3,findByTestId:()=>T3,findByText:()=>S3,findByTitle:()=>x3,fireEvent:()=>p3,fn:()=>SE,getAllByAltText:()=>D3,getAllByDisplayValue:()=>R3,getAllByLabelText:()=>P3,getAllByPlaceholderText:()=>O3,getAllByRole:()=>F3,getAllByTestId:()=>I3,getAllByText:()=>N3,getAllByTitle:()=>B3,getByAltText:()=>k3,getByDisplayValue:()=>M3,getByLabelText:()=>j3,getByPlaceholderText:()=>q3,getByRole:()=>L3,getByTestId:()=>$3,getByText:()=>V3,getByTitle:()=>U3,getConfig:()=>J3,getDefaultNormalizer:()=>H3,getElementError:()=>G3,getNodeText:()=>z3,getQueriesForElement:()=>W3,getRoles:()=>K3,getSuggestedQuery:()=>Y3,isInaccessible:()=>X3,isMockFunction:()=>gi,logDOM:()=>Q3,logRoles:()=>Z3,mocked:()=>Bk,mocks:()=>Wo,onMockCall:()=>TE,prettyDOM:()=>e8,prettyFormat:()=>C8,queries:()=>t8,queryAllByAltText:()=>r8,queryAllByAttribute:()=>n8,queryAllByDisplayValue:()=>i8,queryAllByLabelText:()=>o8,queryAllByPlaceholderText:()=>a8,queryAllByRole:()=>s8,queryAllByTestId:()=>u8,queryAllByText:()=>l8,queryAllByTitle:()=>c8,queryByAltText:()=>p8,queryByAttribute:()=>d8,queryByDisplayValue:()=>f8,queryByLabelText:()=>h8,queryByPlaceholderText:()=>m8,queryByRole:()=>y8,queryByTestId:()=>g8,queryByText:()=>b8,queryByTitle:()=>E8,queryHelpers:()=>v8,resetAllMocks:()=>RE,restoreAllMocks:()=>PE,sb:()=>x8,screen:()=>A8,spyOn:()=>Nk,uninstrumentedUserEvent:()=>VA,userEvent:()=>T8,waitFor:()=>_8,waitForElementToBeRemoved:()=>w8,within:()=>$A});var CP={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Gg=Object.entries(CP);function vs(e){return String(e)}vs.open="";vs.close="";Gg.reduce((e,[t])=>(e[t]=vs,e),{isColorSupported:!1});function TP(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function SP(e=!1){let t=TP(e),r=(a,s,p,l)=>{let d="",f=0;do d+=a.substring(f,l)+p,f=l+s.length,l=a.indexOf(s,f);while(~l);return d+a.substring(f)},n=(a,s,p=a)=>{let l=d=>{let f=String(d),h=f.indexOf(s,a.length);return~h?a+r(f,s,p,h)+s:a+f+s};return l.open=a,l.close=s,l},i={isColorSupported:t},o=a=>`\x1B[${a}m`;for(let[a,s]of Gg)i[a]=t?n(o(s[0]),o(s[1]),s[2]):vs;return i}var Pt=SP();function zg(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function xP(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&n.push(i);return n}function $o(e,t,r,n,i,o,a=": "){let s="",p=0,l=e.next();if(!l.done){s+=t.spacingOuter;let d=r+t.indent;for(;!l.done;){if(s+=d,p++===t.maxWidth){s+="…";break}let f=o(l.value[0],t,d,n,i),h=o(l.value[1],t,d,n,i);s+=f+a+h,l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Nc(e,t,r,n,i,o){let a="",s=0,p=e.next();if(!p.done){a+=t.spacingOuter;let l=r+t.indent;for(;!p.done;){if(a+=l,s++===t.maxWidth){a+="…";break}a+=o(p.value,t,l,n,i),p=e.next(),p.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function La(e,t,r,n,i,o){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=l=>l instanceof DataView,p=s(e)?e.byteLength:e.length;if(p>0){a+=t.spacingOuter;let l=r+t.indent;for(let d=0;d<p;d++){if(a+=l,d===t.maxWidth){a+="…";break}(s(e)||d in e)&&(a+=o(s(e)?e.getInt8(d):e[d],t,l,n,i)),d<p-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function Bc(e,t,r,n,i,o){let a="",s=xP(e,t.compareKeys);if(s.length>0){a+=t.spacingOuter;let p=r+t.indent;for(let l=0;l<s.length;l++){let d=s[l],f=o(d,t,p,n,i),h=o(e[d],t,p,n,i);a+=`${p+f}: ${h}`,l<s.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var DP=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Zs=" ",RP=(e,t,r,n,i,o)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Zs}[${La(e.sample,t,r,n,i,o)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Zs}{${Bc(e.sample,t,r,n,i,o)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Zs+o(e.sample,t,r,n,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},PP=e=>e&&e.$$typeof===DP,OP={serialize:RP,test:PP},FP=" ",Wg=new Set(["DOMStringMap","NamedNodeMap"]),IP=/^(?:HTML\w*Collection|NodeList)$/;function NP(e){return Wg.has(e)||IP.test(e)}var BP=e=>e&&e.constructor&&!!e.constructor.name&&NP(e.constructor.name);function kP(e){return e.constructor.name==="NamedNodeMap"}var MP=(e,t,r,n,i,o)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+FP)+(Wg.has(a)?`{${Bc(kP(e)?[...e].reduce((s,p)=>(s[p.name]=p.value,s),{}):{...e},t,r,n,i,o)}}`:`[${La([...e],t,r,n,i,o)}]`)},jP={serialize:MP,test:BP};function Kg(e){return e.replaceAll("<","<").replaceAll(">",">")}function kc(e,t,r,n,i,o,a){let s=n+r.indent,p=r.colors;return e.map(l=>{let d=t[l],f=a(d,r,s,i,o);return typeof d!="string"&&(f.includes(`
|
|
161
|
-
`)&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f=`{${f}}`),`${r.spacingInner+n+p.prop.open+l+p.prop.close}=${p.value.open}${f}${p.value.close}`}).join("")}function Mc(e,t,r,n,i,o){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?Yg(a,t):o(a,t,r,n,i))).join("")}function Yg(e,t){let r=t.colors.content;return r.open+Kg(e)+r.close}function qP(e,t){let r=t.colors.comment;return`${r.open}<!--${Kg(e)}-->${r.close}`}function jc(e,t,r,n,i){let o=n.colors.tag;return`${o.open}<${e}${t&&o.close+t+n.spacingOuter+i+o.open}${r?`>${o.close}${r}${n.spacingOuter}${i}${o.open}</${e}`:`${t&&!n.min?"":" "}/`}>${o.close}`}function qc(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var LP=1,Xg=3,Qg=8,Zg=11,$P=/^(?:(?:HTML|SVG)\w*)?Element$/;function VP(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function UP(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,i=typeof n=="string"&&n.includes("-")||VP(e);return r===LP&&($P.test(t)||i)||r===Xg&&t==="Text"||r===Qg&&t==="Comment"||r===Zg&&t==="DocumentFragment"}var JP=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&UP(e)};function HP(e){return e.nodeType===Xg}function GP(e){return e.nodeType===Qg}function eu(e){return e.nodeType===Zg}var zP=(e,t,r,n,i,o)=>{if(HP(e))return Yg(e.data,t);if(GP(e))return qP(e.data,t);let a=eu(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?qc(a,t):jc(a,kc(eu(e)?[]:Array.from(e.attributes,s=>s.name).sort(),eu(e)?{}:[...e.attributes].reduce((s,p)=>(s[p.name]=p.value,s),{}),t,r+t.indent,n,i,o),Mc(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,i,o),t,r)},WP={serialize:zP,test:JP},KP="@@__IMMUTABLE_ITERABLE__@@",YP="@@__IMMUTABLE_LIST__@@",XP="@@__IMMUTABLE_KEYED__@@",QP="@@__IMMUTABLE_MAP__@@",jd="@@__IMMUTABLE_ORDERED__@@",ZP="@@__IMMUTABLE_RECORD__@@",eO="@@__IMMUTABLE_SEQ__@@",tO="@@__IMMUTABLE_SET__@@",rO="@@__IMMUTABLE_STACK__@@",Ai=e=>`Immutable.${e}`,As=e=>`[${e}]`,Ao=" ",qd="…";function nO(e,t,r,n,i,o,a){return++n>t.maxDepth?As(Ai(a)):`${Ai(a)+Ao}{${$o(e.entries(),t,r,n,i,o)}}`}function iO(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function oO(e,t,r,n,i,o){let a=Ai(e._name||"Record");return++n>t.maxDepth?As(a):`${a+Ao}{${$o(iO(e),t,r,n,i,o)}}`}function aO(e,t,r,n,i,o){let a=Ai("Seq");return++n>t.maxDepth?As(a):e[XP]?`${a+Ao}{${e._iter||e._object?$o(e.entries(),t,r,n,i,o):qd}}`:`${a+Ao}[${e._iter||e._array||e._collection||e._iterable?Nc(e.values(),t,r,n,i,o):qd}]`}function tu(e,t,r,n,i,o,a){return++n>t.maxDepth?As(Ai(a)):`${Ai(a)+Ao}[${Nc(e.values(),t,r,n,i,o)}]`}var sO=(e,t,r,n,i,o)=>e[QP]?nO(e,t,r,n,i,o,e[jd]?"OrderedMap":"Map"):e[YP]?tu(e,t,r,n,i,o,"List"):e[tO]?tu(e,t,r,n,i,o,e[jd]?"OrderedSet":"Set"):e[rO]?tu(e,t,r,n,i,o,"Stack"):e[eO]?aO(e,t,r,n,i,o):oO(e,t,r,n,i,o),uO=e=>e&&(e[KP]===!0||e[ZP]===!0),lO={serialize:sO,test:uO};function eb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ld={exports:{}},lt={},$d;function cO(){if($d)return lt;$d=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function b(E){if(typeof E=="object"&&E!==null){var _=E.$$typeof;switch(_){case e:switch(E=E.type,E){case r:case i:case n:case p:case l:case h:return E;default:switch(E=E&&E.$$typeof,E){case a:case s:case f:case d:return E;case o:return E;default:return _}}case t:return _}}}return lt.ContextConsumer=o,lt.ContextProvider=a,lt.Element=e,lt.ForwardRef=s,lt.Fragment=r,lt.Lazy=f,lt.Memo=d,lt.Portal=t,lt.Profiler=i,lt.StrictMode=n,lt.Suspense=p,lt.SuspenseList=l,lt.isContextConsumer=function(E){return b(E)===o},lt.isContextProvider=function(E){return b(E)===a},lt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},lt.isForwardRef=function(E){return b(E)===s},lt.isFragment=function(E){return b(E)===r},lt.isLazy=function(E){return b(E)===f},lt.isMemo=function(E){return b(E)===d},lt.isPortal=function(E){return b(E)===t},lt.isProfiler=function(E){return b(E)===i},lt.isStrictMode=function(E){return b(E)===n},lt.isSuspense=function(E){return b(E)===p},lt.isSuspenseList=function(E){return b(E)===l},lt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===i||E===n||E===p||E===l||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===d||E.$$typeof===a||E.$$typeof===o||E.$$typeof===s||E.$$typeof===m||E.getModuleId!==void 0)},lt.typeOf=b,lt}var Vd;function pO(){return Vd||(Vd=1,Ld.exports=cO()),Ld.exports}var tb=pO(),dO=eb(tb),fO=zg({__proto__:null,default:dO},[tb]),Ud={exports:{}},at={},Jd;function hO(){if(Jd)return at;Jd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function E(_){if(typeof _=="object"&&_!==null){var A=_.$$typeof;switch(A){case e:switch(_=_.type,_){case r:case i:case n:case l:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case a:case p:case h:case f:case o:return _;default:return A}}case t:return A}}}return at.ContextConsumer=a,at.ContextProvider=o,at.Element=e,at.ForwardRef=p,at.Fragment=r,at.Lazy=h,at.Memo=f,at.Portal=t,at.Profiler=i,at.StrictMode=n,at.Suspense=l,at.SuspenseList=d,at.isAsyncMode=function(){return!1},at.isConcurrentMode=function(){return!1},at.isContextConsumer=function(_){return E(_)===a},at.isContextProvider=function(_){return E(_)===o},at.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},at.isForwardRef=function(_){return E(_)===p},at.isFragment=function(_){return E(_)===r},at.isLazy=function(_){return E(_)===h},at.isMemo=function(_){return E(_)===f},at.isPortal=function(_){return E(_)===t},at.isProfiler=function(_){return E(_)===i},at.isStrictMode=function(_){return E(_)===n},at.isSuspense=function(_){return E(_)===l},at.isSuspenseList=function(_){return E(_)===d},at.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===i||_===n||_===l||_===d||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===f||_.$$typeof===o||_.$$typeof===a||_.$$typeof===p||_.$$typeof===b||_.getModuleId!==void 0)},at.typeOf=E,at}var Hd;function mO(){return Hd||(Hd=1,Ud.exports=hO()),Ud.exports}var rb=mO(),yO=eb(rb),gO=zg({__proto__:null,default:yO},[rb]),bO=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Ln=Object.fromEntries(bO.map(e=>[e,t=>gO[e](t)||fO[e](t)]));function nb(e,t=[]){if(Array.isArray(e))for(let r of e)nb(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Gd(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Ln.isFragment(e))return"React.Fragment";if(Ln.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Ln.isContextProvider(e))return"Context.Provider";if(Ln.isContextConsumer(e))return"Context.Consumer";if(Ln.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Ln.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function EO(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var vO=(e,t,r,n,i,o)=>++n>t.maxDepth?qc(Gd(e),t):jc(Gd(e),kc(EO(e),e.props,t,r+t.indent,n,i,o),Mc(nb(e.props.children),t,r+t.indent,n,i,o),t,r),AO=e=>e!=null&&Ln.isElement(e),_O={serialize:vO,test:AO},wO=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function CO(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var TO=(e,t,r,n,i,o)=>++n>t.maxDepth?qc(e.type,t):jc(e.type,e.props?kc(CO(e),e.props,t,r+t.indent,n,i,o):"",e.children?Mc(e.children,t,r+t.indent,n,i,o):"",t,r),SO=e=>e&&e.$$typeof===wO,xO={serialize:TO,test:SO},ib=Object.prototype.toString,DO=Date.prototype.toISOString,RO=Error.prototype.toString,zd=RegExp.prototype.toString;function Ca(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function PO(e){return typeof window<"u"&&e===window}var OO=/^Symbol\((.*)\)(.*)$/,FO=/\n/g,ob=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function IO(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function NO(e){return Object.is(e,-0)?"-0":String(e)}function BO(e){return`${e}n`}function Wd(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Kd(e){return String(e).replace(OO,"Symbol($1)")}function Yd(e){return`[${RO.call(e)}]`}function ab(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let i=typeof e;if(i==="number")return NO(e);if(i==="bigint")return BO(e);if(i==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return Wd(e,t);if(i==="symbol")return Kd(e);let o=ib.call(e);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?Wd(e,t):o==="[object Symbol]"?Kd(e):o==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":DO.call(e):o==="[object Error]"?Yd(e):o==="[object RegExp]"?r?zd.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):zd.call(e):e instanceof Error?Yd(e):null}function sb(e,t,r,n,i,o){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);let a=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!o)return yn(e.toJSON(),t,r,n,i,!0);let p=ib.call(e);return p==="[object Arguments]"?a?"[Arguments]":`${s?"":"Arguments "}[${La(e,t,r,n,i,yn)}]`:IO(p)?a?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${La(e,t,r,n,i,yn)}]`:p==="[object Map]"?a?"[Map]":`Map {${$o(e.entries(),t,r,n,i,yn," => ")}}`:p==="[object Set]"?a?"[Set]":`Set {${Nc(e.values(),t,r,n,i,yn)}}`:a||PO(e)?`[${Ca(e)}]`:`${s||!t.printBasicPrototype&&Ca(e)==="Object"?"":`${Ca(e)} `}{${Bc(e,t,r,n,i,yn)}}`}var kO={test:e=>e&&e instanceof Error,serialize(e,t,r,n,i,o){if(i.includes(e))return"[Circular]";i=[...i,e];let a=++n>t.maxDepth,{message:s,cause:p,...l}=e,d={message:s,...typeof p<"u"?{cause:p}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},f=e.name!=="Error"?e.name:Ca(e);return a?`[${f}]`:`${f} {${$o(Object.entries(d).values(),t,r,n,i,o)}}`}};function MO(e){return e.serialize!=null}function ub(e,t,r,n,i,o){let a;try{a=MO(e)?e.serialize(t,r,n,i,o,yn):e.print(t,s=>yn(s,r,n,i,o),s=>{let p=n+r.indent;return p+s.replaceAll(FO,`
|
|
162
|
-
${p}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new ob(s.message,s.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function lb(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new ob(n.message,n.stack)}return null}function yn(e,t,r,n,i,o){let a=lb(t.plugins,e);if(a!==null)return ub(a,e,t,r,n,i);let s=ab(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:sb(e,t,r,n,i,o)}var Lc={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},cb=Object.keys(Lc),Cr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Lc};function jO(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Cr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function qO(){return cb.reduce((e,t)=>{let r=Lc[t],n=r&&Pt[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function LO(){return cb.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function pb(e){return e?.printFunctionName??Cr.printFunctionName}function db(e){return e?.escapeRegex??Cr.escapeRegex}function fb(e){return e?.escapeString??Cr.escapeString}function Xd(e){return{callToJSON:e?.callToJSON??Cr.callToJSON,colors:e?.highlight?qO():LO(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Cr.compareKeys,escapeRegex:db(e),escapeString:fb(e),indent:e?.min?"":$O(e?.indent??Cr.indent),maxDepth:e?.maxDepth??Cr.maxDepth,maxWidth:e?.maxWidth??Cr.maxWidth,min:e?.min??Cr.min,plugins:e?.plugins??Cr.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:pb(e),spacingInner:e?.min?" ":`
|
|
163
|
-
`,spacingOuter:e?.min?"":`
|
|
164
|
-
`}}function $O(e){return Array.from({length:e+1}).join(" ")}function Br(e,t){if(t&&(jO(t),t.plugins)){let n=lb(t.plugins,e);if(n!==null)return ub(n,e,Xd(t),"",0,[])}let r=ab(e,pb(t),db(t),fb(t));return r!==null?r:sb(e,Xd(t),"",0,[])}var $c={AsymmetricMatcher:OP,DOMCollection:jP,DOMElement:WP,Immutable:lO,ReactElement:_O,ReactTestComponent:xO,Error:kO},Qd={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},VO={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},_i="…";function UO(e,t){let r=Qd[VO[t]]||Qd[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function JO({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:a=1/0,seen:s=[],truncate:p=1/0,stylize:l=String}={},d){let f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(o),breakLength:Number(a),truncate:Number(p),seen:s,inspect:d,stylize:l};return f.colors&&(f.stylize=UO),f}function HO(e){return e>="\uD800"&&e<="\uDBFF"}function On(e,t,r=_i){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let o=t-n;return o>0&&HO(e[o-1])&&(o=o-1),`${e.slice(0,o)}${r}`}return e}function Rr(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let o=t.truncate,a="",s="",p="";for(let l=0;l<i;l+=1){let d=l+1===e.length,f=l+2===e.length;p=`${_i}(${e.length-l})`;let h=e[l];t.truncate=o-a.length-(d?0:n.length);let m=s||r(h,t)+(d?"":n),b=a.length+m.length,E=b+p.length;if(d&&b>o&&a.length+p.length<=o||!d&&!f&&E>o||(s=d?"":r(e[l+1],t)+(f?"":n),!d&&f&&E>o&&b+s.length>o))break;if(a+=m,!d&&!f&&b+s.length>=o){p=`${_i}(${e.length-l-1})`;break}p=""}return`${a}${p}`}function GO(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function _o([e,t],r){return r.truncate-=2,typeof e=="string"?e=GO(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function zO(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Rr(e,t);t.truncate-=n.length;let i="";return r.length&&(i=Rr(r.map(o=>[o,e[o]]),t,_o)),`[ ${n}${i?`, ${i}`:""} ]`}var WO=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Ur(e,t){let r=WO(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let a=0;a<e.length;a++){let s=`${t.stylize(On(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){i+=`${_i}(${e.length-e[a]+1})`;break}i+=s}let o="";return n.length&&(o=Rr(n.map(a=>[a,e[a]]),t,_o)),`${r}[ ${i}${o?`, ${o}`:""} ]`}function KO(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${On(n[1],t.truncate-i.length-1)}`,"date")}function Zd(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${On(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function YO([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function XO(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function QO(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Rr(XO(e),t,YO)} }`)}var ZO=Number.isNaN||(e=>e!==e);function ef(e,t){return ZO(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(On(String(e),t.truncate),"number")}function tf(e,t){let r=On(e.toString(),t.truncate-1);return r!==_i&&(r+="n"),t.stylize(r,"bigint")}function eF(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${On(i,n)}/${r}`,"regexp")}function tF(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function rF(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Rr(tF(e),t)} }`)}var rf=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),nF={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},iF=16;function oF(e){return nF[e]||`\\u${`0000${e.charCodeAt(0).toString(iF)}`.slice(-4)}`}function nf(e,t){return rf.test(e)&&(e=e.replace(rf,oF)),t.stylize(`'${On(e,t.truncate-2)}'`,"string")}function of(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var aF=()=>"Promise{…}",sF=aF;function Ta(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Rr(r.map(s=>[s,e[s]]),t,_o),o=Rr(n.map(s=>[s,e[s]]),t,_o);t.seen.pop();let a="";return i&&o&&(a=", "),`{ ${i}${a}${o} }`}var ru=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function uF(e,t){let r="";return ru&&ru in e&&(r=e[ru]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Ta(e,t)}`}function lF(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Rr(e,t)} ]`)}var cF=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function pF(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>cF.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=On(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Rr(r.map(a=>[a,e[a]]),t,_o);return`${n}${i}${o?` { ${o} }`:""}`}function dF([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Vu(e,t){return Rr(e,t,fF,`
|
|
165
|
-
`)}function fF(e,t){switch(e.nodeType){case 1:return hb(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function hb(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),o=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=Rr(r.map(d=>[d,e.getAttribute(d)]),t,dF," ")),t.truncate-=s.length;let p=t.truncate,l=Vu(e.children,t);return l&&l.length>p&&(l=`${_i}(${e.children.length})`),`${i}${s}${o}${l}${a}`}var hF=typeof Symbol=="function"&&typeof Symbol.for=="function",nu=hF?Symbol.for("chai/inspect"):"@@chai/inspect",iu=Symbol.for("nodejs.util.inspect.custom"),af=new WeakMap,sf={},uf={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:ef,Number:ef,bigint:tf,BigInt:tf,string:nf,String:nf,function:Zd,Function:Zd,symbol:of,Symbol:of,Array:zO,Date:KO,Map:QO,Set:rF,RegExp:eF,Promise:sF,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:lF,Int8Array:Ur,Uint8Array:Ur,Uint8ClampedArray:Ur,Int16Array:Ur,Uint16Array:Ur,Int32Array:Ur,Uint32Array:Ur,Float32Array:Ur,Float64Array:Ur,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:pF,HTMLCollection:Vu,NodeList:Vu},mF=(e,t,r,n)=>nu in e&&typeof e[nu]=="function"?e[nu](t):iu in e&&typeof e[iu]=="function"?e[iu](t.depth,t,n):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&af.has(e.constructor)?af.get(e.constructor)(e,t):sf[r]?sf[r](e,t):"",yF=Object.prototype.toString;function Sa(e,t={}){let r=JO(t,Sa),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=yF.call(e).slice(8,-1)),i in uf)return uf[i](e,r);if(n&&e){let a=mF(e,r,i,Sa);if(a)return typeof a=="string"?a:Sa(a,r)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?Ta(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?hb(e,r):"constructor"in e?e.constructor!==Object?uF(e,r):Ta(e,r):e===Object(e)?Ta(e,r):r.stylize(String(e),i)}var{AsymmetricMatcher:gF,DOMCollection:bF,DOMElement:EF,Immutable:vF,ReactElement:AF,ReactTestComponent:_F}=$c,lf=[_F,AF,EF,bF,vF,gF];function fr(e,t=10,{maxLength:r,...n}={}){let i=r??1e4,o;try{o=Br(e,{maxDepth:t,escapeString:!1,plugins:lf,...n})}catch{o=Br(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:lf,...n})}return o.length>=i&&t>1?fr(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):o}var wF=/%[sdjifoOc%]/g;function CF(...e){if(typeof e[0]!="string"){let o=[];for(let a=0;a<e.length;a++)o.push(Ki(e[a],{depth:0,colors:!1}));return o.join(" ")}let t=e.length,r=1,n=e[0],i=String(n).replace(wF,o=>{if(o==="%%")return"%";if(r>=t)return o;switch(o){case"%s":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():Ki(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Ki(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Ki(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let s=a.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw a}default:return o}});for(let o=e[r];r<t;o=e[++r])o===null||typeof o!="object"?i+=` ${o}`:i+=` ${Ki(o)}`;return i}function Ki(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Sa(e,t)}function mb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jr(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function xa(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function TF(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function $a(e){return Object.prototype.toString.apply(e).slice(8,-1)}function SF(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function yb(e){let t=new Set;return TF(e)?[]:(SF(e,t),Array.from(t))}var gb={forceWritable:!1};function cf(e,t=gb){return Uu(e,new WeakMap,t)}function Uu(e,t,r=gb){let n,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:n=e.length}),t.set(e,i);n--;)i[n]=Uu(e[n],t,r);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let o=yb(e);for(let a of o){let s=Object.getOwnPropertyDescriptor(e,a);if(!s)continue;let p=Uu(e[a],t,r);r.forceWritable?Object.defineProperty(i,a,{enumerable:s.enumerable,configurable:!0,writable:!0,value:p}):"get"in s?Object.defineProperty(i,a,{...s,get(){return p}}):Object.defineProperty(i,a,{...s,value:p})}return i}return e}function xF(){}var Kt=-1,Ht=1,Rt=0,St=class{constructor(e,t){xt(this,0);xt(this,1);this[0]=e,this[1]=t}};function DF(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),i=n,o=0;for(;r<i;)e.substring(o,i)===t.substring(o,i)?(r=i,o=r):n=i,i=Math.floor((n-r)/2+r);return i}function bb(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),i=n,o=0;for(;r<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?(r=i,o=r):n=i,i=Math.floor((n-r)/2+r);return i}function pf(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let i=Math.min(r,n);if(e===t)return i;let o=0,a=1;for(;;){let s=e.substring(i-a),p=t.indexOf(s);if(p===-1)return o;a+=p,(p===0||e.substring(i-a)===t.substring(0,a))&&(o=a,a++)}}function RF(e){let t=!1,r=[],n=0,i=null,o=0,a=0,s=0,p=0,l=0;for(;o<e.length;)e[o][0]===Rt?(r[n++]=o,a=p,s=l,p=0,l=0,i=e[o][1]):(e[o][0]===Ht?p+=e[o][1].length:l+=e[o][1].length,i&&i.length<=Math.max(a,s)&&i.length<=Math.max(p,l)&&(e.splice(r[n-1],0,new St(Kt,i)),e[r[n-1]+1][0]=Ht,n--,n--,o=n>0?r[n-1]:-1,a=0,s=0,p=0,l=0,i=null,t=!0)),o++;for(t&&Eb(e),FF(e),o=1;o<e.length;){if(e[o-1][0]===Kt&&e[o][0]===Ht){let d=e[o-1][1],f=e[o][1],h=pf(d,f),m=pf(f,d);h>=m?(h>=d.length/2||h>=f.length/2)&&(e.splice(o,0,new St(Rt,f.substring(0,h))),e[o-1][1]=d.substring(0,d.length-h),e[o+1][1]=f.substring(h),o++):(m>=d.length/2||m>=f.length/2)&&(e.splice(o,0,new St(Rt,d.substring(0,m))),e[o-1][0]=Ht,e[o-1][1]=f.substring(0,f.length-m),e[o+1][0]=Kt,e[o+1][1]=d.substring(m),o++),o++}o++}}var df=/[^a-z0-9]/i,ff=/\s/,hf=/[\r\n]/,PF=/\n\r?\n$/,OF=/^\r?\n\r?\n/;function FF(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Rt&&e[t+1][0]===Rt){let r=e[t-1][1],n=e[t][1],i=e[t+1][1],o=bb(r,n);if(o){let d=n.substring(n.length-o);r=r.substring(0,r.length-o),n=d+n.substring(0,n.length-o),i=d+i}let a=r,s=n,p=i,l=aa(r,n)+aa(n,i);for(;n.charAt(0)===i.charAt(0);){r+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);let d=aa(r,n)+aa(n,i);d>=l&&(l=d,a=r,s=n,p=i)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=s,p?e[t+1][1]=p:(e.splice(t+1,1),t--))}t++}}function Eb(e){e.push(new St(Rt,""));let t=0,r=0,n=0,i="",o="",a;for(;t<e.length;)switch(e[t][0]){case Ht:n++,o+=e[t][1],t++;break;case Kt:r++,i+=e[t][1],t++;break;case Rt:r+n>1?(r!==0&&n!==0&&(a=DF(o,i),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===Rt?e[t-r-n-1][1]+=o.substring(0,a):(e.splice(0,0,new St(Rt,o.substring(0,a))),t++),o=o.substring(a),i=i.substring(a)),a=bb(o,i),a!==0&&(e[t][1]=o.substring(o.length-a)+e[t][1],o=o.substring(0,o.length-a),i=i.substring(0,i.length-a))),t-=r+n,e.splice(t,r+n),i.length&&(e.splice(t,0,new St(Kt,i)),t++),o.length&&(e.splice(t,0,new St(Ht,o)),t++),t++):t!==0&&e[t-1][0]===Rt?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,i="",o="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===Rt&&e[t+1][0]===Rt&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Eb(e)}function aa(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),i=r.match(df),o=n.match(df),a=i&&r.match(ff),s=o&&n.match(ff),p=a&&r.match(hf),l=s&&n.match(hf),d=p&&e.match(PF),f=l&&t.match(OF);return d||f?5:p||l?4:i&&!a&&s?3:a||s?2:i||o?1:0}var vb="Compared values have no visual difference.",IF="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",sa={},mf;function NF(){if(mf)return sa;mf=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=h;let e="diff-sequences",t=0,r=(m,b,E,_,A)=>{let T=0;for(;m<b&&E<_&&A(m,E);)m+=1,E+=1,T+=1;return T},n=(m,b,E,_,A)=>{let T=0;for(;m<=b&&E<=_&&A(b,_);)b-=1,_-=1,T+=1;return T},i=(m,b,E,_,A,T,k)=>{let O=0,R=-m,y=T[O],S=y;T[O]+=r(y+1,b,_+y-R+1,E,A);let C=m<k?m:k;for(O+=1,R+=2;O<=C;O+=1,R+=2){if(O!==m&&S<T[O])y=T[O];else if(y=S+1,b<=y)return O-1;S=T[O],T[O]=y+r(y+1,b,_+y-R+1,E,A)}return k},o=(m,b,E,_,A,T,k)=>{let O=0,R=m,y=T[O],S=y;T[O]-=n(b,y-1,E,_+y-R-1,A);let C=m<k?m:k;for(O+=1,R-=2;O<=C;O+=1,R-=2){if(O!==m&&T[O]<S)y=T[O];else if(y=S-1,y<b)return O-1;S=T[O],T[O]=y-n(b,y-1,E,_+y-R-1,A)}return k},a=(m,b,E,_,A,T,k,O,R,y,S)=>{let C=_-b,D=E-b,J=A-_-D,M=-J-(m-1),G=-J+(m-1),L=t,N=m<O?m:O;for(let U=0,W=-m;U<=N;U+=1,W+=2){let K=U===0||U!==m&&L<k[U],ne=K?k[U]:L,be=K?ne:ne+1,xe=C+be-W,we=r(be+1,E,xe+1,A,T),ue=be+we;if(L=k[U],k[U]=ue,M<=W&&W<=G){let He=(m-1-(W+J))/2;if(He<=y&&R[He]-1<=ue){let Ve=C+ne-(K?W+1:W-1),Ce=n(b,ne,_,Ve,T),le=ne-Ce,Ne=Ve-Ce,Be=le+1,ut=Ne+1;S.nChangePreceding=m-1,m-1===Be+ut-b-_?(S.aEndPreceding=b,S.bEndPreceding=_):(S.aEndPreceding=Be,S.bEndPreceding=ut),S.nCommonPreceding=Ce,Ce!==0&&(S.aCommonPreceding=Be,S.bCommonPreceding=ut),S.nCommonFollowing=we,we!==0&&(S.aCommonFollowing=be+1,S.bCommonFollowing=xe+1);let X=ue+1,pe=xe+we+1;return S.nChangeFollowing=m-1,m-1===E+A-X-pe?(S.aStartFollowing=E,S.bStartFollowing=A):(S.aStartFollowing=X,S.bStartFollowing=pe),!0}}}return!1},s=(m,b,E,_,A,T,k,O,R,y,S)=>{let C=A-E,D=E-b,J=A-_-D,M=J-m,G=J+m,L=t,N=m<y?m:y;for(let U=0,W=m;U<=N;U+=1,W-=2){let K=U===0||U!==m&&R[U]<L,ne=K?R[U]:L,be=K?ne:ne-1,xe=C+be-W,we=n(b,be-1,_,xe-1,T),ue=be-we;if(L=R[U],R[U]=ue,M<=W&&W<=G){let He=(m+(W-J))/2;if(He<=O&&ue-1<=k[He]){let Ve=xe-we;if(S.nChangePreceding=m,m===ue+Ve-b-_?(S.aEndPreceding=b,S.bEndPreceding=_):(S.aEndPreceding=ue,S.bEndPreceding=Ve),S.nCommonPreceding=we,we!==0&&(S.aCommonPreceding=ue,S.bCommonPreceding=Ve),S.nChangeFollowing=m-1,m===1)S.nCommonFollowing=0,S.aStartFollowing=E,S.bStartFollowing=A;else{let Ce=C+ne-(K?W-1:W+1),le=r(ne,E,Ce,A,T);S.nCommonFollowing=le,le!==0&&(S.aCommonFollowing=ne,S.bCommonFollowing=Ce);let Ne=ne+le,Be=Ce+le;m-1===E+A-Ne-Be?(S.aStartFollowing=E,S.bStartFollowing=A):(S.aStartFollowing=Ne,S.bStartFollowing=Be)}return!0}}}return!1},p=(m,b,E,_,A,T,k,O,R)=>{let y=_-b,S=A-E,C=E-b,D=A-_,J=D-C,M=C,G=C;if(k[0]=b-1,O[0]=E,J%2===0){let L=(m||J)/2,N=(C+D)/2;for(let U=1;U<=N;U+=1)if(M=i(U,E,A,y,T,k,M),U<L)G=o(U,b,_,S,T,O,G);else if(s(U,b,E,_,A,T,k,M,O,G,R))return}else{let L=((m||J)+1)/2,N=(C+D+1)/2,U=1;for(M=i(U,E,A,y,T,k,M),U+=1;U<=N;U+=1)if(G=o(U-1,b,_,S,T,O,G),U<L)M=i(U,E,A,y,T,k,M);else if(a(U,b,E,_,A,T,k,M,O,G,R))return}throw new Error(`${e}: no overlap aStart=${b} aEnd=${E} bStart=${_} bEnd=${A}`)},l=(m,b,E,_,A,T,k,O,R,y)=>{if(A-_<E-b){if(T=!T,T&&k.length===1){let{foundSubsequence:He,isCommon:Ve}=k[0];k[1]={foundSubsequence:(Ce,le,Ne)=>{He(Ce,Ne,le)},isCommon:(Ce,le)=>Ve(le,Ce)}}let we=b,ue=E;b=_,E=A,_=we,A=ue}let{foundSubsequence:S,isCommon:C}=k[T?1:0];p(m,b,E,_,A,C,O,R,y);let{nChangePreceding:D,aEndPreceding:J,bEndPreceding:M,nCommonPreceding:G,aCommonPreceding:L,bCommonPreceding:N,nCommonFollowing:U,aCommonFollowing:W,bCommonFollowing:K,nChangeFollowing:ne,aStartFollowing:be,bStartFollowing:xe}=y;b<J&&_<M&&l(D,b,J,_,M,T,k,O,R,y),G!==0&&S(G,L,N),U!==0&&S(U,W,K),be<E&&xe<A&&l(ne,be,E,xe,A,T,k,O,R,y)},d=(m,b)=>{if(typeof b!="number")throw new TypeError(`${e}: ${m} typeof ${typeof b} is not a number`);if(!Number.isSafeInteger(b))throw new RangeError(`${e}: ${m} value ${b} is not a safe integer`);if(b<0)throw new RangeError(`${e}: ${m} value ${b} is a negative integer`)},f=(m,b)=>{let E=typeof b;if(E!=="function")throw new TypeError(`${e}: ${m} typeof ${E} is not a function`)};function h(m,b,E,_){d("aLength",m),d("bLength",b),f("isCommon",E),f("foundSubsequence",_);let A=r(0,m,0,b,E);if(A!==0&&_(A,0,0),m!==A||b!==A){let T=A,k=A,O=n(T,m-1,k,b-1,E),R=m-O,y=b-O,S=A+O;m!==S&&b!==S&&l(0,T,R,k,y,!1,[{foundSubsequence:_,isCommon:E}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),O!==0&&_(O,R,y)}}return sa}var BF=NF(),Ab=mb(BF);function kF(e,t){return e.replace(/\s+$/,r=>t(r))}function Vc(e,t,r,n,i,o){return e.length!==0?r(`${n} ${kF(e,i)}`):n!==" "?r(n):t&&o.length!==0?r(`${n} ${o}`):""}function _b(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Vc(e,t,r,n,i,o)}function wb(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Vc(e,t,r,n,i,o)}function Cb(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Vc(e,t,r,n,i,o)}function yf(e,t,r,n,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function MF(e,t){let r=e.length,n=t.contextLines,i=n+n,o=r,a=!1,s=0,p=0;for(;p!==r;){let O=p;for(;p!==r&&e[p][0]===Rt;)p+=1;if(O!==p)if(O===0)p>n&&(o-=p-n,a=!0);else if(p===r){let R=p-O;R>n&&(o-=R-n,a=!0)}else{let R=p-O;R>i&&(o-=R-i,s+=1)}for(;p!==r&&e[p][0]!==Rt;)p+=1}let l=s!==0||a;s!==0?o+=s+1:a&&(o+=1);let d=o-1,f=[],h=0;l&&f.push("");let m=0,b=0,E=0,_=0,A=O=>{let R=f.length;f.push(Cb(O,R===0||R===d,t)),E+=1,_+=1},T=O=>{let R=f.length;f.push(_b(O,R===0||R===d,t)),E+=1},k=O=>{let R=f.length;f.push(wb(O,R===0||R===d,t)),_+=1};for(p=0;p!==r;){let O=p;for(;p!==r&&e[p][0]===Rt;)p+=1;if(O!==p)if(O===0){p>n&&(O=p-n,m=O,b=O,E=m,_=b);for(let R=O;R!==p;R+=1)A(e[R][1])}else if(p===r){let R=p-O>n?O+n:p;for(let y=O;y!==R;y+=1)A(e[y][1])}else{let R=p-O;if(R>i){let y=O+n;for(let C=O;C!==y;C+=1)A(e[C][1]);f[h]=yf(m,E,b,_,t),h=f.length,f.push("");let S=R-i;m=E+S,b=_+S,E=m,_=b;for(let C=p-n;C!==p;C+=1)A(e[C][1])}else for(let y=O;y!==p;y+=1)A(e[y][1])}for(;p!==r&&e[p][0]===Kt;)T(e[p][1]),p+=1;for(;p!==r&&e[p][0]===Ht;)k(e[p][1]),p+=1}return l&&(f[h]=yf(m,E,b,_,t)),f.join(`
|
|
166
|
-
`)}function jF(e,t){return e.map((r,n,i)=>{let o=r[1],a=n===0||n===i.length-1;switch(r[0]){case Kt:return _b(o,a,t);case Ht:return wb(o,a,t);default:return Cb(o,a,t)}}).join(`
|
|
167
|
-
`)}var ou=e=>e,Tb=5,qF=0;function LF(){return{aAnnotation:"Expected",aColor:Pt.green,aIndicator:"-",bAnnotation:"Received",bColor:Pt.red,bIndicator:"+",changeColor:Pt.inverse,changeLineTrailingSpaceColor:ou,commonColor:Pt.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ou,compareKeys:void 0,contextLines:Tb,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Pt.yellow,printBasicPrototype:!1,truncateThreshold:qF,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:ou}}function $F(e){return e&&typeof e=="function"?e:void 0}function VF(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Tb}function ti(e={}){return{...LF(),...e,compareKeys:$F(e.compareKeys),contextLines:VF(e.contextLines)}}function pi(e){return e.length===1&&e[0].length===0}function UF(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Kt:t+=1;break;case Ht:r+=1;break}}),{a:t,b:r}}function JF({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:i,bIndicator:o,includeChangeCounts:a,omitAnnotationLines:s},p){if(s)return"";let l="",d="";if(a){let m=String(p.a),b=String(p.b),E=n.length-e.length,_=" ".repeat(Math.max(0,E)),A=" ".repeat(Math.max(0,-E)),T=b.length-m.length,k=" ".repeat(Math.max(0,T)),O=" ".repeat(Math.max(0,-T));l=`${_} ${r} ${k}${m}`,d=`${A} ${o} ${O}${b}`}let f=`${r} ${e}${l}`,h=`${o} ${n}${d}`;return`${t(f)}
|
|
168
|
-
${i(h)}
|
|
169
|
-
|
|
170
|
-
`}function Uc(e,t,r){return JF(r,UF(e))+(r.expand?jF(e,r):MF(e,r))+(t?r.truncateAnnotationColor(`
|
|
171
|
-
${r.truncateAnnotation}`):"")}function _s(e,t,r){let n=ti(r),[i,o]=Sb(pi(e)?[]:e,pi(t)?[]:t,n);return Uc(i,o,n)}function HF(e,t,r,n,i){if(pi(e)&&pi(r)&&(e=[],r=[]),pi(t)&&pi(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return _s(e,t,i);let[o,a]=Sb(r,n,i),s=0,p=0;return o.forEach(l=>{switch(l[0]){case Kt:l[1]=e[s],s+=1;break;case Ht:l[1]=t[p],p+=1;break;default:l[1]=t[p],s+=1,p+=1}}),Uc(o,a,ti(i))}function Sb(e,t,r){let n=r?.truncateThreshold??!1,i=Math.max(Math.floor(r?.truncateThreshold??0),0),o=n?Math.min(e.length,i):e.length,a=n?Math.min(t.length,i):t.length,s=o!==e.length||a!==t.length,p=(h,m)=>e[h]===t[m],l=[],d=0,f=0;for(Ab(o,a,p,(h,m,b)=>{for(;d!==m;d+=1)l.push(new St(Kt,e[d]));for(;f!==b;f+=1)l.push(new St(Ht,t[f]));for(;h!==0;h-=1,d+=1,f+=1)l.push(new St(Rt,t[f]))});d!==o;d+=1)l.push(new St(Kt,e[d]));for(;f!==a;f+=1)l.push(new St(Ht,t[f]));return[l,s]}function gf(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function bf(e){return e.includes(`\r
|
|
172
|
-
`)?`\r
|
|
173
|
-
`:`
|
|
174
|
-
`}function GF(e,t,r){let n=r?.truncateThreshold??!1,i=Math.max(Math.floor(r?.truncateThreshold??0),0),o=e.length,a=t.length;if(n){let h=e.includes(`
|
|
175
|
-
`),m=t.includes(`
|
|
176
|
-
`),b=bf(e),E=bf(t),_=h?`${e.split(b,i).join(b)}
|
|
177
|
-
`:e,A=m?`${t.split(E,i).join(E)}
|
|
178
|
-
`:t;o=_.length,a=A.length}let s=o!==e.length||a!==t.length,p=(h,m)=>e[h]===t[m],l=0,d=0,f=[];return Ab(o,a,p,(h,m,b)=>{l!==m&&f.push(new St(Kt,e.slice(l,m))),d!==b&&f.push(new St(Ht,t.slice(d,b))),l=m+h,d=b+h,f.push(new St(Rt,t.slice(b,d)))}),l!==o&&f.push(new St(Kt,e.slice(l))),d!==a&&f.push(new St(Ht,t.slice(d))),[f,s]}function zF(e,t,r){return t.reduce((n,i)=>n+(i[0]===Rt?i[1]:i[0]===e&&i[1].length!==0?r(i[1]):""),"")}var Ef=class{constructor(e,t){xt(this,"op");xt(this,"line");xt(this,"lines");xt(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new St(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new St(this.op,zF(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new St(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
179
|
-
`)){let r=t.split(`
|
|
180
|
-
`),n=r.length-1;r.forEach((i,o)=>{o<n?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},WF=class{constructor(e,t){xt(this,"deleteBuffer");xt(this,"insertBuffer");xt(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
|
|
181
|
-
`)){let n=r.split(`
|
|
182
|
-
`),i=n.length-1;n.forEach((o,a)=>{if(a===0){let s=new St(t,o);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else a<i?this.pushDiffCommonLine(new St(t,o)):o.length!==0&&this.pushDiffChangeLines(new St(t,o))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function KF(e,t){let r=new Ef(Kt,t),n=new Ef(Ht,t),i=new WF(r,n);return e.forEach(o=>{switch(o[0]){case Kt:r.align(o);break;case Ht:n.align(o);break;default:i.align(o)}}),i.getLines()}function YF(e,t){if(t){let r=e.length-1;return e.some((n,i)=>n[0]===Rt&&(i!==r||n[1]!==`
|
|
183
|
-
`))}return e.some(r=>r[0]===Rt)}function XF(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
184
|
-
`)||t.includes(`
|
|
185
|
-
`),[i,o]=xb(n?`${e}
|
|
186
|
-
`:e,n?`${t}
|
|
187
|
-
`:t,!0,r);if(YF(i,n)){let a=ti(r),s=KF(i,a.changeColor);return Uc(s,o,a)}}return _s(e.split(`
|
|
188
|
-
`),t.split(`
|
|
189
|
-
`),r)}function xb(e,t,r,n){let[i,o]=GF(e,t,n);return RF(i),[i,o]}function Ju(e,t){let{commonColor:r}=ti(t);return r(e)}var{AsymmetricMatcher:QF,DOMCollection:ZF,DOMElement:eI,Immutable:tI,ReactElement:rI,ReactTestComponent:nI}=$c,Db=[nI,rI,eI,ZF,tI,QF,$c.Error],Hu={maxDepth:20,plugins:Db},Rb={callToJSON:!1,maxDepth:8,plugins:Db};function qi(e,t,r){if(Object.is(e,t))return"";let n=gf(e),i=n,o=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),o=i==="string"}if(i!==gf(t)){let a=function(k){return k.length<=_?k:`${k.slice(0,_)}...`},{aAnnotation:s,aColor:p,aIndicator:l,bAnnotation:d,bColor:f,bIndicator:h}=ti(r),m=Gu(Rb,r),b=Br(e,m),E=Br(t,m),_=1e5;b=a(b),E=a(E);let A=`${p(`${l} ${s}:`)}
|
|
190
|
-
${b}`,T=`${f(`${h} ${d}:`)}
|
|
191
|
-
${E}`;return`${A}
|
|
192
|
-
|
|
193
|
-
${T}`}if(!o)switch(n){case"string":return _s(e.split(`
|
|
194
|
-
`),t.split(`
|
|
195
|
-
`),r);case"boolean":case"number":return iI(e,t,r);case"map":return au(vf(e),vf(t),r);case"set":return au(Af(e),Af(t),r);default:return au(e,t,r)}}function iI(e,t,r){let n=Br(e,Hu),i=Br(t,Hu);return n===i?"":_s(n.split(`
|
|
196
|
-
`),i.split(`
|
|
197
|
-
`),r)}function vf(e){return new Map(Array.from(e.entries()).sort())}function Af(e){return new Set(Array.from(e.values()).sort())}function au(e,t,r){let n,i=!1;try{let a=Gu(Hu,r);n=_f(e,t,a,r)}catch{i=!0}let o=Ju(vb,r);if(n===void 0||n===o){let a=Gu(Rb,r);n=_f(e,t,a,r),n!==o&&!i&&(n=`${Ju(IF,r)}
|
|
198
|
-
|
|
199
|
-
${n}`)}return n}function Gu(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:i}=ti(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:i??e.maxDepth}}function _f(e,t,r,n){let i={...r,indent:0},o=Br(e,i),a=Br(t,i);if(o===a)return Ju(vb,n);{let s=Br(e,r),p=Br(t,r);return HF(s.split(`
|
|
200
|
-
`),p.split(`
|
|
201
|
-
`),o.split(`
|
|
202
|
-
`),a.split(`
|
|
203
|
-
`),n)}}var wf=2e4;function Cf(e){return $a(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Tf(e,t){let r=$a(e),n=$a(t);return r===n&&(r==="Object"||r==="Array")}function Pb(e,t,r){let{aAnnotation:n,bAnnotation:i}=ti(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=wf&&e.length<=wf&&t!==e){if(t.includes(`
|
|
204
|
-
`)||e.includes(`
|
|
205
|
-
`))return XF(t,e,r);let[l]=xb(t,e),d=l.some(b=>b[0]===Rt),f=oI(n,i),h=f(n)+uI(Sf(l,Kt,d)),m=f(i)+sI(Sf(l,Ht,d));return`${h}
|
|
206
|
-
${m}`}let o=cf(t,{forceWritable:!0}),a=cf(e,{forceWritable:!0}),{replacedExpected:s,replacedActual:p}=Ob(a,o);return qi(s,p,r)}function Ob(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Tf(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),yb(t).forEach(i=>{let o=t[i],a=e[i];if(Cf(o))o.asymmetricMatch(a)&&(e[i]=o);else if(Cf(a))a.asymmetricMatch(o)&&(t[i]=a);else if(Tf(a,o)){let s=Ob(a,o,r,n);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function oI(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var aI="·";function Fb(e){return e.replace(/\s+$/gm,t=>aI.repeat(t.length))}function sI(e){return Pt.red(Fb(fr(e)))}function uI(e){return Pt.green(Fb(fr(e)))}function Sf(e,t,r){return e.reduce((n,i)=>n+(i[0]===Rt?i[1]:i[0]===t?r?Pt.inverse(i[1]):i[1]:""),"")}var lI="@@__IMMUTABLE_RECORD__@@",cI="@@__IMMUTABLE_ITERABLE__@@";function pI(e){return e&&(e[cI]||e[lI])}var dI=Object.getPrototypeOf({});function xf(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function gn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&ua(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&ua(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&ua(()=>r.name??(r.name=e.name)),e.cause!=null&&ua(()=>r.cause??(r.cause=gn(e.cause,t)))),gn(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(pI(e))return gn(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${CF(e.sample)}`;if(typeof e.toJSON=="function")return gn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,i)=>{try{r[i]=gn(n,t)}catch(o){r[i]=xf(o)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==dI;)Object.getOwnPropertyNames(n).forEach(i=>{if(!(i in r))try{r[i]=gn(e[i],t)}catch(o){delete r[i],r[i]=xf(o)}}),n=Object.getPrototypeOf(n);return r}}function ua(e){try{return e()}catch{}}function fI(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Jc(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=Pb(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=fr(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=fr(n.actual,10));try{typeof n.message=="string"&&(n.message=fI(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Jc(n.cause,t,r))}catch{}try{return gn(n)}catch(i){return gn(new Error(`Failed to fully serialize error: ${i?.message}
|
|
207
|
-
Inner error message: ${n?.message}`))}}var Hr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},su=globalThis.__STORYBOOK_ADDONS_PREVIEW,hI=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Df=e=>Object.prototype.toString.call(e)==="[object Object]",mI=e=>Object.prototype.toString.call(e)==="[object Module]",yI=e=>{if(!Df(e)&&!mI(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Df(t)},gI=e=>{try{return new e.constructor}catch{return{}}},uu=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Rf=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(i=>i.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},bI=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=ge.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{ge.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:s,renderPhase:p,isPlaying:l=!0,isDebugging:d=!1})=>{let f=this.getState(s);this.setState(s,{...uu(),...Rf(f,d),renderPhase:p||f.renderPhase,shadowCalls:d?f.shadowCalls:[],chainedCallIds:d?f.chainedCallIds:new Set,playUntil:d?f.playUntil:void 0,isPlaying:l,isDebugging:d}),this.sync(s)},t=s=>({storyId:p,playUntil:l})=>{this.getState(p).isDebugging||this.setState(p,({calls:f})=>({calls:[],shadowCalls:f.map(h=>({...h,status:"waiting"})),isDebugging:!0}));let d=this.getLog(p);this.setState(p,({shadowCalls:f})=>{if(l||!d.length)return{playUntil:l};let h=f.findIndex(m=>m.id===d[0].callId);return{playUntil:f.slice(0,h).filter(m=>m.interceptable&&!m.ancestors?.length).slice(-1)[0]?.id}}),s.emit(ja,{storyId:p,isDebugging:!0})},r=s=>({storyId:p})=>{let l=this.getLog(p).filter(f=>!f.ancestors?.length),d=l.reduceRight((f,h,m)=>f>=0||h.status==="waiting"?f:m,-1);t(s)({storyId:p,playUntil:l[d-1]?.callId})},n=s=>({storyId:p,callId:l})=>{let{calls:d,shadowCalls:f,resolvers:h}=this.getState(p),m=d.find(({id:E})=>E===l),b=f.find(({id:E})=>E===l);if(!m&&b&&Object.values(h).length>0){let E=this.getLog(p).find(_=>_.status==="waiting")?.callId;b.id!==E&&this.setState(p,{playUntil:b.id}),Object.values(h).forEach(_=>_())}else t(s)({storyId:p,playUntil:l})},i=s=>({storyId:p})=>{let{resolvers:l}=this.getState(p);if(Object.values(l).length>0)Object.values(l).forEach(d=>d());else{let d=this.getLog(p).find(f=>f.status==="waiting")?.callId;d?t(s)({storyId:p,playUntil:d}):o({storyId:p})}},o=({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(p=>p())},a=({storyId:s,newPhase:p})=>{let{isDebugging:l}=this.getState(s);if(p==="preparing"&&l)return e({storyId:s,renderPhase:p,isDebugging:l});if(p==="playing")return e({storyId:s,renderPhase:p,isDebugging:l});p==="played"?this.setState(s,{renderPhase:p,isLocked:!1,isPlaying:!1,isDebugging:!1}):p==="errored"?this.setState(s,{renderPhase:p,isLocked:!1,isPlaying:!1}):p==="aborted"?this.setState(s,{renderPhase:p,isLocked:!0,isPlaying:!1}):this.setState(s,{renderPhase:p}),this.sync(s)};su&&su.ready().then(()=>{this.channel=su.getChannel(),this.channel.on(ja,e),this.channel.on(Wn,a),this.channel.on(mc,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Hr.START,t(this.channel)),this.channel.on(Hr.BACK,r(this.channel)),this.channel.on(Hr.GOTO,n(this.channel)),this.channel.on(Hr.NEXT,i(this.channel)),this.channel.on(Hr.END,o)})}getState(e){return this.state[e]||uu()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let i=Rf(n);return i&&(t[r]=Object.assign(uu(),i)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Hr.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((o,a)=>{n[a]=o});let i=new Set;return n.reduceRight((o,a)=>(a.args.forEach(s=>{s?.__callId__&&i.add(s.__callId__)}),a.path.forEach(s=>{s.__callId__&&i.add(s.__callId__)}),(a.interceptable||a.exception)&&!i.has(a.id)&&(o.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),i.add(a.id)),o),[])}instrument(e,t,r=0){if(!yI(e))return e;let{mutate:n=!1,path:i=[]}=t,o=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,o.reduce((a,s)=>{let p=EI(e,s);if(typeof p?.get=="function"){if(p.configurable){let d=()=>p?.get?.bind(e)?.();Object.defineProperty(a,s,{get:()=>this.instrument(d(),{...t,path:i.concat(s)},r)})}return a}let l=e[s];return typeof l!="function"?(a[s]=this.instrument(l,{...t,path:i.concat(s)},r),a):"__originalFn__"in l&&typeof l.__originalFn__=="function"?(a[s]=l,a):(a[s]=(...d)=>this.track(s,l,e,d,t),a[s].__originalFn__=l,Object.defineProperty(a[s],"name",{value:s,writable:!1}),Object.keys(l).length>0&&Object.assign(a[s],this.instrument({...l},{...t,path:i.concat(s)},r)),a)},n?e:gI(e))}track(e,t,r,n,i){let o=n?.[0]?.__storyId__||ge.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:a,ancestors:s}=this.getState(o);this.setState(o,{cursor:a+1});let p=`${s.slice(-1)[0]||o} [${a}] ${e}`,{path:l=[],intercept:d=!1,retain:f=!1}=i,h=typeof d=="function"?d(e,l):d,m={id:p,cursor:a,storyId:o,ancestors:s,path:l,method:e,args:n,interceptable:h,retain:f},b=(h&&!s.length?this.intercept:this.invoke).call(this,t,r,m,i);return this.instrument(b,{...i,mutate:!0,path:[{__callId__:m.id}]})}intercept(e,t,r,n){let{chainedCallIds:i,isDebugging:o,playUntil:a}=this.getState(r.storyId),s=i.has(r.id);return!o||s||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(p=>{this.setState(r.storyId,({resolvers:l})=>({isLocked:!1,resolvers:{...l,[r.id]:p}}))}).then(()=>(this.setState(r.storyId,p=>{let{[r.id]:l,...d}=p.resolvers;return{isLocked:!0,resolvers:d}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:i,renderPhase:o}=this.getState(r.storyId),a=25,s=(d,f,h)=>{if(h.includes(d))return"[Circular]";if(h=[...h,d],f>a)return"...";if(i.has(d))return i.get(d);if(d instanceof Array)return d.map(m=>s(m,++f,h));if(d instanceof Date)return{__date__:{value:d.toISOString()}};if(d instanceof Error){let{name:m,message:b,stack:E}=d;return{__error__:{name:m,message:b,stack:E}}}if(d instanceof RegExp){let{flags:m,source:b}=d;return{__regexp__:{flags:m,source:b}}}if(d instanceof ge.window?.HTMLElement){let{prefix:m,localName:b,id:E,classList:_,innerText:A}=d,T=Array.from(_);return{__element__:{prefix:m,localName:b,id:E,classNames:T,innerText:A}}}return typeof d=="function"?{__function__:{name:"getMockName"in d?d.getMockName():d.name}}:typeof d=="symbol"?{__symbol__:{description:d.description}}:typeof d=="object"&&d?.constructor?.name&&d?.constructor?.name!=="Object"?{__class__:{name:d.constructor.name}}:Object.prototype.toString.call(d)==="[object Object]"?Object.fromEntries(Object.entries(d).map(([m,b])=>[m,s(b,++f,h)])):d},p={...r,args:r.args.map(d=>s(d,0,[]))};r.path.forEach(d=>{d?.__callId__&&this.setState(r.storyId,({chainedCallIds:f})=>({chainedCallIds:new Set(Array.from(f).concat(d.__callId__))}))});let l=d=>{if(d instanceof Error){let{name:f,message:h,stack:m,callId:b=r.id}=d,{showDiff:E=void 0,diff:_=void 0,actual:A=void 0,expected:T=void 0}=d.name==="AssertionError"?Jc(d):d,k={name:f,message:h,stack:m,callId:b,showDiff:E,diff:_,actual:A,expected:T};if(this.update({...p,status:"error",exception:k}),this.setState(r.storyId,O=>({callRefsByResult:new Map([...Array.from(O.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(d,"callId")||Object.defineProperty(d,"callId",{value:r.id}),d}throw d};try{if(o==="played"&&!r.retain)throw hI;let d=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(h=>typeof h!="function"||vI(h)||Object.keys(h).length?h:(...m)=>{let{cursor:b,ancestors:E}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...E,r.id]});let _=()=>this.setState(r.storyId,{cursor:b,ancestors:E}),A=!1;try{let T=h(...m);return T instanceof Promise?(A=!0,T.finally(_)):T}finally{A||_()}}),f=e.apply(t,d);return f&&["object","function","symbol"].includes(typeof f)&&this.setState(r.storyId,h=>({callRefsByResult:new Map([...Array.from(h.callRefsByResult.entries()),[f,{__callId__:r.id,retain:r.retain}]])})),this.update({...p,status:f instanceof Promise?"active":"done"}),f instanceof Promise?f.then(h=>(this.update({...p,status:"done"}),h),l):f}catch(d){return l(d)}}update(e){this.channel?.emit(Hr.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,i)=>Object.assign(n,{[i.id]:i}),{});return{calls:Object.values(r).sort((n,i)=>n.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),i=this.getLog(e),o=i.filter(({ancestors:l})=>!l.length).find(l=>l.status==="waiting")?.callId,a=i.some(l=>l.status==="active");if(this.detached||r||a||i.length===0){let l={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:i};this.channel?.emit(Hr.SYNC,l);return}let s=i.some(l=>l.status==="done"||l.status==="error"),p={controlStates:{detached:this.detached,start:s,back:s,goto:!0,next:n,end:n},logItems:i,pausedAt:o};this.channel?.emit(Hr.SYNC,p)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function Vo(e,t={}){try{let r=!1,n=!1;return ge.window?.location?.search?.includes("instrument=true")?r=!0:ge.window?.location?.search?.includes("instrument=false")&&(n=!0),ge.window?.parent===ge.window&&!r||n?e:(ge.window&&!ge.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(ge.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new bI),(ge.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Ot.warn(r),e}}function EI(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function vI(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var Ib=Object.defineProperty,ee=(e,t)=>Ib(e,"name",{value:t,configurable:!0}),Hc=(e,t)=>{for(var r in t)Ib(e,r,{get:t[r],enumerable:!0})},kr={};Hc(kr,{addChainableMethod:()=>np,addLengthGuard:()=>Ho,addMethod:()=>ep,addProperty:()=>Zc,checkError:()=>lr,compareByInspect:()=>Ha,eql:()=>a0,expectTypes:()=>Lb,flag:()=>$e,getActual:()=>Cs,getMessage:()=>Wc,getName:()=>Ss,getOperator:()=>sp,getOwnEnumerableProperties:()=>ap,getOwnEnumerablePropertySymbols:()=>op,getPathInfo:()=>Qc,hasProperty:()=>Ts,inspect:()=>Ze,isNaN:()=>Ga,isNumeric:()=>Ut,isProxyEnabled:()=>Jo,isRegExp:()=>za,objDisplay:()=>Un,overwriteChainableMethod:()=>ip,overwriteMethod:()=>rp,overwriteProperty:()=>tp,proxify:()=>Li,test:()=>Gc,transferFlags:()=>Pr,type:()=>ct});var lr={};Hc(lr,{compatibleConstructor:()=>kb,compatibleInstance:()=>Bb,compatibleMessage:()=>Mb,getConstructorName:()=>jb,getMessage:()=>qb});function ws(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}ee(ws,"isErrorInstance");function Nb(e){return Object.prototype.toString.call(e)==="[object RegExp]"}ee(Nb,"isRegExp");function Bb(e,t){return ws(t)&&e===t}ee(Bb,"compatibleInstance");function kb(e,t){return ws(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}ee(kb,"compatibleConstructor");function Mb(e,t){let r=typeof e=="string"?e:e.message;return Nb(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}ee(Mb,"compatibleMessage");function jb(e){let t=e;return ws(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}ee(jb,"getConstructorName");function qb(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}ee(qb,"getMessage");function $e(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}ee($e,"flag");function Gc(e,t){let r=$e(e,"negate"),n=t[0];return r?!n:n}ee(Gc,"test");function ct(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}ee(ct,"type");var AI="captureStackTrace"in Error,la,tt=(la=class extends Error{constructor(t="Unspecified AssertionError",r,n){super(t);xt(this,"message");this.message=t,AI&&Error.captureStackTrace(this,n||la);for(let i in r)i in this||(this[i]=r[i])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},ee(la,"AssertionError"),la);function Lb(e,t){let r=$e(e,"message"),n=$e(e,"ssfi");r=r?r+": ":"",e=$e(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let i=t.map(function(a,s){let p=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&s===t.length-1?"or ":"")+p+" "+a}).join(", "),o=ct(e).toLowerCase();if(!t.some(function(a){return o===a}))throw new tt(r+"object tested must be "+i+", but "+o+" given",void 0,n)}ee(Lb,"expectTypes");function Cs(e,t){return t.length>4?t[4]:e._obj}ee(Cs,"getActual");var Pf={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},_I={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},wi="…";function $b(e,t){let r=Pf[_I[t]]||Pf[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}ee($b,"colorise");function Vb({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:a=1/0,seen:s=[],truncate:p=1/0,stylize:l=String}={},d){let f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(o),breakLength:Number(a),truncate:Number(p),seen:s,inspect:d,stylize:l};return f.colors&&(f.stylize=$b),f}ee(Vb,"normaliseOptions");function Ub(e){return e>="\uD800"&&e<="\uDBFF"}ee(Ub,"isHighSurrogate");function nn(e,t,r=wi){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let o=t-n;return o>0&&Ub(e[o-1])&&(o=o-1),`${e.slice(0,o)}${r}`}return e}ee(nn,"truncate");function Ar(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let o=t.truncate,a="",s="",p="";for(let l=0;l<i;l+=1){let d=l+1===e.length,f=l+2===e.length;p=`${wi}(${e.length-l})`;let h=e[l];t.truncate=o-a.length-(d?0:n.length);let m=s||r(h,t)+(d?"":n),b=a.length+m.length,E=b+p.length;if(d&&b>o&&a.length+p.length<=o||!d&&!f&&E>o||(s=d?"":r(e[l+1],t)+(f?"":n),!d&&f&&E>o&&b+s.length>o))break;if(a+=m,!d&&!f&&b+s.length>=o){p=`${wi}(${e.length-l-1})`;break}p=""}return`${a}${p}`}ee(Ar,"inspectList");function Jb(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}ee(Jb,"quoteComplexKey");function Ci([e,t],r){return r.truncate-=2,typeof e=="string"?e=Jb(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}ee(Ci,"inspectProperty");function Hb(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Ar(e,t);t.truncate-=n.length;let i="";return r.length&&(i=Ar(r.map(o=>[o,e[o]]),t,Ci)),`[ ${n}${i?`, ${i}`:""} ]`}ee(Hb,"inspectArray");var wI=ee(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Ir(e,t){let r=wI(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let a=0;a<e.length;a++){let s=`${t.stylize(nn(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){i+=`${wi}(${e.length-e[a]+1})`;break}i+=s}let o="";return n.length&&(o=Ar(n.map(a=>[a,e[a]]),t,Ci)),`${r}[ ${i}${o?`, ${o}`:""} ]`}ee(Ir,"inspectTypedArray");function Gb(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${nn(n[1],t.truncate-i.length-1)}`,"date")}ee(Gb,"inspectDate");function zu(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${nn(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}ee(zu,"inspectFunction");function zb([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}ee(zb,"inspectMapEntry");function Wb(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}ee(Wb,"mapToEntries");function Kb(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Ar(Wb(e),t,zb)} }`)}ee(Kb,"inspectMap");var CI=Number.isNaN||(e=>e!==e);function Wu(e,t){return CI(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(nn(String(e),t.truncate),"number")}ee(Wu,"inspectNumber");function Ku(e,t){let r=nn(e.toString(),t.truncate-1);return r!==wi&&(r+="n"),t.stylize(r,"bigint")}ee(Ku,"inspectBigInt");function Yb(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${nn(i,n)}/${r}`,"regexp")}ee(Yb,"inspectRegExp");function Xb(e){let t=[];return e.forEach(r=>{t.push(r)}),t}ee(Xb,"arrayFromSet");function Qb(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ar(Xb(e),t)} }`)}ee(Qb,"inspectSet");var Of=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),TI={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},SI=16;function Zb(e){return TI[e]||`\\u${`0000${e.charCodeAt(0).toString(SI)}`.slice(-4)}`}ee(Zb,"escape");function Yu(e,t){return Of.test(e)&&(e=e.replace(Of,Zb)),t.stylize(`'${nn(e,t.truncate-2)}'`,"string")}ee(Yu,"inspectString");function Xu(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}ee(Xu,"inspectSymbol");var xI=ee(()=>"Promise{…}","getPromiseValue"),DI=xI;function so(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Ar(r.map(s=>[s,e[s]]),t,Ci),o=Ar(n.map(s=>[s,e[s]]),t,Ci);t.seen.pop();let a="";return i&&o&&(a=", "),`{ ${i}${a}${o} }`}ee(so,"inspectObject");var lu=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function e0(e,t){let r="";return lu&&lu in e&&(r=e[lu]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${so(e,t)}`}ee(e0,"inspectClass");function t0(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ar(e,t)} ]`)}ee(t0,"inspectArguments");var RI=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function r0(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>RI.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=nn(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Ar(r.map(a=>[a,e[a]]),t,Ci);return`${n}${i}${o?` { ${o} }`:""}`}ee(r0,"inspectObject");function n0([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}ee(n0,"inspectAttribute");function Va(e,t){return Ar(e,t,i0,`
|
|
208
|
-
`)}ee(Va,"inspectNodeCollection");function i0(e,t){switch(e.nodeType){case 1:return zc(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}ee(i0,"inspectNode");function zc(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),o=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=Ar(r.map(d=>[d,e.getAttribute(d)]),t,n0," ")),t.truncate-=s.length;let p=t.truncate,l=Va(e.children,t);return l&&l.length>p&&(l=`${wi}(${e.children.length})`),`${i}${s}${o}${l}${a}`}ee(zc,"inspectHTML");var PI=typeof Symbol=="function"&&typeof Symbol.for=="function",cu=PI?Symbol.for("chai/inspect"):"@@chai/inspect",pu=Symbol.for("nodejs.util.inspect.custom"),Ff=new WeakMap,If={},Nf={undefined:ee((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:ee((e,t)=>t.stylize("null","null"),"null"),boolean:ee((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:ee((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Wu,Number:Wu,bigint:Ku,BigInt:Ku,string:Yu,String:Yu,function:zu,Function:zu,symbol:Xu,Symbol:Xu,Array:Hb,Date:Gb,Map:Kb,Set:Qb,RegExp:Yb,Promise:DI,WeakSet:ee((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:ee((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:t0,Int8Array:Ir,Uint8Array:Ir,Uint8ClampedArray:Ir,Int16Array:Ir,Uint16Array:Ir,Int32Array:Ir,Uint32Array:Ir,Float32Array:Ir,Float64Array:Ir,Generator:ee(()=>"","Generator"),DataView:ee(()=>"","DataView"),ArrayBuffer:ee(()=>"","ArrayBuffer"),Error:r0,HTMLCollection:Va,NodeList:Va},OI=ee((e,t,r)=>cu in e&&typeof e[cu]=="function"?e[cu](t):pu in e&&typeof e[pu]=="function"?e[pu](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Ff.has(e.constructor)?Ff.get(e.constructor)(e,t):If[r]?If[r](e,t):"","inspectCustom"),FI=Object.prototype.toString;function Ua(e,t={}){let r=Vb(t,Ua),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=FI.call(e).slice(8,-1)),i in Nf)return Nf[i](e,r);if(n&&e){let a=OI(e,r,i);if(a)return typeof a=="string"?a:Ua(a,r)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?so(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?zc(e,r):"constructor"in e?e.constructor!==Object?e0(e,r):so(e,r):e===Object(e)?so(e,r):r.stylize(String(e),i)}ee(Ua,"inspect");var er={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Ze(e,t,r,n){let i={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:er.truncateThreshold?er.truncateThreshold:1/0};return Ua(e,i)}ee(Ze,"inspect");function Un(e){let t=Ze(e),r=Object.prototype.toString.call(e);if(er.truncateThreshold&&t.length>=er.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}ee(Un,"objDisplay");function Wc(e,t){let r=$e(e,"negate"),n=$e(e,"object"),i=t[3],o=Cs(e,t),a=r?t[2]:t[1],s=$e(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return Un(n)}).replace(/#\{act\}/g,function(){return Un(o)}).replace(/#\{exp\}/g,function(){return Un(i)}),s?s+": "+a:a}ee(Wc,"getMessage");function Pr(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let i in n)(r||i!=="object"&&i!=="ssfi"&&i!=="lockSsfi"&&i!="message")&&(t.__flags[i]=n[i])}ee(Pr,"transferFlags");function Qu(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}ee(Qu,"type");function Kc(){this._key="chai/deep-eql__"+Math.random()+Date.now()}ee(Kc,"FakeMap");Kc.prototype={get:ee(function(e){return e[this._key]},"get"),set:ee(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var o0=typeof WeakMap=="function"?WeakMap:Kc;function Zu(e,t,r){if(!r||Yn(e)||Yn(t))return null;var n=r.get(e);if(n){var i=n.get(t);if(typeof i=="boolean")return i}return null}ee(Zu,"memoizeCompare");function to(e,t,r,n){if(!(!r||Yn(e)||Yn(t))){var i=r.get(e);i?i.set(t,n):(i=new o0,i.set(t,n),r.set(e,i))}}ee(to,"memoizeSet");var a0=Uo;function Uo(e,t,r){if(r&&r.comparator)return el(e,t,r);var n=Yc(e,t);return n!==null?n:el(e,t,r)}ee(Uo,"deepEqual");function Yc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Yn(e)||Yn(t)?!1:null}ee(Yc,"simpleEqual");function el(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new o0;var n=r&&r.comparator,i=Zu(e,t,r.memoize);if(i!==null)return i;var o=Zu(t,e,r.memoize);if(o!==null)return o;if(n){var a=n(e,t);if(a===!1||a===!0)return to(e,t,r.memoize,a),a;var s=Yc(e,t);if(s!==null)return s}var p=Qu(e);if(p!==Qu(t))return to(e,t,r.memoize,!1),!1;to(e,t,r.memoize,!0);var l=s0(e,t,p,r);return to(e,t,r.memoize,l),l}ee(el,"extensiveDeepEqual");function s0(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Uo(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Xc(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return An(e,t,n);case"RegExp":return u0(e,t);case"Generator":return l0(e,t,n);case"DataView":return An(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return An(new Uint8Array(e),new Uint8Array(t),n);case"Set":return tl(e,t,n);case"Map":return tl(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return p0(e,t,n)}}ee(s0,"extensiveDeepEqualByType");function u0(e,t){return e.toString()===t.toString()}ee(u0,"regexpEqual");function tl(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],i=[];return e.forEach(ee(function(o,a){n.push([o,a])},"gatherEntries")),t.forEach(ee(function(o,a){i.push([o,a])},"gatherEntries")),An(n.sort(),i.sort(),r)}ee(tl,"entriesEqual");function An(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var i=-1;++i<n;)if(Uo(e[i],t[i],r)===!1)return!1;return!0}ee(An,"iterableEqual");function l0(e,t,r){return An(Ja(e),Ja(t),r)}ee(l0,"generatorEqual");function c0(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}ee(c0,"hasIteratorFunction");function rl(e){if(c0(e))try{return Ja(e[Symbol.iterator]())}catch{return[]}return[]}ee(rl,"getIteratorEntries");function Ja(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}ee(Ja,"getGeneratorEntries");function nl(e){var t=[];for(var r in e)t.push(r);return t}ee(nl,"getEnumerableKeys");function il(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var i=r[n];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}ee(il,"getEnumerableSymbols");function Xc(e,t,r,n){var i=r.length;if(i===0)return!0;for(var o=0;o<i;o+=1)if(Uo(e[r[o]],t[r[o]],n)===!1)return!1;return!0}ee(Xc,"keysEqual");function p0(e,t,r){var n=nl(e),i=nl(t),o=il(e),a=il(t);if(n=n.concat(o),i=i.concat(a),n.length&&n.length===i.length)return An(ol(n).sort(),ol(i).sort())===!1?!1:Xc(e,t,n,r);var s=rl(e),p=rl(t);return s.length&&s.length===p.length?(s.sort(),p.sort(),An(s,p,r)):n.length===0&&s.length===0&&i.length===0&&p.length===0}ee(p0,"objectEqual");function Yn(e){return e===null||typeof e!="object"}ee(Yn,"isPrimitive");function ol(e){return e.map(ee(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}ee(ol,"mapSymbols");function Ts(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}ee(Ts,"hasProperty");function d0(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}ee(d0,"parsePath");function al(e,t,r){let n=e,i=null;r=typeof r>"u"?t.length:r;for(let o=0;o<r;o++){let a=t[o];n&&(typeof a.p>"u"?n=n[a.i]:n=n[a.p],o===r-1&&(i=n))}return i}ee(al,"internalGetPathValue");function Qc(e,t){let r=d0(t),n=r[r.length-1],i={parent:r.length>1?al(e,r,r.length-1):e,name:n.p||n.i,value:al(e,r)};return i.exists=Ts(i.parent,i.name),i}ee(Qc,"getPathInfo");var ca,H=(ca=class{constructor(e,t,r,n){xt(this,"__flags",{});return $e(this,"ssfi",r||ca),$e(this,"lockSsfi",n),$e(this,"object",e),$e(this,"message",t),$e(this,"eql",er.deepEqual||a0),Li(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),er.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),er.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),er.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),er.showDiff=e}static addProperty(e,t){Zc(this.prototype,e,t)}static addMethod(e,t){ep(this.prototype,e,t)}static addChainableMethod(e,t,r){np(this.prototype,e,t,r)}static overwriteProperty(e,t){tp(this.prototype,e,t)}static overwriteMethod(e,t){rp(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){ip(this.prototype,e,t,r)}assert(e,t,r,n,i,o){let a=Gc(this,arguments);if(o!==!1&&(o=!0),n===void 0&&i===void 0&&(o=!1),er.showDiff!==!0&&(o=!1),!a){t=Wc(this,arguments);let s={actual:Cs(this,arguments),expected:n,showDiff:o},p=sp(this,arguments);throw p&&(s.operator=p),new tt(t,s,er.includeStack?this.assert:$e(this,"ssfi"))}}get _obj(){return $e(this,"object")}set _obj(e){$e(this,"object",e)}},ee(ca,"Assertion"),ca);function Jo(){return er.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}ee(Jo,"isProxyEnabled");function Zc(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:ee(function n(){!Jo()&&!$e(this,"lockSsfi")&&$e(this,"ssfi",n);let i=r.call(this);if(i!==void 0)return i;let o=new H;return Pr(this,o),o},"propertyGetter"),configurable:!0})}ee(Zc,"addProperty");var II=Object.getOwnPropertyDescriptor(function(){},"length");function Ho(e,t,r){return II.configurable&&Object.defineProperty(e,"length",{get:ee(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}ee(Ho,"addLengthGuard");function f0(e){let t=Object.getOwnPropertyNames(e);function r(i){t.indexOf(i)===-1&&t.push(i)}ee(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}ee(f0,"getProperties");var Bf=["__flags","__methods","_obj","assert"];function Li(e,t){return Jo()?new Proxy(e,{get:ee(function r(n,i){if(typeof i=="string"&&er.proxyExcludedKeys.indexOf(i)===-1&&!Reflect.has(n,i)){if(t)throw Error("Invalid Chai property: "+t+"."+i+'. See docs for proper usage of "'+t+'".');let o=null,a=4;throw f0(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&Bf.indexOf(s)===-1){let p=h0(i,s,a);p<a&&(o=s,a=p)}}),Error(o!==null?"Invalid Chai property: "+i+'. Did you mean "'+o+'"?':"Invalid Chai property: "+i)}return Bf.indexOf(i)===-1&&!$e(n,"lockSsfi")&&$e(n,"ssfi",r),Reflect.get(n,i)},"proxyGetter")}):e}ee(Li,"proxify");function h0(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let i=0;i<=e.length;i++)n[i]=Array(t.length+1).fill(0),n[i][0]=i;for(let i=0;i<t.length;i++)n[0][i]=i;for(let i=1;i<=e.length;i++){let o=e.charCodeAt(i-1);for(let a=1;a<=t.length;a++){if(Math.abs(i-a)>=r){n[i][a]=r;continue}n[i][a]=Math.min(n[i-1][a]+1,n[i][a-1]+1,n[i-1][a-1]+(o===t.charCodeAt(a-1)?0:1))}}return n[e.length][t.length]}ee(h0,"stringDistanceCapped");function ep(e,t,r){let n=ee(function(){$e(this,"lockSsfi")||$e(this,"ssfi",n);let i=r.apply(this,arguments);if(i!==void 0)return i;let o=new H;return Pr(this,o),o},"methodWrapper");Ho(n,t,!1),e[t]=Li(n,t)}ee(ep,"addMethod");function tp(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),i=ee(function(){},"_super");n&&typeof n.get=="function"&&(i=n.get),Object.defineProperty(e,t,{get:ee(function o(){!Jo()&&!$e(this,"lockSsfi")&&$e(this,"ssfi",o);let a=$e(this,"lockSsfi");$e(this,"lockSsfi",!0);let s=r(i).call(this);if($e(this,"lockSsfi",a),s!==void 0)return s;let p=new H;return Pr(this,p),p},"overwritingPropertyGetter"),configurable:!0})}ee(tp,"overwriteProperty");function rp(e,t,r){let n=e[t],i=ee(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(i=n);let o=ee(function(){$e(this,"lockSsfi")||$e(this,"ssfi",o);let a=$e(this,"lockSsfi");$e(this,"lockSsfi",!0);let s=r(i).apply(this,arguments);if($e(this,"lockSsfi",a),s!==void 0)return s;let p=new H;return Pr(this,p),p},"overwritingMethodWrapper");Ho(o,t,!1),e[t]=Li(o,t)}ee(rp,"overwriteMethod");var NI=typeof Object.setPrototypeOf=="function",kf=ee(function(){},"testFn"),BI=Object.getOwnPropertyNames(kf).filter(function(e){let t=Object.getOwnPropertyDescriptor(kf,e);return typeof t!="object"?!0:!t.configurable}),kI=Function.prototype.call,MI=Function.prototype.apply;function np(e,t,r,n){typeof n!="function"&&(n=ee(function(){},"chainingBehavior"));let i={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=i,Object.defineProperty(e,t,{get:ee(function(){i.chainingBehavior.call(this);let o=ee(function(){$e(this,"lockSsfi")||$e(this,"ssfi",o);let a=i.method.apply(this,arguments);if(a!==void 0)return a;let s=new H;return Pr(this,s),s},"chainableMethodWrapper");if(Ho(o,t,!0),NI){let a=Object.create(this);a.call=kI,a.apply=MI,Object.setPrototypeOf(o,a)}else Object.getOwnPropertyNames(e).forEach(function(a){if(BI.indexOf(a)!==-1)return;let s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,s)});return Pr(this,o),Li(o)},"chainableMethodGetter"),configurable:!0})}ee(np,"addChainableMethod");function ip(e,t,r,n){let i=e.__methods[t],o=i.chainingBehavior;i.chainingBehavior=ee(function(){let s=n(o).call(this);if(s!==void 0)return s;let p=new H;return Pr(this,p),p},"overwritingChainableMethodGetter");let a=i.method;i.method=ee(function(){let s=r(a).apply(this,arguments);if(s!==void 0)return s;let p=new H;return Pr(this,p),p},"overwritingChainableMethodWrapper")}ee(ip,"overwriteChainableMethod");function Ha(e,t){return Ze(e)<Ze(t)?-1:1}ee(Ha,"compareByInspect");function op(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}ee(op,"getOwnEnumerablePropertySymbols");function ap(e){return Object.keys(e).concat(op(e))}ee(ap,"getOwnEnumerableProperties");var Ga=Number.isNaN;function m0(e){let t=ct(e);return["Array","Object","Function"].indexOf(t)!==-1}ee(m0,"isObjectType");function sp(e,t){let r=$e(e,"operator"),n=$e(e,"negate"),i=t[3],o=n?t[2]:t[1];if(r)return r;if(typeof o=="function"&&(o=o()),o=o||"",!o||/\shave\s/.test(o))return;let a=m0(i);return/\snot\s/.test(o)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}ee(sp,"getOperator");function Ss(e){return e.name}ee(Ss,"getName");function za(e){return Object.prototype.toString.call(e)==="[object RegExp]"}ee(za,"isRegExp");function Ut(e){return["Number","BigInt"].includes(ct(e))}ee(Ut,"isNumeric");var{flag:Z}=kr;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){H.addProperty(e)});H.addProperty("not",function(){Z(this,"negate",!0)});H.addProperty("deep",function(){Z(this,"deep",!0)});H.addProperty("nested",function(){Z(this,"nested",!0)});H.addProperty("own",function(){Z(this,"own",!0)});H.addProperty("ordered",function(){Z(this,"ordered",!0)});H.addProperty("any",function(){Z(this,"any",!0),Z(this,"all",!1)});H.addProperty("all",function(){Z(this,"all",!0),Z(this,"any",!1)});var Mf={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function up(e,t){t&&Z(this,"message",t),e=e.toLowerCase();let r=Z(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",i=ct(r).toLowerCase();Mf.function.includes(e)?this.assert(Mf[e].includes(i),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===i,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}ee(up,"an");H.addChainableMethod("an",up);H.addChainableMethod("a",up);function y0(e,t){return Ga(e)&&Ga(t)||e===t}ee(y0,"SameValueZero");function Go(){Z(this,"contains",!0)}ee(Go,"includeChainingBehavior");function zo(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=ct(r).toLowerCase(),i=Z(this,"message"),o=Z(this,"negate"),a=Z(this,"ssfi"),s=Z(this,"deep"),p=s?"deep ":"",l=s?Z(this,"eql"):y0;i=i?i+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new tt(i+"unable to use .deep.include with WeakSet",void 0,a);d=r.has(e);break;case"map":r.forEach(function(f){d=d||l(f,e)});break;case"set":s?r.forEach(function(f){d=d||l(f,e)}):d=r.has(e);break;case"array":s?d=r.some(function(f){return l(f,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new tt(i+"the given combination of arguments ("+n+" and "+ct(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+ct(e).toLowerCase(),void 0,a);let f=Object.keys(e),h=null,m=0;if(f.forEach(function(b){let E=new H(r);if(Pr(this,E,!0),Z(E,"lockSsfi",!0),!o||f.length===1){E.property(b,e[b]);return}try{E.property(b,e[b])}catch(_){if(!lr.compatibleConstructor(_,tt))throw _;h===null&&(h=_),m++}},this),o&&f.length>1&&m===f.length)throw h;return}}this.assert(d,"expected #{this} to "+p+"include "+Ze(e),"expected #{this} to not "+p+"include "+Ze(e))}ee(zo,"include");H.addChainableMethod("include",zo,Go);H.addChainableMethod("contain",zo,Go);H.addChainableMethod("contains",zo,Go);H.addChainableMethod("includes",zo,Go);H.addProperty("ok",function(){this.assert(Z(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});H.addProperty("true",function(){this.assert(Z(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!Z(this,"negate"))});H.addProperty("numeric",function(){let e=Z(this,"object");this.assert(["Number","BigInt"].includes(ct(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!Z(this,"negate"))});H.addProperty("callable",function(){let e=Z(this,"object"),t=Z(this,"ssfi"),r=Z(this,"message"),n=r?`${r}: `:"",i=Z(this,"negate"),o=i?`${n}expected ${Ze(e)} not to be a callable function`:`${n}expected ${Ze(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ct(e));if(a&&i||!a&&!i)throw new tt(o,void 0,t)});H.addProperty("false",function(){this.assert(Z(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!Z(this,"negate"))});H.addProperty("null",function(){this.assert(Z(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});H.addProperty("undefined",function(){this.assert(Z(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});H.addProperty("NaN",function(){this.assert(Ga(Z(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function lp(){let e=Z(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}ee(lp,"assertExist");H.addProperty("exist",lp);H.addProperty("exists",lp);H.addProperty("empty",function(){let e=Z(this,"object"),t=Z(this,"ssfi"),r=Z(this,"message"),n;switch(r=r?r+": ":"",ct(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new tt(r+".empty was passed a weak collection",void 0,t);case"function":{let i=r+".empty was passed a function "+Ss(e);throw new tt(i.trim(),void 0,t)}default:if(e!==Object(e))throw new tt(r+".empty was passed non-string primitive "+Ze(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function cp(){let e=Z(this,"object"),t=ct(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}ee(cp,"checkArguments");H.addProperty("arguments",cp);H.addProperty("Arguments",cp);function xs(e,t){t&&Z(this,"message",t);let r=Z(this,"object");if(Z(this,"deep")){let n=Z(this,"lockSsfi");Z(this,"lockSsfi",!0),this.eql(e),Z(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}ee(xs,"assertEqual");H.addMethod("equal",xs);H.addMethod("equals",xs);H.addMethod("eq",xs);function pp(e,t){t&&Z(this,"message",t);let r=Z(this,"eql");this.assert(r(e,Z(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}ee(pp,"assertEql");H.addMethod("eql",pp);H.addMethod("eqls",pp);function Ds(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"doLength"),i=Z(this,"message"),o=i?i+": ":"",a=Z(this,"ssfi"),s=ct(r).toLowerCase(),p=ct(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new H(r,i,a,!0).to.have.property("length"),!n&&s==="date"&&p!=="date")throw new tt(o+"the argument to above must be a date",void 0,a);if(!Ut(e)&&(n||Ut(r)))throw new tt(o+"the argument to above must be a number",void 0,a);if(!n&&s!=="date"&&!Ut(r)){let l=s==="string"?"'"+r+"'":r;throw new tt(o+"expected "+l+" to be a number or a date",void 0,a)}if(n){let l="length",d;s==="map"||s==="set"?(l="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}ee(Ds,"assertAbove");H.addMethod("above",Ds);H.addMethod("gt",Ds);H.addMethod("greaterThan",Ds);function Rs(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"doLength"),i=Z(this,"message"),o=i?i+": ":"",a=Z(this,"ssfi"),s=ct(r).toLowerCase(),p=ct(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new H(r,i,a,!0).to.have.property("length"),!n&&s==="date"&&p!=="date")l=o+"the argument to least must be a date";else if(!Ut(e)&&(n||Ut(r)))l=o+"the argument to least must be a number";else if(!n&&s!=="date"&&!Ut(r)){let f=s==="string"?"'"+r+"'":r;l=o+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new tt(l,void 0,a);if(n){let f="length",h;s==="map"||s==="set"?(f="size",h=r.size):h=r.length,this.assert(h>=e,"expected #{this} to have a "+f+" at least #{exp} but got #{act}","expected #{this} to have a "+f+" below #{exp}",e,h)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}ee(Rs,"assertLeast");H.addMethod("least",Rs);H.addMethod("gte",Rs);H.addMethod("greaterThanOrEqual",Rs);function Ps(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"doLength"),i=Z(this,"message"),o=i?i+": ":"",a=Z(this,"ssfi"),s=ct(r).toLowerCase(),p=ct(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new H(r,i,a,!0).to.have.property("length"),!n&&s==="date"&&p!=="date")l=o+"the argument to below must be a date";else if(!Ut(e)&&(n||Ut(r)))l=o+"the argument to below must be a number";else if(!n&&s!=="date"&&!Ut(r)){let f=s==="string"?"'"+r+"'":r;l=o+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new tt(l,void 0,a);if(n){let f="length",h;s==="map"||s==="set"?(f="size",h=r.size):h=r.length,this.assert(h<e,"expected #{this} to have a "+f+" below #{exp} but got #{act}","expected #{this} to not have a "+f+" below #{exp}",e,h)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}ee(Ps,"assertBelow");H.addMethod("below",Ps);H.addMethod("lt",Ps);H.addMethod("lessThan",Ps);function Os(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"doLength"),i=Z(this,"message"),o=i?i+": ":"",a=Z(this,"ssfi"),s=ct(r).toLowerCase(),p=ct(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new H(r,i,a,!0).to.have.property("length"),!n&&s==="date"&&p!=="date")l=o+"the argument to most must be a date";else if(!Ut(e)&&(n||Ut(r)))l=o+"the argument to most must be a number";else if(!n&&s!=="date"&&!Ut(r)){let f=s==="string"?"'"+r+"'":r;l=o+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new tt(l,void 0,a);if(n){let f="length",h;s==="map"||s==="set"?(f="size",h=r.size):h=r.length,this.assert(h<=e,"expected #{this} to have a "+f+" at most #{exp} but got #{act}","expected #{this} to have a "+f+" above #{exp}",e,h)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}ee(Os,"assertMost");H.addMethod("most",Os);H.addMethod("lte",Os);H.addMethod("lessThanOrEqual",Os);H.addMethod("within",function(e,t,r){r&&Z(this,"message",r);let n=Z(this,"object"),i=Z(this,"doLength"),o=Z(this,"message"),a=o?o+": ":"",s=Z(this,"ssfi"),p=ct(n).toLowerCase(),l=ct(e).toLowerCase(),d=ct(t).toLowerCase(),f,h=!0,m=l==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(i&&p!=="map"&&p!=="set"&&new H(n,o,s,!0).to.have.property("length"),!i&&p==="date"&&(l!=="date"||d!=="date"))f=a+"the arguments to within must be dates";else if((!Ut(e)||!Ut(t))&&(i||Ut(n)))f=a+"the arguments to within must be numbers";else if(!i&&p!=="date"&&!Ut(n)){let b=p==="string"?"'"+n+"'":n;f=a+"expected "+b+" to be a number or a date"}else h=!1;if(h)throw new tt(f,void 0,s);if(i){let b="length",E;p==="map"||p==="set"?(b="size",E=n.size):E=n.length,this.assert(E>=e&&E<=t,"expected #{this} to have a "+b+" within "+m,"expected #{this} to not have a "+b+" within "+m)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+m,"expected #{this} to not be within "+m)});function dp(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"ssfi"),i=Z(this,"message"),o;try{o=r instanceof e}catch(s){throw s instanceof TypeError?(i=i?i+": ":"",new tt(i+"The instanceof assertion needs a constructor but "+ct(e)+" was given.",void 0,n)):s}let a=Ss(e);a==null&&(a="an unnamed constructor"),this.assert(o,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}ee(dp,"assertInstanceOf");H.addMethod("instanceof",dp);H.addMethod("instanceOf",dp);function fp(e,t,r){r&&Z(this,"message",r);let n=Z(this,"nested"),i=Z(this,"own"),o=Z(this,"message"),a=Z(this,"object"),s=Z(this,"ssfi"),p=typeof e;if(o=o?o+": ":"",n){if(p!=="string")throw new tt(o+"the argument to property must be a string when using nested syntax",void 0,s)}else if(p!=="string"&&p!=="number"&&p!=="symbol")throw new tt(o+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&i)throw new tt(o+'The "nested" and "own" flags cannot be combined.',void 0,s);if(a==null)throw new tt(o+"Target cannot be null or undefined.",void 0,s);let l=Z(this,"deep"),d=Z(this,"negate"),f=n?Qc(a,e):null,h=n?f.value:a[e],m=l?Z(this,"eql"):(_,A)=>_===A,b="";l&&(b+="deep "),i&&(b+="own "),n&&(b+="nested "),b+="property ";let E;i?E=Object.prototype.hasOwnProperty.call(a,e):n?E=f.exists:E=Ts(a,e),(!d||arguments.length===1)&&this.assert(E,"expected #{this} to have "+b+Ze(e),"expected #{this} to not have "+b+Ze(e)),arguments.length>1&&this.assert(E&&m(t,h),"expected #{this} to have "+b+Ze(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+b+Ze(e)+" of #{act}",t,h),Z(this,"object",h)}ee(fp,"assertProperty");H.addMethod("property",fp);function hp(e,t,r){Z(this,"own",!0),fp.apply(this,arguments)}ee(hp,"assertOwnProperty");H.addMethod("ownProperty",hp);H.addMethod("haveOwnProperty",hp);function mp(e,t,r){typeof t=="string"&&(r=t,t=null),r&&Z(this,"message",r);let n=Z(this,"object"),i=Object.getOwnPropertyDescriptor(Object(n),e),o=Z(this,"eql");i&&t?this.assert(o(t,i),"expected the own property descriptor for "+Ze(e)+" on #{this} to match "+Ze(t)+", got "+Ze(i),"expected the own property descriptor for "+Ze(e)+" on #{this} to not match "+Ze(t),t,i,!0):this.assert(i,"expected #{this} to have an own property descriptor for "+Ze(e),"expected #{this} to not have an own property descriptor for "+Ze(e)),Z(this,"object",i)}ee(mp,"assertOwnPropertyDescriptor");H.addMethod("ownPropertyDescriptor",mp);H.addMethod("haveOwnPropertyDescriptor",mp);function yp(){Z(this,"doLength",!0)}ee(yp,"assertLengthChain");function gp(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=ct(r).toLowerCase(),i=Z(this,"message"),o=Z(this,"ssfi"),a="length",s;switch(n){case"map":case"set":a="size",s=r.size;break;default:new H(r,i,o,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,s)}ee(gp,"assertLength");H.addChainableMethod("length",gp,yp);H.addChainableMethod("lengthOf",gp,yp);function bp(e,t){t&&Z(this,"message",t);let r=Z(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}ee(bp,"assertMatch");H.addMethod("match",bp);H.addMethod("matches",bp);H.addMethod("string",function(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"message"),i=Z(this,"ssfi");new H(r,n,i,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Ze(e),"expected #{this} to not contain "+Ze(e))});function Ep(e){let t=Z(this,"object"),r=ct(t),n=ct(e),i=Z(this,"ssfi"),o=Z(this,"deep"),a,s="",p,l=!0,d=Z(this,"message");d=d?d+": ":"";let f=d+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")s=o?"deeply ":"",p=[],t.forEach(function(A,T){p.push(T)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(p=ap(t),n){case"Array":if(arguments.length>1)throw new tt(f,void 0,i);break;case"Object":if(arguments.length>1)throw new tt(f,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(A){return typeof A=="symbol"?A:String(A)})}if(!e.length)throw new tt(d+"keys required",void 0,i);let h=e.length,m=Z(this,"any"),b=Z(this,"all"),E=e,_=o?Z(this,"eql"):(A,T)=>A===T;if(!m&&!b&&(b=!0),m&&(l=E.some(function(A){return p.some(function(T){return _(A,T)})})),b&&(l=E.every(function(A){return p.some(function(T){return _(A,T)})}),Z(this,"contains")||(l=l&&e.length==p.length)),h>1){e=e.map(function(T){return Ze(T)});let A=e.pop();b&&(a=e.join(", ")+", and "+A),m&&(a=e.join(", ")+", or "+A)}else a=Ze(e[0]);a=(h>1?"keys ":"key ")+a,a=(Z(this,"contains")?"contain ":"have ")+a,this.assert(l,"expected #{this} to "+s+a,"expected #{this} to not "+s+a,E.slice(0).sort(Ha),p.sort(Ha),!0)}ee(Ep,"assertKeys");H.addMethod("keys",Ep);H.addMethod("key",Ep);function Fs(e,t,r){r&&Z(this,"message",r);let n=Z(this,"object"),i=Z(this,"ssfi"),o=Z(this,"message"),a=Z(this,"negate")||!1;new H(n,o,i,!0).is.a("function"),(za(e)||typeof e=="string")&&(t=e,e=null);let s,p=!1;try{n()}catch(m){p=!0,s=m}let l=e===void 0&&t===void 0,d=!!(e&&t),f=!1,h=!1;if(l||!l&&!a){let m="an error";e instanceof Error?m="#{exp}":e&&(m=lr.getConstructorName(e));let b=s;if(s instanceof Error)b=s.toString();else if(typeof s=="string")b=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{b=lr.getConstructorName(s)}catch{}this.assert(p,"expected #{this} to throw "+m,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),b)}if(e&&s&&(e instanceof Error&&lr.compatibleInstance(s,e)===a&&(d&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!a?" but #{act} was thrown":""),e.toString(),s.toString())),lr.compatibleConstructor(s,e)===a&&(d&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&lr.getConstructorName(e),s instanceof Error?s.toString():s&&lr.getConstructorName(s)))),s&&t!==void 0&&t!==null){let m="including";za(t)&&(m="matching"),lr.compatibleMessage(s,t)===a&&(d&&a?h=!0:this.assert(a,"expected #{this} to throw error "+m+" #{exp} but got #{act}","expected #{this} to throw error not "+m+" #{exp}",t,lr.getMessage(s)))}f&&h&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&lr.getConstructorName(e),s instanceof Error?s.toString():s&&lr.getConstructorName(s)),Z(this,"object",s)}ee(Fs,"assertThrows");H.addMethod("throw",Fs);H.addMethod("throws",Fs);H.addMethod("Throw",Fs);function vp(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"itself"),i=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof i=="function","expected #{this} to respond to "+Ze(e),"expected #{this} to not respond to "+Ze(e))}ee(vp,"respondTo");H.addMethod("respondTo",vp);H.addMethod("respondsTo",vp);H.addProperty("itself",function(){Z(this,"itself",!0)});function Ap(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+Un(e),"expected #{this} to not satisfy"+Un(e),!Z(this,"negate"),n)}ee(Ap,"satisfy");H.addMethod("satisfy",Ap);H.addMethod("satisfies",Ap);function _p(e,t,r){r&&Z(this,"message",r);let n=Z(this,"object"),i=Z(this,"message"),o=Z(this,"ssfi");new H(n,i,o,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new tt(i?`${i}: ${a}`:a,void 0,o);if(new H(t,i,o,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new tt(i?`${i}: ${a}`:a,void 0,o);new H(e,i,o,!0).is.numeric;let s=ee(l=>l<0n?-l:l,"abs"),p=ee(l=>parseFloat(parseFloat(l).toPrecision(12)),"strip");this.assert(p(s(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}ee(_p,"closeTo");H.addMethod("closeTo",_p);H.addMethod("approximately",_p);function g0(e,t,r,n,i){let o=Array.from(t),a=Array.from(e);if(!n){if(a.length!==o.length)return!1;o=o.slice()}return a.every(function(s,p){if(i)return r?r(s,o[p]):s===o[p];if(!r){let l=o.indexOf(s);return l===-1?!1:(n||o.splice(l,1),!0)}return o.some(function(l,d){return r(s,l)?(n||o.splice(d,1),!0):!1})})}ee(g0,"isSubsetOf");H.addMethod("members",function(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"message"),i=Z(this,"ssfi");new H(r,n,i,!0).to.be.iterable,new H(e,n,i,!0).to.be.iterable;let o=Z(this,"contains"),a=Z(this,"ordered"),s,p,l;o?(s=a?"an ordered superset":"a superset",p="expected #{this} to be "+s+" of #{exp}",l="expected #{this} to not be "+s+" of #{exp}"):(s=a?"ordered members":"members",p="expected #{this} to have the same "+s+" as #{exp}",l="expected #{this} to not have the same "+s+" as #{exp}");let d=Z(this,"deep")?Z(this,"eql"):void 0;this.assert(g0(e,r,d,o,a),p,l,e,r,!0)});H.addProperty("iterable",function(e){e&&Z(this,"message",e);let t=Z(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function b0(e,t){t&&Z(this,"message",t);let r=Z(this,"object"),n=Z(this,"message"),i=Z(this,"ssfi"),o=Z(this,"contains"),a=Z(this,"deep"),s=Z(this,"eql");new H(e,n,i,!0).to.be.an("array"),o?this.assert(e.some(function(p){return r.indexOf(p)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):a?this.assert(e.some(function(p){return s(r,p)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}ee(b0,"oneOf");H.addMethod("oneOf",b0);function wp(e,t,r){r&&Z(this,"message",r);let n=Z(this,"object"),i=Z(this,"message"),o=Z(this,"ssfi");new H(n,i,o,!0).is.a("function");let a;t?(new H(e,i,o,!0).to.have.property(t),a=e[t]):(new H(e,i,o,!0).is.a("function"),a=e()),n();let s=t==null?e():e[t],p=t==null?a:"."+t;Z(this,"deltaMsgObj",p),Z(this,"initialDeltaValue",a),Z(this,"finalDeltaValue",s),Z(this,"deltaBehavior","change"),Z(this,"realDelta",s!==a),this.assert(a!==s,"expected "+p+" to change","expected "+p+" to not change")}ee(wp,"assertChanges");H.addMethod("change",wp);H.addMethod("changes",wp);function Cp(e,t,r){r&&Z(this,"message",r);let n=Z(this,"object"),i=Z(this,"message"),o=Z(this,"ssfi");new H(n,i,o,!0).is.a("function");let a;t?(new H(e,i,o,!0).to.have.property(t),a=e[t]):(new H(e,i,o,!0).is.a("function"),a=e()),new H(a,i,o,!0).is.a("number"),n();let s=t==null?e():e[t],p=t==null?a:"."+t;Z(this,"deltaMsgObj",p),Z(this,"initialDeltaValue",a),Z(this,"finalDeltaValue",s),Z(this,"deltaBehavior","increase"),Z(this,"realDelta",s-a),this.assert(s-a>0,"expected "+p+" to increase","expected "+p+" to not increase")}ee(Cp,"assertIncreases");H.addMethod("increase",Cp);H.addMethod("increases",Cp);function Tp(e,t,r){r&&Z(this,"message",r);let n=Z(this,"object"),i=Z(this,"message"),o=Z(this,"ssfi");new H(n,i,o,!0).is.a("function");let a;t?(new H(e,i,o,!0).to.have.property(t),a=e[t]):(new H(e,i,o,!0).is.a("function"),a=e()),new H(a,i,o,!0).is.a("number"),n();let s=t==null?e():e[t],p=t==null?a:"."+t;Z(this,"deltaMsgObj",p),Z(this,"initialDeltaValue",a),Z(this,"finalDeltaValue",s),Z(this,"deltaBehavior","decrease"),Z(this,"realDelta",a-s),this.assert(s-a<0,"expected "+p+" to decrease","expected "+p+" to not decrease")}ee(Tp,"assertDecreases");H.addMethod("decrease",Tp);H.addMethod("decreases",Tp);function E0(e,t){t&&Z(this,"message",t);let r=Z(this,"deltaMsgObj"),n=Z(this,"initialDeltaValue"),i=Z(this,"finalDeltaValue"),o=Z(this,"deltaBehavior"),a=Z(this,"realDelta"),s;o==="change"?s=Math.abs(i-n)===Math.abs(e):s=a===Math.abs(e),this.assert(s,"expected "+r+" to "+o+" by "+e,"expected "+r+" to not "+o+" by "+e)}ee(E0,"assertDelta");H.addMethod("by",E0);H.addProperty("extensible",function(){let e=Z(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});H.addProperty("sealed",function(){let e=Z(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});H.addProperty("frozen",function(){let e=Z(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});H.addProperty("finite",function(e){let t=Z(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function Wa(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return Wa(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],i=t[r];return typeof n=="object"&&n!==null&&i!==null?Wa(n,i):typeof n=="function"?n(i):i===n}):!1}ee(Wa,"compareSubset");H.addMethod("containSubset",function(e){let t=$e(this,"object"),r=er.showDiff;this.assert(Wa(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Jn(e,t){return new H(e,t)}ee(Jn,"expect");Jn.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new tt(r,{actual:e,expected:t,operator:n},Jn.fail)};var v0={};Hc(v0,{Should:()=>qI,should:()=>jI});function Sp(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new H(this.valueOf(),null,e):new H(this,null,e)}ee(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}ee(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,i,o,a){throw arguments.length<2&&(o=n,n=void 0),o=o||"should.fail()",new tt(o,{actual:n,expected:i,operator:a},r.fail)},r.equal=function(n,i,o){new H(n,o).to.equal(i)},r.Throw=function(n,i,o,a){new H(n,a).to.Throw(i,o)},r.exist=function(n,i){new H(n,i).to.exist},r.not={},r.not.equal=function(n,i,o){new H(n,o).to.not.equal(i)},r.not.Throw=function(n,i,o,a){new H(n,a).to.not.Throw(i,o)},r.not.exist=function(n,i){new H(n,i).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}ee(Sp,"loadShould");var jI=Sp,qI=Sp;function V(e,t){new H(null,null,V,!0).assert(e,t,"[ negation message unavailable ]")}ee(V,"assert");V.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new tt(r,{actual:e,expected:t,operator:n},V.fail)};V.isOk=function(e,t){new H(e,t,V.isOk,!0).is.ok};V.isNotOk=function(e,t){new H(e,t,V.isNotOk,!0).is.not.ok};V.equal=function(e,t,r){let n=new H(e,r,V.equal,!0);n.assert(t==$e(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};V.notEqual=function(e,t,r){let n=new H(e,r,V.notEqual,!0);n.assert(t!=$e(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};V.strictEqual=function(e,t,r){new H(e,r,V.strictEqual,!0).to.equal(t)};V.notStrictEqual=function(e,t,r){new H(e,r,V.notStrictEqual,!0).to.not.equal(t)};V.deepEqual=V.deepStrictEqual=function(e,t,r){new H(e,r,V.deepEqual,!0).to.eql(t)};V.notDeepEqual=function(e,t,r){new H(e,r,V.notDeepEqual,!0).to.not.eql(t)};V.isAbove=function(e,t,r){new H(e,r,V.isAbove,!0).to.be.above(t)};V.isAtLeast=function(e,t,r){new H(e,r,V.isAtLeast,!0).to.be.least(t)};V.isBelow=function(e,t,r){new H(e,r,V.isBelow,!0).to.be.below(t)};V.isAtMost=function(e,t,r){new H(e,r,V.isAtMost,!0).to.be.most(t)};V.isTrue=function(e,t){new H(e,t,V.isTrue,!0).is.true};V.isNotTrue=function(e,t){new H(e,t,V.isNotTrue,!0).to.not.equal(!0)};V.isFalse=function(e,t){new H(e,t,V.isFalse,!0).is.false};V.isNotFalse=function(e,t){new H(e,t,V.isNotFalse,!0).to.not.equal(!1)};V.isNull=function(e,t){new H(e,t,V.isNull,!0).to.equal(null)};V.isNotNull=function(e,t){new H(e,t,V.isNotNull,!0).to.not.equal(null)};V.isNaN=function(e,t){new H(e,t,V.isNaN,!0).to.be.NaN};V.isNotNaN=function(e,t){new H(e,t,V.isNotNaN,!0).not.to.be.NaN};V.exists=function(e,t){new H(e,t,V.exists,!0).to.exist};V.notExists=function(e,t){new H(e,t,V.notExists,!0).to.not.exist};V.isUndefined=function(e,t){new H(e,t,V.isUndefined,!0).to.equal(void 0)};V.isDefined=function(e,t){new H(e,t,V.isDefined,!0).to.not.equal(void 0)};V.isCallable=function(e,t){new H(e,t,V.isCallable,!0).is.callable};V.isNotCallable=function(e,t){new H(e,t,V.isNotCallable,!0).is.not.callable};V.isObject=function(e,t){new H(e,t,V.isObject,!0).to.be.a("object")};V.isNotObject=function(e,t){new H(e,t,V.isNotObject,!0).to.not.be.a("object")};V.isArray=function(e,t){new H(e,t,V.isArray,!0).to.be.an("array")};V.isNotArray=function(e,t){new H(e,t,V.isNotArray,!0).to.not.be.an("array")};V.isString=function(e,t){new H(e,t,V.isString,!0).to.be.a("string")};V.isNotString=function(e,t){new H(e,t,V.isNotString,!0).to.not.be.a("string")};V.isNumber=function(e,t){new H(e,t,V.isNumber,!0).to.be.a("number")};V.isNotNumber=function(e,t){new H(e,t,V.isNotNumber,!0).to.not.be.a("number")};V.isNumeric=function(e,t){new H(e,t,V.isNumeric,!0).is.numeric};V.isNotNumeric=function(e,t){new H(e,t,V.isNotNumeric,!0).is.not.numeric};V.isFinite=function(e,t){new H(e,t,V.isFinite,!0).to.be.finite};V.isBoolean=function(e,t){new H(e,t,V.isBoolean,!0).to.be.a("boolean")};V.isNotBoolean=function(e,t){new H(e,t,V.isNotBoolean,!0).to.not.be.a("boolean")};V.typeOf=function(e,t,r){new H(e,r,V.typeOf,!0).to.be.a(t)};V.notTypeOf=function(e,t,r){new H(e,r,V.notTypeOf,!0).to.not.be.a(t)};V.instanceOf=function(e,t,r){new H(e,r,V.instanceOf,!0).to.be.instanceOf(t)};V.notInstanceOf=function(e,t,r){new H(e,r,V.notInstanceOf,!0).to.not.be.instanceOf(t)};V.include=function(e,t,r){new H(e,r,V.include,!0).include(t)};V.notInclude=function(e,t,r){new H(e,r,V.notInclude,!0).not.include(t)};V.deepInclude=function(e,t,r){new H(e,r,V.deepInclude,!0).deep.include(t)};V.notDeepInclude=function(e,t,r){new H(e,r,V.notDeepInclude,!0).not.deep.include(t)};V.nestedInclude=function(e,t,r){new H(e,r,V.nestedInclude,!0).nested.include(t)};V.notNestedInclude=function(e,t,r){new H(e,r,V.notNestedInclude,!0).not.nested.include(t)};V.deepNestedInclude=function(e,t,r){new H(e,r,V.deepNestedInclude,!0).deep.nested.include(t)};V.notDeepNestedInclude=function(e,t,r){new H(e,r,V.notDeepNestedInclude,!0).not.deep.nested.include(t)};V.ownInclude=function(e,t,r){new H(e,r,V.ownInclude,!0).own.include(t)};V.notOwnInclude=function(e,t,r){new H(e,r,V.notOwnInclude,!0).not.own.include(t)};V.deepOwnInclude=function(e,t,r){new H(e,r,V.deepOwnInclude,!0).deep.own.include(t)};V.notDeepOwnInclude=function(e,t,r){new H(e,r,V.notDeepOwnInclude,!0).not.deep.own.include(t)};V.match=function(e,t,r){new H(e,r,V.match,!0).to.match(t)};V.notMatch=function(e,t,r){new H(e,r,V.notMatch,!0).to.not.match(t)};V.property=function(e,t,r){new H(e,r,V.property,!0).to.have.property(t)};V.notProperty=function(e,t,r){new H(e,r,V.notProperty,!0).to.not.have.property(t)};V.propertyVal=function(e,t,r,n){new H(e,n,V.propertyVal,!0).to.have.property(t,r)};V.notPropertyVal=function(e,t,r,n){new H(e,n,V.notPropertyVal,!0).to.not.have.property(t,r)};V.deepPropertyVal=function(e,t,r,n){new H(e,n,V.deepPropertyVal,!0).to.have.deep.property(t,r)};V.notDeepPropertyVal=function(e,t,r,n){new H(e,n,V.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};V.ownProperty=function(e,t,r){new H(e,r,V.ownProperty,!0).to.have.own.property(t)};V.notOwnProperty=function(e,t,r){new H(e,r,V.notOwnProperty,!0).to.not.have.own.property(t)};V.ownPropertyVal=function(e,t,r,n){new H(e,n,V.ownPropertyVal,!0).to.have.own.property(t,r)};V.notOwnPropertyVal=function(e,t,r,n){new H(e,n,V.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};V.deepOwnPropertyVal=function(e,t,r,n){new H(e,n,V.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};V.notDeepOwnPropertyVal=function(e,t,r,n){new H(e,n,V.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};V.nestedProperty=function(e,t,r){new H(e,r,V.nestedProperty,!0).to.have.nested.property(t)};V.notNestedProperty=function(e,t,r){new H(e,r,V.notNestedProperty,!0).to.not.have.nested.property(t)};V.nestedPropertyVal=function(e,t,r,n){new H(e,n,V.nestedPropertyVal,!0).to.have.nested.property(t,r)};V.notNestedPropertyVal=function(e,t,r,n){new H(e,n,V.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};V.deepNestedPropertyVal=function(e,t,r,n){new H(e,n,V.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};V.notDeepNestedPropertyVal=function(e,t,r,n){new H(e,n,V.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};V.lengthOf=function(e,t,r){new H(e,r,V.lengthOf,!0).to.have.lengthOf(t)};V.hasAnyKeys=function(e,t,r){new H(e,r,V.hasAnyKeys,!0).to.have.any.keys(t)};V.hasAllKeys=function(e,t,r){new H(e,r,V.hasAllKeys,!0).to.have.all.keys(t)};V.containsAllKeys=function(e,t,r){new H(e,r,V.containsAllKeys,!0).to.contain.all.keys(t)};V.doesNotHaveAnyKeys=function(e,t,r){new H(e,r,V.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};V.doesNotHaveAllKeys=function(e,t,r){new H(e,r,V.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};V.hasAnyDeepKeys=function(e,t,r){new H(e,r,V.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};V.hasAllDeepKeys=function(e,t,r){new H(e,r,V.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};V.containsAllDeepKeys=function(e,t,r){new H(e,r,V.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};V.doesNotHaveAnyDeepKeys=function(e,t,r){new H(e,r,V.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};V.doesNotHaveAllDeepKeys=function(e,t,r){new H(e,r,V.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};V.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let i=new H(e,n,V.throws,!0).to.throw(t,r);return $e(i,"object")};V.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new H(e,n,V.doesNotThrow,!0).to.not.throw(t,r)};V.operator=function(e,t,r,n){let i;switch(t){case"==":i=e==r;break;case"===":i=e===r;break;case">":i=e>r;break;case">=":i=e>=r;break;case"<":i=e<r;break;case"<=":i=e<=r;break;case"!=":i=e!=r;break;case"!==":i=e!==r;break;default:throw n=n&&n+": ",new tt(n+'Invalid operator "'+t+'"',void 0,V.operator)}let o=new H(i,n,V.operator,!0);o.assert($e(o,"object")===!0,"expected "+Ze(e)+" to be "+t+" "+Ze(r),"expected "+Ze(e)+" to not be "+t+" "+Ze(r))};V.closeTo=function(e,t,r,n){new H(e,n,V.closeTo,!0).to.be.closeTo(t,r)};V.approximately=function(e,t,r,n){new H(e,n,V.approximately,!0).to.be.approximately(t,r)};V.sameMembers=function(e,t,r){new H(e,r,V.sameMembers,!0).to.have.same.members(t)};V.notSameMembers=function(e,t,r){new H(e,r,V.notSameMembers,!0).to.not.have.same.members(t)};V.sameDeepMembers=function(e,t,r){new H(e,r,V.sameDeepMembers,!0).to.have.same.deep.members(t)};V.notSameDeepMembers=function(e,t,r){new H(e,r,V.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};V.sameOrderedMembers=function(e,t,r){new H(e,r,V.sameOrderedMembers,!0).to.have.same.ordered.members(t)};V.notSameOrderedMembers=function(e,t,r){new H(e,r,V.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};V.sameDeepOrderedMembers=function(e,t,r){new H(e,r,V.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};V.notSameDeepOrderedMembers=function(e,t,r){new H(e,r,V.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};V.includeMembers=function(e,t,r){new H(e,r,V.includeMembers,!0).to.include.members(t)};V.notIncludeMembers=function(e,t,r){new H(e,r,V.notIncludeMembers,!0).to.not.include.members(t)};V.includeDeepMembers=function(e,t,r){new H(e,r,V.includeDeepMembers,!0).to.include.deep.members(t)};V.notIncludeDeepMembers=function(e,t,r){new H(e,r,V.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};V.includeOrderedMembers=function(e,t,r){new H(e,r,V.includeOrderedMembers,!0).to.include.ordered.members(t)};V.notIncludeOrderedMembers=function(e,t,r){new H(e,r,V.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};V.includeDeepOrderedMembers=function(e,t,r){new H(e,r,V.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};V.notIncludeDeepOrderedMembers=function(e,t,r){new H(e,r,V.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};V.oneOf=function(e,t,r){new H(e,r,V.oneOf,!0).to.be.oneOf(t)};V.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Ze(e)} to be an iterable`:`expected ${Ze(e)} to be an iterable`,new tt(t,void 0,V.isIterable)};V.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,V.changes,!0).to.change(t,r)};V.changesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,V.changesBy,!0).to.change(t,r).by(n)};V.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,V.doesNotChange,!0).to.not.change(t,r)};V.changesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,V.changesButNotBy,!0).to.change(t,r).but.not.by(n)};V.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,V.increases,!0).to.increase(t,r)};V.increasesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,V.increasesBy,!0).to.increase(t,r).by(n)};V.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,V.doesNotIncrease,!0).to.not.increase(t,r)};V.increasesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,V.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};V.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,V.decreases,!0).to.decrease(t,r)};V.decreasesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,V.decreasesBy,!0).to.decrease(t,r).by(n)};V.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,V.doesNotDecrease,!0).to.not.decrease(t,r)};V.doesNotDecreaseBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);return new H(e,i,V.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};V.decreasesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,V.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};V.ifError=function(e){if(e)throw e};V.isExtensible=function(e,t){new H(e,t,V.isExtensible,!0).to.be.extensible};V.isNotExtensible=function(e,t){new H(e,t,V.isNotExtensible,!0).to.not.be.extensible};V.isSealed=function(e,t){new H(e,t,V.isSealed,!0).to.be.sealed};V.isNotSealed=function(e,t){new H(e,t,V.isNotSealed,!0).to.not.be.sealed};V.isFrozen=function(e,t){new H(e,t,V.isFrozen,!0).to.be.frozen};V.isNotFrozen=function(e,t){new H(e,t,V.isNotFrozen,!0).to.not.be.frozen};V.isEmpty=function(e,t){new H(e,t,V.isEmpty,!0).to.be.empty};V.isNotEmpty=function(e,t){new H(e,t,V.isNotEmpty,!0).to.not.be.empty};V.containsSubset=function(e,t,r){new H(e,r).to.containSubset(t)};V.doesNotContainSubset=function(e,t,r){new H(e,r).to.not.containSubset(t)};var LI=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of LI)V[t]=V[e];var jf=[];function mi(e){let t={use:mi,AssertionError:tt,util:kr,config:er,expect:Jn,assert:V,Assertion:H,...v0};return~jf.indexOf(e)||(e(t,kr),jf.push(e)),t}ee(mi,"use");var A0={};ur(A0,{toAppearAfter:()=>kB,toAppearBefore:()=>yl,toBeChecked:()=>rE,toBeDisabled:()=>W0,toBeEmpty:()=>I0,toBeEmptyDOMElement:()=>N0,toBeEnabled:()=>K0,toBeInTheDOM:()=>cl,toBeInTheDocument:()=>F0,toBeInvalid:()=>Q0,toBePartiallyChecked:()=>iE,toBePartiallyPressed:()=>lE,toBePressed:()=>uE,toBeRequired:()=>Y0,toBeValid:()=>Z0,toBeVisible:()=>U0,toContainElement:()=>pl,toContainHTML:()=>B0,toHaveAccessibleDescription:()=>dl,toHaveAccessibleErrorMessage:()=>M0,toHaveAccessibleName:()=>hl,toHaveAttribute:()=>j0,toHaveClass:()=>q0,toHaveDescription:()=>oE,toHaveDisplayValue:()=>tE,toHaveErrorMessage:()=>aE,toHaveFocus:()=>L0,toHaveFormValues:()=>$0,toHaveRole:()=>fl,toHaveSelection:()=>sE,toHaveStyle:()=>ml,toHaveTextContent:()=>k0,toHaveValue:()=>eE});var qf=kt(iy(),1),$I=class extends Error{constructor(r,n,i,o,a){super(`${r}:${i}:${o}: ${n}`);xt(this,"reason");xt(this,"filename");xt(this,"line");xt(this,"column");xt(this,"source");this.reason=n,this.filename=r,this.line=i,this.column=o,this.source=a}},VI=class{constructor(e,t,r){xt(this,"start");xt(this,"end");xt(this,"source");this.start=e,this.end=t,this.source=r}},qt;(function(e){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"})(qt||(qt={}));var Lf=(e,t,r)=>{let n=r,i=1e4;do{let o=t.map(p=>e.indexOf(p,n));o.push(e.indexOf("\\",n));let a=o.filter(p=>p!==-1);if(a.length===0)return-1;let s=Math.min(...a);if(e[s]!=="\\")return s;n=s+2,i--}while(i>0);throw new Error("Too many escaping")},sl=(e,t,r)=>{let n=r,i=1e4;do{let o=t.map(p=>e.indexOf(p,n));o.push(e.indexOf("(",n)),o.push(e.indexOf('"',n)),o.push(e.indexOf("'",n)),o.push(e.indexOf("\\",n));let a=o.filter(p=>p!==-1);if(a.length===0)return-1;let s=Math.min(...a);switch(e[s]){case"\\":n=s+2;break;case"(":{let p=sl(e,[")"],s+1);if(p===-1)return-1;n=p+1}break;case'"':{let p=Lf(e,['"'],s+1);if(p===-1)return-1;n=p+1}break;case"'":{let p=Lf(e,["'"],s+1);if(p===-1)return-1;n=p+1}break;default:return s}i--}while(i>0);throw new Error("Too many escaping")},du=/\/\*[^]*?(?:\*\/|$)/g;function mr(e){return e?e.trim():""}function ul(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let i in e){let o=e[i];Array.isArray(o)?o.forEach(a=>{ul(a,n)}):o&&typeof o=="object"&&ul(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var UI=(e,t)=>{t=t||{};let r=1,n=1;function i(){let C={line:r,column:n};return D=>(D.position=new VI(C,{line:r,column:n},t?.source||""),f(),D)}let o=[];function a(C){let D=new $I(t?.source||"",C,r,n,e);if(!t?.silent)throw D;o.push(D)}function s(){let C=/^{\s*/.exec(e);return!!C&&(d(C),!0)}function p(){let C=/^}/.exec(e);return!!C&&(d(C),!0)}function l(){let C,D=[];for(f(),h(D);e.length&&e.charAt(0)!=="}"&&(C=y()||S(),C);)D.push(C),h(D);return D}function d(C){let D=C[0];return function(J){let M=J.match(/\n/g);M&&(r+=M.length);let G=J.lastIndexOf(`
|
|
209
|
-
`);n=~G?J.length-G:n+J.length}(D),e=e.slice(D.length),C}function f(){let C=/^\s*/.exec(e);C&&d(C)}function h(C){C=C||[];let D=m();for(;D;)C.push(D),D=m();return C}function m(){let C=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let D=/^\/\*[^]*?\*\//.exec(e);return D?(d(D),C({type:qt.comment,comment:D[0].slice(2,-2)})):a("End of comment missing")}function b(){let C=/^([^{]+)/.exec(e);if(C)return d(C),((D,J)=>{let M=[],G=0;for(;G<D.length;){let L=sl(D,J,G);if(L===-1)return M.push(D.substring(G)),M;M.push(D.substring(G,L)),G=L+1}return M})(mr(C[0]).replace(du,""),[","]).map(D=>mr(D))}function E(){let C=i(),D=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);if(!D)return;d(D);let J=mr(D[0]),M=/^:\s*/.exec(e);if(!M)return a("property missing ':'");d(M);let G="",L=sl(e,[";","}"]);L!==-1&&(G=e.substring(0,L),d([G]),G=mr(G).replace(du,""));let N=C({type:qt.declaration,property:J.replace(du,""),value:G}),U=/^[;\s]*/.exec(e);return U&&d(U),N}function _(){let C=[];if(!s())return a("missing '{'");h(C);let D=E();for(;D;)C.push(D),h(C),D=E();return p()?C:a("missing '}'")}function A(){let C=[],D=i(),J=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);for(;J;){let M=d(J);C.push(M[1]);let G=/^,\s*/.exec(e);G&&d(G),J=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e)}if(C.length)return D({type:qt.keyframe,values:C,declarations:_()||[]})}let T=R("import"),k=R("charset"),O=R("namespace");function R(C){let D=new RegExp("^@"+C+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return()=>{let J=i(),M=D.exec(e);if(!M)return;let G=d(M),L={type:C};return L[C]=G[1].trim(),J(L)}}function y(){if(e[0]==="@")return function(){let C=i(),D=/^@([-\w]+)?keyframes\s*/.exec(e);if(!D)return;let J=d(D)[1],M=/^([-\w]+)\s*/.exec(e);if(!M)return a("@keyframes missing name");let G=d(M)[1];if(!s())return a("@keyframes missing '{'");let L=h(),N=A();for(;N;)L.push(N),L=L.concat(h()),N=A();return p()?C({type:qt.keyframes,name:G,vendor:J,keyframes:L}):a("@keyframes missing '}'")}()||function(){let C=i(),D=/^@media *([^{]+)/.exec(e);if(!D)return;let J=mr(d(D)[1]);if(!s())return a("@media missing '{'");let M=h().concat(l());return p()?C({type:qt.media,media:J,rules:M}):a("@media missing '}'")}()||function(){let C=i(),D=/^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);if(!D)return;let J=d(D);return C({type:qt.customMedia,name:mr(J[1]),media:mr(J[2])})}()||function(){let C=i(),D=/^@supports *([^{]+)/.exec(e);if(!D)return;let J=mr(d(D)[1]);if(!s())return a("@supports missing '{'");let M=h().concat(l());return p()?C({type:qt.supports,supports:J,rules:M}):a("@supports missing '}'")}()||T()||k()||O()||function(){let C=i(),D=/^@([-\w]+)?document *([^{]+)/.exec(e);if(!D)return;let J=d(D),M=mr(J[1]),G=mr(J[2]);if(!s())return a("@document missing '{'");let L=h().concat(l());return p()?C({type:qt.document,document:G,vendor:M,rules:L}):a("@document missing '}'")}()||function(){let C=i(),D=/^@page */.exec(e);if(!D)return;d(D);let J=b()||[];if(!s())return a("@page missing '{'");let M=h(),G=E();for(;G;)M.push(G),M=M.concat(h()),G=E();return p()?C({type:qt.page,selectors:J,declarations:M}):a("@page missing '}'")}()||function(){let C=i(),D=/^@host\s*/.exec(e);if(!D)return;if(d(D),!s())return a("@host missing '{'");let J=h().concat(l());return p()?C({type:qt.host,rules:J}):a("@host missing '}'")}()||function(){let C=i(),D=/^@font-face\s*/.exec(e);if(!D)return;if(d(D),!s())return a("@font-face missing '{'");let J=h(),M=E();for(;M;)J.push(M),J=J.concat(h()),M=E();return p()?C({type:qt.fontFace,declarations:J}):a("@font-face missing '}'")}()||function(){let C=i(),D=/^@container *([^{]+)/.exec(e);if(!D)return;let J=mr(d(D)[1]);if(!s())return a("@container missing '{'");let M=h().concat(l());return p()?C({type:qt.container,container:J,rules:M}):a("@container missing '}'")}()||function(){let C=i(),D=/^@starting-style\s*/.exec(e);if(!D)return;if(d(D),!s())return a("@starting-style missing '{'");let J=h().concat(l());return p()?C({type:qt.startingStyle,rules:J}):a("@starting-style missing '}'")}()||function(){let C=i(),D=/^@layer *([^{;@]+)/.exec(e);if(!D)return;let J=mr(d(D)[1]);if(!s()){let G=/^[;\s]*/.exec(e);return G&&d(G),C({type:qt.layer,layer:J})}let M=h().concat(l());return p()?C({type:qt.layer,layer:J,rules:M}):a("@layer missing '}'")}()}function S(){let C=i(),D=b();return D?(h(),C({type:qt.rule,selectors:D,declarations:_()||[]})):a("selector missing")}return ul(function(){let C=l();return{type:qt.stylesheet,stylesheet:{source:t?.source,rules:C,parsingErrors:o}}}())},JI=Object.prototype.toString;function HI(e){return typeof e=="function"||JI.call(e)==="[object Function]"}function GI(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var zI=Math.pow(2,53)-1;function WI(e){var t=GI(e);return Math.min(Math.max(t,0),zI)}function Tr(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var i=WI(n.length),o=HI(r)?Object(new r(i)):new Array(i),a=0,s;a<i;)s=n[a],o[a]=s,a+=1;return o.length=i,o}function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function KI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_0(n.key),n)}}function XI(e,t,r){return t&&YI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QI(e,t,r){return t=_0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _0(e){var t=ZI(e,"string");return wo(t)==="symbol"?t:String(t)}function ZI(e,t){if(wo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eN=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];KI(this,e),QI(this,"items",void 0),this.items=t}return XI(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),tN=typeof Set>"u"?Set:eN;function Xt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var rN={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},nN={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function iN(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=nN[t])!==null&&n!==void 0&&n.has(r))})}function w0(e,t){return iN(e,t)}function oN(e){var t=sN(e);if(t===null||ll.indexOf(t)!==-1){var r=aN(e);if(ll.indexOf(t||"")===-1||w0(e,r||""))return r}return t}function aN(e){var t=rN[Xt(e)];if(t!==void 0)return t;switch(Xt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!w0(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function sN(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var ll=["presentation","none"];function wt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function C0(e){return wt(e)&&Xt(e)==="caption"}function Da(e){return wt(e)&&Xt(e)==="input"}function uN(e){return wt(e)&&Xt(e)==="optgroup"}function lN(e){return wt(e)&&Xt(e)==="select"}function cN(e){return wt(e)&&Xt(e)==="table"}function pN(e){return wt(e)&&Xt(e)==="textarea"}function dN(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function fN(e){return wt(e)&&Xt(e)==="fieldset"}function hN(e){return wt(e)&&Xt(e)==="legend"}function mN(e){return wt(e)&&Xt(e)==="slot"}function yN(e){return wt(e)&&e.ownerSVGElement!==void 0}function gN(e){return wt(e)&&Xt(e)==="svg"}function bN(e){return yN(e)&&Xt(e)==="title"}function Ka(e,t){if(wt(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function Kr(e,t){return wt(e)?t.indexOf(oN(e))!==-1:!1}function EN(e){return e.trim().replace(/\s\s+/g," ")}function vN(e,t){if(!wt(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function AN(e){return Kr(e,["button","combobox","listbox","textbox"])||T0(e,"range")}function T0(e,t){if(!wt(e))return!1;switch(t){case"range":return Kr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function $f(e,t){var r=Tr(e.querySelectorAll(t));return Ka(e,"aria-owns").forEach(function(n){r.push.apply(r,Tr(n.querySelectorAll(t)))}),r}function _N(e){return lN(e)?e.selectedOptions||$f(e,"[selected]"):$f(e,'[aria-selected="true"]')}function wN(e){return Kr(e,ll)}function CN(e){return C0(e)}function TN(e){return Kr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function SN(e){return!1}function xN(e){return Da(e)||pN(e)?e.value:e.textContent||""}function Vf(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function S0(e){var t=Xt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function x0(e){if(S0(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&wt(r)){var n=x0(r);n!==null&&(t=n)}}),t}function DN(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):x0(e)}function RN(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Tr(t);if(!S0(e))return null;var r=e.ownerDocument;return Tr(r.querySelectorAll("label")).filter(function(n){return DN(n)===e})}function PN(e){var t=e.assignedNodes();return t.length===0?Tr(e.childNodes):t}function D0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new tN,n=dN(e),i=t.compute,o=i===void 0?"name":i,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,p=t.getComputedStyle,l=p===void 0?n.getComputedStyle.bind(n):p,d=t.hidden,f=d===void 0?!1:d;function h(A,T){var k="";if(wt(A)&&s){var O=l(A,"::before"),R=Vf(O);k="".concat(R," ").concat(k)}var y=mN(A)?PN(A):Tr(A.childNodes).concat(Ka(A,"aria-owns"));if(y.forEach(function(D){var J=_(D,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),M=wt(D)?l(D).getPropertyValue("display"):"inline",G=M!=="inline"?" ":"";k+="".concat(G).concat(J).concat(G)}),wt(A)&&s){var S=l(A,"::after"),C=Vf(S);k="".concat(k," ").concat(C)}return k.trim()}function m(A,T){var k=A.getAttributeNode(T);return k!==null&&!r.has(k)&&k.value.trim()!==""?(r.add(k),k.value):null}function b(A){return wt(A)?m(A,"title"):null}function E(A){if(!wt(A))return null;if(fN(A)){r.add(A);for(var T=Tr(A.childNodes),k=0;k<T.length;k+=1){var O=T[k];if(hN(O))return _(O,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(cN(A)){r.add(A);for(var R=Tr(A.childNodes),y=0;y<R.length;y+=1){var S=R[y];if(C0(S))return _(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(gN(A)){r.add(A);for(var C=Tr(A.childNodes),D=0;D<C.length;D+=1){var J=C[D];if(bN(J))return J.textContent}return null}else if(Xt(A)==="img"||Xt(A)==="area"){var M=m(A,"alt");if(M!==null)return M}else if(uN(A)){var G=m(A,"label");if(G!==null)return G}if(Da(A)&&(A.type==="button"||A.type==="submit"||A.type==="reset")){var L=m(A,"value");if(L!==null)return L;if(A.type==="submit")return"Submit";if(A.type==="reset")return"Reset"}var N=RN(A);if(N!==null&&N.length!==0)return r.add(A),Tr(N).map(function(ne){return _(ne,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(ne){return ne.length>0}).join(" ");if(Da(A)&&A.type==="image"){var U=m(A,"alt");if(U!==null)return U;var W=m(A,"title");return W!==null?W:"Submit Query"}if(Kr(A,["button"])){var K=h(A,{isEmbeddedInLabel:!1});if(K!=="")return K}return null}function _(A,T){if(r.has(A))return"";if(!f&&vN(A,l)&&!T.isReferenced)return r.add(A),"";var k=wt(A)?A.getAttributeNode("aria-labelledby"):null,O=k!==null&&!r.has(k)?Ka(A,"aria-labelledby"):[];if(o==="name"&&!T.isReferenced&&O.length>0)return r.add(k),O.map(function(M){return _(M,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var R=T.recursion&&AN(A)&&o==="name";if(!R){var y=(wt(A)&&A.getAttribute("aria-label")||"").trim();if(y!==""&&o==="name")return r.add(A),y;if(!wN(A)){var S=E(A);if(S!==null)return r.add(A),S}}if(Kr(A,["menu"]))return r.add(A),"";if(R||T.isEmbeddedInLabel||T.isReferenced){if(Kr(A,["combobox","listbox"])){r.add(A);var C=_N(A);return C.length===0?Da(A)?A.value:"":Tr(C).map(function(M){return _(M,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(T0(A,"range"))return r.add(A),A.hasAttribute("aria-valuetext")?A.getAttribute("aria-valuetext"):A.hasAttribute("aria-valuenow")?A.getAttribute("aria-valuenow"):A.getAttribute("value")||"";if(Kr(A,["textbox"]))return r.add(A),xN(A)}if(TN(A)||wt(A)&&T.isReferenced||CN(A)||SN()){var D=h(A,{isEmbeddedInLabel:T.isEmbeddedInLabel});if(D!=="")return r.add(A),D}if(A.nodeType===A.TEXT_NODE)return r.add(A),A.textContent||"";if(T.recursion)return r.add(A),h(A,{isEmbeddedInLabel:T.isEmbeddedInLabel});var J=b(A);return J!==null?(r.add(A),J):(r.add(A),"")}return EN(_(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function Uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uf(Object(r),!0).forEach(function(n){ON(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ON(e,t,r){return t=FN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FN(e){var t=IN(e,"string");return Co(t)==="symbol"?t:String(t)}function IN(e,t){if(Co(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ka(e,"aria-describedby").map(function(o){return D0(o,Jf(Jf({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var i=e.getAttribute("title");r=i===null?"":i}return r}function BN(e){return Kr(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function kN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return BN(e)?"":D0(e,t)}var xp=kt(ac(),1),MN=kt(oy(),1),jN=kt(ay(),1),R0=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let i="";try{i=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,i].join(`
|
|
210
|
-
`)}},Hf=class extends R0{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},Gf=class extends R0{constructor(...e){super("be a Node",...e)}};function P0(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function qN(e,...t){P0(e,Gf,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new Gf(e,...t)}function Qe(e,...t){P0(e,Hf,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Hf(e,...t)}var LN=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
|
|
211
|
-
`)}};function $N(e,...t){let r=UI(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:i}=r.parsingErrors[0];throw new LN({css:e,message:`Syntax error parsing expected css: ${n} on line: ${i}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:i,value:o})=>Object.assign(n,{[i]:o}),{})}function zf(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function Vt(e,t,r,n,i,o){return[`${t}
|
|
212
|
-
`,`${r}:
|
|
213
|
-
${e.utils.EXPECTED_COLOR((0,qf.default)(zf(e,n),2))}`,`${i}:
|
|
214
|
-
${e.utils.RECEIVED_COLOR((0,qf.default)(zf(e,o),2))}`].join(`
|
|
215
|
-
`)}function VN(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function Is(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function Ns(e){return e.replace(/\s+/g," ").trim()}function _n(e){return e.tagName&&e.tagName.toLowerCase()}function UN({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function JN(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var HN=["meter","progressbar","slider","spinbutton"];function GN(e){if(HN.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function O0(e){if(e)switch(e.tagName.toLowerCase()){case"input":return JN(e);case"select":return UN(e);default:return e.value??GN(e)}}function zN(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function Dp(e,t){return Array.isArray(e)&&Array.isArray(t)?[...new Set(e)].every(r=>new Set(t).has(r)):e===t}function cl(e,t){return Is("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Qe(e,cl,this),t&&Qe(t,cl,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
216
|
-
`)}}function F0(e){(e!==null||!this.isNot)&&Qe(e,F0,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
217
|
-
`)}}function I0(e){return Is("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Qe(e,I0,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
218
|
-
`)}}function N0(e){return Qe(e,N0,this),{pass:WN(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
219
|
-
`)}}function WN(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function pl(e,t){return Qe(e,pl,this),t!==null&&Qe(t,pl,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
|
220
|
-
`)].join(`
|
|
221
|
-
`)}}function KN(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function B0(e,t){if(Qe(e,B0,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(KN(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
222
|
-
`)}}function k0(e,t,r={normalizeWhitespace:!0}){qN(e,k0,this);let n=r.normalizeWhitespace?Ns(e.textContent):e.textContent.replace(/\u00a0/g," "),i=n!==""&&t==="";return{pass:!i&&VN(n,t),message:()=>{let o=this.isNot?"not to":"to";return Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),i?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${o} have text content`,t,"Received",n)}}}function dl(e,t){Qe(e,dl,this);let r=NN(e),n=arguments.length===1,i=!1;return n?i=r!=="":i=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:i,message:()=>{let o=this.isNot?"not to":"to";return Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${dl.name}`,"element",""),`Expected element ${o} have accessible description`,t,"Received",r)}}}var Yi="aria-invalid",YN=["false"];function M0(e,t){Qe(e,M0,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",i=e.getAttribute("aria-errormessage");if(i&&/\s+/.test(i))return{pass:!1,message:()=>Vt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${i}"`)};let o=e.getAttribute(Yi);if(!e.hasAttribute(Yi)||YN.includes(o))return{pass:!1,message:()=>Vt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Yi}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Yi}="${e.getAttribute(Yi)}`:null)};let a=Ns(e.ownerDocument.getElementById(i)?.textContent??"");return{pass:t===void 0?!!a:t instanceof RegExp?t.test(a):this.equals(a,t),message:()=>Vt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",a)}}var XN=eB(xp.elementRoles);function fl(e,t){Qe(e,fl,this);let r=QN(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${fl.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function QN(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):ZN(e)}function ZN(e){for(let{match:t,roles:r}of XN)if(t(e))return[...r];return[]}function eB(e){function t({name:a,attributes:s}){return`${a}${s.map(({name:p,value:l,constraints:d=[]})=>d.indexOf("undefined")!==-1?`:not([${p}])`:l?`[${p}="${l}"]`:`[${p}]`).join("")}`}function r({attributes:a=[]}){return a.length}function n({specificity:a},{specificity:s}){return s-a}function i(a){let{attributes:s=[]}=a,p=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");p>=0&&(s=[...s.slice(0,p),...s.slice(p+1)]);let l=t({...a,attributes:s});return d=>p>=0&&d.type!=="text"?!1:d.matches(l)}let o=[];for(let[a,s]of e.entries())o=[...o,{match:i(a),roles:Array.from(s),specificity:r(a)}];return o.sort(n)}function hl(e,t){Qe(e,hl,this);let r=kN(e),n=arguments.length===1,i=!1;return n?i=r!=="":i=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:i,message:()=>{let o=this.isNot?"not to":"to";return Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${hl.name}`,"element",""),`Expected element ${o} have accessible name`,t,"Received",r)}}}function Wf(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function tB(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function j0(e,t,r){Qe(e,j0,this);let n=r!==void 0,i=e.hasAttribute(t),o=e.getAttribute(t);return{pass:n?i&&this.equals(o,r):i,message:()=>{let a=this.isNot?"not to":"to",s=i?Wf(this.utils.stringify,t,o):null,p=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:tB(this.utils.stringify,t,r)});return Vt(this,p,`Expected the element ${a} have attribute`,Wf(this.utils.stringify,t,r),"Received",s)}}}function rB(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function Kf(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function Yf(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function q0(e,...t){Qe(e,q0,this);let{expectedClassNames:r,options:n}=rB(t),i=Kf(e.getAttribute("class")),o=r.reduce((s,p)=>s.concat(typeof p=="string"||!p?Kf(p):p),[]),a=o.some(s=>s instanceof RegExp);if(n.exact&&a)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:Yf(o,i)&&o.length===i.length,message:()=>{let s=this.isNot?"not to":"to";return Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${s} have EXACTLY defined classes`,o.join(" "),"Received",i.join(" "))}}:o.length>0?{pass:Yf(o,i),message:()=>{let s=this.isNot?"not to":"to";return Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${s} have class`,o.join(" "),"Received",i.join(" "))}}:{pass:this.isNot?i.length>0:!1,message:()=>this.isNot?Vt(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",i.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
223
|
-
`)}}function nB(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(i=>{n.style[i]=t[i],r[i]=n.style[i]}),r}function iB(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let i=r.startsWith("--"),o=[r];return i||o.push(r.toLowerCase()),o.some(a=>t[a]===n||t.getPropertyValue(a)===n)})}function Xf(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
224
|
-
`)}function oB(e,t,r){let n=Array.from(r).filter(i=>t[i]!==void 0).reduce((i,o)=>Object.assign(i,{[o]:r.getPropertyValue(o)}),{});return e(Xf(t),Xf(n)).replace(`${MN.default.red("+ Received")}
|
|
225
|
-
`,"")}function ml(e,t){Qe(e,ml,this);let r=typeof t=="object"?t:$N(t,ml,this),{getComputedStyle:n}=e.ownerDocument.defaultView,i=nB(e.ownerDocument,r),o=n(e);return{pass:iB(i,o),message:()=>{let a=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(a,"element",""),oB(this.utils.diff,i,o)].join(`
|
|
226
|
-
|
|
227
|
-
`)}}}function L0(e){return Qe(e,L0,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
|
228
|
-
`)}}function aB(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function sB(e,t){let r=[...e.querySelectorAll(`[name="${(0,jN.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return O0(r[0]);default:return aB(r)}}function uB(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function lB(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[uB(r)]:sB(e,r)}),{})}function $0(e,t){if(Qe(e,$0,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=lB(e);return{pass:Object.entries(t).every(([n,i])=>Dp(r[n],i)),message:()=>{let n=this.isNot?"not to":"to",i=`${this.isNot?".not":""}.toHaveFormValues`,o=Object.keys(r).filter(a=>t.hasOwnProperty(a)).reduce((a,s)=>({...a,[s]:r[s]}),{});return[this.utils.matcherHint(i,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,o)].join(`
|
|
229
|
-
|
|
230
|
-
`)}}}function cB(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:i}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&i!=="0"&&i!==0}function pB(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function V0(e,t){return cB(e)&&pB(e,t)&&(!e.parentElement||V0(e.parentElement,e))}function U0(e){Qe(e,U0,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&V0(e);return{pass:r,message:()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
231
|
-
`)}}}var dB=["fieldset","input","select","optgroup","option","button","textarea"];function fB(e,t){return _n(e)==="legend"&&_n(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>_n(r)==="legend"))}function hB(e,t){return H0(t)&&!fB(e,t)}function mB(e){return e.includes("-")}function J0(e){let t=_n(e);return dB.includes(t)||mB(t)}function H0(e){return J0(e)&&e.hasAttribute("disabled")}function G0(e){let t=e.parentElement;return!!t&&(hB(e,t)||G0(t))}function z0(e){return J0(e)&&(H0(e)||G0(e))}function W0(e){Qe(e,W0,this);let t=z0(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
232
|
-
`)}}}function K0(e){Qe(e,K0,this);let t=!z0(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
233
|
-
`)}}}var yB=["select","textarea"],gB=["input","select","textarea"],bB=["color","hidden","range","submit","image","reset"],EB=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function vB(e){return yB.includes(_n(e))&&e.hasAttribute("required")}function AB(e){return _n(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!bB.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function _B(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(gB.includes(_n(e))||e.hasAttribute("role")&&EB.includes(e.getAttribute("role")))}function Y0(e){Qe(e,Y0,this);let t=vB(e)||AB(e)||_B(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
234
|
-
`)}}}var wB=["form","input","select","textarea"];function CB(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function TB(e){return wB.includes(_n(e))}function X0(e){let t=CB(e);return TB(e)?t||!e.checkValidity():t}function Q0(e){Qe(e,Q0,this);let t=X0(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
235
|
-
`)}}}function Z0(e){Qe(e,Z0,this);let t=!X0(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
236
|
-
`)}}}function eE(e,t){if(Qe(e,eE,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=O0(e),n=t!==void 0,i=t,o=r;return t==r&&t!==r&&(i=`${t} (${typeof t})`,o=`${r} (${typeof r})`),{pass:n?Dp(r,t):!!r,message:()=>{let a=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Vt(this,s,`Expected the element ${a} have value`,n?i:"(any)","Received",o)}}}function tE(e,t){Qe(e,tE,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=SB(r,e),i=xB(t),o=i.filter(p=>n.some(l=>p instanceof RegExp?p.test(l):this.equals(l,String(p)))).length,a=o===n.length,s=o===i.length;return{pass:a&&s,message:()=>Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function SB(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function xB(e){return e instanceof Array?e:[e]}function rE(e){Qe(e,rE,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>nE(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${DB()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{let i=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${i} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
237
|
-
`)}}}function DB(){return zN(RB().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function RB(){return xp.roles.keys().filter(nE)}function nE(e){return xp.roles.get(e)?.props["aria-checked"]!==void 0}function iE(e){Qe(e,iE,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return{pass:!1,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'};let n=()=>{let i=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||i};return{pass:n(),message:()=>{let i=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${i} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
238
|
-
`)}}}function oE(e,t){Is("toHaveDescription","Please use toHaveAccessibleDescription."),Qe(e,oE,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),i="";if(n.length>0){let o=e.ownerDocument,a=n.map(s=>o.getElementById(s)).filter(Boolean);i=Ns(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let o=this.isNot?"not to":"to";return Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${o} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(i))}}}function aE(e,t){if(Is("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Qe(e,aE,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let o=this.isNot?".not":"";return{pass:!1,message:()=>Vt(this,this.utils.matcherHint(`${o}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),i="";if(n.length>0){let o=e.ownerDocument,a=n.map(s=>o.getElementById(s)).filter(Boolean);i=Ns(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let o=this.isNot?"not to":"to";return Vt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${o} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(i))}}}function PB(e){let t=e.ownerDocument.getSelection();if(["input","textarea"].includes(e.tagName.toLowerCase()))return["radio","checkbox"].includes(e.type)?"":e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return"";let r=t.getRangeAt(0),n=e.ownerDocument.createRange();if(t.containsNode(e,!1))n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let o=e===r.startContainer||e.contains(r.startContainer),a=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(o||a)&&(n.selectNodeContents(e),o&&n.setStart(r.startContainer,r.startOffset),a&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let i=t.toString();return t.removeAllRanges(),t.addRange(r),i}function sE(e,t){Qe(e,sE,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=PB(e);return{pass:r?Dp(n,t):!!n,message:()=>{let i=this.isNot?"not to":"to",o=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return Vt(this,o,`Expected the element ${i} have selection`,r?t:"(any)","Received",n)}}}function uE(e){Qe(e,uE,this);let t=(e.getAttribute("role")||"").split(" ").map(i=>i.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'}:{pass:r&&n==="true",message:()=>{let i=this.utils.matcherHint(`${this.isNot?".not":""}.toBePressed`,"element","");return Vt(this,i,"Expected element to have",`aria-pressed="${this.isNot?"false":"true"}"`,"Received",`aria-pressed="${n}"`)}}}function lE(e){Qe(e,lE,this);let t=(e.getAttribute("role")||"").split(" ").map(i=>i.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false"||n==="mixed")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'}:{pass:r&&n==="mixed",message:()=>{let i=this.isNot?"not to":"to",o=this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyPressed`,"element","");return Vt(this,o,`Expected element ${i} have`,'aria-pressed="mixed"',"Received",`aria-pressed="${n}"`)}}}var OB=1,cE=2,pE=4,FB=8,IB=16,NB=32,Qf={[OB]:"Node.DOCUMENT_POSITION_DISCONNECTED",[cE]:"Node.DOCUMENT_POSITION_PRECEDING",[pE]:"Node.DOCUMENT_POSITION_FOLLOWING",[FB]:"Node.DOCUMENT_POSITION_CONTAINS",[IB]:"Node.DOCUMENT_POSITION_CONTAINED_BY",[NB]:"Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"};function BB(e){return e in Qf?`${Qf[e]} (${e})`:`Unknown document position (${e})`}function dE(e,t){return function(r,n){Qe(r,yl,this),Qe(n,yl,this);let i=r.compareDocumentPosition(n);return{pass:i===t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.${e}`,"element","secondElement"),"",`Received: ${BB(i)}`].join(`
|
|
239
|
-
`)}}}function yl(e,t){return dE("toAppearBefore",pE).apply(this,[e,t])}function kB(e,t){return dE("toAppearAfter",cE).apply(this,[e,t])}kt(iy(),1);kt(ac(),1);kt(oy(),1);kt(ay(),1);var fu,Zf;function MB(){if(Zf)return fu;Zf=1;var e,t,r,n,i,o,a,s,p,l,d,f,h,m,b,E,_,A,T;return h=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,b=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,E=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,T=/[\t\v\f\ufeff\p{Zs}]+/yu,s=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,m=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,A=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,l=RegExp(s.source),fu=function*(k,{jsx:O=!1}={}){var R,y,S,C,D,J,M,G,L,N,U,W,K,ne;for({length:J}=k,C=0,D="",ne=[{tag:"JS"}],R=[],U=0,W=!1;C<J;){switch(G=ne[ne.length-1],G.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(k[C]==="/"&&(A.test(D)||o.test(D))&&(h.lastIndex=C,M=h.exec(k))){C=h.lastIndex,D=M[0],W=!0,yield{type:"RegularExpressionLiteral",value:M[0],closed:M[1]!==void 0&&M[1]!=="\\"};continue}if(f.lastIndex=C,M=f.exec(k)){switch(K=M[0],L=f.lastIndex,N=K,K){case"(":D==="?NonExpressionParenKeyword"&&ne.push({tag:"JSNonExpressionParen",nesting:U}),U++,W=!1;break;case")":U--,W=!0,G.tag==="JSNonExpressionParen"&&U===G.nesting&&(ne.pop(),N="?NonExpressionParenEnd",W=!1);break;case"{":f.lastIndex=0,S=!_.test(D)&&(A.test(D)||o.test(D)),R.push(S),W=!1;break;case"}":switch(G.tag){case"InterpolationInTemplate":if(R.length===G.nesting){E.lastIndex=C,M=E.exec(k),C=E.lastIndex,D=M[0],M[1]==="${"?(D="?InterpolationInTemplate",W=!1,yield{type:"TemplateMiddle",value:M[0]}):(ne.pop(),W=!0,yield{type:"TemplateTail",value:M[0],closed:M[1]==="`"});continue}break;case"InterpolationInJSX":if(R.length===G.nesting){ne.pop(),C+=1,D="}",yield{type:"JSXPunctuator",value:"}"};continue}}W=R.pop(),N=W?"?ExpressionBraceEnd":"}";break;case"]":W=!0;break;case"++":case"--":N=W?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(O&&(A.test(D)||o.test(D))){ne.push({tag:"JSXTag"}),C+=1,D="<",yield{type:"JSXPunctuator",value:K};continue}W=!1;break;default:W=!1}C=L,D=N,yield{type:"Punctuator",value:K};continue}if(e.lastIndex=C,M=e.exec(k)){switch(C=e.lastIndex,N=M[0],M[0]){case"for":case"if":case"while":case"with":D!=="."&&D!=="?."&&(N="?NonExpressionParenKeyword")}D=N,W=!o.test(M[0]),yield{type:M[1]==="#"?"PrivateIdentifier":"IdentifierName",value:M[0]};continue}if(b.lastIndex=C,M=b.exec(k)){C=b.lastIndex,D=M[0],W=!0,yield{type:"StringLiteral",value:M[0],closed:M[2]!==void 0};continue}if(d.lastIndex=C,M=d.exec(k)){C=d.lastIndex,D=M[0],W=!0,yield{type:"NumericLiteral",value:M[0]};continue}if(E.lastIndex=C,M=E.exec(k)){C=E.lastIndex,D=M[0],M[1]==="${"?(D="?InterpolationInTemplate",ne.push({tag:"InterpolationInTemplate",nesting:R.length}),W=!1,yield{type:"TemplateHead",value:M[0]}):(W=!0,yield{type:"NoSubstitutionTemplate",value:M[0],closed:M[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=C,M=r.exec(k)){switch(C=r.lastIndex,N=M[0],M[0]){case"<":ne.push({tag:"JSXTag"});break;case">":ne.pop(),D==="/"||G.tag==="JSXTagEnd"?(N="?JSX",W=!0):ne.push({tag:"JSXChildren"});break;case"{":ne.push({tag:"InterpolationInJSX",nesting:R.length}),N="?InterpolationInJSX",W=!1;break;case"/":D==="<"&&(ne.pop(),ne[ne.length-1].tag==="JSXChildren"&&ne.pop(),ne.push({tag:"JSXTagEnd"}))}D=N,yield{type:"JSXPunctuator",value:M[0]};continue}if(t.lastIndex=C,M=t.exec(k)){C=t.lastIndex,D=M[0],yield{type:"JSXIdentifier",value:M[0]};continue}if(n.lastIndex=C,M=n.exec(k)){C=n.lastIndex,D=M[0],yield{type:"JSXString",value:M[0],closed:M[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=C,M=i.exec(k)){C=i.lastIndex,D=M[0],yield{type:"JSXText",value:M[0]};continue}switch(k[C]){case"<":ne.push({tag:"JSXTag"}),C++,D="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":ne.push({tag:"InterpolationInJSX",nesting:R.length}),C++,D="?InterpolationInJSX",W=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(T.lastIndex=C,M=T.exec(k)){C=T.lastIndex,yield{type:"WhiteSpace",value:M[0]};continue}if(s.lastIndex=C,M=s.exec(k)){C=s.lastIndex,W=!1,a.test(D)&&(D="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:M[0]};continue}if(p.lastIndex=C,M=p.exec(k)){C=p.lastIndex,l.test(M[0])&&(W=!1,a.test(D)&&(D="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:M[0],closed:M[1]!==void 0};continue}if(m.lastIndex=C,M=m.exec(k)){C=m.lastIndex,W=!1,yield{type:"SingleLineComment",value:M[0]};continue}y=String.fromCodePoint(k.codePointAt(C)),C+=y.length,D=y,W=!1,yield{type:G.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:y}}},fu}var jB=MB();mb(jB);var fE={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(fE.keyword);new Set(fE.strict);function Ra(e,t){if(!e)throw new Error(t)}function di(e,t){return typeof t===e}function qB(e){return e instanceof Promise}function To(e,t,r){Object.defineProperty(e,t,r)}function yi(e,t,r){To(e,t,{value:r,configurable:!0,writable:!0})}var wn=Symbol.for("tinyspy:spy"),LB=new Set,$B=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},VB=e=>(To(e,wn,{value:{reset:()=>$B(e[wn])}}),e[wn]),gl=e=>e[wn]||VB(e);function UB(e){Ra(di("function",e)||di("undefined",e),"cannot spy on a non-function value");let t=function(...n){let i=gl(t);i.called=!0,i.callCount++,i.calls.push(n);let o=i.next.shift();if(o){i.results.push(o);let[d,f]=o;if(d==="ok")return f;throw f}let a,s="ok",p=i.results.length;if(i.impl)try{new.target?a=Reflect.construct(i.impl,n,new.target):a=i.impl.apply(this,n),s="ok"}catch(d){throw a=d,s="error",i.results.push([s,d]),d}let l=[s,a];return qB(a)&&a.then(d=>i.resolves[p]=["ok",d],d=>i.resolves[p]=["error",d]),i.results.push(l),a};yi(t,"_isMockFunction",!0),yi(t,"length",e?e.length:0),yi(t,"name",e&&e.name||"spy");let r=gl(t);return r.reset(),r.impl=e,t}function JB(e){return!!e&&e._isMockFunction===!0}var hE=(e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let i=Object.getOwnPropertyDescriptor(n,t);if(i)return[n,i];n=Object.getPrototypeOf(n)}},eh=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function mE(e,t,r){Ra(!di("undefined",e),"spyOn could not find an object to spy upon"),Ra(di("object",e)||di("function",e),"cannot spyOn on a primitive value");let[n,i]=(()=>{if(!di("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[o,a]=hE(e,n)||[];Ra(a||n in e,`${String(n)} does not exist`);let s=!1;i==="value"&&a&&!a.value&&a.get&&(i="get",s=!0,r=a.get());let p;a?p=a[i]:i!=="value"?p=()=>e[n]:p=e[n],p&&WB(p)&&(p=p[wn].getOriginal());let l=m=>{let{value:b,...E}=a||{configurable:!0,writable:!0};i!=="value"&&delete E.writable,E[i]=m,To(e,n,E)},d=()=>{o!==e?Reflect.deleteProperty(e,n):a&&!p?To(e,n,a):l(p)};r||(r=p);let f=zB(UB(r),r);i==="value"&&eh(f,p);let h=f[wn];return yi(h,"restore",d),yi(h,"getOriginal",()=>s?p():p),yi(h,"willCall",m=>(h.impl=m,f)),l(s?()=>(eh(f,r),f):f),LB.add(f),f}var HB=new Set(["length","name","prototype"]);function GB(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of n)r[i]||HB.has(i)||(t.add(i),r[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}function zB(e,t){if(!t||wn in t)return e;let{properties:r,descriptors:n}=GB(t);for(let i of r){let o=n[i];hE(e,i)||To(e,i,o)}return e}function WB(e){return JB(e)&&"getOriginal"in e[wn]}var Wo=new Set;function gi(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function KB(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,i,o=XB(e,t),a=o&&o[r||"value"];gi(a)&&(i=a.mock._state());try{let s=mE(e,n),p=yE(s);return i&&p.mock._state(i),p}catch(s){throw s instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(s.message.includes("Cannot redefine property")||s.message.includes("Cannot replace module namespace")||s.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(n)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:s}):s}}var YB=0;function yE(e){let t=e,r,n=[],i=!1,o=[],a=[],s=[],p=gl(e),l={get calls(){return p.calls},get contexts(){return a},get instances(){return o},get invocationCallOrder(){return s},get results(){return p.results.map(([m,b])=>({type:m==="error"?"throw":"return",value:b}))},get settledResults(){return p.resolves.map(([m,b])=>({type:m==="error"?"rejected":"fulfilled",value:b}))},get lastCall(){return p.calls[p.calls.length-1]},_state(m){return m&&(r=m.implementation,n=m.onceImplementations,i=m.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:i}}};function d(...m){return o.push(this),a.push(this),s.push(++YB),(i?r:n.shift()||r||p.getOriginal()||(()=>{})).apply(this,m)}let f=t.name;t.getMockName=()=>f||"vi.fn()",t.mockName=m=>(f=m,t),t.mockClear=()=>(p.reset(),o=[],a=[],s=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),p.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>i?r:n.at(0)||r,t.mockImplementation=m=>(r=m,p.willCall(d),t),t.mockImplementationOnce=m=>(n.push(m),t);function h(m,b){let E=r;r=m,p.willCall(d),i=!0;let _=()=>{r=E,i=!1},A=b();return typeof A=="object"&&A&&typeof A.then=="function"?A.then(()=>(_(),t)):(_(),t)}return t.withImplementation=h,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=m=>t.mockImplementation(()=>m),t.mockReturnValueOnce=m=>t.mockImplementationOnce(()=>m),t.mockResolvedValue=m=>t.mockImplementation(()=>Promise.resolve(m)),t.mockResolvedValueOnce=m=>t.mockImplementationOnce(()=>Promise.resolve(m)),t.mockRejectedValue=m=>t.mockImplementation(()=>Promise.reject(m)),t.mockRejectedValueOnce=m=>t.mockImplementationOnce(()=>Promise.reject(m)),Object.defineProperty(t,"mock",{get:()=>l}),p.willCall(d),Wo.add(t),t}function th(e){let t=yE(mE({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function XB(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){let i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}var So=Symbol.for("matchers-object"),xo=Symbol.for("$$jest-matchers-object-storybook"),Rp=Symbol.for("expect-global"),bl=Symbol.for("asymmetric-matchers-object"),QB={toSatisfy(e,t,r){let{printReceived:n,printExpected:i,matcherHint:o}=this.utils,a=t(e);return{pass:a,message:()=>a?`${o(".not.toSatisfy","received","")}
|
|
240
|
-
|
|
241
|
-
Expected value to not satisfy:
|
|
242
|
-
${r||i(t)}
|
|
243
|
-
Received:
|
|
244
|
-
${n(e)}`:`${o(".toSatisfy","received","")}
|
|
245
|
-
|
|
246
|
-
Expected value to satisfy:
|
|
247
|
-
${r||i(t)}
|
|
248
|
-
|
|
249
|
-
Received:
|
|
250
|
-
${n(e)}`}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:i,printExpected:o,matcherHint:a}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${a(".toBeOneOf")}, not '${typeof t}'.`);let s=t.length===0||t.some(p=>r(p,e,n));return{pass:s,message:()=>s?`${a(".not.toBeOneOf","received","")}
|
|
251
|
-
|
|
252
|
-
Expected value to not be one of:
|
|
253
|
-
${o(t)}
|
|
254
|
-
Received:
|
|
255
|
-
${i(e)}`:`${a(".toBeOneOf","received","")}
|
|
256
|
-
|
|
257
|
-
Expected value to be one of:
|
|
258
|
-
${o(t)}
|
|
259
|
-
|
|
260
|
-
Received:
|
|
261
|
-
${i(e)}`}}},Ya=Pt.green,Pp=Pt.red,ZB=Pt.inverse,ek=Pt.bold,hn=Pt.dim;function tk(e,t="received",r="expected",n={}){let{comment:i="",isDirectExpectCall:o=!1,isNot:a=!1,promise:s="",secondArgument:p="",expectedColor:l=Ya,receivedColor:d=Pp,secondArgumentColor:f=Ya}=n,h="",m="expect";return!o&&t!==""&&(h+=hn(`${m}(`)+d(t),m=")"),s!==""&&(h+=hn(`${m}.`)+s,m=""),a&&(h+=`${hn(`${m}.`)}not`,m=""),e.includes(".")?m+=e:(h+=hn(`${m}.`)+e,m=""),r===""?m+="()":(h+=hn(`${m}(`)+l(r),p&&(h+=hn(", ")+f(p)),m=")"),i!==""&&(m+=` // ${i}`),m!==""&&(h+=hn(m)),h}var rk="·";function gE(e){return e.replace(/\s+$/gm,t=>rk.repeat(t.length))}function nk(e){return Pp(gE(fr(e)))}function ik(e){return Ya(gE(fr(e)))}function bE(){return{EXPECTED_COLOR:Ya,RECEIVED_COLOR:Pp,INVERTED_COLOR:ZB,BOLD_WEIGHT:ek,DIM_COLOR:hn,diff:qi,matcherHint:tk,printReceived:nk,printExpected:ik,printDiffOrStringify:Pb,printWithType:ok}}function ok(e,t,r){let n=$a(t),i=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
262
|
-
`:"",o=`${e} has value: ${r(t)}`;return i+o}function Op(){return globalThis[xo].customEqualityTesters}function it(e,t,r,n){return r=r||[],uo(e,t,[],[],r,n?EE:uk)}function rh(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&Dr("Function",e.asymmetricMatch)}function ak(e,t){let r=rh(e),n=rh(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function uo(e,t,r,n,i,o){let a=!0,s=ak(e,t);if(s!==void 0)return s;let p={equals:it};for(let b=0;b<i.length;b++){let E=i[b].call(p,e,t,i);if(E!==void 0)return E}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let b=+e,E=+t;return b===E||Number.isNaN(b)&&Number.isNaN(E)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if(ih(e)&&ih(t))return e.isEqualNode(t);let d=r.length;for(;d--;){if(r[d]===e)return n[d]===t;if(n[d]===t)return!1}if(r.push(e),n.push(t),l==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return sk(e,t,r,n,i,o)}finally{r.pop(),n.pop()}let f=nh(e,o),h,m=f.length;if(nh(t,o).length!==m)return!1;for(;m--;)if(h=f[m],a=o(t,h)&&uo(e[h],t[h],r,n,i,o),!a)return!1;return r.pop(),n.pop(),a}function sk(e,t,r,n,i,o){let a=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&a&&(a=uo(e.cause,t.cause,r,n,i,o)),e instanceof AggregateError&&t instanceof AggregateError&&a&&(a=uo(e.errors,t.errors,r,n,i,o)),a&&(a=uo({...e},{...t},r,n,i,o)),a}function nh(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function uk(e,t){return EE(e,t)&&e[t]!==void 0}function EE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Dr(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function ih(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var vE="@@__IMMUTABLE_KEYED__@@",AE="@@__IMMUTABLE_SET__@@",lk="@@__IMMUTABLE_LIST__@@",Bs="@@__IMMUTABLE_ORDERED__@@",ck="@@__IMMUTABLE_RECORD__@@";function pk(e){return!!(e&&e[vE]&&!e[Bs])}function dk(e){return!!(e&&e[AE]&&!e[Bs])}function ks(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function fk(e){return!!(e&&ks(e)&&e[lk])}function hk(e){return!!(e&&ks(e)&&e[vE]&&e[Bs])}function mk(e){return!!(e&&ks(e)&&e[AE]&&e[Bs])}function yk(e){return!!(e&&ks(e)&&e[ck])}var _E=Symbol.iterator;function oh(e){return!!(e!=null&&e[_E])}function br(e,t,r=[],n=[],i=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!oh(e)||!oh(t))return;if(e.constructor!==t.constructor)return!1;let o=n.length;for(;o--;)if(n[o]===e)return i[o]===t;n.push(e),i.push(t);let a=[...r.filter(l=>l!==br),s];function s(l,d){return br(l,d,[...r],[...n],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(Dr("Set",e)||dk(e)){let l=!0;for(let d of e)if(!t.has(d)){let f=!1;for(let h of t)it(d,h,a)===!0&&(f=!0);if(f===!1){l=!1;break}}return n.pop(),i.pop(),l}else if(Dr("Map",e)||pk(e)){let l=!0;for(let d of e)if(!t.has(d[0])||!it(d[1],t.get(d[0]),a)){let f=!1;for(let h of t){let m=it(d[0],h[0],a),b=!1;m===!0&&(b=it(d[1],h[1],a)),b===!0&&(f=!0)}if(f===!1){l=!1;break}}return n.pop(),i.pop(),l}}let p=t[_E]();for(let l of e){let d=p.next();if(d.done||!it(l,d.value,a))return!1}if(!p.next().done)return!1;if(!fk(e)&&!hk(e)&&!mk(e)&&!yk(e)){let l=Object.entries(e),d=Object.entries(t);if(!it(l,d,a))return!1}return n.pop(),i.pop(),!0}function Fp(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||Fp(Object.getPrototypeOf(e),t)}function gk(e){return xa(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Ko(e,t,r=[]){let n=r.filter(o=>o!==Ko),i=(o=new WeakMap)=>(a,s)=>{if(gk(s))return Object.keys(s).every(p=>{if(s[p]!=null&&typeof s[p]=="object"){if(o.has(s[p]))return it(a[p],s[p],n);o.set(s[p],!0)}let l=a!=null&&Fp(a,p)&&it(a[p],s[p],[...n,i(o)]);return o.delete(s[p]),l})};return i()(e,t)}function ah(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function sh(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let i=0;i<r.byteLength;i++)if(r.getUint8(i)!==n.getUint8(i))return!1;return!0}function El(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),i=Object.keys(t),o=r.filter(a=>a!==El);return it(e,t,o,!0)&&it(n,i)}function bk(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
263
|
-
|
|
264
|
-
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
265
|
-
|
|
266
|
-
Expected: ${t}
|
|
267
|
-
Received: serializes to the same string
|
|
268
|
-
`:n}function Ek(e,t){return`${t} ${e}${t===1?"":"s"}`}function hu(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))===null||r===void 0?void 0:r.enumerable})]}function vk(e,t,r){let n=0,i=(o=new WeakMap)=>(a,s)=>{if(Array.isArray(a)){if(Array.isArray(s)&&s.length===a.length)return s.map((p,l)=>i(o)(a[l],p))}else{if(a instanceof Date)return a;if(xa(a)&&xa(s)){if(it(a,s,[...r,br,Ko]))return s;let p={};o.set(a,p),typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&Object.defineProperty(p,"constructor",{enumerable:!1,value:a.constructor});for(let l of hu(a))Fp(s,l)?p[l]=o.has(a[l])?o.get(a[l]):i(o)(a[l],s[l]):o.has(a[l])||(n+=1,xa(a[l])&&(n+=hu(a[l]).length),i(o)(a[l],s[l]));if(hu(p).length>0)return p}}return a};return{subset:i()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,So)){let e=new WeakMap;Object.defineProperty(globalThis,So,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,xo)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,xo,{configurable:!0,get:()=>({state:globalThis[So].get(globalThis[Rp]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,bl)){let e=Object.create(null);Object.defineProperty(globalThis,bl,{get:()=>e})}function Xa(e){return globalThis[So].get(e)}function mu(e,t){let r=globalThis[So],n=r.get(t)||{},i=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,i)}var on=class{constructor(e,t=!1){xt(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=e,this.inverse=t}getMatcherContext(e){return{...Xa(e||globalThis[Rp]),equals:it,isNot:this.inverse,customTesters:Op(),utils:{...bE(),diff:qi,stringify:fr,iterableEquality:br,subsetEquality:Ko}}}};on.prototype[Symbol.for("chai/inspect")]=function(e){let t=fr(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var uh=class extends on{constructor(e,t=!1){if(!Dr("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=Dr("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},Ak=class extends on{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},lh=class extends on{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!it(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},ch=class extends on{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(i=>it(n,i,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},_k=class extends on{constructor(e){if(typeof e>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:"<anonymous>"}asymmetricMatch(e){return this.sample===String?typeof e=="string"||e instanceof String:this.sample===Number?typeof e=="number"||e instanceof Number:this.sample===Function?typeof e=="function"||typeof e=="function":this.sample===Boolean?typeof e=="boolean"||e instanceof Boolean:this.sample===BigInt?typeof e=="bigint"||e instanceof BigInt:this.sample===Symbol?typeof e=="symbol"||e instanceof Symbol:this.sample===Object?typeof e=="object":e instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},ph=class extends on{constructor(e,t=!1){if(!Dr("String",e)&&!Dr("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=Dr("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},dh=class extends on{constructor(t,r=2,n=!1){if(!Dr("Number",t))throw new Error("Expected is not a Number");if(!Dr("Number",r))throw new Error("Precision is not a Number");super(t);xt(this,"precision");this.inverse=n,this.precision=r}asymmetricMatch(t){if(!Dr("Number",t))return!1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${Ek("digit",this.precision)})`].join(" ")}},wk=(e,t)=>{t.addMethod(e.expect,"anything",()=>new Ak),t.addMethod(e.expect,"any",r=>new _k(r)),t.addMethod(e.expect,"stringContaining",r=>new uh(r)),t.addMethod(e.expect,"objectContaining",r=>new lh(r)),t.addMethod(e.expect,"arrayContaining",r=>new ch(r)),t.addMethod(e.expect,"stringMatching",r=>new ph(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new dh(r,n)),e.expect.not={stringContaining:r=>new uh(r,!0),objectContaining:r=>new lh(r,!0),arrayContaining:r=>new ch(r,!0),stringMatching:r=>new ph(r,!0),closeTo:(r,n)=>new dh(r,n,!0)}};function fh(e,t,r){let n=e.flag(t,"negate")?"not.":"",i=`${e.flag(t,"_name")}(${r?"expected":""})`,o=e.flag(t,"promise");return`expect(actual)${o?`.${o}`:""}.${n}${i}`}function hh(e,t,r,n){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let a=i.promises.indexOf(t);a!==-1&&i.promises.splice(a,1)}),i.promises||(i.promises=[]),i.promises.push(t);let o=!1;return i.onFinished??(i.onFinished=[]),i.onFinished.push(()=>{if(!o){var a;let s=(((a=globalThis.__vitest_worker__)===null||a===void 0?void 0:a.onFilterStackTrace)||(p=>p||""))(n.stack);console.warn([`Promise returned by \`${r}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
|
|
269
|
-
`,s].join(""))}}),{then(a,s){return o=!0,t.then(a,s)},catch(a){return t.catch(a)},finally(a){return t.finally(a)},[Symbol.toStringTag]:"Promise"}}return t}function mh(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Jc(t))}function wE(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let i=e.flag(this,"vitest-test");if(!i)throw new Error("expect.soft() can only be used inside a test");try{let o=r.apply(this,n);return o&&typeof o=="object"&&typeof o.then=="function"?o.then(xF,a=>{mh(i,a)}):o}catch(o){mh(i,o)}}}var Ck=(e,t)=>{let{AssertionError:r}=e,n=Op();function i(l,d){let f=h=>{let m=wE(t,h,d);t.addMethod(e.Assertion.prototype,h,m),t.addMethod(globalThis[xo].matchers,h,m)};Array.isArray(l)?l.forEach(h=>f(h)):f(l)}["throw","throws","Throw"].forEach(l=>{t.overwriteMethod(e.Assertion.prototype,l,d=>function(...f){let h=t.flag(this,"promise"),m=t.flag(this,"object"),b=t.flag(this,"negate");if(h==="rejects")t.flag(this,"object",()=>{throw m});else if(h==="resolves"&&typeof m!="function"){if(b)return;{let E=t.flag(this,"message")||"expected promise to throw an error, but it didn't",_={showDiff:!1};throw new r(E,_,t.flag(this,"ssfi"))}}d.apply(this,f)})}),i("withTest",function(l){return t.flag(this,"vitest-test",l),this}),i("toEqual",function(l){let d=t.flag(this,"object"),f=it(d,l,[...n,br]);return this.assert(f,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",l,d)}),i("toStrictEqual",function(l){let d=t.flag(this,"object"),f=it(d,l,[...n,br,ah,El,sh],!0);return this.assert(f,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",l,d)}),i("toBe",function(l){let d=this._obj,f=Object.is(d,l),h="";return f||(it(d,l,[...n,br,ah,El,sh],!0)?h="toStrictEqual":it(d,l,[...n,br])&&(h="toEqual")),this.assert(f,bk(h),"expected #{this} not to be #{exp} // Object.is equality",l,d)}),i("toMatchObject",function(l){let d=this._obj,f=it(d,l,[...n,br,Ko]),h=t.flag(this,"negate"),{subset:m,stripped:b}=vk(d,l,n);if(f&&h||!f&&!h){let E=t.getMessage(this,[f,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",l,m,!1]),_=b===0?E:`${E}
|
|
270
|
-
(${b} matching ${b===1?"property":"properties"} omitted from actual)`;throw new r(_,{showDiff:!0,expected:l,actual:m})}}),i("toMatch",function(l){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof l=="string"?d.includes(l):d.match(l),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",l,d)}),i("toContain",function(l){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(l instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof l}`);return this.assert(d.contains(l),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",l,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){Jr(l,"class name",["string"]);let f=t.flag(this,"negate")?d.value.replace(l,"").trim():`${d.value} ${l}`;return this.assert(d.contains(l),`expected "${d.value}" to contain "${l}"`,`expected "${d.value}" not to contain "${l}"`,f,d.value)}return typeof d=="string"&&typeof l=="string"?this.assert(d.includes(l),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",l,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(l))}),i("toContainEqual",function(l){let d=t.flag(this,"object"),f=Array.from(d).findIndex(h=>it(h,l,n));this.assert(f!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",l)}),i("toBeTruthy",function(){let l=t.flag(this,"object");this.assert(!!l,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,l)}),i("toBeFalsy",function(){let l=t.flag(this,"object");this.assert(!l,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,l)}),i("toBeGreaterThan",function(l){let d=this._obj;return Jr(d,"actual",["number","bigint"]),Jr(l,"expected",["number","bigint"]),this.assert(d>l,`expected ${d} to be greater than ${l}`,`expected ${d} to be not greater than ${l}`,l,d,!1)}),i("toBeGreaterThanOrEqual",function(l){let d=this._obj;return Jr(d,"actual",["number","bigint"]),Jr(l,"expected",["number","bigint"]),this.assert(d>=l,`expected ${d} to be greater than or equal to ${l}`,`expected ${d} to be not greater than or equal to ${l}`,l,d,!1)}),i("toBeLessThan",function(l){let d=this._obj;return Jr(d,"actual",["number","bigint"]),Jr(l,"expected",["number","bigint"]),this.assert(d<l,`expected ${d} to be less than ${l}`,`expected ${d} to be not less than ${l}`,l,d,!1)}),i("toBeLessThanOrEqual",function(l){let d=this._obj;return Jr(d,"actual",["number","bigint"]),Jr(l,"expected",["number","bigint"]),this.assert(d<=l,`expected ${d} to be less than or equal to ${l}`,`expected ${d} to be not less than or equal to ${l}`,l,d,!1)}),i("toBeNaN",function(){let l=t.flag(this,"object");this.assert(Number.isNaN(l),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,l)}),i("toBeUndefined",function(){let l=t.flag(this,"object");this.assert(l===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,l)}),i("toBeNull",function(){let l=t.flag(this,"object");this.assert(l===null,"expected #{this} to be null","expected #{this} not to be null",null,l)}),i("toBeDefined",function(){let l=t.flag(this,"object");this.assert(typeof l<"u","expected #{this} to be defined","expected #{this} to be undefined",l)}),i("toBeTypeOf",function(l){let d=typeof this._obj,f=l===d;return this.assert(f,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",l,d)}),i("toBeInstanceOf",function(l){return this.instanceOf(l)}),i("toHaveLength",function(l){return this.have.length(l)}),i("toHaveProperty",function(...l){Array.isArray(l[0])&&(l[0]=l[0].map(T=>String(T).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[f,h]=l,m=()=>Object.prototype.hasOwnProperty.call(d,f)?{value:d[f],exists:!0}:t.getPathInfo(d,f),{value:b,exists:E}=m(),_=E&&(l.length===1||it(h,b,n)),A=l.length===1?"":` with value ${t.objDisplay(h)}`;return this.assert(_,`expected #{this} to have property "${f}"${A}`,`expected #{this} to not have property "${f}"${A}`,h,E?b:void 0)}),i("toBeCloseTo",function(l,d=2){let f=this._obj,h=!1,m=0,b=0;return l===Number.POSITIVE_INFINITY&&f===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY&&f===Number.NEGATIVE_INFINITY?h=!0:(m=10**-d/2,b=Math.abs(f-l),h=b<m),this.assert(h,`expected #{this} to be close to #{exp}, received difference is ${b}, but expected ${m}`,`expected #{this} to not be close to #{exp}, received difference is ${b}, but expected ${m}`,l,f,!1)});function o(l){if(!gi(l._obj))throw new TypeError(`${t.inspect(l._obj)} is not a spy or a call to a spy!`)}function a(l){return o(l),l._obj}i(["toHaveBeenCalledTimes","toBeCalledTimes"],function(l){let d=a(this),f=d.getMockName(),h=d.mock.calls.length;return this.assert(h===l,`expected "${f}" to be called #{exp} times, but got ${h} times`,`expected "${f}" to not be called #{exp} times`,l,h,!1)}),i("toHaveBeenCalledOnce",function(){let l=a(this),d=l.getMockName(),f=l.mock.calls.length;return this.assert(f===1,`expected "${d}" to be called once, but got ${f} times`,`expected "${d}" to not be called once`,1,f,!1)}),i(["toHaveBeenCalled","toBeCalled"],function(){let l=a(this),d=l.getMockName(),f=l.mock.calls.length,h=f>0,m=t.flag(this,"negate"),b=t.getMessage(this,[h,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${f} times`,!0,h]);if(h&&m&&(b=yu(l,b)),h&&m||!h&&!m)throw new r(b)});function s(l,d){return l.length===d.length&&l.every((f,h)=>it(f,d[h],[...n,br]))}i(["toHaveBeenCalledWith","toBeCalledWith"],function(...l){let d=a(this),f=d.getMockName(),h=d.mock.calls.some(E=>s(E,l)),m=t.flag(this,"negate"),b=t.getMessage(this,[h,`expected "${f}" to be called with arguments: #{exp}`,`expected "${f}" to not be called with arguments: #{exp}`,l]);if(h&&m||!h&&!m)throw new r(yu(d,b,l))}),i("toHaveBeenCalledExactlyOnceWith",function(...l){let d=a(this),f=d.getMockName(),h=d.mock.calls.length,m=d.mock.calls.some(_=>s(_,l))&&h===1,b=t.flag(this,"negate"),E=t.getMessage(this,[m,`expected "${f}" to be called once with arguments: #{exp}`,`expected "${f}" to not be called once with arguments: #{exp}`,l]);if(m&&b||!m&&!b)throw new r(yu(d,E,l))}),i(["toHaveBeenNthCalledWith","nthCalledWith"],function(l,...d){let f=a(this),h=f.getMockName(),m=f.mock.calls[l-1],b=f.mock.calls.length,E=l<=b;this.assert(m&&s(m,d),`expected ${lo(l)} "${h}" call to have been called with #{exp}${E?"":`, but called only ${b} times`}`,`expected ${lo(l)} "${h}" call to not have been called with #{exp}`,d,m,E)}),i(["toHaveBeenLastCalledWith","lastCalledWith"],function(...l){let d=a(this),f=d.getMockName(),h=d.mock.calls[d.mock.calls.length-1];this.assert(h&&s(h,l),`expected last "${f}" call to have been called with #{exp}`,`expected last "${f}" call to not have been called with #{exp}`,l,h)});function p(l,d,f){let h=l.mock.invocationCallOrder,m=d.mock.invocationCallOrder;return h.length===0?!f:m.length===0?!1:h[0]<m[0]}i(["toHaveBeenCalledBefore"],function(l,d=!0){let f=a(this);if(!gi(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(p(f,l,d),`expected "${f.getMockName()}" to have been called before "${l.getMockName()}"`,`expected "${f.getMockName()}" to not have been called before "${l.getMockName()}"`,l,f)}),i(["toHaveBeenCalledAfter"],function(l,d=!0){let f=a(this);if(!gi(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(p(l,f,d),`expected "${f.getMockName()}" to have been called after "${l.getMockName()}"`,`expected "${f.getMockName()}" to not have been called after "${l.getMockName()}"`,l,f)}),i(["toThrow","toThrowError"],function(l){if(typeof l=="string"||typeof l>"u"||l instanceof RegExp)return this.throws(l===""?/^$/:l);let d=this._obj,f=t.flag(this,"promise"),h=t.flag(this,"negate"),m=null;if(f==="rejects")m=d;else if(f==="resolves"&&typeof d!="function"){if(h)return;{let b=t.flag(this,"message")||"expected promise to throw an error, but it didn't",E={showDiff:!1};throw new r(b,E,t.flag(this,"ssfi"))}}else{let b=!1;try{d()}catch(E){b=!0,m=E}if(!b&&!h){let E=t.flag(this,"message")||"expected function to throw an error, but it didn't",_={showDiff:!1};throw new r(E,_,t.flag(this,"ssfi"))}}if(typeof l=="function"){let b=l.name||l.prototype.constructor.name;return this.assert(m&&m instanceof l,`expected error to be instance of ${b}`,`expected error not to be instance of ${b}`,l,m)}if(l instanceof Error){let b=it(m,l,[...n,br]);return this.assert(b,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",l,m)}if(typeof l=="object"&&"asymmetricMatch"in l&&typeof l.asymmetricMatch=="function"){let b=l;return this.assert(m&&b.asymmetricMatch(m),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",b,m)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof l}"`)}),[{name:"toHaveResolved",condition:l=>l.mock.settledResults.length>0&&l.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:l=>l.mock.calls.length>0&&l.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(){let h=a(this),m=h.getMockName(),b=d(h);this.assert(b,`expected "${m}" to be successfully ${f} at least once`,`expected "${m}" to not be successfully ${f}`,b,!b,!1)})}),[{name:"toHaveResolvedTimes",condition:(l,d)=>l.mock.settledResults.reduce((f,{type:h})=>h==="fulfilled"?++f:f,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(l,d)=>l.mock.results.reduce((f,{type:h})=>h==="throw"?f:++f,0)===d,action:"called"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(h){let m=a(this),b=m.getMockName(),E=d(m,h);this.assert(E,`expected "${b}" to be successfully ${f} ${h} times`,`expected "${b}" to not be successfully ${f} ${h} times`,`expected resolved times: ${h}`,`received resolved times: ${E}`,!1)})}),[{name:"toHaveResolvedWith",condition:(l,d)=>l.mock.settledResults.some(({type:f,value:h})=>f==="fulfilled"&&it(d,h)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(l,d)=>l.mock.results.some(({type:f,value:h})=>f==="return"&&it(d,h)),action:"return"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(h){let m=a(this),b=d(m,h),E=t.flag(this,"negate");if(b&&E||!b&&!E){let _=m.getMockName(),A=t.getMessage(this,[b,`expected "${_}" to ${f} with: #{exp} at least once`,`expected "${_}" to not ${f} with: #{exp}`,h]),T=f==="return"?m.mock.results:m.mock.settledResults;throw new r(Tk(m,T,A,h))}})}),[{name:"toHaveLastResolvedWith",condition:(l,d)=>{let f=l.mock.settledResults[l.mock.settledResults.length-1];return f&&f.type==="fulfilled"&&it(f.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(l,d)=>{let f=l.mock.results[l.mock.results.length-1];return f&&f.type==="return"&&it(f.value,d)},action:"return"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(h){let m=a(this),b=f==="return"?m.mock.results:m.mock.settledResults,E=b[b.length-1],_=m.getMockName();this.assert(d(m,h),`expected last "${_}" call to ${f} #{exp}`,`expected last "${_}" call to not ${f} #{exp}`,h,E?.value)})}),[{name:"toHaveNthResolvedWith",condition:(l,d,f)=>{let h=l.mock.settledResults[d-1];return h&&h.type==="fulfilled"&&it(h.value,f)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(l,d,f)=>{let h=l.mock.results[d-1];return h&&h.type==="return"&&it(h.value,f)},action:"return"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(h,m){let b=a(this),E=b.getMockName(),_=(f==="return"?b.mock.results:b.mock.settledResults)[h-1],A=`${lo(h)} call`;this.assert(d(b,h,m),`expected ${A} "${E}" call to ${f} #{exp}`,`expected ${A} "${E}" call to not ${f} #{exp}`,m,_?.value)})}),i("withContext",function(l){for(let d in l)t.flag(this,d,l[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let l=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",l);let d=t.flag(this,"vitest-test"),f=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof f?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof f}'.`);let h=new Proxy(this,{get:(m,b,E)=>{let _=Reflect.get(m,b,E);return typeof _!="function"?_ instanceof e.Assertion?h:_:(...A)=>{t.flag(this,"_name",b);let T=f.then(k=>(t.flag(this,"object",k),_.call(this,...A)),k=>{let O=new r(`promise rejected "${t.inspect(k)}" instead of resolving`,{showDiff:!1});throw O.cause=k,O.stack=l.stack.replace(l.message,O.message),O});return hh(d,T,fh(t,this,!!A.length),l)}}});return h}),t.addProperty(e.Assertion.prototype,"rejects",function(){let l=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",l);let d=t.flag(this,"vitest-test"),f=t.flag(this,"object"),h=typeof f=="function"?f():f;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof h?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof h}'.`);let m=new Proxy(this,{get:(b,E,_)=>{let A=Reflect.get(b,E,_);return typeof A!="function"?A instanceof e.Assertion?m:A:(...T)=>{t.flag(this,"_name",E);let k=h.then(O=>{let R=new r(`promise resolved "${t.inspect(O)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:O});throw R.stack=l.stack.replace(l.message,R.message),R},O=>(t.flag(this,"object",O),A.call(this,...T)));return hh(d,k,fh(t,this,!!T.length),l)}}});return m})};function lo(e){let t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}function yu(e,t,r){return e.mock.calls.length&&(t+=Pt.gray(`
|
|
271
|
-
|
|
272
|
-
Received:
|
|
273
|
-
|
|
274
|
-
${e.mock.calls.map((n,i)=>{let o=Pt.bold(` ${lo(i+1)} ${e.getMockName()} call:
|
|
275
|
-
|
|
276
|
-
`);return r?o+=qi(r,n,{omitAnnotationLines:!0}):o+=fr(n).split(`
|
|
277
|
-
`).map(a=>` ${a}`).join(`
|
|
278
|
-
`),o+=`
|
|
279
|
-
`,o}).join(`
|
|
280
|
-
`)}`)),t+=Pt.gray(`
|
|
281
|
-
|
|
282
|
-
Number of calls: ${Pt.bold(e.mock.calls.length)}
|
|
283
|
-
`),t}function Tk(e,t,r,n){return t.length&&(r+=Pt.gray(`
|
|
284
|
-
|
|
285
|
-
Received:
|
|
286
|
-
|
|
287
|
-
${t.map((i,o)=>{let a=Pt.bold(` ${lo(o+1)} ${e.getMockName()} call return:
|
|
288
|
-
|
|
289
|
-
`);return n?a+=qi(n,i.value,{omitAnnotationLines:!0}):a+=fr(i).split(`
|
|
290
|
-
`).map(s=>` ${s}`).join(`
|
|
291
|
-
`),a+=`
|
|
292
|
-
`,a}).join(`
|
|
293
|
-
`)}`)),r+=Pt.gray(`
|
|
294
|
-
|
|
295
|
-
Number of calls: ${Pt.bold(e.mock.calls.length)}
|
|
296
|
-
`),r}function Sk(e,t){let r=e._obj,n=kr.flag(e,"negate"),i=kr.flag(e,"promise")||"",o={...bE(),diff:qi,stringify:fr,iterableEquality:br,subsetEquality:Ko};return{state:{...Xa(t),customTesters:Op(),isNot:n,utils:o,promise:i,equals:it,suppressedErrors:[],soft:kr.flag(e,"soft"),poll:kr.flag(e,"poll")},isNot:n,obj:r}}var yh=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function xk(e,t,r){return(n,i)=>{Object.entries(r).forEach(([o,a])=>{function s(...f){let{state:h,isNot:m,obj:b}=Sk(this,t),E=a.call(h,b,...f);if(E&&typeof E=="object"&&typeof E.then=="function")return E.then(({pass:O,message:R,actual:y,expected:S})=>{if(O&&m||!O&&!m)throw new yh(R(),y,S)});let{pass:_,message:A,actual:T,expected:k}=E;if(_&&m||!_&&!m)throw new yh(A(),T,k)}let p=wE(i,o,s);i.addMethod(globalThis[xo].matchers,o,p),i.addMethod(e.Assertion.prototype,o,p);class l extends on{constructor(h=!1,...m){super(m,h)}asymmetricMatch(h){let{pass:m}=a.call(this.getMatcherContext(t),h,...this.sample);return this.inverse?!m:m}toString(){return`${this.inverse?"not.":""}${o}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(h=>fr(h)).join(", ")}>`}}let d=(...f)=>new l(!1,...f);Object.defineProperty(t,o,{configurable:!0,enumerable:!0,value:d,writable:!0}),Object.defineProperty(t.not,o,{configurable:!0,enumerable:!0,value:(...f)=>new l(!0,...f),writable:!0}),Object.defineProperty(globalThis[bl],o,{configurable:!0,enumerable:!0,value:d,writable:!0})})}}var Dk=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{mi(xk(e,r,n))})};function Rk(){mi(Dk),mi(Ck),mi(wk);let e=(n,i)=>{let{assertionCalls:o}=Xa(e);return mu({assertionCalls:o+1,soft:!1},e),Jn(n,i)};Object.assign(e,Jn),e.getState=()=>Xa(e),e.setState=n=>mu(n,e),e.extend=n=>Jn.extend(e,n),e.soft=(...n)=>{let i=e(...n);return e.setState({soft:!0}),i},e.extend(QB),e.unreachable=n=>{V.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let i=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:i})}function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return mu({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),kr.addMethod(e,"assertions",t),kr.addMethod(e,"hasAssertions",r),e.extend(A0),e}var CE=Rk();Object.defineProperty(globalThis,Rp,{value:CE,writable:!0,configurable:!0});function Pk(e,t,r){Object.defineProperty(e,t,r)}var Pa=Symbol.for("tinyspy:spy"),Ok=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},Fk=e=>(Pk(e,Pa,{value:{reset:()=>Ok(e[Pa])}}),e[Pa]),Ik=e=>e[Pa]||Fk(e),vl=new Set;function TE(e){return vl.add(e),()=>void vl.delete(e)}var Nk=(...e)=>{let t=KB(...e);return xE(t)};function SE(e){let t=e?th(e):th();return xE(t)}function xE(e){let t=gh(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>gh(r(n)),t}function gh(e){let t=Ik(e),r=t.impl;return t.willCall(function(...n){return vl.forEach(i=>i(e,n)),r?.apply(this,n)}),e}function DE(){Wo.forEach(e=>e.mockClear())}function RE(){Wo.forEach(e=>e.mockReset())}function PE(){Wo.forEach(e=>e.mockRestore())}function Bk(e,t={}){return e}var OE={};ur(OE,{buildQueries:()=>sn,configure:()=>WM,createEvent:()=>Fa,findAllByAltText:()=>Bv,findAllByDisplayValue:()=>Rv,findAllByLabelText:()=>uv,findAllByPlaceholderText:()=>gv,findAllByRole:()=>Wv,findAllByTestId:()=>eA,findAllByText:()=>wv,findAllByTitle:()=>$v,findByAltText:()=>kv,findByDisplayValue:()=>Pv,findByLabelText:()=>lv,findByPlaceholderText:()=>bv,findByRole:()=>Kv,findByTestId:()=>tA,findByText:()=>Cv,findByTitle:()=>Vv,fireEvent:()=>Fo,getAllByAltText:()=>Iv,getAllByDisplayValue:()=>xv,getAllByLabelText:()=>cv,getAllByPlaceholderText:()=>mv,getAllByRole:()=>Gv,getAllByTestId:()=>Qv,getAllByText:()=>Av,getAllByTitle:()=>qv,getByAltText:()=>Nv,getByDisplayValue:()=>Dv,getByLabelText:()=>pv,getByPlaceholderText:()=>yv,getByRole:()=>zv,getByTestId:()=>Zv,getByText:()=>_v,getByTitle:()=>Lv,getConfig:()=>Xe,getDefaultNormalizer:()=>jp,getElementError:()=>js,getMultipleElementsFoundError:()=>qs,getNodeText:()=>Yo,getQueriesForElement:()=>Pl,getRoles:()=>tv,getSuggestedQuery:()=>Za,isInaccessible:()=>Ms,logDOM:()=>Al,logRoles:()=>ZM,makeFindQuery:()=>Si,makeGetAllQuery:()=>$p,makeSingleQuery:()=>Ti,prettyDOM:()=>Po,prettyFormat:()=>Ip,queries:()=>es,queryAllByAltText:()=>Ov,queryAllByAttribute:()=>ni,queryAllByDisplayValue:()=>Tv,queryAllByLabelText:()=>dv,queryAllByPlaceholderText:()=>fv,queryAllByRole:()=>Jv,queryAllByTestId:()=>Yv,queryAllByText:()=>Ev,queryAllByTitle:()=>Mv,queryByAltText:()=>Fv,queryByAttribute:()=>nv,queryByDisplayValue:()=>Sv,queryByLabelText:()=>av,queryByPlaceholderText:()=>hv,queryByRole:()=>Hv,queryByTestId:()=>Xv,queryByText:()=>vv,queryByTitle:()=>jv,queryHelpers:()=>fj,screen:()=>$j,waitFor:()=>Lp,waitForElementToBeRemoved:()=>Nj,within:()=>Pl,wrapAllByQueryWithSuggestion:()=>sr,wrapSingleQueryWithSuggestion:()=>Cn});var Ip=kt(WS()),kk=Object.prototype.toString;function Mk(e){return typeof e=="function"||kk.call(e)==="[object Function]"}function jk(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var qk=Math.pow(2,53)-1;function Lk(e){var t=jk(e);return Math.min(Math.max(t,0),qk)}function Sr(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var i=Lk(n.length),o=Mk(r)?Object(new r(i)):new Array(i),a=0,s;a<i;)s=n[a],o[a]=s,a+=1;return o.length=i,o}function Do(e){"@babel/helpers - typeof";return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Do(e)}function $k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FE(n.key),n)}}function Uk(e,t,r){return t&&Vk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jk(e,t,r){return t=FE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FE(e){var t=Hk(e,"string");return Do(t)==="symbol"?t:String(t)}function Hk(e,t){if(Do(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Do(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gk=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];$k(this,e),Jk(this,"items",void 0),this.items=t}return Uk(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),zk=typeof Set>"u"?Set:Gk;function Qt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Wk={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},Kk={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function Yk(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=Kk[t])!==null&&n!==void 0&&n.has(r))})}function IE(e,t){return Yk(e,t)}function Xk(e){var t=Zk(e);if(t===null||t==="presentation"){var r=Qk(e);if(t!=="presentation"||IE(e,r||""))return r}return t}function Qk(e){var t=Wk[Qt(e)];if(t!==void 0)return t;switch(Qt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!IE(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function Zk(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Ct(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function NE(e){return Ct(e)&&Qt(e)==="caption"}function Oa(e){return Ct(e)&&Qt(e)==="input"}function eM(e){return Ct(e)&&Qt(e)==="optgroup"}function tM(e){return Ct(e)&&Qt(e)==="select"}function rM(e){return Ct(e)&&Qt(e)==="table"}function nM(e){return Ct(e)&&Qt(e)==="textarea"}function iM(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function oM(e){return Ct(e)&&Qt(e)==="fieldset"}function aM(e){return Ct(e)&&Qt(e)==="legend"}function sM(e){return Ct(e)&&Qt(e)==="slot"}function uM(e){return Ct(e)&&e.ownerSVGElement!==void 0}function lM(e){return Ct(e)&&Qt(e)==="svg"}function cM(e){return uM(e)&&Qt(e)==="title"}function Qa(e,t){if(Ct(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function Yr(e,t){return Ct(e)?t.indexOf(Xk(e))!==-1:!1}function pM(e){return e.trim().replace(/\s\s+/g," ")}function dM(e,t){if(!Ct(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function fM(e){return Yr(e,["button","combobox","listbox","textbox"])||BE(e,"range")}function BE(e,t){if(!Ct(e))return!1;switch(t){case"range":return Yr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function bh(e,t){var r=Sr(e.querySelectorAll(t));return Qa(e,"aria-owns").forEach(function(n){r.push.apply(r,Sr(n.querySelectorAll(t)))}),r}function hM(e){return tM(e)?e.selectedOptions||bh(e,"[selected]"):bh(e,'[aria-selected="true"]')}function mM(e){return Yr(e,["none","presentation"])}function yM(e){return NE(e)}function gM(e){return Yr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function bM(e){return!1}function EM(e){return Oa(e)||nM(e)?e.value:e.textContent||""}function Eh(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function kE(e){var t=Qt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function ME(e){if(kE(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Ct(r)){var n=ME(r);n!==null&&(t=n)}}),t}function vM(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):ME(e)}function AM(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Sr(t);if(!kE(e))return null;var r=e.ownerDocument;return Sr(r.querySelectorAll("label")).filter(function(n){return vM(n)===e})}function _M(e){var t=e.assignedNodes();return t.length===0?Sr(e.childNodes):t}function jE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new zk,n=iM(e),i=t.compute,o=i===void 0?"name":i,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,p=t.getComputedStyle,l=p===void 0?n.getComputedStyle.bind(n):p,d=t.hidden,f=d===void 0?!1:d;function h(A,T){var k="";if(Ct(A)&&s){var O=l(A,"::before"),R=Eh(O);k="".concat(R," ").concat(k)}var y=sM(A)?_M(A):Sr(A.childNodes).concat(Qa(A,"aria-owns"));if(y.forEach(function(D){var J=_(D,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),M=Ct(D)?l(D).getPropertyValue("display"):"inline",G=M!=="inline"?" ":"";k+="".concat(G).concat(J).concat(G)}),Ct(A)&&s){var S=l(A,"::after"),C=Eh(S);k="".concat(k," ").concat(C)}return k.trim()}function m(A,T){var k=A.getAttributeNode(T);return k!==null&&!r.has(k)&&k.value.trim()!==""?(r.add(k),k.value):null}function b(A){return Ct(A)?m(A,"title"):null}function E(A){if(!Ct(A))return null;if(oM(A)){r.add(A);for(var T=Sr(A.childNodes),k=0;k<T.length;k+=1){var O=T[k];if(aM(O))return _(O,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(rM(A)){r.add(A);for(var R=Sr(A.childNodes),y=0;y<R.length;y+=1){var S=R[y];if(NE(S))return _(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(lM(A)){r.add(A);for(var C=Sr(A.childNodes),D=0;D<C.length;D+=1){var J=C[D];if(cM(J))return J.textContent}return null}else if(Qt(A)==="img"||Qt(A)==="area"){var M=m(A,"alt");if(M!==null)return M}else if(eM(A)){var G=m(A,"label");if(G!==null)return G}if(Oa(A)&&(A.type==="button"||A.type==="submit"||A.type==="reset")){var L=m(A,"value");if(L!==null)return L;if(A.type==="submit")return"Submit";if(A.type==="reset")return"Reset"}var N=AM(A);if(N!==null&&N.length!==0)return r.add(A),Sr(N).map(function(ne){return _(ne,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(ne){return ne.length>0}).join(" ");if(Oa(A)&&A.type==="image"){var U=m(A,"alt");if(U!==null)return U;var W=m(A,"title");return W!==null?W:"Submit Query"}if(Yr(A,["button"])){var K=h(A,{isEmbeddedInLabel:!1});if(K!=="")return K}return null}function _(A,T){if(r.has(A))return"";if(!f&&dM(A,l)&&!T.isReferenced)return r.add(A),"";var k=Ct(A)?A.getAttributeNode("aria-labelledby"):null,O=k!==null&&!r.has(k)?Qa(A,"aria-labelledby"):[];if(o==="name"&&!T.isReferenced&&O.length>0)return r.add(k),O.map(function(M){return _(M,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var R=T.recursion&&fM(A)&&o==="name";if(!R){var y=(Ct(A)&&A.getAttribute("aria-label")||"").trim();if(y!==""&&o==="name")return r.add(A),y;if(!mM(A)){var S=E(A);if(S!==null)return r.add(A),S}}if(Yr(A,["menu"]))return r.add(A),"";if(R||T.isEmbeddedInLabel||T.isReferenced){if(Yr(A,["combobox","listbox"])){r.add(A);var C=hM(A);return C.length===0?Oa(A)?A.value:"":Sr(C).map(function(M){return _(M,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(BE(A,"range"))return r.add(A),A.hasAttribute("aria-valuetext")?A.getAttribute("aria-valuetext"):A.hasAttribute("aria-valuenow")?A.getAttribute("aria-valuenow"):A.getAttribute("value")||"";if(Yr(A,["textbox"]))return r.add(A),EM(A)}if(gM(A)||Ct(A)&&T.isReferenced||yM(A)||bM()){var D=h(A,{isEmbeddedInLabel:T.isEmbeddedInLabel});if(D!=="")return r.add(A),D}if(A.nodeType===A.TEXT_NODE)return r.add(A),A.textContent||"";if(T.recursion)return r.add(A),h(A,{isEmbeddedInLabel:T.isEmbeddedInLabel});var J=b(A);return J!==null?(r.add(A),J):(r.add(A),"")}return pM(_(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function Ro(e){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(e)}function vh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ah(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(r),!0).forEach(function(n){wM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wM(e,t,r){return t=CM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CM(e){var t=TM(e,"string");return Ro(t)==="symbol"?t:String(t)}function TM(e,t){if(Ro(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ro(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Qa(e,"aria-describedby").map(function(i){return jE(i,Ah(Ah({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function SM(e){return Yr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Np(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return SM(e)?"":jE(e,t)}var gr=kt(ac()),xM=kt(KS());function LE(e){return e.replace(/</g,"<").replace(/>/g,">")}var DM=(e,t,r,n,i,o,a)=>{let s=n+r.indent,p=r.colors;return e.map(l=>{let d=t[l],f=a(d,r,s,i,o);return typeof d!="string"&&(f.indexOf(`
|
|
297
|
-
`)!==-1&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+p.prop.open+l+p.prop.close+"="+p.value.open+f+p.value.close}).join("")},RM=3,PM=(e,t,r,n,i,o)=>e.map(a=>{let s=typeof a=="string"?$E(a,t):o(a,t,r,n,i);return s===""&&typeof a=="object"&&a!==null&&a.nodeType!==RM?"":t.spacingOuter+r+s}).join(""),$E=(e,t)=>{let r=t.colors.content;return r.open+LE(e)+r.close},OM=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+LE(e)+"-->"+r.close},FM=(e,t,r,n,i)=>{let o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+i+o.open)+(r?">"+o.close+r+n.spacingOuter+i+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close},IM=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},NM=1,VE=3,UE=8,JE=11,BM=/^((HTML|SVG)\w*)?Element$/,HE=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},kM=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===NM&&(BM.test(t)||HE(e))||r===VE&&t==="Text"||r===UE&&t==="Comment"||r===JE&&t==="DocumentFragment"};function MM(e){return e.nodeType===VE}function jM(e){return e.nodeType===UE}function gu(e){return e.nodeType===JE}function qM(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||HE(t))&&kM(t)},serialize:(t,r,n,i,o,a)=>{if(MM(t))return $E(t.data,r);if(jM(t))return OM(t.data,r);let s=gu(t)?"DocumentFragment":t.tagName.toLowerCase();return++i>r.maxDepth?IM(s,r):FM(s,DM(gu(t)?[]:Array.from(t.attributes).map(p=>p.name).sort(),gu(t)?{}:Array.from(t.attributes).reduce((p,l)=>(p[l.name]=l.value,p),{}),r,n+r.indent,i,o,a),PM(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,i,o,a),r,n)}}}var GE=null,Bp=null,kp=null;try{let e=module&&module.require;Bp=e.call(module,"fs").readFileSync,kp=e.call(module,"@babel/code-frame").codeFrameColumns,GE=e.call(module,"picocolors")}catch{}function LM(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),i=n.split(":"),[o,a,s]=[i[0],parseInt(i[1],10),parseInt(i[2],10)],p="";try{p=Bp(o,"utf-8")}catch{return""}let l=kp(p,{start:{line:a,column:s}},{highlightCode:!0,linesBelow:0});return GE.dim(n)+`
|
|
298
|
-
`+l+`
|
|
299
|
-
`}function $M(){if(!Bp||!kp)return"";let e=new Error().stack.split(`
|
|
300
|
-
`).slice(1).find(t=>!t.includes("node_modules/"));return LM(e)}var zE=3;function bu(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function Mp(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function WE(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function an(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var VM=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=Bu)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:UM}=Ip.plugins,JM=1,HM=8;function GM(e){return e.nodeType!==HM&&(e.nodeType!==JM||!e.matches(Xe().defaultIgnore))}function Po(e,t,r){if(r===void 0&&(r={}),e||(e=Mp().body),typeof t!="number"&&(t=typeof process<"u"&&typeof Bu<"u"&&Bu.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:i=GM,...o}=r,a=Ip.format(e,{plugins:[qM(i),UM],printFunctionName:!1,highlight:VM(),...o});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}var Al=function(){let e=$M();console.log(e?Po(...arguments)+`
|
|
301
|
-
|
|
302
|
-
`+e:Po(...arguments))},Hn={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=Po(t),n=new Error([e,"Ignored nodes: comments, "+Hn.defaultIgnore+`
|
|
303
|
-
`+r].filter(Boolean).join(`
|
|
304
|
-
|
|
305
|
-
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function zM(e){try{return Hn._disableExpensiveErrorDiagnostics=!0,e()}finally{Hn._disableExpensiveErrorDiagnostics=!1}}function WM(e){typeof e=="function"&&(e=e(Hn)),Hn={...Hn,...e}}function Xe(){return Hn}var KM=["button","meter","output","progress","select","textarea","input"];function KE(e){return KM.includes(e.nodeName.toLowerCase())?"":e.nodeType===zE?e.textContent:Array.from(e.childNodes).map(t=>KE(t)).join("")}function _l(e){let t;return e.tagName.toLowerCase()==="label"?t=KE(e):t=e.value||e.textContent,t}function YE(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!YM(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function YM(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function XE(e,t,r){let{selector:n="*"}=r===void 0?{}:r,i=t.getAttribute("aria-labelledby"),o=i?i.split(" "):[];return o.length?o.map(a=>{let s=e.querySelector('[id="'+a+'"]');return s?{content:_l(s),formControl:null}:{content:"",formControl:null}}):Array.from(YE(t)).map(a=>{let s=_l(a),p=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(l=>l.matches(n))[0];return{content:s,formControl:p}})}function QE(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function $i(e,t,r,n){if(typeof e!="string")return!1;QE(r);let i=n(e);return typeof r=="string"||typeof r=="number"?i.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(i,t):ZE(r,i)}function tn(e,t,r,n){if(typeof e!="string")return!1;QE(r);let i=n(e);return r instanceof Function?r(i,t):r instanceof RegExp?ZE(r,i):i===String(r)}function jp(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let i=n;return i=t?i.trim():i,i=r?i.replace(/\s+/g," "):i,i}}function ri(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return jp({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function ZE(e,t){let r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function Yo(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===zE&&!!t.textContent).map(t=>t.textContent).join("")}var XM=QM(gr.elementRoles);function ev(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function Ms(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=ev}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}function qp(e){for(let{match:t,roles:r}of XM)if(t(e))return[...r];return[]}function QM(e){function t(a){let{name:s,attributes:p}=a;return""+s+p.map(l=>{let{name:d,value:f,constraints:h=[]}=l,m=h.indexOf("undefined")!==-1,b=h.indexOf("set")!==-1;return typeof f<"u"?"["+d+'="'+f+'"]':m?":not(["+d+"])":b?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}function r(a){let{attributes:s=[]}=a;return s.length}function n(a,s){let{specificity:p}=a,{specificity:l}=s;return l-p}function i(a){let{attributes:s=[]}=a,p=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");p>=0&&(s=[...s.slice(0,p),...s.slice(p+1)]);let l=t({...a,attributes:s});return d=>p>=0&&d.type!=="text"?!1:d.matches(l)}let o=[];for(let[a,s]of e.entries())o=[...o,{match:i(a),roles:Array.from(s),specificity:r(a)}];return o.sort(n)}function tv(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(i){return[i,...Array.from(i.children).reduce((o,a)=>[...o,...n(a)],[])]}return n(e).filter(i=>r===!1?Ms(i)===!1:!0).reduce((i,o)=>{let a=[];return o.hasAttribute("role")?a=o.getAttribute("role").split(" ").slice(0,1):a=qp(o),a.reduce((s,p)=>Array.isArray(s[p])?{...s,[p]:[...s[p],o]}:{...s,[p]:[o]},i)},{})}function rv(e,t){let{hidden:r,includeDescription:n}=t,i=tv(e,{hidden:r});return Object.entries(i).filter(o=>{let[a]=o;return a!=="generic"}).map(o=>{let[a,s]=o,p="-".repeat(50),l=s.map(d=>{let f='Name "'+Np(d,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements})+`":
|
|
306
|
-
`,h=Po(d.cloneNode(!1));if(n){let m='Description "'+qE(d,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements})+`":
|
|
307
|
-
`;return""+f+m+h}return""+f+h}).join(`
|
|
308
|
-
|
|
309
|
-
`);return a+`:
|
|
310
|
-
|
|
311
|
-
`+l+`
|
|
312
|
-
|
|
313
|
-
`+p}).join(`
|
|
314
|
-
`)}var ZM=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(rv(e,{hidden:r}))};function ej(e){return e.tagName==="OPTION"?e.selected:Xo(e,"aria-selected")}function tj(e){return e.getAttribute("aria-busy")==="true"}function rj(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Xo(e,"aria-checked")}function nj(e){return Xo(e,"aria-pressed")}function ij(e){var t,r;return(t=(r=Xo(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function oj(e){return Xo(e,"aria-expanded")}function Xo(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function aj(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function sj(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function uj(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function lj(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function cj(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var _h=jp();function pj(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function wh(e){return new RegExp(pj(e.toLowerCase()),"i")}function cn(e,t,r,n){let{variant:i,name:o}=n,a="",s={},p=[["Role","TestId"].includes(e)?r:wh(r)];o&&(s.name=wh(o)),e==="Role"&&Ms(t)&&(s.hidden=!0,a=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
315
|
-
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
316
|
-
`),Object.keys(s).length>0&&p.push(s);let l=i+"By"+e;return{queryName:e,queryMethod:l,queryArgs:p,variant:i,warning:a,toString(){a&&console.warn(a);let[d,f]=p;return d=typeof d=="string"?"'"+d+"'":d,f=f?", { "+Object.entries(f).map(h=>{let[m,b]=h;return m+": "+b}).join(", ")+" }":"",l+"("+d+f+")"}}}function pn(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function Za(e,t,r){var n,i;if(t===void 0&&(t="get"),e.matches(Xe().defaultIgnore))return;let o=(n=e.getAttribute("role"))!=null?n:(i=qp(e))==null?void 0:i[0];if(o!=="generic"&&pn("Role",r,o))return cn("Role",e,o,{variant:t,name:Np(e,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements})});let a=XE(document,e).map(h=>h.content).join(" ");if(pn("LabelText",r,a))return cn("LabelText",e,a,{variant:t});let s=e.getAttribute("placeholder");if(pn("PlaceholderText",r,s))return cn("PlaceholderText",e,s,{variant:t});let p=_h(Yo(e));if(pn("Text",r,p))return cn("Text",e,p,{variant:t});if(pn("DisplayValue",r,e.value))return cn("DisplayValue",e,_h(e.value),{variant:t});let l=e.getAttribute("alt");if(pn("AltText",r,l))return cn("AltText",e,l,{variant:t});let d=e.getAttribute("title");if(pn("Title",r,d))return cn("Title",e,d,{variant:t});let f=e.getAttribute(Xe().testIdAttribute);if(pn("TestId",r,f))return cn("TestId",e,f,{variant:t})}function pa(e,t){e.stack=t.stack.replace(t.message,e.message)}function dj(e,t){let{container:r=Mp(),timeout:n=Xe().asyncUtilTimeout,showOriginalStackTrace:i=Xe().showOriginalStackTrace,stackTraceError:o,interval:a=50,onTimeout:s=l=>(Object.defineProperty(l,"message",{value:Xe().getElementError(l.message,r).message}),l),mutationObserverOptions:p={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(l,d)=>{let f,h,m,b=!1,E="idle",_=setTimeout(R,n),A=bu();if(A){let{unstable_advanceTimersWrapper:y}=Xe();for(O();!b;){if(!bu()){let S=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");i||pa(S,o),d(S);return}if(await y(async()=>{jest.advanceTimersByTime(a)}),b)break;O()}}else{try{an(r)}catch(S){d(S);return}h=setInterval(k,a);let{MutationObserver:y}=WE(r);m=new y(k),m.observe(r,p),O()}function T(y,S){b=!0,clearTimeout(_),A||(clearInterval(h),m.disconnect()),y?d(y):l(S)}function k(){if(bu()){let y=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return i||pa(y,o),d(y)}else return O()}function O(){if(E!=="pending")try{let y=zM(e);typeof y?.then=="function"?(E="pending",y.then(S=>{E="resolved",T(null,S)},S=>{E="rejected",f=S})):T(null,y)}catch(y){f=y}}function R(){let y;f?(y=f,!i&&y.name==="TestingLibraryElementError"&&pa(y,o)):(y=new Error("Timed out in waitFor."),i||pa(y,o)),T(s(y),null)}})}function Lp(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Xe().asyncWrapper(()=>dj(e,{stackTraceError:r,...t}))}function js(e,t){return Xe().getElementError(e,t)}function qs(e,t){return js(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function ni(e,t,r,n){let{exact:i=!0,collapseWhitespace:o,trim:a,normalizer:s}=n===void 0?{}:n,p=i?tn:$i,l=ri({collapseWhitespace:o,trim:a,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>p(d.getAttribute(e),d,r,l))}function nv(e,t,r,n){let i=ni(e,t,r,n);if(i.length>1)throw qs("Found multiple elements by ["+e+"="+r+"]",t);return i[0]||null}function Ti(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let a=e(r,...i);if(a.length>1){let s=a.map(p=>js(null,p).message).join(`
|
|
317
|
-
|
|
318
|
-
`);throw qs(t(r,...i)+`
|
|
319
|
-
|
|
320
|
-
Here are the matching elements:
|
|
321
|
-
|
|
322
|
-
`+s,r)}return a[0]||null}}function iv(e,t){return Xe().getElementError(`A better query is available, try this:
|
|
323
|
-
`+e.toString()+`
|
|
324
|
-
`,t)}function $p(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let a=e(r,...i);if(!a.length)throw Xe().getElementError(t(r,...i),r);return a}}function Si(e){return(t,r,n,i)=>Lp(()=>e(t,r,n),{container:t,...i})}var Cn=(e,t,r)=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=e(n,...o),[{suggest:p=Xe().throwSuggestions}={}]=o.slice(-1);if(s&&p){let l=Za(s,r);if(l&&!t.endsWith(l.queryName))throw iv(l.toString(),n)}return s},sr=(e,t,r)=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=e(n,...o),[{suggest:p=Xe().throwSuggestions}={}]=o.slice(-1);if(s.length&&p){let l=[...new Set(s.map(d=>{var f;return(f=Za(d,r))==null?void 0:f.toString()}))];if(l.length===1&&!t.endsWith(Za(s[0],r).queryName))throw iv(l[0],n)}return s};function sn(e,t,r){let n=Cn(Ti(e,t),e.name,"query"),i=$p(e,r),o=Ti(i,t),a=Cn(o,e.name,"get"),s=sr(i,e.name.replace("query","get"),"getAll"),p=Si(sr(i,e.name,"findAll")),l=Si(Cn(o,e.name,"find"));return[n,s,a,p,l]}var fj=Object.freeze({__proto__:null,getElementError:js,wrapAllByQueryWithSuggestion:sr,wrapSingleQueryWithSuggestion:Cn,getMultipleElementsFoundError:qs,queryAllByAttribute:ni,queryByAttribute:nv,makeSingleQuery:Ti,makeGetAllQuery:$p,makeFindQuery:Si,buildQueries:sn});function hj(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:_l(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var mj=function(e,t,r){let{exact:n=!0,trim:i,collapseWhitespace:o,normalizer:a}=r===void 0?{}:r,s=n?tn:$i,p=ri({collapseWhitespace:o,trim:i,normalizer:a});return hj(e).filter(l=>{let{node:d,textToMatch:f}=l;return s(f,d,t,p)}).map(l=>{let{node:d}=l;return d})},Oo=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:o,trim:a,normalizer:s}=r===void 0?{}:r;an(e);let p=i?tn:$i,l=ri({collapseWhitespace:o,trim:a,normalizer:s}),d=Array.from(e.querySelectorAll("*")).filter(f=>YE(f).length||f.hasAttribute("aria-labelledby")).reduce((f,h)=>{let m=XE(e,h,{selector:n});m.filter(E=>!!E.formControl).forEach(E=>{p(E.content,E.formControl,t,l)&&E.formControl&&f.push(E.formControl)});let b=m.filter(E=>!!E.content).map(E=>E.content);return p(b.join(" "),h,t,l)&&f.push(h),b.length>1&&b.forEach((E,_)=>{p(E,h,t,l)&&f.push(h);let A=[...b];A.splice(_,1),A.length>1&&p(A.join(" "),h,t,l)&&f.push(h)}),f},[]).concat(ni("aria-label",e,t,{exact:i,normalizer:l}));return Array.from(new Set(d)).filter(f=>f.matches(n))},Xn=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];let o=Oo(e,t,...n);if(!o.length){let a=mj(e,t,...n);if(a.length){let s=a.map(p=>yj(e,p)).filter(p=>!!p);throw s.length?Xe().getElementError(s.map(p=>"Found a label with the text of: "+t+", however the element associated with this label (<"+p+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+p+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
325
|
-
|
|
326
|
-
`),e):Xe().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw Xe().getElementError("Unable to find a label with the text of: "+t,e)}return o};function yj(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var ov=(e,t)=>"Found multiple elements with the text of: "+t,av=Cn(Ti(Oo,ov),Oo.name,"query"),sv=Ti(Xn,ov),uv=Si(sr(Xn,Xn.name,"findAll")),lv=Si(Cn(sv,Xn.name,"find")),cv=sr(Xn,Xn.name,"getAll"),pv=Cn(sv,Xn.name,"get"),dv=sr(Oo,Oo.name,"queryAll"),wl=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return an(t[0]),ni("placeholder",...t)},gj=(e,t)=>"Found multiple elements with the placeholder text of: "+t,bj=(e,t)=>"Unable to find an element with the placeholder text of: "+t,fv=sr(wl,wl.name,"queryAll"),[hv,mv,yv,gv,bv]=sn(wl,gj,bj),Cl=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:o,trim:a,ignore:s=Xe().defaultIgnore,normalizer:p}=r===void 0?{}:r;an(e);let l=i?tn:$i,d=ri({collapseWhitespace:o,trim:a,normalizer:p}),f=[];return typeof e.matches=="function"&&e.matches(n)&&(f=[e]),[...f,...Array.from(e.querySelectorAll(n))].filter(h=>!s||!h.matches(s)).filter(h=>l(Yo(h),h,t,d))},Ej=(e,t)=>"Found multiple elements with the text: "+t,vj=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:i,normalizer:o,selector:a}=r,s=ri({collapseWhitespace:n,trim:i,normalizer:o})(t.toString()),p=s!==t.toString(),l=(a??"*")!=="*";return"Unable to find an element with the text: "+(p?s+" (normalized from '"+t+"')":t)+(l?", which matches selector '"+a+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},Ev=sr(Cl,Cl.name,"queryAll"),[vv,Av,_v,wv,Cv]=sn(Cl,Ej,vj),Tl=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:o,normalizer:a}=r===void 0?{}:r;an(e);let s=n?tn:$i,p=ri({collapseWhitespace:i,trim:o,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(l=>l.tagName==="SELECT"?Array.from(l.options).filter(d=>d.selected).some(d=>s(Yo(d),d,t,p)):s(l.value,l,t,p))},Aj=(e,t)=>"Found multiple elements with the display value: "+t+".",_j=(e,t)=>"Unable to find an element with the display value: "+t+".",Tv=sr(Tl,Tl.name,"queryAll"),[Sv,xv,Dv,Rv,Pv]=sn(Tl,Aj,_j),wj=/^(img|input|area|.+-.+)$/i,Sl=function(e,t,r){return r===void 0&&(r={}),an(e),ni("alt",e,t,r).filter(n=>wj.test(n.tagName))},Cj=(e,t)=>"Found multiple elements with the alt text: "+t,Tj=(e,t)=>"Unable to find an element with the alt text: "+t,Ov=sr(Sl,Sl.name,"queryAll"),[Fv,Iv,Nv,Bv,kv]=sn(Sl,Cj,Tj),Sj=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},xl=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:o,normalizer:a}=r===void 0?{}:r;an(e);let s=n?tn:$i,p=ri({collapseWhitespace:i,trim:o,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(l=>s(l.getAttribute("title"),l,t,p)||Sj(l)&&s(Yo(l),l,t,p))},xj=(e,t)=>"Found multiple elements with the title: "+t+".",Dj=(e,t)=>"Unable to find an element with the title: "+t+".",Mv=sr(xl,xl.name,"queryAll"),[jv,qv,Lv,$v,Vv]=sn(xl,xj,Dj),Dl=function(e,t,r){let{hidden:n=Xe().defaultHidden,name:i,description:o,queryFallbacks:a=!1,selected:s,busy:p,checked:l,pressed:d,current:f,level:h,expanded:m,value:{now:b,min:E,max:_,text:A}={}}=r===void 0?{}:r;if(an(e),s!==void 0){var T;if(((T=gr.roles.get(t))==null?void 0:T.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(p!==void 0){var k;if(((k=gr.roles.get(t))==null?void 0:k.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(l!==void 0){var O;if(((O=gr.roles.get(t))==null?void 0:O.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(d!==void 0){var R;if(((R=gr.roles.get(t))==null?void 0:R.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(f!==void 0){var y;if(((y=gr.roles.get(t))==null?void 0:y.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(h!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(b!==void 0){var S;if(((S=gr.roles.get(t))==null?void 0:S.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(_!==void 0){var C;if(((C=gr.roles.get(t))==null?void 0:C.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(E!==void 0){var D;if(((D=gr.roles.get(t))==null?void 0:D.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(A!==void 0){var J;if(((J=gr.roles.get(t))==null?void 0:J.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(m!==void 0){var M;if(((M=gr.roles.get(t))==null?void 0:M.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let G=new WeakMap;function L(N){return G.has(N)||G.set(N,ev(N)),G.get(N)}return Array.from(e.querySelectorAll(Rj(t))).filter(N=>{if(N.hasAttribute("role")){let U=N.getAttribute("role");if(a)return U.split(" ").filter(Boolean).some(K=>K===t);let[W]=U.split(" ");return W===t}return qp(N).some(U=>U===t)}).filter(N=>{if(s!==void 0)return s===ej(N);if(p!==void 0)return p===tj(N);if(l!==void 0)return l===rj(N);if(d!==void 0)return d===nj(N);if(f!==void 0)return f===ij(N);if(m!==void 0)return m===oj(N);if(h!==void 0)return h===aj(N);if(b!==void 0||_!==void 0||E!==void 0||A!==void 0){let W=!0;if(b!==void 0&&W&&(W=b===sj(N)),_!==void 0&&W&&(W=_===uj(N)),E!==void 0&&W&&(W=E===lj(N)),A!==void 0){var U;W&&(W=tn((U=cj(N))!=null?U:null,N,A,K=>K))}return W}return!0}).filter(N=>i===void 0?!0:tn(Np(N,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements}),N,i,U=>U)).filter(N=>o===void 0?!0:tn(qE(N,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements}),N,o,U=>U)).filter(N=>n===!1?Ms(N,{isSubtreeInaccessible:L})===!1:!0)};function Rj(e){var t;let r='*[role~="'+e+'"]',n=(t=gr.roleElements.get(e))!=null?t:new Set,i=new Set(Array.from(n).map(o=>{let{name:a}=o;return a}));return[r].concat(Array.from(i)).join(",")}var Uv=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},Pj=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+Uv(n)},Oj=function(e,t,r){let{hidden:n=Xe().defaultHidden,name:i,description:o}=r===void 0?{}:r;if(Xe()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+Uv(i);let a="";Array.from(e.children).forEach(d=>{a+=rv(d,{hidden:n,includeDescription:o!==void 0})});let s;a.length===0?n===!1?s="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":s="There are no available roles.":s=(`
|
|
327
|
-
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
328
|
-
|
|
329
|
-
`+a.replace(/\n/g,`
|
|
330
|
-
`).replace(/\n\s\s\n/g,`
|
|
331
|
-
|
|
332
|
-
`)+`
|
|
333
|
-
`).trim();let p="";i===void 0?p="":typeof i=="string"?p=' and name "'+i+'"':p=" and name `"+i+"`";let l="";return o===void 0?l="":typeof o=="string"?l=' and description "'+o+'"':l=" and description `"+o+"`",(`
|
|
334
|
-
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+p+l+`
|
|
335
|
-
|
|
336
|
-
`+s).trim()},Jv=sr(Dl,Dl.name,"queryAll"),[Hv,Gv,zv,Wv,Kv]=sn(Dl,Pj,Oj),Vp=()=>Xe().testIdAttribute,Rl=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return an(t[0]),ni(Vp(),...t)},Fj=(e,t)=>"Found multiple elements by: ["+Vp()+'="'+t+'"]',Ij=(e,t)=>"Unable to find an element by: ["+Vp()+'="'+t+'"]',Yv=sr(Rl,Rl.name,"queryAll"),[Xv,Qv,Zv,eA,tA]=sn(Rl,Fj,Ij),es=Object.freeze({__proto__:null,queryAllByLabelText:dv,queryByLabelText:av,getAllByLabelText:cv,getByLabelText:pv,findAllByLabelText:uv,findByLabelText:lv,queryByPlaceholderText:hv,queryAllByPlaceholderText:fv,getByPlaceholderText:yv,getAllByPlaceholderText:mv,findAllByPlaceholderText:gv,findByPlaceholderText:bv,queryByText:vv,queryAllByText:Ev,getByText:_v,getAllByText:Av,findAllByText:wv,findByText:Cv,queryByDisplayValue:Sv,queryAllByDisplayValue:Tv,getByDisplayValue:Dv,getAllByDisplayValue:xv,findAllByDisplayValue:Rv,findByDisplayValue:Pv,queryByAltText:Fv,queryAllByAltText:Ov,getByAltText:Nv,getAllByAltText:Iv,findAllByAltText:Bv,findByAltText:kv,queryByTitle:jv,queryAllByTitle:Mv,getByTitle:Lv,getAllByTitle:qv,findAllByTitle:$v,findByTitle:Vv,queryByRole:Hv,queryAllByRole:Jv,getAllByRole:Gv,getByRole:zv,findAllByRole:Wv,findByRole:Kv,queryByTestId:Xv,queryAllByTestId:Yv,getByTestId:Zv,getAllByTestId:Qv,findAllByTestId:eA,findByTestId:tA});function Pl(e,t,r){return t===void 0&&(t=es),r===void 0&&(r={}),Object.keys(t).reduce((n,i)=>{let o=t[i];return n[i]=o.bind(null,e),n},r)}var rA=e=>!e||Array.isArray(e)&&!e.length;function Ch(e){if(rA(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function Nj(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Ch(e);let n=(Array.isArray(e)?e:[e]).map(i=>{let o=i.parentElement;if(o===null)return()=>null;for(;o.parentElement;)o=o.parentElement;return()=>o.contains(i)?i:null});e=()=>n.map(i=>i()).filter(Boolean)}return Ch(e()),Lp(()=>{let n;try{n=e()}catch(i){if(i.name==="TestingLibraryElementError")return;throw i}if(!rA(n))throw r},t)}var Th={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},Sh={doubleClick:"dblClick"};function Fo(e,t){return Xe().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Fa(e,t,r,n){let{EventType:i="Event",defaultInit:o={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let a={...o,...r},{target:{value:s,files:p,...l}={}}=a;s!==void 0&&Bj(t,s),p!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:p}),Object.assign(t,l);let d=WE(t),f=d[i]||d.Event,h;if(typeof f=="function")h=new f(e,a);else{h=d.document.createEvent(i);let{bubbles:m,cancelable:b,detail:E,..._}=a;h.initEvent(e,m,b,E),Object.keys(_).forEach(A=>{h[A]=_[A]})}return["dataTransfer","clipboardData"].forEach(m=>{let b=a[m];typeof b=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(h,m,{value:Object.getOwnPropertyNames(b).reduce((E,_)=>(Object.defineProperty(E,_,{value:b[_]}),E),new d.DataTransfer)}):Object.defineProperty(h,m,{value:b}))}),h}Object.keys(Th).forEach(e=>{let{EventType:t,defaultInit:r}=Th[e],n=e.toLowerCase();Fa[e]=(i,o)=>Fa(n,i,o,{EventType:t,defaultInit:r}),Fo[e]=(i,o)=>Fo(i,Fa[e](i,o))});function Bj(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:i}=Object.getOwnPropertyDescriptor(n,"value")||{};if(i&&r!==i)i.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(Sh).forEach(e=>{let t=Sh[e];Fo[e]=function(){return Fo[t](...arguments)}});function kj(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
337
|
-
`)}function Mj(e){return xM.default.compressToEncodedURIComponent(kj(e))}function jj(e){return"https://testing-playground.com/#markup="+Mj(e)}var qj=(e,t,r)=>Array.isArray(e)?e.forEach(n=>Al(n,t,r)):Al(e,t,r),Lj=function(e){if(e===void 0&&(e=Mp().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}let t=jj(e.innerHTML);return console.log(`Open this URL in your browser
|
|
338
|
-
|
|
339
|
-
`+t),t},xh={debug:qj,logTestingPlaygroundURL:Lj},$j=typeof document<"u"&&document.body?Pl(document.body,es,xh):Object.keys(es).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),xh);function Je(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,i])=>e[n]===i):!0}function _r(e){var t;if(Vj(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${Uj(e)}`)}function Vj(e){return e.nodeType===9}function Uj(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function nA(e,t){return new Promise((r,n)=>{let i=new t;i.onerror=n,i.onabort=n,i.onload=()=>{r(String(i.result))},i.readAsText(e)})}function Up(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function En(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var iA=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){En(this,"kind",void 0),En(this,"type",void 0),En(this,"file",null),En(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e)}},Jj=class extends Array{add(...e){let t=new iA(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function da(e,t){let[r,n]=e.split("/"),i=!n||n==="*";return o=>t?o.type===(i?r:e):i?o.type.startsWith(`${r}/`):o.type===r}function Hj(e){return new class{getData(t){var r;let n=(r=this.items.find(da(t,!0)))!==null&&r!==void 0?r:this.items.find(da(t,!1)),i="";return n?.getAsString(o=>{i=o}),i}setData(t,r){let n=this.items.findIndex(da(t,!0)),i=new iA(r,t);n>=0?this.items.splice(n,1,i):this.items.push(i)}clearData(t){if(t){let r=this.items.findIndex(da(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){En(this,"dropEffect","none"),En(this,"effectAllowed","uninitialized"),En(this,"items",new Jj),En(this,"files",Up(e,[]))}}}function Jp(e,t=[]){let r=typeof e.DataTransfer>"u"?Hj(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>Up(e,t)}),r}async function Gj(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function oA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aA(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let i=await this.data[n];if(!i)throw new Error(`${n} is not one of the available MIME types on this item.`);return i instanceof e.Blob?i:new e.Blob([i],{type:n})}constructor(n){oA(this,"data",void 0),this.data=n}}(r)}var xi=Symbol("Manage ClipboardSub");function Dh(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let i=n.types.includes("text/plain")?"text/plain":n.types.find(o=>o.startsWith("text/"));i&&(r+=await n.getType(i).then(o=>nA(o,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[aA(e,r)]}constructor(...r){super(...r),oA(this,"items",[])}},{[xi]:t})}function Hp(e){return!!e?.[xi]}function zj(e){if(Hp(e.navigator.clipboard))return e.navigator.clipboard[xi];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=Dh(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=Dh(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[xi]}function Wj(e){Hp(e.navigator.clipboard)&&e.navigator.clipboard[xi].resetClipboardStub()}function Kj(e){Hp(e.navigator.clipboard)&&e.navigator.clipboard[xi].detachClipboardStub()}async function Yj(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let i=Jp(t);for(let o of n)for(let a of o.types)i.setData(a,await o.getType(a).then(s=>nA(s,t.FileReader)));return i}async function sA(e,t){let r=_r(e),n=r.navigator.clipboard,i=[];for(let o=0;o<t.items.length;o++){let a=t.items[o],s=await Gj(r,a);i.push(aA(r,s))}if(!(n&&await n.write(i).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var ts=globalThis;typeof ts.afterEach=="function"&&ts.afterEach(()=>{typeof globalThis.window<"u"&&Wj(globalThis.window)});typeof ts.afterAll=="function"&&ts.afterAll(()=>{typeof globalThis.window<"u"&&Kj(globalThis.window)});var uA=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function Gp(e){return e.matches(uA)}function Xj(e){return new e.constructor(e.type,e)}function rn(e){for(let r=e;r;r=r.parentElement)if(Je(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(Je(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function Qo(e){let t=e.activeElement;return t?.shadowRoot?Qo(t.shadowRoot):rn(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function Eu(e){var t;return(t=Qo(e))!==null&&t!==void 0?t:e.body}function Qj(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function Qn(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function Io(e){let t=Zj(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function Zj(e){return e.nodeType===1?e:e.parentElement}var lA=function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e}(lA||{});function cA(e){return Je(e,"button")||Je(e,"input")&&e.type in lA}function Di(e){return dA(e)&&!e.readOnly||Qn(e)}var pA=function(e){return e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week",e}(pA||{});function dA(e){return Je(e,"textarea")||Je(e,"input")&&e.type in pA}function jr(e){return fA(e)&&dA(e)}function eq(e){return fA(e)&&cA(e)}function fA(e){return e.nodeType===1}function tq(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&jr(e)){let n=Io(t.focusNode);if(n){if(!t.isCollapsed){var r;let i=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(i,0,i,0)}}else t.setBaseAndExtent(e,0,e,0)}}function Ri(e,t){return Xe().eventWrapper(e)}function Dn(e){let t=Qj(e,Gp),r=Qo(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(Ri(t?()=>t.focus():()=>r?.blur()),tq(t??e.ownerDocument.body))}function rq(e){!Gp(e)||Qo(e.ownerDocument)!==e||Ri(()=>e.blur())}var Rn={};Rn.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),i=n&&Je(n,"label")&&n.control;if(i&&i!==t)return()=>{Gp(i)&&(Dn(i),r.dispatchEvent(i,Xj(e)))};if(Je(t,"input",{type:"file"}))return()=>{rq(t),t.dispatchEvent(new(_r(t)).Event("fileDialog")),Dn(t)}};var Pi=Symbol("Displayed value in UI"),Xr=Symbol("Displayed selection in UI"),rs=Symbol("Initial value to compare on blur");function nq(e){return typeof e=="object"&&Pi in e}function iq(e){return!!e&&typeof e=="object"&&Xr in e}function oq(e,t){e[rs]===void 0&&(e[rs]=e.value),e[Pi]=t,e.value=Object.assign(new String(t),{[Pi]:!0})}function qr(e){return e[Pi]===void 0?e.value:String(e[Pi])}function zp(e){e[Pi]=void 0}function hA(e){e[rs]=void 0}function aq(e){return e[rs]}function sq(e,t){e[Xr]=t}function Vi(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let i=qr(e).length,o=f=>Math.max(0,Math.min(i,f)),a=n==="replace"||e[Xr]===void 0?o(r):e[Xr].anchorOffset,s=o(t),p=Math.min(a,s),l=Math.max(a,s);if(e[Xr]={anchorOffset:a,focusOffset:s},e.selectionStart===p&&e.selectionEnd===l)return;let d=Object.assign(new Number(p),{[Xr]:!0});try{e.setSelectionRange(d,l)}catch{}}function No(e){var t,r,n;let i=(n=e[Xr])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...i,startOffset:Math.min(i.anchorOffset,i.focusOffset),endOffset:Math.max(i.anchorOffset,i.focusOffset)}}function uq(e){return!!e[Xr]}function Ia(e){e[Xr]=void 0}var ns=globalThis.parseInt;function lq(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=ns(t[0],10),n=ns(t[1],10);if(r>=3||r===2&&n>=4){let i;return r>=3?i=1:i=2,Rh(t,i)}return e.length===2?e:Rh(t,2)}function Rh(e,t){let r=e.slice(0,t),n=Math.min(ns(r,10),23),i=e.slice(t),o=ns(i,10),a=Math.min(o,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}function mA(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var yA=function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e}(yA||{});function cq(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function pq(e){return Je(e,"textarea")||Je(e,"input")&&e.type in yA}function gA(e,t,r,n){if(Na(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let i=Ph(e,t,r);if(i){if(Na(i))return{node:i,offset:r>0?Math.min(1,i.nodeValue.length):Math.max(i.nodeValue.length-1,0)};if(Je(i,"br")){let o=Ph(i,void 0,r);return o?Na(o)?{node:o,offset:r>0?0:o.nodeValue.length}:r<0&&Je(o,"br")?{node:i.parentNode,offset:fa(i)}:{node:o.parentNode,offset:fa(o)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:i.parentNode,offset:fa(i)}:void 0}else return{node:i.parentNode,offset:fa(i)+(r>0?1:0)}}}function Ph(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Wp(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),fq(e,r===1?"next":"previous",dq)}function dq(e){if(Na(e))return!0;if(Wp(e)){if(Je(e,["input","textarea"]))return e.type!=="hidden";if(Je(e,"br"))return!0}return!1}function fa(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Wp(e){return e.nodeType===1}function Na(e){return e.nodeType===3}function fq(e,t,r){for(;;){var n;let i=e[`${t}Sibling`];if(i){if(e=hq(i,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Wp(e.parentNode)||!Qn(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function hq(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var Bo=Symbol("Track programmatic changes for React workaround");function mq(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&_r(e).REACT_VERSION===17}function yq(e){mq(e)&&(e[Bo]={previousValue:String(e.value),tracked:[]})}function gq(e,t){var r,n;(n=e[Bo])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Bo]||(zp(e),Vi(e,{focusOffset:t.length}))}function bq(e,t){var r;let n=e[Bo];if(e[Bo]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let i=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;i||zp(e),uq(e)&&Vi(e,{focusOffset:i?t:e.value.length})}function bA(e){let t=Eq(e);if(t&&jr(t))return{type:"input",selection:No(t)};let r=t?.ownerDocument.getSelection();return{type:Io(e)&&r?.anchorNode&&Io(r.anchorNode)?"contenteditable":"default",selection:r}}function Eq(e){return e.nodeType===1?e:e.parentElement}function vq(e){let t=bA(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function Zn({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var i,o;if(bA(e).type==="input")return Vi(e,{anchorOffset:n,focusOffset:t});(o=r.ownerDocument)===null||o===void 0||(i=o.getSelection())===null||i===void 0||i.setBaseAndExtent(r,n,e,t)}function EA(e){return Je(e,"input")&&["date","time"].includes(e.type)}function Oi(e,t,r,n="insertText"){let i=vq(t);i&&(!EA(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in i?Aq(e,t,i,r,n):_q(e,t,i,r,n)))}function Aq(e,t,r,n,i){let o=!1;if(!r.collapsed)o=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(i)){let a=gA(r.startContainer,r.startOffset,i==="deleteContentBackward"?-1:1,i);if(a){o=!0;let s=r.cloneRange();s.comparePoint(a.node,a.offset)<0?s.setStart(a.node,a.offset):s.setEnd(a.node,a.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let a=r.endOffset;r.endContainer.insertData(a,n),r.setStart(r.endContainer,a+n.length),r.setEnd(r.endContainer,a+n.length)}else{let a=t.ownerDocument.createTextNode(n);r.insertNode(a),r.setStart(a,n.length),r.setEnd(a,n.length)}(o||n)&&e.dispatchUIEvent(t,"input",{inputType:i})}function _q(e,t,r,n,i){let o=n;if(pq(t)){let l=cq(t);if(l!==void 0&&n.length>0){let d=l-t.value.length;if(d>0)o=n.substring(0,d);else return}}let{newValue:a,newOffset:s,oldValue:p}=wq(o,t,r,i);a===p&&s===r.startOffset&&s===r.endOffset||Je(t,"input",{type:"number"})&&!Cq(a)||(oq(t,a),Zn({focusNode:t,anchorOffset:s,focusOffset:s}),EA(t)?mA(t,a)&&(Oh(e,t,s,{}),e.dispatchUIEvent(t,"change"),hA(t)):Oh(e,t,s,{data:n,inputType:i}))}function wq(e,t,{startOffset:r,endOffset:n},i){let o=qr(t),a=Math.max(0,r===n&&i==="deleteContentBackward"?r-1:r),s=o.substring(0,a),p=Math.min(o.length,r===n&&i==="deleteContentForward"?r+1:n),l=o.substring(p,o.length),d=`${s}${e}${l}`,f=a+e.length;if(Je(t,"input",{type:"time"})){let h=lq(d);h!==""&&mA(t,h)&&(d=h,f=h.length)}return{oldValue:o,newValue:d,newOffset:f}}function Oh(e,t,r,n){e.dispatchUIEvent(t,"input",n),bq(t,r)}function Cq(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}Rn.cut=(e,t,r)=>()=>{Di(t)&&Oi(r,t,"","deleteByCut")};function Tq(e){return e?Qn(e)?e.textContent:qr(e):null}function Sq(e){let t=_r(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:i}=t.getComputedStyle(r);if(n==="none"||i==="hidden")return!1}return!0}function xq(e,t){let r=e.ownerDocument,n=r.querySelectorAll(uA),i=Array.from(n).filter(p=>p===e||!(Number(p.getAttribute("tabindex"))<0||rn(p)));Number(e.getAttribute("tabindex"))>=0&&i.sort((p,l)=>{let d=Number(p.getAttribute("tabindex")),f=Number(l.getAttribute("tabindex"));return d===f?0:d===0?1:f===0?-1:d-f});let o={},a=[r.body],s=Je(e,"input",{type:"radio"})?e.name:void 0;i.forEach(p=>{let l=p;if(Je(l,"input",{type:"radio"})&&l.name){if(l===e){a.push(l);return}else if(l.name===s)return;if(l.checked){a=a.filter(d=>!Je(d,"input",{type:"radio",name:l.name})),a.push(l),o[l.name]=l;return}if(typeof o[l.name]<"u")return}a.push(l)});for(let p=a.findIndex(l=>l===e);;)if(p+=t?-1:1,p===a.length?p=0:p===-1&&(p=a.length-1),a[p]===e||a[p]===r.body||Sq(a[p]))return a[p]}function Fh(e,t){if(jr(e)){let r=No(e);Zn({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=gA(r.focusNode,r.focusOffset,t);n&&Zn({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function vA(e){if(jr(e))return Zn({focusNode:e,anchorOffset:0,focusOffset:qr(e).length});var t;let r=(t=Io(e))!==null&&t!==void 0?t:e.ownerDocument.body;Zn({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function Dq(e){if(jr(e))return No(e).startOffset===0&&No(e).endOffset===qr(e).length;var t;let r=(t=Io(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function ro(e,t,r){var n;if(jr(e))return Zn({focusNode:e,anchorOffset:t,focusOffset:r});if(Qn(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Zn({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function ha(e,t,r){let n=_r(t),i=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let o=i.findIndex(a=>a===t)+r;;o+=r){if(i[o]||(o=r>0?0:i.length-1),i[o]===t)return;if(!rn(i[o])){Dn(i[o]),e.dispatchUIEvent(i[o],"click");return}}}Rn.keydown=(e,t,r)=>{var n,i;return(i=(n=Ih[e.key])===null||n===void 0?void 0:n.call(Ih,e,t,r))!==null&&i!==void 0?i:Rq(e,t,r)};var Ih={ArrowDown:(e,t,r)=>{if(Je(t,"input",{type:"radio"}))return()=>ha(r,t,1)},ArrowLeft:(e,t,r)=>Je(t,"input",{type:"radio"})?()=>ha(r,t,-1):()=>Fh(t,-1),ArrowRight:(e,t,r)=>Je(t,"input",{type:"radio"})?()=>ha(r,t,1):()=>Fh(t,1),ArrowUp:(e,t,r)=>{if(Je(t,"input",{type:"radio"}))return()=>ha(r,t,-1)},Backspace:(e,t,r)=>{if(Di(t))return()=>{Oi(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(Di(t))return()=>{Oi(r,t,"","deleteContentForward")}},End:(e,t)=>{if(Je(t,["input","textarea"])||Qn(t))return()=>{var r,n;let i=(n=(r=Tq(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;ro(t,i,i)}},Home:(e,t)=>{if(Je(t,["input","textarea"])||Qn(t))return()=>{ro(t,0,0)}},PageDown:(e,t)=>{if(Je(t,["input"]))return()=>{let r=qr(t).length;ro(t,r,r)}},PageUp:(e,t)=>{if(Je(t,["input"]))return()=>{ro(t,0,0)}},Tab:(e,t,r)=>()=>{let n=xq(t,r.system.keyboard.modifiers.Shift);Dn(n),jr(n)&&Vi(n,{anchorOffset:0,focusOffset:n.value.length})}},Rq=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>vA(t)};Rn.keypress=(e,t,r)=>{if(e.key==="Enter"){if(Je(t,"button")||Je(t,"input")&&Pq.includes(t.type)||Je(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(Je(t,"input")){let n=t.form,i=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return i?()=>r.dispatchUIEvent(i,"click"):n&&Oq.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Di(t)){let n=e.key==="Enter"?Qn(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",i=e.key==="Enter"?`
|
|
340
|
-
`:e.key;return()=>Oi(r,t,i,n)}};var Pq=["button","color","file","image","reset","submit"],Oq=["email","month","password","search","tel","text","url","week"];Rn.keyup=(e,t,r)=>{var n;return(n=Nh[e.key])===null||n===void 0?void 0:n.call(Nh,e,t,r)};var Nh={" ":(e,t,r)=>{if(cA(t))return()=>r.dispatchUIEvent(t,"click")}};Rn.paste=(e,t,r)=>{if(Di(t))return()=>{var n;let i=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");i&&Oi(r,t,i,"insertFromPaste")}};var AA={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusin:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusout:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function _A(e){return AA[e].EventType}var Fq=["MouseEvent","PointerEvent"];function Iq(e){return Fq.includes(_A(e))}function Nq(e){return _A(e)==="KeyboardEvent"}var Bq={ClipboardEvent:[Mq],Event:[],FocusEvent:[Xi,jq],InputEvent:[Xi,qq],MouseEvent:[Xi,vu,Bh],PointerEvent:[Xi,vu,Bh,$q],KeyboardEvent:[Xi,vu,Lq]};function wA(e,t,r){let n=_r(t),{EventType:i,defaultInit:o}=AA[e],a=new(kq(n))[i](e,o);return Bq[i].forEach(s=>s(a,r??{})),a}function kq(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let i=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var o;let a=(o=e.ClipboardEvent)!==null&&o!==void 0?o:class extends r{};var s;let p=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var l;let d=(l=e.ProgressEvent)!==null&&l!==void 0?l:class extends r{};var f;let h=(f=e.TransitionEvent)!==null&&f!==void 0?f:class extends r{};var m;let b=(m=e.UIEvent)!==null&&m!==void 0?m:class extends r{};var E;let _=(E=e.CompositionEvent)!==null&&E!==void 0?E:class extends b{};var A;let T=(A=e.FocusEvent)!==null&&A!==void 0?A:class extends b{};var k;let O=(k=e.InputEvent)!==null&&k!==void 0?k:class extends b{};var R;let y=(R=e.KeyboardEvent)!==null&&R!==void 0?R:class extends b{};var S;let C=(S=e.MouseEvent)!==null&&S!==void 0?S:class extends b{};var D;let J=(D=e.DragEvent)!==null&&D!==void 0?D:class extends C{};var M;let G=(M=e.PointerEvent)!==null&&M!==void 0?M:class extends C{};var L;let N=(L=e.TouchEvent)!==null&&L!==void 0?L:class extends b{};return{Event:r,AnimationEvent:i,ClipboardEvent:a,PopStateEvent:p,ProgressEvent:d,TransitionEvent:h,UIEvent:b,CompositionEvent:_,FocusEvent:T,InputEvent:O,KeyboardEvent:y,MouseEvent:C,DragEvent:J,PointerEvent:G,TouchEvent:N}}function Fn(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function Dt(e){return Number(e??0)}function Mq(e,{clipboardData:t}){Fn(e,{clipboardData:t})}function jq(e,{relatedTarget:t}){Fn(e,{relatedTarget:t})}function qq(e,{data:t,inputType:r,isComposing:n}){Fn(e,{data:t,isComposing:!!n,inputType:String(r)})}function Xi(e,{view:t,detail:r}){Fn(e,{view:t,detail:Dt(r??0)})}function vu(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,modifierAltGraph:o,modifierCapsLock:a,modifierFn:s,modifierFnLock:p,modifierNumLock:l,modifierScrollLock:d,modifierSymbol:f,modifierSymbolLock:h}){Fn(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!i,getModifierState(m){return!!{Alt:t,AltGraph:o,CapsLock:a,Control:r,Fn:s,FnLock:p,Meta:n,NumLock:l,ScrollLock:d,Shift:i,Symbol:f,SymbolLock:h}[m]}})}function Lq(e,{key:t,code:r,location:n,repeat:i,isComposing:o,charCode:a}){Fn(e,{key:String(t),code:String(r),location:Dt(n),repeat:!!i,isComposing:!!o,charCode:a})}function Bh(e,{x:t,y:r,screenX:n,screenY:i,clientX:o=t,clientY:a=r,button:s,buttons:p,relatedTarget:l,offsetX:d,offsetY:f,pageX:h,pageY:m}){Fn(e,{screenX:Dt(n),screenY:Dt(i),clientX:Dt(o),x:Dt(o),clientY:Dt(a),y:Dt(a),button:Dt(s),buttons:Dt(p),relatedTarget:l,offsetX:Dt(d),offsetY:Dt(f),pageX:Dt(h),pageY:Dt(m)})}function $q(e,{pointerId:t,width:r,height:n,pressure:i,tangentialPressure:o,tiltX:a,tiltY:s,twist:p,pointerType:l,isPrimary:d}){Fn(e,{pointerId:Dt(t),width:Dt(r??1),height:Dt(n??1),pressure:Dt(i),tangentialPressure:Dt(o),tiltX:Dt(a),tiltY:Dt(s),twist:Dt(p),pointerType:String(l),isPrimary:!!d})}function Vq(e,t,r,n=!1){(Iq(t)||Nq(t))&&(r={...r,...this.system.getUIEventModifiers()});let i=wA(t,e,r);return CA.call(this,e,i,n)}function CA(e,t,r=!1){var n;let i=t.type,o=r?()=>{}:(n=Rn[i])===null||n===void 0?void 0:n.call(Rn,t,e,this);if(o){t.preventDefault();let a=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>a}),Object.defineProperty(t,"preventDefault",{value:()=>{a=t.cancelable}}),Ri(()=>e.dispatchEvent(t)),a||o(),!a}return Ri(()=>e.dispatchEvent(t))}function $n(e,t,r){let n=wA(t,e,r);Ri(()=>e.dispatchEvent(n))}var kh=Symbol("patched focus/blur methods");function TA(e){if(e.prototype[kh])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>i},blur:{configurable:!0,get:()=>o},[kh]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function i(a){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,a);let s=Mh(this.ownerDocument);if(s===this)return;let p=Symbol("focus call");n=p,s&&(r.call(s),$n(s,"blur",{relatedTarget:this}),$n(s,"focusout",{relatedTarget:n===p?this:null})),n===p&&(t.call(this,a),$n(this,"focus",{relatedTarget:s})),n===p&&$n(this,"focusin",{relatedTarget:s})}function o(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let a=Mh(this.ownerDocument);a===this&&(n=Symbol("blur call"),r.call(this),$n(a,"blur",{relatedTarget:null}),$n(a,"focusout",{relatedTarget:null}))}}function Mh(e){let t=Qo(e);return t?.tagName==="BODY"?null:t}var Au=Symbol("Interceptor for programmatical calls");function fi(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=Object.getOwnPropertyDescriptor(e,t),o=n?.set?"set":"value";if(typeof n?.[o]!="function"||n[o][Au])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function a(...s){let{applyNative:p=!1,realArgs:l,then:d}=r.call(this,...s),f=(!p&&i||n)[o];o==="set"?f.call(this,l):f.call(this,...l),d?.()}a[Au]=Au,Object.defineProperty(e,t,{...i??n,[o]:a})}function Uq(e){fi(e,"value",function(t){let r=nq(t);return r&&yq(this),{applyNative:!!r,realArgs:Jq(this,t),then:r?void 0:()=>gq(this,String(t))}})}function Jq(e,t){return Je(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function Hq(e){fi(e,"setSelectionRange",function(t,...r){let n=iq(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:Ia(e)}}),fi(e,"selectionStart",function(t){return{realArgs:t,then:()=>Ia(e)}}),fi(e,"selectionEnd",function(t){return{realArgs:t,then:()=>Ia(e)}}),fi(e,"select",function(){return{realArgs:[],then:()=>sq(e,{anchorOffset:0,focusOffset:qr(e).length})}})}function Gq(e){fi(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{zp(e),Ia(e)}}})}var bi=Symbol("Node prepared with document state workarounds");function SA(e){e[bi]||(e.addEventListener("focus",t=>{let r=t.target;jh(r)},{capture:!0,passive:!0}),e.activeElement&&jh(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=aq(r);n!==void 0&&(r.value!==n&&$n(r,"change"),hA(r))},{capture:!0,passive:!0}),e[bi]=bi)}function jh(e){e[bi]||(Je(e,["input","textarea"])&&(Uq(e),Hq(e),Gq(e)),e[bi]=bi)}function zq(e){return Wq(e)?e:e.ownerDocument}function Wq(e){return e.nodeType===9}var pr=function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e}({});function no(e,t){e.levelRefs[t]={}}function ma(e,t){return e.levelRefs[t]}function Fi(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var Ba=function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e}({});function kn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fr=function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e}({}),Kq=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function qh(e){return Kq.includes(e)}var Yq=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Lh(e){return Yq.includes(e)}var Xq=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let r=String(t.key),n=String(t.code),i=Eu(e.config.document);this.setKeydownTarget(i),this.pressed.add(n,t),qh(r)&&(this.modifiers[r]=!0);let o=e.dispatchUIEvent(i,"keydown",{key:r,code:n});Lh(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),o&&this.pressed.setUnprevented(n),o&&this.hasKeyPress(r)&&e.dispatchUIEvent(Eu(e.config.document),"keypress",{key:r,code:n,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),i=this.pressed.isUnprevented(n);this.pressed.delete(n),qh(r)&&!this.pressed.values().find(o=>o.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(Eu(e.config.document),"keyup",{key:r,code:n},!i),Lh(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){kn(this,"system",void 0),kn(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),kn(this,"pressed",new class{add(t,r){var n,i,o;(o=(n=this.registry)[i=t])!==null&&o!==void 0||(n[i]={keyDef:r,unpreventedDefault:!1})}has(t){return!!this.registry[t]}setUnprevented(t){let r=this.registry[t];r&&(r.unpreventedDefault=!0)}isUnprevented(t){var r;return!!(!((r=this.registry[t])===null||r===void 0)&&r.unpreventedDefault)}delete(t){delete this.registry[t]}values(){return Object.values(this.registry)}constructor(){kn(this,"registry",{})}}),kn(this,"carryChar",""),kn(this,"lastKeydownTarget",void 0),kn(this,"modifierLockStart",{}),this.system=e}},Qq=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:Fr.LEFT},{code:"AltRight",key:"Alt",location:Fr.RIGHT},{code:"ShiftLeft",key:"Shift",location:Fr.LEFT},{code:"ShiftRight",key:"Shift",location:Fr.RIGHT},{code:"ControlLeft",key:"Control",location:Fr.LEFT},{code:"ControlRight",key:"Control",location:Fr.RIGHT},{code:"MetaLeft",key:"Meta",location:Fr.LEFT},{code:"MetaRight",key:"Meta",location:Fr.RIGHT},{code:"OSLeft",key:"OS",location:Fr.LEFT},{code:"OSRight",key:"OS",location:Fr.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],Zq=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function eL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xA=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=Ol(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=Ol(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){eL(this,"pressed",{})}},$h={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function Ol(e=0){return e in $h?$h[e]:Number(e)}var Vh={1:2,2:1};function Fl(e){return e=Ol(e),e in Vh?Vh[e]:e}function tL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rL=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){tL(this,"pressedKeys",new Set)}};function co(e,t){let r=[];for(let o=e;o;o=o.parentElement)r.push(o);let n=[];for(let o=t;o;o=o.parentElement)n.push(o);let i=0;for(;!(i>=r.length||i>=n.length||r[r.length-1-i]!==n[n.length-1-i]);i++);return[r.slice(0,r.length-i),n.slice(0,n.length-i),n.slice(n.length-i)]}function Il({target:e,node:t,offset:r}){return jr(e)?{node:e,offset:r??qr(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:DA(e,r)}function DA(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,i=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let o=e.childNodes.item(n),a=String(o.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(o.nodeType===1)return DA(o,t,!1);if(o.nodeType===3)return{node:o,offset:t??o.nodeValue.length}}n+=i}return{node:e,offset:e.childNodes.length}}function nL({document:e,target:t,clickCount:r,node:n,offset:i}){if(eq(t))return;let o=jr(t),a=String(o?qr(t):t.textContent),[s,p]=n?[i,i]:iL(a,i,r);if(o)return Vi(t,{anchorOffset:s??a.length,focusOffset:p??a.length}),{node:t,start:s??0,end:p??a.length};{let{node:l,offset:d}=Il({target:t,node:n,offset:s}),{node:f,offset:h}=Il({target:t,node:n,offset:p}),m=t.ownerDocument.createRange();try{m.setStart(l,d),m.setEnd(f,h)}catch{throw new Error("The given offset is out of bounds.")}let b=e.getSelection();return b?.removeAllRanges(),b?.addRange(m.cloneRange()),m}}function iL(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function oL(e,{document:t,target:r,node:n,offset:i}){let o=Il({target:r,node:n,offset:i});if("node"in e){if(o.node===e.node){let a=o.offset<e.start?e.end:e.start,s=o.offset>e.end||o.offset<e.start?o.offset:e.end;Vi(e.node,{anchorOffset:a,focusOffset:s})}}else{let a=e.cloneRange(),s=a.comparePoint(o.node,o.offset);s<0?a.setStart(o.node,o.offset):s>0&&a.setEnd(o.node,o.offset);let p=t.getSelection();p?.removeAllRanges(),p?.addRange(a.cloneRange())}}function RA(e,t){var r,n,i,o,a,s,p,l,d,f,h,m,b,E,_,A,T,k,O,R,y,S,C,D;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((i=e.coords)===null||i===void 0?void 0:i.y)!==((o=t.coords)===null||o===void 0?void 0:o.y)||((a=e.coords)===null||a===void 0?void 0:a.clientX)!==((s=t.coords)===null||s===void 0?void 0:s.clientX)||((p=e.coords)===null||p===void 0?void 0:p.clientY)!==((l=t.coords)===null||l===void 0?void 0:l.clientY)||((d=e.coords)===null||d===void 0?void 0:d.offsetX)!==((f=t.coords)===null||f===void 0?void 0:f.offsetX)||((h=e.coords)===null||h===void 0?void 0:h.offsetY)!==((m=t.coords)===null||m===void 0?void 0:m.offsetY)||((b=e.coords)===null||b===void 0?void 0:b.pageX)!==((E=t.coords)===null||E===void 0?void 0:E.pageX)||((_=e.coords)===null||_===void 0?void 0:_.pageY)!==((A=t.coords)===null||A===void 0?void 0:A.pageY)||((T=e.coords)===null||T===void 0?void 0:T.screenX)!==((k=t.coords)===null||k===void 0?void 0:k.screenX)||((O=e.coords)===null||O===void 0?void 0:O.screenY)!==((R=t.coords)===null||R===void 0?void 0:R.screenY)||((y=e.caret)===null||y===void 0?void 0:y.node)!==((S=t.caret)===null||S===void 0?void 0:S.node)||((C=e.caret)===null||C===void 0?void 0:C.offset)!==((D=t.caret)===null||D===void 0?void 0:D.offset)}function Mn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var aL=class{move(e,t,r){let n=this.position,i=this.getTarget(e);if(this.position=t,!RA(n,t))return;let o=this.getTarget(e),a=this.getEventInit("mousemove"),[s,p]=co(i,o);return{leave:()=>{i!==o&&(e.dispatchUIEvent(i,"mouseout",a),s.forEach(l=>e.dispatchUIEvent(l,"mouseleave",a)))},enter:()=>{i!==o&&(e.dispatchUIEvent(o,"mouseover",a),p.forEach(l=>e.dispatchUIEvent(l,"mouseenter",a)))},move:()=>{r||(e.dispatchUIEvent(o,"mousemove",a),this.modifySelecting(e))}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let i=this.getTarget(e);this.buttonDownTarget[n]=i;let o=this.getEventInit("mousedown",t.button),a=rn(i);!r&&(a||e.dispatchUIEvent(i,"mousedown",o))&&(this.startSelecting(e,o.detail),Dn(i)),!a&&Fl(t.button)===2&&e.dispatchUIEvent(i,"contextmenu",this.getEventInit("contextmenu",t.button))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let i=this.getTarget(e);if(!rn(i)){if(!r){let a=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(i,"mouseup",a),this.endSelecting()}let o=co(this.buttonDownTarget[n],i)[2][0];if(o){let a=this.getEventInit("click",t.button);a.detail&&(e.dispatchUIEvent(o,a.button===0?"click":"auxclick",a),a.button===0&&a.detail===2&&e.dispatchUIEvent(o,"dblclick",{...this.getEventInit("dblclick",t.button),detail:a.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let r={...this.position.coords};return r.button=Fl(t),r.buttons=this.buttons.getButtons(),e==="mousedown"?r.detail=this.clickCount.getOnDown(r.button):e==="mouseup"?r.detail=this.clickCount.getOnUp(r.button):(e==="click"||e==="auxclick")&&(r.detail=this.clickCount.incOnClick(r.button)),r}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=nL({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&oL(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){Mn(this,"position",{}),Mn(this,"buttons",new xA),Mn(this,"selecting",void 0),Mn(this,"buttonDownTarget",{}),Mn(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){Mn(this,"down",{}),Mn(this,"count",{})}})}};function is(e,t){var r;return((r=PA(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function sL(e){let t=_r(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let i=t.getComputedStyle(r).pointerEvents;if(i&&!["inherit","unset"].includes(i))return{pointerEvents:i,tree:n}}}var Uh=Symbol("Last check for pointer-events");function PA(e,t){let r=t[Uh];if(!(e.config.pointerEventsCheck!==Ba.Never&&(!r||Jh(e.config.pointerEventsCheck,Ba.EachApiCall)&&r[pr.Call]!==ma(e,pr.Call)||Jh(e.config.pointerEventsCheck,Ba.EachTrigger)&&r[pr.Trigger]!==ma(e,pr.Trigger))))return r?.result;let n=sL(t);return t[Uh]={[pr.Call]:ma(e,pr.Call),[pr.Trigger]:ma(e,pr.Trigger),result:n},n}function io(e,t){let r=PA(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",uL(r.tree)].join(`
|
|
341
|
-
`))}function uL(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,lL(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
|
|
342
|
-
`)}function lL(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,i;r=(i=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||i===void 0||(n=i.textContent)===null||n===void 0?void 0:n.trim()}else if(Je(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(a=>{var s;return(s=a.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(Je(e,"button")){var o;r=(o=e.textContent)===null||o===void 0?void 0:o.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}function Jh(e,t){return(e&t)>0}function Gr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cL=class{init(e){let t=this.getTarget(e),[,r]=co(null,t),n=this.getEventInit();return io(e,t),e.dispatchUIEvent(t,"pointerover",n),r.forEach(i=>e.dispatchUIEvent(i,"pointerenter",n)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!RA(r,t))return;let i=this.getTarget(e),o=this.getEventInit(-1),[a,s]=co(n,i);return{leave:()=>{is(e,n)&&n!==i&&(e.dispatchUIEvent(n,"pointerout",o),a.forEach(p=>e.dispatchUIEvent(p,"pointerleave",o)))},enter:()=>{io(e,i),n!==i&&(e.dispatchUIEvent(i,"pointerover",o),s.forEach(p=>e.dispatchUIEvent(p,"pointerenter",o)))},move:()=>{e.dispatchUIEvent(i,"pointermove",o)}}}down(e,t=0){if(this.isDown)return;let r=this.getTarget(e);io(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let r=this.getTarget(e);io(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=co(t,null),n=this.getEventInit();is(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(i=>e.dispatchUIEvent(i,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:Fl(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){Gr(this,"pointerId",void 0),Gr(this,"pointerType",void 0),Gr(this,"isPrimary",void 0),Gr(this,"buttons",void 0),Gr(this,"isMultitouch",!1),Gr(this,"isCancelled",!1),Gr(this,"isDown",!1),Gr(this,"isPrevented",!1),Gr(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function dn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pL=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let n=this.getPointerName(t),i=t.pointerType==="touch"?this.pointers.new(n,t.pointerType,this.buttons):this.pointers.get(n);i.position=r,i.pointerType!=="touch"&&(this.mouse.position=r),i.pointerType==="touch"&&i.init(e),i.down(e,t.button),i.pointerType!=="touch"&&this.mouse.down(e,t,i.isPrevented)}async move(e,t,r){let n=this.pointers.get(t),i=n.move(e,r),o=n.pointerType==="touch"?void 0:this.mouse.move(e,r,n.isPrevented);i?.leave(),o?.leave(),i?.enter(),o?.enter(),i?.move(),o?.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let i=this.pointers.get(this.getPointerName(t)),o=i.isPrevented;if(i.position=r,i.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&i.up(e,t.button),i.pointerType==="touch"&&i.release(e),i.pointerType==="touch"&&!i.isMultitouch){let a=this.mouse.move(e,r,o);a?.leave(),a?.enter(),a?.move(),this.mouse.down(e,t,o)}if(!i.isMultitouch){let a=this.mouse.move(e,r,o);a?.leave(),a?.enter(),a?.move(),this.mouse.up(e,t,o)}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){dn(this,"system",void 0),dn(this,"mouse",void 0),dn(this,"buttons",void 0),dn(this,"devices",new class{get(t){var r,n,i;return(i=(r=this.registry)[n=t])!==null&&i!==void 0?i:r[n]=new rL}constructor(){dn(this,"registry",{})}}),dn(this,"pointers",new class{new(t,r,n){let i=r!=="touch"||!Object.values(this.registry).some(o=>o.pointerType==="touch"&&!o.isCancelled);return i||Object.values(this.registry).forEach(o=>{o.pointerType===r&&!o.isCancelled&&(o.isMultitouch=!0)}),this.registry[t]=new cL({pointerId:this.nextId++,pointerType:r,isPrimary:i},n),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){dn(this,"registry",{}),dn(this,"nextId",1)}}),this.system=e,this.buttons=new xA,this.mouse=new aL,this.pointers.new("mouse","mouse",this.buttons)}};function Hh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var OA=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){Hh(this,"keyboard",new Xq(this)),Hh(this,"pointer",new pL(this))}};async function dL(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function fL(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function hL(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function mL(e){return this.pointer({target:e})}async function yL(e){return io(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function gL({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var Kp=function(e){return e["{"]="}",e["["]="]",e}(Kp||{});function FA(e,t){let r=0,n=e[r]in Kp?e[r]:"";r+=n.length;let i=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:i,...i===""?bL(e,r,t):EL(e,r,i,t)}}function bL(e,t,r){let n=e[t];return IA(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function EL(e,t,r,n){var i,o;let a=e[t]==="/"?"/":"";t+=a.length;let s=r==="{"&&e[t]==="\\";t+=Number(s);let p=s?e[t]:(i=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||i===void 0?void 0:i[0];IA(p,e,t,n),t+=p.length;var l;let d=(l=(o=e.slice(t).match(/^>\d+/))===null||o===void 0?void 0:o[0])!==null&&l!==void 0?l:"";t+=d.length;let f=e[t]==="/"||!d&&e[t]===">"?e[t]:"";t+=f.length;let h=Kp[r],m=e[t]===h?h:"";if(!m)throw new Error(NA([!d&&"repeat modifier",!f&&"release modifier",`"${h}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=m.length,{consumedLength:t,descriptor:p,releasePrevious:!!a,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:vL(f,d)}}function IA(e,t,r,n){if(!e)throw new Error(NA("key descriptor",t[r],t,n))}function vL(e,t){if(e)return e==="/";if(t)return!1}function NA(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
343
|
-
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|
344
|
-
for more information about how userEvent parses your input.`}function AL(e,t){let r=[];do{let{type:i,descriptor:o,consumedLength:a,releasePrevious:s,releaseSelf:p=!0,repeat:l}=FA(t,"keyboard");var n;let d=(n=e.find(f=>{if(i==="["){var h;return((h=f.code)===null||h===void 0?void 0:h.toLowerCase())===o.toLowerCase()}else if(i==="{"){var m;return((m=f.key)===null||m===void 0?void 0:m.toLowerCase())===o.toLowerCase()}return f.key===o}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[i==="["?"code":"key"]:o};r.push({keyDef:d,releasePrevious:s,releaseSelf:p,repeat:l}),t=t.slice(a)}while(t);return r}async function _L(e){let t=AL(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Fi(this.config),await wL(this,t[r])}async function wL(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:i}){let{system:o}=e;if(o.keyboard.isKeyPressed(t)&&await o.keyboard.keyup(e,t),!r){for(let a=1;a<=i;a++)await o.keyboard.keydown(e,t),a<i&&await Fi(e.config);n&&await o.keyboard.keyup(e,t)}}async function CL(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function BA(e){let t=jr(e)?{"text/plain":TL(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Jp(_r(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function TL(e){let t=No(e);return qr(e).substring(t.startOffset,t.endOffset)}async function SL(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=BA(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await sA(e,n),n}async function xL(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=BA(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await sA(r.ownerDocument,n),n}async function DL(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var i;let o=(i=typeof e=="string"?RL(t,e):e)!==null&&i!==void 0?i:await Yj(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:o})}function RL(e,t){let r=Jp(_r(e));return r.setData("text",t),r}function Gh(e,t){let r=[];do{let{descriptor:n,consumedLength:i,releasePrevious:o,releaseSelf:a=!0}=FA(t,"pointer"),s=e.find(p=>p.name===n);s&&r.push({keyDef:s,releasePrevious:o,releaseSelf:a}),t=t.slice(i)}while(t);return r}async function PL(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...Gh(t,n)):"keys"in n?r.push(...Gh(t,n.keys).map(i=>({...n,...i}))):r.push(n)});for(let n=0;n<r.length;n++)await Fi(this.config),await OL(this,r[n]);this.system.pointer.resetClickCount()}async function OL(e,t){var r,n;let i="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",o=e.system.pointer.getPreviousPosition(i);var a,s,p,l;let d={target:(a=t.target)!==null&&a!==void 0?a:FL(e,o),coords:(s=t.coords)!==null&&s!==void 0?s:o?.coords,caret:{node:(p=t.node)!==null&&p!==void 0?p:zh(t)||o==null||(r=o.caret)===null||r===void 0?void 0:r.node,offset:(l=t.offset)!==null&&l!==void 0?l:zh(t)||o==null||(n=o.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(no(e,pr.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(no(e,pr.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(no(e,pr.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(no(e,pr.Trigger),await e.system.pointer.move(e,i,d))}function zh(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function FL(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function IL(e){if(!Di(e)||rn(e))throw new Error("clear()` is only supported on editable elements.");if(Dn(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(vA(e),!Dq(e))throw new Error("The element content to be cleared could not be selected.");Oi(this,e,"","deleteContentBackward")}async function NL(e,t){return kA.call(this,!0,e,t)}async function BL(e,t){return kA.call(this,!1,e,t)}async function kA(e,t,r){if(!e&&!t.multiple)throw Xe().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],i=Array.from(t.querySelectorAll('option, [role="option"]')),o=n.map(s=>{if(typeof s!="string"&&i.includes(s))return s;{let p=i.find(l=>l.value===s||l.innerHTML===s);if(p)return p;throw Xe().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!rn(s));if(rn(t)||!o.length)return;let a=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(Je(t,"select"))if(t.multiple)for(let s of o){let p=this.config.pointerEventsCheck===0?!0:is(this,s);p&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),Dn(t),p&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),a(s),p&&this.dispatchUIEvent(s,"click"),await Fi(this.config)}else if(o.length===1){let s=this.config.pointerEventsCheck===0?!0:is(this,t);s?await this.click(t):Dn(t),a(o[0]),s&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await Fi(this.config)}else throw Xe().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let s of o)await this.click(s),await this.unhover(s);else throw Xe().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function kL(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:i,initialSelectionEnd:o}={}){e.disabled||(r||await this.click(e),i!==void 0&&ro(e,i,o??i),await this.keyboard(t),n||await CL(this))}var Wh=Symbol("files and value properties are mocked");function _u(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function ML(e,t){var r;(r=e[Wh])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),i=Object.getOwnPropertyDescriptor(e,"value"),o=Object.getOwnPropertyDescriptor(e,"files");function a(){_u(e,"type",n),_u(e,"value",i),_u(e,"files",o)}e[Wh]={restore:a},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")a();else{var p;i==null||(p=i.set)===null||p===void 0||p.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(a(),e.type=s)}}})}async function jL(e,t){let r=Je(e,"label")?e.control:e;if(!r||!Je(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(rn(e))return;let n=(Array.isArray(t)?t:[t]).filter(o=>!this.config.applyAccept||qL(o,r.accept)).slice(0,r.multiple?void 0:1),i=()=>{var o;n.length===((o=r.files)===null||o===void 0?void 0:o.length)&&n.every((a,s)=>{var p;return a===((p=r.files)===null||p===void 0?void 0:p.item(s))})||(ML(r,Up(_r(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",i),await this.click(e),r.removeEventListener("fileDialog",i)}function ya(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function qL(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return ya(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?ya(e.name).endsWith(n):r.includes(n)?ya(e.type).startsWith(n.replace("*","")):ya(e.type)===n)}var Kh={click:dL,dblClick:fL,tripleClick:hL,hover:mL,unhover:yL,tab:gL,keyboard:_L,copy:SL,cut:xL,paste:DL,pointer:PL,clear:IL,deselectOptions:BL,selectOptions:NL,type:kL,upload:jL};function LL(e){return Xe().asyncWrapper(e)}var MA={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:Qq,pointerMap:Zq,pointerEventsCheck:Ba.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},$L={...MA,writeToClipboard:!0};function jA(e={},t=$L,r){let n=HL(e,r,t);return{...t,...e,document:n}}function VL(e={}){let t=jA(e);SA(t.document),TA(_r(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return zj(n),Yp(t).api}function Zt({keyboardState:e,pointerState:t,...r}={},n){let i=jA(r,MA,n);SA(i.document),TA(_r(i.document).HTMLElement);var o;let a=(o=t??e)!==null&&o!==void 0?o:new OA;return{api:Yp(i,a).api,system:a}}function UL(e){return Yp({...this.config,...e},this.system).api}function JL(e,t){function r(...n){return no(e,pr.Call),LL(()=>t.apply(e,n).then(async i=>(await Fi(e.config),i)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Yp(e,t=new OA){let r={};return Object.assign(r,{config:e,dispatchEvent:CA.bind(r),dispatchUIEvent:Vq.bind(r),system:t,levelRefs:{},...Kh}),{instance:r,api:{...Object.fromEntries(Object.entries(Kh).map(([n,i])=>[n,JL(r,i)])),setup:UL.bind(r)}}}function HL(e,t,r){var n,i;return(i=(n=e.document)!==null&&n!==void 0?n:t&&zq(t))!==null&&i!==void 0?i:r.document}var qA={};ur(qA,{clear:()=>GL,click:()=>zL,copy:()=>WL,cut:()=>KL,dblClick:()=>YL,deselectOptions:()=>XL,hover:()=>QL,keyboard:()=>ZL,paste:()=>t3,pointer:()=>e3,selectOptions:()=>r3,tab:()=>s3,tripleClick:()=>n3,type:()=>i3,unhover:()=>o3,upload:()=>a3});function GL(e){return Zt().api.clear(e)}function zL(e,t={}){return Zt(t,e).api.click(e)}function WL(e={}){return Zt(e).api.copy()}function KL(e={}){return Zt(e).api.cut()}function YL(e,t={}){return Zt(t).api.dblClick(e)}function XL(e,t,r={}){return Zt(r).api.deselectOptions(e,t)}function QL(e,t={}){return Zt(t).api.hover(e)}async function ZL(e,t={}){let{api:r,system:n}=Zt(t);return r.keyboard(e).then(()=>n)}async function e3(e,t={}){let{api:r,system:n}=Zt(t);return r.pointer(e).then(()=>n)}function t3(e,t){return Zt(t).api.paste(e)}function r3(e,t,r={}){return Zt(r).api.selectOptions(e,t)}function n3(e,t={}){return Zt(t).api.tripleClick(e)}function i3(e,t,r={}){return Zt(r,e).api.type(e,t,r)}function o3(e,t={}){let{api:r,system:n}=Zt(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function a3(e,t,r={}){return Zt(r).api.upload(e,t)}function s3(e={}){return Zt().api.tab(e)}var LA={...qA,setup:VL},Nl=Vo({...OE},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});Nl.screen=new Proxy(Nl.screen,{get(e,t,r){return typeof window<"u"&&globalThis.location?.href?.includes("viewMode=docs")&&Ot.warn(We`
|
|
345
|
-
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
|
346
|
-
|
|
347
|
-
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
348
|
-
`),Reflect.get(e,t,r)}});var{buildQueries:u3,configure:l3,createEvent:c3,fireEvent:p3,findAllByAltText:d3,findAllByDisplayValue:f3,findAllByLabelText:h3,findAllByPlaceholderText:m3,findAllByRole:y3,findAllByTestId:g3,findAllByText:b3,findAllByTitle:E3,findByAltText:v3,findByDisplayValue:A3,findByLabelText:_3,findByPlaceholderText:w3,findByRole:C3,findByTestId:T3,findByText:S3,findByTitle:x3,getAllByAltText:D3,getAllByDisplayValue:R3,getAllByLabelText:P3,getAllByPlaceholderText:O3,getAllByRole:F3,getAllByTestId:I3,getAllByText:N3,getAllByTitle:B3,getByAltText:k3,getByDisplayValue:M3,getByLabelText:j3,getByPlaceholderText:q3,getByRole:L3,getByTestId:$3,getByText:V3,getByTitle:U3,getConfig:J3,getDefaultNormalizer:H3,getElementError:G3,getNodeText:z3,getQueriesForElement:W3,getRoles:K3,getSuggestedQuery:Y3,isInaccessible:X3,logDOM:Q3,logRoles:Z3,prettyDOM:e8,queries:t8,queryAllByAltText:r8,queryAllByAttribute:n8,queryAllByDisplayValue:i8,queryAllByLabelText:o8,queryAllByPlaceholderText:a8,queryAllByRole:s8,queryAllByTestId:u8,queryAllByText:l8,queryAllByTitle:c8,queryByAltText:p8,queryByAttribute:d8,queryByDisplayValue:f8,queryByLabelText:h8,queryByPlaceholderText:m8,queryByRole:y8,queryByTestId:g8,queryByText:b8,queryByTitle:E8,queryHelpers:v8,screen:A8,waitFor:_8,waitForElementToBeRemoved:w8,within:$A,prettyFormat:C8}=Nl,VA=LA,{userEvent:T8}=Vo({userEvent:LA},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:S8}=Vo({expect:CE},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===H){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(i=>!r.includes(i));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},mutate:!0,intercept:e=>e!=="expect"}),x8={mock:()=>{}},Yh=!1,D8=e=>{let{parameters:t}=e;t?.actions?.disable||Yh||(TE((r,n)=>{let i=r.getMockName();i!=="spy"&&i!=="vi.fn()"&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(o=>i.startsWith(o)))&&Zo(i)(n)}),Yh=!0)},R8=[D8],Xh=()=>({...Vg,...Jg}),os="backgrounds",P8={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:xr}=globalThis,O8=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,Qh=e=>{(Array.isArray(e)?e:[e]).forEach(F8)},F8=e=>{if(!xr)return;let t=xr.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},I8=(e,t)=>{if(!xr)return;let r=xr.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=xr.createElement("style");n.setAttribute("id",e),n.innerHTML=t,xr.head.appendChild(n)}},N8=(e,t,r)=>{if(!xr)return;let n=xr.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let i=xr.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let o=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=xr.getElementById(o);a?a.parentElement?.insertBefore(i,a):xr.head.appendChild(i)}},B8={cellSize:100,cellAmount:10,opacity:.8},Zh="addon-backgrounds",em="addon-backgrounds-grid",k8=O8()?"":"transition: background-color 0.3s;",M8=(e,t)=>{let{globals:r={},parameters:n={},viewMode:i,id:o}=t,{options:a=P8,disable:s,grid:p=B8}=n[os]||{},l=r[os]||{},d=typeof l=="string"?l:l?.value,f=d?a[d]:void 0,h=typeof f=="string"?f:f?.value||"transparent",m=typeof l=="string"?!1:l.grid||!1,b=!!f&&!s,E=i==="docs"?`#anchor--${o} .docs-story`:".sb-show-main",_=i==="docs"?`#anchor--${o} .docs-story`:".sb-show-main",A=n.layout===void 0||n.layout==="padded",T=i==="docs"?20:A?16:0,{cellAmount:k,cellSize:O,opacity:R,offsetX:y=T,offsetY:S=T}=p,C=i==="docs"?`${Zh}-docs-${o}`:`${Zh}-color`,D=i==="docs"?o:null;Kn(()=>{let M=`
|
|
349
|
-
${E} {
|
|
350
|
-
background: ${h} !important;
|
|
351
|
-
${k8}
|
|
352
|
-
}`;if(!b){Qh(C);return}N8(C,M,D)},[E,C,D,b,h]);let J=i==="docs"?`${em}-docs-${o}`:`${em}`;return Kn(()=>{if(!m){Qh(J);return}let M=[`${O*k}px ${O*k}px`,`${O*k}px ${O*k}px`,`${O}px ${O}px`,`${O}px ${O}px`].join(", "),G=`
|
|
353
|
-
${_} {
|
|
354
|
-
background-size: ${M} !important;
|
|
355
|
-
background-position: ${y}px ${S}px, ${y}px ${S}px, ${y}px ${S}px, ${y}px ${S}px !important;
|
|
356
|
-
background-blend-mode: difference !important;
|
|
357
|
-
background-image: linear-gradient(rgba(130, 130, 130, ${R}) 1px, transparent 1px),
|
|
358
|
-
linear-gradient(90deg, rgba(130, 130, 130, ${R}) 1px, transparent 1px),
|
|
359
|
-
linear-gradient(rgba(130, 130, 130, ${R/2}) 1px, transparent 1px),
|
|
360
|
-
linear-gradient(90deg, rgba(130, 130, 130, ${R/2}) 1px, transparent 1px) !important;
|
|
361
|
-
}
|
|
362
|
-
`;I8(J,G)},[k,O,_,J,m,y,S,R]),e()},j8=globalThis.FEATURES?.backgrounds?[M8]:[],q8={[os]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},L8={[os]:{value:void 0,grid:!1}},tm=()=>({decorators:j8,parameters:q8,initialGlobals:L8}),{step:$8}=Vo({step:async(e,t,r)=>t(r)},{intercept:!0}),rm=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:$8}),Ls="storybook/highlight",V8=`${Ls}/add`,U8=`${Ls}/remove`,J8=`${Ls}/reset`,H8=`${Ls}/scroll-into-view`,nm=2147483647,bn=28,im={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},G8="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Lt=(e,t={},r)=>{let n=G8.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([i,o])=>{/[A-Z]/.test(i)?(i==="onClick"&&(n.addEventListener("click",o),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),o())})),i==="onMouseEnter"&&n.addEventListener("mouseenter",o),i==="onMouseLeave"&&n.addEventListener("mouseleave",o)):n.setAttribute(i,o)}),r?.forEach(i=>{if(!(i==null||i===!1))try{n.appendChild(i)}catch{n.appendChild(document.createTextNode(String(i)))}}),n},ga=e=>im[e]&&Lt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},im[e].map(t=>Lt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),z8=e=>{if("elements"in e){let{elements:n,color:i,style:o}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${o} ${i}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},W8=e=>e instanceof Function,Qi=new Map,jn=new Map,ba=new Map,zr=e=>{let t=Symbol();return jn.set(t,[]),Qi.set(t,e),{get:()=>Qi.get(t),set:r=>{let n=Qi.get(t),i=W8(r)?r(n):r;i!==n&&(Qi.set(t,i),jn.get(t)?.forEach(o=>{ba.get(o)?.(),ba.set(o,o(i))}))},subscribe:r=>(jn.get(t)?.push(r),()=>{let n=jn.get(t);n&&jn.set(t,n.filter(i=>i!==r))}),teardown:()=>{jn.get(t)?.forEach(r=>{ba.get(r)?.(),ba.delete(r)}),jn.delete(t),Qi.delete(t)}}},om=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:i=0}=n;for(let o of n.selectors){let a=[...document.querySelectorAll(`:is(${o}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(o)||[]];for(let s of a){let p=r.get(s);(!p||p.priority<=i)&&r.set(s,{...n,priority:i,selectors:Array.from(new Set((p?.selectors||[]).concat(o)))})}}}return r},K8=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:i,focusStyles:o,menu:a}])=>{let{top:s,left:p,width:l,height:d}=t.getBoundingClientRect(),{position:f}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:i,focusStyles:o,menu:a,top:f==="fixed"?s:s+window.scrollY,left:f==="fixed"?p:p+window.scrollX,width:l,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),am=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:i}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&i>=r.top&&i<=r.top+r.height},sm=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:i,width:o,height:a}=e;a<bn&&(i=i-Math.round((bn-a)/2),a=bn),o<bn&&(n=n-Math.round((bn-o)/2),o=bn),t.style.position==="fixed"&&(n+=window.scrollX,i+=window.scrollY);let{x:s,y:p}=r;return s>=n&&s<=n+o&&p>=i&&p<=i+a},Y8=(e,t,r={})=>{let{x:n,y:i}=t,{margin:o=5,topOffset:a=0,centered:s=!1}=r,{scrollX:p,scrollY:l,innerHeight:d,innerWidth:f}=window,h=Math.min(e.style.position==="fixed"?i-l:i,d-e.clientHeight-o-a+l),m=s?e.clientWidth/2:0,b=e.style.position==="fixed"?Math.max(Math.min(n-p,f-m-o),m+o):Math.max(Math.min(n,f-m-o+p),m+o+p);Object.assign(e.style,{...b!==n&&{left:`${b}px`},...h!==i&&{top:`${h}px`}})},um=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},X8=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},Q8=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),Et="storybook-highlights-menu",lm="storybook-highlights-root",Z8="storybook-root",e6=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=zr([]),n=zr(new Map),i=zr([]),o=zr(),a=zr(),s=zr([]),p=zr([]),l=zr(),d=zr(),f=t.getElementById(lm);r.subscribe(()=>{f||(f=Lt("div",{id:lm}),t.body.appendChild(f))}),r.subscribe(S=>{let C=t.getElementById(Z8);if(!C)return;n.set(om(S));let D=new MutationObserver(()=>n.set(om(S)));return D.observe(C,{subtree:!0,childList:!0}),()=>{D.disconnect()}}),n.subscribe(S=>{let C=()=>requestAnimationFrame(()=>i.set(K8(S))),D=new ResizeObserver(C);D.observe(t.body),Array.from(S.keys()).forEach(M=>D.observe(M));let J=Array.from(t.body.querySelectorAll("*")).filter(M=>{let{overflow:G,overflowX:L,overflowY:N}=window.getComputedStyle(M);return["auto","scroll"].some(U=>[G,L,N].includes(U))});return J.forEach(M=>M.addEventListener("scroll",C)),()=>{D.disconnect(),J.forEach(M=>M.removeEventListener("scroll",C))}}),n.subscribe(S=>{let C=Array.from(S.keys()).filter(({style:J})=>J.position==="sticky"),D=()=>requestAnimationFrame(()=>{i.set(J=>J.map(M=>{if(C.includes(M.element)){let{top:G,left:L}=M.element.getBoundingClientRect();return{...M,top:G+window.scrollY,left:L+window.scrollX}}return M}))});return t.addEventListener("scroll",D),()=>t.removeEventListener("scroll",D)}),n.subscribe(S=>{s.set(C=>C.filter(({element:D})=>S.has(D)))}),s.subscribe(S=>{S.length?(d.set(C=>S.some(D=>D.element===C?.element)?C:void 0),l.set(C=>S.some(D=>D.element===C?.element)?C:void 0)):(d.set(void 0),l.set(void 0),o.set(void 0))});let h=new Map(new Map);r.subscribe(S=>{S.forEach(({keyframes:C})=>{if(C){let D=h.get(C);D||(D=t.createElement("style"),D.setAttribute("data-highlight","keyframes"),h.set(C,D),t.head.appendChild(D)),D.innerHTML=C}}),h.forEach((C,D)=>{S.some(J=>J.keyframes===D)||(C.remove(),h.delete(D))})});let m=new Map(new Map);i.subscribe(S=>{S.forEach(C=>{let D=m.get(C.element);if(f&&!D){let J={popover:"manual","data-highlight-dimensions":`w${C.width.toFixed(0)}h${C.height.toFixed(0)}`,"data-highlight-coordinates":`x${C.left.toFixed(0)}y${C.top.toFixed(0)}`};D=f.appendChild(Lt("div",J,[Lt("div")])),m.set(C.element,D)}}),m.forEach((C,D)=>{S.some(({element:J})=>J===D)||(C.remove(),m.delete(D))})}),i.subscribe(S=>{let C=S.filter(J=>J.menu);if(!C.length)return;let D=J=>{requestAnimationFrame(()=>{let M=t.getElementById(Et),G={x:J.pageX,y:J.pageY};if(M&&!am(M,G)){let L=C.filter(N=>{let U=m.get(N.element);return sm(N,U,G)});o.set(L.length?G:void 0),s.set(L)}})};return t.addEventListener("click",D),()=>t.removeEventListener("click",D)});let b=()=>{let S=t.getElementById(Et),C=a.get();!C||S&&am(S,C)||p.set(D=>{let J=i.get().filter(N=>{let U=m.get(N.element);return sm(N,U,C)}),M=D.filter(N=>J.includes(N)),G=J.filter(N=>!D.includes(N)),L=D.length-M.length;return G.length||L?[...M,...G]:D})};a.subscribe(b),i.subscribe(b);let E=()=>{let S=d.get(),C=S?[S]:s.get(),D=C.length===1?C[0]:l.get(),J=o.get()!==void 0;i.get().forEach(M=>{let G=m.get(M.element);if(G){let L=D===M,N=J?D?L:C.includes(M):p.get()?.includes(M);Object.assign(G.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...M.styles,...N?M.hoverStyles:{},...L?M.focusStyles:{},position:getComputedStyle(M.element).position==="fixed"?"fixed":"absolute",zIndex:nm-10,top:`${M.top}px`,left:`${M.left}px`,width:`${M.width}px`,height:`${M.height}px`,margin:0,padding:0,cursor:M.menu&&N?"pointer":"default",pointerEvents:M.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(G.children[0].style,{width:"100%",height:"100%",minHeight:`${bn}px`,minWidth:`${bn}px`,boxSizing:"content-box",padding:G.style.outlineWidth||"0px"}),um(G)}})};i.subscribe(E),s.subscribe(E),p.subscribe(E),l.subscribe(E),d.subscribe(E);let _=()=>{if(!f)return;let S=t.getElementById(Et);if(S)S.innerHTML="";else{let M={id:Et,popover:"manual"};S=f.appendChild(Lt("div",M)),f.appendChild(Lt("style",{},[`
|
|
363
|
-
#${Et} {
|
|
364
|
-
position: absolute;
|
|
365
|
-
z-index: ${nm};
|
|
366
|
-
width: 300px;
|
|
367
|
-
padding: 0px;
|
|
368
|
-
margin: 15px 0 0 0;
|
|
369
|
-
transform: translateX(-50%);
|
|
370
|
-
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
371
|
-
font-size: 12px;
|
|
372
|
-
background: white;
|
|
373
|
-
border: none;
|
|
374
|
-
border-radius: 6px;
|
|
375
|
-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
376
|
-
color: #2E3438;
|
|
377
|
-
}
|
|
378
|
-
#${Et} ul {
|
|
379
|
-
list-style: none;
|
|
380
|
-
margin: 0;
|
|
381
|
-
padding: 0;
|
|
382
|
-
}
|
|
383
|
-
#${Et} > ul {
|
|
384
|
-
max-height: 300px;
|
|
385
|
-
overflow-y: auto;
|
|
386
|
-
padding: 4px 0;
|
|
387
|
-
}
|
|
388
|
-
#${Et} li {
|
|
389
|
-
padding: 0 4px;
|
|
390
|
-
margin: 0;
|
|
391
|
-
}
|
|
392
|
-
#${Et} li > :not(ul) {
|
|
393
|
-
display: flex;
|
|
394
|
-
padding: 8px;
|
|
395
|
-
margin: 0;
|
|
396
|
-
align-items: center;
|
|
397
|
-
gap: 8px;
|
|
398
|
-
border-radius: 4px;
|
|
399
|
-
}
|
|
400
|
-
#${Et} button {
|
|
401
|
-
width: 100%;
|
|
402
|
-
border: 0;
|
|
403
|
-
background: transparent;
|
|
404
|
-
color: inherit;
|
|
405
|
-
text-align: left;
|
|
406
|
-
font-family: inherit;
|
|
407
|
-
font-size: inherit;
|
|
408
|
-
}
|
|
409
|
-
#${Et} button:focus-visible {
|
|
410
|
-
outline-color: #029CFD;
|
|
411
|
-
}
|
|
412
|
-
#${Et} button:hover {
|
|
413
|
-
background: rgba(2, 156, 253, 0.07);
|
|
414
|
-
color: #029CFD;
|
|
415
|
-
cursor: pointer;
|
|
416
|
-
}
|
|
417
|
-
#${Et} li code {
|
|
418
|
-
white-space: nowrap;
|
|
419
|
-
overflow: hidden;
|
|
420
|
-
text-overflow: ellipsis;
|
|
421
|
-
line-height: 16px;
|
|
422
|
-
font-size: 11px;
|
|
423
|
-
}
|
|
424
|
-
#${Et} li svg {
|
|
425
|
-
flex-shrink: 0;
|
|
426
|
-
margin: 1px;
|
|
427
|
-
color: #73828C;
|
|
428
|
-
}
|
|
429
|
-
#${Et} li > button:hover svg, #${Et} li > button:focus-visible svg {
|
|
430
|
-
color: #029CFD;
|
|
431
|
-
}
|
|
432
|
-
#${Et} .element-list li svg {
|
|
433
|
-
display: none;
|
|
434
|
-
}
|
|
435
|
-
#${Et} li.selectable svg, #${Et} li.selected svg {
|
|
436
|
-
display: block;
|
|
437
|
-
}
|
|
438
|
-
#${Et} .menu-list {
|
|
439
|
-
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
440
|
-
}
|
|
441
|
-
#${Et} .menu-list > li:not(:last-child) {
|
|
442
|
-
padding-bottom: 4px;
|
|
443
|
-
margin-bottom: 4px;
|
|
444
|
-
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
445
|
-
}
|
|
446
|
-
#${Et} .menu-items, #${Et} .menu-items li {
|
|
447
|
-
padding: 0;
|
|
448
|
-
}
|
|
449
|
-
#${Et} .menu-item {
|
|
450
|
-
display: flex;
|
|
451
|
-
}
|
|
452
|
-
#${Et} .menu-item-content {
|
|
453
|
-
display: flex;
|
|
454
|
-
flex-direction: column;
|
|
455
|
-
flex-grow: 1;
|
|
456
|
-
}
|
|
457
|
-
`]))}let C=d.get(),D=C?[C]:s.get();if(D.length&&(S.style.position=getComputedStyle(D[0].element).position==="fixed"?"fixed":"absolute",S.appendChild(Lt("ul",{class:"element-list"},D.map(M=>{let G=D.length>1&&!!M.menu?.some(U=>U.some(W=>!W.selectors||W.selectors.some(K=>M.selectors.includes(K)))),L=G?{class:"selectable",onClick:()=>d.set(M),onMouseEnter:()=>l.set(M),onMouseLeave:()=>l.set(void 0)}:C?{class:"selected",onClick:()=>d.set(void 0)}:{},N=G||C;return Lt("li",L,[Lt(N?"button":"div",N?{type:"button"}:{},[C?ga("chevronLeft"):null,Lt("code",{},[M.element.outerHTML]),G?ga("chevronRight"):null])])})))),d.get()||s.get().length===1){let M=d.get()||s.get()[0],G=M.menu?.filter(L=>L.some(N=>!N.selectors||N.selectors.some(U=>M.selectors.includes(U))));G?.length&&S.appendChild(Lt("ul",{class:"menu-list"},G.map(L=>Lt("li",{},[Lt("ul",{class:"menu-items"},L.map(({id:N,title:U,description:W,iconLeft:K,iconRight:ne,clickEvent:be})=>{let xe=be&&(()=>e.emit(be,N,Q8(M)));return Lt("li",{},[Lt(xe?"button":"div",xe?{class:"menu-item",type:"button",onClick:xe}:{class:"menu-item"},[K?ga(K):null,Lt("div",{class:"menu-item-content"},[Lt(W?"strong":"span",{},[U]),W&&Lt("span",{},[W])]),ne?ga(ne):null])])}))]))))}let J=o.get();J?(Object.assign(S.style,{display:"block",left:`${S.style.position==="fixed"?J.x-window.scrollX:J.x}px`,top:`${S.style.position==="fixed"?J.y-window.scrollY:J.y}px`}),um(S),requestAnimationFrame(()=>Y8(S,J,{topOffset:15,centered:!0}))):(X8(S),Object.assign(S.style,{display:"none"}))};s.subscribe(_),d.subscribe(_);let A=S=>{let C=z8(S);r.set(D=>{let J=C.id?D.filter(M=>M.id!==C.id):D;return C.selectors?.length?[...J,C]:J})},T=S=>{S&&r.set(C=>C.filter(D=>D.id!==S))},k=()=>{r.set([]),n.set(new Map),i.set([]),o.set(void 0),a.set(void 0),s.set([]),p.set([]),l.set(void 0),d.set(void 0)},O,R=(S,C)=>{let D="scrollIntoView-highlight";clearTimeout(O),T(D);let J=t.querySelector(S);if(!J){console.warn(`Cannot scroll into view: ${S} not found`);return}J.scrollIntoView({behavior:"smooth",block:"center",...C});let M=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(G=>[...G,{id:D,priority:1e3,selectors:[S],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${M} 3s linear forwards`},keyframes:`@keyframes ${M} {
|
|
458
|
-
0% { outline: 2px solid #1EA7FD; }
|
|
459
|
-
20% { outline: 2px solid #1EA7FD00; }
|
|
460
|
-
40% { outline: 2px solid #1EA7FD; }
|
|
461
|
-
60% { outline: 2px solid #1EA7FD00; }
|
|
462
|
-
80% { outline: 2px solid #1EA7FD; }
|
|
463
|
-
100% { outline: 2px solid #1EA7FD00; }
|
|
464
|
-
}`}]),O=setTimeout(()=>T(D),3500)},y=S=>{requestAnimationFrame(()=>a.set({x:S.pageX,y:S.pageY}))};t.body.addEventListener("mousemove",y),e.on(V8,A),e.on(U8,T),e.on(J8,k),e.on(H8,R),e.on(Wn,({newPhase:S})=>{S==="loading"&&k()})};globalThis?.FEATURES?.highlight&&vr?.ready&&vr.ready().then(e6);var cm=()=>({}),t6="measureEnabled";function UA(){let e=ge.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function r6(){let e=ge.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");en(t!=null);let{width:r,height:n}=UA();return Bl(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",ge.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Bl(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let i=ge.window.devicePixelRatio;e.width=Math.floor(r*i),e.height=Math.floor(n*i),t.scale(i,i)}var $t={};function n6(){$t.canvas||($t=r6())}function JA(){$t.context&&$t.context.clearRect(0,0,$t.width??0,$t.height??0)}function i6(e){JA(),e($t.context)}function o6(){en($t.canvas),en($t.context),Bl($t.canvas,$t.context,{width:0,height:0});let{width:e,height:t}=UA();Bl($t.canvas,$t.context,{width:e,height:t}),$t.width=e,$t.height=t}function a6(){$t.canvas&&(JA(),$t.canvas.parentNode?.removeChild($t.canvas),$t={})}var ci={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Qr=6;function pm(e,{x:t,y:r,w:n,h:i,r:o}){t=t-n/2,r=r-i/2,n<2*o&&(o=n/2),i<2*o&&(o=i/2),e.beginPath(),e.moveTo(t+o,r),e.arcTo(t+n,r,t+n,r+i,o),e.arcTo(t+n,r+i,t,r+i,o),e.arcTo(t,r+i,t,r,o),e.arcTo(t,r,t+n,r,o),e.closePath()}function s6(e,{padding:t,border:r,width:n,height:i,top:o,left:a}){let s=n-r.left-r.right-t.left-t.right,p=i-t.top-t.bottom-r.top-r.bottom,l=a+r.left+t.left,d=o+r.top+t.top;return e==="top"?l+=s/2:e==="right"?(l+=s,d+=p/2):e==="bottom"?(l+=s/2,d+=p):e==="left"?d+=p/2:e==="center"&&(l+=s/2,d+=p/2),{x:l,y:d}}function u6(e,t,{margin:r,border:n,padding:i},o,a){let s=h=>0,p=0,l=0,d=a?1:.5,f=a?o*2:0;return e==="padding"?s=h=>i[h]*d+f:e==="border"?s=h=>i[h]+n[h]*d+f:e==="margin"&&(s=h=>i[h]+n[h]+r[h]*d+f),t==="top"?l=-s("top"):t==="right"?p=s("right"):t==="bottom"?l=s("bottom"):t==="left"&&(p=-s("left")),{offsetX:p,offsetY:l}}function l6(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function c6(e,t,r){return e==="top"?t.y=r.y-r.h-Qr:e==="right"?t.x=r.x+r.w/2+Qr+t.w/2:e==="bottom"?t.y=r.y+r.h+Qr:e==="left"&&(t.x=r.x-r.w/2-Qr-t.w/2),{x:t.x,y:t.y}}function HA(e,t,{x:r,y:n,w:i,h:o},a){return pm(e,{x:r,y:n,w:i,h:o,r:3}),e.fillStyle=`${ci[t]}dd`,e.fill(),e.strokeStyle=ci[t],e.stroke(),e.fillStyle=ci.text,e.fillText(a,r,n),pm(e,{x:r,y:n,w:i,h:o,r:3}),e.fillStyle=`${ci[t]}dd`,e.fill(),e.strokeStyle=ci[t],e.stroke(),e.fillStyle=ci.text,e.fillText(a,r,n),{x:r,y:n,w:i,h:o}}function GA(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,i=r.width+Qr*2,o=n+Qr*2;return{w:i,h:o}}function p6(e,t,{type:r,position:n="center",text:i},o,a=!1){let{x:s,y:p}=s6(n,t),{offsetX:l,offsetY:d}=u6(r,n,t,Qr+1,a);s+=l,p+=d;let{w:f,h}=GA(e,i);if(o&&l6({x:s,y:p,w:f,h},o)){let m=c6(n,{x:s,y:p,w:f},o);s=m.x,p=m.y}return HA(e,r,{x:s,y:p,w:f,h},i)}function d6(e,{w:t,h:r}){let n=t*.5+Qr,i=r*.5+Qr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*i}}function f6(e,t,{type:r,text:n}){let{floatingAlignment:i,extremities:o}=t,a=o[i.x],s=o[i.y],{w:p,h:l}=GA(e,n),{offsetX:d,offsetY:f}=d6(i,{w:p,h:l});return a+=d,s+=f,HA(e,r,{x:a,y:s,w:p,h:l},n)}function Zi(e,t,r,n){let i=[];r.forEach((o,a)=>{let s=n&&o.position==="center"?f6(e,t,o):p6(e,t,o,i[a-1],n);i[a]=s})}function h6(e,t,r,n){let i=r.reduce((o,a)=>(Object.prototype.hasOwnProperty.call(o,a.position)||(o[a.position]=[]),o[a.position]?.push(a),o),{});i.top&&Zi(e,t,i.top,n),i.right&&Zi(e,t,i.right,n),i.bottom&&Zi(e,t,i.bottom,n),i.left&&Zi(e,t,i.left,n),i.center&&Zi(e,t,i.center,n)}var $s={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},dm=30;function yr(e){return parseInt(e.replace("px",""),10)}function hi(e){return Number.isInteger(e)?e:e.toFixed(2)}function Xp(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function m6(e){let t={top:ge.window.scrollY,bottom:ge.window.scrollY+ge.window.innerHeight,left:ge.window.scrollX,right:ge.window.scrollX+ge.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function y6(e){let t=ge.getComputedStyle(e),{top:r,left:n,right:i,bottom:o,width:a,height:s}=e.getBoundingClientRect(),{marginTop:p,marginBottom:l,marginLeft:d,marginRight:f,paddingTop:h,paddingBottom:m,paddingLeft:b,paddingRight:E,borderBottomWidth:_,borderTopWidth:A,borderLeftWidth:T,borderRightWidth:k}=t;r=r+ge.window.scrollY,n=n+ge.window.scrollX,o=o+ge.window.scrollY,i=i+ge.window.scrollX;let O={top:yr(p),bottom:yr(l),left:yr(d),right:yr(f)},R={top:yr(h),bottom:yr(m),left:yr(b),right:yr(E)},y={top:yr(A),bottom:yr(_),left:yr(T),right:yr(k)},S={top:r-O.top,bottom:o+O.bottom,left:n-O.left,right:i+O.right};return{margin:O,padding:R,border:y,top:r,left:n,bottom:o,right:i,width:a,height:s,extremities:S,floatingAlignment:m6(S)}}function g6(e,{margin:t,width:r,height:n,top:i,left:o,bottom:a,right:s}){let p=n+t.bottom+t.top;e.fillStyle=$s.margin,e.fillRect(o,i-t.top,r,t.top),e.fillRect(s,i-t.top,t.right,p),e.fillRect(o,a,r,t.bottom),e.fillRect(o-t.left,i-t.top,t.left,p);let l=[{type:"margin",text:hi(t.top),position:"top"},{type:"margin",text:hi(t.right),position:"right"},{type:"margin",text:hi(t.bottom),position:"bottom"},{type:"margin",text:hi(t.left),position:"left"}];return Xp(l)}function b6(e,{padding:t,border:r,width:n,height:i,top:o,left:a,bottom:s,right:p}){let l=n-r.left-r.right,d=i-t.top-t.bottom-r.top-r.bottom;e.fillStyle=$s.padding,e.fillRect(a+r.left,o+r.top,l,t.top),e.fillRect(p-t.right-r.right,o+t.top+r.top,t.right,d),e.fillRect(a+r.left,s-t.bottom-r.bottom,l,t.bottom),e.fillRect(a+r.left,o+t.top+r.top,t.left,d);let f=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return Xp(f)}function E6(e,{border:t,width:r,height:n,top:i,left:o,bottom:a,right:s}){let p=n-t.top-t.bottom;e.fillStyle=$s.border,e.fillRect(o,i,r,t.top),e.fillRect(o,a-t.bottom,r,t.bottom),e.fillRect(o,i+t.top,t.left,p),e.fillRect(s-t.right,i+t.top,t.right,p);let l=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return Xp(l)}function v6(e,{padding:t,border:r,width:n,height:i,top:o,left:a}){let s=n-r.left-r.right-t.left-t.right,p=i-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=$s.content,e.fillRect(a+r.left+t.left,o+r.top+t.top,s,p),[{type:"content",position:"center",text:`${hi(s)} x ${hi(p)}`}]}function A6(e){return t=>{if(e&&t){let r=y6(e),n=g6(t,r),i=b6(t,r),o=E6(t,r),a=v6(t,r),s=r.width<=dm*3||r.height<=dm;h6(t,r,[...a,...i,...o,...n],s)}}}function _6(e){i6(A6(e))}var w6=(e,t)=>{let r=ge.document.elementFromPoint(e,t),n=i=>{if(i&&i.shadowRoot){let o=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(o)?i:o.shadowRoot?n(o):o}return i};return n(r)||r},fm,Ea={x:0,y:0};function hm(e,t){fm=w6(e,t),_6(fm)}var C6=(e,t)=>{let{measureEnabled:r}=t.globals||{};return Kn(()=>{if(typeof globalThis.document>"u")return;let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),Ea.x=i.clientX,Ea.y=i.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Kn(()=>{let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),hm(o.clientX,o.clientY)})},i=()=>{window.requestAnimationFrame(()=>{o6()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),n6(),globalThis.window.addEventListener("resize",i),hm(Ea.x,Ea.y)),()=>{globalThis.window.removeEventListener("resize",i),a6()}},[r,t.viewMode]),e()},T6=globalThis.FEATURES?.measure?[C6]:[],S6={[t6]:!1},mm=()=>({decorators:T6,initialGlobals:S6}),zA="outline",ym=e=>{(Array.isArray(e)?e:[e]).forEach(x6)},x6=e=>{let t=typeof e=="string"?e:e.join(""),r=ge.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},D6=(e,t)=>{let r=ge.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ge.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ge.document.head.appendChild(n)}};function R6(e){return We`
|
|
465
|
-
${e} body {
|
|
466
|
-
outline: 1px solid #2980b9 !important;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
${e} article {
|
|
470
|
-
outline: 1px solid #3498db !important;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
${e} nav {
|
|
474
|
-
outline: 1px solid #0088c3 !important;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
${e} aside {
|
|
478
|
-
outline: 1px solid #33a0ce !important;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
${e} section {
|
|
482
|
-
outline: 1px solid #66b8da !important;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
${e} header {
|
|
486
|
-
outline: 1px solid #99cfe7 !important;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
${e} footer {
|
|
490
|
-
outline: 1px solid #cce7f3 !important;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
${e} h1 {
|
|
494
|
-
outline: 1px solid #162544 !important;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
${e} h2 {
|
|
498
|
-
outline: 1px solid #314e6e !important;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
${e} h3 {
|
|
502
|
-
outline: 1px solid #3e5e85 !important;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
${e} h4 {
|
|
506
|
-
outline: 1px solid #449baf !important;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
${e} h5 {
|
|
510
|
-
outline: 1px solid #c7d1cb !important;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
${e} h6 {
|
|
514
|
-
outline: 1px solid #4371d0 !important;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
${e} main {
|
|
518
|
-
outline: 1px solid #2f4f90 !important;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
${e} address {
|
|
522
|
-
outline: 1px solid #1a2c51 !important;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
${e} div {
|
|
526
|
-
outline: 1px solid #036cdb !important;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
${e} p {
|
|
530
|
-
outline: 1px solid #ac050b !important;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
${e} hr {
|
|
534
|
-
outline: 1px solid #ff063f !important;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
${e} pre {
|
|
538
|
-
outline: 1px solid #850440 !important;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
${e} blockquote {
|
|
542
|
-
outline: 1px solid #f1b8e7 !important;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
${e} ol {
|
|
546
|
-
outline: 1px solid #ff050c !important;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
${e} ul {
|
|
550
|
-
outline: 1px solid #d90416 !important;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
${e} li {
|
|
554
|
-
outline: 1px solid #d90416 !important;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
${e} dl {
|
|
558
|
-
outline: 1px solid #fd3427 !important;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
${e} dt {
|
|
562
|
-
outline: 1px solid #ff0043 !important;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
${e} dd {
|
|
566
|
-
outline: 1px solid #e80174 !important;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
${e} figure {
|
|
570
|
-
outline: 1px solid #ff00bb !important;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
${e} figcaption {
|
|
574
|
-
outline: 1px solid #bf0032 !important;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
${e} table {
|
|
578
|
-
outline: 1px solid #00cc99 !important;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
${e} caption {
|
|
582
|
-
outline: 1px solid #37ffc4 !important;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
${e} thead {
|
|
586
|
-
outline: 1px solid #98daca !important;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
${e} tbody {
|
|
590
|
-
outline: 1px solid #64a7a0 !important;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
${e} tfoot {
|
|
594
|
-
outline: 1px solid #22746b !important;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
${e} tr {
|
|
598
|
-
outline: 1px solid #86c0b2 !important;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
${e} th {
|
|
602
|
-
outline: 1px solid #a1e7d6 !important;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
${e} td {
|
|
606
|
-
outline: 1px solid #3f5a54 !important;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
${e} col {
|
|
610
|
-
outline: 1px solid #6c9a8f !important;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
${e} colgroup {
|
|
614
|
-
outline: 1px solid #6c9a9d !important;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
${e} button {
|
|
618
|
-
outline: 1px solid #da8301 !important;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
${e} datalist {
|
|
622
|
-
outline: 1px solid #c06000 !important;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
${e} fieldset {
|
|
626
|
-
outline: 1px solid #d95100 !important;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
${e} form {
|
|
630
|
-
outline: 1px solid #d23600 !important;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
${e} input {
|
|
634
|
-
outline: 1px solid #fca600 !important;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
${e} keygen {
|
|
638
|
-
outline: 1px solid #b31e00 !important;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
${e} label {
|
|
642
|
-
outline: 1px solid #ee8900 !important;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
${e} legend {
|
|
646
|
-
outline: 1px solid #de6d00 !important;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
${e} meter {
|
|
650
|
-
outline: 1px solid #e8630c !important;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
${e} optgroup {
|
|
654
|
-
outline: 1px solid #b33600 !important;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
${e} option {
|
|
658
|
-
outline: 1px solid #ff8a00 !important;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
${e} output {
|
|
662
|
-
outline: 1px solid #ff9619 !important;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
${e} progress {
|
|
666
|
-
outline: 1px solid #e57c00 !important;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
${e} select {
|
|
670
|
-
outline: 1px solid #e26e0f !important;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
${e} textarea {
|
|
674
|
-
outline: 1px solid #cc5400 !important;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
${e} details {
|
|
678
|
-
outline: 1px solid #33848f !important;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
${e} summary {
|
|
682
|
-
outline: 1px solid #60a1a6 !important;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
${e} command {
|
|
686
|
-
outline: 1px solid #438da1 !important;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
${e} menu {
|
|
690
|
-
outline: 1px solid #449da6 !important;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
${e} del {
|
|
694
|
-
outline: 1px solid #bf0000 !important;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
${e} ins {
|
|
698
|
-
outline: 1px solid #400000 !important;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
${e} img {
|
|
702
|
-
outline: 1px solid #22746b !important;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
${e} iframe {
|
|
706
|
-
outline: 1px solid #64a7a0 !important;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
${e} embed {
|
|
710
|
-
outline: 1px solid #98daca !important;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
${e} object {
|
|
714
|
-
outline: 1px solid #00cc99 !important;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
${e} param {
|
|
718
|
-
outline: 1px solid #37ffc4 !important;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
${e} video {
|
|
722
|
-
outline: 1px solid #6ee866 !important;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
${e} audio {
|
|
726
|
-
outline: 1px solid #027353 !important;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
${e} source {
|
|
730
|
-
outline: 1px solid #012426 !important;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
${e} canvas {
|
|
734
|
-
outline: 1px solid #a2f570 !important;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
${e} track {
|
|
738
|
-
outline: 1px solid #59a600 !important;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
${e} map {
|
|
742
|
-
outline: 1px solid #7be500 !important;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
${e} area {
|
|
746
|
-
outline: 1px solid #305900 !important;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
${e} a {
|
|
750
|
-
outline: 1px solid #ff62ab !important;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
${e} em {
|
|
754
|
-
outline: 1px solid #800b41 !important;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
${e} strong {
|
|
758
|
-
outline: 1px solid #ff1583 !important;
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
${e} i {
|
|
762
|
-
outline: 1px solid #803156 !important;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
${e} b {
|
|
766
|
-
outline: 1px solid #cc1169 !important;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
${e} u {
|
|
770
|
-
outline: 1px solid #ff0430 !important;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
${e} s {
|
|
774
|
-
outline: 1px solid #f805e3 !important;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
${e} small {
|
|
778
|
-
outline: 1px solid #d107b2 !important;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
${e} abbr {
|
|
782
|
-
outline: 1px solid #4a0263 !important;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
${e} q {
|
|
786
|
-
outline: 1px solid #240018 !important;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
${e} cite {
|
|
790
|
-
outline: 1px solid #64003c !important;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
${e} dfn {
|
|
794
|
-
outline: 1px solid #b4005a !important;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
${e} sub {
|
|
798
|
-
outline: 1px solid #dba0c8 !important;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
${e} sup {
|
|
802
|
-
outline: 1px solid #cc0256 !important;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
${e} time {
|
|
806
|
-
outline: 1px solid #d6606d !important;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
${e} code {
|
|
810
|
-
outline: 1px solid #e04251 !important;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
${e} kbd {
|
|
814
|
-
outline: 1px solid #5e001f !important;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
${e} samp {
|
|
818
|
-
outline: 1px solid #9c0033 !important;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
${e} var {
|
|
822
|
-
outline: 1px solid #d90047 !important;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
${e} mark {
|
|
826
|
-
outline: 1px solid #ff0053 !important;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
${e} bdi {
|
|
830
|
-
outline: 1px solid #bf3668 !important;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
${e} bdo {
|
|
834
|
-
outline: 1px solid #6f1400 !important;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
${e} ruby {
|
|
838
|
-
outline: 1px solid #ff7b93 !important;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
${e} rt {
|
|
842
|
-
outline: 1px solid #ff2f54 !important;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
${e} rp {
|
|
846
|
-
outline: 1px solid #803e49 !important;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
${e} span {
|
|
850
|
-
outline: 1px solid #cc2643 !important;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
${e} br {
|
|
854
|
-
outline: 1px solid #db687d !important;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
${e} wbr {
|
|
858
|
-
outline: 1px solid #db175b !important;
|
|
859
|
-
}`}var P6=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[zA]),i=t.viewMode==="docs",o=jg(()=>R6(i?'[data-story-block="true"]':".sb-show-main"),[t]);return Kn(()=>{let a=i?`addon-outline-docs-${t.id}`:"addon-outline";return n?D6(a,o):ym(a),()=>{ym(a)}},[n,o,t]),e()},O6=globalThis.FEATURES?.outline?[P6]:[],F6={[zA]:!1},gm=()=>({decorators:O6,initialGlobals:F6}),I6=({parameters:e})=>{e?.test?.mockReset===!0?RE():e?.test?.clearMocks===!0?DE():e?.test?.restoreMocks!==!1&&PE()},kl=(e,t=0,r)=>{if(t>5||e==null)return e;if(gi(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=SE(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=kl(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,i]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=kl(i,t,n));return e}return e},N6=({initialArgs:e})=>{kl(e)},bm=!1,B6=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=$A(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=Vo({userEvent:VA.setup()},{intercept:!0,getKeys:r=>Object.keys(r).filter(n=>n!=="eventWrapper")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:()=>t,configurable:!0}),!bm)){let r=HTMLElement.prototype.focus,n=HTMLElement.prototype.focus,i=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:o=>{n=o},get(){return i.has(this)?r:(i.add(this),setTimeout(()=>i.delete(this),0),n)}}}),bm=!0}},Em=()=>({loaders:[I6,N6,B6]}),k6="viewport",M6={[k6]:{value:void 0,isRotated:!1}},vm=()=>({initialGlobals:M6});function WA(){return[(mm.default??mm)(),(tm.default??tm)(),(cm.default??cm)(),(gm.default??gm)(),(vm.default??vm)(),(Xh.default??Xh)(),(rm.default??rm)(),(Em.default??Em)()]}function j6(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}function as(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}function q6(e){return"__children"in e?e.__children:[]}var KA=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Ml=(e,t)=>{let r=KA(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},L6=(e,t)=>`${Ml(e,"kind")}${t?`--${Ml(t,"name")}`:""}`,$6=(e,t)=>`${e}:${Ml(t,"test")}`,V6=e=>yP(e);function Am(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function jl(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Am(e,t))&&(!r||!Am(e,r))}var U6=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};function _m(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function wm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var J6="[object RegExp]",H6="[object String]",G6="[object Number]",z6="[object Boolean]",Cm="[object Arguments]",W6="[object Symbol]",K6="[object Date]",Y6="[object Map]",X6="[object Set]",Q6="[object Array]",Z6="[object Function]",e5="[object ArrayBuffer]",wu="[object Object]",t5="[object Error]",r5="[object DataView]",n5="[object Uint8Array]",i5="[object Uint8ClampedArray]",o5="[object Uint16Array]",a5="[object Uint32Array]",s5="[object BigUint64Array]",u5="[object Int8Array]",l5="[object Int16Array]",c5="[object Int32Array]",p5="[object BigInt64Array]",d5="[object Float32Array]",f5="[object Float64Array]";function Mr(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function ko(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],a=e[o];r[o]=t(a,o,e)}return r}function h5(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],a=e[o];t(a,o)&&(r[o]=a)}return r}var Cu=kt(uy(),1);function m5(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function y5(e,t,r){return oo(e,t,void 0,void 0,void 0,void 0,r)}function oo(e,t,r,n,i,o,a){let s=a(e,t,r,n,i,o);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return po(e,t,o,a)}return po(e,t,o,a)}function po(e,t,r,n){if(Object.is(e,t))return!0;let i=wm(e),o=wm(t);if(i===Cm&&(i=wu),o===Cm&&(o=wu),i!==o)return!1;switch(i){case H6:return e.toString()===t.toString();case G6:{let p=e.valueOf(),l=t.valueOf();return m5(p,l)}case z6:case K6:case W6:return Object.is(e.valueOf(),t.valueOf());case J6:return e.source===t.source&&e.flags===t.flags;case Z6:return e===t}r=r??new Map;let a=r.get(e),s=r.get(t);if(a!=null&&s!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(i){case Y6:{if(e.size!==t.size)return!1;for(let[p,l]of e.entries())if(!t.has(p)||!oo(l,t.get(p),p,e,t,r,n))return!1;return!0}case X6:{if(e.size!==t.size)return!1;let p=Array.from(e.values()),l=Array.from(t.values());for(let d=0;d<p.length;d++){let f=p[d],h=l.findIndex(m=>oo(f,m,void 0,e,t,r,n));if(h===-1)return!1;l.splice(h,1)}return!0}case Q6:case n5:case i5:case o5:case a5:case s5:case u5:case l5:case c5:case p5:case d5:case f5:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let p=0;p<e.length;p++)if(!oo(e[p],t[p],p,e,t,r,n))return!1;return!0}case e5:return e.byteLength!==t.byteLength?!1:po(new Uint8Array(e),new Uint8Array(t),r,n);case r5:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:po(new Uint8Array(e),new Uint8Array(t),r,n);case t5:return e.name===t.name&&e.message===t.message;case wu:{if(!(po(e.constructor,t.constructor,r,n)||Mr(e)&&Mr(t)))return!1;let p=[...Object.keys(e),..._m(e)],l=[...Object.keys(t),..._m(t)];if(p.length!==l.length)return!1;for(let d=0;d<p.length;d++){let f=p[d],h=e[f];if(!Object.hasOwn(t,f))return!1;let m=t[f];if(!oo(h,m,f,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function g5(){}function b5(e,t){return y5(e,t,g5)}var Vn=Symbol("incompatible"),ql=(e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?Vn:e.reduce((n,i,o)=>{let a=ql(i,{type:r.value});return a!==Vn&&(n[o]=a),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?Vn:Object.entries(e).reduce((n,[i,o])=>{let a=ql(o,{type:r.value[i]});return a===Vn?n:Object.assign(n,{[i]:a})},{});case"other":{let n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:Vn}default:return Vn}},E5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>{if(!t[n])return r;let o=ql(i,t[n]);return o===Vn?r:Object.assign(r,{[n]:o})},{}),ss=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,i)=>(r[i]=ss(e[i],t[i]),r),[...e]).filter(r=>r!==void 0):!Mr(e)||!Mr(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let i=ss(e[n],t[n]);i!==void 0&&(r[n]=i)}else r[n]=e[n];return r},{}),v5=(e,t)=>Object.entries(t).reduce((r,[n,{options:i}])=>{function o(){return n in e&&(r[n]=e[n]),r}if(!i)return o();if(!Array.isArray(i))return Ot.error(We`
|
|
860
|
-
Invalid argType: '${n}.options' should be an array.
|
|
861
|
-
|
|
862
|
-
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
863
|
-
`),o();if(i.some(f=>f&&["object","function"].includes(typeof f)))return Ot.error(We`
|
|
864
|
-
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
865
|
-
|
|
866
|
-
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
867
|
-
`),o();let a=Array.isArray(e[n]),s=a&&e[n].findIndex(f=>!i.includes(f)),p=a&&s===-1;if(e[n]===void 0||i.includes(e[n])||p)return o();let l=a?`${n}[${s}]`:n,d=i.map(f=>typeof f=="string"?`'${f}'`:String(f)).join(", ");return Ot.warn(`Received illegal value for '${l}'. Supported options: ${d}`),r},{}),fo=Symbol("Deeply equal"),us=(e,t)=>{if(typeof e!=typeof t)return t;if(b5(e,t))return fo;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,i,o)=>{let a=us(e[o],i);return a!==fo&&(n[o]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Mr(e)&&Mr(t)?Object.keys({...e,...t}).reduce((r,n)=>{let i=us(e?.[n],t?.[n]);return i===fo?r:Object.assign(r,{[n]:i})},{}):t},YA="UNTARGETED";function A5({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,i])=>{let{target:o=YA}=t[n]||{};r[o]=r[o]||{},r[o][n]=i}),r}function _5(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var w5=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=us(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==fo&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=v5(t,e.argTypes);this.argsByStoryId[e.id]=ss(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=E5(t,e.argTypes);return this.updateFromDelta(e,r)}update(e,t){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=_5({...this.argsByStoryId[e],...t})}},XA=(e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),C5=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&us(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let n=XA(t);this.initialGlobals={...n,...e},this.globals=this.initialGlobals,r&&r!==fo&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,n])=>(this.allowedGlobalNames.has(r)?t[r]=n:vt.warn(`Attempted to set a global (${r}) that is not defined in initial globals or globalTypes`),t),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)};for(let t in e)e[t]===void 0&&(this.globals[t]=this.initialGlobals[t])}},T5=kt(uy(),1),S5=(0,T5.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),x5=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e==="*")return t[0];if(typeof e=="string")return this.entries[e]?this.entries[e]:t.find(i=>i.id.startsWith(e));let{name:r,title:n}=e;return t.find(i=>i.name===r&&i.title===n)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new fg({storyId:e});return t}importPathToEntry(e){return S5(this.entries)[e]}},D5=e=>typeof e=="string"?{name:e}:e,R5=e=>typeof e=="string"?{type:e}:e,P5=(e,t)=>{let{type:r,control:n,...i}=e,o={name:t,...i};return r&&(o.type=D5(r)),n?o.control=R5(n):n===!1&&(o.control={disable:!0}),o},ls=e=>ko(e,P5),ht=e=>Array.isArray(e)?e:e?[e]:[],O5=We`
|
|
868
|
-
CSF .story annotations deprecated; annotate story functions directly:
|
|
869
|
-
- StoryFn.story.name => StoryFn.storyName
|
|
870
|
-
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
871
|
-
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
872
|
-
`;function ho(e,t,r){let n=t,i=typeof t=="function"?t:null,{story:o}=n;o&&(vt.debug("deprecated story",o),bc(O5));let a=V6(e),s=typeof n!="function"&&n.name||n.storyName||o?.name||a,p=[...ht(n.decorators),...ht(o?.decorators)],l={...o?.parameters,...n.parameters},d={...o?.args,...n.args},f={...o?.argTypes,...n.argTypes},h=[...ht(n.loaders),...ht(o?.loaders)],m=[...ht(n.beforeEach),...ht(o?.beforeEach)],b=[...ht(n.afterEach),...ht(o?.afterEach)],{render:E,play:_,tags:A=[],globals:T={}}=n,k=l.__id||L6(r.id,a);return{moduleExport:t,id:k,name:s,tags:A,decorators:p,parameters:l,args:d,argTypes:ls(f),loaders:h,beforeEach:m,afterEach:b,globals:T,...E&&{render:E},...i&&{userStoryFn:i},..._&&{play:_}}}function Ll(e,t=e.title,r){let{id:n,argTypes:i}=e;return{id:KA(n||t),...e,title:t,...i&&{argTypes:ls(i)},parameters:{fileName:r,...e.parameters}}}var F5=e=>{let{globals:t,globalTypes:r}=e;(t||r)&&vt.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},I5=e=>{let{options:t}=e;t?.storySort&&vt.error("The storySort option parameter can only be set globally")},va=e=>{e&&(F5(e),I5(e))};function N5(e,t,r){let{default:n,__namedExportsOrder:i,...o}=e,a=Object.values(o).find(l=>as(l));if(a){let l=Ll(a.meta.input,r,t);va(l.parameters);let d={meta:l,stories:{},moduleExports:e};return Object.keys(o).forEach(f=>{if(jl(f,l)&&as(o[f])){let h=o[f],m=ho(f,h.input,l);va(m.parameters),d.stories[m.id]=m,q6(h).forEach(b=>{var A;let E=b.input.name,_=$6(m.id,E);(A=b.input).parameters??(A.parameters={}),b.input.parameters.__id=_,d.stories[_]=ho(E,b.input,l)})}}),d.projectAnnotations=a.meta.preview.composed,d}let s=Ll(n,r,t);va(s.parameters);let p={meta:s,stories:{},moduleExports:e};return Object.keys(o).forEach(l=>{if(jl(l,s)){let d=ho(l,o[l],s);va(d.parameters),p.stories[d.id]=d}}),p}function QA(e,t,r){let n=r(e);return i=>t(n,i)}function ZA({componentId:e,title:t,kind:r,id:n,name:i,story:o,parameters:a,initialArgs:s,argTypes:p,...l}={}){return l}function e_(e,t){let r={},n=o=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...ZA(a)},o(r.value)},i=t.reduce((o,a)=>QA(o,a,n),e);return o=>(r.value=o,i(o))}var ei=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((i,o)=>(Object.entries(o).forEach(([a,s])=>{let p=i[a];Array.isArray(s)||typeof p>"u"?i[a]=s:Mr(s)&&Mr(p)?t[a]=!0:typeof s<"u"&&(i[a]=s)}),i),{});return Object.keys(t).forEach(i=>{let o=r.filter(Boolean).map(a=>a[i]).filter(a=>typeof a<"u");o.every(a=>Mr(a))?n[i]=ei(...o):n[i]=o[o.length-1]}),n};function Qp(e,t,r){let{moduleExport:n,id:i,name:o}=e||{},a=r_(e,t,r),s=async y=>{let S={};for(let C of[ht(r.loaders),ht(t.loaders),ht(e.loaders)]){if(y.abortSignal.aborted)return S;let D=await Promise.all(C.map(J=>J(y)));Object.assign(S,...D)}return S},p=async y=>{let S=new Array;for(let C of[...ht(r.beforeEach),...ht(t.beforeEach),...ht(e.beforeEach)]){if(y.abortSignal.aborted)return S;let D=await C(y);D&&S.push(D)}return S},l=async y=>{let S=[...ht(r.afterEach),...ht(t.afterEach),...ht(e.afterEach)].reverse();for(let C of S){if(y.abortSignal.aborted)return;await C(y)}},d=y=>y.originalStoryFn(y.args,y),{applyDecorators:f=e_,runStep:h}=r,m=[...ht(e?.decorators),...ht(t?.decorators),...ht(r?.decorators)],b=e?.userStoryFn||e?.render||t.render||r.render,E=kg(f)(d,m),_=y=>E(y),A=e?.play??t?.play,T=EP(A);if(!b&&!T)throw new wg({id:i});let k=y=>async()=>(await y.renderToCanvas(),y.canvas),O=e.mount??t.mount??r.mount??k,R=r.testingLibraryRender;return{storyGlobals:{},...a,moduleExport:n,id:i,name:o,story:o,originalStoryFn:b,undecoratedStoryFn:d,unboundStoryFn:_,applyLoaders:s,applyBeforeEach:p,applyAfterEach:l,playFunction:A,runStep:h,mount:O,testingLibraryRender:R,renderToCanvas:r.renderToCanvas,usesMount:T}}function t_(e,t,r){return{...r_(void 0,e,t),moduleExport:r}}function r_(e,t,r){let n=["dev","test"],i=ge.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],o=e?.tags?.includes("test-fn")?["!autodocs"]:[],a=U6(...n,...i,...r.tags??[],...t.tags??[],...o,...e?.tags??[]),s=ei(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:p=[],argsEnhancers:l=[]}=r,d=ei(r.argTypes,t.argTypes,e?.argTypes);if(e){let T=e?.userStoryFn||e?.render||t.render||r.render;s.__isArgsStory=T&&T.length>0}let f={...r.args,...t.args,...e?.args},h={...t.globals,...e?.globals},m={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:s,initialArgs:f,argTypes:d,storyGlobals:h};m.argTypes=p.reduce((T,k)=>k({...m,argTypes:T}),m.argTypes);let b={...f};m.initialArgs=[...l].reduce((T,k)=>({...T,...k({...m,initialArgs:T})}),b);let{name:E,story:_,...A}=m;return A}function n_(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(ge.FEATURES?.argTypeTargetsV7){let o=A5(e);r={...e,allArgs:e.args,argsByTarget:o,args:o[YA]||{}}}let n=Object.entries(r.args).reduce((o,[a,s])=>{if(!r.argTypes[a]?.mapping)return o[a]=s,o;let p=l=>{let d=r.argTypes[a].mapping;return d&&l in d?d[l]:l};return o[a]=Array.isArray(s)?s.map(p):p(s),o},{}),i=Object.entries(n).reduce((o,[a,s])=>{let p=r.argTypes[a]||{};return bP(p,n,r.globals)&&(o[a]=s),o},{});return{...r,unmappedArgs:t,args:i}}var $l=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(vt.warn(We`
|
|
873
|
-
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
874
|
-
|
|
875
|
-
Consider using the mapping feature or fully custom args:
|
|
876
|
-
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
877
|
-
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
878
|
-
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?$l(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:ko(e,i=>$l(i,t,new Set(r)))}):{name:"object",value:{}}},i_=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,i=ko(n,(a,s)=>({name:s,type:$l(a,`${t}.${s}`,new Set)})),o=ko(r,(a,s)=>({name:s}));return ei(i,o,r)};i_.secondPass=!0;var Tm=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),o_=(e,t,r)=>!t&&!r?e:e&&h5(e,(n,i)=>{let o=n.name||i.toString();return!!(!t||Tm(o,t))&&(!r||!Tm(o,r))}),B5=(e,t,r)=>{let{type:n,options:i}=e;if(n){if(r.color&&r.color.test(t)){let o=n.name;if(o==="string")return{control:{type:"color"}};o!=="enum"&&vt.warn(`Addon controls: Control of type color only supports string, received "${o}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:o}=n;return{control:{type:o?.length<=5?"radio":"select"},options:o}}case"function":case"symbol":return null;default:return{control:{type:i?"select":"object"}}}}},Zp=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:i=null,matchers:o={}}={}}}=e;if(!r)return t;let a=o_(t,n,i),s=ko(a,(p,l)=>p?.type&&B5(p,l.toString(),o));return ei(s,a)};Zp.secondPass=!0;function cs({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:i,beforeEach:o,afterEach:a,initialGlobals:s,...p}){return{...e&&{argTypes:ls(e)},...t&&{globalTypes:ls(t)},decorators:ht(n),loaders:ht(i),beforeEach:ht(o),afterEach:ht(a),argTypesEnhancers:[...r||[],i_,Zp],initialGlobals:s,...p}}var k5=e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}};function a_(e){return async(t,r,n)=>{await e.reduceRight((i,o)=>async()=>o(t,i,n),async()=>r(n))()}}function Mo(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function fn(e,t,r={}){return Mo(e,t).reduce((n,i)=>{let o=ht(i);return r.reverseFileOrder?[...o,...n]:[...n,...o]},[])}function Aa(e,t){return Object.assign({},...Mo(e,t))}function eo(e,t){return Mo(e,t).pop()}function Ii(e){let t=fn(e,"argTypesEnhancers"),r=Mo(e,"runStep"),n=fn(e,"beforeAll");return{parameters:ei(...Mo(e,"parameters")),decorators:fn(e,"decorators",{reverseFileOrder:!(ge.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Aa(e,"args"),argsEnhancers:fn(e,"argsEnhancers"),argTypes:Aa(e,"argTypes"),argTypesEnhancers:[...t.filter(i=>!i.secondPass),...t.filter(i=>i.secondPass)],initialGlobals:Aa(e,"initialGlobals"),globalTypes:Aa(e,"globalTypes"),loaders:fn(e,"loaders"),beforeAll:k5(n),beforeEach:fn(e,"beforeEach"),afterEach:fn(e,"afterEach"),render:eo(e,"render"),renderToCanvas:eo(e,"renderToCanvas"),applyDecorators:eo(e,"applyDecorators"),runStep:a_(r),tags:fn(e,"tags"),mount:eo(e,"mount"),testingLibraryRender:eo(e,"testingLibraryRender")}}function s_(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function ed(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
879
|
-
animation: none !important;
|
|
880
|
-
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
881
|
-
animation-delay: 0s !important;
|
|
882
|
-
animation-direction: ${e?"reverse":"normal"} !important;
|
|
883
|
-
animation-play-state: paused !important;
|
|
884
|
-
transition: none !important;
|
|
885
|
-
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}async function td(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...u_(globalThis.document)],i=async()=>{if(t||e?.aborted)return;let o=n.flatMap(a=>a?.getAnimations?.()||[]).filter(a=>a.playState==="running"&&!M5(a));o.length>0&&(await Promise.all(o.map(a=>a.finished)),await i())};i().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}function u_(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...u_(r.shadowRoot)),t),[])}function M5(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}var rd=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function l_(e,t,r){return as(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:j6(t)?t.input:t,preview:r}}function j5(e){globalThis.defaultProjectAnnotations=e}var q5="ComposedStory",L5="Unnamed Story";function $5(e){return e?Ii([e]):{}}function V5(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Ii([...WA(),globalThis.defaultProjectAnnotations??{},Ii(t.map($5))]),globalThis.globalProjectAnnotations??{}}var vn=[];function c_(e,t,r,n,i){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??q5;let o=Ll(t),a=i||e.storyName||e.story?.name||e.name||L5,s=ho(a,e,o),p=cs(Ii([n??globalThis.globalProjectAnnotations??{},r??{}])),l=Qp(s,o,p),d={...XA(p.globalTypes),...p.initialGlobals,...l.storyGlobals},f=new rd,h=()=>{let A=n_({hooks:new Oc,globals:d,args:{...l.initialArgs},viewMode:"story",reporting:f,loaded:{},abortSignal:new AbortController().signal,step:(T,k)=>l.runStep(T,k,A),canvasElement:null,canvas:{},userEvent:{},globalTypes:p.globalTypes,...l,context:null,mount:null});return A.parameters.__isPortableStory=!0,A.context=A,l.renderToCanvas&&(A.renderToCanvas=async()=>{let T=await l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:()=>{},showError:k=>{throw new Error(`${k.title}
|
|
886
|
-
${k.description}`)},showException:k=>{throw k},forceRemount:!0,storyContext:A,storyFn:()=>l.unboundStoryFn(A),unboundStoryFn:l.unboundStoryFn},A.canvasElement);T&&vn.push(T)}),A.mount=l.mount(A),A},m,b=async A=>{let T=h();return T.canvasElement??(T.canvasElement=globalThis?.document?.body),m&&(T.loaded=m.loaded),Object.assign(T,A),l.playFunction(T)},E=A=>{let T=h();return Object.assign(T,A),G5(l,T)},_=l.playFunction?b:void 0;return Object.assign(function(A){let T=h();return m&&(T.loaded=m.loaded),T.args={...T.initialArgs,...A},l.unboundStoryFn(T)},{id:l.id,storyName:a,load:async()=>{for(let T of[...vn].reverse())await T();vn.length=0;let A=h();A.loaded=await l.applyLoaders(A),vn.push(...(await l.applyBeforeEach(A)).filter(Boolean)),m=A},globals:d,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:_,run:E,reporting:f,tags:l.tags})}var U5=(e,t,r,n)=>c_(e,t,r,{},n);function J5(e,t,r=U5){let{default:n,__esModule:i,__namedExportsOrder:o,...a}=e,s=n;return Object.entries(a).reduce((p,[l,d])=>{let{story:f,meta:h}=l_(d);return!s&&h&&(s=h),jl(l,s)?Object.assign(p,{[l]:r(f,s,t,l)}):p},{})}function H5(e){return e.extend({mount:async({mount:t,page:r},n)=>{await n(async(i,...o)=>{if(!("__pw_type"in i)||"__pw_type"in i&&i.__pw_type!=="jsx")throw new Error(We`
|
|
887
|
-
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
888
|
-
Please use JSX format for your components such as:
|
|
889
|
-
|
|
890
|
-
instead of:
|
|
891
|
-
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
892
|
-
|
|
893
|
-
do:
|
|
894
|
-
await mount(<MyComponent foo="bar"/>)
|
|
895
|
-
|
|
896
|
-
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
897
|
-
`);let{props:a,...s}=i;await r.evaluate(async l=>{let d=await globalThis.__pwUnwrapObject?.(l);return("__pw_type"in d?d.type:d)?.load?.()},s);let p=await t(i,...o);return await r.evaluate(async l=>{let d=await globalThis.__pwUnwrapObject?.(l),f="__pw_type"in d?d.type:d,h=document.querySelector("#root");return f?.play?.({canvasElement:h})},s),p})}})}async function G5(e,t){for(let o of[...vn].reverse())await o();if(vn.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,vn.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;vn.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new Pc({playFunction:r.toString()})}),await r(t));let i;s_()?i=ed():await td(t.abortSignal),await e.applyAfterEach(t),await i?.()}var Sm=1e3,z5=1e4,p_=class{constructor(e,t,r){this.importFn=t,this.storyIndex=new x5(e),this.projectAnnotations=cs(Ii([...WA(),r]));let{initialGlobals:n,globalTypes:i}=this.projectAnnotations;this.args=new w5,this.userGlobals=new C5({globals:n,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Cu.default)(Sm)(N5),this.prepareMetaWithCache=(0,Cu.default)(Sm)(t_),this.prepareStoryWithCache=(0,Cu.default)(z5)(Qp)}setProjectAnnotations(e){this.projectAnnotations=cs(e);let{initialGlobals:t,globalTypes:r}=e;this.userGlobals.set({globals:t,globalTypes:r})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:r}=this.storyIndex.storyIdToEntry(e),n=await this.importFn(t);return this.processCSFFileWithCache(n,t,r)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:r}])=>{e[r]=t}),(await Promise.all(Object.entries(e).map(async([t,r])=>({importPath:t,csfFile:await this.loadCSFFileByStoryId(r)})))).reduce((t,{importPath:r,csfFile:n})=>(t[r]=n,t),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let r=t.stories[e];if(!r)throw new Ag({storyId:e});let n=t.meta,i=this.prepareStoryWithCache(r,n,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new Oc,i}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),r=t.type==="docs"?t.storiesImports:[],[n,...i]=await Promise.all([this.importFn(t.importPath),...r.map(o=>{let a=this.storyIndex.importPathToEntry(o);return this.loadCSFFileByStoryId(a.id)})]);return{entryExports:n,csfFiles:i}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let r=this.userGlobals.get(),{initialGlobals:n}=this.userGlobals,i=new rd;return n_({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:n,globalTypes:this.projectAnnotations.globalTypes,userGlobals:r,reporting:i,globals:{...r,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,...t){this.cleanupCallbacks[e.id]=(this.cleanupCallbacks[e.id]||[]).concat(t)}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let r of[...t].reverse())await r();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log("extract: extracting stories",t),!t)throw new mg;let r=Object.entries(this.storyIndex.entries).reduce((n,[i,o])=>{if(o.type==="docs")return n;let a=t[o.importPath],s=this.storyFromCSFFile({storyId:i,csfFile:a});return!e.includeDocsOnly&&s.parameters.docsOnly||(n[i]=Object.entries(s).reduce((p,[l,d])=>l==="story"&&o.subtype==="test"?{...p,story:o.parentName}:l==="moduleExport"||typeof d=="function"?p:Array.isArray(d)?Object.assign(p,{[l]:d.slice().sort()}):Object.assign(p,{[l]:d}),{args:s.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...s.storyGlobals},storyId:o.parent?o.parent:i})),n},{});return console.log("extract: stories",r),r}};function W5(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var K5=e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]};function xm(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}var d_=(e,t,r)=>{let{directory:n,importPathMatcher:i,titlePrefix:o=""}=t||{};typeof e=="number"&&Ot.warn(We`
|
|
898
|
-
CSF Auto-title received a numeric fileName. This typically happens when
|
|
899
|
-
webpack is mis-configured in production mode. To force webpack to produce
|
|
900
|
-
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
901
|
-
`);let a=W5(String(e));if(i.exec(a)){if(!r){let s=a.replace(n,""),p=xm([o,s]).split("/");return p=K5(p),p.join("/")}return o?xm([o,r]):r}},Y5=(e,t,r)=>{for(let n=0;n<t.length;n+=1){let i=d_(e,t[n],r);if(i)return i}return r||void 0},Dm=/\s*\/\s*/,X5=(e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",i=e.order||[],o=t.title.trim().split(Dm),a=r.title.trim().split(Dm);e.includeNames&&(o.push(t.name),a.push(r.name));let s=0;for(;o[s]||a[s];){if(!o[s])return-1;if(!a[s])return 1;let p=o[s],l=a[s];if(p!==l){let f=i.indexOf(p),h=i.indexOf(l),m=i.indexOf("*");return f!==-1||h!==-1?(f===-1&&(m!==-1?f=m:f=i.length),h===-1&&(m!==-1?h=m:h=i.length),f-h):n==="configure"?0:p.localeCompare(l,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=i.indexOf(p);d===-1&&(d=i.indexOf("*")),i=d!==-1&&Array.isArray(i[d+1])?i[d+1]:[],s+=1}return 0},Q5=(e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=X5(t),e.sort(n)}else e.sort((n,i)=>r.indexOf(n.importPath)-r.indexOf(i.importPath));return e},Z5=(e,t,r)=>{try{return Q5(e,t,r)}catch(n){throw new Error(We`
|
|
902
|
-
Error sorting stories with sort parameter ${t}:
|
|
903
|
-
|
|
904
|
-
> ${n.message}
|
|
905
|
-
|
|
906
|
-
Are you using a V6-style sort function in V7 mode?
|
|
907
|
-
|
|
908
|
-
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
909
|
-
`)}},Vs=new Error("prepareAborted"),{AbortController:Rm}=globalThis;function Pm(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}var Vl=class{constructor(e,t,r,n,i,o,a={autoplay:!0,forceInitialArgs:!1},s){this.channel=e,this.store=t,this.renderToScreen=r,this.callbacks=n,this.id=i,this.viewMode=o,this.renderOptions=a,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new Rm,this.renderId=Date.now(),s&&(this.story=s,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(Wn,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),r&&(await r(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(Wn,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),e.aborted}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Vs}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){let{canvasElement:r}=this;if(!this.story)throw new Error("cannot render when not prepared");let n=this.story;if(!r)throw new Error("cannot render when canvasElement is unset");let{id:i,componentId:o,title:a,name:s,tags:p,applyLoaders:l,applyBeforeEach:d,applyAfterEach:f,unboundStoryFn:h,playFunction:m,runStep:b}=n;t&&!e&&(this.cancelRender(),this.abortController=new Rm);let E=this.abortController.signal,_=!1,A=n.usesMount;try{let T={...this.storyContext(),viewMode:this.viewMode,abortSignal:E,canvasElement:r,loaded:{},step:(G,L)=>b(G,L,T),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{let G=await this.renderToScreen(k,r);this.teardownRender=G||(()=>{}),_=!0},mount:async(...G)=>{this.callbacks.showStoryDuringRender?.();let L=null;return await this.runPhase(E,"rendering",async()=>{L=await n.mount(T)(...G)}),A&&await this.runPhase(E,"playing"),L}};T.context=T;let k={componentId:o,title:a,kind:a,id:i,name:s,story:s,tags:p,...this.callbacks,showError:G=>(this.phase="errored",this.callbacks.showError(G)),showException:G=>(this.phase="errored",this.callbacks.showException(G)),forceRemount:t||this.notYetRendered,storyContext:T,storyFn:()=>h(T),unboundStoryFn:h};if(await this.runPhase(E,"loading",async()=>{T.loaded=await l(T)}),E.aborted)return;let O=await d(T);if(this.store.addCleanupCallbacks(n,...O),this.checkIfAborted(E)||(!_&&!A&&await T.mount(),this.notYetRendered=!1,E.aborted))return;let R=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,y=new Set,S=G=>{G.error&&y.add(G.error)},C=G=>{G.reason&&y.add(G.reason)};if(this.renderOptions.autoplay&&t&&m&&this.phase!=="errored"){window?.addEventListener?.("error",S),window?.addEventListener?.("unhandledrejection",C),this.disableKeyListeners=!0;try{if(A?await m(T):(T.mount=async()=>{throw new Pc({playFunction:m.toString()})},await this.runPhase(E,"playing",async()=>m(T))),!_)throw new Cg;this.checkIfAborted(E),!R&&y.size>0?await this.runPhase(E,"errored"):await this.runPhase(E,"played")}catch(G){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(E,"errored",async()=>{this.channel.emit(yy,Pm(G))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw G;console.error(G)}if(!R&&y.size>0&&this.channel.emit(gy,Array.from(y).map(Pm)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",C),window?.removeEventListener?.("error",S),E.aborted)return}await this.runPhase(E,"completing",async()=>{s_()?this.store.addCleanupCallbacks(n,ed()):await td(E)}),await this.runPhase(E,"completed",async()=>{this.channel.emit(qa,i)}),this.phase!=="errored"&&await this.runPhase(E,"afterEach",async()=>{await f(T)});let D=!R&&y.size>0,J=T.reporting.reports.some(G=>G.status==="failed"),M=D||J;await this.runPhase(E,"finished",async()=>this.channel.emit(ju,{storyId:i,status:M?"error":"success",reporters:T.reporting.reports}))}catch(T){this.phase="errored",this.callbacks.showException(T),await this.runPhase(E,"finished",async()=>this.channel.emit(ju,{storyId:i,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(t=>setTimeout(t,0))}window?.location?.reload?.(),await new Promise(()=>{})}},{fetch:e9}=ge,t9="./index.json",f_=class{constructor(e,t,r=vr.getChannel(),n=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=r,this.storyRenders=[],this.storeInitializationPromise=new Promise((i,o)=>{this.resolveStoreInitializationPromise=i,this.rejectStoreInitializationPromise=o}),n&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return bc("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new _g}})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e);let t=globalThis?.navigator?.userAgent;await this.channel.emit(Ey,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(Ty,this.onStoryIndexChanged.bind(this)),this.channel.on(yc,this.onUpdateGlobals.bind(this)),this.channel.on(gc,this.onUpdateArgs.bind(this)),this.channel.on(Iy,this.onRequestArgTypesInfo.bind(this)),this.channel.on(hc,this.onResetArgs.bind(this)),this.channel.on(fc,this.onForceReRender.bind(this)),this.channel.on(ja,this.onForceRemount.bind(this)),this.channel.on(Py,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new yg;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let t=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(t)}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(t){throw this.renderPreviewEntryError("Error in beforeAll hook:",t),t}}async getStoryIndexFromServer(){let e=await e9(t9);if(e.status===200)return e.json();throw new gg({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new p_(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new cr({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Ay,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let t=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(t),!this.storyStoreValue){await this.initializeWithProjectAnnotations(t);return}this.storyStoreValue.setProjectAnnotations(t),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError("Error loading story index:",e),e}}async onStoriesChanged({importFn:e,storyIndex:t}){if(!this.storyStoreValue)throw new cr({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:t})}async onUpdateGlobals({globals:e,currentStory:t}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new cr({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:r,storyGlobals:n,userGlobals:i,globals:o}=this.storyStoreValue.getStoryContext(t);this.channel.emit(bo,{initialGlobals:r,userGlobals:i,storyGlobals:n,globals:o})}else{let{initialGlobals:r,globals:n}=this.storyStoreValue.userGlobals;this.channel.emit(bo,{initialGlobals:r,userGlobals:n,storyGlobals:{},globals:n})}await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new cr({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(r=>r.id===e&&!r.renderOptions.forceInitialArgs).map(r=>r.story&&r.story.usesMount?r.remount():r.rerender())),this.channel.emit(_y,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let r=await this.storyStoreValue?.loadStory(t);this.channel.emit(qu,{id:e,success:!0,payload:{argTypes:r?.argTypes||{}},error:null})}catch(r){this.channel.emit(qu,{id:e,success:!1,error:r?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new cr({methodName:"onResetArgs"});let r=this.storyRenders.find(i=>i.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),n=(t||[...new Set([...Object.keys(r.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((i,o)=>(i[o]=r.initialArgs[o],i),{});await this.onUpdateArgs({storyId:e,updatedArgs:n})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(t=>t.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,r,n){if(!this.renderToCanvas||!this.storyStoreValue)throw new cr({methodName:"renderStoryToElement"});let i=new Vl(this.channel,this.storyStoreValue,this.renderToCanvas,r,e.id,"docs",n,e);return i.renderToElement(t),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new cr({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new cr({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new cr({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,vt.error(e),vt.error(t),this.channel.emit(hy,t)}},nd=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.renderStoryToElement=r,this.storyIdByName=i=>{let o=this.nameToStoryId.get(i);if(o)return o;throw new Error(`No story found with that name: ${i}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=i=>this.store.componentStoriesFromCSFFile({csfFile:i}),this.storyById=i=>{if(!i){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let o=this.storyIdToCSFFile.get(i);if(!o)throw new Error(`Called \`storyById\` for story that was never loaded: ${i}`);return this.store.storyFromCSFFile({storyId:i,csfFile:o})},this.getStoryContext=i=>({...this.store.getStoryContext(i),loaded:{},viewMode:"docs"}),this.loadStory=i=>this.store.loadStory({storyId:i}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,n.forEach((i,o)=>{this.referenceCSFFile(i)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let r=e.stories[t.id];this.storyIdToCSFFile.set(r.id,e),this.exportToStory.set(r.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{this.nameToStoryId.set(t.name,t.id),this.componentStoriesValue.push(t),this.primaryStory||(this.primaryStory=t)}))}referenceMeta(e,t){let r=this.resolveModuleExport(e);if(r.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");t&&this.attachCSFFile(r.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let t=Array.from(this.attachedCSFFiles)[0];if(e==="meta")return{type:"meta",csfFile:t};let{component:r}=t.meta;if(!r)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:r}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(!t&&e&&typeof e=="object"&&"default"in e&&(t=this.exportsToCSFFile.get(e.default)),t)return{type:"meta",csfFile:t};let r=this.exportToStory.get(as(e)?e.input:e);return r?{type:"story",story:r}:{type:"component",component:e}}resolveOf(e,t=[]){let r;if(["component","meta","story"].includes(e)){let n=e;r=this.resolveAttachedModuleExportType(n)}else r=this.resolveModuleExport(e);if(t.length&&!t.includes(r.type)){let n=r.type==="component"?"component or unknown":r.type;throw new Error(We`Invalid value passed to the 'of' prop. The value was resolved to a '${n}' type but the only types for this block are: ${t.join(", ")}.
|
|
910
|
-
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
911
|
-
- ... or vice versa?
|
|
912
|
-
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(r.type){case"component":return{...r,projectAnnotations:this.projectAnnotations};case"meta":return{...r,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:r.csfFile})};case"story":default:return r}}},Om=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Vs;let{importPath:r,title:n}=this.entry,i=this.store.processCSFFileWithCache(e,r,n),o=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:o,csfFile:i}),this.csfFiles=[i,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new nd(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(r=>t.attachCSFFile(r)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.story.parameters||{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await n.renderer(),{render:o}=i,a=async()=>{try{await o(r,n,e),this.channel.emit(dc,this.id)}catch(s){this.callbacks.showException(s)}};return this.rerender=async()=>a(),this.teardownRender=async({viewModeChanged:s})=>{!s||!e||i.unmount(e)},a()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},Fm=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Vs;this.csfFiles=t,this.exports=e,this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new nd(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.store.projectAnnotations.parameters??{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...n,page:this.exports.default},o=await n.renderer(),{render:a}=o,s=async()=>{try{await a(r,i,e),this.channel.emit(dc,this.id)}catch(p){this.callbacks.showException(p)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:p}={})=>{!p||!e||(o.unmount(e),this.torndown=!0)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},r9=globalThis;function n9(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}var h_="attached-mdx",i9="unattached-mdx";function o9({tags:e}){return e?.includes(i9)||e?.includes(h_)}function Tu(e){return e.type==="story"}function a9(e){return e.type==="docs"}function s9(e){return a9(e)&&e.subtype==="csf"}var m_=class extends f_{constructor(e,t,r,n){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=r,this.view=n,this.initialize()}setupListeners(){super.setupListeners(),r9.onkeydown=this.onKeydown.bind(this),this.channel.on(mc,this.onSetCurrentStory.bind(this)),this.channel.on(Oy,this.onUpdateQueryParams.bind(this)),this.channel.on(by,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new cr({methodName:"setInitialGlobals"});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.userGlobals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new cr({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,r=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!r){e==="*"?this.renderStoryLoadingException(e,new Eg):this.renderStoryLoadingException(e,new vg({storySpecifier:e.toString()}));return}let{id:n,type:i}=r;this.selectionStore.setSelection({storyId:n,viewMode:i}),this.channel.emit(xy,this.selectionStore.selection),this.channel.emit(ku,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(t=>t.disableKeyListeners)&&!n9(e)){let{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,key:o,code:a,keyCode:s}=e;this.channel.emit(vy,{event:{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,key:o,code:a,keyCode:s}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(ku,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof Vl&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof Fm||this.currentRender instanceof Om)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(t=>this.storyStoreValue?.loadEntry(t)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new cr({methodName:"renderSelection"});let{selection:r}=this.selectionStore;if(!r)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:n}=r,i;try{i=await this.storyStoreValue.storyIdToEntry(n)}catch(f){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(n,f);return}let o=this.currentSelection?.storyId!==n,a=this.currentRender?.type!==i.type;i.type==="story"?this.view.showPreparingStory({immediate:a}):this.view.showPreparingDocs({immediate:a}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;i.type==="story"?s=new Vl(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(n),n,"story"):o9(i)?s=new Fm(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(n)):s=new Om(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(n));let p=this.currentSelection;this.currentSelection=r;let l=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(f){l&&await this.teardownRender(l),f!==Vs&&this.renderStoryLoadingException(n,f);return}let d=!o&&l&&!s.isEqual(l);if(e&&Tu(s)&&(en(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),l&&!l.torndown&&!o&&!d&&!a){this.currentRender=l,this.channel.emit(Ry,n),this.view.showMain();return}if(l&&await this.teardownRender(l,{viewModeChanged:a}),p&&(o||a)&&this.channel.emit(wy,n),Tu(s)){en(!!s.story);let{parameters:f,initialArgs:h,argTypes:m,unmappedArgs:b,initialGlobals:E,userGlobals:_,storyGlobals:A,globals:T}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(Sy,{id:n,parameters:f,initialArgs:h,argTypes:m,args:b}),this.channel.emit(bo,{userGlobals:_,storyGlobals:A,globals:T,initialGlobals:E})}else{let{parameters:f}=this.storyStoreValue.projectAnnotations,{initialGlobals:h,globals:m}=this.storyStoreValue.userGlobals;if(this.channel.emit(bo,{globals:m,initialGlobals:h,storyGlobals:{},userGlobals:m}),s9(s)||s.entry.tags?.includes(h_)){if(!s.csfFiles)throw new bg({storyId:n});({parameters:f}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(my,{id:n,parameters:f})}Tu(s)?(en(!!s.story),this.storyRenders.push(s),this.currentRender.renderToElement(this.view.prepareForStory(s.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}mainStoryCallbacks(e){return{showStoryDuringRender:()=>this.view.showStoryDuringRender(),showMain:()=>this.view.showMain(),showError:t=>this.renderError(e,t),showException:t=>this.renderException(e,t)}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Mu)}renderStoryLoadingException(e,t){vt.error(t),this.view.showErrorDisplay(t),this.channel.emit(Mu,e)}renderException(e,t){let{name:r="Error",message:n=String(t),stack:i}=t,o=this.currentRender?.renderId;this.channel.emit(Dy,{name:r,message:n,stack:i}),this.channel.emit(Wn,{newPhase:"errored",renderId:o,storyId:e}),this.view.showErrorDisplay(t),vt.error(`Error rendering story '${e}':`),vt.error(t)}renderError(e,{title:t,description:r}){let n=this.currentRender?.renderId;this.channel.emit(Cy,{title:t,description:r}),this.channel.emit(Wn,{newPhase:"errored",renderId:n,storyId:e}),this.view.showErrorDisplay({message:t,stack:r}),vt.error(`Error rendering story ${t}: ${r}`)}},Ul=kt(lc(),1),u9=kt(lc(),1),Im=/^[a-zA-Z0-9 _-]*$/,y_=/^-?[0-9]+(\.[0-9]+)?$/,l9=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,g_=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Jl=(e="",t)=>e===null||e===""||!Im.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Im.test(t)||y_.test(t)||l9.test(t)||g_.test(t):Array.isArray(t)?t.every(r=>Jl(e,r)):Mr(t)?Object.entries(t).every(([r,n])=>Jl(r,n)):!1,c9={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(g_);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return y_.test(e)?Number(e):e}},Nm=e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,u9.parse)(t.join(";"),c9)).reduce((r,[n,i])=>Jl(n,i)?Object.assign(r,{[n]:i}):(Ot.warn(We`
|
|
913
|
-
Omitted potentially unsafe URL args.
|
|
914
|
-
|
|
915
|
-
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
|
|
916
|
-
`),r),{})},{history:b_,document:Tn}=ge;function p9(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var E_=({selection:e,extraParams:t})=>{let r=Tn?.location.search.slice(1),{path:n,selectedKind:i,selectedStory:o,...a}=(0,Ul.parse)(r);return`?${(0,Ul.stringify)({...a,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},d9=e=>{if(!e)return;let t=E_({selection:e}),{hash:r=""}=Tn.location;Tn.title=e.storyId,b_.replaceState({},"",`${Tn.location.pathname}${t}${r}`)},f9=e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,mo=e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return mo(e[0]);if(f9(e))return mo(Object.values(e).filter(Boolean))}},h9=()=>{if(typeof Tn<"u"){let e=Tn.location.search.slice(1),t=(0,Ul.parse)(e),r=typeof t.args=="string"?Nm(t.args):void 0,n=typeof t.globals=="string"?Nm(t.globals):void 0,i=mo(t.viewMode);if(typeof i!="string"||!i)i="story";else if(!i.match(/docs|story/))return null;let o=mo(t.path),a=o?p9(o):mo(t.id);if(a)return{storySpecifier:a,args:r,globals:n,viewMode:i}}return null},v_=class{constructor(){this.selectionSpecifier=h9()}setSelection(e){this.selection=e,d9(this.selection)}setQueryParams(e){let t=E_({extraParams:e}),{hash:r=""}=Tn.location;b_.replaceState({},"",`${Tn.location.pathname}${t}${r}`)}},m9=kt(n1(),1),y9=kt(lc(),1),{document:Wt}=ge,Bm=100,A_=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(A_||{}),Su={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},xu={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},km=new m9.default({escapeXML:!0}),__=class{constructor(){if(this.testing=!1,typeof Wt<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,y9.parse)(Wt.location.search.slice(1));switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),Wt.documentElement.scrollTop=0,Wt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Wt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Wt.documentElement.scrollTop=0,Wt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Wt.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){Wt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=xu[e];Wt.body.classList.remove(this.currentLayoutClass),Wt.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){xu[e]||vt.warn(We`
|
|
917
|
-
The desired layout: ${e} is not a valid option.
|
|
918
|
-
The possible options are: ${Object.keys(xu).join(", ")}, none.
|
|
919
|
-
`)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(A_).forEach(t=>{t===e?Wt.body.classList.add(Su[t]):Wt.body.classList.remove(Su[t])})}showErrorDisplay({message:e="",stack:t=""}){let r=e,n=t,i=e.split(`
|
|
920
|
-
`);i.length>1&&([r]=i,n=i.slice(1).join(`
|
|
921
|
-
`).replace(/^\n/,"")),Wt.getElementById("error-message").innerHTML=km.toHtml(r),Wt.getElementById("error-stack").innerHTML=km.toHtml(n),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),Bm)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Bm)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){Wt.body.classList.add(Su.MAIN)}},g9=class extends m_{constructor(t,r){super(t,r,new v_,new __),this.importFn=t,this.getProjectAnnotations=r,ge.__STORYBOOK_PREVIEW__=this}},{document:Gn}=ge,b9=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],E9="script",Mm="scripts-root";function Hl(){let e=Gn.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Gn.dispatchEvent(e)}function v9(e,t,r){let n=Gn.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):Gn.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}function w_(e,t,r=0){e[r](()=>{r++,r===e.length?t():w_(e,t,r)})}function A9(e){let t=Gn.getElementById(Mm);t?t.innerHTML="":(t=Gn.createElement("div"),t.id=Mm,Gn.body.appendChild(t));let r=Array.from(e.querySelectorAll(E9));if(r.length){let n=[];r.forEach(i=>{let o=i.getAttribute("type");(!o||b9.includes(o))&&n.push(a=>v9(i,a,t))}),n.length&&w_(n,Hl,void 0)}else Hl()}var Du;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Du=Du||(Du={}));var _9=kt(i1(),1),ii=(0,_9.stringifyRules)(),w9=ii.JsdocTypeObject;ii.JsdocTypeAny=()=>"any";ii.JsdocTypeObject=(e,t)=>`(${w9(e,t)})`;ii.JsdocTypeOptional=(e,t)=>t(e.element);ii.JsdocTypeNullable=(e,t)=>t(e.element);ii.JsdocTypeNotNullable=(e,t)=>t(e.element);ii.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var C9="storybook/docs",T9=`${C9}/snippet-rendered`;async function S9(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:i}=t,o=r&&e?r?.(e,t):e,a=o?await o:void 0;vr.getChannel().emit(T9,{id:n,source:a,args:i})}var jo={depth:10,clearOnStoryChange:!0,limit:50},x9=(e={})=>{Object.assign(jo,e)},C_=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:C_(r,t)},D9=e=>!!(typeof e=="object"&&e&&C_(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),R9=e=>{if(D9(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function Zo(e,t={}){let r={...jo,...t},n=function(...i){if(t.implicit){let f=("__STORYBOOK_PREVIEW__"in ge?ge.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(h=>h.phase==="playing"||h.phase==="rendering");if(f){let h=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,m=new hg({phase:f.phase,name:e,deprecated:h});if(h)console.warn(m);else throw m}}let o=vr.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),s=5,p=i.map(R9),l=i.length>1?p:p[0],d={id:a,count:0,data:{name:e,args:l},options:{...r,maxDepth:s+(r.depth||3)}};o.emit(Ng,d)};return n.isAction=!0,n.implicit=t.implicit,n}var P9=(...e)=>{let t=jo,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...jo,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(o=>{n[o]=o}));let i={};return Object.keys(n).forEach(o=>{i[o]=Zo(n[o],t)}),i},O9={"@storybook/global":By,"storybook/test":Hg,"storybook/actions":Ig,"storybook/preview-api":$u,"storybook/internal/channels":My,"storybook/internal/client-logger":jy,"storybook/internal/core-events":cc,"storybook/internal/types":Tg,"storybook/internal/preview-errors":cg,"storybook/internal/preview-api":$u};async function F9(){let e=new URL(window.location.href);if(e.searchParams.get("navigator")!=="true"||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;let t=await(await fetch("/index.json")).json(),r=e.searchParams.get("id");if(!r){let n=Object.values(t.entries)[0];n&&(e.searchParams.set("id",n.id),e.searchParams.set("viewMode",n.type),window.location.href=e.toString());return}I9(t,r)}var I9=async(e,t)=>{let r={entries:{}};for(let s of Object.values(e.entries)){let p=s.title.split("/"),l=r;for(let d of p)l.entries||(l.entries={}),l.entries[d]?t===s.id&&(l.entries[d].isActive=!0):l.entries[d]={title:d,isActive:t===s.id,entries:{}},l=l.entries[d];l.entries||(l.entries={}),l.entries[s.name]={id:s.id,name:s.name,href:`?id=${s.id}&viewMode=${s.type}&navigator=true`,isActive:t===s.id}}let n=s=>{if("entries"in s&&"title"in s){let l=s;return`
|
|
922
|
-
<li class="sb-navigator-branch">
|
|
923
|
-
<details${l.isActive?" open":""}>
|
|
924
|
-
<summary class="sb-navigator-title">
|
|
925
|
-
${l.title}
|
|
926
|
-
</summary>
|
|
927
|
-
<ul class="sb-navigator-entries" aria-label="${l.title}">
|
|
928
|
-
${Object.values(l.entries).map(n).join("")}
|
|
929
|
-
</ul>
|
|
930
|
-
</details>
|
|
931
|
-
</li>
|
|
932
|
-
`}let p=s;return`
|
|
933
|
-
<li class="sb-navigator-story-item">
|
|
934
|
-
<a href="${p.href}"
|
|
935
|
-
class="sb-navigator-story-link${p.isActive?" active":""}"
|
|
936
|
-
aria-current="${p.isActive?"location":"false"}">${p.name}</a>
|
|
937
|
-
</li>
|
|
938
|
-
`},i=Object.values(r.entries).map(n).join(""),o=document.createElement("nav");o.id="sb-navigator-container",o.setAttribute("role","navigation"),o.setAttribute("aria-label","Story navigation"),o.innerHTML=`
|
|
939
|
-
<ul class="sb-navigator-list">${i}</ul>
|
|
940
|
-
`,document.body.insertBefore(o,document.body.firstChild);let a=document.createElement("style");a.id="sb-navigator-style",a.textContent=`
|
|
941
|
-
body {
|
|
942
|
-
display: grid !important;
|
|
943
|
-
grid-template-columns: 300px 1fr;
|
|
944
|
-
font-family: 'Nunito', sans-serif;
|
|
945
|
-
height: 100vh;
|
|
946
|
-
margin: 0;
|
|
947
|
-
|
|
948
|
-
--text-color: rgb(46, 52, 56);
|
|
949
|
-
--bg-color: rgb(246, 249, 252);
|
|
950
|
-
|
|
951
|
-
@media (prefers-color-scheme: dark) {
|
|
952
|
-
--text-color: rgb(201, 205, 207);
|
|
953
|
-
--bg-color: rgb(34, 36, 37);
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
#storybook-root, #storybook-docs {
|
|
957
|
-
overflow-y: auto;
|
|
958
|
-
max-height: 100vh;
|
|
959
|
-
max-width: 100%;
|
|
960
|
-
}
|
|
961
|
-
#sb-navigator-container, #sb-navigator-container * {
|
|
962
|
-
box-sizing: border-box;
|
|
963
|
-
}
|
|
964
|
-
#sb-navigator-container {
|
|
965
|
-
height: 100vh;
|
|
966
|
-
overflow-y: auto;
|
|
967
|
-
border-right: 1px solid #eee;
|
|
968
|
-
padding: 1rem;
|
|
969
|
-
font-size: 14px;
|
|
970
|
-
color: var(--text-color);
|
|
971
|
-
background-color: var(--bg-color);
|
|
972
|
-
align-self: start;
|
|
973
|
-
z-index: 1000;
|
|
974
|
-
}
|
|
975
|
-
.sb-main-padded #sb-navigator-container {
|
|
976
|
-
margin: -1rem 1rem -1rem -1rem;
|
|
977
|
-
}
|
|
978
|
-
.sb-navigator-list {
|
|
979
|
-
list-style-type: none;
|
|
980
|
-
padding: 0;
|
|
981
|
-
margin: 0;
|
|
982
|
-
}
|
|
983
|
-
.sb-navigator-branch {
|
|
984
|
-
list-style-type: none;
|
|
985
|
-
}
|
|
986
|
-
.sb-navigator-item {
|
|
987
|
-
margin-bottom: 15px;
|
|
988
|
-
}
|
|
989
|
-
.sb-navigator-title {
|
|
990
|
-
color: var(--text-color);
|
|
991
|
-
text-decoration: none;
|
|
992
|
-
padding-block: 5px;
|
|
993
|
-
cursor: pointer;
|
|
994
|
-
}
|
|
995
|
-
.sb-navigator-entries {
|
|
996
|
-
padding-left: 15px;
|
|
997
|
-
}
|
|
998
|
-
.sb-navigator-story-item {
|
|
999
|
-
margin-bottom: 8px;
|
|
1000
|
-
margin-left: 8px;
|
|
1001
|
-
}
|
|
1002
|
-
.sb-navigator-story-link {
|
|
1003
|
-
color: var(--text-color);
|
|
1004
|
-
}
|
|
1005
|
-
.sb-navigator-story-link.active {
|
|
1006
|
-
font-weight: bold;
|
|
1007
|
-
color: hsl(212 100 46);
|
|
1008
|
-
}
|
|
1009
|
-
`,document.head.appendChild(a),o.querySelector(".sb-navigator-story-link.active")?.closest("details")?.scrollIntoView({block:"center"})},N9=kt(o1(),1),Ru;function B9(){return Ru||(Ru=new N9.default(ge.navigator?.userAgent).getBrowserInfo()),Ru}function k9(e){return e.browserInfo=B9(),e}function M9(e){let t=e.error||e;t.fromStorybook&&ge.sendTelemetryError(t)}function j9({reason:e}){e.fromStorybook&&ge.sendTelemetryError(e)}function T_(){F1.forEach(e=>{ge[ky[e]]=O9[e]}),ge.sendTelemetryError=e=>{ge.__STORYBOOK_ADDONS_CHANNEL__.emit(Fy,k9(e))},document.addEventListener("DOMContentLoaded",()=>{ge.__STORYBOOK_ADDONS_CHANNEL__.on(Ny,e=>{e?document.body.setAttribute("inert","true"):document.body.removeAttribute("inert")})}),ge.addEventListener("error",M9),ge.addEventListener("unhandledrejection",j9),F9()}T_();const{createBrowserChannel:q9}=__STORYBOOK_MODULE_CHANNELS__,{addons:L9}=__STORYBOOK_MODULE_PREVIEW_API__,id=q9({page:"preview"});L9.setChannel(id);window.__STORYBOOK_ADDONS_CHANNEL__=id;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=id);var $9=Object.create,od=Object.defineProperty,V9=Object.getOwnPropertyDescriptor,S_=Object.getOwnPropertyNames,U9=Object.getPrototypeOf,J9=Object.prototype.hasOwnProperty,qU=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),H9=(e,t)=>function(){return t||(0,e[S_(e)[0]])((t={exports:{}}).exports,t),t.exports},LU=(e,t)=>{for(var r in t)od(e,r,{get:t[r],enumerable:!0})},G9=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S_(t))!J9.call(e,i)&&i!==r&&od(e,i,{get:()=>t[i],enumerable:!(n=V9(t,i))||n.enumerable});return e},z9=(e,t,r)=>(r=e!=null?$9(U9(e)):{},G9(t||!e||!e.__esModule?od(r,"default",{value:e,enumerable:!0}):r,e));function zn(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function W9(e){return e==null||typeof e!="object"&&typeof e!="function"}function K9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $U(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function VU(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var UU="[object RegExp]",JU="[object String]",HU="[object Number]",GU="[object Boolean]",zU="[object Arguments]",WU="[object Symbol]",KU="[object Date]",YU="[object Map]",XU="[object Set]",QU="[object Array]",ZU="[object Function]",e7="[object ArrayBuffer]",t7="[object Object]",r7="[object Error]",n7="[object DataView]",i7="[object Uint8Array]",o7="[object Uint8ClampedArray]",a7="[object Uint16Array]",s7="[object Uint32Array]",u7="[object BigUint64Array]",l7="[object Int8Array]",c7="[object Int16Array]",p7="[object Int32Array]",d7="[object BigInt64Array]",f7="[object Float32Array]",h7="[object Float64Array]";function Y9(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],a=e[o];r[o]=t(a,o,e)}return r}function X9(e){return e==="__proto__"}function Wr(e,t,r){let n=Object.keys(t);for(let i=0;i<n.length;i++){let o=n[i];if(X9(o))continue;let a=t[o],s=e[o],p=r(s,a,o,e,t);p!==void 0?e[o]=p:Array.isArray(a)?Array.isArray(s)?e[o]=Wr(s,a,r):e[o]=Wr([],a,r):zn(a)?zn(s)?e[o]=Wr(s,a,r):e[o]=Wr({},a,r):(s===void 0||a!==void 0)&&(e[o]=a)}return e}function m7(e,t){let r={};for(let n=0;n<t.length;n++){let i=t[n];Object.hasOwn(e,i)&&(r[i]=e[i])}return r}function Pu(e){if(W9(e))return e;if(Array.isArray(e)||K9(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function y7(e,t){return Wr(Pu(e),t,function r(n,i){if(Array.isArray(i))return Array.isArray(n)?Wr(Pu(n),i,r):Wr([],i,r);if(zn(i))return zn(n)?Wr(Pu(n),i,r):Wr({},i,r)})}var Q9=H9({"../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,function(r){function n(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class i extends Error{constructor(g){super(`No parslet found for token: ${n(g)}`),this.token=g,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class o extends Error{constructor(g){super(`The parsing ended early. The next token was: ${n(g)}`),this.token=g,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class a extends Error{constructor(g,x){let j=`Unexpected type: '${g.type}'.`;x!==void 0&&(j+=` Message: ${x}`),super(j),Object.setPrototypeOf(this,a.prototype)}}function s(u){return g=>g.startsWith(u)?{type:u,text:u}:null}function p(u){let g=0,x,j=u[0],Q=!1;if(j!=="'"&&j!=='"')return null;for(;g<u.length;){if(g++,x=u[g],!Q&&x===j){g++;break}Q=!Q&&x==="\\"}if(x!==j)throw new Error("Unterminated String");return u.slice(0,g)}let l=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function f(u){let g=u[0];if(!l.test(g))return null;let x=1;do{if(g=u[x],!d.test(g))break;x++}while(x<u.length);return u.slice(0,x)}let h=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function m(u){var g,x;return(x=(g=h.exec(u))===null||g===void 0?void 0:g[0])!==null&&x!==void 0?x:null}let b=u=>{let g=f(u);return g==null?null:{type:"Identifier",text:g}};function E(u){return g=>{if(!g.startsWith(u))return null;let x=g[u.length];return x!==void 0&&d.test(x)?null:{type:u,text:u}}}let _=u=>{let g=p(u);return g==null?null:{type:"StringValue",text:g}},A=u=>u.length>0?null:{type:"EOF",text:""},T=u=>{let g=m(u);return g===null?null:{type:"Number",text:g}},k=[A,s("=>"),s("("),s(")"),s("{"),s("}"),s("["),s("]"),s("|"),s("&"),s("<"),s(">"),s(","),s(";"),s("*"),s("?"),s("!"),s("="),s(":"),s("..."),s("."),s("#"),s("~"),s("/"),s("@"),E("undefined"),E("null"),E("function"),E("this"),E("new"),E("module"),E("event"),E("extends"),E("external"),E("infer"),E("typeof"),E("keyof"),E("readonly"),E("import"),E("is"),E("in"),E("asserts"),T,b,_],O=/^\s*\n\s*/;class R{static create(g){let x=this.read(g);g=x.text;let j=this.read(g);return g=j.text,new R(g,void 0,x.token,j.token)}constructor(g,x,j,Q){this.text="",this.text=g,this.previous=x,this.current=j,this.next=Q}static read(g,x=!1){x=x||O.test(g),g=g.trim();for(let j of k){let Q=j(g);if(Q!==null){let ie=Object.assign(Object.assign({},Q),{startOfLine:x});return g=g.slice(ie.text.length),{text:g,token:ie}}}throw new Error("Unexpected Token "+g)}advance(){let g=R.read(this.text);return new R(g.text,this.current,this.next,g.token)}}function y(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"||u.type==="JsdocTypeTypeParameter")throw new a(u);return u}function S(u){return u.type==="JsdocTypeKeyValue"?D(u):y(u)}function C(u){return u.type==="JsdocTypeName"?u:D(u)}function D(u){if(u.type!=="JsdocTypeKeyValue")throw new a(u);return u}function J(u){var g;if(u.type==="JsdocTypeVariadic"){if(((g=u.element)===null||g===void 0?void 0:g.type)==="JsdocTypeName")return u;throw new a(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new a(u);return u}function M(u){if(u.type==="JsdocTypeTuple"||u.type==="JsdocTypeGeneric"&&u.meta.brackets==="square")return u;throw new a(u)}function G(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var L;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(L||(L={}));class N{constructor(g,x,j){this.grammar=g,typeof x=="string"?this._lexer=R.create(x):this._lexer=x,this.baseParser=j}get lexer(){return this._lexer}parse(){let g=this.parseType(L.ALL);if(this.lexer.current.type!=="EOF")throw new o(this.lexer.current);return g}parseType(g){return y(this.parseIntermediateType(g))}parseIntermediateType(g){let x=this.tryParslets(null,g);if(x===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(x,g)}parseInfixIntermediateType(g,x){let j=this.tryParslets(g,x);for(;j!==null;)g=j,j=this.tryParslets(g,x);return g}tryParslets(g,x){for(let j of this.grammar){let Q=j(this,x,g);if(Q!==null)return Q}return null}consume(g){return Array.isArray(g)||(g=[g]),g.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(g){this._lexer=g.lexer}}function U(u){return u==="}"||u==="EOF"||u==="|"||u===","||u===")"||u===">"}let W=(u,g,x)=>{let j=u.lexer.current.type,Q=u.lexer.next.type;return x==null&&j==="?"&&!U(Q)||x!=null&&j==="?"?(u.consume("?"),x==null?{type:"JsdocTypeNullable",element:u.parseType(L.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:y(x),meta:{position:"suffix"}}):null};function K(u){let g=(x,j,Q)=>{let ie=x.lexer.current.type,ce=x.lexer.next.type;if(Q===null){if("parsePrefix"in u&&u.accept(ie,ce))return u.parsePrefix(x)}else if("parseInfix"in u&&u.precedence>j&&u.accept(ie,ce))return u.parseInfix(x,Q);return null};return Object.defineProperty(g,"name",{value:u.name}),g}let ne=K({name:"optionalParslet",accept:u=>u==="=",precedence:L.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(L.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,g)=>(u.consume("="),{type:"JsdocTypeOptional",element:y(g),meta:{position:"suffix"}})}),be=K({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let g=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:g}}}),xe=K({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let g=u.parseIntermediateType(L.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return g.type==="JsdocTypeParameterList"?g:g.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[g]}:{type:"JsdocTypeParenthesis",element:y(g)}}}),we=K({name:"specialTypesParslet",accept:(u,g)=>u==="?"&&U(g)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),ue=K({name:"notNullableParslet",accept:u=>u==="!",precedence:L.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(L.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,g)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:y(g),meta:{position:"suffix"}})});function He({allowTrailingComma:u}){return K({name:"parameterListParslet",accept:g=>g===",",precedence:L.PARAMETER_LIST,parseInfix:(g,x)=>{let j=[S(x)];g.consume(",");do try{let Q=g.parseIntermediateType(L.PARAMETER_LIST);j.push(S(Q))}catch(Q){if(Q instanceof i)break;throw Q}while(g.consume(","));if(j.length>0&&j.slice(0,-1).some(Q=>Q.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:j}}})}let Ve=K({name:"genericParslet",accept:(u,g)=>u==="<"||u==="."&&g==="<",precedence:L.GENERIC,parseInfix:(u,g)=>{let x=u.consume(".");u.consume("<");let j=[],Q=!1;if(u.consume("infer")){Q=!0;let ie=u.parseIntermediateType(L.SYMBOL);if(ie.type!=="JsdocTypeName")throw new a(ie,"A typescript asserts always has to have a name on the left side.");j.push(ie)}else do j.push(u.parseType(L.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:y(g),elements:j},Q?{infer:!0}:{}),{meta:{brackets:"angle",dot:x}})}}),Ce=K({name:"unionParslet",accept:u=>u==="|",precedence:L.UNION,parseInfix:(u,g)=>{u.consume("|");let x=[];do x.push(u.parseType(L.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[y(g),...x]}}}),le=[W,ne,be,xe,we,ue,He({allowTrailingComma:!0}),Ve,Ce,ne];function Ne({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:g,pathGrammar:x}){return function(j,Q,ie){if(ie==null||Q>=L.NAME_PATH)return null;let ce=j.lexer.current.type,he=j.lexer.next.type;if(!(ce==="."&&he!=="<"||ce==="["&&(u||ie.type==="JsdocTypeName")||g&&(ce==="~"||ce==="#")))return null;let Ie,ze=!1;j.consume(".")?Ie="property":j.consume("[")?(Ie="property-brackets",ze=!0):j.consume("~")?Ie="inner":(j.consume("#"),Ie="instance");let Tt=x!==null?new N(x,j.lexer,j):j,dt=Tt.parseIntermediateType(L.NAME_PATH);j.acceptLexerState(Tt);let ar;switch(dt.type){case"JsdocTypeName":ar={type:"JsdocTypeProperty",value:dt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":ar={type:"JsdocTypeProperty",value:dt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":ar={type:"JsdocTypeProperty",value:dt.value,meta:{quote:dt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(dt.specialType==="event")ar=dt;else throw new a(dt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(dt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ze&&!j.consume("]")){let Nn=j.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Nn.type}' with text '${Nn.text}'`)}return{type:"JsdocTypeNamePath",left:y(ie),right:ar,pathType:Ie}}}function Be({allowedAdditionalTokens:u}){return K({name:"nameParslet",accept:g=>g==="Identifier"||g==="this"||g==="new"||u.includes(g),parsePrefix:g=>{let{type:x,text:j}=g.lexer.current;return g.consume(x),{type:"JsdocTypeName",value:j}}})}let ut=K({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let g=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:g.slice(1,-1),meta:{quote:g[0]==="'"?"single":"double"}}}});function X({pathGrammar:u,allowedTypes:g}){return K({name:"specialNamePathParslet",accept:x=>g.includes(x),parsePrefix:x=>{let j=x.lexer.current.type;if(x.consume(j),!x.consume(":"))return{type:"JsdocTypeName",value:j};let Q,ie=x.lexer.current;if(x.consume("StringValue"))Q={type:"JsdocTypeSpecialNamePath",value:ie.text.slice(1,-1),specialType:j,meta:{quote:ie.text[0]==="'"?"single":"double"}};else{let Ie="",ze=["Identifier","@","/"];for(;ze.some(Tt=>x.consume(Tt));)Ie+=ie.text,ie=x.lexer.current;Q={type:"JsdocTypeSpecialNamePath",value:Ie,specialType:j,meta:{quote:void 0}}}let ce=new N(u,x.lexer,x),he=ce.parseInfixIntermediateType(Q,L.ALL);return x.acceptLexerState(ce),y(he)}})}let pe=[Be({allowedAdditionalTokens:["external","module"]}),ut,be,Ne({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ye=[...pe,X({allowedTypes:["event"],pathGrammar:pe})];function _e(u){let g;if(u.type==="JsdocTypeParameterList")g=u.elements;else if(u.type==="JsdocTypeParenthesis")g=[u.element];else throw new a(u);return g.map(x=>S(x))}function Ae(u){let g=_e(u);if(g.some(x=>x.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return g}function Te({allowNamedParameters:u,allowNoReturnType:g,allowWithoutParenthesis:x,allowNewAsFunctionKeyword:j}){return K({name:"functionParslet",accept:(Q,ie)=>Q==="function"||j&&Q==="new"&&ie==="(",parsePrefix:Q=>{let ie=Q.consume("new");Q.consume("function");let ce=Q.lexer.current.type==="(";if(!ce){if(!x)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let he={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:ie,parenthesis:ce},Ie=Q.parseIntermediateType(L.FUNCTION);if(u===void 0)he.parameters=Ae(Ie);else{if(ie&&Ie.type==="JsdocTypeFunction"&&Ie.arrow)return he=Ie,he.constructor=!0,he;he.parameters=_e(Ie);for(let ze of he.parameters)if(ze.type==="JsdocTypeKeyValue"&&!u.includes(ze.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${ze.type}`)}if(Q.consume(":"))he.returnType=Q.parseType(L.PREFIX);else if(!g)throw new Error("function is missing return type");return he}})}function Se({allowPostfix:u,allowEnclosingBrackets:g}){return K({name:"variadicParslet",accept:x=>x==="...",precedence:L.PREFIX,parsePrefix:x=>{x.consume("...");let j=g&&x.consume("[");try{let Q=x.parseType(L.PREFIX);if(j&&!x.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:y(Q),meta:{position:"prefix",squareBrackets:j}}}catch(Q){if(Q instanceof i){if(j)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw Q}},parseInfix:u?(x,j)=>(x.consume("..."),{type:"JsdocTypeVariadic",element:y(j),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let ke=K({name:"symbolParslet",accept:u=>u==="(",precedence:L.SYMBOL,parseInfix:(u,g)=>{if(g.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let x={type:"JsdocTypeSymbol",value:g.value};if(!u.consume(")")){let j=u.parseIntermediateType(L.SYMBOL);if(x.element=J(j),!u.consume(")"))throw new Error("Symbol does not end after value")}return x}}),st=K({name:"arrayBracketsParslet",precedence:L.ARRAY_BRACKETS,accept:(u,g)=>u==="["&&g==="]",parseInfix:(u,g)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[y(g)],meta:{brackets:"square",dot:!1}})});function It({objectFieldGrammar:u,allowKeyTypes:g}){return K({name:"objectParslet",accept:x=>x==="{",parsePrefix:x=>{x.consume("{");let j={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!x.consume("}")){let Q,ie=new N(u,x.lexer,x);for(;;){ie.acceptLexerState(x);let ce=ie.parseIntermediateType(L.OBJECT);x.acceptLexerState(ie),ce===void 0&&g&&(ce=x.parseIntermediateType(L.OBJECT));let he=!1;if(ce.type==="JsdocTypeNullable"&&(he=!0,ce=ce.element),ce.type==="JsdocTypeNumber"||ce.type==="JsdocTypeName"||ce.type==="JsdocTypeStringValue"){let Ie;ce.type==="JsdocTypeStringValue"&&(Ie=ce.meta.quote),j.elements.push({type:"JsdocTypeObjectField",key:ce.value.toString(),right:void 0,optional:he,readonly:!1,meta:{quote:Ie}})}else if(ce.type==="JsdocTypeObjectField"||ce.type==="JsdocTypeJsdocObjectField")j.elements.push(ce);else throw new a(ce);if(x.lexer.current.startOfLine)Q="linebreak",x.consume(",")||x.consume(";");else if(x.consume(","))Q="comma";else if(x.consume(";"))Q="semicolon";else break;if(x.lexer.current.type==="}")break}if(j.meta.separator=Q??"comma",Q==="linebreak"&&(j.meta.propertyIndent=" "),!x.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return j}})}function Le({allowSquaredProperties:u,allowKeyTypes:g,allowReadonly:x,allowOptional:j}){return K({name:"objectFieldParslet",precedence:L.KEY_VALUE,accept:Q=>Q===":",parseInfix:(Q,ie)=>{var ce;let he=!1,Ie=!1;j&&ie.type==="JsdocTypeNullable"&&(he=!0,ie=ie.element),x&&ie.type==="JsdocTypeReadonlyProperty"&&(Ie=!0,ie=ie.element);let ze=(ce=Q.baseParser)!==null&&ce!==void 0?ce:Q;if(ze.acceptLexerState(Q),ie.type==="JsdocTypeNumber"||ie.type==="JsdocTypeName"||ie.type==="JsdocTypeStringValue"||G(ie)){if(G(ie)&&!u)throw new a(ie);ze.consume(":");let Tt;ie.type==="JsdocTypeStringValue"&&(Tt=ie.meta.quote);let dt=ze.parseType(L.KEY_VALUE);return Q.acceptLexerState(ze),{type:"JsdocTypeObjectField",key:G(ie)?ie:ie.value.toString(),right:dt,optional:he,readonly:Ie,meta:{quote:Tt}}}else{if(!g)throw new a(ie);ze.consume(":");let Tt=ze.parseType(L.KEY_VALUE);return Q.acceptLexerState(ze),{type:"JsdocTypeJsdocObjectField",left:y(ie),right:Tt}}}})}function yt({allowOptional:u,allowVariadic:g}){return K({name:"keyValueParslet",precedence:L.KEY_VALUE,accept:x=>x===":",parseInfix:(x,j)=>{let Q=!1,ie=!1;if(u&&j.type==="JsdocTypeNullable"&&(Q=!0,j=j.element),g&&j.type==="JsdocTypeVariadic"&&j.element!==void 0&&(ie=!0,j=j.element),j.type!=="JsdocTypeName")throw new a(j);x.consume(":");let ce=x.parseType(L.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:j.value,right:ce,optional:Q,variadic:ie}}})}let Ke=[...le,Te({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ut,X({allowedTypes:["module","external","event"],pathGrammar:ye}),Se({allowEnclosingBrackets:!0,allowPostfix:!0}),Be({allowedAdditionalTokens:["keyof"]}),ke,st,Ne({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ye})],nr=[...Ke,It({objectFieldGrammar:[Be({allowedAdditionalTokens:["typeof","module","in"]}),Le({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Ke],allowKeyTypes:!0}),yt({allowOptional:!0,allowVariadic:!0})],Nt=K({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:u.parseType(L.KEY_OF_TYPE_OF)})}),fe=[Be({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),W,ne,ut,be,Le({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],pt=[...le,It({allowKeyTypes:!1,objectFieldGrammar:fe}),Be({allowedAdditionalTokens:["event","external","in"]}),Nt,Te({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Se({allowEnclosingBrackets:!1,allowPostfix:!1}),Be({allowedAdditionalTokens:["keyof"]}),X({allowedTypes:["module"],pathGrammar:ye}),Ne({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ye}),yt({allowOptional:!1,allowVariadic:!1}),ke],Oe=K({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let g=u.parseIntermediateType(L.SYMBOL);if(g.type!=="JsdocTypeName")throw new a(g,"A typescript asserts always has to have a name on the left side.");return u.consume("is")?{type:"JsdocTypeAsserts",left:g,right:y(u.parseIntermediateType(L.INFIX))}:{type:"JsdocTypeAssertsPlain",element:g}}});function At({allowQuestionMark:u}){return K({name:"tupleParslet",accept:g=>g==="[",parsePrefix:g=>{g.consume("[");let x={type:"JsdocTypeTuple",elements:[]};if(g.consume("]"))return x;let j=g.parseIntermediateType(L.ALL);if(j.type==="JsdocTypeParameterList"?j.elements[0].type==="JsdocTypeKeyValue"?x.elements=j.elements.map(D):x.elements=j.elements.map(y):j.type==="JsdocTypeKeyValue"?x.elements=[D(j)]:x.elements=[y(j)],!g.consume("]"))throw new Error("Unterminated '['");if(x.elements.some(Q=>Q.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return x}})}let et=K({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:y(u.parseType(L.KEY_OF_TYPE_OF))})}),wr=K({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let g=u.parseType(L.PREFIX);if(g.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:g}}}),Or=K({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseIntermediateType(L.KEY_VALUE)})}),gt=K({name:"arrowFunctionParslet",precedence:L.ARROW,accept:u=>u==="=>",parseInfix:(u,g)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:_e(g).map(C),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(L.OBJECT)})}),Fe=K({name:"genericArrowFunctionParslet",accept:u=>u==="<",parsePrefix:u=>{let g=[];u.consume("<");do{let j,Q=u.parseIntermediateType(L.SYMBOL);if(Q.type==="JsdocTypeOptional"&&(Q=Q.element,j=u.parseType(L.SYMBOL)),Q.type!=="JsdocTypeName")throw new a(Q);let ie;u.consume("extends")&&(ie=u.parseType(L.SYMBOL),ie.type==="JsdocTypeOptional"&&(ie=ie.element,j=u.parseType(L.SYMBOL)));let ce={type:"JsdocTypeTypeParameter",name:Q};if(ie!==void 0&&(ce.constraint=ie),j!==void 0&&(ce.defaultValue=j),g.push(ce),u.consume(">"))break}while(u.consume(","));let x=u.parseIntermediateType(L.SYMBOL);return x.typeParameters=g,x}}),ir=K({name:"intersectionParslet",accept:u=>u==="&",precedence:L.INTERSECTION,parseInfix:(u,g)=>{u.consume("&");let x=[];do x.push(u.parseType(L.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[y(g),...x]}}}),ot=K({name:"predicateParslet",precedence:L.INFIX,accept:u=>u==="is",parseInfix:(u,g)=>{if(g.type!=="JsdocTypeName")throw new a(g,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:g,right:y(u.parseIntermediateType(L.INFIX))}}}),Jt=K({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let g=u.lexer.current.text;u.consume("Identifier");let x;if(u.consume(":")){let j=u.baseParser;j.acceptLexerState(u),x={type:"JsdocTypeIndexSignature",key:g,right:j.parseType(L.INDEX_BRACKETS)},u.acceptLexerState(j)}else if(u.consume("in")){let j=u.baseParser;j.acceptLexerState(u),x={type:"JsdocTypeMappedType",key:g,right:j.parseType(L.ARRAY_BRACKETS)},u.acceptLexerState(j)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return x}}),Lr=K({name:"readonlyArrayParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:M(u.parseIntermediateType(L.ALL))})}),rt=K({name:"conditionalParslet",precedence:L.INFIX,accept:u=>u==="extends",parseInfix:(u,g)=>{u.consume("extends");let x=u.parseType(L.KEY_OF_TYPE_OF).element,j=u.parseType(L.INFIX);return u.consume(":"),{type:"JsdocTypeConditional",checksType:y(g),extendsType:x,trueType:j,falseType:u.parseType(L.INFIX)}}}),_t=[Or,Be({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),W,ne,ut,be,Le({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Jt],or=[...le,It({allowKeyTypes:!1,objectFieldGrammar:_t}),Lr,Nt,et,wr,ut,Te({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),At({allowQuestionMark:!1}),Se({allowEnclosingBrackets:!1,allowPostfix:!1}),Oe,rt,Be({allowedAdditionalTokens:["event","external","in"]}),X({allowedTypes:["module"],pathGrammar:ye}),st,gt,Fe,Ne({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ye}),ir,ot,yt({allowVariadic:!0,allowOptional:!0})];function bt(u,g){switch(g){case"closure":return new N(pt,u).parse();case"jsdoc":return new N(nr,u).parse();case"typescript":return new N(or,u).parse()}}function nt(u,g=["typescript","closure","jsdoc"]){let x;for(let j of g)try{return bt(u,j)}catch(Q){x=Q}throw x}function Bt(u,g){let x=u[g.type];if(x===void 0)throw new Error(`In this set of transform rules exists no rule for type ${g.type}.`);return x(g,j=>Bt(u,j))}function Re(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function w(u){let g={params:[]};for(let x of u.parameters)x.type==="JsdocTypeKeyValue"?x.key==="this"?g.this=x.right:x.key==="new"?g.new=x.right:g.params.push(x):g.params.push(x);return g}function B(u,g,x){return u==="prefix"?x+g:g+x}function F(u,g){switch(g){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function P(){return{JsdocTypeParenthesis:(u,g)=>`(${u.element!==void 0?g(u.element):""})`,JsdocTypeKeyof:(u,g)=>`keyof ${g(u.element)}`,JsdocTypeFunction:(u,g)=>{var x;if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let j=`${u.typeParameters!==void 0?`<${(x=u.typeParameters.map(g).join(", "))!==null&&x!==void 0?x:""}>`:""}(${u.parameters.map(g).join(", ")}) => ${g(u.returnType)}`;return u.constructor&&(j="new "+j),j}else{let j=u.constructor?"new":"function";return u.parenthesis&&(j+=`(${u.parameters.map(g).join(", ")})`,u.returnType!==void 0&&(j+=`: ${g(u.returnType)}`)),j}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,g)=>`[${u.elements.map(g).join(", ")}]`,JsdocTypeVariadic:(u,g)=>u.meta.position===void 0?"...":B(u.meta.position,g(u.element),"..."),JsdocTypeNamePath:(u,g)=>{let x=g(u.left),j=g(u.right);switch(u.pathType){case"inner":return`${x}~${j}`;case"instance":return`${x}#${j}`;case"property":return`${x}.${j}`;case"property-brackets":return`${x}[${j}]`}},JsdocTypeStringValue:u=>F(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,g)=>{if(u.meta.brackets==="square"){let x=u.elements[0],j=g(x);return x.type==="JsdocTypeUnion"||x.type==="JsdocTypeIntersection"?`(${j})[]`:`${j}[]`}else return`${g(u.left)}${u.meta.dot?".":""}<${u.infer===!0?"infer ":""}${u.elements.map(g).join(", ")}>`},JsdocTypeImport:(u,g)=>`import(${g(u.element)})`,JsdocTypeObjectField:(u,g)=>{let x="";return u.readonly&&(x+="readonly "),typeof u.key=="string"?x+=F(u.key,u.meta.quote):x+=g(u.key),u.optional&&(x+="?"),u.right===void 0?x:x+`: ${g(u.right)}`},JsdocTypeJsdocObjectField:(u,g)=>`${g(u.left)}: ${g(u.right)}`,JsdocTypeKeyValue:(u,g)=>{let x=u.key;return u.optional&&(x+="?"),u.variadic&&(x="..."+x),u.right===void 0?x:x+`: ${g(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${F(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,g)=>B(u.meta.position,g(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,g)=>B(u.meta.position,g(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,g)=>{var x,j;return`{${(u.meta.separator==="linebreak"&&u.elements.length>1?`
|
|
1010
|
-
`+((x=u.meta.propertyIndent)!==null&&x!==void 0?x:""):"")+u.elements.map(g).join(u.meta.separator==="comma"?", ":u.meta.separator==="linebreak"?`
|
|
1011
|
-
`+((j=u.meta.propertyIndent)!==null&&j!==void 0?j:""):"; ")+(u.meta.separator==="linebreak"&&u.elements.length>1?`
|
|
1012
|
-
`:"")}}`},JsdocTypeOptional:(u,g)=>B(u.meta.position,g(u.element),"="),JsdocTypeSymbol:(u,g)=>`${u.value}(${u.element!==void 0?g(u.element):""})`,JsdocTypeTypeof:(u,g)=>`typeof ${g(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,g)=>u.elements.map(g).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,g)=>u.elements.map(g).join(" & "),JsdocTypeProperty:u=>F(u.value,u.meta.quote),JsdocTypePredicate:(u,g)=>`${g(u.left)} is ${g(u.right)}`,JsdocTypeIndexSignature:(u,g)=>`[${u.key}: ${g(u.right)}]`,JsdocTypeMappedType:(u,g)=>`[${u.key} in ${g(u.right)}]`,JsdocTypeAsserts:(u,g)=>`asserts ${g(u.left)} is ${g(u.right)}`,JsdocTypeReadonlyArray:(u,g)=>`readonly ${g(u.element)}`,JsdocTypeAssertsPlain:(u,g)=>`asserts ${g(u.element)}`,JsdocTypeConditional:(u,g)=>`${g(u.checksType)} extends ${g(u.extendsType)} ? ${g(u.trueType)} : ${g(u.falseType)}`,JsdocTypeTypeParameter:(u,g)=>`${g(u.name)}${u.constraint!==void 0?` extends ${g(u.constraint)}`:""}${u.defaultValue!==void 0?` = ${g(u.defaultValue)}`:""}`}}let $=P();function re(u){return Bt($,u)}let oe=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function se(u){let g={type:"NameExpression",name:u};return oe.includes(u)&&(g.reservedWord=!0),g}let ve={JsdocTypeOptional:(u,g)=>{let x=g(u.element);return x.optional=!0,x},JsdocTypeNullable:(u,g)=>{let x=g(u.element);return x.nullable=!0,x},JsdocTypeNotNullable:(u,g)=>{let x=g(u.element);return x.nullable=!1,x},JsdocTypeVariadic:(u,g)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let x=g(u.element);return x.repeatable=!0,x},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>se(F(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,g)=>{let x=w(u),j={type:"FunctionType",params:x.params.map(g)};return x.this!==void 0&&(j.this=g(x.this)),x.new!==void 0&&(j.new=g(x.new)),u.returnType!==void 0&&(j.result=g(u.returnType)),j},JsdocTypeGeneric:(u,g)=>({type:"TypeApplication",applications:u.elements.map(x=>g(x)),expression:g(u.left)}),JsdocTypeSpecialNamePath:u=>se(u.specialType+":"+F(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?se(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>se(u.value.toString()),JsdocTypeObject:(u,g)=>{let x={type:"RecordType",fields:[]};for(let j of u.elements)j.type!=="JsdocTypeObjectField"&&j.type!=="JsdocTypeJsdocObjectField"?x.fields.push({type:"FieldType",key:g(j),value:void 0}):x.fields.push(g(j));return x},JsdocTypeObjectField:(u,g)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:se(F(u.key,u.meta.quote)),value:u.right===void 0?void 0:g(u.right)}},JsdocTypeJsdocObjectField:(u,g)=>({type:"FieldType",key:g(u.left),value:g(u.right)}),JsdocTypeUnion:(u,g)=>({type:"TypeUnion",elements:u.elements.map(x=>g(x))}),JsdocTypeKeyValue:(u,g)=>({type:"FieldType",key:se(u.key),value:u.right===void 0?void 0:g(u.right)}),JsdocTypeNamePath:(u,g)=>{let x=g(u.left),j;u.right.type==="JsdocTypeSpecialNamePath"?j=g(u.right).name:j=F(u.right.value,u.right.meta.quote);let Q=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return se(`${x.name}${Q}${j}`)},JsdocTypeSymbol:u=>{let g="",x=u.element,j=!1;return x?.type==="JsdocTypeVariadic"&&(x.meta.position==="prefix"?g="...":j=!0,x=x.element),x?.type==="JsdocTypeName"?g+=x.value:x?.type==="JsdocTypeNumber"&&(g+=x.value.toString()),j&&(g+="..."),se(`${u.value}(${g})`)},JsdocTypeParenthesis:(u,g)=>g(y(u.element)),JsdocTypeMappedType:Re,JsdocTypeIndexSignature:Re,JsdocTypeImport:Re,JsdocTypeKeyof:Re,JsdocTypeTuple:Re,JsdocTypeTypeof:Re,JsdocTypeIntersection:Re,JsdocTypeProperty:Re,JsdocTypePredicate:Re,JsdocTypeAsserts:Re,JsdocTypeReadonlyArray:Re,JsdocTypeAssertsPlain:Re,JsdocTypeConditional:Re,JsdocTypeTypeParameter:Re};function je(u){return Bt(ve,u)}function de(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Ft(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function jt(u,g){return g.length===2?{type:u,left:g[0],right:g[1]}:{type:u,left:g[0],right:jt(u,g.slice(1))}}let $r={JsdocTypeOptional:(u,g)=>({type:"OPTIONAL",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,g)=>({type:"NULLABLE",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,g)=>({type:"NOT_NULLABLE",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,g)=>{let x={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(x.value=g(u.element)),x},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,g)=>({type:"TYPE_QUERY",name:g(u.element)}),JsdocTypeTuple:(u,g)=>({type:"TUPLE",entries:u.elements.map(g)}),JsdocTypeKeyof:(u,g)=>({type:"KEY_QUERY",value:g(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:de(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,g)=>{let x=w(u),j={type:u.arrow?"ARROW":"FUNCTION",params:x.params.map(Q=>{if(Q.type==="JsdocTypeKeyValue"){if(Q.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:Q.key,typeName:g(Q.right)}}else return g(Q)}),new:null,returns:null};return x.this!==void 0?j.this=g(x.this):u.arrow||(j.this=null),x.new!==void 0&&(j.new=g(x.new)),u.returnType!==void 0&&(j.returns=g(u.returnType)),j},JsdocTypeGeneric:(u,g)=>{let x={type:"GENERIC",subject:g(u.left),objects:u.elements.map(g),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(x.objects[0]={type:"NAME",name:"function"}),x},JsdocTypeObjectField:(u,g)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:de(u.meta.quote),value:null,readonly:!1};let x=g(u.right);return u.optional&&(x={type:"OPTIONAL",value:x,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:de(u.meta.quote),value:x,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,g)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let x=g(u.right);return u.optional&&(x={type:"OPTIONAL",value:x,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:x,readonly:!1}},JsdocTypeObject:(u,g)=>{let x=[];for(let j of u.elements)(j.type==="JsdocTypeObjectField"||j.type==="JsdocTypeJsdocObjectField")&&x.push(g(j));return{type:"RECORD",entries:x}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:de(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,g)=>{let x=!1,j,Q;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(x=!0,j=u.right.value,Q=de(u.right.meta.quote)):(j=u.right.value,Q=de(u.right.meta.quote));let ie={type:Ft(u.pathType),owner:g(u.left),name:j,quoteStyle:Q,hasEventPrefix:x};if(ie.owner.type==="MODULE"){let ce=ie.owner;return ie.owner=ie.owner.value,ce.value=ie,ce}else return ie},JsdocTypeUnion:(u,g)=>jt("UNION",u.elements.map(g)),JsdocTypeParenthesis:(u,g)=>({type:"PARENTHESIS",value:g(y(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:de(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,g)=>jt("INTERSECTION",u.elements.map(g)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:Re,JsdocTypeProperty:Re,JsdocTypePredicate:Re,JsdocTypeMappedType:Re,JsdocTypeIndexSignature:Re,JsdocTypeAsserts:Re,JsdocTypeReadonlyArray:Re,JsdocTypeAssertsPlain:Re,JsdocTypeConditional:Re,JsdocTypeTypeParameter:Re};function un(u){return Bt($r,u)}function Gt(){return{JsdocTypeIntersection:(u,g)=>({type:"JsdocTypeIntersection",elements:u.elements.map(g)}),JsdocTypeGeneric:(u,g)=>({type:"JsdocTypeGeneric",left:g(u.left),elements:u.elements.map(g),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,g)=>({type:"JsdocTypeUnion",elements:u.elements.map(g)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,g)=>({type:"JsdocTypeTypeof",element:g(u.element)}),JsdocTypeSymbol:(u,g)=>{let x={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(x.element=g(u.element)),x},JsdocTypeOptional:(u,g)=>({type:"JsdocTypeOptional",element:g(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,g)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(g)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,g)=>({type:"JsdocTypeNotNullable",element:g(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,g)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:g(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,g)=>({type:"JsdocTypeJsdocObjectField",left:g(u.left),right:g(u.right)}),JsdocTypeKeyValue:(u,g)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:g(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,g)=>({type:"JsdocTypeImport",element:g(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,g)=>{let x={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(x.element=g(u.element)),x},JsdocTypeTuple:(u,g)=>({type:"JsdocTypeTuple",elements:u.elements.map(g)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,g)=>{let x={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(g),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(x.returnType=g(u.returnType)),x},JsdocTypeKeyof:(u,g)=>({type:"JsdocTypeKeyof",element:g(u.element)}),JsdocTypeParenthesis:(u,g)=>({type:"JsdocTypeParenthesis",element:g(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,g)=>({type:"JsdocTypePredicate",left:g(u.left),right:g(u.right)}),JsdocTypeIndexSignature:(u,g)=>({type:"JsdocTypeIndexSignature",key:u.key,right:g(u.right)}),JsdocTypeMappedType:(u,g)=>({type:"JsdocTypeMappedType",key:u.key,right:g(u.right)}),JsdocTypeAsserts:(u,g)=>({type:"JsdocTypeAsserts",left:g(u.left),right:g(u.right)}),JsdocTypeReadonlyArray:(u,g)=>({type:"JsdocTypeReadonlyArray",element:g(u.element)}),JsdocTypeAssertsPlain:(u,g)=>({type:"JsdocTypeAssertsPlain",element:g(u.element)}),JsdocTypeConditional:(u,g)=>({type:"JsdocTypeConditional",checksType:g(u.checksType),extendsType:g(u.extendsType),trueType:g(u.trueType),falseType:g(u.falseType)}),JsdocTypeTypeParameter:(u,g)=>({type:"JsdocTypeTypeParameter",name:g(u.name),constraint:u.constraint!==void 0?g(u.constraint):void 0,defaultValue:u.defaultValue!==void 0?g(u.defaultValue):void 0})}}let ln={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function Vr(u,g,x,j,Q){j?.(u,g,x);let ie=ln[u.type];for(let ce of ie){let he=u[ce];if(he!==void 0)if(Array.isArray(he))for(let Ie of he)Vr(Ie,u,ce,j,Q);else Vr(he,u,ce,j,Q)}Q?.(u,g,x)}function zi(u,g,x){Vr(u,void 0,void 0,g,x)}r.catharsisTransform=je,r.identityTransformRules=Gt,r.jtpTransform=un,r.parse=bt,r.stringify=re,r.stringifyRules=P,r.transform=Bt,r.traverse=zi,r.tryParse=nt,r.visitorKeys=ln})}});const{UnknownArgTypesError:Z9}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var e2=e=>e.name==="literal",t2=e=>e.value.replace(/['|"]/g,""),r2=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=yo(r.value)}),{name:"object",value:t};default:throw new Z9({type:e,language:"Flow"})}},yo=e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(yo)};case"signature":return{...n,...r2(e)};case"union":return e.elements?.every(e2)?{...n,name:"enum",value:e.elements?.map(t2)}:{...n,name:t,value:e.elements?.map(yo)};case"intersection":return{...n,name:t,value:e.elements?.map(yo)};default:return{...n,name:"other",value:t}}},x_=/^['"]|['"]$/g,n2=e=>e.replace(x_,""),i2=e=>x_.test(e),D_=e=>{let t=n2(e);return i2(e)||Number.isNaN(Number(t))?t:Number(t)},o2=/^\(.*\) => /,ao=e=>{let{name:t,raw:r,computed:n,value:i}=e,o={};switch(typeof r<"u"&&(o.raw=r),t){case"enum":{let s=n?i:i.map(p=>D_(p.value));return{...o,name:t,value:s}}case"string":case"number":case"symbol":return{...o,name:t};case"func":return{...o,name:"function"};case"bool":case"boolean":return{...o,name:"boolean"};case"arrayOf":case"array":return{...o,name:"array",value:i&&ao(i)};case"object":return{...o,name:t};case"objectOf":return{...o,name:t,value:ao(i)};case"shape":case"exact":let a=Y9(i,s=>ao(s));return{...o,name:"object",value:a};case"union":return{...o,name:"union",value:i.map(s=>ao(s))};case"instanceOf":case"element":case"elementType":default:{if(t?.indexOf("|")>0)try{let l=t.split("|").map(d=>JSON.parse(d));return{...o,name:"enum",value:l}}catch{}let s=i?`${t}(${i})`:t,p=o2.test(t)?"function":"other";return{...o,name:p,value:s}}}};const{UnknownArgTypesError:a2}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var s2=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=go(r.value)}),{name:"object",value:t};default:throw new a2({type:e,language:"Typescript"})}},go=e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(go)};case"signature":return{...n,...s2(e)};case"union":let i;return e.elements?.every(o=>o.name==="literal")?i={...n,name:"enum",value:e.elements?.map(o=>D_(o.value))}:i={...n,name:t,value:e.elements?.map(go)},i;case"intersection":return{...n,name:t,value:e.elements?.map(go)};default:return{...n,name:"other",value:t}}},ad=e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return ao(t);if(r!=null)return go(r);if(n!=null)return yo(n)}catch(i){console.error(i)}return null},Gl=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(Gl||{}),u2=["null","undefined"];function sd(e){return u2.some(t=>t===e)}var l2=e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)};function ud(e){return!!e.__docgenInfo}function c2(e){return e!=null&&Object.keys(e).length>0}function zl(e,t){return ud(e)?e.__docgenInfo[t]:null}function p2(e){return ud(e)?l2(e.__docgenInfo.description):""}var Sn;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Sn=Sn||(Sn={}));function d2(e){return/^\s+$/.test(e)}function f2(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}function Ei(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}function h2(e){return e.split(/\n/)}function m2(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}function y2(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}var g2=/^@\S+/;function b2({fence:e="```"}={}){let t=E2(e),r=(n,i)=>t(n)?!i:i;return function(n){let i=[[]],o=!1;for(let a of n)g2.test(a.tokens.description)&&!o?i.push([a]):i[i.length-1].push(a),o=r(a.tokens.description,o);return i}}function E2(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}function v2({startLine:e=0,markers:t=Sn}={}){let r=null,n=e;return function(i){let o=i,a=y2();if([a.lineEnd,o]=f2(o),[a.start,o]=Ei(o),r===null&&o.startsWith(t.start)&&!o.startsWith(t.nostart)&&(r=[],a.delimiter=o.slice(0,t.start.length),o=o.slice(t.start.length),[a.postDelimiter,o]=Ei(o)),r===null)return n++,null;let s=o.trimRight().endsWith(t.end);if(a.delimiter===""&&o.startsWith(t.delim)&&!o.startsWith(t.end)&&(a.delimiter=t.delim,o=o.slice(t.delim.length),[a.postDelimiter,o]=Ei(o)),s){let p=o.trimRight();a.end=o.slice(p.length-t.end.length),o=p.slice(0,-t.end.length)}if(a.description=o,r.push({number:n,source:i,tokens:a}),n++,s){let p=r.slice();return r=null,p}return null}}function A2({tokenizers:e}){return function(t){var r;let n=m2({source:t});for(let i of e)if(n=i(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n}}function _2(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}function w2(e="compact"){let t=T2(e);return r=>{let n=0,i=[];for(let[s,{tokens:p}]of r.source.entries()){let l="";if(s===0&&p.description[0]!=="{")return r;for(let d of p.description)if(d==="{"&&n++,d==="}"&&n--,l+=d,n===0)break;if(i.push([p,l]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let o=[],a=i[0][0].postDelimiter.length;for(let[s,[p,l]]of i.entries())p.type=l,s>0&&(p.type=p.postDelimiter.slice(a)+l,p.postDelimiter=p.postDelimiter.slice(0,a)),[p.postType,p.description]=Ei(p.description.slice(l.length)),o.push(p.type);return o[0]=o[0].slice(1),o[o.length-1]=o[o.length-1].slice(0,-1),r.type=t(o),r}}var C2=e=>e.trim();function T2(e){return e==="compact"?t=>t.map(C2).join(""):e==="preserve"?t=>t.join(`
|
|
1013
|
-
`):e}var S2=e=>e&&e.startsWith('"')&&e.endsWith('"');function x2(){let e=(t,{tokens:r},n)=>r.type===""?t:n;return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),i=n.split('"');if(i.length>1&&i[0]===""&&i.length%2===1)return t.name=i[1],r.name=`"${i[1]}"`,[r.postName,r.description]=Ei(n.slice(r.name.length)),t;let o=0,a="",s=!1,p;for(let d of n){if(o===0&&d2(d))break;d==="["&&o++,d==="]"&&o--,a+=d}if(o!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let l=a;if(a[0]==="["&&a[a.length-1]==="]"){s=!0,a=a.slice(1,-1);let d=a.split("=");if(a=d[0].trim(),d[1]!==void 0&&(p=d.slice(1).join("=").trim()),a==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(p==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!S2(p)&&/=(?!>)/.test(p))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=s,t.name=a,r.name=l,p!==void 0&&(t.default=p),[r.postName,r.description]=Ei(n.slice(r.name.length)),t}}function D2(e="compact",t=Sn){let r=R_(e);return n=>(n.description=r(n.source,t),n)}function R_(e){return e==="compact"?R2:e==="preserve"?F2:e}function R2(e,t=Sn){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}var P2=(e,{tokens:t},r)=>t.type===""?e:r,O2=({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description;function F2(e,t=Sn){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(P2,0)),e.map(O2).join(`
|
|
1014
|
-
`)}function I2({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=Sn,tokenizers:i=[_2(),w2(r),x2(),D2(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let o=v2({startLine:e,markers:n}),a=b2({fence:t}),s=A2({tokenizers:i}),p=R_(r);return function(l){let d=[];for(let f of h2(l)){let h=o(f);if(h===null)continue;let m=a(h),b=m.slice(1).map(s);d.push({description:p(m[0],n),tags:b,source:h,problems:b.reduce((E,_)=>E.concat(_.problems),[])})}return d}}function N2(e,t={}){return I2(t)(e)}var ld=z9(Q9(),1);function B2(e){return e!=null&&e.includes("@")}function k2(e){let t=`/**
|
|
1015
|
-
`+(e??"").split(`
|
|
1016
|
-
`).map(n=>` * ${n}`).join(`
|
|
1017
|
-
`)+`
|
|
1018
|
-
*/`,r=N2(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}var M2={tags:["param","arg","argument","returns","ignore","deprecated"]},j2=(e,t=M2)=>{if(!B2(e))return{includesJsDoc:!1,ignore:!1};let r=k2(e),n=q2(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}};function q2(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let i=$2(n);i!=null&&(r.params==null&&(r.params=[]),r.params.push(i));break}case"deprecated":{let i=V2(n);i!=null&&(r.deprecated=i);break}case"returns":{let i=U2(n);i!=null&&(r.returns=i);break}}return r}function L2(e){return e.replace(/[\.-]$/,"")}function $2(e){if(!e.name||e.name==="-")return null;let t=F_(e.type);return{name:e.name,type:t,description:O_(e.description),getPrettyName:()=>L2(e.name),getTypeName:()=>t?I_(t):null}}function V2(e){return e.name?P_(e.name,e.description):null}function P_(e,t){let r=e===""?t:`${e} ${t}`;return O_(r)}function O_(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}function U2(e){let t=F_(e.type);return t?{type:t,description:P_(e.name,e.description),getTypeName:()=>I_(t)}:null}var In=(0,ld.stringifyRules)(),J2=In.JsdocTypeObject;In.JsdocTypeAny=()=>"any";In.JsdocTypeObject=(e,t)=>`(${J2(e,t)})`;In.JsdocTypeOptional=(e,t)=>t(e.element);In.JsdocTypeNullable=(e,t)=>t(e.element);In.JsdocTypeNotNullable=(e,t)=>t(e.element);In.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function F_(e){try{return(0,ld.parse)(e,"typescript")}catch{return null}}function I_(e){return(0,ld.transform)(In,e)}function cd(e){return e.length>90}function Ui(e){return e.length>50}function Me(e,t){return e===t?{summary:e}:{summary:e,detail:t}}function H2(e,t){if(e!=null){let{value:r}=e;if(!sd(r))return Ui(r)?Me(t?.name,r):Me(r)}return null}function N_({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(N_).join(" | "):n??e)}function G2({name:e,raw:t,elements:r}){return r!=null?Me(r.map(N_).join(" | ")):t!=null?Me(t.replace(/^\|\s*/,"")):Me(e)}function z2({type:e,raw:t}){return t!=null?Me(t):Me(e)}function W2({type:e,raw:t}){return t!=null?cd(t)?Me(e,t):Me(t):Me(e)}function K2(e){let{type:t}=e;return t==="object"?W2(e):z2(e)}function Y2({name:e,raw:t}){return t!=null?cd(t)?Me(e,t):Me(t):Me(e)}function X2(e){if(e==null)return null;switch(e.name){case"union":return G2(e);case"signature":return K2(e);default:return Y2(e)}}var Q2=(e,t)=>{let{flowType:r,description:n,required:i,defaultValue:o}=t;return{name:e,type:X2(r),required:i,description:n,defaultValue:H2(o??null,r??null)}};function Z2({defaultValue:e}){if(e!=null){let{value:t}=e;if(!sd(t))return Me(t)}return null}function e$({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),Me(["Array","Record","signature"].includes(e.name)?e.raw:r)}var t$=(e,t)=>{let{description:r,required:n}=t;return{name:e,type:e$(t),required:n,description:r,defaultValue:Z2(t)}};function r$(e){return e!=null?Me(e.name):null}function n$(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}function i$(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}function o$(e,t){if(e!=null){let{value:r}=e;if(!sd(r))return n$(e)&&i$(t)?Me(JSON.stringify(r)):Me(r)}return null}function B_(e,t,r){let{description:n,required:i,defaultValue:o}=r;return{name:e,type:r$(t),required:i,description:n,defaultValue:o$(o,t)}}function Us(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let i={...n,params:n?.params?.map(o=>({name:o.getPrettyName(),description:o.description}))};Object.values(i).filter(Boolean).length>0&&(e.jsDocTags=i)}return e}var a$=(e,t,r)=>{let n=B_(e,t.type,t);return n.sbType=ad(t),Us(n,r)},s$=(e,t,r)=>{let n=t$(e,t);return n.sbType=ad(t),Us(n,r)},u$=(e,t,r)=>{let n=Q2(e,t);return n.sbType=ad(t),Us(n,r)},l$=(e,t,r)=>{let n=B_(e,{name:"unknown"},t);return Us(n,r)},k_=e=>{switch(e){case"JavaScript":return a$;case"TypeScript":return s$;case"Flow":return u$;default:return l$}},M_=e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown",c$=e=>{let t=M_(e[0]),r=k_(t);return e.map(n=>{let i=n;return n.type?.elements&&(i={...n,type:{...n.type,value:n.type.elements}}),j_(i.name,i,t,r)})},p$=e=>{let t=Object.keys(e),r=M_(e[t[0]]),n=k_(r);return t.map(i=>{let o=e[i];return o!=null?j_(i,o,r,n):null}).filter(Boolean)},d$=(e,t)=>{let r=zl(e,t);return c2(r)?Array.isArray(r)?c$(r):p$(r):[]};function j_(e,t,r,n){let i=j2(t.description);return i.includesJsDoc&&i.ignore?null:{propDef:n(e,t,i),jsDocTags:i.extractedTags,docgenInfo:t,typeSystem:r}}function f$(e){return e!=null?p2(e):""}var q_=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((i,o)=>(Object.entries(o).forEach(([a,s])=>{let p=i[a];Array.isArray(s)||typeof p>"u"?i[a]=s:zn(s)&&zn(p)?t[a]=!0:typeof s<"u"&&(i[a]=s)}),i),{});return Object.keys(t).forEach(i=>{let o=r.filter(Boolean).map(a=>a[i]).filter(a=>typeof a<"u");o.every(a=>zn(a))?n[i]=q_(...o):n[i]=o[o.length-1]}),n},h$=e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:i}=n;if(!i||!t)return r;let o=i(t);return o?q_(o,r):r},m$="storybook/docs",g7=`${m$}/snippet-rendered`,Wl=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Wl||{});const y$={"./src/stories/AbsFullscreenGradientBg.stories.tsx":()=>Pe(()=>import("./AbsFullscreenGradientBg.stories-Hd2WmWkA.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),"./src/stories/AgentScrollSelector.stories.tsx":()=>Pe(()=>import("./AgentScrollSelector.stories-C3rsFZ6F.js"),__vite__mapDeps([4,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,3]),import.meta.url),"./src/stories/AgentSelect.stories.tsx":()=>Pe(()=>import("./AgentSelect.stories-DVhwD0rq.js"),__vite__mapDeps([19,1,17,5,6,3]),import.meta.url),"./src/stories/AttachmentPart.stories.tsx":()=>Pe(()=>import("./AttachmentPart.stories-ejj4i7n-.js"),__vite__mapDeps([20,1,21,5,22,16,6,3]),import.meta.url),"./src/stories/AttachmentPartGroup.stories.tsx":()=>Pe(()=>import("./AttachmentPartGroup.stories-5Zdayw6l.js"),__vite__mapDeps([23,1,5,21,22,16,6,3]),import.meta.url),"./src/stories/AttachmentsPreviewer.stories.tsx":()=>Pe(()=>import("./AttachmentsPreviewer.stories-DyjtCRco.js"),__vite__mapDeps([24,1,5,6,16,25,3]),import.meta.url),"./src/stories/BaseButton.stories.tsx":()=>Pe(()=>import("./BaseButton.stories-DrGEYx9W.js"),__vite__mapDeps([26,1,27,5,6,10,11,12,9,13,14,15,16,3]),import.meta.url),"./src/stories/BorderAnimation.stories.tsx":()=>Pe(()=>import("./BorderAnimation.stories-D9p4pgL6.js"),__vite__mapDeps([28,1,5,3]),import.meta.url),"./src/stories/BorderColorAnimation.stories.tsx":()=>Pe(()=>import("./BorderColorAnimation.stories-tvilZOeG.js"),__vite__mapDeps([29,1,30,3]),import.meta.url),"./src/stories/BotAvatarAndName.stories.ts":()=>Pe(()=>import("./BotAvatarAndName.stories-B8ZNN2_J.js"),__vite__mapDeps([31,1,32,6,3]),import.meta.url),"./src/stories/BotIcon.stories.ts":()=>Pe(()=>import("./BotIcon.stories-DAyXSQDa.js"),__vite__mapDeps([33,32,1,6,3]),import.meta.url),"./src/stories/BsEntrySelect.stories.tsx":()=>Pe(()=>import("./BsEntrySelect.stories-B2B9FZWy.js"),__vite__mapDeps([34,1,12,5,6,7,8,9,10,11,13,14,15,16,3]),import.meta.url),"./src/stories/BsTooltip.stories.tsx":()=>Pe(()=>import("./BsTooltip.stories-Bf_LcqnK.js"),__vite__mapDeps([35,1,10,11,12,9,13,14,15,5,7,8,6,16,3]),import.meta.url),"./src/stories/Card.stories.tsx":()=>Pe(()=>import("./Card.stories-BSeowjg-.js"),__vite__mapDeps([36,1,6,5,16,3]),import.meta.url),"./src/stories/CardField.stories.tsx":()=>Pe(()=>import("./CardField.stories-CYnnBUTk.js"),__vite__mapDeps([37,1,5,3]),import.meta.url),"./src/stories/ChatAreaHeader.stories.ts":()=>Pe(()=>import("./ChatAreaHeader.stories-muYZq_ix.js"),__vite__mapDeps([38,1,5,6,7,8,9,10,11,12,13,14,15,16,3]),import.meta.url),"./src/stories/CircleChecker.stories.tsx":()=>Pe(()=>import("./CircleChecker.stories-CueVuqmn.js"),__vite__mapDeps([39,1,5,16,6,3]),import.meta.url),"./src/stories/CollapsibleTextMsg.stories.ts":()=>Pe(()=>import("./CollapsibleTextMsg.stories-Bl8inRXa.js"),__vite__mapDeps([40,41,1,5,6,16,3]),import.meta.url),"./src/stories/ConfirmDialog.stories.tsx":()=>Pe(()=>import("./ConfirmDialog.stories-C3TDIr-r.js"),__vite__mapDeps([42,1,43,44,11,12,9,14,13,18,5,16,6,27,10,15,3]),import.meta.url),"./src/stories/FakeBotMsg.stories.tsx":()=>Pe(()=>import("./FakeBotMsg.stories-CSC1k9UE.js"),__vite__mapDeps([45,1,46,5,3]),import.meta.url),"./src/stories/FormInfoEditor.stories.tsx":()=>Pe(()=>import("./FormInfoEditor.stories-DcLwCSHN.js"),__vite__mapDeps([47,1,5,6,25,48,8,9,16,49,3]),import.meta.url),"./src/stories/FormulaTag.stories.tsx":()=>Pe(()=>import("./FormulaTag.stories-hiPYLb6Y.js"),__vite__mapDeps([50,1,5,3]),import.meta.url),"./src/stories/GenerateAnimation.stories.ts":()=>Pe(()=>import("./GenerateAnimation.stories-C5qGwAy0.js"),__vite__mapDeps([51,1,52,3]),import.meta.url),"./src/stories/IconBtn.stories.tsx":()=>Pe(()=>import("./IconBtn.stories-pcl--4Wl.js"),__vite__mapDeps([53,1,7,8,9,5,6,10,11,12,13,14,15,16,3]),import.meta.url),"./src/stories/Icons.stories.ts":()=>Pe(()=>import("./Icons.stories-FN8wG7iW.js"),__vite__mapDeps([54,1,16,6,5,7,8,9,10,11,12,13,14,15,3]),import.meta.url),"./src/stories/ImgMsgPart.stories.tsx":()=>Pe(()=>import("./ImgMsgPart.stories-CkiWUjiY.js"),__vite__mapDeps([55,22,1,5,3]),import.meta.url),"./src/stories/LegacySlot.stories.tsx":()=>Pe(()=>import("./LegacySlot.stories-C_PeMEjh.js"),__vite__mapDeps([56,1,3]),import.meta.url),"./src/stories/LineChecker.stories.tsx":()=>Pe(()=>import("./LineChecker.stories-DcChEKvO.js"),__vite__mapDeps([57,1,58,52,5,16,6,59,9,11,12,60,15,3]),import.meta.url),"./src/stories/LinearGradientBorderBtn.stories.tsx":()=>Pe(()=>import("./LinearGradientBorderBtn.stories-CQgLcYJf.js"),__vite__mapDeps([61,1,5,16,6,3]),import.meta.url),"./src/stories/LinearGradientColorBgAnimation.stories.tsx":()=>Pe(()=>import("./LinearGradientColorBgAnimation.stories-D9NYfNzo.js"),__vite__mapDeps([62,1,63,3]),import.meta.url),"./src/stories/MemoizedMarkdown.stories.tsx":()=>Pe(()=>import("./MemoizedMarkdown.stories-BxOuEc_8.js"),__vite__mapDeps([64,1,3]),import.meta.url),"./src/stories/MessageContent.stories.tsx":()=>Pe(()=>import("./MessageContent.stories-Cz7z6a8d.js"),__vite__mapDeps([65,46,1,5,3]),import.meta.url),"./src/stories/NumbersMsgPart.stories.tsx":()=>Pe(()=>import("./NumbersMsgPart.stories-Dke7EvTU.js"),__vite__mapDeps([66,1,5,16,6,3]),import.meta.url),"./src/stories/OfficeContainer.stories.tsx":()=>Pe(()=>import("./OfficeContainer.stories-DpQ7TB3v.js"),__vite__mapDeps([67,1,52,3]),import.meta.url),"./src/stories/OptionItem.stories.tsx":()=>Pe(()=>import("./OptionItem.stories-BNr85yzu.js"),__vite__mapDeps([68,1,69,3]),import.meta.url),"./src/stories/PreviewerHeader.stories.tsx":()=>Pe(()=>import("./PreviewerHeader.stories-IxioHG75.js"),__vite__mapDeps([70,1,71,52,7,8,9,5,6,10,11,12,13,14,15,16,63,43,44,18,27,72,3]),import.meta.url),"./src/stories/PrimaryConfirmBtn.stories.tsx":()=>Pe(()=>import("./PrimaryConfirmBtn.stories-Dg0OQKbA.js"),__vite__mapDeps([73,1,48,8,9,5,6,16,3]),import.meta.url),"./src/stories/PrimaryEntryBtn.stories.tsx":()=>Pe(()=>import("./PrimaryEntryBtn.stories-Baz1MVoZ.js"),__vite__mapDeps([74,1,8,9,5,32,6,16,3]),import.meta.url),"./src/stories/ScrollToBottom.stories.tsx":()=>Pe(()=>import("./ScrollToBottom.stories-DqAOmU_g.js"),__vite__mapDeps([75,1,5,6,16,3]),import.meta.url),"./src/stories/SplitLine.stories.tsx":()=>Pe(()=>import("./SplitLine.stories-CbkBng-u.js"),__vite__mapDeps([76,1,5,3]),import.meta.url),"./src/stories/SquareChecker.stories.tsx":()=>Pe(()=>import("./SquareChecker.stories-BFXpWaHr.js"),__vite__mapDeps([77,1,59,9,11,12,60,15,5,16,6,3]),import.meta.url),"./src/stories/TabRadioGroup.stories.tsx":()=>Pe(()=>import("./TabRadioGroup.stories-d3CvjAQV.js"),__vite__mapDeps([78,1,11,12,9,14,13,15,60,5,10,3]),import.meta.url),"./src/stories/UserTextMsgBubble.stories.ts":()=>Pe(()=>import("./UserTextMsgBubble.stories-Dv5HUEKe.js"),__vite__mapDeps([79,1,3]),import.meta.url),"./src/stories/WarningMessage.stories.tsx":()=>Pe(()=>import("./WarningMessage.stories-DoHvvVJB.js"),__vite__mapDeps([80,1,5,6,3]),import.meta.url),"./src/stories/collapsible.stories.tsx":()=>Pe(()=>import("./collapsible.stories-DmrXoEsa.js"),__vite__mapDeps([81,1,82,11,12,9,14,3]),import.meta.url),"./src/stories/drawer.stories.tsx":()=>Pe(()=>import("./drawer.stories-BdM7Wbzl.js"),__vite__mapDeps([83,1,44,11,12,9,14,13,18,5,72,8,3]),import.meta.url),"./src/stories/field-checker-list-msg.stories.tsx":()=>Pe(()=>import("./field-checker-list-msg.stories-B_6usiWl.js"),__vite__mapDeps([84,1,41,5,6,16,85,58,52,59,9,11,12,60,15,69,86,49,87,88,82,14,3]),import.meta.url),"./src/stories/field-checker.stories.tsx":()=>Pe(()=>import("./field-checker.stories-BghsIYEd.js"),__vite__mapDeps([89,1,85,6,58,52,5,16,59,9,11,12,60,15,69,86,49,3]),import.meta.url),"./src/stories/field-icon.stories.tsx":()=>Pe(()=>import("./field-icon.stories-D9Ukdb7l.js"),__vite__mapDeps([90,1,86,6,49,16,5,3]),import.meta.url),"./src/stories/field-value-checker.stories.tsx":()=>Pe(()=>import("./field-value-checker.stories-Ch-7H5CO.js"),__vite__mapDeps([91,1,87,6,5,88,82,11,12,9,14,58,52,16,59,60,15,3]),import.meta.url),"./src/stories/fields-design-info-table.stories.tsx":()=>Pe(()=>import("./fields-design-info-table.stories-CtmX3mmp.js"),__vite__mapDeps([92,1,5,16,6,3]),import.meta.url),"./src/stories/fields-generating.stories.tsx":()=>Pe(()=>import("./fields-generating.stories-CAtWVnX3.js"),__vite__mapDeps([93,94,1,30,16,6,5,3]),import.meta.url),"./src/stories/fields-previewer.stories.tsx":()=>Pe(()=>import("./fields-previewer.stories-D3USvSB3.js"),__vite__mapDeps([95,1,52,2,30,94,16,6,5,71,7,8,9,10,11,12,13,14,15,63,43,44,18,27,72,3]),import.meta.url),"./src/stories/subform-fields-value-checker.stories.tsx":()=>Pe(()=>import("./subform-fields-value-checker.stories-BCg_WRIi.js"),__vite__mapDeps([96,1,88,6,5,82,11,12,9,14,58,52,16,59,60,15,3]),import.meta.url)};async function g$(e){return await y$[e]()}var b7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L_={exports:{}},Ge={};/**
|
|
1019
|
-
* @license React
|
|
1020
|
-
* react.production.min.js
|
|
1021
|
-
*
|
|
1022
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1023
|
-
*
|
|
1024
|
-
* This source code is licensed under the MIT license found in the
|
|
1025
|
-
* LICENSE file in the root directory of this source tree.
|
|
1026
|
-
*/var ea=Symbol.for("react.element"),E$=Symbol.for("react.portal"),v$=Symbol.for("react.fragment"),A$=Symbol.for("react.strict_mode"),_$=Symbol.for("react.profiler"),w$=Symbol.for("react.provider"),C$=Symbol.for("react.context"),T$=Symbol.for("react.forward_ref"),S$=Symbol.for("react.suspense"),x$=Symbol.for("react.memo"),D$=Symbol.for("react.lazy"),jm=Symbol.iterator;function R$(e){return e===null||typeof e!="object"?null:(e=jm&&e[jm]||e["@@iterator"],typeof e=="function"?e:null)}var $_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V_=Object.assign,U_={};function Ji(e,t,r){this.props=e,this.context=t,this.refs=U_,this.updater=r||$_}Ji.prototype.isReactComponent={};Ji.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ji.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function J_(){}J_.prototype=Ji.prototype;function pd(e,t,r){this.props=e,this.context=t,this.refs=U_,this.updater=r||$_}var dd=pd.prototype=new J_;dd.constructor=pd;V_(dd,Ji.prototype);dd.isPureReactComponent=!0;var qm=Array.isArray,H_=Object.prototype.hasOwnProperty,fd={current:null},G_={key:!0,ref:!0,__self:!0,__source:!0};function z_(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)H_.call(t,n)&&!G_.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var p=Array(s),l=0;l<s;l++)p[l]=arguments[l+2];i.children=p}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:ea,type:e,key:o,ref:a,props:i,_owner:fd.current}}function P$(e,t){return{$$typeof:ea,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hd(e){return typeof e=="object"&&e!==null&&e.$$typeof===ea}function O$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Lm=/\/+/g;function Ou(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O$(""+e.key):t.toString(36)}function ka(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ea:case E$:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+Ou(a,0):n,qm(i)?(r="",e!=null&&(r=e.replace(Lm,"$&/")+"/"),ka(i,t,r,"",function(l){return l})):i!=null&&(hd(i)&&(i=P$(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Lm,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",qm(e))for(var s=0;s<e.length;s++){o=e[s];var p=n+Ou(o,s);a+=ka(o,t,r,p,i)}else if(p=R$(e),typeof p=="function")for(e=p.call(e),s=0;!(o=e.next()).done;)o=o.value,p=n+Ou(o,s++),a+=ka(o,t,r,p,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function _a(e,t,r){if(e==null)return e;var n=[],i=0;return ka(e,n,"","",function(o){return t.call(r,o,i++)}),n}function F$(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rr={current:null},Ma={transition:null},I$={ReactCurrentDispatcher:rr,ReactCurrentBatchConfig:Ma,ReactCurrentOwner:fd};function W_(){throw Error("act(...) is not supported in production builds of React.")}Ge.Children={map:_a,forEach:function(e,t,r){_a(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return _a(e,function(){t++}),t},toArray:function(e){return _a(e,function(t){return t})||[]},only:function(e){if(!hd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ge.Component=Ji;Ge.Fragment=v$;Ge.Profiler=_$;Ge.PureComponent=pd;Ge.StrictMode=A$;Ge.Suspense=S$;Ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I$;Ge.act=W_;Ge.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=V_({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=fd.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(p in t)H_.call(t,p)&&!G_.hasOwnProperty(p)&&(n[p]=t[p]===void 0&&s!==void 0?s[p]:t[p])}var p=arguments.length-2;if(p===1)n.children=r;else if(1<p){s=Array(p);for(var l=0;l<p;l++)s[l]=arguments[l+2];n.children=s}return{$$typeof:ea,type:e.type,key:i,ref:o,props:n,_owner:a}};Ge.createContext=function(e){return e={$$typeof:C$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:w$,_context:e},e.Consumer=e};Ge.createElement=z_;Ge.createFactory=function(e){var t=z_.bind(null,e);return t.type=e,t};Ge.createRef=function(){return{current:null}};Ge.forwardRef=function(e){return{$$typeof:T$,render:e}};Ge.isValidElement=hd;Ge.lazy=function(e){return{$$typeof:D$,_payload:{_status:-1,_result:e},_init:F$}};Ge.memo=function(e,t){return{$$typeof:x$,type:e,compare:t===void 0?null:t}};Ge.startTransition=function(e){var t=Ma.transition;Ma.transition={};try{e()}finally{Ma.transition=t}};Ge.unstable_act=W_;Ge.useCallback=function(e,t){return rr.current.useCallback(e,t)};Ge.useContext=function(e){return rr.current.useContext(e)};Ge.useDebugValue=function(){};Ge.useDeferredValue=function(e){return rr.current.useDeferredValue(e)};Ge.useEffect=function(e,t){return rr.current.useEffect(e,t)};Ge.useId=function(){return rr.current.useId()};Ge.useImperativeHandle=function(e,t,r){return rr.current.useImperativeHandle(e,t,r)};Ge.useInsertionEffect=function(e,t){return rr.current.useInsertionEffect(e,t)};Ge.useLayoutEffect=function(e,t){return rr.current.useLayoutEffect(e,t)};Ge.useMemo=function(e,t){return rr.current.useMemo(e,t)};Ge.useReducer=function(e,t,r){return rr.current.useReducer(e,t,r)};Ge.useRef=function(e){return rr.current.useRef(e)};Ge.useState=function(e){return rr.current.useState(e)};Ge.useSyncExternalStore=function(e,t,r){return rr.current.useSyncExternalStore(e,t,r)};Ge.useTransition=function(){return rr.current.useTransition()};Ge.version="18.3.1";L_.exports=Ge;var tr=L_.exports;const Er=b$(tr),E7=$w({__proto__:null,default:Er},[tr]),{defaultDecorateStory:N$}=__STORYBOOK_MODULE_PREVIEW_API__;var md=(e,t)=>N$(r=>Er.createElement(e,r),t),B$=Object.create,yd=Object.defineProperty,k$=Object.getOwnPropertyDescriptor,K_=Object.getOwnPropertyNames,M$=Object.getPrototypeOf,j$=Object.prototype.hasOwnProperty,mt=(e,t)=>function(){return t||(0,e[K_(e)[0]])((t={exports:{}}).exports,t),t.exports},gd=(e,t)=>{for(var r in t)yd(e,r,{get:t[r],enumerable:!0})},q$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of K_(t))!j$.call(e,i)&&i!==r&&yd(e,i,{get:()=>t[i],enumerable:!(n=k$(t,i))||n.enumerable});return e},Hi=(e,t,r)=>(r=e!=null?B$(M$(e)):{},q$(t||!e||!e.__esModule?yd(r,"default",{value:e,enumerable:!0}):r,e)),L$={};gd(L$,{applyDecorators:()=>md,beforeAll:()=>nw,decorators:()=>tw,mount:()=>ew,parameters:()=>rw,render:()=>X_,renderToCanvas:()=>Z_});const{global:$$}=__STORYBOOK_MODULE_GLOBAL__,{configure:V$}=__STORYBOOK_MODULE_TEST__;function $m(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function U$(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var Y_=async({disableAct:e=!1}={})=>t=>t(),X_=(e,t)=>{let{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return Er.createElement(n,{...e})};const{global:J$}=__STORYBOOK_MODULE_GLOBAL__;var{FRAMEWORK_OPTIONS:H$}=J$,G$=class extends tr.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},Vm=H$?.strictMode?tr.StrictMode:tr.Fragment,Kl=[],Fu=!1,Q_=async()=>{if(Fu||Kl.length===0)return;Fu=!0;let e=Kl.shift();e&&await e(),Fu=!1,Q_()};async function Z_({storyContext:e,unboundStoryFn:t,showMain:r,showException:n,forceRemount:i},o){let{renderElement:a,unmountElement:s}=await Pe(async()=>{const{renderElement:h,unmountElement:m}=await import("./react-18-Cn3rktXT.js");return{renderElement:h,unmountElement:m}},__vite__mapDeps([97,12,3]),import.meta.url),p=t,l=e.parameters.__isPortableStory?Er.createElement(p,{...e}):Er.createElement(G$,{key:e.id,showMain:r,showException:n},Er.createElement(p,{...e})),d=Vm?Er.createElement(Vm,null,l):l;i&&s(o);let f=await Y_({disableAct:e.viewMode==="docs"});return await new Promise(async(h,m)=>{Kl.push(async()=>{try{await f(async()=>{await a(d,o,e?.parameters?.react?.rootOptions)}),h()}catch(b){m(b)}}),Q_()}),async()=>{await f(()=>{s(o)})}}var ew=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),tw=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let[r,n]=tr.version.split(".").map(i=>parseInt(i,10));if(!Number.isInteger(r)||!Number.isInteger(n))throw new Error("Unable to parse React version");if(r<18||r===18&&n<3)throw new Error("React Server Components require React >= 18.3");return tr.createElement(tr.Suspense,null,e())},(e,t)=>{if(t.tags?.includes("test-fn")&&!$$.FEATURES?.experimentalTestSyntax)throw new Error("To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/10/api/main-config/main-config-features#experimentalTestSyntax");return e()}],rw={renderer:"react"},nw=async()=>{try{let e=await Y_();V$({unstable_advanceTimersWrapper:t=>e(t),asyncWrapper:async t=>{let r=U$();$m(!1);try{let n=await t();return await new Promise(i=>{setTimeout(()=>{i()},0),z$()&&jest.advanceTimersByTime(0)}),n}finally{$m(r)}},eventWrapper:t=>{let r;return e(()=>(r=t(),r)),r}})}catch{}};function z$(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}const W$=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:md,beforeAll:nw,decorators:tw,mount:ew,parameters:rw,render:X_,renderToCanvas:Z_},Symbol.toStringTag,{value:"Module"}));var K$=mt({"../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(p){for(var l,d=1,f=arguments.length;d<f;d++){l=arguments[d];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(p[h]=l[h])}return p},t.apply(this,arguments)},r=e&&e.__spreadArrays||function(){for(var p=0,l=0,d=arguments.length;l<d;l++)p+=arguments[l].length;for(var f=Array(p),h=0,l=0;l<d;l++)for(var m=arguments[l],b=0,E=m.length;b<E;b++,h++)f[h]=m[b];return f};Object.defineProperty(e,"__esModule",{value:!0});var n=[];function i(p){var l=typeof p;return p!==null&&(l==="object"||l==="function")}function o(p){return Object.prototype.toString.call(p)==="[object RegExp]"}function a(p){return Object.getOwnPropertySymbols(p).filter(function(l){return Object.prototype.propertyIsEnumerable.call(p,l)})}function s(p,l,d){d===void 0&&(d="");var f={indent:" ",singleQuotes:!0},h=t(t({},f),l),m;h.inlineCharacterLimit===void 0?m={newLine:`
|
|
1027
|
-
`,newLineOrSpace:`
|
|
1028
|
-
`,pad:d,indent:d+h.indent}:m={newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var b=function(A){if(h.inlineCharacterLimit===void 0)return A;var T=A.replace(new RegExp(m.newLine,"g"),"").replace(new RegExp(m.newLineOrSpace,"g")," ").replace(new RegExp(m.pad+"|"+m.indent,"g"),"");return T.length<=h.inlineCharacterLimit?T:A.replace(new RegExp(m.newLine+"|"+m.newLineOrSpace,"g"),`
|
|
1029
|
-
`).replace(new RegExp(m.pad,"g"),d).replace(new RegExp(m.indent,"g"),d+h.indent)};if(n.indexOf(p)!==-1)return'"[Circular]"';if(p==null||typeof p=="number"||typeof p=="boolean"||typeof p=="function"||typeof p=="symbol"||o(p))return String(p);if(p instanceof Date)return"new Date('"+p.toISOString()+"')";if(Array.isArray(p)){if(p.length===0)return"[]";n.push(p);var E="["+m.newLine+p.map(function(A,T){var k=p.length-1===T?m.newLine:","+m.newLineOrSpace,O=s(A,h,d+h.indent);return h.transform&&(O=h.transform(p,T,O)),m.indent+O+k}).join("")+m.pad+"]";return n.pop(),b(E)}if(i(p)){var _=r(Object.keys(p),a(p));if(h.filter&&(_=_.filter(function(T){return h.filter&&h.filter(p,T)})),_.length===0)return"{}";n.push(p);var E="{"+m.newLine+_.map(function(T,k){var O=_.length-1===k?m.newLine:","+m.newLineOrSpace,R=typeof T=="symbol",y=!R&&/^[a-z$_][a-z$_0-9]*$/i.test(T.toString()),S=R||y?T:s(T,h),C=s(p[T],h,d+h.indent);return h.transform&&(C=h.transform(p,T,C)),m.indent+String(S)+": "+C+O}).join("")+m.pad+"}";return n.pop(),b(E)}return p=String(p).replace(/[\r\n]/g,function(A){return A===`
|
|
1030
|
-
`?"\\n":"\\r"}),h.singleQuotes?(p=p.replace(/\\?'/g,"\\'"),"'"+p+"'"):(p=p.replace(/"/g,'\\"'),'"'+p+'"')}e.prettyPrint=s}}),Y$=mt({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),p=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function _(A){if(typeof A=="object"&&A!==null){var T=A.$$typeof;switch(T){case t:switch(A=A.type,A){case n:case o:case i:case d:case f:return A;default:switch(A=A&&A.$$typeof,A){case p:case s:case l:case m:case h:case a:return A;default:return T}}case r:return T}}}e.ContextConsumer=s,e.ContextProvider=a,e.Element=t,e.ForwardRef=l,e.Fragment=n,e.Lazy=m,e.Memo=h,e.Portal=r,e.Profiler=o,e.StrictMode=i,e.Suspense=d,e.SuspenseList=f,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(A){return _(A)===s},e.isContextProvider=function(A){return _(A)===a},e.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},e.isForwardRef=function(A){return _(A)===l},e.isFragment=function(A){return _(A)===n},e.isLazy=function(A){return _(A)===m},e.isMemo=function(A){return _(A)===h},e.isPortal=function(A){return _(A)===r},e.isProfiler=function(A){return _(A)===o},e.isStrictMode=function(A){return _(A)===i},e.isSuspense=function(A){return _(A)===d},e.isSuspenseList=function(A){return _(A)===f},e.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===o||A===i||A===d||A===f||A===b||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===h||A.$$typeof===a||A.$$typeof===s||A.$$typeof===l||A.$$typeof===E||A.getModuleId!==void 0)},e.typeOf=_}}),X$=mt({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(e,t){t.exports=Y$()}}),iw=e=>e.$$typeof===Symbol.for("react.memo"),Q$=e=>e.$$typeof===Symbol.for("react.forward_ref");function Um(e){return Object.prototype.toString.call(e)==="[object Object]"}function Z$(e){var t,r;return Um(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(Um(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var eV=Hi(K$()),Nr=Hi(X$()),Zr=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function Yl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tV(e){if(Array.isArray(e))return Yl(e)}function rV(e,t,r){return(t=uV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1031
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oV(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jm(Object(r),!0).forEach(function(n){rV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aV(e){return tV(e)||nV(e)||lV(e)||iV()}function sV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uV(e){var t=sV(e,"string");return typeof t=="symbol"?t:t+""}function qo(e){"@babel/helpers - typeof";return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(e)}function lV(e,t){if(e){if(typeof e=="string")return Yl(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yl(e,t):void 0}}function Xl(e,t){if(e===null||qo(e)!=="object"||e instanceof Date||e instanceof RegExp)return e;if(tr.isValidElement(e)){var r=oV({},e);return delete r._owner,r}return t.add(e),Array.isArray(e)?e.map(function(n){return Xl(n,t)}):Object.keys(e).sort().reduce(function(n,i){return i==="current"||t.has(e[i])?n[i]="[Circular]":n[i]=Xl(e[i],t),n},{})}function cV(e){return Xl(e,new WeakSet)}var ow=function(e){return{type:"string",value:e}},pV=function(e){return{type:"number",value:e}},dV=function(e,t,r,n){return{type:"ReactElement",displayName:e,props:t,defaultProps:r,childrens:n}},fV=function(e,t){return{type:"ReactFragment",key:e,childrens:t}},hV=!!tr.Fragment,aw=function(e){return!e.name||e.name==="_default"?"No Display Name":e.name},Ql=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===Nr.Memo:return Ql(e.type);case e.$$typeof===Nr.ForwardRef:return Ql(e.render);default:return aw(e)}},mV=function(e){switch(!0){case typeof e.type=="string":return e.type;case typeof e.type=="function":return e.type.displayName?e.type.displayName:aw(e.type);case(0,Nr.isForwardRef)(e):case(0,Nr.isMemo)(e):return Ql(e.type);case(0,Nr.isContextConsumer)(e):return"".concat(e.type._context.displayName||"Context",".Consumer");case(0,Nr.isContextProvider)(e):return"".concat(e.type._context.displayName||"Context",".Provider");case(0,Nr.isLazy)(e):return"Lazy";case(0,Nr.isProfiler)(e):return"Profiler";case(0,Nr.isStrictMode)(e):return"StrictMode";case(0,Nr.isSuspense)(e):return"Suspense";default:return"UnknownElementType"}},Hm=function(e,t){return t!=="children"},yV=function(e){return e!==!0&&e!==!1&&e!==null&&e!==""},Gm=function(e,t){var r={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(n){return r[n]=e[n]}),r},Js=function(e,t){var r=t.displayName,n=r===void 0?mV:r;if(typeof e=="string")return ow(e);if(typeof e=="number")return pV(e);if(!Er.isValidElement(e))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(qo(e),"`"));var i=n(e),o=Gm(e.props,Hm);e.ref!==null&&(o.ref=e.ref);var a=e.key;typeof a=="string"&&a.search(/^\./)&&(o.key=a);var s=Gm(e.type.defaultProps||{},Hm),p=Er.Children.toArray(e.props.children).filter(yV).map(function(l){return Js(l,t)});return hV&&e.type===tr.Fragment?fV(a,p):dV(i,o,s,p)};function gV(){}var bV=function(e){return e.toString().split(`
|
|
1032
|
-
`).map(function(t){return t.trim()}).join("")},zm=bV,sw=function(e,t){var r=t.functionValue,n=r===void 0?zm:r,i=t.showFunctions;return n(!i&&n===zm?gV:e)},EV=function(e,t,r,n){var i=cV(e),o=(0,eV.prettyPrint)(i,{transform:function(a,s,p){var l=a[s];return l&&tr.isValidElement(l)?Hs(Js(l,n),!0,r,n):typeof l=="function"?sw(l,n):p}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,Zr(1,n.tabStop)).replace(/\n([^$])/g,`
|
|
1033
|
-
`.concat(Zr(r+1,n.tabStop),"$1"))},vV=function(e){return e.replace(/"/g,""")},AV=function(e,t,r,n){if(typeof e=="number")return"{".concat(String(e),"}");if(typeof e=="string")return'"'.concat(vV(e),'"');if(qo(e)==="symbol"){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return i?"{Symbol('".concat(i,"')}"):"{Symbol()}"}return typeof e=="function"?"{".concat(sw(e,n),"}"):tr.isValidElement(e)?"{".concat(Hs(Js(e,n),!0,r,n),"}"):e instanceof Date?isNaN(e.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(e.toISOString(),'")}'):Z$(e)||Array.isArray(e)?"{".concat(EV(e,t,r,n),"}"):"{".concat(String(e),"}")},_V=function(e,t,r,n,i,o,a,s){if(!t&&!n)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var p=t?r:i,l=s.useBooleanShorthandSyntax,d=s.tabStop,f=AV(p,o,a,s),h=" ",m=`
|
|
1034
|
-
`.concat(Zr(a+1,d)),b=f.includes(`
|
|
1035
|
-
`);return l&&f==="{false}"&&!n?(h="",m=""):l&&f==="{true}"?(h+="".concat(e),m+="".concat(e)):(h+="".concat(e,"=").concat(f),m+="".concat(e,"=").concat(f)),{attributeFormattedInline:h,attributeFormattedMultiline:m,isMultilineAttribute:b}},wV=function(e,t){var r=e.slice(0,e.length>0?e.length-1:0),n=e[e.length-1];return n&&(t.type==="string"||t.type==="number")&&(n.type==="string"||n.type==="number")?r.push(ow(String(n.value)+String(t.value))):(n&&r.push(n),r.push(t)),r},CV=function(e){return["key","ref"].includes(e)},TV=function(e){return function(t){var r=t.includes("key"),n=t.includes("ref"),i=t.filter(function(a){return!CV(a)}),o=aV(e?i.sort():i);return n&&o.unshift("ref"),r&&o.unshift("key"),o}};function SV(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var xV=function(e,t,r,n,i){var o=i.tabStop;return e.type==="string"?t.split(`
|
|
1036
|
-
`).map(function(a,s){return s===0?a:"".concat(Zr(n,o)).concat(a)}).join(`
|
|
1037
|
-
`):t},DV=function(e,t,r){return function(n){return xV(n,Hs(n,e,t,r),e,t,r)}},RV=function(e,t){return function(r){var n=Object.keys(e).includes(r);return!n||n&&e[r]!==t[r]}},uw=function(e,t,r,n,i){return i?Zr(r,n).length+t.length>i:e.length>1},PV=function(e,t,r,n,i,o,a){return(uw(e,t,i,o,a)||r)&&!n},lw=function(e,t,r,n){var i=e.type,o=e.displayName,a=o===void 0?"":o,s=e.childrens,p=e.props,l=p===void 0?{}:p,d=e.defaultProps,f=d===void 0?{}:d;if(i!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));var h=n.filterProps,m=n.maxInlineAttributesLineLength,b=n.showDefaultProps,E=n.sortProps,_=n.tabStop,A="<".concat(a),T=A,k=A,O=!1,R=[],y=SV(l,h);Object.keys(l).filter(y).filter(RV(f,l)).forEach(function(D){return R.push(D)}),Object.keys(f).filter(y).filter(function(){return b}).filter(function(D){return!R.includes(D)}).forEach(function(D){return R.push(D)});var S=TV(E)(R);if(S.forEach(function(D){var J=_V(D,Object.keys(l).includes(D),l[D],Object.keys(f).includes(D),f[D],t,r,n),M=J.attributeFormattedInline,G=J.attributeFormattedMultiline,L=J.isMultilineAttribute;L&&(O=!0),T+=M,k+=G}),k+=`
|
|
1038
|
-
`.concat(Zr(r,_)),PV(S,T,O,t,r,_,m)?A=k:A=T,s&&s.length>0){var C=r+1;A+=">",t||(A+=`
|
|
1039
|
-
`,A+=Zr(C,_)),A+=s.reduce(wV,[]).map(DV(t,C,n)).join(t?"":`
|
|
1040
|
-
`.concat(Zr(C,_))),t||(A+=`
|
|
1041
|
-
`,A+=Zr(C-1,_)),A+="</".concat(a,">")}else uw(S,T,r,_,m)||(A+=" "),A+="/>";return A},OV="",Wm="React.Fragment",FV=function(e,t,r){var n={};return t&&(n={key:t}),{type:"ReactElement",displayName:e,props:n,defaultProps:{},childrens:r}},IV=function(e){var t=e.key;return!!t},NV=function(e){var t=e.childrens;return t.length===0},BV=function(e,t,r,n){var i=e.type,o=e.key,a=e.childrens;if(i!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));var s=n.useFragmentShortSyntax,p;return s?NV(e)||IV(e)?p=Wm:p=OV:p=Wm,lw(FV(p,o,a),t,r,n)},kV=["<",">","{","}"],MV=function(e){return kV.some(function(t){return e.includes(t)})},jV=function(e){return MV(e)?"{`".concat(e,"`}"):e},qV=function(e){var t=e;return t.endsWith(" ")&&(t=t.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),t.startsWith(" ")&&(t=t.replace(/^(\s+)(.*)$/,"{'$1'}$2")),t},Hs=function(e,t,r,n){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(qV(jV(String(e.value)))):"";if(e.type==="ReactElement")return lw(e,t,r,n);if(e.type==="ReactFragment")return BV(e,t,r,n);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},LV=function(e,t){return Hs(e,!1,0,t)},cw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.filterProps,n=r===void 0?[]:r,i=t.showDefaultProps,o=i===void 0?!0:i,a=t.showFunctions,s=a===void 0?!1:a,p=t.functionValue,l=t.tabStop,d=l===void 0?2:l,f=t.useBooleanShorthandSyntax,h=f===void 0?!0:f,m=t.useFragmentShortSyntax,b=m===void 0?!0:m,E=t.sortProps,_=E===void 0?!0:E,A=t.maxInlineAttributesLineLength,T=t.displayName;if(!e)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var k={filterProps:n,showDefaultProps:o,showFunctions:s,functionValue:p,tabStop:d,useBooleanShorthandSyntax:h,useFragmentShortSyntax:b,sortProps:_,maxInlineAttributesLineLength:A,displayName:T};return LV(Js(e,k),k)},$V=mt({"../../node_modules/estraverse/estraverse.js"(e){(function t(r){var n,i,o,a,s,p;function l(R){var y={},S,C;for(S in R)R.hasOwnProperty(S)&&(C=R[S],typeof C=="object"&&C!==null?y[S]=l(C):y[S]=C);return y}function d(R,y){var S,C,D,J;for(C=R.length,D=0;C;)S=C>>>1,J=D+S,y(R[J])?C=S:(D=J+1,C-=S+1);return D}n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},o={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},a={},s={},p={},i={Break:a,Skip:s,Remove:p};function f(R,y){this.parent=R,this.key=y}f.prototype.replace=function(R){this.parent[this.key]=R},f.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function h(R,y,S,C){this.node=R,this.path=y,this.wrap=S,this.ref=C}function m(){}m.prototype.path=function(){var R,y,S,C,D,J;function M(G,L){if(Array.isArray(L))for(S=0,C=L.length;S<C;++S)G.push(L[S]);else G.push(L)}if(!this.__current.path)return null;for(D=[],R=2,y=this.__leavelist.length;R<y;++R)J=this.__leavelist[R],M(D,J.path);return M(D,this.__current.path),D},m.prototype.type=function(){var R=this.current();return R.type||this.__current.wrap},m.prototype.parents=function(){var R,y,S;for(S=[],R=1,y=this.__leavelist.length;R<y;++R)S.push(this.__leavelist[R].node);return S},m.prototype.current=function(){return this.__current.node},m.prototype.__execute=function(R,y){var S,C;return C=void 0,S=this.__current,this.__current=y,this.__state=null,R&&(C=R.call(this,y.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=S,C},m.prototype.notify=function(R){this.__state=R},m.prototype.skip=function(){this.notify(s)},m.prototype.break=function(){this.notify(a)},m.prototype.remove=function(){this.notify(p)},m.prototype.__initialize=function(R,y){this.visitor=y,this.root=R,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,y.fallback==="iteration"?this.__fallback=Object.keys:typeof y.fallback=="function"&&(this.__fallback=y.fallback),this.__keys=o,y.keys&&(this.__keys=Object.assign(Object.create(this.__keys),y.keys))};function b(R){return R==null?!1:typeof R=="object"&&typeof R.type=="string"}function E(R,y){return(R===n.ObjectExpression||R===n.ObjectPattern)&&y==="properties"}function _(R,y){for(var S=R.length-1;S>=0;--S)if(R[S].node===y)return!0;return!1}m.prototype.traverse=function(R,y){var S,C,D,J,M,G,L,N,U,W,K,ne;for(this.__initialize(R,y),ne={},S=this.__worklist,C=this.__leavelist,S.push(new h(R,null,null,null)),C.push(new h(null,null,null,null));S.length;){if(D=S.pop(),D===ne){if(D=C.pop(),G=this.__execute(y.leave,D),this.__state===a||G===a)return;continue}if(D.node){if(G=this.__execute(y.enter,D),this.__state===a||G===a)return;if(S.push(ne),C.push(D),this.__state===s||G===s)continue;if(J=D.node,M=J.type||D.wrap,W=this.__keys[M],!W)if(this.__fallback)W=this.__fallback(J);else throw new Error("Unknown node type "+M+".");for(N=W.length;(N-=1)>=0;)if(L=W[N],K=J[L],!!K){if(Array.isArray(K)){for(U=K.length;(U-=1)>=0;)if(K[U]&&!_(C,K[U])){if(E(M,W[N]))D=new h(K[U],[L,U],"Property",null);else if(b(K[U]))D=new h(K[U],[L,U],null,null);else continue;S.push(D)}}else if(b(K)){if(_(C,K))continue;S.push(new h(K,L,null,null))}}}}},m.prototype.replace=function(R,y){var S,C,D,J,M,G,L,N,U,W,K,ne,be;function xe(we){var ue,He,Ve,Ce;if(we.ref.remove()){for(He=we.ref.key,Ce=we.ref.parent,ue=S.length;ue--;)if(Ve=S[ue],Ve.ref&&Ve.ref.parent===Ce){if(Ve.ref.key<He)break;--Ve.ref.key}}}for(this.__initialize(R,y),K={},S=this.__worklist,C=this.__leavelist,ne={root:R},G=new h(R,null,null,new f(ne,"root")),S.push(G),C.push(G);S.length;){if(G=S.pop(),G===K){if(G=C.pop(),M=this.__execute(y.leave,G),M!==void 0&&M!==a&&M!==s&&M!==p&&G.ref.replace(M),(this.__state===p||M===p)&&xe(G),this.__state===a||M===a)return ne.root;continue}if(M=this.__execute(y.enter,G),M!==void 0&&M!==a&&M!==s&&M!==p&&(G.ref.replace(M),G.node=M),(this.__state===p||M===p)&&(xe(G),G.node=null),this.__state===a||M===a)return ne.root;if(D=G.node,!!D&&(S.push(K),C.push(G),!(this.__state===s||M===s))){if(J=D.type||G.wrap,U=this.__keys[J],!U)if(this.__fallback)U=this.__fallback(D);else throw new Error("Unknown node type "+J+".");for(L=U.length;(L-=1)>=0;)if(be=U[L],W=D[be],!!W)if(Array.isArray(W)){for(N=W.length;(N-=1)>=0;)if(W[N]){if(E(J,U[L]))G=new h(W[N],[be,N],"Property",new f(W,N));else if(b(W[N]))G=new h(W[N],[be,N],null,new f(W,N));else continue;S.push(G)}}else b(W)&&S.push(new h(W,be,null,new f(D,be)))}}return ne.root};function A(R,y){var S=new m;return S.traverse(R,y)}function T(R,y){var S=new m;return S.replace(R,y)}function k(R,y){var S;return S=d(y,function(C){return C.range[0]>R.range[0]}),R.extendedRange=[R.range[0],R.range[1]],S!==y.length&&(R.extendedRange[1]=y[S].range[0]),S-=1,S>=0&&(R.extendedRange[0]=y[S].range[1]),R}function O(R,y,S){var C=[],D,J,M,G;if(!R.range)throw new Error("attachComments needs range information");if(!S.length){if(y.length){for(M=0,J=y.length;M<J;M+=1)D=l(y[M]),D.extendedRange=[0,R.range[0]],C.push(D);R.leadingComments=C}return R}for(M=0,J=y.length;M<J;M+=1)C.push(k(l(y[M]),S));return G=0,A(R,{enter:function(L){for(var N;G<C.length&&(N=C[G],!(N.extendedRange[1]>L.range[0]));)N.extendedRange[1]===L.range[0]?(L.leadingComments||(L.leadingComments=[]),L.leadingComments.push(N),C.splice(G,1)):G+=1;if(G===C.length)return i.Break;if(C[G].extendedRange[0]>L.range[1])return i.Skip}}),G=0,A(R,{leave:function(L){for(var N;G<C.length&&(N=C[G],!(L.range[1]<N.extendedRange[0]));)L.range[1]===N.extendedRange[0]?(L.trailingComments||(L.trailingComments=[]),L.trailingComments.push(N),C.splice(G,1)):G+=1;if(G===C.length)return i.Break;if(C[G].extendedRange[0]>L.range[1])return i.Skip}}),R}return r.Syntax=n,r.traverse=A,r.replace=T,r.attachComments=O,r.VisitorKeys=o,r.VisitorOption=i,r.Controller=m,r.cloneEnvironment=function(){return t({})},r})(e)}}),VV=mt({"../../node_modules/esutils/lib/ast.js"(e,t){(function(){function r(p){if(p==null)return!1;switch(p.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function n(p){if(p==null)return!1;switch(p.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function i(p){if(p==null)return!1;switch(p.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function o(p){return i(p)||p!=null&&p.type==="FunctionDeclaration"}function a(p){switch(p.type){case"IfStatement":return p.alternate!=null?p.alternate:p.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return p.body}return null}function s(p){var l;if(p.type!=="IfStatement"||p.alternate==null)return!1;l=p.consequent;do{if(l.type==="IfStatement"&&l.alternate==null)return!0;l=a(l)}while(l);return!1}t.exports={isExpression:r,isStatement:i,isIterationStatement:n,isSourceElement:o,isProblematicIfStatement:s,trailingStatement:a}})()}}),pw=mt({"../../node_modules/esutils/lib/code.js"(e,t){(function(){var r,n,i,o,a,s;n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function p(T){return 48<=T&&T<=57}function l(T){return 48<=T&&T<=57||97<=T&&T<=102||65<=T&&T<=70}function d(T){return T>=48&&T<=55}i=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function f(T){return T===32||T===9||T===11||T===12||T===160||T>=5760&&i.indexOf(T)>=0}function h(T){return T===10||T===13||T===8232||T===8233}function m(T){if(T<=65535)return String.fromCharCode(T);var k=String.fromCharCode(Math.floor((T-65536)/1024)+55296),O=String.fromCharCode((T-65536)%1024+56320);return k+O}for(o=new Array(128),s=0;s<128;++s)o[s]=s>=97&&s<=122||s>=65&&s<=90||s===36||s===95;for(a=new Array(128),s=0;s<128;++s)a[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===36||s===95;function b(T){return T<128?o[T]:n.NonAsciiIdentifierStart.test(m(T))}function E(T){return T<128?a[T]:n.NonAsciiIdentifierPart.test(m(T))}function _(T){return T<128?o[T]:r.NonAsciiIdentifierStart.test(m(T))}function A(T){return T<128?a[T]:r.NonAsciiIdentifierPart.test(m(T))}t.exports={isDecimalDigit:p,isHexDigit:l,isOctalDigit:d,isWhiteSpace:f,isLineTerminator:h,isIdentifierStartES5:b,isIdentifierPartES5:E,isIdentifierStartES6:_,isIdentifierPartES6:A}})()}}),UV=mt({"../../node_modules/esutils/lib/keyword.js"(e,t){(function(){var r=pw();function n(b){switch(b){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function i(b,E){return!E&&b==="yield"?!1:o(b,E)}function o(b,E){if(E&&n(b))return!0;switch(b.length){case 2:return b==="if"||b==="in"||b==="do";case 3:return b==="var"||b==="for"||b==="new"||b==="try";case 4:return b==="this"||b==="else"||b==="case"||b==="void"||b==="with"||b==="enum";case 5:return b==="while"||b==="break"||b==="catch"||b==="throw"||b==="const"||b==="yield"||b==="class"||b==="super";case 6:return b==="return"||b==="typeof"||b==="delete"||b==="switch"||b==="export"||b==="import";case 7:return b==="default"||b==="finally"||b==="extends";case 8:return b==="function"||b==="continue"||b==="debugger";case 10:return b==="instanceof";default:return!1}}function a(b,E){return b==="null"||b==="true"||b==="false"||i(b,E)}function s(b,E){return b==="null"||b==="true"||b==="false"||o(b,E)}function p(b){return b==="eval"||b==="arguments"}function l(b){var E,_,A;if(b.length===0||(A=b.charCodeAt(0),!r.isIdentifierStartES5(A)))return!1;for(E=1,_=b.length;E<_;++E)if(A=b.charCodeAt(E),!r.isIdentifierPartES5(A))return!1;return!0}function d(b,E){return(b-55296)*1024+(E-56320)+65536}function f(b){var E,_,A,T,k;if(b.length===0)return!1;for(k=r.isIdentifierStartES6,E=0,_=b.length;E<_;++E){if(A=b.charCodeAt(E),55296<=A&&A<=56319){if(++E,E>=_||(T=b.charCodeAt(E),!(56320<=T&&T<=57343)))return!1;A=d(A,T)}if(!k(A))return!1;k=r.isIdentifierPartES6}return!0}function h(b,E){return l(b)&&!a(b,E)}function m(b,E){return f(b)&&!s(b,E)}t.exports={isKeywordES5:i,isKeywordES6:o,isReservedWordES5:a,isReservedWordES6:s,isRestrictedWord:p,isIdentifierNameES5:l,isIdentifierNameES6:f,isIdentifierES5:h,isIdentifierES6:m}})()}}),JV=mt({"../../node_modules/esutils/lib/utils.js"(e){(function(){e.ast=VV(),e.code=pw(),e.keyword=UV()})()}}),HV=mt({"../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(r){if(0<=r&&r<t.length)return t[r];throw new TypeError("Must be between 0 and 63: "+r)},e.decode=function(r){var n=65,i=90,o=97,a=122,s=48,p=57,l=43,d=47,f=26,h=52;return n<=r&&r<=i?r-n:o<=r&&r<=a?r-o+f:s<=r&&r<=p?r-s+h:r==l?62:r==d?63:-1}}}),dw=mt({"../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(e){var t=HV(),r=5,n=1<<r,i=n-1,o=n;function a(p){return p<0?(-p<<1)+1:(p<<1)+0}function s(p){var l=(p&1)===1,d=p>>1;return l?-d:d}e.encode=function(p){var l="",d,f=a(p);do d=f&i,f>>>=r,f>0&&(d|=o),l+=t.encode(d);while(f>0);return l},e.decode=function(p,l,d){var f=p.length,h=0,m=0,b,E;do{if(l>=f)throw new Error("Expected more digits in base 64 VLQ value.");if(E=t.decode(p.charCodeAt(l++)),E===-1)throw new Error("Invalid base64 digit: "+p.charAt(l-1));b=!!(E&o),E&=i,h=h+(E<<m),m+=r}while(b);d.value=s(h),d.rest=l}}}),ta=mt({"../../node_modules/escodegen/node_modules/source-map/lib/util.js"(e){function t(O,R,y){if(R in O)return O[R];if(arguments.length===3)return y;throw new Error('"'+R+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(O){var R=O.match(r);return R?{scheme:R[1],auth:R[2],host:R[3],port:R[4],path:R[5]}:null}e.urlParse=i;function o(O){var R="";return O.scheme&&(R+=O.scheme+":"),R+="//",O.auth&&(R+=O.auth+"@"),O.host&&(R+=O.host),O.port&&(R+=":"+O.port),O.path&&(R+=O.path),R}e.urlGenerate=o;function a(O){var R=O,y=i(O);if(y){if(!y.path)return O;R=y.path}for(var S=e.isAbsolute(R),C=R.split(/\/+/),D,J=0,M=C.length-1;M>=0;M--)D=C[M],D==="."?C.splice(M,1):D===".."?J++:J>0&&(D===""?(C.splice(M+1,J),J=0):(C.splice(M,2),J--));return R=C.join("/"),R===""&&(R=S?"/":"."),y?(y.path=R,o(y)):R}e.normalize=a;function s(O,R){O===""&&(O="."),R===""&&(R=".");var y=i(R),S=i(O);if(S&&(O=S.path||"/"),y&&!y.scheme)return S&&(y.scheme=S.scheme),o(y);if(y||R.match(n))return R;if(S&&!S.host&&!S.path)return S.host=R,o(S);var C=R.charAt(0)==="/"?R:a(O.replace(/\/+$/,"")+"/"+R);return S?(S.path=C,o(S)):C}e.join=s,e.isAbsolute=function(O){return O.charAt(0)==="/"||r.test(O)};function p(O,R){O===""&&(O="."),O=O.replace(/\/$/,"");for(var y=0;R.indexOf(O+"/")!==0;){var S=O.lastIndexOf("/");if(S<0||(O=O.slice(0,S),O.match(/^([^\/]+:\/)?\/*$/)))return R;++y}return Array(y+1).join("../")+R.substr(O.length+1)}e.relative=p;var l=function(){var O=Object.create(null);return!("__proto__"in O)}();function d(O){return O}function f(O){return m(O)?"$"+O:O}e.toSetString=l?d:f;function h(O){return m(O)?O.slice(1):O}e.fromSetString=l?d:h;function m(O){if(!O)return!1;var R=O.length;if(R<9||O.charCodeAt(R-1)!==95||O.charCodeAt(R-2)!==95||O.charCodeAt(R-3)!==111||O.charCodeAt(R-4)!==116||O.charCodeAt(R-5)!==111||O.charCodeAt(R-6)!==114||O.charCodeAt(R-7)!==112||O.charCodeAt(R-8)!==95||O.charCodeAt(R-9)!==95)return!1;for(var y=R-10;y>=0;y--)if(O.charCodeAt(y)!==36)return!1;return!0}function b(O,R,y){var S=_(O.source,R.source);return S!==0||(S=O.originalLine-R.originalLine,S!==0)||(S=O.originalColumn-R.originalColumn,S!==0||y)||(S=O.generatedColumn-R.generatedColumn,S!==0)||(S=O.generatedLine-R.generatedLine,S!==0)?S:_(O.name,R.name)}e.compareByOriginalPositions=b;function E(O,R,y){var S=O.generatedLine-R.generatedLine;return S!==0||(S=O.generatedColumn-R.generatedColumn,S!==0||y)||(S=_(O.source,R.source),S!==0)||(S=O.originalLine-R.originalLine,S!==0)||(S=O.originalColumn-R.originalColumn,S!==0)?S:_(O.name,R.name)}e.compareByGeneratedPositionsDeflated=E;function _(O,R){return O===R?0:O===null?1:R===null?-1:O>R?1:-1}function A(O,R){var y=O.generatedLine-R.generatedLine;return y!==0||(y=O.generatedColumn-R.generatedColumn,y!==0)||(y=_(O.source,R.source),y!==0)||(y=O.originalLine-R.originalLine,y!==0)||(y=O.originalColumn-R.originalColumn,y!==0)?y:_(O.name,R.name)}e.compareByGeneratedPositionsInflated=A;function T(O){return JSON.parse(O.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=T;function k(O,R,y){if(R=R||"",O&&(O[O.length-1]!=="/"&&R[0]!=="/"&&(O+="/"),R=O+R),y){var S=i(y);if(!S)throw new Error("sourceMapURL could not be parsed");if(S.path){var C=S.path.lastIndexOf("/");C>=0&&(S.path=S.path.substring(0,C+1))}R=s(o(S),R)}return a(R)}e.computeSourceURL=k}}),fw=mt({"../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(e){var t=ta(),r=Object.prototype.hasOwnProperty,n=typeof Map<"u";function i(){this._array=[],this._set=n?new Map:Object.create(null)}i.fromArray=function(o,a){for(var s=new i,p=0,l=o.length;p<l;p++)s.add(o[p],a);return s},i.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(o,a){var s=n?o:t.toSetString(o),p=n?this.has(o):r.call(this._set,s),l=this._array.length;(!p||a)&&this._array.push(o),p||(n?this._set.set(o,l):this._set[s]=l)},i.prototype.has=function(o){if(n)return this._set.has(o);var a=t.toSetString(o);return r.call(this._set,a)},i.prototype.indexOf=function(o){if(n){var a=this._set.get(o);if(a>=0)return a}else{var s=t.toSetString(o);if(r.call(this._set,s))return this._set[s]}throw new Error('"'+o+'" is not in the set.')},i.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i}}),GV=mt({"../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(e){var t=ta();function r(i,o){var a=i.generatedLine,s=o.generatedLine,p=i.generatedColumn,l=o.generatedColumn;return s>a||s==a&&l>=p||t.compareByGeneratedPositionsInflated(i,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(i,o){this._array.forEach(i,o)},n.prototype.add=function(i){r(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=!1,this._array.push(i))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n}}),hw=mt({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(e){var t=dw(),r=ta(),n=fw().ArraySet,i=GV().MappingList;function o(a){a||(a={}),this._file=r.getArg(a,"file",null),this._sourceRoot=r.getArg(a,"sourceRoot",null),this._skipValidation=r.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new i,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(a){var s=a.sourceRoot,p=new o({file:a.file,sourceRoot:s});return a.eachMapping(function(l){var d={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(d.source=l.source,s!=null&&(d.source=r.relative(s,d.source)),d.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(d.name=l.name)),p.addMapping(d)}),a.sources.forEach(function(l){var d=l;s!==null&&(d=r.relative(s,l)),p._sources.has(d)||p._sources.add(d);var f=a.sourceContentFor(l);f!=null&&p.setSourceContent(l,f)}),p},o.prototype.addMapping=function(a){var s=r.getArg(a,"generated"),p=r.getArg(a,"original",null),l=r.getArg(a,"source",null),d=r.getArg(a,"name",null);this._skipValidation||this._validateMapping(s,p,l,d),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:s.line,generatedColumn:s.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:l,name:d})},o.prototype.setSourceContent=function(a,s){var p=a;this._sourceRoot!=null&&(p=r.relative(this._sourceRoot,p)),s!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(p)]=s):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(a,s,p){var l=s;if(s==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=a.file}var d=this._sourceRoot;d!=null&&(l=r.relative(d,l));var f=new n,h=new n;this._mappings.unsortedForEach(function(m){if(m.source===l&&m.originalLine!=null){var b=a.originalPositionFor({line:m.originalLine,column:m.originalColumn});b.source!=null&&(m.source=b.source,p!=null&&(m.source=r.join(p,m.source)),d!=null&&(m.source=r.relative(d,m.source)),m.originalLine=b.line,m.originalColumn=b.column,b.name!=null&&(m.name=b.name))}var E=m.source;E!=null&&!f.has(E)&&f.add(E);var _=m.name;_!=null&&!h.has(_)&&h.add(_)},this),this._sources=f,this._names=h,a.sources.forEach(function(m){var b=a.sourceContentFor(m);b!=null&&(p!=null&&(m=r.join(p,m)),d!=null&&(m=r.relative(d,m)),this.setSourceContent(m,b))},this)},o.prototype._validateMapping=function(a,s,p,l){if(s&&typeof s.line!="number"&&typeof s.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!s&&!p&&!l)){if(a&&"line"in a&&"column"in a&&s&&"line"in s&&"column"in s&&a.line>0&&a.column>=0&&s.line>0&&s.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:p,original:s,name:l}))}},o.prototype._serializeMappings=function(){for(var a=0,s=1,p=0,l=0,d=0,f=0,h="",m,b,E,_,A=this._mappings.toArray(),T=0,k=A.length;T<k;T++){if(b=A[T],m="",b.generatedLine!==s)for(a=0;b.generatedLine!==s;)m+=";",s++;else if(T>0){if(!r.compareByGeneratedPositionsInflated(b,A[T-1]))continue;m+=","}m+=t.encode(b.generatedColumn-a),a=b.generatedColumn,b.source!=null&&(_=this._sources.indexOf(b.source),m+=t.encode(_-f),f=_,m+=t.encode(b.originalLine-1-l),l=b.originalLine-1,m+=t.encode(b.originalColumn-p),p=b.originalColumn,b.name!=null&&(E=this._names.indexOf(b.name),m+=t.encode(E-d),d=E)),h+=m}return h},o.prototype._generateSourcesContent=function(a,s){return a.map(function(p){if(!this._sourcesContents)return null;s!=null&&(p=r.relative(s,p));var l=r.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)},o.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=o}}),zV=mt({"../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,i,o,a,s){var p=Math.floor((n-r)/2)+r,l=a(i,o[p],!0);return l===0?p:l>0?n-p>1?t(p,n,i,o,a,s):s==e.LEAST_UPPER_BOUND?n<o.length?n:-1:p:p-r>1?t(r,p,i,o,a,s):s==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(r,n,i,o){if(n.length===0)return-1;var a=t(-1,n.length,r,n,i,o||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&i(n[a],n[a-1],!0)===0;)--a;return a}}}),WV=mt({"../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(e){function t(i,o,a){var s=i[o];i[o]=i[a],i[a]=s}function r(i,o){return Math.round(i+Math.random()*(o-i))}function n(i,o,a,s){if(a<s){var p=r(a,s),l=a-1;t(i,p,s);for(var d=i[s],f=a;f<s;f++)o(i[f],d)<=0&&(l+=1,t(i,l,f));t(i,l+1,f);var h=l+1;n(i,o,a,h-1),n(i,o,h+1,s)}}e.quickSort=function(i,o){n(i,o,0,i.length-1)}}}),KV=mt({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(e){var t=ta(),r=zV(),n=fw().ArraySet,i=dw(),o=WV().quickSort;function a(d,f){var h=d;return typeof d=="string"&&(h=t.parseSourceMapInput(d)),h.sections!=null?new l(h,f):new s(h,f)}a.fromSourceMap=function(d,f){return s.fromSourceMap(d,f)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(d,f){var h=d.charAt(f);return h===";"||h===","},a.prototype._parseMappings=function(d,f){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(d,f,h){var m=f||null,b=h||a.GENERATED_ORDER,E;switch(b){case a.GENERATED_ORDER:E=this._generatedMappings;break;case a.ORIGINAL_ORDER:E=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;E.map(function(A){var T=A.source===null?null:this._sources.at(A.source);return T=t.computeSourceURL(_,T,this._sourceMapURL),{source:T,generatedLine:A.generatedLine,generatedColumn:A.generatedColumn,originalLine:A.originalLine,originalColumn:A.originalColumn,name:A.name===null?null:this._names.at(A.name)}},this).forEach(d,m)},a.prototype.allGeneratedPositionsFor=function(d){var f=t.getArg(d,"line"),h={source:t.getArg(d,"source"),originalLine:f,originalColumn:t.getArg(d,"column",0)};if(h.source=this._findSourceIndex(h.source),h.source<0)return[];var m=[],b=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(b>=0){var E=this._originalMappings[b];if(d.column===void 0)for(var _=E.originalLine;E&&E.originalLine===_;)m.push({line:t.getArg(E,"generatedLine",null),column:t.getArg(E,"generatedColumn",null),lastColumn:t.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++b];else for(var A=E.originalColumn;E&&E.originalLine===f&&E.originalColumn==A;)m.push({line:t.getArg(E,"generatedLine",null),column:t.getArg(E,"generatedColumn",null),lastColumn:t.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++b]}return m},e.SourceMapConsumer=a;function s(d,f){var h=d;typeof d=="string"&&(h=t.parseSourceMapInput(d));var m=t.getArg(h,"version"),b=t.getArg(h,"sources"),E=t.getArg(h,"names",[]),_=t.getArg(h,"sourceRoot",null),A=t.getArg(h,"sourcesContent",null),T=t.getArg(h,"mappings"),k=t.getArg(h,"file",null);if(m!=this._version)throw new Error("Unsupported version: "+m);_&&(_=t.normalize(_)),b=b.map(String).map(t.normalize).map(function(O){return _&&t.isAbsolute(_)&&t.isAbsolute(O)?t.relative(_,O):O}),this._names=n.fromArray(E.map(String),!0),this._sources=n.fromArray(b,!0),this._absoluteSources=this._sources.toArray().map(function(O){return t.computeSourceURL(_,O,f)}),this.sourceRoot=_,this.sourcesContent=A,this._mappings=T,this._sourceMapURL=f,this.file=k}s.prototype=Object.create(a.prototype),s.prototype.consumer=a,s.prototype._findSourceIndex=function(d){var f=d;if(this.sourceRoot!=null&&(f=t.relative(this.sourceRoot,f)),this._sources.has(f))return this._sources.indexOf(f);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==d)return h;return-1},s.fromSourceMap=function(d,f){var h=Object.create(s.prototype),m=h._names=n.fromArray(d._names.toArray(),!0),b=h._sources=n.fromArray(d._sources.toArray(),!0);h.sourceRoot=d._sourceRoot,h.sourcesContent=d._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=d._file,h._sourceMapURL=f,h._absoluteSources=h._sources.toArray().map(function(y){return t.computeSourceURL(h.sourceRoot,y,f)});for(var E=d._mappings.toArray().slice(),_=h.__generatedMappings=[],A=h.__originalMappings=[],T=0,k=E.length;T<k;T++){var O=E[T],R=new p;R.generatedLine=O.generatedLine,R.generatedColumn=O.generatedColumn,O.source&&(R.source=b.indexOf(O.source),R.originalLine=O.originalLine,R.originalColumn=O.originalColumn,O.name&&(R.name=m.indexOf(O.name)),A.push(R)),_.push(R)}return o(h.__originalMappings,t.compareByOriginalPositions),h},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function p(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(d,f){for(var h=1,m=0,b=0,E=0,_=0,A=0,T=d.length,k=0,O={},R={},y=[],S=[],C,D,J,M,G;k<T;)if(d.charAt(k)===";")h++,k++,m=0;else if(d.charAt(k)===",")k++;else{for(C=new p,C.generatedLine=h,M=k;M<T&&!this._charIsMappingSeparator(d,M);M++);if(D=d.slice(k,M),J=O[D],J)k+=D.length;else{for(J=[];k<M;)i.decode(d,k,R),G=R.value,k=R.rest,J.push(G);if(J.length===2)throw new Error("Found a source, but no line and column");if(J.length===3)throw new Error("Found a source and line, but no column");O[D]=J}C.generatedColumn=m+J[0],m=C.generatedColumn,J.length>1&&(C.source=_+J[1],_+=J[1],C.originalLine=b+J[2],b=C.originalLine,C.originalLine+=1,C.originalColumn=E+J[3],E=C.originalColumn,J.length>4&&(C.name=A+J[4],A+=J[4])),S.push(C),typeof C.originalLine=="number"&&y.push(C)}o(S,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,o(y,t.compareByOriginalPositions),this.__originalMappings=y},s.prototype._findMapping=function(d,f,h,m,b,E){if(d[h]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+d[h]);if(d[m]<0)throw new TypeError("Column must be greater than or equal to 0, got "+d[m]);return r.search(d,f,b,E)},s.prototype.computeColumnSpans=function(){for(var d=0;d<this._generatedMappings.length;++d){var f=this._generatedMappings[d];if(d+1<this._generatedMappings.length){var h=this._generatedMappings[d+1];if(f.generatedLine===h.generatedLine){f.lastGeneratedColumn=h.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(d){var f={generatedLine:t.getArg(d,"line"),generatedColumn:t.getArg(d,"column")},h=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(d,"bias",a.GREATEST_LOWER_BOUND));if(h>=0){var m=this._generatedMappings[h];if(m.generatedLine===f.generatedLine){var b=t.getArg(m,"source",null);b!==null&&(b=this._sources.at(b),b=t.computeSourceURL(this.sourceRoot,b,this._sourceMapURL));var E=t.getArg(m,"name",null);return E!==null&&(E=this._names.at(E)),{source:b,line:t.getArg(m,"originalLine",null),column:t.getArg(m,"originalColumn",null),name:E}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(d){return d==null}):!1},s.prototype.sourceContentFor=function(d,f){if(!this.sourcesContent)return null;var h=this._findSourceIndex(d);if(h>=0)return this.sourcesContent[h];var m=d;this.sourceRoot!=null&&(m=t.relative(this.sourceRoot,m));var b;if(this.sourceRoot!=null&&(b=t.urlParse(this.sourceRoot))){var E=m.replace(/^file:\/\//,"");if(b.scheme=="file"&&this._sources.has(E))return this.sourcesContent[this._sources.indexOf(E)];if((!b.path||b.path=="/")&&this._sources.has("/"+m))return this.sourcesContent[this._sources.indexOf("/"+m)]}if(f)return null;throw new Error('"'+m+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(d){var f=t.getArg(d,"source");if(f=this._findSourceIndex(f),f<0)return{line:null,column:null,lastColumn:null};var h={source:f,originalLine:t.getArg(d,"line"),originalColumn:t.getArg(d,"column")},m=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(d,"bias",a.GREATEST_LOWER_BOUND));if(m>=0){var b=this._originalMappings[m];if(b.source===h.source)return{line:t.getArg(b,"generatedLine",null),column:t.getArg(b,"generatedColumn",null),lastColumn:t.getArg(b,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function l(d,f){var h=d;typeof d=="string"&&(h=t.parseSourceMapInput(d));var m=t.getArg(h,"version"),b=t.getArg(h,"sections");if(m!=this._version)throw new Error("Unsupported version: "+m);this._sources=new n,this._names=new n;var E={line:-1,column:0};this._sections=b.map(function(_){if(_.url)throw new Error("Support for url field in sections not implemented.");var A=t.getArg(_,"offset"),T=t.getArg(A,"line"),k=t.getArg(A,"column");if(T<E.line||T===E.line&&k<E.column)throw new Error("Section offsets must be ordered and non-overlapping.");return E=A,{generatedOffset:{generatedLine:T+1,generatedColumn:k+1},consumer:new a(t.getArg(_,"map"),f)}})}l.prototype=Object.create(a.prototype),l.prototype.constructor=a,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var d=[],f=0;f<this._sections.length;f++)for(var h=0;h<this._sections[f].consumer.sources.length;h++)d.push(this._sections[f].consumer.sources[h]);return d}}),l.prototype.originalPositionFor=function(d){var f={generatedLine:t.getArg(d,"line"),generatedColumn:t.getArg(d,"column")},h=r.search(f,this._sections,function(b,E){var _=b.generatedLine-E.generatedOffset.generatedLine;return _||b.generatedColumn-E.generatedOffset.generatedColumn}),m=this._sections[h];return m?m.consumer.originalPositionFor({line:f.generatedLine-(m.generatedOffset.generatedLine-1),column:f.generatedColumn-(m.generatedOffset.generatedLine===f.generatedLine?m.generatedOffset.generatedColumn-1:0),bias:d.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(d){return d.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(d,f){for(var h=0;h<this._sections.length;h++){var m=this._sections[h],b=m.consumer.sourceContentFor(d,!0);if(b)return b}if(f)return null;throw new Error('"'+d+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(d){for(var f=0;f<this._sections.length;f++){var h=this._sections[f];if(h.consumer._findSourceIndex(t.getArg(d,"source"))!==-1){var m=h.consumer.generatedPositionFor(d);if(m){var b={line:m.line+(h.generatedOffset.generatedLine-1),column:m.column+(h.generatedOffset.generatedLine===m.line?h.generatedOffset.generatedColumn-1:0)};return b}}}return{line:null,column:null}},l.prototype._parseMappings=function(d,f){this.__generatedMappings=[],this.__originalMappings=[];for(var h=0;h<this._sections.length;h++)for(var m=this._sections[h],b=m.consumer._generatedMappings,E=0;E<b.length;E++){var _=b[E],A=m.consumer._sources.at(_.source);A=t.computeSourceURL(m.consumer.sourceRoot,A,this._sourceMapURL),this._sources.add(A),A=this._sources.indexOf(A);var T=null;_.name&&(T=m.consumer._names.at(_.name),this._names.add(T),T=this._names.indexOf(T));var k={source:A,generatedLine:_.generatedLine+(m.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(m.generatedOffset.generatedLine===_.generatedLine?m.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:T};this.__generatedMappings.push(k),typeof k.originalLine=="number"&&this.__originalMappings.push(k)}o(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),o(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=l}}),YV=mt({"../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(e){var t=hw().SourceMapGenerator,r=ta(),n=/(\r?\n)/,i=10,o="$$$isSourceNode$$$";function a(s,p,l,d,f){this.children=[],this.sourceContents={},this.line=s??null,this.column=p??null,this.source=l??null,this.name=f??null,this[o]=!0,d!=null&&this.add(d)}a.fromStringWithSourceMap=function(s,p,l){var d=new a,f=s.split(n),h=0,m=function(){var T=O(),k=O()||"";return T+k;function O(){return h<f.length?f[h++]:void 0}},b=1,E=0,_=null;return p.eachMapping(function(T){if(_!==null)if(b<T.generatedLine)A(_,m()),b++,E=0;else{var k=f[h]||"",O=k.substr(0,T.generatedColumn-E);f[h]=k.substr(T.generatedColumn-E),E=T.generatedColumn,A(_,O),_=T;return}for(;b<T.generatedLine;)d.add(m()),b++;if(E<T.generatedColumn){var k=f[h]||"";d.add(k.substr(0,T.generatedColumn)),f[h]=k.substr(T.generatedColumn),E=T.generatedColumn}_=T},this),h<f.length&&(_&&A(_,m()),d.add(f.splice(h).join(""))),p.sources.forEach(function(T){var k=p.sourceContentFor(T);k!=null&&(l!=null&&(T=r.join(l,T)),d.setSourceContent(T,k))}),d;function A(T,k){if(T===null||T.source===void 0)d.add(k);else{var O=l?r.join(l,T.source):T.source;d.add(new a(T.originalLine,T.originalColumn,O,k,T.name))}}},a.prototype.add=function(s){if(Array.isArray(s))s.forEach(function(p){this.add(p)},this);else if(s[o]||typeof s=="string")s&&this.children.push(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},a.prototype.prepend=function(s){if(Array.isArray(s))for(var p=s.length-1;p>=0;p--)this.prepend(s[p]);else if(s[o]||typeof s=="string")this.children.unshift(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},a.prototype.walk=function(s){for(var p,l=0,d=this.children.length;l<d;l++)p=this.children[l],p[o]?p.walk(s):p!==""&&s(p,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(s){var p,l,d=this.children.length;if(d>0){for(p=[],l=0;l<d-1;l++)p.push(this.children[l]),p.push(s);p.push(this.children[l]),this.children=p}return this},a.prototype.replaceRight=function(s,p){var l=this.children[this.children.length-1];return l[o]?l.replaceRight(s,p):typeof l=="string"?this.children[this.children.length-1]=l.replace(s,p):this.children.push("".replace(s,p)),this},a.prototype.setSourceContent=function(s,p){this.sourceContents[r.toSetString(s)]=p},a.prototype.walkSourceContents=function(s){for(var p=0,l=this.children.length;p<l;p++)this.children[p][o]&&this.children[p].walkSourceContents(s);for(var d=Object.keys(this.sourceContents),p=0,l=d.length;p<l;p++)s(r.fromSetString(d[p]),this.sourceContents[d[p]])},a.prototype.toString=function(){var s="";return this.walk(function(p){s+=p}),s},a.prototype.toStringWithSourceMap=function(s){var p={code:"",line:1,column:0},l=new t(s),d=!1,f=null,h=null,m=null,b=null;return this.walk(function(E,_){p.code+=E,_.source!==null&&_.line!==null&&_.column!==null?((f!==_.source||h!==_.line||m!==_.column||b!==_.name)&&l.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:p.line,column:p.column},name:_.name}),f=_.source,h=_.line,m=_.column,b=_.name,d=!0):d&&(l.addMapping({generated:{line:p.line,column:p.column}}),f=null,d=!1);for(var A=0,T=E.length;A<T;A++)E.charCodeAt(A)===i?(p.line++,p.column=0,A+1===T?(f=null,d=!1):d&&l.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:p.line,column:p.column},name:_.name})):p.column++}),this.walkSourceContents(function(E,_){l.setSourceContent(E,_)}),{code:p.code,map:l}},e.SourceNode=a}}),XV=mt({"../../node_modules/escodegen/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=hw().SourceMapGenerator,e.SourceMapConsumer=KV().SourceMapConsumer,e.SourceNode=YV().SourceNode}}),QV=mt({"../../node_modules/escodegen/package.json"(e,t){t.exports={name:"escodegen",description:"ECMAScript code generator",homepage:"http://github.com/estools/escodegen",main:"escodegen.js",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},files:["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],version:"2.1.0",engines:{node:">=6.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],repository:{type:"git",url:"http://github.com/estools/escodegen.git"},dependencies:{estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},optionalDependencies:{"source-map":"~0.6.1"},devDependencies:{acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},license:"BSD-2-Clause",scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"}}}}),ZV=mt({"../../node_modules/escodegen/escodegen.js"(e){(function(){var t,r,n,i,o,a,s,p,l,d,f,h,m,b,E,_,A,T,k,O,R,y,S,C,D,J;o=$V(),a=JV(),t=o.Syntax;function M(w){return rt.Expression.hasOwnProperty(w.type)}function G(w){return rt.Statement.hasOwnProperty(w.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},n={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var L=1,N=2,U=4,W=8,K=16,ne=32,be=64,xe=N|U,we=L|N,ue=L|N|U,He=L,Ve=U,Ce=L|U,le=L,Ne=L|ne,Be=0,ut=L|K,X=L|W;function pe(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:`
|
|
1042
|
-
`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function ye(w,B){var F="";for(B|=0;B>0;B>>>=1,w+=w)B&1&&(F+=w);return F}function _e(w){return/[\r\n]/g.test(w)}function Ae(w){var B=w.length;return B&&a.code.isLineTerminator(w.charCodeAt(B-1))}function Te(w,B){var F;for(F in B)B.hasOwnProperty(F)&&(w[F]=B[F]);return w}function Se(w,B){var F,P;function $(re){return typeof re=="object"&&re instanceof Object&&!(re instanceof RegExp)}for(F in B)B.hasOwnProperty(F)&&(P=B[F],$(P)?$(w[F])?Se(w[F],P):w[F]=Se({},P):w[F]=P);return w}function ke(w){var B,F,P,$,re;if(w!==w)throw new Error("Numeric literal whose value is NaN");if(w<0||w===0&&1/w<0)throw new Error("Numeric literal whose value is negative");if(w===1/0)return l?"null":d?"1e400":"1e+400";if(B=""+w,!d||B.length<3)return B;for(F=B.indexOf("."),!l&&B.charCodeAt(0)===48&&F===1&&(F=0,B=B.slice(1)),P=B,B=B.replace("e+","e"),$=0,(re=P.indexOf("e"))>0&&($=+P.slice(re+1),P=P.slice(0,re)),F>=0&&($-=P.length-F-1,P=+(P.slice(0,F)+P.slice(F+1))+""),re=0;P.charCodeAt(P.length+re-1)===48;)--re;return re!==0&&($-=re,P=P.slice(0,re)),$!==0&&(P+="e"+$),(P.length<B.length||f&&w>1e12&&Math.floor(w)===w&&(P="0x"+w.toString(16)).length<B.length)&&+P===w&&(B=P),B}function st(w,B){return(w&-2)===8232?(B?"u":"\\u")+(w===8232?"2028":"2029"):w===10||w===13?(B?"":"\\")+(w===10?"n":"r"):String.fromCharCode(w)}function It(w){var B,F,P,$,re,oe,se,ve;if(F=w.toString(),w.source){if(B=F.match(/\/([^/]*)$/),!B)return F;for(P=B[1],F="",se=!1,ve=!1,$=0,re=w.source.length;$<re;++$)oe=w.source.charCodeAt($),ve?(F+=st(oe,ve),ve=!1):(se?oe===93&&(se=!1):oe===47?F+="\\":oe===91&&(se=!0),F+=st(oe,ve),ve=oe===92);return"/"+F+"/"+P}return F}function Le(w,B){var F;return w===8?"\\b":w===12?"\\f":w===9?"\\t":(F=w.toString(16).toUpperCase(),l||w>255?"\\u"+"0000".slice(F.length)+F:w===0&&!a.code.isDecimalDigit(B)?"\\0":w===11?"\\x0B":"\\x"+"00".slice(F.length)+F)}function yt(w){if(w===92)return"\\\\";if(w===10)return"\\n";if(w===13)return"\\r";if(w===8232)return"\\u2028";if(w===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function Ke(w){var B,F,P,$;for($=h==="double"?'"':"'",B=0,F=w.length;B<F;++B)if(P=w.charCodeAt(B),P===39){$='"';break}else if(P===34){$="'";break}else P===92&&++B;return $+w+$}function nr(w){var B="",F,P,$,re=0,oe=0,se,ve;for(F=0,P=w.length;F<P;++F){if($=w.charCodeAt(F),$===39)++re;else if($===34)++oe;else if($===47&&l)B+="\\";else if(a.code.isLineTerminator($)||$===92){B+=yt($);continue}else if(!a.code.isIdentifierPartES5($)&&(l&&$<32||!l&&!m&&($<32||$>126))){B+=Le($,w.charCodeAt(F+1));continue}B+=String.fromCharCode($)}if(se=!(h==="double"||h==="auto"&&oe<re),ve=se?"'":'"',!(se?re:oe))return ve+B+ve;for(w=B,B=ve,F=0,P=w.length;F<P;++F)$=w.charCodeAt(F),($===39&&se||$===34&&!se)&&(B+="\\"),B+=String.fromCharCode($);return B+ve}function Nt(w){var B,F,P,$="";for(B=0,F=w.length;B<F;++B)P=w[B],$+=Array.isArray(P)?Nt(P):P;return $}function fe(w,B){if(!y)return Array.isArray(w)?Nt(w):w;if(B==null){if(w instanceof i)return w;B={}}return B.loc==null?new i(null,null,y,w,B.name||null):new i(B.loc.start.line,B.loc.start.column,y===!0?B.loc.source||null:y,w,B.name||null)}function pt(){return E||" "}function Oe(w,B){var F,P,$,re;return F=fe(w).toString(),F.length===0?[B]:(P=fe(B).toString(),P.length===0?[w]:($=F.charCodeAt(F.length-1),re=P.charCodeAt(0),($===43||$===45)&&$===re||a.code.isIdentifierPartES5($)&&a.code.isIdentifierPartES5(re)||$===47&&re===105?[w,pt(),B]:a.code.isWhiteSpace($)||a.code.isLineTerminator($)||a.code.isWhiteSpace(re)||a.code.isLineTerminator(re)?[w,B]:[w,E,B]))}function At(w){return[s,w]}function et(w){var B;B=s,s+=p,w(s),s=B}function wr(w){var B;for(B=w.length-1;B>=0&&!a.code.isLineTerminator(w.charCodeAt(B));--B);return w.length-1-B}function Or(w,B){var F,P,$,re,oe,se,ve,je;for(F=w.split(/\r\n|[\r\n]/),se=Number.MAX_VALUE,P=1,$=F.length;P<$;++P){for(re=F[P],oe=0;oe<re.length&&a.code.isWhiteSpace(re.charCodeAt(oe));)++oe;se>oe&&(se=oe)}for(typeof B<"u"?(ve=s,F[1][se]==="*"&&(B+=" "),s=B):(se&1&&--se,ve=s),P=1,$=F.length;P<$;++P)je=fe(At(F[P].slice(se))),F[P]=y?je.join(""):je;return s=ve,F.join(`
|
|
1043
|
-
`)}function gt(w,B){if(w.type==="Line"){if(Ae(w.value))return"//"+w.value;var F="//"+w.value;return C||(F+=`
|
|
1044
|
-
`),F}return O.format.indent.adjustMultilineComment&&/[\n\r]/.test(w.value)?Or("/*"+w.value+"*/",B):"/*"+w.value+"*/"}function Fe(w,B){var F,P,$,re,oe,se,ve,je,de,Ft,jt,$r,un,Gt;if(w.leadingComments&&w.leadingComments.length>0){if(re=B,C){for($=w.leadingComments[0],B=[],je=$.extendedRange,de=$.range,jt=S.substring(je[0],de[0]),Gt=(jt.match(/\n/g)||[]).length,Gt>0?(B.push(ye(`
|
|
1045
|
-
`,Gt)),B.push(At(gt($)))):(B.push(jt),B.push(gt($))),Ft=de,F=1,P=w.leadingComments.length;F<P;F++)$=w.leadingComments[F],de=$.range,$r=S.substring(Ft[1],de[0]),Gt=($r.match(/\n/g)||[]).length,B.push(ye(`
|
|
1046
|
-
`,Gt)),B.push(At(gt($))),Ft=de;un=S.substring(de[1],je[1]),Gt=(un.match(/\n/g)||[]).length,B.push(ye(`
|
|
1047
|
-
`,Gt))}else for($=w.leadingComments[0],B=[],T&&w.type===t.Program&&w.body.length===0&&B.push(`
|
|
1048
|
-
`),B.push(gt($)),Ae(fe(B).toString())||B.push(`
|
|
1049
|
-
`),F=1,P=w.leadingComments.length;F<P;++F)$=w.leadingComments[F],ve=[gt($)],Ae(fe(ve).toString())||ve.push(`
|
|
1050
|
-
`),B.push(At(ve));B.push(At(re))}if(w.trailingComments)if(C)$=w.trailingComments[0],je=$.extendedRange,de=$.range,jt=S.substring(je[0],de[0]),Gt=(jt.match(/\n/g)||[]).length,Gt>0?(B.push(ye(`
|
|
1051
|
-
`,Gt)),B.push(At(gt($)))):(B.push(jt),B.push(gt($)));else for(oe=!Ae(fe(B).toString()),se=ye(" ",wr(fe([s,B,p]).toString())),F=0,P=w.trailingComments.length;F<P;++F)$=w.trailingComments[F],oe?(F===0?B=[B,p]:B=[B,se],B.push(gt($,se))):B=[B,At(gt($))],F!==P-1&&!Ae(fe(B).toString())&&(B=[B,`
|
|
1052
|
-
`]);return B}function ir(w,B,F){var P,$=0;for(P=w;P<B;P++)S[P]===`
|
|
1053
|
-
`&&$++;for(P=1;P<$;P++)F.push(b)}function ot(w,B,F){return B<F?["(",w,")"]:w}function Jt(w){var B,F,P;for(P=w.split(/\r\n|\n/),B=1,F=P.length;B<F;B++)P[B]=b+s+P[B];return P}function Lr(w,B){var F,P,$;return F=w[O.verbatim],typeof F=="string"?P=ot(Jt(F),r.Sequence,B):(P=Jt(F.content),$=F.precedence!=null?F.precedence:r.Sequence,P=ot(P,$,B)),fe(P,w)}function rt(){}rt.prototype.maybeBlock=function(w,B){var F,P,$=this;return P=!O.comment||!w.leadingComments,w.type===t.BlockStatement&&P?[E,this.generateStatement(w,B)]:w.type===t.EmptyStatement&&P?";":(et(function(){F=[b,At($.generateStatement(w,B))]}),F)},rt.prototype.maybeBlockSuffix=function(w,B){var F=Ae(fe(B).toString());return w.type===t.BlockStatement&&(!O.comment||!w.leadingComments)&&!F?[B,E]:F?[B,s]:[B,b,s]};function _t(w){return fe(w.name,w)}function or(w,B){return w.async?"async"+(B?pt():E):""}function bt(w){var B=w.generator&&!O.moz.starlessGenerator;return B?"*"+E:""}function nt(w){var B=w.value,F="";return B.async&&(F+=or(B,!w.computed)),B.generator&&(F+=bt(B)?"*":""),F}rt.prototype.generatePattern=function(w,B,F){return w.type===t.Identifier?_t(w):this.generateExpression(w,B,F)},rt.prototype.generateFunctionParams=function(w){var B,F,P,$;if($=!1,w.type===t.ArrowFunctionExpression&&!w.rest&&(!w.defaults||w.defaults.length===0)&&w.params.length===1&&w.params[0].type===t.Identifier)P=[or(w,!0),_t(w.params[0])];else{for(P=w.type===t.ArrowFunctionExpression?[or(w,!1)]:[],P.push("("),w.defaults&&($=!0),B=0,F=w.params.length;B<F;++B)$&&w.defaults[B]?P.push(this.generateAssignment(w.params[B],w.defaults[B],"=",r.Assignment,ue)):P.push(this.generatePattern(w.params[B],r.Assignment,ue)),B+1<F&&P.push(","+E);w.rest&&(w.params.length&&P.push(","+E),P.push("..."),P.push(_t(w.rest))),P.push(")")}return P},rt.prototype.generateFunctionBody=function(w){var B,F;return B=this.generateFunctionParams(w),w.type===t.ArrowFunctionExpression&&(B.push(E),B.push("=>")),w.expression?(B.push(E),F=this.generateExpression(w.body,r.Assignment,ue),F.toString().charAt(0)==="{"&&(F=["(",F,")"]),B.push(F)):B.push(this.maybeBlock(w.body,X)),B},rt.prototype.generateIterationForStatement=function(w,B,F){var P=["for"+(B.await?pt()+"await":"")+E+"("],$=this;return et(function(){B.left.type===t.VariableDeclaration?et(function(){P.push(B.left.kind+pt()),P.push($.generateStatement(B.left.declarations[0],Be))}):P.push($.generateExpression(B.left,r.Call,ue)),P=Oe(P,w),P=[Oe(P,$.generateExpression(B.right,r.Assignment,ue)),")"]}),P.push(this.maybeBlock(B.body,F)),P},rt.prototype.generatePropertyKey=function(w,B){var F=[];return B&&F.push("["),F.push(this.generateExpression(w,r.Assignment,ue)),B&&F.push("]"),F},rt.prototype.generateAssignment=function(w,B,F,P,$){return r.Assignment<P&&($|=L),ot([this.generateExpression(w,r.Call,$),E+F+E,this.generateExpression(B,r.Assignment,$)],r.Assignment,P)},rt.prototype.semicolon=function(w){return!A&&w&ne?"":";"},rt.Statement={BlockStatement:function(w,B){var F,P,$=["{",b],re=this;return et(function(){w.body.length===0&&C&&(F=w.range,F[1]-F[0]>2&&(P=S.substring(F[0]+1,F[1]-1),P[0]===`
|
|
1054
|
-
`&&($=["{"]),$.push(P)));var oe,se,ve,je;for(je=le,B&W&&(je|=K),oe=0,se=w.body.length;oe<se;++oe)C&&(oe===0&&(w.body[0].leadingComments&&(F=w.body[0].leadingComments[0].extendedRange,P=S.substring(F[0],F[1]),P[0]===`
|
|
1055
|
-
`&&($=["{"])),w.body[0].leadingComments||ir(w.range[0],w.body[0].range[0],$)),oe>0&&!w.body[oe-1].trailingComments&&!w.body[oe].leadingComments&&ir(w.body[oe-1].range[1],w.body[oe].range[0],$)),oe===se-1&&(je|=ne),w.body[oe].leadingComments&&C?ve=re.generateStatement(w.body[oe],je):ve=At(re.generateStatement(w.body[oe],je)),$.push(ve),Ae(fe(ve).toString())||C&&oe<se-1&&w.body[oe+1].leadingComments||$.push(b),C&&oe===se-1&&(w.body[oe].trailingComments||ir(w.body[oe].range[1],w.range[1],$))}),$.push(At("}")),$},BreakStatement:function(w,B){return w.label?"break "+w.label.name+this.semicolon(B):"break"+this.semicolon(B)},ContinueStatement:function(w,B){return w.label?"continue "+w.label.name+this.semicolon(B):"continue"+this.semicolon(B)},ClassBody:function(w,B){var F=["{",b],P=this;return et(function($){var re,oe;for(re=0,oe=w.body.length;re<oe;++re)F.push($),F.push(P.generateExpression(w.body[re],r.Sequence,ue)),re+1<oe&&F.push(b)}),Ae(fe(F).toString())||F.push(b),F.push(s),F.push("}"),F},ClassDeclaration:function(w,B){var F,P;return F=["class"],w.id&&(F=Oe(F,this.generateExpression(w.id,r.Sequence,ue))),w.superClass&&(P=Oe("extends",this.generateExpression(w.superClass,r.Unary,ue)),F=Oe(F,P)),F.push(E),F.push(this.generateStatement(w.body,Ne)),F},DirectiveStatement:function(w,B){return O.raw&&w.raw?w.raw+this.semicolon(B):Ke(w.directive)+this.semicolon(B)},DoWhileStatement:function(w,B){var F=Oe("do",this.maybeBlock(w.body,le));return F=this.maybeBlockSuffix(w.body,F),Oe(F,["while"+E+"(",this.generateExpression(w.test,r.Sequence,ue),")"+this.semicolon(B)])},CatchClause:function(w,B){var F,P=this;return et(function(){var $;w.param?(F=["catch"+E+"(",P.generateExpression(w.param,r.Sequence,ue),")"],w.guard&&($=P.generateExpression(w.guard,r.Sequence,ue),F.splice(2,0," if ",$))):F=["catch"]}),F.push(this.maybeBlock(w.body,le)),F},DebuggerStatement:function(w,B){return"debugger"+this.semicolon(B)},EmptyStatement:function(w,B){return";"},ExportDefaultDeclaration:function(w,B){var F=["export"],P;return P=B&ne?Ne:le,F=Oe(F,"default"),G(w.declaration)?F=Oe(F,this.generateStatement(w.declaration,P)):F=Oe(F,this.generateExpression(w.declaration,r.Assignment,ue)+this.semicolon(B)),F},ExportNamedDeclaration:function(w,B){var F=["export"],P,$=this;return P=B&ne?Ne:le,w.declaration?Oe(F,this.generateStatement(w.declaration,P)):(w.specifiers&&(w.specifiers.length===0?F=Oe(F,"{"+E+"}"):w.specifiers[0].type===t.ExportBatchSpecifier?F=Oe(F,this.generateExpression(w.specifiers[0],r.Sequence,ue)):(F=Oe(F,"{"),et(function(re){var oe,se;for(F.push(b),oe=0,se=w.specifiers.length;oe<se;++oe)F.push(re),F.push($.generateExpression(w.specifiers[oe],r.Sequence,ue)),oe+1<se&&F.push(","+b)}),Ae(fe(F).toString())||F.push(b),F.push(s+"}")),w.source?F=Oe(F,["from"+E,this.generateExpression(w.source,r.Sequence,ue),this.semicolon(B)]):F.push(this.semicolon(B))),F)},ExportAllDeclaration:function(w,B){return["export"+E,"*"+E,"from"+E,this.generateExpression(w.source,r.Sequence,ue),this.semicolon(B)]},ExpressionStatement:function(w,B){var F,P;function $(se){var ve;return se.slice(0,5)!=="class"?!1:(ve=se.charCodeAt(5),ve===123||a.code.isWhiteSpace(ve)||a.code.isLineTerminator(ve))}function re(se){var ve;return se.slice(0,8)!=="function"?!1:(ve=se.charCodeAt(8),ve===40||a.code.isWhiteSpace(ve)||ve===42||a.code.isLineTerminator(ve))}function oe(se){var ve,je,de;if(se.slice(0,5)!=="async"||!a.code.isWhiteSpace(se.charCodeAt(5)))return!1;for(je=6,de=se.length;je<de&&a.code.isWhiteSpace(se.charCodeAt(je));++je);return je===de||se.slice(je,je+8)!=="function"?!1:(ve=se.charCodeAt(je+8),ve===40||a.code.isWhiteSpace(ve)||ve===42||a.code.isLineTerminator(ve))}return F=[this.generateExpression(w.expression,r.Sequence,ue)],P=fe(F).toString(),P.charCodeAt(0)===123||$(P)||re(P)||oe(P)||k&&B&K&&w.expression.type===t.Literal&&typeof w.expression.value=="string"?F=["(",F,")"+this.semicolon(B)]:F.push(this.semicolon(B)),F},ImportDeclaration:function(w,B){var F,P,$=this;return w.specifiers.length===0?["import",E,this.generateExpression(w.source,r.Sequence,ue),this.semicolon(B)]:(F=["import"],P=0,w.specifiers[P].type===t.ImportDefaultSpecifier&&(F=Oe(F,[this.generateExpression(w.specifiers[P],r.Sequence,ue)]),++P),w.specifiers[P]&&(P!==0&&F.push(","),w.specifiers[P].type===t.ImportNamespaceSpecifier?F=Oe(F,[E,this.generateExpression(w.specifiers[P],r.Sequence,ue)]):(F.push(E+"{"),w.specifiers.length-P===1?(F.push(E),F.push(this.generateExpression(w.specifiers[P],r.Sequence,ue)),F.push(E+"}"+E)):(et(function(re){var oe,se;for(F.push(b),oe=P,se=w.specifiers.length;oe<se;++oe)F.push(re),F.push($.generateExpression(w.specifiers[oe],r.Sequence,ue)),oe+1<se&&F.push(","+b)}),Ae(fe(F).toString())||F.push(b),F.push(s+"}"+E)))),F=Oe(F,["from"+E,this.generateExpression(w.source,r.Sequence,ue),this.semicolon(B)]),F)},VariableDeclarator:function(w,B){var F=B&L?ue:xe;return w.init?[this.generateExpression(w.id,r.Assignment,F),E,"=",E,this.generateExpression(w.init,r.Assignment,F)]:this.generatePattern(w.id,r.Assignment,F)},VariableDeclaration:function(w,B){var F,P,$,re,oe,se=this;F=[w.kind],oe=B&L?le:Be;function ve(){for(re=w.declarations[0],O.comment&&re.leadingComments?(F.push(`
|
|
1056
|
-
`),F.push(At(se.generateStatement(re,oe)))):(F.push(pt()),F.push(se.generateStatement(re,oe))),P=1,$=w.declarations.length;P<$;++P)re=w.declarations[P],O.comment&&re.leadingComments?(F.push(","+b),F.push(At(se.generateStatement(re,oe)))):(F.push(","+E),F.push(se.generateStatement(re,oe)))}return w.declarations.length>1?et(ve):ve(),F.push(this.semicolon(B)),F},ThrowStatement:function(w,B){return[Oe("throw",this.generateExpression(w.argument,r.Sequence,ue)),this.semicolon(B)]},TryStatement:function(w,B){var F,P,$,re;if(F=["try",this.maybeBlock(w.block,le)],F=this.maybeBlockSuffix(w.block,F),w.handlers)for(P=0,$=w.handlers.length;P<$;++P)F=Oe(F,this.generateStatement(w.handlers[P],le)),(w.finalizer||P+1!==$)&&(F=this.maybeBlockSuffix(w.handlers[P].body,F));else{for(re=w.guardedHandlers||[],P=0,$=re.length;P<$;++P)F=Oe(F,this.generateStatement(re[P],le)),(w.finalizer||P+1!==$)&&(F=this.maybeBlockSuffix(re[P].body,F));if(w.handler)if(Array.isArray(w.handler))for(P=0,$=w.handler.length;P<$;++P)F=Oe(F,this.generateStatement(w.handler[P],le)),(w.finalizer||P+1!==$)&&(F=this.maybeBlockSuffix(w.handler[P].body,F));else F=Oe(F,this.generateStatement(w.handler,le)),w.finalizer&&(F=this.maybeBlockSuffix(w.handler.body,F))}return w.finalizer&&(F=Oe(F,["finally",this.maybeBlock(w.finalizer,le)])),F},SwitchStatement:function(w,B){var F,P,$,re,oe,se=this;if(et(function(){F=["switch"+E+"(",se.generateExpression(w.discriminant,r.Sequence,ue),")"+E+"{"+b]}),w.cases)for(oe=le,$=0,re=w.cases.length;$<re;++$)$===re-1&&(oe|=ne),P=At(this.generateStatement(w.cases[$],oe)),F.push(P),Ae(fe(P).toString())||F.push(b);return F.push(At("}")),F},SwitchCase:function(w,B){var F,P,$,re,oe,se=this;return et(function(){for(w.test?F=[Oe("case",se.generateExpression(w.test,r.Sequence,ue)),":"]:F=["default:"],$=0,re=w.consequent.length,re&&w.consequent[0].type===t.BlockStatement&&(P=se.maybeBlock(w.consequent[0],le),F.push(P),$=1),$!==re&&!Ae(fe(F).toString())&&F.push(b),oe=le;$<re;++$)$===re-1&&B&ne&&(oe|=ne),P=At(se.generateStatement(w.consequent[$],oe)),F.push(P),$+1!==re&&!Ae(fe(P).toString())&&F.push(b)}),F},IfStatement:function(w,B){var F,P,$,re=this;return et(function(){F=["if"+E+"(",re.generateExpression(w.test,r.Sequence,ue),")"]}),$=B&ne,P=le,$&&(P|=ne),w.alternate?(F.push(this.maybeBlock(w.consequent,le)),F=this.maybeBlockSuffix(w.consequent,F),w.alternate.type===t.IfStatement?F=Oe(F,["else ",this.generateStatement(w.alternate,P)]):F=Oe(F,Oe("else",this.maybeBlock(w.alternate,P)))):F.push(this.maybeBlock(w.consequent,P)),F},ForStatement:function(w,B){var F,P=this;return et(function(){F=["for"+E+"("],w.init?w.init.type===t.VariableDeclaration?F.push(P.generateStatement(w.init,Be)):(F.push(P.generateExpression(w.init,r.Sequence,xe)),F.push(";")):F.push(";"),w.test&&(F.push(E),F.push(P.generateExpression(w.test,r.Sequence,ue))),F.push(";"),w.update&&(F.push(E),F.push(P.generateExpression(w.update,r.Sequence,ue))),F.push(")")}),F.push(this.maybeBlock(w.body,B&ne?Ne:le)),F},ForInStatement:function(w,B){return this.generateIterationForStatement("in",w,B&ne?Ne:le)},ForOfStatement:function(w,B){return this.generateIterationForStatement("of",w,B&ne?Ne:le)},LabeledStatement:function(w,B){return[w.label.name+":",this.maybeBlock(w.body,B&ne?Ne:le)]},Program:function(w,B){var F,P,$,re,oe;for(re=w.body.length,F=[T&&re>0?`
|
|
1057
|
-
`:""],oe=ut,$=0;$<re;++$)!T&&$===re-1&&(oe|=ne),C&&($===0&&(w.body[0].leadingComments||ir(w.range[0],w.body[$].range[0],F)),$>0&&!w.body[$-1].trailingComments&&!w.body[$].leadingComments&&ir(w.body[$-1].range[1],w.body[$].range[0],F)),P=At(this.generateStatement(w.body[$],oe)),F.push(P),$+1<re&&!Ae(fe(P).toString())&&(C&&w.body[$+1].leadingComments||F.push(b)),C&&$===re-1&&(w.body[$].trailingComments||ir(w.body[$].range[1],w.range[1],F));return F},FunctionDeclaration:function(w,B){return[or(w,!0),"function",bt(w)||pt(),w.id?_t(w.id):"",this.generateFunctionBody(w)]},ReturnStatement:function(w,B){return w.argument?[Oe("return",this.generateExpression(w.argument,r.Sequence,ue)),this.semicolon(B)]:["return"+this.semicolon(B)]},WhileStatement:function(w,B){var F,P=this;return et(function(){F=["while"+E+"(",P.generateExpression(w.test,r.Sequence,ue),")"]}),F.push(this.maybeBlock(w.body,B&ne?Ne:le)),F},WithStatement:function(w,B){var F,P=this;return et(function(){F=["with"+E+"(",P.generateExpression(w.object,r.Sequence,ue),")"]}),F.push(this.maybeBlock(w.body,B&ne?Ne:le)),F}},Te(rt.prototype,rt.Statement),rt.Expression={SequenceExpression:function(w,B,F){var P,$,re;for(r.Sequence<B&&(F|=L),P=[],$=0,re=w.expressions.length;$<re;++$)P.push(this.generateExpression(w.expressions[$],r.Assignment,F)),$+1<re&&P.push(","+E);return ot(P,r.Sequence,B)},AssignmentExpression:function(w,B,F){return this.generateAssignment(w.left,w.right,w.operator,B,F)},ArrowFunctionExpression:function(w,B,F){return ot(this.generateFunctionBody(w),r.ArrowFunction,B)},ConditionalExpression:function(w,B,F){return r.Conditional<B&&(F|=L),ot([this.generateExpression(w.test,r.Coalesce,F),E+"?"+E,this.generateExpression(w.consequent,r.Assignment,F),E+":"+E,this.generateExpression(w.alternate,r.Assignment,F)],r.Conditional,B)},LogicalExpression:function(w,B,F){return w.operator==="??"&&(F|=be),this.BinaryExpression(w,B,F)},BinaryExpression:function(w,B,F){var P,$,re,oe,se,ve;return oe=n[w.operator],$=w.operator==="**"?r.Postfix:oe,re=w.operator==="**"?oe:oe+1,oe<B&&(F|=L),se=this.generateExpression(w.left,$,F),ve=se.toString(),ve.charCodeAt(ve.length-1)===47&&a.code.isIdentifierPartES5(w.operator.charCodeAt(0))?P=[se,pt(),w.operator]:P=Oe(se,w.operator),se=this.generateExpression(w.right,re,F),w.operator==="/"&&se.toString().charAt(0)==="/"||w.operator.slice(-1)==="<"&&se.toString().slice(0,3)==="!--"?(P.push(pt()),P.push(se)):P=Oe(P,se),w.operator==="in"&&!(F&L)?["(",P,")"]:(w.operator==="||"||w.operator==="&&")&&F&be?["(",P,")"]:ot(P,oe,B)},CallExpression:function(w,B,F){var P,$,re;for(P=[this.generateExpression(w.callee,r.Call,we)],w.optional&&P.push("?."),P.push("("),$=0,re=w.arguments.length;$<re;++$)P.push(this.generateExpression(w.arguments[$],r.Assignment,ue)),$+1<re&&P.push(","+E);return P.push(")"),F&N?ot(P,r.Call,B):["(",P,")"]},ChainExpression:function(w,B,F){r.OptionalChaining<B&&(F|=N);var P=this.generateExpression(w.expression,r.OptionalChaining,F);return ot(P,r.OptionalChaining,B)},NewExpression:function(w,B,F){var P,$,re,oe,se;if($=w.arguments.length,se=F&U&&!_&&$===0?Ce:He,P=Oe("new",this.generateExpression(w.callee,r.New,se)),!(F&U)||_||$>0){for(P.push("("),re=0,oe=$;re<oe;++re)P.push(this.generateExpression(w.arguments[re],r.Assignment,ue)),re+1<oe&&P.push(","+E);P.push(")")}return ot(P,r.New,B)},MemberExpression:function(w,B,F){var P,$;return P=[this.generateExpression(w.object,r.Call,F&N?we:He)],w.computed?(w.optional&&P.push("?."),P.push("["),P.push(this.generateExpression(w.property,r.Sequence,F&N?ue:Ce)),P.push("]")):(!w.optional&&w.object.type===t.Literal&&typeof w.object.value=="number"&&($=fe(P).toString(),$.indexOf(".")<0&&!/[eExX]/.test($)&&a.code.isDecimalDigit($.charCodeAt($.length-1))&&!($.length>=2&&$.charCodeAt(0)===48)&&P.push(" ")),P.push(w.optional?"?.":"."),P.push(_t(w.property))),ot(P,r.Member,B)},MetaProperty:function(w,B,F){var P;return P=[],P.push(typeof w.meta=="string"?w.meta:_t(w.meta)),P.push("."),P.push(typeof w.property=="string"?w.property:_t(w.property)),ot(P,r.Member,B)},UnaryExpression:function(w,B,F){var P,$,re,oe,se;return $=this.generateExpression(w.argument,r.Unary,ue),E===""?P=Oe(w.operator,$):(P=[w.operator],w.operator.length>2?P=Oe(P,$):(oe=fe(P).toString(),se=oe.charCodeAt(oe.length-1),re=$.toString().charCodeAt(0),((se===43||se===45)&&se===re||a.code.isIdentifierPartES5(se)&&a.code.isIdentifierPartES5(re))&&P.push(pt()),P.push($))),ot(P,r.Unary,B)},YieldExpression:function(w,B,F){var P;return w.delegate?P="yield*":P="yield",w.argument&&(P=Oe(P,this.generateExpression(w.argument,r.Yield,ue))),ot(P,r.Yield,B)},AwaitExpression:function(w,B,F){var P=Oe(w.all?"await*":"await",this.generateExpression(w.argument,r.Await,ue));return ot(P,r.Await,B)},UpdateExpression:function(w,B,F){return w.prefix?ot([w.operator,this.generateExpression(w.argument,r.Unary,ue)],r.Unary,B):ot([this.generateExpression(w.argument,r.Postfix,ue),w.operator],r.Postfix,B)},FunctionExpression:function(w,B,F){var P=[or(w,!0),"function"];return w.id?(P.push(bt(w)||pt()),P.push(_t(w.id))):P.push(bt(w)||E),P.push(this.generateFunctionBody(w)),P},ArrayPattern:function(w,B,F){return this.ArrayExpression(w,B,F,!0)},ArrayExpression:function(w,B,F,P){var $,re,oe=this;return w.elements.length?(re=P?!1:w.elements.length>1,$=["[",re?b:""],et(function(se){var ve,je;for(ve=0,je=w.elements.length;ve<je;++ve)w.elements[ve]?($.push(re?se:""),$.push(oe.generateExpression(w.elements[ve],r.Assignment,ue))):(re&&$.push(se),ve+1===je&&$.push(",")),ve+1<je&&$.push(","+(re?b:E))}),re&&!Ae(fe($).toString())&&$.push(b),$.push(re?s:""),$.push("]"),$):"[]"},RestElement:function(w,B,F){return"..."+this.generatePattern(w.argument)},ClassExpression:function(w,B,F){var P,$;return P=["class"],w.id&&(P=Oe(P,this.generateExpression(w.id,r.Sequence,ue))),w.superClass&&($=Oe("extends",this.generateExpression(w.superClass,r.Unary,ue)),P=Oe(P,$)),P.push(E),P.push(this.generateStatement(w.body,Ne)),P},MethodDefinition:function(w,B,F){var P,$;return w.static?P=["static"+E]:P=[],w.kind==="get"||w.kind==="set"?$=[Oe(w.kind,this.generatePropertyKey(w.key,w.computed)),this.generateFunctionBody(w.value)]:$=[nt(w),this.generatePropertyKey(w.key,w.computed),this.generateFunctionBody(w.value)],Oe(P,$)},Property:function(w,B,F){return w.kind==="get"||w.kind==="set"?[w.kind,pt(),this.generatePropertyKey(w.key,w.computed),this.generateFunctionBody(w.value)]:w.shorthand?w.value.type==="AssignmentPattern"?this.AssignmentPattern(w.value,r.Sequence,ue):this.generatePropertyKey(w.key,w.computed):w.method?[nt(w),this.generatePropertyKey(w.key,w.computed),this.generateFunctionBody(w.value)]:[this.generatePropertyKey(w.key,w.computed),":"+E,this.generateExpression(w.value,r.Assignment,ue)]},ObjectExpression:function(w,B,F){var P,$,re,oe=this;return w.properties.length?(P=w.properties.length>1,et(function(){re=oe.generateExpression(w.properties[0],r.Sequence,ue)}),!P&&!_e(fe(re).toString())?["{",E,re,E,"}"]:(et(function(se){var ve,je;if($=["{",b,se,re],P)for($.push(","+b),ve=1,je=w.properties.length;ve<je;++ve)$.push(se),$.push(oe.generateExpression(w.properties[ve],r.Sequence,ue)),ve+1<je&&$.push(","+b)}),Ae(fe($).toString())||$.push(b),$.push(s),$.push("}"),$)):"{}"},AssignmentPattern:function(w,B,F){return this.generateAssignment(w.left,w.right,"=",B,F)},ObjectPattern:function(w,B,F){var P,$,re,oe,se,ve=this;if(!w.properties.length)return"{}";if(oe=!1,w.properties.length===1)se=w.properties[0],se.type===t.Property&&se.value.type!==t.Identifier&&(oe=!0);else for($=0,re=w.properties.length;$<re;++$)if(se=w.properties[$],se.type===t.Property&&!se.shorthand){oe=!0;break}return P=["{",oe?b:""],et(function(je){var de,Ft;for(de=0,Ft=w.properties.length;de<Ft;++de)P.push(oe?je:""),P.push(ve.generateExpression(w.properties[de],r.Sequence,ue)),de+1<Ft&&P.push(","+(oe?b:E))}),oe&&!Ae(fe(P).toString())&&P.push(b),P.push(oe?s:""),P.push("}"),P},ThisExpression:function(w,B,F){return"this"},Super:function(w,B,F){return"super"},Identifier:function(w,B,F){return _t(w)},ImportDefaultSpecifier:function(w,B,F){return _t(w.id||w.local)},ImportNamespaceSpecifier:function(w,B,F){var P=["*"],$=w.id||w.local;return $&&P.push(E+"as"+pt()+_t($)),P},ImportSpecifier:function(w,B,F){var P=w.imported,$=[P.name],re=w.local;return re&&re.name!==P.name&&$.push(pt()+"as"+pt()+_t(re)),$},ExportSpecifier:function(w,B,F){var P=w.local,$=[P.name],re=w.exported;return re&&re.name!==P.name&&$.push(pt()+"as"+pt()+_t(re)),$},Literal:function(w,B,F){var P;if(w.hasOwnProperty("raw")&&R&&O.raw)try{if(P=R(w.raw).body[0].expression,P.type===t.Literal&&P.value===w.value)return w.raw}catch{}return w.regex?"/"+w.regex.pattern+"/"+w.regex.flags:typeof w.value=="bigint"?w.value.toString()+"n":w.bigint?w.bigint+"n":w.value===null?"null":typeof w.value=="string"?nr(w.value):typeof w.value=="number"?ke(w.value):typeof w.value=="boolean"?w.value?"true":"false":It(w.value)},GeneratorExpression:function(w,B,F){return this.ComprehensionExpression(w,B,F)},ComprehensionExpression:function(w,B,F){var P,$,re,oe,se=this;return P=w.type===t.GeneratorExpression?["("]:["["],O.moz.comprehensionExpressionStartsWithAssignment&&(oe=this.generateExpression(w.body,r.Assignment,ue),P.push(oe)),w.blocks&&et(function(){for($=0,re=w.blocks.length;$<re;++$)oe=se.generateExpression(w.blocks[$],r.Sequence,ue),$>0||O.moz.comprehensionExpressionStartsWithAssignment?P=Oe(P,oe):P.push(oe)}),w.filter&&(P=Oe(P,"if"+E),oe=this.generateExpression(w.filter,r.Sequence,ue),P=Oe(P,["(",oe,")"])),O.moz.comprehensionExpressionStartsWithAssignment||(oe=this.generateExpression(w.body,r.Assignment,ue),P=Oe(P,oe)),P.push(w.type===t.GeneratorExpression?")":"]"),P},ComprehensionBlock:function(w,B,F){var P;return w.left.type===t.VariableDeclaration?P=[w.left.kind,pt(),this.generateStatement(w.left.declarations[0],Be)]:P=this.generateExpression(w.left,r.Call,ue),P=Oe(P,w.of?"of":"in"),P=Oe(P,this.generateExpression(w.right,r.Sequence,ue)),["for"+E+"(",P,")"]},SpreadElement:function(w,B,F){return["...",this.generateExpression(w.argument,r.Assignment,ue)]},TaggedTemplateExpression:function(w,B,F){var P=we;F&N||(P=He);var $=[this.generateExpression(w.tag,r.Call,P),this.generateExpression(w.quasi,r.Primary,Ve)];return ot($,r.TaggedTemplate,B)},TemplateElement:function(w,B,F){return w.value.raw},TemplateLiteral:function(w,B,F){var P,$,re;for(P=["`"],$=0,re=w.quasis.length;$<re;++$)P.push(this.generateExpression(w.quasis[$],r.Primary,ue)),$+1<re&&(P.push("${"+E),P.push(this.generateExpression(w.expressions[$],r.Sequence,ue)),P.push(E+"}"));return P.push("`"),P},ModuleSpecifier:function(w,B,F){return this.Literal(w,B,F)},ImportExpression:function(w,B,F){return ot(["import(",this.generateExpression(w.source,r.Assignment,ue),")"],r.Call,B)}},Te(rt.prototype,rt.Expression),rt.prototype.generateExpression=function(w,B,F){var P,$;return $=w.type||t.Property,O.verbatim&&w.hasOwnProperty(O.verbatim)?Lr(w,B):(P=this[$](w,B,F),O.comment&&(P=Fe(w,P)),fe(P,w))},rt.prototype.generateStatement=function(w,B){var F,P;return F=this[w.type](w,B),O.comment&&(F=Fe(w,F)),P=fe(F).toString(),w.type===t.Program&&!T&&b===""&&P.charAt(P.length-1)===`
|
|
1058
|
-
`&&(F=y?fe(F).replaceRight(/\s+$/,""):P.replace(/\s+$/,"")),fe(F,w)};function Bt(w){var B;if(B=new rt,G(w))return B.generateStatement(w,le);if(M(w))return B.generateExpression(w,r.Sequence,ue);throw new Error("Unknown node type: "+w.type)}function Re(w,B){var F=pe(),P,$;return B!=null?(typeof B.indent=="string"&&(F.format.indent.style=B.indent),typeof B.base=="number"&&(F.format.indent.base=B.base),B=Se(F,B),p=B.format.indent.style,typeof B.base=="string"?s=B.base:s=ye(p,B.format.indent.base)):(B=F,p=B.format.indent.style,s=ye(p,B.format.indent.base)),l=B.format.json,d=B.format.renumber,f=l?!1:B.format.hexadecimal,h=l?"double":B.format.quotes,m=B.format.escapeless,b=B.format.newline,E=B.format.space,B.format.compact&&(b=E=p=s=""),_=B.format.parentheses,A=B.format.semicolons,T=B.format.safeConcatenation,k=B.directive,R=l?null:B.parse,y=B.sourceMap,S=B.sourceCode,C=B.format.preserveBlankLines&&S!==null,O=B,y&&(e.browser?i=global.sourceMap.SourceNode:i=XV().SourceNode),P=Bt(w),y?($=P.toStringWithSourceMap({file:B.file,sourceRoot:B.sourceMapRoot}),B.sourceContent&&$.map.setSourceContent(B.sourceMap,B.sourceContent),B.sourceMapWithCode?$:$.map.toString()):($={code:P.toString(),map:null},B.sourceMapWithCode?$:$.code)}D={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},J=pe().format,e.version=QV().version,e.generate=Re,e.attachComments=o.attachComments,e.Precedence=Se({},r),e.browser=!1,e.FORMAT_MINIFY=D,e.FORMAT_DEFAULTS=J})()}}),Zl=mt({"../../node_modules/acorn/dist/acorn.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=r||self,n(r.acorn={}))})(e,function(r){var n={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:i,"5module":i+" export import",6:i+" const class extends export import super"},a=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",p="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",l=new RegExp("["+s+"]"),d=new RegExp("["+s+p+"]");s=p=null;var f=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function m(c,v){for(var I=65536,q=0;q<v.length;q+=2){if(I+=v[q],I>c)return!1;if(I+=v[q+1],I>=c)return!0}}function b(c,v){return c<65?c===36:c<91?!0:c<97?c===95:c<123?!0:c<=65535?c>=170&&l.test(String.fromCharCode(c)):v===!1?!1:m(c,f)}function E(c,v){return c<48?c===36:c<58?!0:c<65?!1:c<91?!0:c<97?c===95:c<123?!0:c<=65535?c>=170&&d.test(String.fromCharCode(c)):v===!1?!1:m(c,f)||m(c,h)}var _=function(c,v){v===void 0&&(v={}),this.label=c,this.keyword=v.keyword,this.beforeExpr=!!v.beforeExpr,this.startsExpr=!!v.startsExpr,this.isLoop=!!v.isLoop,this.isAssign=!!v.isAssign,this.prefix=!!v.prefix,this.postfix=!!v.postfix,this.binop=v.binop||null,this.updateContext=null};function A(c,v){return new _(c,{beforeExpr:!0,binop:v})}var T={beforeExpr:!0},k={startsExpr:!0},O={};function R(c,v){return v===void 0&&(v={}),v.keyword=c,O[c]=new _(c,v)}var y={num:new _("num",k),regexp:new _("regexp",k),string:new _("string",k),name:new _("name",k),eof:new _("eof"),bracketL:new _("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new _("]"),braceL:new _("{",{beforeExpr:!0,startsExpr:!0}),braceR:new _("}"),parenL:new _("(",{beforeExpr:!0,startsExpr:!0}),parenR:new _(")"),comma:new _(",",T),semi:new _(";",T),colon:new _(":",T),dot:new _("."),question:new _("?",T),questionDot:new _("?."),arrow:new _("=>",T),template:new _("template"),invalidTemplate:new _("invalidTemplate"),ellipsis:new _("...",T),backQuote:new _("`",k),dollarBraceL:new _("${",{beforeExpr:!0,startsExpr:!0}),eq:new _("=",{beforeExpr:!0,isAssign:!0}),assign:new _("_=",{beforeExpr:!0,isAssign:!0}),incDec:new _("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new _("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:A("||",1),logicalAND:A("&&",2),bitwiseOR:A("|",3),bitwiseXOR:A("^",4),bitwiseAND:A("&",5),equality:A("==/!=/===/!==",6),relational:A("</>/<=/>=",7),bitShift:A("<</>>/>>>",8),plusMin:new _("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:A("%",10),star:A("*",10),slash:A("/",10),starstar:new _("**",{beforeExpr:!0}),coalesce:A("??",1),_break:R("break"),_case:R("case",T),_catch:R("catch"),_continue:R("continue"),_debugger:R("debugger"),_default:R("default",T),_do:R("do",{isLoop:!0,beforeExpr:!0}),_else:R("else",T),_finally:R("finally"),_for:R("for",{isLoop:!0}),_function:R("function",k),_if:R("if"),_return:R("return",T),_switch:R("switch"),_throw:R("throw",T),_try:R("try"),_var:R("var"),_const:R("const"),_while:R("while",{isLoop:!0}),_with:R("with"),_new:R("new",{beforeExpr:!0,startsExpr:!0}),_this:R("this",k),_super:R("super",k),_class:R("class",k),_extends:R("extends",T),_export:R("export"),_import:R("import",k),_null:R("null",k),_true:R("true",k),_false:R("false",k),_in:R("in",{beforeExpr:!0,binop:7}),_instanceof:R("instanceof",{beforeExpr:!0,binop:7}),_typeof:R("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:R("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:R("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},S=/\r\n?|\n|\u2028|\u2029/,C=new RegExp(S.source,"g");function D(c,v){return c===10||c===13||!v&&(c===8232||c===8233)}var J=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,M=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,G=Object.prototype,L=G.hasOwnProperty,N=G.toString;function U(c,v){return L.call(c,v)}var W=Array.isArray||function(c){return N.call(c)==="[object Array]"};function K(c){return new RegExp("^(?:"+c.replace(/ /g,"|")+")$")}var ne=function(c,v){this.line=c,this.column=v};ne.prototype.offset=function(c){return new ne(this.line,this.column+c)};var be=function(c,v,I){this.start=v,this.end=I,c.sourceFile!==null&&(this.source=c.sourceFile)};function xe(c,v){for(var I=1,q=0;;){C.lastIndex=q;var z=C.exec(c);if(z&&z.index<v)++I,q=z.index+z[0].length;else return new ne(I,v-q)}}var we={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function ue(c){var v={};for(var I in we)v[I]=c&&U(c,I)?c[I]:we[I];if(v.ecmaVersion>=2015&&(v.ecmaVersion-=2009),v.allowReserved==null&&(v.allowReserved=v.ecmaVersion<5),W(v.onToken)){var q=v.onToken;v.onToken=function(z){return q.push(z)}}return W(v.onComment)&&(v.onComment=He(v,v.onComment)),v}function He(c,v){return function(I,q,z,te,ae,Ee){var De={type:I?"Block":"Line",value:q,start:z,end:te};c.locations&&(De.loc=new be(this,ae,Ee)),c.ranges&&(De.range=[z,te]),v.push(De)}}var Ve=1,Ce=2,le=Ve|Ce,Ne=4,Be=8,ut=16,X=32,pe=64,ye=128;function _e(c,v){return Ce|(c?Ne:0)|(v?Be:0)}var Ae=0,Te=1,Se=2,ke=3,st=4,It=5,Le=function(c,v,I){this.options=c=ue(c),this.sourceFile=c.sourceFile,this.keywords=K(o[c.ecmaVersion>=6?6:c.sourceType==="module"?"5module":5]);var q="";if(c.allowReserved!==!0){for(var z=c.ecmaVersion;!(q=n[z]);z--);c.sourceType==="module"&&(q+=" await")}this.reservedWords=K(q);var te=(q?q+" ":"")+n.strict;this.reservedWordsStrict=K(te),this.reservedWordsStrictBind=K(te+" "+n.strictBind),this.input=String(v),this.containsEsc=!1,I?(this.pos=I,this.lineStart=this.input.lastIndexOf(`
|
|
1059
|
-
`,I-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(S).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=c.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&c.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Ve),this.regexpState=null},yt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Le.prototype.parse=function(){var c=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(c)},yt.inFunction.get=function(){return(this.currentVarScope().flags&Ce)>0},yt.inGenerator.get=function(){return(this.currentVarScope().flags&Be)>0},yt.inAsync.get=function(){return(this.currentVarScope().flags&Ne)>0},yt.allowSuper.get=function(){return(this.currentThisScope().flags&pe)>0},yt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ye)>0},yt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Le.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&Ce)>0},Le.extend=function(){for(var c=[],v=arguments.length;v--;)c[v]=arguments[v];for(var I=this,q=0;q<c.length;q++)I=c[q](I);return I},Le.parse=function(c,v){return new this(v,c).parse()},Le.parseExpressionAt=function(c,v,I){var q=new this(I,c,v);return q.nextToken(),q.parseExpression()},Le.tokenizer=function(c,v){return new this(v,c)},Object.defineProperties(Le.prototype,yt);var Ke=Le.prototype,nr=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Ke.strictDirective=function(c){for(;;){M.lastIndex=c,c+=M.exec(this.input)[0].length;var v=nr.exec(this.input.slice(c));if(!v)return!1;if((v[1]||v[2])==="use strict"){M.lastIndex=c+v[0].length;var I=M.exec(this.input),q=I.index+I[0].length,z=this.input.charAt(q);return z===";"||z==="}"||S.test(I[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(z)||z==="!"&&this.input.charAt(q+1)==="=")}c+=v[0].length,M.lastIndex=c,c+=M.exec(this.input)[0].length,this.input[c]===";"&&c++}},Ke.eat=function(c){return this.type===c?(this.next(),!0):!1},Ke.isContextual=function(c){return this.type===y.name&&this.value===c&&!this.containsEsc},Ke.eatContextual=function(c){return this.isContextual(c)?(this.next(),!0):!1},Ke.expectContextual=function(c){this.eatContextual(c)||this.unexpected()},Ke.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||S.test(this.input.slice(this.lastTokEnd,this.start))},Ke.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ke.semicolon=function(){!this.eat(y.semi)&&!this.insertSemicolon()&&this.unexpected()},Ke.afterTrailingComma=function(c,v){if(this.type===c)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),v||this.next(),!0},Ke.expect=function(c){this.eat(c)||this.unexpected()},Ke.unexpected=function(c){this.raise(c??this.start,"Unexpected token")};function Nt(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Ke.checkPatternErrors=function(c,v){if(c){c.trailingComma>-1&&this.raiseRecoverable(c.trailingComma,"Comma is not permitted after the rest element");var I=v?c.parenthesizedAssign:c.parenthesizedBind;I>-1&&this.raiseRecoverable(I,"Parenthesized pattern")}},Ke.checkExpressionErrors=function(c,v){if(!c)return!1;var I=c.shorthandAssign,q=c.doubleProto;if(!v)return I>=0||q>=0;I>=0&&this.raise(I,"Shorthand property assignments are valid only in destructuring patterns"),q>=0&&this.raiseRecoverable(q,"Redefinition of __proto__ property")},Ke.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ke.isSimpleAssignTarget=function(c){return c.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(c.expression):c.type==="Identifier"||c.type==="MemberExpression"};var fe=Le.prototype;fe.parseTopLevel=function(c){var v={};for(c.body||(c.body=[]);this.type!==y.eof;){var I=this.parseStatement(null,!0,v);c.body.push(I)}if(this.inModule)for(var q=0,z=Object.keys(this.undefinedExports);q<z.length;q+=1){var te=z[q];this.raiseRecoverable(this.undefinedExports[te].start,"Export '"+te+"' is not defined")}return this.adaptDirectivePrologue(c.body),this.next(),c.sourceType=this.options.sourceType,this.finishNode(c,"Program")};var pt={kind:"loop"},Oe={kind:"switch"};fe.isLet=function(c){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;M.lastIndex=this.pos;var v=M.exec(this.input),I=this.pos+v[0].length,q=this.input.charCodeAt(I);if(q===91)return!0;if(c)return!1;if(q===123)return!0;if(b(q,!0)){for(var z=I+1;E(this.input.charCodeAt(z),!0);)++z;var te=this.input.slice(I,z);if(!a.test(te))return!0}return!1},fe.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;M.lastIndex=this.pos;var c=M.exec(this.input),v=this.pos+c[0].length;return!S.test(this.input.slice(this.pos,v))&&this.input.slice(v,v+8)==="function"&&(v+8===this.input.length||!E(this.input.charAt(v+8)))},fe.parseStatement=function(c,v,I){var q=this.type,z=this.startNode(),te;switch(this.isLet(c)&&(q=y._var,te="let"),q){case y._break:case y._continue:return this.parseBreakContinueStatement(z,q.keyword);case y._debugger:return this.parseDebuggerStatement(z);case y._do:return this.parseDoStatement(z);case y._for:return this.parseForStatement(z);case y._function:return c&&(this.strict||c!=="if"&&c!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(z,!1,!c);case y._class:return c&&this.unexpected(),this.parseClass(z,!0);case y._if:return this.parseIfStatement(z);case y._return:return this.parseReturnStatement(z);case y._switch:return this.parseSwitchStatement(z);case y._throw:return this.parseThrowStatement(z);case y._try:return this.parseTryStatement(z);case y._const:case y._var:return te=te||this.value,c&&te!=="var"&&this.unexpected(),this.parseVarStatement(z,te);case y._while:return this.parseWhileStatement(z);case y._with:return this.parseWithStatement(z);case y.braceL:return this.parseBlock(!0,z);case y.semi:return this.parseEmptyStatement(z);case y._export:case y._import:if(this.options.ecmaVersion>10&&q===y._import){M.lastIndex=this.pos;var ae=M.exec(this.input),Ee=this.pos+ae[0].length,De=this.input.charCodeAt(Ee);if(De===40||De===46)return this.parseExpressionStatement(z,this.parseExpression())}return this.options.allowImportExportEverywhere||(v||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),q===y._import?this.parseImport(z):this.parseExport(z,I);default:if(this.isAsyncFunction())return c&&this.unexpected(),this.next(),this.parseFunctionStatement(z,!0,!c);var Ye=this.value,ft=this.parseExpression();return q===y.name&&ft.type==="Identifier"&&this.eat(y.colon)?this.parseLabeledStatement(z,Ye,ft,c):this.parseExpressionStatement(z,ft)}},fe.parseBreakContinueStatement=function(c,v){var I=v==="break";this.next(),this.eat(y.semi)||this.insertSemicolon()?c.label=null:this.type!==y.name?this.unexpected():(c.label=this.parseIdent(),this.semicolon());for(var q=0;q<this.labels.length;++q){var z=this.labels[q];if((c.label==null||z.name===c.label.name)&&(z.kind!=null&&(I||z.kind==="loop")||c.label&&I))break}return q===this.labels.length&&this.raise(c.start,"Unsyntactic "+v),this.finishNode(c,I?"BreakStatement":"ContinueStatement")},fe.parseDebuggerStatement=function(c){return this.next(),this.semicolon(),this.finishNode(c,"DebuggerStatement")},fe.parseDoStatement=function(c){return this.next(),this.labels.push(pt),c.body=this.parseStatement("do"),this.labels.pop(),this.expect(y._while),c.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(y.semi):this.semicolon(),this.finishNode(c,"DoWhileStatement")},fe.parseForStatement=function(c){this.next();var v=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(pt),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return v>-1&&this.unexpected(v),this.parseFor(c,null);var I=this.isLet();if(this.type===y._var||this.type===y._const||I){var q=this.startNode(),z=I?"let":this.value;return this.next(),this.parseVar(q,!0,z),this.finishNode(q,"VariableDeclaration"),(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&q.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===y._in?v>-1&&this.unexpected(v):c.await=v>-1),this.parseForIn(c,q)):(v>-1&&this.unexpected(v),this.parseFor(c,q))}var te=new Nt,ae=this.parseExpression(!0,te);return this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===y._in?v>-1&&this.unexpected(v):c.await=v>-1),this.toAssignable(ae,!1,te),this.checkLVal(ae),this.parseForIn(c,ae)):(this.checkExpressionErrors(te,!0),v>-1&&this.unexpected(v),this.parseFor(c,ae))},fe.parseFunctionStatement=function(c,v,I){return this.next(),this.parseFunction(c,et|(I?0:wr),!1,v)},fe.parseIfStatement=function(c){return this.next(),c.test=this.parseParenExpression(),c.consequent=this.parseStatement("if"),c.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(c,"IfStatement")},fe.parseReturnStatement=function(c){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?c.argument=null:(c.argument=this.parseExpression(),this.semicolon()),this.finishNode(c,"ReturnStatement")},fe.parseSwitchStatement=function(c){this.next(),c.discriminant=this.parseParenExpression(),c.cases=[],this.expect(y.braceL),this.labels.push(Oe),this.enterScope(0);for(var v,I=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var q=this.type===y._case;v&&this.finishNode(v,"SwitchCase"),c.cases.push(v=this.startNode()),v.consequent=[],this.next(),q?v.test=this.parseExpression():(I&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),I=!0,v.test=null),this.expect(y.colon)}else v||this.unexpected(),v.consequent.push(this.parseStatement(null));return this.exitScope(),v&&this.finishNode(v,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(c,"SwitchStatement")},fe.parseThrowStatement=function(c){return this.next(),S.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),c.argument=this.parseExpression(),this.semicolon(),this.finishNode(c,"ThrowStatement")};var At=[];fe.parseTryStatement=function(c){if(this.next(),c.block=this.parseBlock(),c.handler=null,this.type===y._catch){var v=this.startNode();if(this.next(),this.eat(y.parenL)){v.param=this.parseBindingAtom();var I=v.param.type==="Identifier";this.enterScope(I?X:0),this.checkLVal(v.param,I?st:Se),this.expect(y.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),v.param=null,this.enterScope(0);v.body=this.parseBlock(!1),this.exitScope(),c.handler=this.finishNode(v,"CatchClause")}return c.finalizer=this.eat(y._finally)?this.parseBlock():null,!c.handler&&!c.finalizer&&this.raise(c.start,"Missing catch or finally clause"),this.finishNode(c,"TryStatement")},fe.parseVarStatement=function(c,v){return this.next(),this.parseVar(c,!1,v),this.semicolon(),this.finishNode(c,"VariableDeclaration")},fe.parseWhileStatement=function(c){return this.next(),c.test=this.parseParenExpression(),this.labels.push(pt),c.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(c,"WhileStatement")},fe.parseWithStatement=function(c){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),c.object=this.parseParenExpression(),c.body=this.parseStatement("with"),this.finishNode(c,"WithStatement")},fe.parseEmptyStatement=function(c){return this.next(),this.finishNode(c,"EmptyStatement")},fe.parseLabeledStatement=function(c,v,I,q){for(var z=0,te=this.labels;z<te.length;z+=1){var ae=te[z];ae.name===v&&this.raise(I.start,"Label '"+v+"' is already declared")}for(var Ee=this.type.isLoop?"loop":this.type===y._switch?"switch":null,De=this.labels.length-1;De>=0;De--){var Ye=this.labels[De];if(Ye.statementStart===c.start)Ye.statementStart=this.start,Ye.kind=Ee;else break}return this.labels.push({name:v,kind:Ee,statementStart:this.start}),c.body=this.parseStatement(q?q.indexOf("label")===-1?q+"label":q:"label"),this.labels.pop(),c.label=I,this.finishNode(c,"LabeledStatement")},fe.parseExpressionStatement=function(c,v){return c.expression=v,this.semicolon(),this.finishNode(c,"ExpressionStatement")},fe.parseBlock=function(c,v,I){for(c===void 0&&(c=!0),v===void 0&&(v=this.startNode()),v.body=[],this.expect(y.braceL),c&&this.enterScope(0);this.type!==y.braceR;){var q=this.parseStatement(null);v.body.push(q)}return I&&(this.strict=!1),this.next(),c&&this.exitScope(),this.finishNode(v,"BlockStatement")},fe.parseFor=function(c,v){return c.init=v,this.expect(y.semi),c.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),c.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),c.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(c,"ForStatement")},fe.parseForIn=function(c,v){var I=this.type===y._in;return this.next(),v.type==="VariableDeclaration"&&v.declarations[0].init!=null&&(!I||this.options.ecmaVersion<8||this.strict||v.kind!=="var"||v.declarations[0].id.type!=="Identifier")?this.raise(v.start,(I?"for-in":"for-of")+" loop variable declaration may not have an initializer"):v.type==="AssignmentPattern"&&this.raise(v.start,"Invalid left-hand side in for-loop"),c.left=v,c.right=I?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),c.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(c,I?"ForInStatement":"ForOfStatement")},fe.parseVar=function(c,v,I){for(c.declarations=[],c.kind=I;;){var q=this.startNode();if(this.parseVarId(q,I),this.eat(y.eq)?q.init=this.parseMaybeAssign(v):I==="const"&&!(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():q.id.type!=="Identifier"&&!(v&&(this.type===y._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):q.init=null,c.declarations.push(this.finishNode(q,"VariableDeclarator")),!this.eat(y.comma))break}return c},fe.parseVarId=function(c,v){c.id=this.parseBindingAtom(),this.checkLVal(c.id,v==="var"?Te:Se,!1)};var et=1,wr=2,Or=4;fe.parseFunction=function(c,v,I,q){this.initFunction(c),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!q)&&(this.type===y.star&&v&wr&&this.unexpected(),c.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(c.async=!!q),v&et&&(c.id=v&Or&&this.type!==y.name?null:this.parseIdent(),c.id&&!(v&wr)&&this.checkLVal(c.id,this.strict||c.generator||c.async?this.treatFunctionsAsVar?Te:Se:ke));var z=this.yieldPos,te=this.awaitPos,ae=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_e(c.async,c.generator)),v&et||(c.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(c),this.parseFunctionBody(c,I,!1),this.yieldPos=z,this.awaitPos=te,this.awaitIdentPos=ae,this.finishNode(c,v&et?"FunctionDeclaration":"FunctionExpression")},fe.parseFunctionParams=function(c){this.expect(y.parenL),c.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},fe.parseClass=function(c,v){this.next();var I=this.strict;this.strict=!0,this.parseClassId(c,v),this.parseClassSuper(c);var q=this.startNode(),z=!1;for(q.body=[],this.expect(y.braceL);this.type!==y.braceR;){var te=this.parseClassElement(c.superClass!==null);te&&(q.body.push(te),te.type==="MethodDefinition"&&te.kind==="constructor"&&(z&&this.raise(te.start,"Duplicate constructor in the same class"),z=!0))}return this.strict=I,this.next(),c.body=this.finishNode(q,"ClassBody"),this.finishNode(c,v?"ClassDeclaration":"ClassExpression")},fe.parseClassElement=function(c){var v=this;if(this.eat(y.semi))return null;var I=this.startNode(),q=function(De,Ye){Ye===void 0&&(Ye=!1);var ft=v.start,zt=v.startLoc;return v.eatContextual(De)?v.type!==y.parenL&&(!Ye||!v.canInsertSemicolon())?!0:(I.key&&v.unexpected(),I.computed=!1,I.key=v.startNodeAt(ft,zt),I.key.name=De,v.finishNode(I.key,"Identifier"),!1):!1};I.kind="method",I.static=q("static");var z=this.eat(y.star),te=!1;z||(this.options.ecmaVersion>=8&&q("async",!0)?(te=!0,z=this.options.ecmaVersion>=9&&this.eat(y.star)):q("get")?I.kind="get":q("set")&&(I.kind="set")),I.key||this.parsePropertyName(I);var ae=I.key,Ee=!1;return!I.computed&&!I.static&&(ae.type==="Identifier"&&ae.name==="constructor"||ae.type==="Literal"&&ae.value==="constructor")?(I.kind!=="method"&&this.raise(ae.start,"Constructor can't have get/set modifier"),z&&this.raise(ae.start,"Constructor can't be a generator"),te&&this.raise(ae.start,"Constructor can't be an async method"),I.kind="constructor",Ee=c):I.static&&ae.type==="Identifier"&&ae.name==="prototype"&&this.raise(ae.start,"Classes may not have a static property named prototype"),this.parseClassMethod(I,z,te,Ee),I.kind==="get"&&I.value.params.length!==0&&this.raiseRecoverable(I.value.start,"getter should have no params"),I.kind==="set"&&I.value.params.length!==1&&this.raiseRecoverable(I.value.start,"setter should have exactly one param"),I.kind==="set"&&I.value.params[0].type==="RestElement"&&this.raiseRecoverable(I.value.params[0].start,"Setter cannot use rest params"),I},fe.parseClassMethod=function(c,v,I,q){return c.value=this.parseMethod(v,I,q),this.finishNode(c,"MethodDefinition")},fe.parseClassId=function(c,v){this.type===y.name?(c.id=this.parseIdent(),v&&this.checkLVal(c.id,Se,!1)):(v===!0&&this.unexpected(),c.id=null)},fe.parseClassSuper=function(c){c.superClass=this.eat(y._extends)?this.parseExprSubscripts():null},fe.parseExport=function(c,v){if(this.next(),this.eat(y.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(c.exported=this.parseIdent(!0),this.checkExport(v,c.exported.name,this.lastTokStart)):c.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),c.source=this.parseExprAtom(),this.semicolon(),this.finishNode(c,"ExportAllDeclaration");if(this.eat(y._default)){this.checkExport(v,"default",this.lastTokStart);var I;if(this.type===y._function||(I=this.isAsyncFunction())){var q=this.startNode();this.next(),I&&this.next(),c.declaration=this.parseFunction(q,et|Or,!1,I)}else if(this.type===y._class){var z=this.startNode();c.declaration=this.parseClass(z,"nullableID")}else c.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(c,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())c.declaration=this.parseStatement(null),c.declaration.type==="VariableDeclaration"?this.checkVariableExport(v,c.declaration.declarations):this.checkExport(v,c.declaration.id.name,c.declaration.id.start),c.specifiers=[],c.source=null;else{if(c.declaration=null,c.specifiers=this.parseExportSpecifiers(v),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),c.source=this.parseExprAtom();else{for(var te=0,ae=c.specifiers;te<ae.length;te+=1){var Ee=ae[te];this.checkUnreserved(Ee.local),this.checkLocalExport(Ee.local)}c.source=null}this.semicolon()}return this.finishNode(c,"ExportNamedDeclaration")},fe.checkExport=function(c,v,I){c&&(U(c,v)&&this.raiseRecoverable(I,"Duplicate export '"+v+"'"),c[v]=!0)},fe.checkPatternExport=function(c,v){var I=v.type;if(I==="Identifier")this.checkExport(c,v.name,v.start);else if(I==="ObjectPattern")for(var q=0,z=v.properties;q<z.length;q+=1){var te=z[q];this.checkPatternExport(c,te)}else if(I==="ArrayPattern")for(var ae=0,Ee=v.elements;ae<Ee.length;ae+=1){var De=Ee[ae];De&&this.checkPatternExport(c,De)}else I==="Property"?this.checkPatternExport(c,v.value):I==="AssignmentPattern"?this.checkPatternExport(c,v.left):I==="RestElement"?this.checkPatternExport(c,v.argument):I==="ParenthesizedExpression"&&this.checkPatternExport(c,v.expression)},fe.checkVariableExport=function(c,v){if(c)for(var I=0,q=v;I<q.length;I+=1){var z=q[I];this.checkPatternExport(c,z.id)}},fe.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},fe.parseExportSpecifiers=function(c){var v=[],I=!0;for(this.expect(y.braceL);!this.eat(y.braceR);){if(I)I=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var q=this.startNode();q.local=this.parseIdent(!0),q.exported=this.eatContextual("as")?this.parseIdent(!0):q.local,this.checkExport(c,q.exported.name,q.exported.start),v.push(this.finishNode(q,"ExportSpecifier"))}return v},fe.parseImport=function(c){return this.next(),this.type===y.string?(c.specifiers=At,c.source=this.parseExprAtom()):(c.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),c.source=this.type===y.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(c,"ImportDeclaration")},fe.parseImportSpecifiers=function(){var c=[],v=!0;if(this.type===y.name){var I=this.startNode();if(I.local=this.parseIdent(),this.checkLVal(I.local,Se),c.push(this.finishNode(I,"ImportDefaultSpecifier")),!this.eat(y.comma))return c}if(this.type===y.star){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLVal(q.local,Se),c.push(this.finishNode(q,"ImportNamespaceSpecifier")),c}for(this.expect(y.braceL);!this.eat(y.braceR);){if(v)v=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var z=this.startNode();z.imported=this.parseIdent(!0),this.eatContextual("as")?z.local=this.parseIdent():(this.checkUnreserved(z.imported),z.local=z.imported),this.checkLVal(z.local,Se),c.push(this.finishNode(z,"ImportSpecifier"))}return c},fe.adaptDirectivePrologue=function(c){for(var v=0;v<c.length&&this.isDirectiveCandidate(c[v]);++v)c[v].directive=c[v].expression.raw.slice(1,-1)},fe.isDirectiveCandidate=function(c){return c.type==="ExpressionStatement"&&c.expression.type==="Literal"&&typeof c.expression.value=="string"&&(this.input[c.start]==='"'||this.input[c.start]==="'")};var gt=Le.prototype;gt.toAssignable=function(c,v,I){if(this.options.ecmaVersion>=6&&c)switch(c.type){case"Identifier":this.inAsync&&c.name==="await"&&this.raise(c.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":c.type="ObjectPattern",I&&this.checkPatternErrors(I,!0);for(var q=0,z=c.properties;q<z.length;q+=1){var te=z[q];this.toAssignable(te,v),te.type==="RestElement"&&(te.argument.type==="ArrayPattern"||te.argument.type==="ObjectPattern")&&this.raise(te.argument.start,"Unexpected token")}break;case"Property":c.kind!=="init"&&this.raise(c.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(c.value,v);break;case"ArrayExpression":c.type="ArrayPattern",I&&this.checkPatternErrors(I,!0),this.toAssignableList(c.elements,v);break;case"SpreadElement":c.type="RestElement",this.toAssignable(c.argument,v),c.argument.type==="AssignmentPattern"&&this.raise(c.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":c.operator!=="="&&this.raise(c.left.end,"Only '=' operator can be used for specifying default value."),c.type="AssignmentPattern",delete c.operator,this.toAssignable(c.left,v);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(c.expression,v,I);break;case"ChainExpression":this.raiseRecoverable(c.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!v)break;default:this.raise(c.start,"Assigning to rvalue")}else I&&this.checkPatternErrors(I,!0);return c},gt.toAssignableList=function(c,v){for(var I=c.length,q=0;q<I;q++){var z=c[q];z&&this.toAssignable(z,v)}if(I){var te=c[I-1];this.options.ecmaVersion===6&&v&&te&&te.type==="RestElement"&&te.argument.type!=="Identifier"&&this.unexpected(te.argument.start)}return c},gt.parseSpread=function(c){var v=this.startNode();return this.next(),v.argument=this.parseMaybeAssign(!1,c),this.finishNode(v,"SpreadElement")},gt.parseRestBinding=function(){var c=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==y.name&&this.unexpected(),c.argument=this.parseBindingAtom(),this.finishNode(c,"RestElement")},gt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case y.bracketL:var c=this.startNode();return this.next(),c.elements=this.parseBindingList(y.bracketR,!0,!0),this.finishNode(c,"ArrayPattern");case y.braceL:return this.parseObj(!0)}return this.parseIdent()},gt.parseBindingList=function(c,v,I){for(var q=[],z=!0;!this.eat(c);)if(z?z=!1:this.expect(y.comma),v&&this.type===y.comma)q.push(null);else{if(I&&this.afterTrailingComma(c))break;if(this.type===y.ellipsis){var te=this.parseRestBinding();this.parseBindingListItem(te),q.push(te),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(c);break}else{var ae=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(ae),q.push(ae)}}return q},gt.parseBindingListItem=function(c){return c},gt.parseMaybeDefault=function(c,v,I){if(I=I||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(y.eq))return I;var q=this.startNodeAt(c,v);return q.left=I,q.right=this.parseMaybeAssign(),this.finishNode(q,"AssignmentPattern")},gt.checkLVal=function(c,v,I){switch(v===void 0&&(v=Ae),c.type){case"Identifier":v===Se&&c.name==="let"&&this.raiseRecoverable(c.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(c.name)&&this.raiseRecoverable(c.start,(v?"Binding ":"Assigning to ")+c.name+" in strict mode"),I&&(U(I,c.name)&&this.raiseRecoverable(c.start,"Argument name clash"),I[c.name]=!0),v!==Ae&&v!==It&&this.declareName(c.name,v,c.start);break;case"ChainExpression":this.raiseRecoverable(c.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":v&&this.raiseRecoverable(c.start,"Binding member expression");break;case"ObjectPattern":for(var q=0,z=c.properties;q<z.length;q+=1){var te=z[q];this.checkLVal(te,v,I)}break;case"Property":this.checkLVal(c.value,v,I);break;case"ArrayPattern":for(var ae=0,Ee=c.elements;ae<Ee.length;ae+=1){var De=Ee[ae];De&&this.checkLVal(De,v,I)}break;case"AssignmentPattern":this.checkLVal(c.left,v,I);break;case"RestElement":this.checkLVal(c.argument,v,I);break;case"ParenthesizedExpression":this.checkLVal(c.expression,v,I);break;default:this.raise(c.start,(v?"Binding":"Assigning to")+" rvalue")}};var Fe=Le.prototype;Fe.checkPropClash=function(c,v,I){if(!(this.options.ecmaVersion>=9&&c.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(c.computed||c.method||c.shorthand))){var q=c.key,z;switch(q.type){case"Identifier":z=q.name;break;case"Literal":z=String(q.value);break;default:return}var te=c.kind;if(this.options.ecmaVersion>=6){z==="__proto__"&&te==="init"&&(v.proto&&(I?I.doubleProto<0&&(I.doubleProto=q.start):this.raiseRecoverable(q.start,"Redefinition of __proto__ property")),v.proto=!0);return}z="$"+z;var ae=v[z];if(ae){var Ee;te==="init"?Ee=this.strict&&ae.init||ae.get||ae.set:Ee=ae.init||ae[te],Ee&&this.raiseRecoverable(q.start,"Redefinition of property")}else ae=v[z]={init:!1,get:!1,set:!1};ae[te]=!0}},Fe.parseExpression=function(c,v){var I=this.start,q=this.startLoc,z=this.parseMaybeAssign(c,v);if(this.type===y.comma){var te=this.startNodeAt(I,q);for(te.expressions=[z];this.eat(y.comma);)te.expressions.push(this.parseMaybeAssign(c,v));return this.finishNode(te,"SequenceExpression")}return z},Fe.parseMaybeAssign=function(c,v,I){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(c);this.exprAllowed=!1}var q=!1,z=-1,te=-1;v?(z=v.parenthesizedAssign,te=v.trailingComma,v.parenthesizedAssign=v.trailingComma=-1):(v=new Nt,q=!0);var ae=this.start,Ee=this.startLoc;(this.type===y.parenL||this.type===y.name)&&(this.potentialArrowAt=this.start);var De=this.parseMaybeConditional(c,v);if(I&&(De=I.call(this,De,ae,Ee)),this.type.isAssign){var Ye=this.startNodeAt(ae,Ee);return Ye.operator=this.value,Ye.left=this.type===y.eq?this.toAssignable(De,!1,v):De,q||(v.parenthesizedAssign=v.trailingComma=v.doubleProto=-1),v.shorthandAssign>=Ye.left.start&&(v.shorthandAssign=-1),this.checkLVal(De),this.next(),Ye.right=this.parseMaybeAssign(c),this.finishNode(Ye,"AssignmentExpression")}else q&&this.checkExpressionErrors(v,!0);return z>-1&&(v.parenthesizedAssign=z),te>-1&&(v.trailingComma=te),De},Fe.parseMaybeConditional=function(c,v){var I=this.start,q=this.startLoc,z=this.parseExprOps(c,v);if(this.checkExpressionErrors(v))return z;if(this.eat(y.question)){var te=this.startNodeAt(I,q);return te.test=z,te.consequent=this.parseMaybeAssign(),this.expect(y.colon),te.alternate=this.parseMaybeAssign(c),this.finishNode(te,"ConditionalExpression")}return z},Fe.parseExprOps=function(c,v){var I=this.start,q=this.startLoc,z=this.parseMaybeUnary(v,!1);return this.checkExpressionErrors(v)||z.start===I&&z.type==="ArrowFunctionExpression"?z:this.parseExprOp(z,I,q,-1,c)},Fe.parseExprOp=function(c,v,I,q,z){var te=this.type.binop;if(te!=null&&(!z||this.type!==y._in)&&te>q){var ae=this.type===y.logicalOR||this.type===y.logicalAND,Ee=this.type===y.coalesce;Ee&&(te=y.logicalAND.binop);var De=this.value;this.next();var Ye=this.start,ft=this.startLoc,zt=this.parseExprOp(this.parseMaybeUnary(null,!1),Ye,ft,te,z),Bn=this.buildBinary(v,I,c,zt,De,ae||Ee);return(ae&&this.type===y.coalesce||Ee&&(this.type===y.logicalOR||this.type===y.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Bn,v,I,q,z)}return c},Fe.buildBinary=function(c,v,I,q,z,te){var ae=this.startNodeAt(c,v);return ae.left=I,ae.operator=z,ae.right=q,this.finishNode(ae,te?"LogicalExpression":"BinaryExpression")},Fe.parseMaybeUnary=function(c,v){var I=this.start,q=this.startLoc,z;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))z=this.parseAwait(),v=!0;else if(this.type.prefix){var te=this.startNode(),ae=this.type===y.incDec;te.operator=this.value,te.prefix=!0,this.next(),te.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(c,!0),ae?this.checkLVal(te.argument):this.strict&&te.operator==="delete"&&te.argument.type==="Identifier"?this.raiseRecoverable(te.start,"Deleting local variable in strict mode"):v=!0,z=this.finishNode(te,ae?"UpdateExpression":"UnaryExpression")}else{if(z=this.parseExprSubscripts(c),this.checkExpressionErrors(c))return z;for(;this.type.postfix&&!this.canInsertSemicolon();){var Ee=this.startNodeAt(I,q);Ee.operator=this.value,Ee.prefix=!1,Ee.argument=z,this.checkLVal(z),this.next(),z=this.finishNode(Ee,"UpdateExpression")}}return!v&&this.eat(y.starstar)?this.buildBinary(I,q,z,this.parseMaybeUnary(null,!1),"**",!1):z},Fe.parseExprSubscripts=function(c){var v=this.start,I=this.startLoc,q=this.parseExprAtom(c);if(q.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return q;var z=this.parseSubscripts(q,v,I);return c&&z.type==="MemberExpression"&&(c.parenthesizedAssign>=z.start&&(c.parenthesizedAssign=-1),c.parenthesizedBind>=z.start&&(c.parenthesizedBind=-1)),z},Fe.parseSubscripts=function(c,v,I,q){for(var z=this.options.ecmaVersion>=8&&c.type==="Identifier"&&c.name==="async"&&this.lastTokEnd===c.end&&!this.canInsertSemicolon()&&c.end-c.start===5&&this.potentialArrowAt===c.start,te=!1;;){var ae=this.parseSubscript(c,v,I,q,z,te);if(ae.optional&&(te=!0),ae===c||ae.type==="ArrowFunctionExpression"){if(te){var Ee=this.startNodeAt(v,I);Ee.expression=ae,ae=this.finishNode(Ee,"ChainExpression")}return ae}c=ae}},Fe.parseSubscript=function(c,v,I,q,z,te){var ae=this.options.ecmaVersion>=11,Ee=ae&&this.eat(y.questionDot);q&&Ee&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var De=this.eat(y.bracketL);if(De||Ee&&this.type!==y.parenL&&this.type!==y.backQuote||this.eat(y.dot)){var Ye=this.startNodeAt(v,I);Ye.object=c,Ye.property=De?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),Ye.computed=!!De,De&&this.expect(y.bracketR),ae&&(Ye.optional=Ee),c=this.finishNode(Ye,"MemberExpression")}else if(!q&&this.eat(y.parenL)){var ft=new Nt,zt=this.yieldPos,Bn=this.awaitPos,ai=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ia=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1,ft);if(z&&!Ee&&!this.canInsertSemicolon()&&this.eat(y.arrow))return this.checkPatternErrors(ft,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=zt,this.awaitPos=Bn,this.awaitIdentPos=ai,this.parseArrowExpression(this.startNodeAt(v,I),ia,!0);this.checkExpressionErrors(ft,!0),this.yieldPos=zt||this.yieldPos,this.awaitPos=Bn||this.awaitPos,this.awaitIdentPos=ai||this.awaitIdentPos;var si=this.startNodeAt(v,I);si.callee=c,si.arguments=ia,ae&&(si.optional=Ee),c=this.finishNode(si,"CallExpression")}else if(this.type===y.backQuote){(Ee||te)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ui=this.startNodeAt(v,I);ui.tag=c,ui.quasi=this.parseTemplate({isTagged:!0}),c=this.finishNode(ui,"TaggedTemplateExpression")}return c},Fe.parseExprAtom=function(c){this.type===y.slash&&this.readRegexp();var v,I=this.potentialArrowAt===this.start;switch(this.type){case y._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),v=this.startNode(),this.next(),this.type===y.parenL&&!this.allowDirectSuper&&this.raise(v.start,"super() call outside constructor of a subclass"),this.type!==y.dot&&this.type!==y.bracketL&&this.type!==y.parenL&&this.unexpected(),this.finishNode(v,"Super");case y._this:return v=this.startNode(),this.next(),this.finishNode(v,"ThisExpression");case y.name:var q=this.start,z=this.startLoc,te=this.containsEsc,ae=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!te&&ae.name==="async"&&!this.canInsertSemicolon()&&this.eat(y._function))return this.parseFunction(this.startNodeAt(q,z),0,!1,!0);if(I&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(q,z),[ae],!1);if(this.options.ecmaVersion>=8&&ae.name==="async"&&this.type===y.name&&!te)return ae=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(y.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(q,z),[ae],!0)}return ae;case y.regexp:var Ee=this.value;return v=this.parseLiteral(Ee.value),v.regex={pattern:Ee.pattern,flags:Ee.flags},v;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return v=this.startNode(),v.value=this.type===y._null?null:this.type===y._true,v.raw=this.type.keyword,this.next(),this.finishNode(v,"Literal");case y.parenL:var De=this.start,Ye=this.parseParenAndDistinguishExpression(I);return c&&(c.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Ye)&&(c.parenthesizedAssign=De),c.parenthesizedBind<0&&(c.parenthesizedBind=De)),Ye;case y.bracketL:return v=this.startNode(),this.next(),v.elements=this.parseExprList(y.bracketR,!0,!0,c),this.finishNode(v,"ArrayExpression");case y.braceL:return this.parseObj(!1,c);case y._function:return v=this.startNode(),this.next(),this.parseFunction(v,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Fe.parseExprImport=function(){var c=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var v=this.parseIdent(!0);switch(this.type){case y.parenL:return this.parseDynamicImport(c);case y.dot:return c.meta=v,this.parseImportMeta(c);default:this.unexpected()}},Fe.parseDynamicImport=function(c){if(this.next(),c.source=this.parseMaybeAssign(),!this.eat(y.parenR)){var v=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(v,"Trailing comma is not allowed in import()"):this.unexpected(v)}return this.finishNode(c,"ImportExpression")},Fe.parseImportMeta=function(c){this.next();var v=this.containsEsc;return c.property=this.parseIdent(!0),c.property.name!=="meta"&&this.raiseRecoverable(c.property.start,"The only valid meta property for import is 'import.meta'"),v&&this.raiseRecoverable(c.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(c.start,"Cannot use 'import.meta' outside a module"),this.finishNode(c,"MetaProperty")},Fe.parseLiteral=function(c){var v=this.startNode();return v.value=c,v.raw=this.input.slice(this.start,this.end),v.raw.charCodeAt(v.raw.length-1)===110&&(v.bigint=v.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(v,"Literal")},Fe.parseParenExpression=function(){this.expect(y.parenL);var c=this.parseExpression();return this.expect(y.parenR),c},Fe.parseParenAndDistinguishExpression=function(c){var v=this.start,I=this.startLoc,q,z=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var te=this.start,ae=this.startLoc,Ee=[],De=!0,Ye=!1,ft=new Nt,zt=this.yieldPos,Bn=this.awaitPos,ai;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;)if(De?De=!1:this.expect(y.comma),z&&this.afterTrailingComma(y.parenR,!0)){Ye=!0;break}else if(this.type===y.ellipsis){ai=this.start,Ee.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else Ee.push(this.parseMaybeAssign(!1,ft,this.parseParenItem));var ia=this.start,si=this.startLoc;if(this.expect(y.parenR),c&&!this.canInsertSemicolon()&&this.eat(y.arrow))return this.checkPatternErrors(ft,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=zt,this.awaitPos=Bn,this.parseParenArrowList(v,I,Ee);(!Ee.length||Ye)&&this.unexpected(this.lastTokStart),ai&&this.unexpected(ai),this.checkExpressionErrors(ft,!0),this.yieldPos=zt||this.yieldPos,this.awaitPos=Bn||this.awaitPos,Ee.length>1?(q=this.startNodeAt(te,ae),q.expressions=Ee,this.finishNodeAt(q,"SequenceExpression",ia,si)):q=Ee[0]}else q=this.parseParenExpression();if(this.options.preserveParens){var ui=this.startNodeAt(v,I);return ui.expression=q,this.finishNode(ui,"ParenthesizedExpression")}else return q},Fe.parseParenItem=function(c){return c},Fe.parseParenArrowList=function(c,v,I){return this.parseArrowExpression(this.startNodeAt(c,v),I)};var ir=[];Fe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var c=this.startNode(),v=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(y.dot)){c.meta=v;var I=this.containsEsc;return c.property=this.parseIdent(!0),c.property.name!=="target"&&this.raiseRecoverable(c.property.start,"The only valid meta property for new is 'new.target'"),I&&this.raiseRecoverable(c.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(c.start,"'new.target' can only be used in functions"),this.finishNode(c,"MetaProperty")}var q=this.start,z=this.startLoc,te=this.type===y._import;return c.callee=this.parseSubscripts(this.parseExprAtom(),q,z,!0),te&&c.callee.type==="ImportExpression"&&this.raise(q,"Cannot use new with import()"),this.eat(y.parenL)?c.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):c.arguments=ir,this.finishNode(c,"NewExpression")},Fe.parseTemplateElement=function(c){var v=c.isTagged,I=this.startNode();return this.type===y.invalidTemplate?(v||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),I.value={raw:this.value,cooked:null}):I.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
1060
|
-
`),cooked:this.value},this.next(),I.tail=this.type===y.backQuote,this.finishNode(I,"TemplateElement")},Fe.parseTemplate=function(c){c===void 0&&(c={});var v=c.isTagged;v===void 0&&(v=!1);var I=this.startNode();this.next(),I.expressions=[];var q=this.parseTemplateElement({isTagged:v});for(I.quasis=[q];!q.tail;)this.type===y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(y.dollarBraceL),I.expressions.push(this.parseExpression()),this.expect(y.braceR),I.quasis.push(q=this.parseTemplateElement({isTagged:v}));return this.next(),this.finishNode(I,"TemplateLiteral")},Fe.isAsyncProp=function(c){return!c.computed&&c.key.type==="Identifier"&&c.key.name==="async"&&(this.type===y.name||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===y.star)&&!S.test(this.input.slice(this.lastTokEnd,this.start))},Fe.parseObj=function(c,v){var I=this.startNode(),q=!0,z={};for(I.properties=[],this.next();!this.eat(y.braceR);){if(q)q=!1;else if(this.expect(y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(y.braceR))break;var te=this.parseProperty(c,v);c||this.checkPropClash(te,z,v),I.properties.push(te)}return this.finishNode(I,c?"ObjectPattern":"ObjectExpression")},Fe.parseProperty=function(c,v){var I=this.startNode(),q,z,te,ae;if(this.options.ecmaVersion>=9&&this.eat(y.ellipsis))return c?(I.argument=this.parseIdent(!1),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(I,"RestElement")):(this.type===y.parenL&&v&&(v.parenthesizedAssign<0&&(v.parenthesizedAssign=this.start),v.parenthesizedBind<0&&(v.parenthesizedBind=this.start)),I.argument=this.parseMaybeAssign(!1,v),this.type===y.comma&&v&&v.trailingComma<0&&(v.trailingComma=this.start),this.finishNode(I,"SpreadElement"));this.options.ecmaVersion>=6&&(I.method=!1,I.shorthand=!1,(c||v)&&(te=this.start,ae=this.startLoc),c||(q=this.eat(y.star)));var Ee=this.containsEsc;return this.parsePropertyName(I),!c&&!Ee&&this.options.ecmaVersion>=8&&!q&&this.isAsyncProp(I)?(z=!0,q=this.options.ecmaVersion>=9&&this.eat(y.star),this.parsePropertyName(I,v)):z=!1,this.parsePropertyValue(I,c,q,z,te,ae,v,Ee),this.finishNode(I,"Property")},Fe.parsePropertyValue=function(c,v,I,q,z,te,ae,Ee){if((I||q)&&this.type===y.colon&&this.unexpected(),this.eat(y.colon))c.value=v?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,ae),c.kind="init";else if(this.options.ecmaVersion>=6&&this.type===y.parenL)v&&this.unexpected(),c.kind="init",c.method=!0,c.value=this.parseMethod(I,q);else if(!v&&!Ee&&this.options.ecmaVersion>=5&&!c.computed&&c.key.type==="Identifier"&&(c.key.name==="get"||c.key.name==="set")&&this.type!==y.comma&&this.type!==y.braceR&&this.type!==y.eq){(I||q)&&this.unexpected(),c.kind=c.key.name,this.parsePropertyName(c),c.value=this.parseMethod(!1);var De=c.kind==="get"?0:1;if(c.value.params.length!==De){var Ye=c.value.start;c.kind==="get"?this.raiseRecoverable(Ye,"getter should have no params"):this.raiseRecoverable(Ye,"setter should have exactly one param")}else c.kind==="set"&&c.value.params[0].type==="RestElement"&&this.raiseRecoverable(c.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!c.computed&&c.key.type==="Identifier"?((I||q)&&this.unexpected(),this.checkUnreserved(c.key),c.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=z),c.kind="init",v?c.value=this.parseMaybeDefault(z,te,c.key):this.type===y.eq&&ae?(ae.shorthandAssign<0&&(ae.shorthandAssign=this.start),c.value=this.parseMaybeDefault(z,te,c.key)):c.value=c.key,c.shorthand=!0):this.unexpected()},Fe.parsePropertyName=function(c){if(this.options.ecmaVersion>=6){if(this.eat(y.bracketL))return c.computed=!0,c.key=this.parseMaybeAssign(),this.expect(y.bracketR),c.key;c.computed=!1}return c.key=this.type===y.num||this.type===y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Fe.initFunction=function(c){c.id=null,this.options.ecmaVersion>=6&&(c.generator=c.expression=!1),this.options.ecmaVersion>=8&&(c.async=!1)},Fe.parseMethod=function(c,v,I){var q=this.startNode(),z=this.yieldPos,te=this.awaitPos,ae=this.awaitIdentPos;return this.initFunction(q),this.options.ecmaVersion>=6&&(q.generator=c),this.options.ecmaVersion>=8&&(q.async=!!v),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_e(v,q.generator)|pe|(I?ye:0)),this.expect(y.parenL),q.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(q,!1,!0),this.yieldPos=z,this.awaitPos=te,this.awaitIdentPos=ae,this.finishNode(q,"FunctionExpression")},Fe.parseArrowExpression=function(c,v,I){var q=this.yieldPos,z=this.awaitPos,te=this.awaitIdentPos;return this.enterScope(_e(I,!1)|ut),this.initFunction(c),this.options.ecmaVersion>=8&&(c.async=!!I),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,c.params=this.toAssignableList(v,!0),this.parseFunctionBody(c,!0,!1),this.yieldPos=q,this.awaitPos=z,this.awaitIdentPos=te,this.finishNode(c,"ArrowFunctionExpression")},Fe.parseFunctionBody=function(c,v,I){var q=v&&this.type!==y.braceL,z=this.strict,te=!1;if(q)c.body=this.parseMaybeAssign(),c.expression=!0,this.checkParams(c,!1);else{var ae=this.options.ecmaVersion>=7&&!this.isSimpleParamList(c.params);(!z||ae)&&(te=this.strictDirective(this.end),te&&ae&&this.raiseRecoverable(c.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var Ee=this.labels;this.labels=[],te&&(this.strict=!0),this.checkParams(c,!z&&!te&&!v&&!I&&this.isSimpleParamList(c.params)),this.strict&&c.id&&this.checkLVal(c.id,It),c.body=this.parseBlock(!1,void 0,te&&!z),c.expression=!1,this.adaptDirectivePrologue(c.body.body),this.labels=Ee}this.exitScope()},Fe.isSimpleParamList=function(c){for(var v=0,I=c;v<I.length;v+=1){var q=I[v];if(q.type!=="Identifier")return!1}return!0},Fe.checkParams=function(c,v){for(var I={},q=0,z=c.params;q<z.length;q+=1){var te=z[q];this.checkLVal(te,Te,v?null:I)}},Fe.parseExprList=function(c,v,I,q){for(var z=[],te=!0;!this.eat(c);){if(te)te=!1;else if(this.expect(y.comma),v&&this.afterTrailingComma(c))break;var ae=void 0;I&&this.type===y.comma?ae=null:this.type===y.ellipsis?(ae=this.parseSpread(q),q&&this.type===y.comma&&q.trailingComma<0&&(q.trailingComma=this.start)):ae=this.parseMaybeAssign(!1,q),z.push(ae)}return z},Fe.checkUnreserved=function(c){var v=c.start,I=c.end,q=c.name;if(this.inGenerator&&q==="yield"&&this.raiseRecoverable(v,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&q==="await"&&this.raiseRecoverable(v,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(q)&&this.raise(v,"Unexpected keyword '"+q+"'"),!(this.options.ecmaVersion<6&&this.input.slice(v,I).indexOf("\\")!==-1)){var z=this.strict?this.reservedWordsStrict:this.reservedWords;z.test(q)&&(!this.inAsync&&q==="await"&&this.raiseRecoverable(v,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(v,"The keyword '"+q+"' is reserved"))}},Fe.parseIdent=function(c,v){var I=this.startNode();return this.type===y.name?I.name=this.value:this.type.keyword?(I.name=this.type.keyword,(I.name==="class"||I.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!c),this.finishNode(I,"Identifier"),c||(this.checkUnreserved(I),I.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=I.start)),I},Fe.parseYield=function(c){this.yieldPos||(this.yieldPos=this.start);var v=this.startNode();return this.next(),this.type===y.semi||this.canInsertSemicolon()||this.type!==y.star&&!this.type.startsExpr?(v.delegate=!1,v.argument=null):(v.delegate=this.eat(y.star),v.argument=this.parseMaybeAssign(c)),this.finishNode(v,"YieldExpression")},Fe.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var c=this.startNode();return this.next(),c.argument=this.parseMaybeUnary(null,!1),this.finishNode(c,"AwaitExpression")};var ot=Le.prototype;ot.raise=function(c,v){var I=xe(this.input,c);v+=" ("+I.line+":"+I.column+")";var q=new SyntaxError(v);throw q.pos=c,q.loc=I,q.raisedAt=this.pos,q},ot.raiseRecoverable=ot.raise,ot.curPosition=function(){if(this.options.locations)return new ne(this.curLine,this.pos-this.lineStart)};var Jt=Le.prototype,Lr=function(c){this.flags=c,this.var=[],this.lexical=[],this.functions=[]};Jt.enterScope=function(c){this.scopeStack.push(new Lr(c))},Jt.exitScope=function(){this.scopeStack.pop()},Jt.treatFunctionsAsVarInScope=function(c){return c.flags&Ce||!this.inModule&&c.flags&Ve},Jt.declareName=function(c,v,I){var q=!1;if(v===Se){var z=this.currentScope();q=z.lexical.indexOf(c)>-1||z.functions.indexOf(c)>-1||z.var.indexOf(c)>-1,z.lexical.push(c),this.inModule&&z.flags&Ve&&delete this.undefinedExports[c]}else if(v===st){var te=this.currentScope();te.lexical.push(c)}else if(v===ke){var ae=this.currentScope();this.treatFunctionsAsVar?q=ae.lexical.indexOf(c)>-1:q=ae.lexical.indexOf(c)>-1||ae.var.indexOf(c)>-1,ae.functions.push(c)}else for(var Ee=this.scopeStack.length-1;Ee>=0;--Ee){var De=this.scopeStack[Ee];if(De.lexical.indexOf(c)>-1&&!(De.flags&X&&De.lexical[0]===c)||!this.treatFunctionsAsVarInScope(De)&&De.functions.indexOf(c)>-1){q=!0;break}if(De.var.push(c),this.inModule&&De.flags&Ve&&delete this.undefinedExports[c],De.flags&le)break}q&&this.raiseRecoverable(I,"Identifier '"+c+"' has already been declared")},Jt.checkLocalExport=function(c){this.scopeStack[0].lexical.indexOf(c.name)===-1&&this.scopeStack[0].var.indexOf(c.name)===-1&&(this.undefinedExports[c.name]=c)},Jt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Jt.currentVarScope=function(){for(var c=this.scopeStack.length-1;;c--){var v=this.scopeStack[c];if(v.flags&le)return v}},Jt.currentThisScope=function(){for(var c=this.scopeStack.length-1;;c--){var v=this.scopeStack[c];if(v.flags&le&&!(v.flags&ut))return v}};var rt=function(c,v,I){this.type="",this.start=v,this.end=0,c.options.locations&&(this.loc=new be(c,I)),c.options.directSourceFile&&(this.sourceFile=c.options.directSourceFile),c.options.ranges&&(this.range=[v,0])},_t=Le.prototype;_t.startNode=function(){return new rt(this,this.start,this.startLoc)},_t.startNodeAt=function(c,v){return new rt(this,c,v)};function or(c,v,I,q){return c.type=v,c.end=I,this.options.locations&&(c.loc.end=q),this.options.ranges&&(c.range[1]=I),c}_t.finishNode=function(c,v){return or.call(this,c,v,this.lastTokEnd,this.lastTokEndLoc)},_t.finishNodeAt=function(c,v,I,q){return or.call(this,c,v,I,q)};var bt=function(c,v,I,q,z){this.token=c,this.isExpr=!!v,this.preserveSpace=!!I,this.override=q,this.generator=!!z},nt={b_stat:new bt("{",!1),b_expr:new bt("{",!0),b_tmpl:new bt("${",!1),p_stat:new bt("(",!1),p_expr:new bt("(",!0),q_tmpl:new bt("`",!0,!0,function(c){return c.tryReadTemplateToken()}),f_stat:new bt("function",!1),f_expr:new bt("function",!0),f_expr_gen:new bt("function",!0,!1,null,!0),f_gen:new bt("function",!1,!1,null,!0)},Bt=Le.prototype;Bt.initialContext=function(){return[nt.b_stat]},Bt.braceIsBlock=function(c){var v=this.curContext();return v===nt.f_expr||v===nt.f_stat?!0:c===y.colon&&(v===nt.b_stat||v===nt.b_expr)?!v.isExpr:c===y._return||c===y.name&&this.exprAllowed?S.test(this.input.slice(this.lastTokEnd,this.start)):c===y._else||c===y.semi||c===y.eof||c===y.parenR||c===y.arrow?!0:c===y.braceL?v===nt.b_stat:c===y._var||c===y._const||c===y.name?!1:!this.exprAllowed},Bt.inGeneratorContext=function(){for(var c=this.context.length-1;c>=1;c--){var v=this.context[c];if(v.token==="function")return v.generator}return!1},Bt.updateContext=function(c){var v,I=this.type;I.keyword&&c===y.dot?this.exprAllowed=!1:(v=I.updateContext)?v.call(this,c):this.exprAllowed=I.beforeExpr},y.parenR.updateContext=y.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var c=this.context.pop();c===nt.b_stat&&this.curContext().token==="function"&&(c=this.context.pop()),this.exprAllowed=!c.isExpr},y.braceL.updateContext=function(c){this.context.push(this.braceIsBlock(c)?nt.b_stat:nt.b_expr),this.exprAllowed=!0},y.dollarBraceL.updateContext=function(){this.context.push(nt.b_tmpl),this.exprAllowed=!0},y.parenL.updateContext=function(c){var v=c===y._if||c===y._for||c===y._with||c===y._while;this.context.push(v?nt.p_stat:nt.p_expr),this.exprAllowed=!0},y.incDec.updateContext=function(){},y._function.updateContext=y._class.updateContext=function(c){c.beforeExpr&&c!==y.semi&&c!==y._else&&!(c===y._return&&S.test(this.input.slice(this.lastTokEnd,this.start)))&&!((c===y.colon||c===y.braceL)&&this.curContext()===nt.b_stat)?this.context.push(nt.f_expr):this.context.push(nt.f_stat),this.exprAllowed=!1},y.backQuote.updateContext=function(){this.curContext()===nt.q_tmpl?this.context.pop():this.context.push(nt.q_tmpl),this.exprAllowed=!1},y.star.updateContext=function(c){if(c===y._function){var v=this.context.length-1;this.context[v]===nt.f_expr?this.context[v]=nt.f_expr_gen:this.context[v]=nt.f_gen}this.exprAllowed=!0},y.name.updateContext=function(c){var v=!1;this.options.ecmaVersion>=6&&c!==y.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(v=!0),this.exprAllowed=v};var Re="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",w=Re+" Extended_Pictographic",B=w,F={9:Re,10:w,11:B},P="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",$="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",re=$+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",oe=re+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",se={9:$,10:re,11:oe},ve={};function je(c){var v=ve[c]={binary:K(F[c]+" "+P),nonBinary:{General_Category:K(P),Script:K(se[c])}};v.nonBinary.Script_Extensions=v.nonBinary.Script,v.nonBinary.gc=v.nonBinary.General_Category,v.nonBinary.sc=v.nonBinary.Script,v.nonBinary.scx=v.nonBinary.Script_Extensions}je(9),je(10),je(11);var de=Le.prototype,Ft=function(c){this.parser=c,this.validFlags="gim"+(c.options.ecmaVersion>=6?"uy":"")+(c.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ve[c.options.ecmaVersion>=11?11:c.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ft.prototype.reset=function(c,v,I){var q=I.indexOf("u")!==-1;this.start=c|0,this.source=v+"",this.flags=I,this.switchU=q&&this.parser.options.ecmaVersion>=6,this.switchN=q&&this.parser.options.ecmaVersion>=9},Ft.prototype.raise=function(c){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+c)},Ft.prototype.at=function(c,v){v===void 0&&(v=!1);var I=this.source,q=I.length;if(c>=q)return-1;var z=I.charCodeAt(c);if(!(v||this.switchU)||z<=55295||z>=57344||c+1>=q)return z;var te=I.charCodeAt(c+1);return te>=56320&&te<=57343?(z<<10)+te-56613888:z},Ft.prototype.nextIndex=function(c,v){v===void 0&&(v=!1);var I=this.source,q=I.length;if(c>=q)return q;var z=I.charCodeAt(c),te;return!(v||this.switchU)||z<=55295||z>=57344||c+1>=q||(te=I.charCodeAt(c+1))<56320||te>57343?c+1:c+2},Ft.prototype.current=function(c){return c===void 0&&(c=!1),this.at(this.pos,c)},Ft.prototype.lookahead=function(c){return c===void 0&&(c=!1),this.at(this.nextIndex(this.pos,c),c)},Ft.prototype.advance=function(c){c===void 0&&(c=!1),this.pos=this.nextIndex(this.pos,c)},Ft.prototype.eat=function(c,v){return v===void 0&&(v=!1),this.current(v)===c?(this.advance(v),!0):!1};function jt(c){return c<=65535?String.fromCharCode(c):(c-=65536,String.fromCharCode((c>>10)+55296,(c&1023)+56320))}de.validateRegExpFlags=function(c){for(var v=c.validFlags,I=c.flags,q=0;q<I.length;q++){var z=I.charAt(q);v.indexOf(z)===-1&&this.raise(c.start,"Invalid regular expression flag"),I.indexOf(z,q+1)>-1&&this.raise(c.start,"Duplicate regular expression flag")}},de.validateRegExpPattern=function(c){this.regexp_pattern(c),!c.switchN&&this.options.ecmaVersion>=9&&c.groupNames.length>0&&(c.switchN=!0,this.regexp_pattern(c))},de.regexp_pattern=function(c){c.pos=0,c.lastIntValue=0,c.lastStringValue="",c.lastAssertionIsQuantifiable=!1,c.numCapturingParens=0,c.maxBackReference=0,c.groupNames.length=0,c.backReferenceNames.length=0,this.regexp_disjunction(c),c.pos!==c.source.length&&(c.eat(41)&&c.raise("Unmatched ')'"),(c.eat(93)||c.eat(125))&&c.raise("Lone quantifier brackets")),c.maxBackReference>c.numCapturingParens&&c.raise("Invalid escape");for(var v=0,I=c.backReferenceNames;v<I.length;v+=1){var q=I[v];c.groupNames.indexOf(q)===-1&&c.raise("Invalid named capture referenced")}},de.regexp_disjunction=function(c){for(this.regexp_alternative(c);c.eat(124);)this.regexp_alternative(c);this.regexp_eatQuantifier(c,!0)&&c.raise("Nothing to repeat"),c.eat(123)&&c.raise("Lone quantifier brackets")},de.regexp_alternative=function(c){for(;c.pos<c.source.length&&this.regexp_eatTerm(c););},de.regexp_eatTerm=function(c){return this.regexp_eatAssertion(c)?(c.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(c)&&c.switchU&&c.raise("Invalid quantifier"),!0):(c.switchU?this.regexp_eatAtom(c):this.regexp_eatExtendedAtom(c))?(this.regexp_eatQuantifier(c),!0):!1},de.regexp_eatAssertion=function(c){var v=c.pos;if(c.lastAssertionIsQuantifiable=!1,c.eat(94)||c.eat(36))return!0;if(c.eat(92)){if(c.eat(66)||c.eat(98))return!0;c.pos=v}if(c.eat(40)&&c.eat(63)){var I=!1;if(this.options.ecmaVersion>=9&&(I=c.eat(60)),c.eat(61)||c.eat(33))return this.regexp_disjunction(c),c.eat(41)||c.raise("Unterminated group"),c.lastAssertionIsQuantifiable=!I,!0}return c.pos=v,!1},de.regexp_eatQuantifier=function(c,v){return v===void 0&&(v=!1),this.regexp_eatQuantifierPrefix(c,v)?(c.eat(63),!0):!1},de.regexp_eatQuantifierPrefix=function(c,v){return c.eat(42)||c.eat(43)||c.eat(63)||this.regexp_eatBracedQuantifier(c,v)},de.regexp_eatBracedQuantifier=function(c,v){var I=c.pos;if(c.eat(123)){var q=0,z=-1;if(this.regexp_eatDecimalDigits(c)&&(q=c.lastIntValue,c.eat(44)&&this.regexp_eatDecimalDigits(c)&&(z=c.lastIntValue),c.eat(125)))return z!==-1&&z<q&&!v&&c.raise("numbers out of order in {} quantifier"),!0;c.switchU&&!v&&c.raise("Incomplete quantifier"),c.pos=I}return!1},de.regexp_eatAtom=function(c){return this.regexp_eatPatternCharacters(c)||c.eat(46)||this.regexp_eatReverseSolidusAtomEscape(c)||this.regexp_eatCharacterClass(c)||this.regexp_eatUncapturingGroup(c)||this.regexp_eatCapturingGroup(c)},de.regexp_eatReverseSolidusAtomEscape=function(c){var v=c.pos;if(c.eat(92)){if(this.regexp_eatAtomEscape(c))return!0;c.pos=v}return!1},de.regexp_eatUncapturingGroup=function(c){var v=c.pos;if(c.eat(40)){if(c.eat(63)&&c.eat(58)){if(this.regexp_disjunction(c),c.eat(41))return!0;c.raise("Unterminated group")}c.pos=v}return!1},de.regexp_eatCapturingGroup=function(c){if(c.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(c):c.current()===63&&c.raise("Invalid group"),this.regexp_disjunction(c),c.eat(41))return c.numCapturingParens+=1,!0;c.raise("Unterminated group")}return!1},de.regexp_eatExtendedAtom=function(c){return c.eat(46)||this.regexp_eatReverseSolidusAtomEscape(c)||this.regexp_eatCharacterClass(c)||this.regexp_eatUncapturingGroup(c)||this.regexp_eatCapturingGroup(c)||this.regexp_eatInvalidBracedQuantifier(c)||this.regexp_eatExtendedPatternCharacter(c)},de.regexp_eatInvalidBracedQuantifier=function(c){return this.regexp_eatBracedQuantifier(c,!0)&&c.raise("Nothing to repeat"),!1},de.regexp_eatSyntaxCharacter=function(c){var v=c.current();return $r(v)?(c.lastIntValue=v,c.advance(),!0):!1};function $r(c){return c===36||c>=40&&c<=43||c===46||c===63||c>=91&&c<=94||c>=123&&c<=125}de.regexp_eatPatternCharacters=function(c){for(var v=c.pos,I=0;(I=c.current())!==-1&&!$r(I);)c.advance();return c.pos!==v},de.regexp_eatExtendedPatternCharacter=function(c){var v=c.current();return v!==-1&&v!==36&&!(v>=40&&v<=43)&&v!==46&&v!==63&&v!==91&&v!==94&&v!==124?(c.advance(),!0):!1},de.regexp_groupSpecifier=function(c){if(c.eat(63)){if(this.regexp_eatGroupName(c)){c.groupNames.indexOf(c.lastStringValue)!==-1&&c.raise("Duplicate capture group name"),c.groupNames.push(c.lastStringValue);return}c.raise("Invalid group")}},de.regexp_eatGroupName=function(c){if(c.lastStringValue="",c.eat(60)){if(this.regexp_eatRegExpIdentifierName(c)&&c.eat(62))return!0;c.raise("Invalid capture group name")}return!1},de.regexp_eatRegExpIdentifierName=function(c){if(c.lastStringValue="",this.regexp_eatRegExpIdentifierStart(c)){for(c.lastStringValue+=jt(c.lastIntValue);this.regexp_eatRegExpIdentifierPart(c);)c.lastStringValue+=jt(c.lastIntValue);return!0}return!1},de.regexp_eatRegExpIdentifierStart=function(c){var v=c.pos,I=this.options.ecmaVersion>=11,q=c.current(I);return c.advance(I),q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(c,I)&&(q=c.lastIntValue),un(q)?(c.lastIntValue=q,!0):(c.pos=v,!1)};function un(c){return b(c,!0)||c===36||c===95}de.regexp_eatRegExpIdentifierPart=function(c){var v=c.pos,I=this.options.ecmaVersion>=11,q=c.current(I);return c.advance(I),q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(c,I)&&(q=c.lastIntValue),Gt(q)?(c.lastIntValue=q,!0):(c.pos=v,!1)};function Gt(c){return E(c,!0)||c===36||c===95||c===8204||c===8205}de.regexp_eatAtomEscape=function(c){return this.regexp_eatBackReference(c)||this.regexp_eatCharacterClassEscape(c)||this.regexp_eatCharacterEscape(c)||c.switchN&&this.regexp_eatKGroupName(c)?!0:(c.switchU&&(c.current()===99&&c.raise("Invalid unicode escape"),c.raise("Invalid escape")),!1)},de.regexp_eatBackReference=function(c){var v=c.pos;if(this.regexp_eatDecimalEscape(c)){var I=c.lastIntValue;if(c.switchU)return I>c.maxBackReference&&(c.maxBackReference=I),!0;if(I<=c.numCapturingParens)return!0;c.pos=v}return!1},de.regexp_eatKGroupName=function(c){if(c.eat(107)){if(this.regexp_eatGroupName(c))return c.backReferenceNames.push(c.lastStringValue),!0;c.raise("Invalid named reference")}return!1},de.regexp_eatCharacterEscape=function(c){return this.regexp_eatControlEscape(c)||this.regexp_eatCControlLetter(c)||this.regexp_eatZero(c)||this.regexp_eatHexEscapeSequence(c)||this.regexp_eatRegExpUnicodeEscapeSequence(c,!1)||!c.switchU&&this.regexp_eatLegacyOctalEscapeSequence(c)||this.regexp_eatIdentityEscape(c)},de.regexp_eatCControlLetter=function(c){var v=c.pos;if(c.eat(99)){if(this.regexp_eatControlLetter(c))return!0;c.pos=v}return!1},de.regexp_eatZero=function(c){return c.current()===48&&!x(c.lookahead())?(c.lastIntValue=0,c.advance(),!0):!1},de.regexp_eatControlEscape=function(c){var v=c.current();return v===116?(c.lastIntValue=9,c.advance(),!0):v===110?(c.lastIntValue=10,c.advance(),!0):v===118?(c.lastIntValue=11,c.advance(),!0):v===102?(c.lastIntValue=12,c.advance(),!0):v===114?(c.lastIntValue=13,c.advance(),!0):!1},de.regexp_eatControlLetter=function(c){var v=c.current();return ln(v)?(c.lastIntValue=v%32,c.advance(),!0):!1};function ln(c){return c>=65&&c<=90||c>=97&&c<=122}de.regexp_eatRegExpUnicodeEscapeSequence=function(c,v){v===void 0&&(v=!1);var I=c.pos,q=v||c.switchU;if(c.eat(117)){if(this.regexp_eatFixedHexDigits(c,4)){var z=c.lastIntValue;if(q&&z>=55296&&z<=56319){var te=c.pos;if(c.eat(92)&&c.eat(117)&&this.regexp_eatFixedHexDigits(c,4)){var ae=c.lastIntValue;if(ae>=56320&&ae<=57343)return c.lastIntValue=(z-55296)*1024+(ae-56320)+65536,!0}c.pos=te,c.lastIntValue=z}return!0}if(q&&c.eat(123)&&this.regexp_eatHexDigits(c)&&c.eat(125)&&Vr(c.lastIntValue))return!0;q&&c.raise("Invalid unicode escape"),c.pos=I}return!1};function Vr(c){return c>=0&&c<=1114111}de.regexp_eatIdentityEscape=function(c){if(c.switchU)return this.regexp_eatSyntaxCharacter(c)?!0:c.eat(47)?(c.lastIntValue=47,!0):!1;var v=c.current();return v!==99&&(!c.switchN||v!==107)?(c.lastIntValue=v,c.advance(),!0):!1},de.regexp_eatDecimalEscape=function(c){c.lastIntValue=0;var v=c.current();if(v>=49&&v<=57){do c.lastIntValue=10*c.lastIntValue+(v-48),c.advance();while((v=c.current())>=48&&v<=57);return!0}return!1},de.regexp_eatCharacterClassEscape=function(c){var v=c.current();if(zi(v))return c.lastIntValue=-1,c.advance(),!0;if(c.switchU&&this.options.ecmaVersion>=9&&(v===80||v===112)){if(c.lastIntValue=-1,c.advance(),c.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(c)&&c.eat(125))return!0;c.raise("Invalid property name")}return!1};function zi(c){return c===100||c===68||c===115||c===83||c===119||c===87}de.regexp_eatUnicodePropertyValueExpression=function(c){var v=c.pos;if(this.regexp_eatUnicodePropertyName(c)&&c.eat(61)){var I=c.lastStringValue;if(this.regexp_eatUnicodePropertyValue(c)){var q=c.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(c,I,q),!0}}if(c.pos=v,this.regexp_eatLoneUnicodePropertyNameOrValue(c)){var z=c.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(c,z),!0}return!1},de.regexp_validateUnicodePropertyNameAndValue=function(c,v,I){U(c.unicodeProperties.nonBinary,v)||c.raise("Invalid property name"),c.unicodeProperties.nonBinary[v].test(I)||c.raise("Invalid property value")},de.regexp_validateUnicodePropertyNameOrValue=function(c,v){c.unicodeProperties.binary.test(v)||c.raise("Invalid property name")},de.regexp_eatUnicodePropertyName=function(c){var v=0;for(c.lastStringValue="";u(v=c.current());)c.lastStringValue+=jt(v),c.advance();return c.lastStringValue!==""};function u(c){return ln(c)||c===95}de.regexp_eatUnicodePropertyValue=function(c){var v=0;for(c.lastStringValue="";g(v=c.current());)c.lastStringValue+=jt(v),c.advance();return c.lastStringValue!==""};function g(c){return u(c)||x(c)}de.regexp_eatLoneUnicodePropertyNameOrValue=function(c){return this.regexp_eatUnicodePropertyValue(c)},de.regexp_eatCharacterClass=function(c){if(c.eat(91)){if(c.eat(94),this.regexp_classRanges(c),c.eat(93))return!0;c.raise("Unterminated character class")}return!1},de.regexp_classRanges=function(c){for(;this.regexp_eatClassAtom(c);){var v=c.lastIntValue;if(c.eat(45)&&this.regexp_eatClassAtom(c)){var I=c.lastIntValue;c.switchU&&(v===-1||I===-1)&&c.raise("Invalid character class"),v!==-1&&I!==-1&&v>I&&c.raise("Range out of order in character class")}}},de.regexp_eatClassAtom=function(c){var v=c.pos;if(c.eat(92)){if(this.regexp_eatClassEscape(c))return!0;if(c.switchU){var I=c.current();(I===99||ie(I))&&c.raise("Invalid class escape"),c.raise("Invalid escape")}c.pos=v}var q=c.current();return q!==93?(c.lastIntValue=q,c.advance(),!0):!1},de.regexp_eatClassEscape=function(c){var v=c.pos;if(c.eat(98))return c.lastIntValue=8,!0;if(c.switchU&&c.eat(45))return c.lastIntValue=45,!0;if(!c.switchU&&c.eat(99)){if(this.regexp_eatClassControlLetter(c))return!0;c.pos=v}return this.regexp_eatCharacterClassEscape(c)||this.regexp_eatCharacterEscape(c)},de.regexp_eatClassControlLetter=function(c){var v=c.current();return x(v)||v===95?(c.lastIntValue=v%32,c.advance(),!0):!1},de.regexp_eatHexEscapeSequence=function(c){var v=c.pos;if(c.eat(120)){if(this.regexp_eatFixedHexDigits(c,2))return!0;c.switchU&&c.raise("Invalid escape"),c.pos=v}return!1},de.regexp_eatDecimalDigits=function(c){var v=c.pos,I=0;for(c.lastIntValue=0;x(I=c.current());)c.lastIntValue=10*c.lastIntValue+(I-48),c.advance();return c.pos!==v};function x(c){return c>=48&&c<=57}de.regexp_eatHexDigits=function(c){var v=c.pos,I=0;for(c.lastIntValue=0;j(I=c.current());)c.lastIntValue=16*c.lastIntValue+Q(I),c.advance();return c.pos!==v};function j(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function Q(c){return c>=65&&c<=70?10+(c-65):c>=97&&c<=102?10+(c-97):c-48}de.regexp_eatLegacyOctalEscapeSequence=function(c){if(this.regexp_eatOctalDigit(c)){var v=c.lastIntValue;if(this.regexp_eatOctalDigit(c)){var I=c.lastIntValue;v<=3&&this.regexp_eatOctalDigit(c)?c.lastIntValue=v*64+I*8+c.lastIntValue:c.lastIntValue=v*8+I}else c.lastIntValue=v;return!0}return!1},de.regexp_eatOctalDigit=function(c){var v=c.current();return ie(v)?(c.lastIntValue=v-48,c.advance(),!0):(c.lastIntValue=0,!1)};function ie(c){return c>=48&&c<=55}de.regexp_eatFixedHexDigits=function(c,v){var I=c.pos;c.lastIntValue=0;for(var q=0;q<v;++q){var z=c.current();if(!j(z))return c.pos=I,!1;c.lastIntValue=16*c.lastIntValue+Q(z),c.advance()}return!0};var ce=function(c){this.type=c.type,this.value=c.value,this.start=c.start,this.end=c.end,c.options.locations&&(this.loc=new be(c,c.startLoc,c.endLoc)),c.options.ranges&&(this.range=[c.start,c.end])},he=Le.prototype;he.next=function(c){!c&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ce(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},he.getToken=function(){return this.next(),new ce(this)},typeof Symbol<"u"&&(he[Symbol.iterator]=function(){var c=this;return{next:function(){var v=c.getToken();return{done:v.type===y.eof,value:v}}}}),he.curContext=function(){return this.context[this.context.length-1]},he.nextToken=function(){var c=this.curContext();if((!c||!c.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(y.eof);if(c.override)return c.override(this);this.readToken(this.fullCharCodeAtPos())},he.readToken=function(c){return b(c,this.options.ecmaVersion>=6)||c===92?this.readWord():this.getTokenFromCode(c)},he.fullCharCodeAtPos=function(){var c=this.input.charCodeAt(this.pos);if(c<=55295||c>=57344)return c;var v=this.input.charCodeAt(this.pos+1);return(c<<10)+v-56613888},he.skipBlockComment=function(){var c=this.options.onComment&&this.curPosition(),v=this.pos,I=this.input.indexOf("*/",this.pos+=2);if(I===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=I+2,this.options.locations){C.lastIndex=v;for(var q;(q=C.exec(this.input))&&q.index<this.pos;)++this.curLine,this.lineStart=q.index+q[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(v+2,I),v,this.pos,c,this.curPosition())},he.skipLineComment=function(c){for(var v=this.pos,I=this.options.onComment&&this.curPosition(),q=this.input.charCodeAt(this.pos+=c);this.pos<this.input.length&&!D(q);)q=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(v+c,this.pos),v,this.pos,I,this.curPosition())},he.skipSpace=function(){e:for(;this.pos<this.input.length;){var c=this.input.charCodeAt(this.pos);switch(c){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(c>8&&c<14||c>=5760&&J.test(String.fromCharCode(c)))++this.pos;else break e}}},he.finishToken=function(c,v){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var I=this.type;this.type=c,this.value=v,this.updateContext(I)},he.readToken_dot=function(){var c=this.input.charCodeAt(this.pos+1);if(c>=48&&c<=57)return this.readNumber(!0);var v=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&c===46&&v===46?(this.pos+=3,this.finishToken(y.ellipsis)):(++this.pos,this.finishToken(y.dot))},he.readToken_slash=function(){var c=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):c===61?this.finishOp(y.assign,2):this.finishOp(y.slash,1)},he.readToken_mult_modulo_exp=function(c){var v=this.input.charCodeAt(this.pos+1),I=1,q=c===42?y.star:y.modulo;return this.options.ecmaVersion>=7&&c===42&&v===42&&(++I,q=y.starstar,v=this.input.charCodeAt(this.pos+2)),v===61?this.finishOp(y.assign,I+1):this.finishOp(q,I)},he.readToken_pipe_amp=function(c){var v=this.input.charCodeAt(this.pos+1);if(v===c){if(this.options.ecmaVersion>=12){var I=this.input.charCodeAt(this.pos+2);if(I===61)return this.finishOp(y.assign,3)}return this.finishOp(c===124?y.logicalOR:y.logicalAND,2)}return v===61?this.finishOp(y.assign,2):this.finishOp(c===124?y.bitwiseOR:y.bitwiseAND,1)},he.readToken_caret=function(){var c=this.input.charCodeAt(this.pos+1);return c===61?this.finishOp(y.assign,2):this.finishOp(y.bitwiseXOR,1)},he.readToken_plus_min=function(c){var v=this.input.charCodeAt(this.pos+1);return v===c?v===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||S.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(y.incDec,2):v===61?this.finishOp(y.assign,2):this.finishOp(y.plusMin,1)},he.readToken_lt_gt=function(c){var v=this.input.charCodeAt(this.pos+1),I=1;return v===c?(I=c===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+I)===61?this.finishOp(y.assign,I+1):this.finishOp(y.bitShift,I)):v===33&&c===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(v===61&&(I=2),this.finishOp(y.relational,I))},he.readToken_eq_excl=function(c){var v=this.input.charCodeAt(this.pos+1);return v===61?this.finishOp(y.equality,this.input.charCodeAt(this.pos+2)===61?3:2):c===61&&v===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(y.arrow)):this.finishOp(c===61?y.eq:y.prefix,1)},he.readToken_question=function(){var c=this.options.ecmaVersion;if(c>=11){var v=this.input.charCodeAt(this.pos+1);if(v===46){var I=this.input.charCodeAt(this.pos+2);if(I<48||I>57)return this.finishOp(y.questionDot,2)}if(v===63){if(c>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(y.assign,3)}return this.finishOp(y.coalesce,2)}}return this.finishOp(y.question,1)},he.getTokenFromCode=function(c){switch(c){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(y.parenL);case 41:return++this.pos,this.finishToken(y.parenR);case 59:return++this.pos,this.finishToken(y.semi);case 44:return++this.pos,this.finishToken(y.comma);case 91:return++this.pos,this.finishToken(y.bracketL);case 93:return++this.pos,this.finishToken(y.bracketR);case 123:return++this.pos,this.finishToken(y.braceL);case 125:return++this.pos,this.finishToken(y.braceR);case 58:return++this.pos,this.finishToken(y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(y.backQuote);case 48:var v=this.input.charCodeAt(this.pos+1);if(v===120||v===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(v===111||v===79)return this.readRadixNumber(8);if(v===98||v===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(c);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(c);case 124:case 38:return this.readToken_pipe_amp(c);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(c);case 60:case 62:return this.readToken_lt_gt(c);case 61:case 33:return this.readToken_eq_excl(c);case 63:return this.readToken_question();case 126:return this.finishOp(y.prefix,1)}this.raise(this.pos,"Unexpected character '"+Tt(c)+"'")},he.finishOp=function(c,v){var I=this.input.slice(this.pos,this.pos+v);return this.pos+=v,this.finishToken(c,I)},he.readRegexp=function(){for(var c,v,I=this.pos;;){this.pos>=this.input.length&&this.raise(I,"Unterminated regular expression");var q=this.input.charAt(this.pos);if(S.test(q)&&this.raise(I,"Unterminated regular expression"),c)c=!1;else{if(q==="[")v=!0;else if(q==="]"&&v)v=!1;else if(q==="/"&&!v)break;c=q==="\\"}++this.pos}var z=this.input.slice(I,this.pos);++this.pos;var te=this.pos,ae=this.readWord1();this.containsEsc&&this.unexpected(te);var Ee=this.regexpState||(this.regexpState=new Ft(this));Ee.reset(I,z,ae),this.validateRegExpFlags(Ee),this.validateRegExpPattern(Ee);var De=null;try{De=new RegExp(z,ae)}catch{}return this.finishToken(y.regexp,{pattern:z,flags:ae,value:De})},he.readInt=function(c,v,I){for(var q=this.options.ecmaVersion>=12&&v===void 0,z=I&&this.input.charCodeAt(this.pos)===48,te=this.pos,ae=0,Ee=0,De=0,Ye=v??1/0;De<Ye;++De,++this.pos){var ft=this.input.charCodeAt(this.pos),zt=void 0;if(q&&ft===95){z&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),Ee===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),De===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),Ee=ft;continue}if(ft>=97?zt=ft-97+10:ft>=65?zt=ft-65+10:ft>=48&&ft<=57?zt=ft-48:zt=1/0,zt>=c)break;Ee=ft,ae=ae*c+zt}return q&&Ee===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===te||v!=null&&this.pos-te!==v?null:ae};function Ie(c,v){return v?parseInt(c,8):parseFloat(c.replace(/_/g,""))}function ze(c){return typeof BigInt!="function"?null:BigInt(c.replace(/_/g,""))}he.readRadixNumber=function(c){var v=this.pos;this.pos+=2;var I=this.readInt(c);return I==null&&this.raise(this.start+2,"Expected number in radix "+c),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(I=ze(this.input.slice(v,this.pos)),++this.pos):b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,I)},he.readNumber=function(c){var v=this.pos;!c&&this.readInt(10,void 0,!0)===null&&this.raise(v,"Invalid number");var I=this.pos-v>=2&&this.input.charCodeAt(v)===48;I&&this.strict&&this.raise(v,"Invalid number");var q=this.input.charCodeAt(this.pos);if(!I&&!c&&this.options.ecmaVersion>=11&&q===110){var z=ze(this.input.slice(v,this.pos));return++this.pos,b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,z)}I&&/[89]/.test(this.input.slice(v,this.pos))&&(I=!1),q===46&&!I&&(++this.pos,this.readInt(10),q=this.input.charCodeAt(this.pos)),(q===69||q===101)&&!I&&(q=this.input.charCodeAt(++this.pos),(q===43||q===45)&&++this.pos,this.readInt(10)===null&&this.raise(v,"Invalid number")),b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var te=Ie(this.input.slice(v,this.pos),I);return this.finishToken(y.num,te)},he.readCodePoint=function(){var c=this.input.charCodeAt(this.pos),v;if(c===123){this.options.ecmaVersion<6&&this.unexpected();var I=++this.pos;v=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,v>1114111&&this.invalidStringToken(I,"Code point out of bounds")}else v=this.readHexChar(4);return v};function Tt(c){return c<=65535?String.fromCharCode(c):(c-=65536,String.fromCharCode((c>>10)+55296,(c&1023)+56320))}he.readString=function(c){for(var v="",I=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var q=this.input.charCodeAt(this.pos);if(q===c)break;q===92?(v+=this.input.slice(I,this.pos),v+=this.readEscapedChar(!1),I=this.pos):(D(q,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return v+=this.input.slice(I,this.pos++),this.finishToken(y.string,v)};var dt={};he.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(c){if(c===dt)this.readInvalidTemplateToken();else throw c}this.inTemplateElement=!1},he.invalidStringToken=function(c,v){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw dt;this.raise(c,v)},he.readTmplToken=function(){for(var c="",v=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var I=this.input.charCodeAt(this.pos);if(I===96||I===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===y.template||this.type===y.invalidTemplate)?I===36?(this.pos+=2,this.finishToken(y.dollarBraceL)):(++this.pos,this.finishToken(y.backQuote)):(c+=this.input.slice(v,this.pos),this.finishToken(y.template,c));if(I===92)c+=this.input.slice(v,this.pos),c+=this.readEscapedChar(!0),v=this.pos;else if(D(I)){switch(c+=this.input.slice(v,this.pos),++this.pos,I){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:c+=`
|
|
1061
|
-
`;break;default:c+=String.fromCharCode(I);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),v=this.pos}else++this.pos}},he.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(y.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},he.readEscapedChar=function(c){var v=this.input.charCodeAt(++this.pos);switch(++this.pos,v){case 110:return`
|
|
1062
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Tt(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(c){var I=this.pos-1;return this.invalidStringToken(I,"Invalid escape sequence in template string"),null}default:if(v>=48&&v<=55){var q=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],z=parseInt(q,8);return z>255&&(q=q.slice(0,-1),z=parseInt(q,8)),this.pos+=q.length-1,v=this.input.charCodeAt(this.pos),(q!=="0"||v===56||v===57)&&(this.strict||c)&&this.invalidStringToken(this.pos-1-q.length,c?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(z)}return D(v)?"":String.fromCharCode(v)}},he.readHexChar=function(c){var v=this.pos,I=this.readInt(16,c);return I===null&&this.invalidStringToken(v,"Bad character escape sequence"),I},he.readWord1=function(){this.containsEsc=!1;for(var c="",v=!0,I=this.pos,q=this.options.ecmaVersion>=6;this.pos<this.input.length;){var z=this.fullCharCodeAtPos();if(E(z,q))this.pos+=z<=65535?1:2;else if(z===92){this.containsEsc=!0,c+=this.input.slice(I,this.pos);var te=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var ae=this.readCodePoint();(v?b:E)(ae,q)||this.invalidStringToken(te,"Invalid Unicode escape"),c+=Tt(ae),I=this.pos}else break;v=!1}return c+this.input.slice(I,this.pos)},he.readWord=function(){var c=this.readWord1(),v=y.name;return this.keywords.test(c)&&(v=O[c]),this.finishToken(v,c)};var ar="7.4.1";Le.acorn={Parser:Le,version:ar,defaultOptions:we,Position:ne,SourceLocation:be,getLineInfo:xe,Node:rt,TokenType:_,tokTypes:y,keywordTypes:O,TokContext:bt,tokContexts:nt,isIdentifierChar:E,isIdentifierStart:b,Token:ce,isNewLine:D,lineBreak:S,lineBreakG:C,nonASCIIwhitespace:J};function Nn(c,v){return Le.parse(c,v)}function Mw(c,v,I){return Le.parseExpressionAt(c,v,I)}function jw(c,v){return Le.tokenizer(c,v)}r.Node=rt,r.Parser=Le,r.Position=ne,r.SourceLocation=be,r.TokContext=bt,r.Token=ce,r.TokenType=_,r.defaultOptions=we,r.getLineInfo=xe,r.isIdentifierChar=E,r.isIdentifierStart=b,r.isNewLine=D,r.keywordTypes=O,r.lineBreak=S,r.lineBreakG=C,r.nonASCIIwhitespace=J,r.parse=Nn,r.parseExpressionAt=Mw,r.tokContexts=nt,r.tokTypes=y,r.tokenizer=jw,r.version=ar,Object.defineProperty(r,"__esModule",{value:!0})})}}),e4=mt({"../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}}}),t4=mt({"../../node_modules/acorn-jsx/index.js"(e,t){var r=e4(),n=/^[\da-fA-F]+$/,i=/^\d+$/,o=new WeakMap;function a(l){l=l.Parser.acorn||l;let d=o.get(l);if(!d){let f=l.tokTypes,h=l.TokContext,m=l.TokenType,b=new h("<tag",!1),E=new h("</tag",!1),_=new h("<tag>...</tag>",!0,!0),A={tc_oTag:b,tc_cTag:E,tc_expr:_},T={jsxName:new m("jsxName"),jsxText:new m("jsxText",{beforeExpr:!0}),jsxTagStart:new m("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new m("jsxTagEnd")};T.jsxTagStart.updateContext=function(){this.context.push(_),this.context.push(b),this.exprAllowed=!1},T.jsxTagEnd.updateContext=function(k){let O=this.context.pop();O===b&&k===f.slash||O===E?(this.context.pop(),this.exprAllowed=this.curContext()===_):this.exprAllowed=!0},d={tokContexts:A,tokTypes:T},o.set(l,d)}return d}function s(l){if(!l)return l;if(l.type==="JSXIdentifier")return l.name;if(l.type==="JSXNamespacedName")return l.namespace.name+":"+l.name.name;if(l.type==="JSXMemberExpression")return s(l.object)+"."+s(l.property)}t.exports=function(l){return l=l||{},function(d){return p({allowNamespaces:l.allowNamespaces!==!1,allowNamespacedObjects:!!l.allowNamespacedObjects},d)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return a(Zl()).tokTypes},configurable:!0,enumerable:!0});function p(l,d){let f=d.acorn||Zl(),h=a(f),m=f.tokTypes,b=h.tokTypes,E=f.tokContexts,_=h.tokContexts.tc_oTag,A=h.tokContexts.tc_cTag,T=h.tokContexts.tc_expr,k=f.isNewLine,O=f.isIdentifierStart,R=f.isIdentifierChar;return class extends d{static get acornJsx(){return h}jsx_readToken(){let y="",S=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let C=this.input.charCodeAt(this.pos);switch(C){case 60:case 123:return this.pos===this.start?C===60&&this.exprAllowed?(++this.pos,this.finishToken(b.jsxTagStart)):this.getTokenFromCode(C):(y+=this.input.slice(S,this.pos),this.finishToken(b.jsxText,y));case 38:y+=this.input.slice(S,this.pos),y+=this.jsx_readEntity(),S=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(C===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:k(C)?(y+=this.input.slice(S,this.pos),y+=this.jsx_readNewLine(!0),S=this.pos):++this.pos}}}jsx_readNewLine(y){let S=this.input.charCodeAt(this.pos),C;return++this.pos,S===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,C=y?`
|
|
1063
|
-
`:`\r
|
|
1064
|
-
`):C=String.fromCharCode(S),this.options.locations&&(++this.curLine,this.lineStart=this.pos),C}jsx_readString(y){let S="",C=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let D=this.input.charCodeAt(this.pos);if(D===y)break;D===38?(S+=this.input.slice(C,this.pos),S+=this.jsx_readEntity(),C=this.pos):k(D)?(S+=this.input.slice(C,this.pos),S+=this.jsx_readNewLine(!1),C=this.pos):++this.pos}return S+=this.input.slice(C,this.pos++),this.finishToken(m.string,S)}jsx_readEntity(){let y="",S=0,C,D=this.input[this.pos];D!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let J=++this.pos;for(;this.pos<this.input.length&&S++<10;){if(D=this.input[this.pos++],D===";"){y[0]==="#"?y[1]==="x"?(y=y.substr(2),n.test(y)&&(C=String.fromCharCode(parseInt(y,16)))):(y=y.substr(1),i.test(y)&&(C=String.fromCharCode(parseInt(y,10)))):C=r[y];break}y+=D}return C||(this.pos=J,"&")}jsx_readWord(){let y,S=this.pos;do y=this.input.charCodeAt(++this.pos);while(R(y)||y===45);return this.finishToken(b.jsxName,this.input.slice(S,this.pos))}jsx_parseIdentifier(){let y=this.startNode();return this.type===b.jsxName?y.name=this.value:this.type.keyword?y.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(y,"JSXIdentifier")}jsx_parseNamespacedName(){let y=this.start,S=this.startLoc,C=this.jsx_parseIdentifier();if(!l.allowNamespaces||!this.eat(m.colon))return C;var D=this.startNodeAt(y,S);return D.namespace=C,D.name=this.jsx_parseIdentifier(),this.finishNode(D,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===b.jsxTagEnd)return"";let y=this.start,S=this.startLoc,C=this.jsx_parseNamespacedName();for(this.type===m.dot&&C.type==="JSXNamespacedName"&&!l.allowNamespacedObjects&&this.unexpected();this.eat(m.dot);){let D=this.startNodeAt(y,S);D.object=C,D.property=this.jsx_parseIdentifier(),C=this.finishNode(D,"JSXMemberExpression")}return C}jsx_parseAttributeValue(){switch(this.type){case m.braceL:let y=this.jsx_parseExpressionContainer();return y.expression.type==="JSXEmptyExpression"&&this.raise(y.start,"JSX attributes must only be assigned a non-empty expression"),y;case b.jsxTagStart:case m.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let y=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(y,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let y=this.startNode();return this.next(),y.expression=this.type===m.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(m.braceR),this.finishNode(y,"JSXExpressionContainer")}jsx_parseAttribute(){let y=this.startNode();return this.eat(m.braceL)?(this.expect(m.ellipsis),y.argument=this.parseMaybeAssign(),this.expect(m.braceR),this.finishNode(y,"JSXSpreadAttribute")):(y.name=this.jsx_parseNamespacedName(),y.value=this.eat(m.eq)?this.jsx_parseAttributeValue():null,this.finishNode(y,"JSXAttribute"))}jsx_parseOpeningElementAt(y,S){let C=this.startNodeAt(y,S);C.attributes=[];let D=this.jsx_parseElementName();for(D&&(C.name=D);this.type!==m.slash&&this.type!==b.jsxTagEnd;)C.attributes.push(this.jsx_parseAttribute());return C.selfClosing=this.eat(m.slash),this.expect(b.jsxTagEnd),this.finishNode(C,D?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(y,S){let C=this.startNodeAt(y,S),D=this.jsx_parseElementName();return D&&(C.name=D),this.expect(b.jsxTagEnd),this.finishNode(C,D?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(y,S){let C=this.startNodeAt(y,S),D=[],J=this.jsx_parseOpeningElementAt(y,S),M=null;if(!J.selfClosing){e:for(;;)switch(this.type){case b.jsxTagStart:if(y=this.start,S=this.startLoc,this.next(),this.eat(m.slash)){M=this.jsx_parseClosingElementAt(y,S);break e}D.push(this.jsx_parseElementAt(y,S));break;case b.jsxText:D.push(this.parseExprAtom());break;case m.braceL:D.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(M.name)!==s(J.name)&&this.raise(M.start,"Expected corresponding JSX closing tag for <"+s(J.name)+">")}let G=J.name?"Element":"Fragment";return C["opening"+G]=J,C["closing"+G]=M,C.children=D,this.type===m.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(C,"JSX"+G)}jsx_parseText(){let y=this.parseLiteral(this.value);return y.type="JSXText",y}jsx_parseElement(){let y=this.start,S=this.startLoc;return this.next(),this.jsx_parseElementAt(y,S)}parseExprAtom(y){return this.type===b.jsxText?this.jsx_parseText():this.type===b.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(y)}readToken(y){let S=this.curContext();if(S===T)return this.jsx_readToken();if(S===_||S===A){if(O(y))return this.jsx_readWord();if(y==62)return++this.pos,this.finishToken(b.jsxTagEnd);if((y===34||y===39)&&S==_)return this.jsx_readString(y)}return y===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(b.jsxTagStart)):super.readToken(y)}updateContext(y){if(this.type==m.braceL){var S=this.curContext();S==_?this.context.push(E.b_expr):S==T?this.context.push(E.b_tmpl):super.updateContext(y),this.exprAllowed=!0}else if(this.type===m.slash&&y===b.jsxTagStart)this.context.length-=2,this.context.push(A),this.exprAllowed=!1;else return super.updateContext(y)}}}}}),r4=mt({"../../node_modules/html-tags/html-tags.json"(e,t){t.exports=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]}}),n4=mt({"../../node_modules/html-tags/index.js"(e,t){t.exports=r4()}}),i4={};gd(i4,{argTypesEnhancers:()=>Rw,parameters:()=>Dw});var ec="custom",ra="object",bd="array",o4="class",Ni="func",Gi="element",a4=Hi(ZV(),1);function s4(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(s,p){var l=p.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.map(function(d){var f,h;return(h=(f=d.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):s},[]);if(i.length){var o=new RegExp(`
|
|
1065
|
-
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(s){return s.replace(o,`
|
|
1066
|
-
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,p){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",f=s;typeof s=="string"&&s.includes(`
|
|
1067
|
-
`)&&(f=String(s).split(`
|
|
1068
|
-
`).map(function(h,m){return m===0?h:""+d+h}).join(`
|
|
1069
|
-
`)),a+=f+n[p+1]}),a}var mw={format:{indent:{style:" "},semicolons:!1}},u4={...mw,format:{newline:""}},l4={...mw};function xn(e,t=!1){return(0,a4.generate)(e,t?u4:l4)}function tc(e,t=!1){return t?c4(e):xn(e)}function c4(e){let t=xn(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function Km(e,t=!1){return t?d4(e):p4(e)}function p4(e){let t=xn(e);return t.endsWith(" }]")&&(t=s4(t)),t}function d4(e){let t=xn(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}var f4=Hi(Zl(),1),h4=Hi(t4(),1);function yw(e,t,r,n,i){r||(r=me),function o(a,s,p){var l=p||a.type,d=t[l];r[l](a,s,o),d&&d(a,s)}(e,n,i)}function m4(e,t,r,n,i){var o=[];r||(r=me),function a(s,p,l){var d=l||s.type,f=t[d],h=s!==o[o.length-1];h&&o.push(s),r[d](s,p,a),f&&f(s,p||o,o),h&&o.pop()}(e,n,i)}function Ed(e,t,r){r(e,t)}function oi(e,t,r){}var me={};me.Program=me.BlockStatement=function(e,t,r){for(var n=0,i=e.body;n<i.length;n+=1){var o=i[n];r(o,t,"Statement")}};me.Statement=Ed;me.EmptyStatement=oi;me.ExpressionStatement=me.ParenthesizedExpression=me.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};me.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};me.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};me.BreakStatement=me.ContinueStatement=oi;me.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};me.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var n=0,i=e.cases;n<i.length;n+=1){var o=i[n];o.test&&r(o.test,t,"Expression");for(var a=0,s=o.consequent;a<s.length;a+=1){var p=s[a];r(p,t,"Statement")}}};me.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var n=0,i=e.consequent;n<i.length;n+=1){var o=i[n];r(o,t,"Statement")}};me.ReturnStatement=me.YieldExpression=me.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};me.ThrowStatement=me.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};me.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};me.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};me.WhileStatement=me.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};me.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};me.ForInStatement=me.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};me.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};me.DebuggerStatement=oi;me.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};me.VariableDeclaration=function(e,t,r){for(var n=0,i=e.declarations;n<i.length;n+=1){var o=i[n];r(o,t)}};me.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};me.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var n=0,i=e.params;n<i.length;n+=1){var o=i[n];r(o,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};me.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};me.VariablePattern=oi;me.MemberPattern=Ed;me.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};me.ArrayPattern=function(e,t,r){for(var n=0,i=e.elements;n<i.length;n+=1){var o=i[n];o&&r(o,t,"Pattern")}};me.ObjectPattern=function(e,t,r){for(var n=0,i=e.properties;n<i.length;n+=1){var o=i[n];o.type==="Property"?(o.computed&&r(o.key,t,"Expression"),r(o.value,t,"Pattern")):o.type==="RestElement"&&r(o.argument,t,"Pattern")}};me.Expression=Ed;me.ThisExpression=me.Super=me.MetaProperty=oi;me.ArrayExpression=function(e,t,r){for(var n=0,i=e.elements;n<i.length;n+=1){var o=i[n];o&&r(o,t,"Expression")}};me.ObjectExpression=function(e,t,r){for(var n=0,i=e.properties;n<i.length;n+=1){var o=i[n];r(o,t)}};me.FunctionExpression=me.ArrowFunctionExpression=me.FunctionDeclaration;me.SequenceExpression=function(e,t,r){for(var n=0,i=e.expressions;n<i.length;n+=1){var o=i[n];r(o,t,"Expression")}};me.TemplateLiteral=function(e,t,r){for(var n=0,i=e.quasis;n<i.length;n+=1){var o=i[n];r(o,t)}for(var a=0,s=e.expressions;a<s.length;a+=1){var p=s[a];r(p,t,"Expression")}};me.TemplateElement=oi;me.UnaryExpression=me.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};me.BinaryExpression=me.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};me.AssignmentExpression=me.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};me.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};me.NewExpression=me.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var n=0,i=e.arguments;n<i.length;n+=1){var o=i[n];r(o,t,"Expression")}};me.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};me.ExportNamedDeclaration=me.ExportDefaultDeclaration=function(e,t,r){e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")};me.ExportAllDeclaration=function(e,t,r){e.exported&&r(e.exported,t),r(e.source,t,"Expression")};me.ImportDeclaration=function(e,t,r){for(var n=0,i=e.specifiers;n<i.length;n+=1){var o=i[n];r(o,t)}r(e.source,t,"Expression")};me.ImportExpression=function(e,t,r){r(e.source,t,"Expression")};me.ImportSpecifier=me.ImportDefaultSpecifier=me.ImportNamespaceSpecifier=me.Identifier=me.Literal=oi;me.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};me.ClassDeclaration=me.ClassExpression=function(e,t,r){return r(e,t,"Class")};me.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};me.ClassBody=function(e,t,r){for(var n=0,i=e.body;n<i.length;n+=1){var o=i[n];r(o,t)}};me.MethodDefinition=me.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")};var vd={...me,JSXElement:()=>{}},y4=f4.Parser.extend((0,h4.default)());function na(e){return e!=null?e.name:null}function Ym(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function gw(e){let t=[];return m4(e,{ObjectExpression(r,n){t.push(Ym(n).length)},ArrayExpression(r,n){t.push(Ym(n).length)}},vd),Math.max(...t)}function g4(e){return{inferredType:{type:"Identifier",identifier:na(e)},ast:e}}function b4(e){return{inferredType:{type:"Literal"},ast:e}}function E4(e){let t;yw(e.body,{JSXElement(i){t=i}},vd);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},n=na(e.id);return n!=null&&(r.identifier=n),{inferredType:r,ast:e}}function v4(e){let t;return yw(e.body,{JSXElement(r){t=r}},vd),{inferredType:{type:t!=null?"Element":"Class",identifier:na(e.id)},ast:e}}function A4(e){let t={type:"Element"},r=na(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function _4(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return na(t)==="shape"?bw(e.arguments[0]):null}function bw(e){return{inferredType:{type:"Object",depth:gw(e)},ast:e}}function w4(e){return{inferredType:{type:"Array",depth:gw(e)},ast:e}}function C4(e){switch(e.type){case"Identifier":return g4(e);case"Literal":return b4(e);case"FunctionExpression":case"ArrowFunctionExpression":return E4(e);case"ClassExpression":return v4(e);case"JSXElement":return A4(e);case"CallExpression":return _4(e);case"ObjectExpression":return bw(e);case"ArrayExpression":return w4(e);default:return null}}function T4(e){let t=y4.parse(`(${e})`,{ecmaVersion:2020}),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let n=t.body[0];switch(n.type){case"ExpressionStatement":{let i=C4(n.expression);i!=null&&(r=i);break}}}return r}function Pn(e){try{return{...T4(e)}}catch{}return{inferredType:{type:"Unknown"}}}var S4=Hi(n4(),1);function Ad(e){return S4.default.includes(e.toLowerCase())}function Ew({inferredType:e,ast:t}){let{depth:r}=e;if(r<=2){let n=Km(t,!0);if(!Ui(n))return Me(n)}return Me(bd,Km(t))}function vw({inferredType:e,ast:t}){let{depth:r}=e;if(r===1){let n=tc(t,!0);if(!Ui(n))return Me(n)}return Me(ra,tc(t))}function _d(e,t){return t?`${e}( ... )`:`${e}()`}function Gs(e){return`<${e} />`}function Aw(e){let{type:t,identifier:r}=e;switch(t){case"Function":return _d(r,e.hasParams);case"Element":return Gs(r);default:return r}}function x4({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return Me(Aw(e),xn(t));let n=xn(t,!0);return Ui(n)?Me(Ni,xn(t)):Me(n)}function D4(e,t){let{inferredType:r}=t,{identifier:n}=r;if(n!=null&&!Ad(n)){let i=Aw(r);return Me(i,e)}return Ui(e)?Me(Gi,e):Me(e)}function _w(e){try{let t=Pn(e);switch(t.inferredType.type){case"Object":return vw(t);case"Function":return x4(t);case"Element":return D4(e,t);case"Array":return Ew(t);default:return null}}catch(t){console.error(t)}return null}function R4(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function Xm(e){return typeof e=="function"}function P4(e){return typeof e=="string"}var Qm=cw;function ww(e){return e.$$typeof!=null}function Cw(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var O4=e=>Me(JSON.stringify(e));function F4(e){let{type:t}=e,{displayName:r}=t,n=Qm(e,{});if(r!=null){let i=Gs(r);return Me(i,n)}if(P4(t)&&Ad(t)){let i=Qm(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!Ui(i))return Me(i)}return Me(Gi,n)}var I4=e=>{if(ww(e)&&e.type!=null)return F4(e);if(R4(e)){let t=Pn(JSON.stringify(e));return vw(t)}if(Array.isArray(e)){let t=Pn(JSON.stringify(e));return Ew(t)}return Me(ra)},N4=(e,t)=>{let r=!1,n;if(Xm(e.render))r=!0;else if(e.prototype!=null&&Xm(e.prototype.render))r=!0;else{let o;try{n=Pn(e.toString());let{hasParams:a,params:s}=n.inferredType;a?s.length===1&&s[0].type==="ObjectPattern"&&(o=e({})):o=e(),o!=null&&ww(o)&&(r=!0)}catch{}}let i=Cw(e,t.name);if(i!=null){if(r)return Me(Gs(i));n!=null&&(n=Pn(e.toString()));let{hasParams:o}=n.inferredType;return Me(_d(i,o))}return Me(r?Gi:Ni)},B4=e=>Me(e.toString()),Tw={string:O4,object:I4,function:N4,default:B4};function k4(e={}){return{...Tw,...e}}function M4(e,t,r=Tw){try{switch(typeof e){case"string":return r.string(e,t);case"object":return r.object(e,t);case"function":return r.function(e,t);default:return r.default(e,t)}}catch(n){console.error(n)}return null}function j4(e,t){let r=e!=null,n=t!=null;if(!r&&!n)return"";let i=[];if(r){let o=e.map(a=>{let s=a.getPrettyName(),p=a.getTypeName();return p!=null?`${s}: ${p}`:s});i.push(`(${o.join(", ")})`)}else i.push("()");return n&&i.push(`=> ${t.getTypeName()}`),i.join(" ")}function q4(e,t){let r=e!=null,n=t!=null;if(!r&&!n)return"";let i=[];return r?i.push("( ... )"):i.push("()"),n&&i.push(`=> ${t.getTypeName()}`),i.join(" ")}function L4(e){return e.replace(/,/g,`,\r
|
|
1070
|
-
`)}var $4=150;function Yt({name:e,short:t,compact:r,full:n,inferredType:i}){return{name:e,short:t,compact:r,full:n??t,inferredType:i}}function Sw(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function Zm(e){return e.split(/\r?\n/)}function ps(e,t=!1){return Sw(tc(e,t))}function ey(e,t=!1){return Sw(xn(e,t))}function V4(e){switch(e){case"Object":return ra;case"Array":return bd;case"Class":return o4;case"Function":return Ni;case"Element":return Gi;default:return ec}}function xw(e,t){let{inferredType:r,ast:n}=Pn(e),{type:i}=r,o,a,s;switch(i){case"Identifier":case"Literal":o=e,a=e;break;case"Object":{let{depth:p}=r;o=ra,a=p===1?ps(n,!0):null,s=ps(n);break}case"Element":{let{identifier:p}=r;o=p!=null&&!Ad(p)?p:Gi,a=Zm(e).length===1?e:null,s=e;break}case"Array":{let{depth:p}=r;o=bd,a=p<=2?ey(n,!0):null,s=ey(n);break}default:o=V4(i),a=Zm(e).length===1?e:null,s=e;break}return Yt({name:t,short:o,compact:a,full:s,inferredType:i})}function U4({raw:e}){return e!=null?xw(e,"custom"):Yt({name:"custom",short:ec,compact:ec})}function J4(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?Yt({name:"func",short:q4(t.params,t.returns),compact:null,full:j4(t.params,t.returns)}):Yt({name:"func",short:Ni,compact:Ni})}function H4(e,t){let r=Object.keys(e.value).map(a=>`${a}: ${Bi(e.value[a],t).full}`).join(", "),{inferredType:n,ast:i}=Pn(`{ ${r} }`),{depth:o}=n;return Yt({name:"shape",short:ra,compact:o===1&&i?ps(i,!0):null,full:i?ps(i):null})}function Iu(e){return`objectOf(${e})`}function G4(e,t){let{short:r,compact:n,full:i}=Bi(e.value,t);return Yt({name:"objectOf",short:Iu(r),compact:n!=null?Iu(n):null,full:i&&Iu(i)})}function z4(e,t){if(Array.isArray(e.value)){let r=e.value.reduce((n,i)=>{let{short:o,compact:a,full:s}=Bi(i,t);return n.short.push(o),n.compact.push(a),n.full.push(s),n},{short:[],compact:[],full:[]});return Yt({name:"union",short:r.short.join(" | "),compact:r.compact.every(n=>n!=null)?r.compact.join(" | "):null,full:r.full.join(" | ")})}return Yt({name:"union",short:e.value,compact:null})}function W4({value:e,computed:t}){return t?xw(e,"enumvalue"):Yt({name:"enumvalue",short:e,compact:e})}function K4(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,n)=>{let{short:i,compact:o,full:a}=W4(n);return r.short.push(i),r.compact.push(o),r.full.push(a),r},{short:[],compact:[],full:[]});return Yt({name:"enum",short:t.short.join(" | "),compact:t.compact.every(r=>r!=null)?t.compact.join(" | "):null,full:t.full.join(" | ")})}return Yt({name:"enum",short:e.value,compact:e.value})}function rc(e){return`${e}[]`}function ty(e){return`[${e}]`}function ry(e,t,r){return Yt({name:"arrayOf",short:rc(e),compact:t!=null?ty(t):null,full:r&&ty(r)})}function Y4(e,t){let{name:r,short:n,compact:i,full:o,inferredType:a}=Bi(e.value,t);if(r==="custom"){if(a==="Object")return ry(n,i,o)}else if(r==="shape")return ry(n,i,o);return Yt({name:"arrayOf",short:rc(n),compact:rc(n)})}function Bi(e,t){try{switch(e.name){case"custom":return U4(e);case"func":return J4(t);case"shape":return H4(e,t);case"instanceOf":return Yt({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return G4(e,t);case"union":return z4(e,t);case"enum":return K4(e);case"arrayOf":return Y4(e,t);default:return Yt({name:e.name,short:e.name,compact:e.name})}}catch(r){console.error(r)}return Yt({name:"unknown",short:"unknown",compact:"unknown"})}function X4(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short:r,compact:n,full:i}=Bi(t,e);return n!=null&&!cd(n)?Me(n):i?Me(r,i):Me(r)}case"func":{let{short:r,full:n}=Bi(t,e),i=r,o;return n&&n.length<$4?i=n:n&&(o=L4(n)),Me(i,o)}default:return null}}catch(r){console.error(r)}return null}var Q4=(e,{name:t,type:r})=>{let n=r?.summary==="element"||r?.summary==="elementType",i=Cw(e,t);if(i!=null){if(n)return Me(Gs(i));let{hasParams:o}=Pn(e.toString()).inferredType;return Me(_d(i,o))}return Me(n?Gi:Ni)},Z4=k4({function:Q4});function eU(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(n=>e.find(i=>i.name===n)).filter(Boolean):e}function tU(e,t){let{propDef:r}=e,n=X4(e);n!=null&&(r.type=n);let{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let o=_w(i.value);o!=null&&(r.defaultValue=o)}else if(t!=null){let o=M4(t,r,Z4);o!=null&&(r.defaultValue=o)}return r}function rU(e,t){let r=t.defaultProps!=null?t.defaultProps:{},n=e.map(i=>tU(i,r[i.propDef.name]));return eU(n,t)}function nU(e,t){let{propDef:r}=e,{defaultValue:n}=e.docgenInfo;if(n!=null&&n.value!=null){let i=_w(n.value);i!=null&&(r.defaultValue=i)}return r}function iU(e){return e.map(t=>nU(t))}function oU(e,t){let r=e;!ud(e)&&!e.propTypes&&iw(e)&&(r=e.type);let n=d$(r,t);if(n.length===0)return[];switch(n[0].typeSystem){case Gl.JAVASCRIPT:return rU(n,e);case Gl.TYPESCRIPT:return iU(n);default:return n.map(i=>i.propDef)}}var aU=e=>({rows:oU(e,"props")}),sU=e=>{if(e){let{rows:t}=aU(e);if(t)return t.reduce((r,n)=>{let{name:i,description:o,type:a,sbType:s,defaultValue:p,jsDocTags:l,required:d}=n;return r[i]={name:i,description:o,type:{required:d,...s},table:{type:a??void 0,jsDocTags:l,defaultValue:p??void 0}},r},{})}return null},Dw={docs:{extractArgTypes:sU,extractComponentDescription:f$}},Rw=[h$];const uU=Object.freeze(Object.defineProperty({__proto__:null,argTypesEnhancers:Rw,parameters:Dw},Symbol.toStringTag,{value:"Module"}));var lU={};gd(lU,{applyDecorators:()=>Fw,decorators:()=>Iw,parameters:()=>Nw});const{logger:wa}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{emitTransformCode:cU,useEffect:pU,useRef:dU}=__STORYBOOK_MODULE_PREVIEW_API__;var Nu=cw,fU=e=>e.charAt(0).toUpperCase()+e.slice(1),hU=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map(t=>t.split("_").map(fU).join("")).join(".");function nc(e){if(tr.isValidElement(e)){let t=Object.keys(e.props).reduce((r,n)=>(r[n]=nc(e.props[n]),r),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(nc):e}var mU=(e,t)=>{if(typeof e>"u")return wa.warn("Too many skip or undefined component"),null;let r=e,n=r.type;for(let a=0;a<t?.skip;a+=1){if(typeof r>"u")return wa.warn("Cannot skip undefined element"),null;if(Er.Children.count(r)>1)return wa.warn("Trying to skip an array of elements"),null;typeof r.props.children>"u"?(wa.warn("Not enough children to skip elements."),typeof r.type=="function"&&r.type.name===""&&(r=Er.createElement(n,{...r.props}))):typeof r.props.children=="function"?r=r.props.children():r=r.props.children}let i;typeof t?.displayName=="string"?i={showFunctions:!0,displayName:()=>t.displayName}:i={displayName:a=>a.type.displayName?a.type.displayName:zl(a.type,"displayName")?zl(a.type,"displayName"):a.type.render?.displayName?a.type.render.displayName:typeof a.type=="symbol"||a.type.$$typeof&&typeof a.type.$$typeof=="symbol"?hU(a.type):a.type.name&&a.type.name!=="_default"?a.type.name:typeof a.type=="function"?"No Display Name":Q$(a.type)?a.type.render.name:iw(a.type)?a.type.type.name:a.type};let o={...i,filterProps:(a,s)=>a!==void 0,...t};return Er.Children.map(e,a=>{let s=typeof a=="number"?a.toString():a,p=(typeof Nu=="function"?Nu:Nu.default)(nc(s),o);if(p.indexOf(""")>-1){let l=p.match(/\S+=\\"([^"]*)\\"/g);l&&l.forEach(d=>{p=p.replace(d,d.replace(/"/g,"'"))})}return p}).join(`
|
|
1071
|
-
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},yU={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},gU=e=>{let t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===Wl.DYNAMIC?!1:!r||t?.code||t?.type===Wl.CODE},bU=e=>e.type?.displayName==="MDXCreateElement"&&!!e.props?.mdxType,Pw=e=>{if(!bU(e))return e;let{mdxType:t,originalType:r,children:n,...i}=e.props,o=[];return n&&(o=(Array.isArray(n)?n:[n]).map(Pw)),tr.createElement(r,i,...o)},Ow=(e,t)=>{let r=dU(void 0),n=e(),i=gU(t),o={...yU,...t?.parameters.jsx||{}},a=t.originalStoryFn(t.args,t);return pU(()=>{if(i)return;let s=Pw(a),p=mU(s,o);p&&r.current!==p&&(cU(p,t),r.current=p)}),n},Fw=(e,t)=>{let r=t.findIndex(i=>i.originalFn===Ow),n=r===-1?t:[...t.splice(r,1),...t];return md(e,n)},Iw="FEATURES"in globalThis&&globalThis?.FEATURES?.experimentalCodeExamples?[]:[Ow],Nw={docs:{story:{inline:!0}}};const EU=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:Fw,decorators:Iw,parameters:Nw},Symbol.toStringTag,{value:"Module"}));var vU=Object.create,wd=Object.defineProperty,AU=Object.getOwnPropertyDescriptor,Bw=Object.getOwnPropertyNames,_U=Object.getPrototypeOf,wU=Object.prototype.hasOwnProperty,v7=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),A7=(e,t)=>function(){return t||(0,e[Bw(e)[0]])((t={exports:{}}).exports,t),t.exports},CU=(e,t)=>{for(var r in t)wd(e,r,{get:t[r],enumerable:!0})},TU=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bw(t))!wU.call(e,i)&&i!==r&&wd(e,i,{get:()=>t[i],enumerable:!(n=AU(t,i))||n.enumerable});return e},_7=(e,t,r)=>(r=e!=null?vU(_U(e)):{},TU(wd(r,"default",{value:e,enumerable:!0}),e)),SU={};CU(SU,{parameters:()=>kw});var xU=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),kw={docs:{renderer:async()=>{let{DocsRenderer:e}=await Pe(async()=>{const{DocsRenderer:t}=await import("./DocsRenderer-GHJI37HO-DLf4p3c1.js").then(r=>r.D);return{DocsRenderer:t}},__vite__mapDeps([98,3,97,12,1]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(t=>xU[t]).length===0&&!e.parameters.docs?.disable}}};const DU=Object.freeze(Object.defineProperty({__proto__:null,parameters:kw},Symbol.toStringTag,{value:"Module"})),RU={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}}},PU=Object.freeze(Object.defineProperty({__proto__:null,default:RU},Symbol.toStringTag,{value:"Module"}));T_();const{composeConfigs:OU,PreviewWeb:FU}=__STORYBOOK_MODULE_PREVIEW_API__,IU=(e=[])=>{const t=[e[0]??W$,e[1]??uU,e[2]??EU,e[3]??DU,e[4]??PU];return OU(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new FU(g$,IU);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{a7 as A,o7 as B,i7 as C,QU as D,XU as E,YU as F,zU as G,qU as H,z9 as I,LU as J,Wr as K,m7 as L,Y9 as M,y7 as N,Wl as O,_7 as P,A7 as Q,E7 as R,g7 as S,v7 as T,H9 as _,Er as a,VU as b,b7 as c,UU as d,KU as e,ZU as f,b$ as g,GU as h,JU as i,zn as j,$U as k,r7 as l,n7 as m,HU as n,t7 as o,e7 as p,h7 as q,tr as r,WU as s,f7 as t,d7 as u,p7 as v,c7 as w,l7 as x,u7 as y,s7 as z};
|